@everymatrix/pam-consent-item 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-9a334d0d.js +1217 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/pam-consent-item-d3c126e6.js +534 -0
- package/dist/cjs/pam-consent-item.cjs.entry.js +10 -0
- package/dist/cjs/pam-consent-item.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/pam-consent-item/index.js +1 -0
- package/dist/collection/components/pam-consent-item/pam-consent-item.css +59 -0
- package/dist/collection/components/pam-consent-item/pam-consent-item.js +320 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +348 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-118c07e1.js +1190 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/pam-consent-item-648fff6a.js +532 -0
- package/dist/esm/pam-consent-item.entry.js +2 -0
- package/dist/esm/pam-consent-item.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/pam-consent-item/index.esm.js +1 -0
- package/dist/pam-consent-item/p-38e163d6.js +2 -0
- package/dist/pam-consent-item/p-4494a6bd.js +1 -0
- package/dist/pam-consent-item/p-510b9421.entry.js +1 -0
- package/dist/pam-consent-item/p-e1255160.js +1 -0
- package/dist/pam-consent-item/pam-consent-item.esm.js +1 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +18 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-consent-item/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-consent-item/.stencil/packages/stencil/pam-consent-item/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-consent-item/.stencil/packages/stencil/pam-consent-item/stencil.config.dev.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-consent-item/.stencil/packages/stencil/pam-consent-item/storybook/main.d.ts +3 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-consent-item/.stencil/packages/stencil/pam-consent-item/storybook/preview.d.ts +70 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-consent-item/.stencil/tools/plugins/index.d.ts +3 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-consent-item/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-consent-item/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-consent-item/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/pam-consent-item/index.d.ts +1 -0
- package/dist/types/components/pam-consent-item/pam-consent-item.d.ts +66 -0
- package/dist/types/components.d.ts +125 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +27 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i}from"./p-38e163d6.js";function r(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function o(t,e){const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function s(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}const a={en:{termsandconditions:{textPart1:"I accept the ",textPart2:"",link:"Terms and Conditions",title:"Terms and Conditions"},privacypolicy:{textPart1:"I have read and understood the ",textPart2:", as published on this site and confirm that I am over 18 years old.",link:"Privacy Policy",title:"Privacy Policy"},sms:{title:"SMS marketing",text:"I consent to receive marketing communication via SMS."},emailmarketing:{title:"Email marketing",text:"I consent to receive marketing communication via Email."},sportsemail:{title:"",text:"I want to receive Sports email marketing"},sportssms:{title:"",text:"I want to receive Sports SMS marketing"},sports3rdparty:{title:"",text:"I want to receive Sports phone call marketing"},sportspush:{title:"",text:"I want to receive Sports push notifications"},sports:{title:"Sports Promotions",text:"I want to receive Sports promotions"},casinoemail:{title:"",text:"I want to receive Casino email marketing"},casinosms:{title:"",text:"I want to receive Casino SMS marketing"},casino3rdparty:{title:"",text:"I want to receive Casino phone call marketing"},casinopush:{title:"",text:"I want to receive Casino push notifications"},casino:{title:"Casino Promotions",text:"I want to receive Casino promotions"},virtualsportsemail:{title:"",text:"I want to receive Virtual Sports email marketing"},virtualsportssms:{title:"",text:"I want to receive Virtual Sports SMS marketing"},virtualsports3rdparty:{title:"",text:"I want to receive Virtual Sports phone call marketing"},virtualsportspush:{title:"",text:"I want to receive Virtual Sports push notifications"},virtualsports:{title:"Virtual Sports Promotions",text:"I want to receive Casino promotions"}},ro:{termsandconditions:{textPart1:"Accept ",textPart2:"",link:"Termenii și condițiile",title:"Termenii și condițiile"},privacypolicy:{textPart1:"Am citit și înțeles ",textPart2:", așa cum este publicat pe acest site și confirm că am peste 18 ani.",link:"Politica de confidențialitate",title:"Politica de confidențialitate"},sms:{title:"Marketing prin SMS",text:"Îmi dau consimțământul pentru a primi comunicări de marketing prin SMS."},emailmarketing:{title:"Marketing prin e-mail",text:"Îmi dau consimțământul pentru a primi comunicări de marketing prin e-mail."},sportsemail:{title:"",text:"Vreau să primesc marketing prin e-mail pentru sporturi"},sportssms:{title:"",text:"Vreau să primesc marketing prin SMS pentru sporturi"},sports3rdparty:{title:"",text:"Vreau să primesc marketing prin apel telefonic pentru sporturi"},sportspush:{title:"",text:"Vreau să primesc notificări push pentru sporturi"},sports:{title:"Promoții Sportive",text:"Vreau să primesc promoții sportive"},casinoemail:{title:"",text:"Vreau să primesc marketing prin e-mail pentru cazinou"},casinosms:{title:"",text:"Vreau să primesc marketing prin SMS pentru cazinou"},casino3rdparty:{title:"",text:"Vreau să primesc marketing prin apel telefonic pentru cazinou"},casinopush:{title:"",text:"Vreau să primesc notificări push pentru cazinou"},casino:{title:"Promoții de Cazino",text:"Vreau să primesc promoții de cazino"},virtualsportsemail:{title:"",text:"Vreau să primesc marketing prin e-mail pentru sporturi virtuale"},virtualsportssms:{title:"",text:"Vreau să primesc marketing prin SMS pentru sporturi virtuale"},virtualsports3rdparty:{title:"",text:"Vreau să primesc marketing prin apel telefonic pentru sporturi virtuale"},virtualsportspush:{title:"",text:"Vreau să primesc notificări push pentru sporturi virtuale"},virtualsports:{title:"Promoții pentru sporturi virtuale",text:"Vreau să primesc promoții de cazino"}},fr:{termsandconditions:{textPart1:"J'accepte les ",textPart2:"",link:"Termes et Conditions",title:"Termes et Conditions"},privacypolicy:{textPart1:"J'ai lu et compris la ",textPart2:", telle que publiée sur ce site et je confirme que j'ai plus de 18 ans.",link:"Politique de Confidentialité",title:"Politique de Confidentialité"},sms:{title:"Marketing par SMS",text:"Je consens à recevoir des communications marketing par SMS."},emailmarketing:{title:"Marketing par e-mail",text:"Je consens à recevoir des communications marketing par e-mail."},sportsemail:{title:"",text:"Je veux recevoir des e-mails marketing pour les sports"},sportssms:{title:"",text:"Je veux recevoir des SMS marketing pour les sports"},sports3rdparty:{title:"",text:"Je veux recevoir des appels marketing pour les sports"},sportspush:{title:"",text:"Je veux recevoir des notifications push pour les sports"},sports:{title:"Promotions Sportives",text:"Je veux recevoir des promotions sportives"},casinoemail:{title:"",text:"Je veux recevoir des e-mails marketing pour le casino"},casinosms:{title:"",text:"Je veux recevoir des SMS marketing pour le casino"},casino3rdparty:{title:"",text:"Je veux recevoir des appels marketing pour le casino"},casinopush:{title:"",text:"Je veux recevoir des notifications push pour le casino"},casino:{title:"Promotions de Casino",text:"Je veux recevoir des promotions de casino"},virtualsportsemail:{title:"",text:"Je veux recevoir des e-mails marketing pour les sports virtuels"},virtualsportssms:{title:"",text:"Je veux recevoir des SMS marketing pour les sports virtuels"},virtualsports3rdparty:{title:"",text:"Je veux recevoir des appels marketing pour les sports virtuels"},virtualsportspush:{title:"",text:"Je veux recevoir des notifications push pour les sports virtuels"},virtualsports:{title:"Promotions de sports virtuels",text:"Je veux recevoir des promotions de casino"}},es:{termsandconditions:{textPart1:"Acepto los ",textPart2:"",link:"Términos y Condiciones",title:"Términos y Condiciones"},privacypolicy:{textPart1:"He leído y entendido la ",textPart2:", tal como se publica en este sitio y confirmo que tengo más de 18 años.",link:"Política de Privacidad",title:"Política de Privacidad"},sms:{title:"Marketing por SMS",text:"Consiento recibir comunicaciones de marketing por SMS."},emailmarketing:{title:"Marketing por correo electrónico",text:"Consiento recibir comunicaciones de marketing por correo electrónico."},sportsemail:{title:"",text:"Quiero recibir marketing por correo electrónico de deportes"},sportssms:{title:"",text:"Quiero recibir marketing por SMS de deportes"},sports3rdparty:{title:"",text:"Quiero recibir marketing por llamadas telefónicas de deportes"},sportspush:{title:"",text:"Quiero recibir notificaciones push de deportes"},sports:{title:"Promociones Deportivas",text:"Quiero recibir promociones deportivas"},casinoemail:{title:"",text:"Quiero recibir marketing por correo electrónico de casino"},casinosms:{title:"",text:"Quiero recibir marketing por SMS de casino"},casino3rdparty:{title:"",text:"Quiero recibir marketing por llamadas telefónicas de casino"},casinopush:{title:"",text:"Quiero recibir notificaciones push de casino"},casino:{title:"Promociones de Casino",text:"Quiero recibir promociones de casino"},virtualsportsemail:{title:"",text:"Quiero recibir marketing por correo electrónico de deportes virtuales"},virtualsportssms:{title:"",text:"Quiero recibir marketing por SMS de deportes virtuales"},virtualsports3rdparty:{title:"",text:"Quiero recibir marketing por llamadas telefónicas de deportes virtuales"},virtualsportspush:{title:"",text:"Quiero recibir notificaciones push de deportes virtuales"},virtualsports:{title:"Promociones de deportes virtuales",text:"Quiero recibir promociones de casino"}},de:{termsandconditions:{textPart1:"Ich akzeptiere die ",textPart2:"",link:"Allgemeinen Geschäftsbedingungen",title:"Allgemeinen Geschäftsbedingungen"},privacypolicy:{textPart1:"Ich habe die ",textPart2:" gelesen und verstanden, wie auf dieser Seite veröffentlicht, und bestätige, dass ich über 18 Jahre alt bin.",link:"Datenschutzrichtlinie",title:"Datenschutzrichtlinie"},sms:{title:"SMS-Marketing",text:"Ich stimme zu, Marketingkommunikation per SMS zu erhalten."},emailmarketing:{title:"E-Mail-Marketing",text:"Ich stimme zu, Marketingkommunikation per E-Mail zu erhalten."},sportsemail:{title:"",text:"Ich möchte Sport-Marketing-E-Mails erhalten"},sportssms:{title:"",text:"Ich möchte Sport-Marketing-SMS erhalten"},sports3rdparty:{title:"",text:"Ich möchte Sport-Marketing-Anrufe erhalten"},sports:{title:"Sportaktionen",text:"Ich möchte Sportaktionen erhalten"},sportspush:{title:"",text:"Ich möchte Push-Benachrichtigungen für Sport erhalten"},casinoemail:{title:"",text:"Ich möchte Casino-Marketing-E-Mails erhalten"},casinosms:{title:"",text:"Ich möchte Casino-Marketing-SMS erhalten"},casino3rdparty:{title:"",text:"Ich möchte Casino-Marketing-Anrufe erhalten"},casinopush:{title:"",text:"Ich möchte Push-Benachrichtigungen für das Casino erhalten"},casino:{title:"Casinoaktionen",text:"Ich möchte Casinoaktionen erhalten"},virtualsportsemail:{title:"",text:"Ich möchte Marketing-E-Mails für virtuelle Sportarten erhalten"},virtualsportssms:{title:"",text:"Ich möchte Marketing-SMS für virtuelle Sportarten erhalten"},virtualsports3rdparty:{title:"",text:"Ich möchte Marketing-Anrufe für virtuelle Sportarten erhalten"},virtualsportspush:{title:"",text:"Ich möchte Push-Benachrichtigungen für virtuelle Sportarten erhalten"},virtualsports:{title:"Promotions de sports virtuels",text:"Ich möchte Casinoaktionen erhalten"}},hr:{termsandconditions:{textPart1:"Prihvaćam ",textPart2:"",link:"Uvjeti i odredbe",title:"Uvjeti i odredbe"},privacypolicy:{textPart1:"Pročitao/la sam i razumio/la ",textPart2:", kako je objavljeno na ovoj stranici i potvrđujem da imam više od 18 godina.",link:"Pravila o privatnosti",title:"Pravila o privatnosti"},sms:{title:"SMS marketing",text:"Slažem se primati marketinške komunikacije putem SMS-a."},emailmarketing:{title:"E-mail marketing",text:"Slažem se primati marketinške komunikacije putem e-maila."},sportsemail:{title:"",text:"Želim primati sportski marketing putem e-pošte"},sportssms:{title:"",text:"Želim primati sportski marketing putem SMS-a"},sports3rdparty:{title:"",text:"Želim primati sportski marketing putem telefonskog poziva"},sportspush:{title:"",text:"Želim primati push obavijesti za sportove"},sports:{title:"Sportske Promocije",text:"Želim primati sportske promocije"},casinoemail:{title:"",text:"Želim primati kasino marketing putem e-pošte"},casinosms:{title:"",text:"Želim primati kasino marketing putem SMS-a"},casino3rdparty:{title:"",text:"Želim primati kasino marketing putem telefonskog poziva"},casinopush:{title:"",text:"Želim primati push obavijesti za kasino"},casino:{title:"Promocije Kasina",text:"Želim primati promocije kasina"},virtualsportsemail:{title:"",text:"Želim primati marketing putem e-pošte za virtualne sportove"},virtualsportssms:{title:"",text:"Želim primati marketing putem SMS-a za virtualne sportove"},virtualsports3rdparty:{title:"",text:"Želim primati marketing putem telefonskog poziva za virtualne sportove"},virtualsportspush:{title:"",text:"Želim primati push obavijesti za virtualne sportove"},virtualsports:{title:"Promocije virtualnih sportova",text:"Želim primati promocije kasina"}},"en-us":{termsandconditions:{textPart1:"I accept the ",textPart2:"",link:"Terms and Conditions",title:"Terms and Conditions"},privacypolicy:{textPart1:"I have read and understood the ",textPart2:", as published on this site and confirm that I am over 18 years old.",link:"Privacy Policy",title:"Privacy Policy"},sms:{title:"SMS marketing",text:"I consent to receive marketing communication via SMS."},emailmarketing:{title:"Email marketing",text:"I consent to receive marketing communication via Email."},sportsemail:{title:"",text:"I want to receive Sports email marketing"},sportssms:{title:"",text:"I want to receive Sports SMS marketing"},sports3rdparty:{title:"",text:"I want to receive Sports phone call marketing"},sportspush:{title:"",text:"I want to receive Sports push notifications"},sports:{title:"Sports Promotions",text:"I want to receive Sports promotions"},casinoemail:{title:"",text:"I want to receive Casino email marketing"},casinosms:{title:"",text:"I want to receive Casino SMS marketing"},casino3rdparty:{title:"",text:"I want to receive Casino phone call marketing"},casinopush:{title:"",text:"I want to receive Casino push notifications"},casino:{title:"Casino Promotions",text:"I want to receive Casino promotions"},virtualsportsemail:{title:"",text:"I want to receive Virtual Sports email marketing"},virtualsportssms:{title:"",text:"I want to receive Virtual Sports SMS marketing"},virtualsports3rdparty:{title:"",text:"I want to receive Virtual Sports phone call marketing"},virtualsportspush:{title:"",text:"I want to receive Virtual Sports push notifications"},virtualsports:{title:"Virtual Sports Promotions",text:"I want to receive Casino promotions"}},"es-mx":{termsandconditions:{textPart1:"Acepto los ",textPart2:"",link:"Términos y Condiciones",title:"Términos y Condiciones"},privacypolicy:{textPart1:"He leído y entendido la ",textPart2:", tal como se publica en este sitio y confirmo que tengo más de 18 años.",link:"Política de Privacidad",title:"Política de Privacidad"},sms:{title:"Marketing por SMS",text:"Consiento recibir comunicaciones de marketing por SMS."},emailmarketing:{title:"Marketing por correo electrónico",text:"Consiento recibir comunicaciones de marketing por correo electrónico."},sportsemail:{title:"",text:"Quiero recibir marketing por correo electrónico de deportes"},sportssms:{title:"",text:"Quiero recibir marketing por SMS de deportes"},sports3rdparty:{title:"",text:"Quiero recibir marketing por llamadas telefónicas de deportes"},sportspush:{title:"",text:"Quiero recibir notificaciones push de deportes"},sports:{title:"Promociones Deportivas",text:"Quiero recibir promociones deportivas"},casinoemail:{title:"",text:"Quiero recibir marketing por correo electrónico de casino"},casinosms:{title:"",text:"Quiero recibir marketing por SMS de casino"},casino3rdparty:{title:"",text:"Quiero recibir marketing por llamadas telefónicas de casino"},casinopush:{title:"",text:"Quiero recibir notificaciones push de casino"},casino:{title:"Promociones de Casino",text:"Quiero recibir promociones de casino"},virtualsportsemail:{title:"",text:"Quiero recibir marketing por correo electrónico de deportes virtuales"},virtualsportssms:{title:"",text:"Quiero recibir marketing por SMS de deportes virtuales"},virtualsports3rdparty:{title:"",text:"Quiero recibir marketing por llamadas telefónicas de deportes virtuales"},virtualsportspush:{title:"",text:"Quiero recibir notificaciones push de deportes virtuales"},virtualsports:{title:"Promociones de deportes virtuales",text:"Quiero recibir promociones de casino"}},"pt-br":{termsandconditions:{textPart1:"Eu aceito os ",textPart2:"",link:"Termos e Condições",title:"Termos e Condições"},privacypolicy:{textPart1:"Eu li e entendi a ",textPart2:", conforme publicado neste site e confirmo que tenho mais de 18 anos.",link:"Política de Privacidade",title:"Política de Privacidade"},sms:{title:"Marketing por SMS",text:"Eu consinto em receber comunicações de marketing via SMS."},emailmarketing:{title:"Marketing por e-mail",text:"Eu consinto em receber comunicações de marketing via e-mail."},sportsemail:{title:"",text:"Quero receber marketing por e-mail de esportes"},sportssms:{title:"",text:"Quero receber marketing por SMS de esportes"},sports3rdparty:{title:"",text:"Quero receber marketing por chamadas telefônicas de esportes"},sportspush:{title:"",text:"Quero receber notificações push de esportes"},sports:{title:"Promoções Esportivas",text:"Quero receber promoções esportivas"},casinoemail:{title:"",text:"Quero receber marketing por e-mail de cassino"},casinosms:{title:"",text:"Quero receber marketing por SMS de cassino"},casino3rdparty:{title:"",text:"Quero receber marketing por chamadas telefônicas de cassino"},casinopush:{title:"",text:"Quero receber notificações push de cassino"},casino:{title:"Promoções de Cassino",text:"Quero receber promoções de cassino"},virtualsportsemail:{title:"",text:"Quero receber marketing por e-mail de esportes virtuais"},virtualsportssms:{title:"",text:"Quero receber marketing por SMS de esportes virtuais"},virtualsports3rdparty:{title:"",text:"Quero receber marketing por chamadas telefônicas de esportes virtuais"},virtualsportspush:{title:"",text:"Quero receber notificações push de esportes virtuais"},virtualsports:{title:"Promoções de esportes virtuais",text:"Quero receber promoções de cassino"}},pt:{termsandconditions:{textPart1:"Eu aceito os ",textPart2:"",link:"Termos e Condições",title:"Termos e Condições"},privacypolicy:{textPart1:"Eu li e entendi a ",textPart2:", conforme publicado neste site e confirmo que tenho mais de 18 anos.",link:"Política de Privacidade",title:"Política de Privacidade"},sms:{title:"Marketing por SMS",text:"Eu consinto em receber comunicações de marketing via SMS."},emailmarketing:{title:"Marketing por e-mail",text:"Eu consinto em receber comunicações de marketing via e-mail."},sportsemail:{title:"",text:"Quero receber marketing por e-mail de esportes"},sportssms:{title:"",text:"Quero receber marketing por SMS de esportes"},sports3rdparty:{title:"",text:"Quero receber marketing por chamadas telefônicas de esportes"},sportspush:{title:"",text:"Quero receber notificações push de esportes"},sports:{title:"Promoções Esportivas",text:"Quero receber promoções esportivas"},casinoemail:{title:"",text:"Quero receber marketing por e-mail de cassino"},casinosms:{title:"",text:"Quero receber marketing por SMS de cassino"},casino3rdparty:{title:"",text:"Quero receber marketing por chamadas telefônicas de cassino"},casinopush:{title:"",text:"Quero receber notificações push de cassino"},casino:{title:"Promoções de Cassino",text:"Quero receber promoções de cassino"},virtualsportsemail:{title:"",text:"Quero receber marketing por e-mail de esportes virtuais"},virtualsportssms:{title:"",text:"Quero receber marketing por SMS de esportes virtuais"},virtualsports3rdparty:{title:"",text:"Quero receber marketing por chamadas telefônicas de esportes virtuais"},virtualsportspush:{title:"",text:"Quero receber notificações push de esportes virtuais"},virtualsports:{title:"Promoções de esportes virtuais",text:"Quero receber promoções de cassino"}}},n=(t,e,i)=>{let r=(o=a[e||"en"],t.split(".").reduce(((t,e)=>t&&void 0!==t[e]?t[e]:null),o));var o;if(null===r)return t;if(void 0!==i)for(const[t,e]of Object.entries(i)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},l=class{constructor(i){t(this,i),this.userLegislationConsent=e(this,"userLegislationConsent",7),this.consentConfig=[],this.inputRefs={parent:null,children:{}},this.goToTermsAndConditions=()=>{window.postMessage({type:"GoToTermsAndConditions"})},this.goToPrivacyPolicy=()=>{window.postMessage({type:"GoToPrivacyPolicy"})},this.userLegislationConsentHandler=()=>{if(this.group&&this.updateGroupParent(),this.mandatory||this.queried){const t=[];if(this.group)for(const[e,i]of Object.entries(this.inputRefs.children))t.push({type:e,value:i.checked});else t.push({type:this.consentConfig[0].tagCode,value:this.inputRefs.parent.checked});this.userLegislationConsent.emit(t)}},this.updateGroupParent=()=>{this.inputRefs.parent.checked=Object.values(this.inputRefs.children).every((t=>t.checked))},this.toggleGroupChildren=()=>{Object.values(this.inputRefs.children).forEach((t=>t.checked=this.inputRefs.parent.checked))},this.language="en",this.queried=!1,this.group=void 0,this.consentTypes="",this.mandatory="false",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.mbSource=void 0}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&o(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&s(this.stylingContainer,`${this.mbSource}.Style`)}async componentWillLoad(){const t=this.consentTypes.split(","),e=this.mandatory.split(",");for(let i=0;i<t.length;++i)this.consentConfig.push({tagCode:t[i],mandatory:"true"===e[i]});var i;this.translationUrl.length>2&&await(i=this.translationUrl,new Promise((t=>{fetch(i).then((t=>t.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])a[t]||(a[t]={}),a[t][i]=e[t][i]})),t(!0)}))})))}componentDidLoad(){this.stylingContainer&&(this.mbSource&&s(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&o(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}determineTextContent(t){return"termsandconditions"===t?i("p",null,n("termsandconditions.textPart1",this.language),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},n("termsandconditions.link",this.language)),n("termsandconditions.textPart2",this.language)):"privacypolicy"===t?i("p",null,n("privacypolicy.textPart1",this.language),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},n("privacypolicy.link",this.language)),n("privacypolicy.textPart2",this.language)):i("p",null,n(`${t}.text`,this.language))}render(){return this.queried&&this.userLegislationConsentHandler(),i("div",{key:"255d7bbf241891327f3181047c0203f6b482f14a",ref:t=>this.stylingContainer=t},this.group?[i("h5",{class:"ConsentTitle"},n(`${this.group}.title`,this.language)),i("label",{class:"UserConsent Parent"},i("input",{ref:t=>this.inputRefs.parent=t,type:"checkbox",onInput:this.toggleGroupChildren}),this.determineTextContent(this.group),this.consentConfig.every((t=>t.mandatory))&&i("span",{class:"MandatoryItem"},"*")),i("div",{class:"ConsentGroup"},this.consentConfig.map((t=>i("label",{class:"UserConsent"},i("input",{ref:e=>this.inputRefs.children[t.tagCode]=e,type:"checkbox",onInput:this.userLegislationConsentHandler}),this.determineTextContent(t.tagCode),t.mandatory&&i("span",{class:"MandatoryItem"},"*")))))]:[i("h5",{class:"ConsentTitle"},n(`${this.consentConfig[0].tagCode}.title`,this.language)),i("label",{class:"UserConsent",htmlFor:"userConsent"},i("input",{ref:t=>this.inputRefs.parent=t,type:"checkbox",onInput:this.userLegislationConsentHandler}),this.determineTextContent(this.consentConfig[0].tagCode),this.consentConfig[0].mandatory&&i("span",{class:"MandatoryItem"},"*"))])}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};l.style=':host{display:block;font-family:inherit}.ConsentTitle{margin-bottom:0.2rem;font-weight:600}.UserConsent:hover{cursor:pointer}.UserConsent{display:flex;align-items:center}.UserConsent input{appearance:none;width:18px;border-radius:3px;height:18px;border:1px solid var(--emw--color-black, #000000);background-color:var(--emw--color-white, #FFFFFF);cursor:pointer;position:relative}.UserConsent input:checked{background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-black, #000000)}.UserConsent input:checked::after{content:"";position:absolute;width:4px;height:8px;border:solid var(--emw--color-black, #000000);background-color:var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;top:2px;left:5px;transform:rotate(45deg)}.MandatoryItem{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:1.2rem}.ConsentLink{text-decoration:underline;color:var(--emw--color-primary, #52d004);font-weight:bold}.ConsentGroup{margin-left:25px}';export{l as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as pam_consent_item}from"./p-4494a6bd.js";import"./p-38e163d6.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=()=>{};export{o as g}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as n,b as e}from"./p-38e163d6.js";export{s as setNonce}from"./p-38e163d6.js";import{g as t}from"./p-e1255160.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),n(t)})().then((async n=>(await t(),e([["p-510b9421",[[1,"pam-consent-item",{language:[1537],queried:[516],group:[513],consentTypes:[513,"consent-types"],mandatory:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],mbSource:[513,"mb-source"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}]]]],n))));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'pam-consent-item',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: false,
|
|
6
|
+
minifyJs: true,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'www'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
type: 'docs-readme'
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { cleanPackageJsonStencil } from "../../../tools/plugins";
|
|
2
|
+
import { sass } from "@stencil/sass";
|
|
3
|
+
export const config = {
|
|
4
|
+
namespace: 'pam-consent-item',
|
|
5
|
+
taskQueue: 'async',
|
|
6
|
+
sourceMap: false,
|
|
7
|
+
minifyJs: true,
|
|
8
|
+
extras: {
|
|
9
|
+
experimentalImportInjection: true
|
|
10
|
+
},
|
|
11
|
+
plugins: [cleanPackageJsonStencil(), sass()],
|
|
12
|
+
outputTargets: [
|
|
13
|
+
{
|
|
14
|
+
type: 'dist',
|
|
15
|
+
esmLoaderPath: '../loader'
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import path from "path";
|
|
2
|
+
import { getStoryFiles, detectUsedPackages, parseTsConfig, exec, filterParsedPathsByUsedPackages } from "../../../../libs/common/src/storybook/storybook-utils";
|
|
3
|
+
const config = {
|
|
4
|
+
stories: ['../**/*.@(mdx|stories.@(js|ts|tsx))'],
|
|
5
|
+
addons: ['@storybook/addon-essentials', '@storybook/addon-interactions', 'storybook-dark-mode'],
|
|
6
|
+
docs: {
|
|
7
|
+
defaultName: 'Documentation',
|
|
8
|
+
autodocs: 'tag'
|
|
9
|
+
},
|
|
10
|
+
framework: {
|
|
11
|
+
name: '@storybook/web-components-vite',
|
|
12
|
+
options: {}
|
|
13
|
+
},
|
|
14
|
+
// Async viteFinal to build dependent packages before finalizing configuration.
|
|
15
|
+
viteFinal: async (config) => {
|
|
16
|
+
const storyFiles = getStoryFiles(path.resolve(__dirname, '../'));
|
|
17
|
+
const usedPackages = detectUsedPackages(storyFiles);
|
|
18
|
+
const buildPromises = usedPackages.map(async (pkg) => {
|
|
19
|
+
try {
|
|
20
|
+
console.log(`Building package ${pkg}...`);
|
|
21
|
+
const { stdout, stderr } = await exec(`nx run ${pkg}:build`);
|
|
22
|
+
console.log(`Built package ${pkg}: ${stdout}`);
|
|
23
|
+
if (stderr) {
|
|
24
|
+
console.error(`Build warning/error for package ${pkg}: ${stderr}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
console.error(`Error building package ${pkg}:`, error);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
await Promise.all(buildPromises);
|
|
32
|
+
const parsedPaths = parseTsConfig() || {};
|
|
33
|
+
const filteredParsedPaths = filterParsedPathsByUsedPackages(parsedPaths, usedPackages);
|
|
34
|
+
return Object.assign(Object.assign({}, config), { resolve: {
|
|
35
|
+
alias: Object.assign({}, filteredParsedPaths)
|
|
36
|
+
}, define: {
|
|
37
|
+
process: {
|
|
38
|
+
env: {}
|
|
39
|
+
}
|
|
40
|
+
} });
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export default config;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { themes } from "@storybook/theming";
|
|
2
|
+
export const parameters = {
|
|
3
|
+
darkMode: {
|
|
4
|
+
dark: Object.assign(Object.assign({}, themes.dark), { appBg: 'black' }),
|
|
5
|
+
light: Object.assign(Object.assign({}, themes.normal), { appBg: 'green' }),
|
|
6
|
+
current: 'light',
|
|
7
|
+
stylePreview: true
|
|
8
|
+
}
|
|
9
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { exec as execCallback } from 'child_process';
|
|
3
|
+
export declare const exec: typeof execCallback.__promisify__;
|
|
4
|
+
/**
|
|
5
|
+
* Recursively retrieves all story files (.stories.ts/.stories.tsx) in a directory.
|
|
6
|
+
* @param dir The directory to search.
|
|
7
|
+
* @returns Array of story file paths.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getStoryFiles: (dir: string) => string[];
|
|
10
|
+
/**
|
|
11
|
+
* Detects which internal packages are used in the provided story files.
|
|
12
|
+
* It looks at every import that starts with the given package alias prefix,
|
|
13
|
+
* then extracts the package name (the segment immediately following the prefix).
|
|
14
|
+
*
|
|
15
|
+
* @param stories Array of story file paths.
|
|
16
|
+
* @returns Array of unique package names (e.g. ['foo', 'bar']).
|
|
17
|
+
*/
|
|
18
|
+
export declare const detectUsedPackages: (stories: string[]) => string[];
|
|
19
|
+
/**
|
|
20
|
+
* Extracts all import paths from a file using the TypeScript compiler API.
|
|
21
|
+
* @param filePath The file path to parse.
|
|
22
|
+
* @returns Array of import strings.
|
|
23
|
+
*/
|
|
24
|
+
export declare const extractImports: (filePath: string) => string[];
|
|
25
|
+
/**
|
|
26
|
+
* Parses the tsconfig paths and resolves them to absolute paths.
|
|
27
|
+
* @param tsconfigPath The path to the tsconfig file.
|
|
28
|
+
* @returns An object mapping alias keys to absolute paths.
|
|
29
|
+
*/
|
|
30
|
+
export declare const parseTsConfig: () => Record<string, string> | null;
|
|
31
|
+
/**
|
|
32
|
+
* Filters the parsed tsconfig alias mapping to only include keys that correspond
|
|
33
|
+
* to the used packages.
|
|
34
|
+
*
|
|
35
|
+
* @param parsedPaths The full alias mapping from tsconfig.
|
|
36
|
+
* @param usedPackages Array of package names that are used (e.g. ['foo', 'bar']).
|
|
37
|
+
* @returns Filtered alias mapping.
|
|
38
|
+
*/
|
|
39
|
+
export declare const filterParsedPathsByUsedPackages: (parsedPaths: Record<string, string>, usedPackages: string[]) => Record<string, string>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const parameters: {
|
|
2
|
+
darkMode: {
|
|
3
|
+
dark: {
|
|
4
|
+
appBg: string;
|
|
5
|
+
base: "light" | "dark";
|
|
6
|
+
colorPrimary: string;
|
|
7
|
+
colorSecondary: string;
|
|
8
|
+
appContentBg: string;
|
|
9
|
+
appPreviewBg: string;
|
|
10
|
+
appBorderColor: string;
|
|
11
|
+
appBorderRadius: number;
|
|
12
|
+
fontBase: string;
|
|
13
|
+
fontCode: string;
|
|
14
|
+
textColor: string;
|
|
15
|
+
textInverseColor: string;
|
|
16
|
+
textMutedColor: string;
|
|
17
|
+
barTextColor: string;
|
|
18
|
+
barHoverColor: string;
|
|
19
|
+
barSelectedColor: string;
|
|
20
|
+
barBg: string;
|
|
21
|
+
buttonBg: string;
|
|
22
|
+
buttonBorder: string;
|
|
23
|
+
booleanBg: string;
|
|
24
|
+
booleanSelectedBg: string;
|
|
25
|
+
inputBg: string;
|
|
26
|
+
inputBorder: string;
|
|
27
|
+
inputTextColor: string;
|
|
28
|
+
inputBorderRadius: number;
|
|
29
|
+
brandTitle?: string;
|
|
30
|
+
brandUrl?: string;
|
|
31
|
+
brandImage?: string;
|
|
32
|
+
brandTarget?: string;
|
|
33
|
+
gridCellSize?: number;
|
|
34
|
+
};
|
|
35
|
+
light: {
|
|
36
|
+
appBg: string;
|
|
37
|
+
base: "light" | "dark";
|
|
38
|
+
colorPrimary: string;
|
|
39
|
+
colorSecondary: string;
|
|
40
|
+
appContentBg: string;
|
|
41
|
+
appPreviewBg: string;
|
|
42
|
+
appBorderColor: string;
|
|
43
|
+
appBorderRadius: number;
|
|
44
|
+
fontBase: string;
|
|
45
|
+
fontCode: string;
|
|
46
|
+
textColor: string;
|
|
47
|
+
textInverseColor: string;
|
|
48
|
+
textMutedColor: string;
|
|
49
|
+
barTextColor: string;
|
|
50
|
+
barHoverColor: string;
|
|
51
|
+
barSelectedColor: string;
|
|
52
|
+
barBg: string;
|
|
53
|
+
buttonBg: string;
|
|
54
|
+
buttonBorder: string;
|
|
55
|
+
booleanBg: string;
|
|
56
|
+
booleanSelectedBg: string;
|
|
57
|
+
inputBg: string;
|
|
58
|
+
inputBorder: string;
|
|
59
|
+
inputTextColor: string;
|
|
60
|
+
inputBorderRadius: number;
|
|
61
|
+
brandTitle?: string;
|
|
62
|
+
brandUrl?: string;
|
|
63
|
+
brandImage?: string;
|
|
64
|
+
brandTarget?: string;
|
|
65
|
+
gridCellSize?: number;
|
|
66
|
+
};
|
|
67
|
+
current: string;
|
|
68
|
+
stylePreview: boolean;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PamConsentItem } from './pam-consent-item';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class PamConsentItem {
|
|
3
|
+
/**
|
|
4
|
+
* Language
|
|
5
|
+
*/
|
|
6
|
+
language: string;
|
|
7
|
+
/**
|
|
8
|
+
* 'true' when parent expects component to emit it's current value
|
|
9
|
+
*/
|
|
10
|
+
queried: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* group (consent category). If it is empty, it's assumed that only one consent is passed in consentTypes
|
|
13
|
+
*/
|
|
14
|
+
group: string;
|
|
15
|
+
/**
|
|
16
|
+
* the tagCodes of the consents separated by a ",".
|
|
17
|
+
*/
|
|
18
|
+
consentTypes: string;
|
|
19
|
+
/**
|
|
20
|
+
* mandatory status of consents separated by a ",".
|
|
21
|
+
*/
|
|
22
|
+
mandatory: string;
|
|
23
|
+
/**
|
|
24
|
+
* Client custom styling via inline style
|
|
25
|
+
*/
|
|
26
|
+
clientStyling: string;
|
|
27
|
+
/**
|
|
28
|
+
* Client custom styling via url
|
|
29
|
+
*/
|
|
30
|
+
clientStylingUrl: string;
|
|
31
|
+
/**
|
|
32
|
+
* Translation url
|
|
33
|
+
*/
|
|
34
|
+
translationUrl: string;
|
|
35
|
+
/**
|
|
36
|
+
* the text content to be rendered by the component. Determined at runtime
|
|
37
|
+
*/
|
|
38
|
+
mbSource: string;
|
|
39
|
+
userLegislationConsent: EventEmitter<{
|
|
40
|
+
type: string;
|
|
41
|
+
value: boolean;
|
|
42
|
+
}[]>;
|
|
43
|
+
handleClientStylingChange(newValue: any, oldValue: any): void;
|
|
44
|
+
handleClientStylingUrlChange(newValue: any, oldValue: any): void;
|
|
45
|
+
handleMbSourceChange(newValue: any, oldValue: any): void;
|
|
46
|
+
private stylingContainer;
|
|
47
|
+
private stylingSubscription;
|
|
48
|
+
consentConfig: {
|
|
49
|
+
tagCode: string;
|
|
50
|
+
mandatory: boolean;
|
|
51
|
+
}[];
|
|
52
|
+
inputRefs: {
|
|
53
|
+
parent: HTMLInputElement;
|
|
54
|
+
children: Record<string, HTMLInputElement>;
|
|
55
|
+
};
|
|
56
|
+
componentWillLoad(): Promise<void>;
|
|
57
|
+
componentDidLoad(): void;
|
|
58
|
+
disconnectedCallback(): void;
|
|
59
|
+
goToTermsAndConditions: () => void;
|
|
60
|
+
goToPrivacyPolicy: () => void;
|
|
61
|
+
userLegislationConsentHandler: () => void;
|
|
62
|
+
updateGroupParent: () => void;
|
|
63
|
+
toggleGroupChildren: () => void;
|
|
64
|
+
determineTextContent(consentType: string): any;
|
|
65
|
+
render(): any;
|
|
66
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
export namespace Components {
|
|
9
|
+
interface PamConsentItem {
|
|
10
|
+
/**
|
|
11
|
+
* Client custom styling via inline style
|
|
12
|
+
*/
|
|
13
|
+
"clientStyling": string;
|
|
14
|
+
/**
|
|
15
|
+
* Client custom styling via url
|
|
16
|
+
*/
|
|
17
|
+
"clientStylingUrl": string;
|
|
18
|
+
/**
|
|
19
|
+
* the tagCodes of the consents separated by a ",".
|
|
20
|
+
*/
|
|
21
|
+
"consentTypes": string;
|
|
22
|
+
/**
|
|
23
|
+
* group (consent category). If it is empty, it's assumed that only one consent is passed in consentTypes
|
|
24
|
+
*/
|
|
25
|
+
"group": string;
|
|
26
|
+
/**
|
|
27
|
+
* Language
|
|
28
|
+
*/
|
|
29
|
+
"language": string;
|
|
30
|
+
/**
|
|
31
|
+
* mandatory status of consents separated by a ",".
|
|
32
|
+
*/
|
|
33
|
+
"mandatory": string;
|
|
34
|
+
/**
|
|
35
|
+
* the text content to be rendered by the component. Determined at runtime
|
|
36
|
+
*/
|
|
37
|
+
"mbSource": string;
|
|
38
|
+
/**
|
|
39
|
+
* 'true' when parent expects component to emit it's current value
|
|
40
|
+
*/
|
|
41
|
+
"queried": boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Translation url
|
|
44
|
+
*/
|
|
45
|
+
"translationUrl": string;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export interface PamConsentItemCustomEvent<T> extends CustomEvent<T> {
|
|
49
|
+
detail: T;
|
|
50
|
+
target: HTMLPamConsentItemElement;
|
|
51
|
+
}
|
|
52
|
+
declare global {
|
|
53
|
+
interface HTMLPamConsentItemElementEventMap {
|
|
54
|
+
"userLegislationConsent": { type: string, value: boolean}[];
|
|
55
|
+
}
|
|
56
|
+
interface HTMLPamConsentItemElement extends Components.PamConsentItem, HTMLStencilElement {
|
|
57
|
+
addEventListener<K extends keyof HTMLPamConsentItemElementEventMap>(type: K, listener: (this: HTMLPamConsentItemElement, ev: PamConsentItemCustomEvent<HTMLPamConsentItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
58
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
59
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
60
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
61
|
+
removeEventListener<K extends keyof HTMLPamConsentItemElementEventMap>(type: K, listener: (this: HTMLPamConsentItemElement, ev: PamConsentItemCustomEvent<HTMLPamConsentItemElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
62
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
63
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
64
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
65
|
+
}
|
|
66
|
+
var HTMLPamConsentItemElement: {
|
|
67
|
+
prototype: HTMLPamConsentItemElement;
|
|
68
|
+
new (): HTMLPamConsentItemElement;
|
|
69
|
+
};
|
|
70
|
+
interface HTMLElementTagNameMap {
|
|
71
|
+
"pam-consent-item": HTMLPamConsentItemElement;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
declare namespace LocalJSX {
|
|
75
|
+
interface PamConsentItem {
|
|
76
|
+
/**
|
|
77
|
+
* Client custom styling via inline style
|
|
78
|
+
*/
|
|
79
|
+
"clientStyling"?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Client custom styling via url
|
|
82
|
+
*/
|
|
83
|
+
"clientStylingUrl"?: string;
|
|
84
|
+
/**
|
|
85
|
+
* the tagCodes of the consents separated by a ",".
|
|
86
|
+
*/
|
|
87
|
+
"consentTypes"?: string;
|
|
88
|
+
/**
|
|
89
|
+
* group (consent category). If it is empty, it's assumed that only one consent is passed in consentTypes
|
|
90
|
+
*/
|
|
91
|
+
"group"?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Language
|
|
94
|
+
*/
|
|
95
|
+
"language"?: string;
|
|
96
|
+
/**
|
|
97
|
+
* mandatory status of consents separated by a ",".
|
|
98
|
+
*/
|
|
99
|
+
"mandatory"?: string;
|
|
100
|
+
/**
|
|
101
|
+
* the text content to be rendered by the component. Determined at runtime
|
|
102
|
+
*/
|
|
103
|
+
"mbSource"?: string;
|
|
104
|
+
"onUserLegislationConsent"?: (event: PamConsentItemCustomEvent<{ type: string, value: boolean}[]>) => void;
|
|
105
|
+
/**
|
|
106
|
+
* 'true' when parent expects component to emit it's current value
|
|
107
|
+
*/
|
|
108
|
+
"queried"?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Translation url
|
|
111
|
+
*/
|
|
112
|
+
"translationUrl"?: string;
|
|
113
|
+
}
|
|
114
|
+
interface IntrinsicElements {
|
|
115
|
+
"pam-consent-item": PamConsentItem;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export { LocalJSX as JSX };
|
|
119
|
+
declare module "@stencil/core" {
|
|
120
|
+
export namespace JSX {
|
|
121
|
+
interface IntrinsicElements {
|
|
122
|
+
"pam-consent-item": LocalJSX.PamConsentItem & JSXBase.HTMLAttributes<HTMLPamConsentItemElement>;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/pam-consent-item';
|