@mgdis/mg-components 5.26.0 → 5.27.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/{index-c585c382.js → index-1d560837.js} +97 -81
- package/dist/cjs/index-1d560837.js.map +1 -0
- package/dist/cjs/{index-0a2783ee.js → index-7072369e.js} +17 -5
- package/dist/cjs/index-7072369e.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{mg-action-more_34.cjs.entry.js → mg-action-more_35.cjs.entry.js} +613 -694
- package/dist/cjs/mg-action-more_35.cjs.entry.js.map +1 -0
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-components.cjs.js.map +1 -1
- package/dist/cjs/mg-item-more.cjs.entry.js +7 -6
- package/dist/cjs/mg-item-more.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-loader.cjs.entry.js +3 -3
- package/dist/cjs/mg-loader.cjs.entry.js.map +1 -1
- package/dist/collection/assets/icons/index.js +1 -206
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +2 -2
- package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +1 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js +6 -6
- package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
- package/dist/collection/components/atoms/mg-card/mg-card.js +2 -2
- package/dist/collection/components/atoms/mg-card/mg-card.js.map +1 -1
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +2 -2
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js.map +1 -1
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js.map +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +13 -8
- package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +1 -1
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +3 -3
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js.map +1 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -3
- package/dist/collection/components/atoms/mg-tag/mg-tag.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +21 -0
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +509 -0
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +1 -5
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +7 -7
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +67 -45
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +31 -13
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +48 -18
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +54 -15
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +40 -8
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +44 -13
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +63 -24
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +47 -15
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +30 -21
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +3 -3
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js +4 -0
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +43 -7
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js.map +1 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +41 -41
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
- package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js +4 -4
- package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +3 -3
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.conf.js.map +1 -1
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +12 -11
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +1 -1
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +3 -3
- package/dist/collection/components/molecules/mg-loader/mg-loader.js.map +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +3 -3
- package/dist/collection/components/molecules/mg-message/mg-message.js.map +1 -1
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +2 -2
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +4 -4
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +4 -4
- package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +2 -2
- package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +1 -1
- package/dist/collection/locales/en/messages.json +10 -3
- package/dist/collection/locales/fr/messages.json +10 -3
- package/dist/collection/locales/index.conf.js +2 -0
- package/dist/collection/locales/index.conf.js.map +1 -0
- package/dist/collection/utils/playwright.fixture.js +1 -1
- package/dist/collection/utils/playwright.fixture.js.map +1 -1
- package/dist/components/index.es.js +12 -12
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/index2.js +24 -8
- package/dist/components/index2.js.map +1 -1
- package/dist/components/mg-action-more.js +15 -15
- package/dist/components/mg-action-more.js.map +1 -1
- package/dist/components/mg-badge2.js +1 -1
- package/dist/components/mg-badge2.js.map +1 -1
- package/dist/components/mg-button2.js +1 -1
- package/dist/components/mg-button2.js.map +1 -1
- package/dist/components/mg-card2.js +2 -2
- package/dist/components/mg-card2.js.map +1 -1
- package/dist/components/mg-character-left2.js +1 -1
- package/dist/components/mg-character-left2.js.map +1 -1
- package/dist/components/mg-details.js +1 -1
- package/dist/components/mg-divider.js +1 -1
- package/dist/components/mg-form.js +1 -1
- package/dist/components/mg-form.js.map +1 -1
- package/dist/components/mg-icon2.js +4 -416
- package/dist/components/mg-icon2.js.map +1 -1
- package/dist/components/mg-illustrated-message.js +3 -3
- package/dist/components/mg-input-checkbox-paginated2.js +13 -11
- package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
- package/dist/components/mg-input-checkbox.js +71 -49
- package/dist/components/mg-input-checkbox.js.map +1 -1
- package/dist/components/mg-input-date.js +29 -11
- package/dist/components/mg-input-date.js.map +1 -1
- package/dist/components/mg-input-numeric.js +41 -12
- package/dist/components/mg-input-numeric.js.map +1 -1
- package/dist/components/mg-input-password.js +56 -12
- package/dist/components/mg-input-password.js.map +1 -1
- package/dist/components/mg-input-radio.js +41 -10
- package/dist/components/mg-input-radio.js.map +1 -1
- package/dist/components/mg-input-select2.js +42 -12
- package/dist/components/mg-input-select2.js.map +1 -1
- package/dist/components/mg-input-text2.js +50 -18
- package/dist/components/mg-input-text2.js.map +1 -1
- package/dist/components/mg-input-textarea.js +44 -13
- package/dist/components/mg-input-textarea.js.map +1 -1
- package/dist/components/mg-input-title2.js +1 -1
- package/dist/components/mg-input-title2.js.map +1 -1
- package/dist/components/mg-input-toggle.js +35 -22
- package/dist/components/mg-input-toggle.js.map +1 -1
- package/dist/components/mg-input.d.ts +11 -0
- package/dist/components/mg-input.js +8 -0
- package/dist/components/mg-input.js.map +1 -0
- package/dist/components/mg-input2.js +352 -0
- package/dist/components/mg-input2.js.map +1 -0
- package/dist/components/mg-item-more.js +7 -6
- package/dist/components/mg-item-more.js.map +1 -1
- package/dist/components/mg-loader.js +1 -1
- package/dist/components/mg-loader.js.map +1 -1
- package/dist/components/mg-menu-item2.js +21 -4
- package/dist/components/mg-menu-item2.js.map +1 -1
- package/dist/components/mg-menu2.js +1 -1
- package/dist/components/mg-menu2.js.map +1 -1
- package/dist/components/mg-message.js +1 -1
- package/dist/components/mg-message.js.map +1 -1
- package/dist/components/mg-modal.js +3 -3
- package/dist/components/mg-modal.js.map +1 -1
- package/dist/components/mg-pagination2.js +12 -6
- package/dist/components/mg-pagination2.js.map +1 -1
- package/dist/components/mg-panel.js +15 -9
- package/dist/components/mg-panel.js.map +1 -1
- package/dist/components/mg-popover-content2.js +1 -1
- package/dist/components/mg-popover2.js +2 -2
- package/dist/components/mg-popover2.js.map +1 -1
- package/dist/components/mg-skip-links.js +1 -1
- package/dist/components/mg-tabs.js +1 -1
- package/dist/components/mg-tag.js +1 -1
- package/dist/components/mg-tag.js.map +1 -1
- package/dist/esm/{index-bb17de92.js → index-445fc2a0.js} +97 -81
- package/dist/esm/index-445fc2a0.js.map +1 -0
- package/dist/esm/{index-ad78ece7.js → index-629a42c7.js} +17 -5
- package/dist/esm/index-629a42c7.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{mg-action-more_34.entry.js → mg-action-more_35.entry.js} +613 -695
- package/dist/esm/mg-action-more_35.entry.js.map +1 -0
- package/dist/esm/mg-components.js +4 -4
- package/dist/esm/mg-components.js.map +1 -1
- package/dist/esm/mg-item-more.entry.js +7 -6
- package/dist/esm/mg-item-more.entry.js.map +1 -1
- package/dist/esm/mg-loader.entry.js +3 -3
- package/dist/esm/mg-loader.entry.js.map +1 -1
- package/dist/mg-components/locales/en/messages.json +10 -3
- package/dist/mg-components/locales/fr/messages.json +10 -3
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/mg-components.esm.js.map +1 -1
- package/dist/mg-components/p-3ebe6845.js +2 -0
- package/dist/mg-components/p-3ebe6845.js.map +1 -0
- package/dist/mg-components/{p-2db8355d.entry.js → p-6735e4b2.entry.js} +2 -2
- package/dist/mg-components/p-6735e4b2.entry.js.map +1 -0
- package/dist/mg-components/p-9dfaa41f.js +3 -0
- package/dist/mg-components/p-9dfaa41f.js.map +1 -0
- package/dist/mg-components/p-b3e0f7b3.entry.js +2 -0
- package/dist/mg-components/p-b3e0f7b3.entry.js.map +1 -0
- package/dist/mg-components/{p-d80b844d.entry.js → p-fe347f48.entry.js} +2 -2
- package/dist/mg-components/{p-d80b844d.entry.js.map → p-fe347f48.entry.js.map} +1 -1
- package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +1 -1
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +5 -5
- package/dist/types/components/atoms/mg-card/mg-card.d.ts +1 -1
- package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +1 -1
- package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +5 -0
- package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +3 -3
- package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +2 -2
- package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +35 -0
- package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +139 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +5 -5
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +3 -5
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +13 -12
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +8 -6
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +12 -9
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +16 -5
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +7 -3
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +7 -4
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +18 -12
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +12 -9
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +12 -12
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +1 -1
- package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.conf.d.ts +8 -0
- package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +10 -5
- package/dist/types/components/molecules/mg-action-more/mg-action-more.conf.d.ts +7 -16
- package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +9 -9
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +3 -3
- package/dist/types/components/molecules/mg-item-more/mg-item-more.conf.d.ts +3 -12
- package/dist/types/components/molecules/mg-item-more/mg-item-more.d.ts +4 -3
- package/dist/types/components/molecules/mg-loader/mg-loader.d.ts +2 -2
- package/dist/types/components/molecules/mg-message/mg-message.d.ts +2 -2
- package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +2 -2
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +3 -3
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +1 -1
- package/dist/types/components.d.ts +203 -92
- package/dist/types/locales/index.conf.d.ts +4 -0
- package/ide/intellij/web-types.json +243 -18
- package/ide/vscode/html-custom-data.json +2766 -1332
- package/package.json +23 -27
- package/dist/cjs/index-0a2783ee.js.map +0 -1
- package/dist/cjs/index-c585c382.js.map +0 -1
- package/dist/cjs/mg-action-more_34.cjs.entry.js.map +0 -1
- package/dist/collection/components/molecules/inputs/MgInput.conf.js +0 -14
- package/dist/collection/components/molecules/inputs/MgInput.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/MgInput.js +0 -125
- package/dist/collection/components/molecules/inputs/MgInput.js.map +0 -1
- package/dist/collection/utils/playwright.e2e.test.utils.js +0 -100
- package/dist/collection/utils/playwright.e2e.test.utils.js.map +0 -1
- package/dist/components/MgInput.js +0 -155
- package/dist/components/MgInput.js.map +0 -1
- package/dist/esm/index-ad78ece7.js.map +0 -1
- package/dist/esm/index-bb17de92.js.map +0 -1
- package/dist/esm/mg-action-more_34.entry.js.map +0 -1
- package/dist/mg-components/p-2db8355d.entry.js.map +0 -1
- package/dist/mg-components/p-95653110.entry.js +0 -2
- package/dist/mg-components/p-95653110.entry.js.map +0 -1
- package/dist/mg-components/p-bc62d75e.js +0 -3
- package/dist/mg-components/p-bc62d75e.js.map +0 -1
- package/dist/mg-components/p-d41aa78b.js +0 -2
- package/dist/mg-components/p-d41aa78b.js.map +0 -1
- package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +0 -46
- package/dist/types/components/molecules/inputs/MgInput.d.ts +0 -13
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e={required:"This field is required.",date:{badInput:"The date format must be {pattern}",min:"The date cannot be earlier than {min}",max:"The date cannot be later than {max}",minMax:"The date must be between {min} and {max}"},numeric:{min:"The value cannot be less than {min}",max:"The value cannot be greater than {max}",minMax:"The value must be between {min} and {max}"}};const t="{counter} characters left.";const s={select:{placeholder:"Select a value"},checkbox:{selectedValues:"{nb} selected values",selectedValue:"{nb} selected value",editButton:"Edit",selectButton:"Select values",showButton:"Show",label:"Enter a value",result:"result",results:"results",searchResults:"Search result(s) list.",noResult:"No result.",sections:{selected:{title:"Selected",titlePlurial:"Selected",action:"Unselect all",tooltip:"Unselect all current search results"},notSelected:{title:"Not selected",titlePlurial:"Not selected",action:"Select all",tooltip:"Select all current search results"}}},date:{helpText:"Expected format: {pattern} (ex: {date})",pattern:{dd:"dd",mm:"mm",yyyy:"yyyy"}}};const a={required:'Fields with a <strong class="mg-u-is-asterisk">*</strong> are required',requiredSingle:'Field with a <strong class="mg-u-is-asterisk">*</strong> is required',allRequired:"All fields are required",allRequiredSingle:"The field is required"};const n={closeButton:"Close message"};const r={closeButton:"Close modal"};const l={label:"Pagination",page:"page",pages:"pages",nextPage:"Next page",previousPage:"Previous page",selectPage:"Select the page to display."};const o={editLabel:"Edit section title."};const i={navLabel:"Quick access"};const c={confirm:"Confirm",cancel:"Cancel",close:"Close",next:"next",previous:"previous"};const u={moreLabel:"Additional menu",badgeLabel:"Include notification(s)"};const d={label:"Actions"};const m={inProgess:"Loading in progress…"};const p={errors:e,nbCharLeft:t,input:s,form:a,message:n,modal:r,pagination:l,panel:o,skipLinks:i,general:c,plusMenu:u,actionMore:d,loader:m};const g={required:"Ce champ est obligatoire.",date:{badInput:"Le format de la date doit être du type {pattern}",min:"La date ne peut pas être antérieure au {min}",max:"La date ne peut pas être postérieure au {max}",minMax:"La date doit être comprise entre le {min} et le {max}"},numeric:{min:"La valeur ne peut pas être inférieure à {min}",max:"La valeur ne peut pas être supérieure à {max}",minMax:"La valeur doit être comprise entre {min} et {max}"}};const h="{counter} caractères disponibles.";const b={select:{placeholder:"Sélectionnez une valeur"},checkbox:{selectedValues:"{nb} valeurs selectionnées",selectedValue:"{nb} valeur selectionnée",editButton:"Modifier",selectButton:"Sélectionner des valeurs",showButton:"Voir",label:"Saisissez une valeur",result:"résultat",results:"résultats",searchResults:"List de résultat(s) de la recherche.",noResult:"Aucun résultat.",sections:{selected:{title:"Sélectionné",titlePlurial:"Sélectionnés",action:"Tout désélectionner",tooltip:"Désélectionne tous les résultats de la recherche en cours"},notSelected:{title:"Non sélectionné",titlePlurial:"Non sélectionnés",action:"Tout sélectionner",tooltip:"Sélectionne tous les résultats de la recherche en cours"}}},date:{helpText:"Format attendu : {pattern} (ex : {date})",pattern:{dd:"jj",mm:"mm",yyyy:"aaaa"}}};const f={required:'Les champs marqués d\'un <strong class="mg-u-is-asterisk">*</strong> sont obligatoires',requiredSingle:'Le champ marqué d\'un <strong class="mg-u-is-asterisk">*</strong> est obligatoire',allRequired:"Tous les champs sont obligatoires",allRequiredSingle:"Le champ est obligatoire"};const v={closeButton:"Fermer le message"};const y={closeButton:"Fermer la modale"};const x={label:"Pagination",page:"page",pages:"pages",nextPage:"Page suivante",previousPage:"Page précédente",selectPage:"Sélectionner la page à afficher."};const L={editLabel:"Modifier le titre de la section."};const S={navLabel:"Accès rapide"};const q={confirm:"Valider",cancel:"Annuler",close:"Fermer",next:"suivant",previous:"précédent"};const P={moreLabel:"Menu complémentaire",badgeLabel:"Notification(s) incluse(s)"};const T={label:"Actions"};const w={inProgess:"Chargement en cours…"};const M={errors:g,nbCharLeft:h,input:b,form:f,message:v,modal:y,pagination:x,panel:L,skipLinks:S,general:q,plusMenu:P,actionMore:T,loader:w};var k=Object.defineProperty;var A=(e,t,s)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var B=(e,t,s)=>(A(e,typeof t!="symbol"?t+"":t,s),s);const C=(e="",t=10)=>{const s=new Uint8Array(t);crypto.getRandomValues(s);const a=Array.from(s).map((e=>e.toString(16).padStart(2,"0"))).join("").slice(0,t);return e!==""?`${e}-${a}`:a};class N{constructor(e=[]){B(this,"classes");B(this,"add",(e=>{this.has(e)||this.classes.push(e)}));B(this,"delete",(e=>{const t=this.classes.indexOf(e);t>-1&&this.classes.splice(t,1)}));B(this,"has",(e=>this.classes.includes(e)));B(this,"join",(()=>this.classes.join(" ")));this.classes=e}}const R=e=>Array.isArray(e)&&e.every((e=>typeof e=="string")),F=(e,t)=>t.includes(e==null?void 0:e.tagName.toLowerCase()),I='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button',V=e=>{const t=D(e),s=j(e);return[e,...t,...s]},D=(e,t=[])=>{if(e.self!==e.top)try{const s=e.parent;return s?(t.push(s),D(s,t)):t}catch(e){return console.error("Different hosts between iframes:",e),t}return t},j=(e,t=[])=>{if(e.frames.length>0)for(const s of Array.from(e.frames))t.push(s),j(s,t);return t},E=e=>typeof e=="string"&&e.trim()!=="",U=e=>typeof e=="string"?e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g,""):e,z=async e=>e(),$=e=>{const t={value:"2023",pattern:"yyyy"},s={value:"12",pattern:"mm"},a={value:"24",pattern:"dd"};return H([t.value,s.value,a.value].join("-"),e).replace(t.value,t.pattern).replace(s.value,s.pattern).replace(a.value,a.pattern)},O=e=>e.toISOString().split("T")[0],Q=(e,t,s)=>{const a=e.closest("[lang]"),n=Intl.NumberFormat.supportedLocalesOf(a==null?void 0:a.lang),r=n.length>0&&typeof n[0]=="string"?n[0]:navigator.language||s,l=r.split("-").shift();return{locale:r,messages:t[l]||t[s]}},W=(e,t,s)=>new Intl.NumberFormat(t,{style:"currency",currency:s}).format(e),_=(e,t)=>new Intl.NumberFormat(t).format(e),G=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/,H=(e,t)=>typeof e!="string"||e===""||!G.test(e)?"":new Intl.DateTimeFormat(t).format(new Date(e)),J=(e,t)=>s=>Q(s,e,t);const K="en";const X={en:p,fr:M};const Y=J(X,K);export{E as B,I as D,F,N as M,U as N,R as O,$ as P,C as R,z as U,O as W,V as _,G as d,H as g,Y as i,_ as q,W as z};
|
|
2
|
-
//# sourceMappingURL=p-d41aa78b.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ie","Object","defineProperty","ce","t","e","n","enumerable","configurable","writable","value","p","Re","Uint8Array","crypto","getRandomValues","r","Array","from","map","s","toString","padStart","join","slice","Me","constructor","this","has","classes","push","indexOf","splice","includes","Oe","isArray","every","Fe","tagName","toLowerCase","De","_e","G","I","self","top","parent","console","error","frames","length","Be","trim","Ne","toLocaleLowerCase","normalize","replaceAll","Ue","async","Pe","pattern","ge","replace","We","toISOString","split","ue","closest","Intl","NumberFormat","supportedLocalesOf","lang","o","navigator","language","l","shift","locale","messages","ze","style","currency","format","qe","de","test","DateTimeFormat","Date","we","defaultLocale","en","fr","initLocales","defineLocales"],"sources":["../stencil-helpers/dist/index.es.js","src/locales/index.ts"],"sourcesContent":["var ie = Object.defineProperty;\nvar ce = (t, e, n) => e in t ? ie(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;\nvar p = (t, e, n) => (ce(t, typeof e != \"symbol\" ? e + \"\" : e, n), n);\nconst Re = (t = \"\", e = 10) => {\n const n = new Uint8Array(e);\n crypto.getRandomValues(n);\n const r = Array.from(n).map((s) => s.toString(16).padStart(2, \"0\")).join(\"\").slice(0, e);\n return t !== \"\" ? `${t}-${r}` : r;\n};\nclass Me {\n constructor(e = []) {\n /**\n * Available classes\n */\n p(this, \"classes\");\n /**\n * Add class\n * @param className - class name to add\n */\n p(this, \"add\", (e) => {\n this.has(e) || this.classes.push(e);\n });\n /**\n * Delete class\n * @param className - class name to delete\n */\n p(this, \"delete\", (e) => {\n const n = this.classes.indexOf(e);\n n > -1 && this.classes.splice(n, 1);\n });\n /**\n * Check if class exist in list\n * @param className - class name to check\n * @returns class name is in the list\n */\n p(this, \"has\", (e) => this.classes.includes(e));\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n p(this, \"join\", () => this.classes.join(\" \"));\n this.classes = e;\n }\n}\nconst Oe = (t) => Array.isArray(t) && t.every((e) => typeof e == \"string\"), Fe = (t, e) => e.includes(t == null ? void 0 : t.tagName.toLowerCase()), De = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier], mg-button', _e = (t) => {\n const e = G(t), n = I(t);\n return [t, ...e, ...n];\n}, G = (t, e = []) => {\n if (t.self !== t.top)\n try {\n const n = t.parent;\n return n ? (e.push(n), G(n, e)) : e;\n } catch (n) {\n return console.error(\"Different hosts between iframes:\", n), e;\n }\n return e;\n}, I = (t, e = []) => {\n if (t.frames.length > 0)\n for (const n of Array.from(t.frames))\n e.push(n), I(n, e);\n return e;\n}, Be = (t) => typeof t == \"string\" && t.trim() !== \"\", Ne = (t) => typeof t == \"string\" ? t.toLocaleLowerCase().normalize(\"NFD\").replaceAll(/[\\u0300-\\u036f]/g, \"\") : t, Ue = async (t) => t(), X = (t, e) => {\n if (!e)\n return;\n const n = e.split(\"/\");\n return `${t}${n.slice(2, n.length - 1).join(\"-\")}--docs`;\n}, ae = (t, e) => {\n if (e)\n return `${t}${e}`;\n}, K = (t) => {\n let e = t.overview ? `${t.overview}\n\n` : \"\";\n const n = t.props.filter(({ attr: s }) => s !== void 0);\n n.length && (e += `Attributes:\n`, e += n.map(({ attr: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`);\n const r = t.props.filter(({ attr: s }) => s === void 0);\n return r.length && (e += `Properties:\n`, e += r.map(({ name: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`), t.methods.length && (e += `Methods:\n`, e += t.methods.map(({ name: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`), t.events.length && (e += `Events:\n`, e += t.events.map(({ event: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`), t.listeners.length && (e += `Listeners:\n`, e += t.listeners.map(({ event: s }) => `- \\`${s}\\`\n`).join(\"\"), e += `\n`), t.slots.length && (e += `Slots:\n`, e += t.slots.map(({ name: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`), e;\n}, F = (t) => `${t.docs}\n\nType: \\`${t.type}\\``, Ce = (t, e, n, r) => ({\n $schema: \"https://json.schemastore.org/web-types\",\n name: t,\n version: e,\n \"description-markup\": \"markdown\",\n contributions: {\n html: {\n elements: n.components.map((s) => {\n const o = X(r, s.filePath);\n return {\n name: s.tag,\n description: K(s),\n \"doc-url\": o,\n attributes: s.props.filter((l) => l.attr).map((l) => ({\n name: l.attr,\n description: F(l),\n \"doc-url\": o,\n value: {\n type: l.type,\n default: l.default,\n required: l.required\n }\n })),\n js: {\n properties: s.props.map((l) => ({\n name: l.name,\n description: F(l),\n \"doc-url\": o,\n value: {\n type: l.type,\n default: l.default,\n required: l.required\n }\n })),\n events: s.events.map((l) => ({\n name: l.event,\n description: l.docs\n }))\n }\n };\n })\n }\n }\n}), fe = (t, e, n) => {\n if (n)\n return [\n { name: \"Storybook\", url: X(t, n) },\n { name: \"Sources\", url: ae(e, n) }\n ];\n}, $e = (t) => {\n if (!t.values.some(({ value: e }) => e === void 0))\n return t.values.map(({ value: e }) => ({ name: e }));\n}, He = (t, e, n, r) => ({\n version: t,\n tags: e.components.map((s) => {\n const o = fe(n, r, s.filePath);\n return {\n name: s.tag,\n description: K(s),\n attributes: s.props.map((l) => ({\n name: l.attr || l.name,\n description: F(l),\n values: $e(l),\n references: o\n })),\n references: o\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), Pe = (t) => {\n const e = { value: \"2023\", pattern: \"yyyy\" }, n = { value: \"12\", pattern: \"mm\" }, r = { value: \"24\", pattern: \"dd\" };\n return ge([e.value, n.value, r.value].join(\"-\"), t).replace(e.value, e.pattern).replace(n.value, n.pattern).replace(r.value, r.pattern);\n}, We = (t) => t.toISOString().split(\"T\")[0], ue = (t, e, n) => {\n const r = t.closest(\"[lang]\"), s = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), o = s.length > 0 && typeof s[0] == \"string\" ? s[0] : navigator.language || n, l = o.split(\"-\").shift();\n return {\n locale: o,\n messages: e[l] || e[n]\n };\n}, ze = (t, e, n) => new Intl.NumberFormat(e, { style: \"currency\", currency: n }).format(t), qe = (t, e) => new Intl.NumberFormat(e).format(t), de = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/, ge = (t, e) => typeof t != \"string\" || t === \"\" || !de.test(t) ? \"\" : new Intl.DateTimeFormat(e).format(new Date(t)), we = (t, e) => (n) => ue(n, t, e), Q = {\n allRenderFn: !1,\n cmpDidLoad: !0,\n cmpDidUnload: !1,\n cmpDidUpdate: !0,\n cmpDidRender: !0,\n cmpWillLoad: !0,\n cmpWillUpdate: !0,\n cmpWillRender: !0,\n connectedCallback: !0,\n disconnectedCallback: !0,\n element: !0,\n event: !0,\n hasRenderFn: !0,\n lifecycle: !0,\n hostListener: !0,\n hostListenerTargetWindow: !0,\n hostListenerTargetDocument: !0,\n hostListenerTargetBody: !0,\n hostListenerTargetParent: !1,\n hostListenerTarget: !0,\n member: !0,\n method: !0,\n mode: !0,\n observeAttribute: !0,\n prop: !0,\n propMutable: !0,\n reflect: !0,\n scoped: !0,\n shadowDom: !0,\n slot: !0,\n cssAnnotations: !0,\n state: !0,\n style: !0,\n formAssociated: !1,\n svg: !0,\n updatable: !0,\n vdomAttribute: !0,\n vdomXlink: !0,\n vdomClass: !0,\n vdomFunctional: !0,\n vdomKey: !0,\n vdomListener: !0,\n vdomRef: !0,\n vdomPropOrAttr: !0,\n vdomRender: !0,\n vdomStyle: !0,\n vdomText: !0,\n watchCallback: !0,\n taskQueue: !0,\n hotModuleReplacement: !1,\n isDebug: !1,\n isDev: !1,\n isTesting: !1,\n hydrateServerSide: !1,\n hydrateClientSide: !1,\n lifecycleDOMEvents: !1,\n lazyLoad: !1,\n profile: !1,\n slotRelocation: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n appendChildSlotFix: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n cloneNodeFix: !1,\n hydratedAttribute: !1,\n hydratedClass: !0,\n scriptDataOpts: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n scopedSlotTextContentFix: !1,\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n shadowDomShim: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n slotChildNodesFix: !1,\n invisiblePrehydration: !0,\n propBoolean: !0,\n propNumber: !0,\n propString: !0,\n constructableCSS: !0,\n cmpShouldUpdate: !0,\n devTools: !1,\n shadowDelegatesFocus: !0,\n initializeNextTick: !1,\n asyncLoading: !1,\n asyncQueue: !1,\n transformTagName: !1,\n attachStyles: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n experimentalSlotFixes: !1\n};\nlet k, D, x, _ = !1, R = !1, B = !1, h = !1;\nconst C = \"http://www.w3.org/1999/xlink\", H = {}, pe = \"http://www.w3.org/2000/svg\", he = \"http://www.w3.org/1999/xhtml\", ye = (t) => t != null, J = (t) => (t = typeof t, t === \"object\" || t === \"function\"), Y = (t, e, ...n) => {\n let r = null, s = null, o = null, l = !1, c = !1;\n const i = [], d = (a) => {\n for (let $ = 0; $ < a.length; $++)\n r = a[$], Array.isArray(r) ? d(r) : r != null && typeof r != \"boolean\" && ((l = typeof t != \"function\" && !J(r)) && (r = String(r)), l && c ? i[i.length - 1].$text$ += r : i.push(l ? M(null, r) : r), c = l);\n };\n if (d(n), e) {\n e.key && (s = e.key), e.name && (o = e.name);\n {\n const a = e.className || e.class;\n a && (e.class = typeof a != \"object\" ? a : Object.keys(a).filter(($) => a[$]).join(\" \"));\n }\n }\n if (typeof t == \"function\")\n return t(e === null ? {} : e, i, Se);\n const u = M(t, null);\n return u.$attrs$ = e, i.length > 0 && (u.$children$ = i), u.$key$ = s, u.$name$ = o, u;\n}, M = (t, e) => {\n const n = {\n $flags$: 0,\n $tag$: t,\n $text$: e,\n $elm$: null,\n $children$: null\n };\n return n.$attrs$ = null, n.$key$ = null, n.$name$ = null, n;\n}, ve = {}, be = (t) => t && t.$tag$ === ve, Se = {\n forEach: (t, e) => t.map(P).forEach(e),\n map: (t, e) => t.map(P).map(e).map(ke)\n}, P = (t) => ({\n vattrs: t.$attrs$,\n vchildren: t.$children$,\n vkey: t.$key$,\n vname: t.$name$,\n vtag: t.$tag$,\n vtext: t.$text$\n}), ke = (t) => {\n if (typeof t.vtag == \"function\") {\n const n = Object.assign({}, t.vattrs);\n return t.vkey && (n.key = t.vkey), t.vname && (n.name = t.vname), Y(t.vtag, n, ...t.vchildren || []);\n }\n const e = M(t.vtag, t.vtext);\n return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;\n}, W = (t, e, n, r, s, o) => {\n if (n !== r) {\n let l = w(t, e), c = e.toLowerCase();\n if (e === \"class\") {\n const i = t.classList, d = z(n), u = z(r);\n i.remove(...d.filter((a) => a && !u.includes(a))), i.add(...u.filter((a) => a && !d.includes(a)));\n } else if (e === \"style\") {\n for (const i in n)\n (!r || r[i] == null) && (i.includes(\"-\") ? t.style.removeProperty(i) : t.style[i] = \"\");\n for (const i in r)\n (!n || r[i] !== n[i]) && (i.includes(\"-\") ? t.style.setProperty(i, r[i]) : t.style[i] = r[i]);\n } else if (e !== \"key\")\n if (e === \"ref\")\n r && r(t);\n else if (!t.__lookupSetter__(e) && e[0] === \"o\" && e[1] === \"n\") {\n if (e[2] === \"-\" ? e = e.slice(3) : w(U, c) ? e = c.slice(2) : e = c[2] + e.slice(3), n || r) {\n const i = e.endsWith(Z);\n e = e.replace(Te, \"\"), n && T.rel(t, e, n, i), r && T.ael(t, e, r, i);\n }\n } else {\n const i = J(r);\n if ((l || i && r !== null) && !s)\n try {\n if (t.tagName.includes(\"-\"))\n t[e] = r;\n else {\n const u = r ?? \"\";\n e === \"list\" ? l = !1 : (n == null || t[e] != u) && (t[e] = u);\n }\n } catch {\n }\n let d = !1;\n c !== (c = c.replace(/^xlink\\:?/, \"\")) && (e = c, d = !0), r == null || r === !1 ? (r !== !1 || t.getAttribute(e) === \"\") && (d ? t.removeAttributeNS(C, e) : t.removeAttribute(e)) : (!l || o & 4 || s) && !i && (r = r === !0 ? \"\" : r, d ? t.setAttributeNS(C, e, r) : t.setAttribute(e, r));\n }\n }\n}, me = /\\s/, z = (t) => t ? t.split(me) : [], Z = \"Capture\", Te = new RegExp(Z + \"$\"), V = (t, e, n, r) => {\n const s = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, o = t && t.$attrs$ || H, l = e.$attrs$ || H;\n for (r in o)\n r in l || W(s, r, o[r], void 0, n, e.$flags$);\n for (r in l)\n W(s, r, o[r], l[r], n, e.$flags$);\n}, O = (t, e, n, r) => {\n const s = e.$children$[n];\n let o = 0, l, c, i;\n if (_ || (B = !0, s.$tag$ === \"slot\" && (k && r.classList.add(k + \"-s\"), s.$flags$ |= s.$children$ ? (\n // slot element has fallback content\n 2\n ) : (\n // slot element does not have fallback content\n 1\n ))), s.$text$ !== null)\n l = s.$elm$ = j.createTextNode(s.$text$);\n else if (s.$flags$ & 1)\n l = s.$elm$ = j.createTextNode(\"\");\n else {\n if (h || (h = s.$tag$ === \"svg\"), l = s.$elm$ = j.createElementNS(h ? pe : he, s.$flags$ & 2 ? \"slot-fb\" : s.$tag$), h && s.$tag$ === \"foreignObject\" && (h = !1), V(null, s, h), ye(k) && l[\"s-si\"] !== k && l.classList.add(l[\"s-si\"] = k), s.$children$)\n for (o = 0; o < s.$children$.length; ++o)\n c = O(t, s, o, l), c && l.appendChild(c);\n s.$tag$ === \"svg\" ? h = !1 : l.tagName === \"foreignObject\" && (h = !0);\n }\n return l[\"s-hn\"] = x, s.$flags$ & 3 && (l[\"s-sr\"] = !0, l[\"s-cr\"] = D, l[\"s-sn\"] = s.$name$ || \"\", i = t && t.$children$ && t.$children$[n], i && i.$tag$ === s.$tag$ && t.$elm$ && E(t.$elm$, !1)), l;\n}, E = (t, e) => {\n T.$flags$ |= 1;\n const n = t.childNodes;\n for (let r = n.length - 1; r >= 0; r--) {\n const s = n[r];\n s[\"s-hn\"] !== x && s[\"s-ol\"] && (se(s).insertBefore(s, N(s)), s[\"s-ol\"].remove(), s[\"s-ol\"] = void 0, s[\"s-sh\"] = void 0, B = !0), e && E(s, e);\n }\n T.$flags$ &= -2;\n}, ee = (t, e, n, r, s, o) => {\n let l = t[\"s-cr\"] && t[\"s-cr\"].parentNode || t, c;\n for (l.shadowRoot && l.tagName === x && (l = l.shadowRoot); s <= o; ++s)\n r[s] && (c = O(null, n, s, t), c && (r[s].$elm$ = c, l.insertBefore(c, N(e))));\n}, te = (t, e, n) => {\n for (let r = e; r <= n; ++r) {\n const s = t[r];\n if (s) {\n const o = s.$elm$;\n le(s), o && (R = !0, o[\"s-ol\"] ? o[\"s-ol\"].remove() : E(o, !0), o.remove());\n }\n }\n}, xe = (t, e, n, r, s = !1) => {\n let o = 0, l = 0, c = 0, i = 0, d = e.length - 1, u = e[0], a = e[d], $ = r.length - 1, f = r[0], g = r[$], v, y;\n for (; o <= d && l <= $; )\n if (u == null)\n u = e[++o];\n else if (a == null)\n a = e[--d];\n else if (f == null)\n f = r[++l];\n else if (g == null)\n g = r[--$];\n else if (A(u, f, s))\n m(u, f, s), u = e[++o], f = r[++l];\n else if (A(a, g, s))\n m(a, g, s), a = e[--d], g = r[--$];\n else if (A(u, g, s))\n (u.$tag$ === \"slot\" || g.$tag$ === \"slot\") && E(u.$elm$.parentNode, !1), m(u, g, s), t.insertBefore(u.$elm$, a.$elm$.nextSibling), u = e[++o], g = r[--$];\n else if (A(a, f, s))\n (u.$tag$ === \"slot\" || g.$tag$ === \"slot\") && E(a.$elm$.parentNode, !1), m(a, f, s), t.insertBefore(a.$elm$, u.$elm$), a = e[--d], f = r[++l];\n else {\n for (c = -1, i = o; i <= d; ++i)\n if (e[i] && e[i].$key$ !== null && e[i].$key$ === f.$key$) {\n c = i;\n break;\n }\n c >= 0 ? (y = e[c], y.$tag$ !== f.$tag$ ? v = O(e && e[l], n, c, t) : (m(y, f, s), e[c] = void 0, v = y.$elm$), f = r[++l]) : (v = O(e && e[l], n, l, t), f = r[++l]), v && se(u.$elm$).insertBefore(v, N(u.$elm$));\n }\n o > d ? ee(t, r[$ + 1] == null ? null : r[$ + 1].$elm$, n, r, l, $) : l > $ && te(e, o, d);\n}, A = (t, e, n = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === \"slot\" ? t.$name$ === e.$name$ : n ? !0 : t.$key$ === e.$key$ : !1, N = (t) => t && t[\"s-ol\"] || t, se = (t) => (t[\"s-ol\"] ? t[\"s-ol\"] : t).parentNode, m = (t, e, n = !1) => {\n const r = e.$elm$ = t.$elm$, s = t.$children$, o = e.$children$, l = e.$tag$, c = e.$text$;\n let i;\n c === null ? (h = l === \"svg\" ? !0 : l === \"foreignObject\" ? !1 : h, l === \"slot\" && !_ || V(t, e, h), s !== null && o !== null ? xe(r, s, e, o, n) : o !== null ? (t.$text$ !== null && (r.textContent = \"\"), ee(r, null, e, o, 0, o.length - 1)) : s !== null && te(s, 0, s.length - 1), h && l === \"svg\" && (h = !1)) : (i = r[\"s-cr\"]) ? i.parentNode.textContent = c : t.$text$ !== c && (r.data = c);\n}, ne = (t) => {\n const e = t.childNodes;\n for (const n of e)\n if (n.nodeType === 1) {\n if (n[\"s-sr\"]) {\n const r = n[\"s-sn\"];\n n.hidden = !1;\n for (const s of e)\n if (s !== n) {\n if (s[\"s-hn\"] !== n[\"s-hn\"] || r !== \"\") {\n if (s.nodeType === 1 && (r === s.getAttribute(\"slot\") || r === s[\"s-sn\"])) {\n n.hidden = !0;\n break;\n }\n } else if (s.nodeType === 1 || s.nodeType === 3 && s.textContent.trim() !== \"\") {\n n.hidden = !0;\n break;\n }\n }\n }\n ne(n);\n }\n}, b = [], re = (t) => {\n let e, n, r;\n for (const s of t.childNodes) {\n if (s[\"s-sr\"] && (e = s[\"s-cr\"]) && e.parentNode) {\n n = e.parentNode.childNodes;\n const o = s[\"s-sn\"];\n for (r = n.length - 1; r >= 0; r--)\n if (e = n[r], !e[\"s-cn\"] && !e[\"s-nr\"] && e[\"s-hn\"] !== s[\"s-hn\"] && !Q.experimentalSlotFixes)\n if (q(e, o)) {\n let l = b.find((c) => c.$nodeToRelocate$ === e);\n R = !0, e[\"s-sn\"] = e[\"s-sn\"] || o, l ? (l.$nodeToRelocate$[\"s-sh\"] = s[\"s-hn\"], l.$slotRefNode$ = s) : (e[\"s-sh\"] = s[\"s-hn\"], b.push({\n $slotRefNode$: s,\n $nodeToRelocate$: e\n })), e[\"s-sr\"] && b.map((c) => {\n q(c.$nodeToRelocate$, e[\"s-sn\"]) && (l = b.find((i) => i.$nodeToRelocate$ === e), l && !c.$slotRefNode$ && (c.$slotRefNode$ = l.$slotRefNode$));\n });\n } else\n b.some((l) => l.$nodeToRelocate$ === e) || b.push({\n $nodeToRelocate$: e\n });\n }\n s.nodeType === 1 && re(s);\n }\n}, q = (t, e) => t.nodeType === 1 ? t.getAttribute(\"slot\") === null && e === \"\" || t.getAttribute(\"slot\") === e : t[\"s-sn\"] === e ? !0 : e === \"\", le = (t) => {\n t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(le);\n}, Ee = (t, e, n = !1) => {\n var r, s, o, l, c;\n const i = t.$hostElement$, d = t.$cmpMeta$, u = t.$vnode$ || M(null, null), a = be(e) ? e : Y(null, null, e);\n if (x = i.tagName, d.$attrsToReflect$ && (a.$attrs$ = a.$attrs$ || {}, d.$attrsToReflect$.map(([$, f]) => a.$attrs$[f] = i[$])), n && a.$attrs$)\n for (const $ of Object.keys(a.$attrs$))\n i.hasAttribute($) && ![\"key\", \"ref\", \"style\", \"class\"].includes($) && (a.$attrs$[$] = i[$]);\n a.$tag$ = null, a.$flags$ |= 4, t.$vnode$ = a, a.$elm$ = u.$elm$ = i.shadowRoot || i, k = i[\"s-sc\"], _ = (d.$flags$ & 1) !== 0, D = i[\"s-cr\"], R = !1, m(u, a, n);\n {\n if (T.$flags$ |= 1, B) {\n re(a.$elm$);\n for (const $ of b) {\n const f = $.$nodeToRelocate$;\n if (!f[\"s-ol\"]) {\n const g = j.createTextNode(\"\");\n g[\"s-nr\"] = f, f.parentNode.insertBefore(f[\"s-ol\"] = g, f);\n }\n }\n for (const $ of b) {\n const f = $.$nodeToRelocate$, g = $.$slotRefNode$;\n if (g) {\n const v = g.parentNode;\n let y = g.nextSibling;\n {\n let L = (r = f[\"s-ol\"]) === null || r === void 0 ? void 0 : r.previousSibling;\n for (; L; ) {\n let S = (s = L[\"s-nr\"]) !== null && s !== void 0 ? s : null;\n if (S && S[\"s-sn\"] === f[\"s-sn\"] && v === S.parentNode && (S = S.nextSibling, !S || !S[\"s-nr\"])) {\n y = S;\n break;\n }\n L = L.previousSibling;\n }\n }\n (!y && v !== f.parentNode || f.nextSibling !== y) && f !== y && (!f[\"s-hn\"] && f[\"s-ol\"] && (f[\"s-hn\"] = f[\"s-ol\"].parentNode.nodeName), v.insertBefore(f, y), f.nodeType === 1 && (f.hidden = (o = f[\"s-ih\"]) !== null && o !== void 0 ? o : !1));\n } else\n f.nodeType === 1 && (n && (f[\"s-ih\"] = (l = f.hidden) !== null && l !== void 0 ? l : !1), f.hidden = !0);\n }\n }\n R && ne(a.$elm$), T.$flags$ &= -2, b.length = 0;\n }\n if (Q.experimentalScopedSlotChanges && d.$flags$ & 2)\n for (const $ of a.$elm$.childNodes)\n $[\"s-hn\"] !== x && !$[\"s-sh\"] && (n && $[\"s-ih\"] == null && ($[\"s-ih\"] = (c = $.hidden) !== null && c !== void 0 ? c : !1), $.hidden = !0);\n D = void 0;\n}, w = (t, e) => e in t, U = typeof window < \"u\" ? window : {}, j = U.document || { head: {} };\nU.HTMLElement;\nconst T = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (t) => t(),\n raf: (t) => requestAnimationFrame(t),\n ael: (t, e, n, r) => t.addEventListener(e, n, r),\n rel: (t, e, n, r) => t.removeEventListener(e, n, r),\n ce: (t, e) => new CustomEvent(t, e)\n}, Le = (t, e, n) => {\n [null, void 0, \"\", !1].includes(n) || [\"innerHTML\", \"style\"].includes(e) || t.setAttribute(e, [\"object\", \"function\"].includes(typeof n) ? \"/!\\\\ Object props are not rendered in the code example\" : n);\n}, oe = (t, e, n, r, s) => {\n if (e && typeof e == \"string\") {\n const o = document.createElement(e);\n Object.keys(n || {}).forEach((l) => {\n Le(o, l, n[l]);\n }), r == null || r.forEach((l) => {\n oe(o, l.$tag$, l.$attrs$, l.$children$, l.$text$);\n }), n != null && n.innerHTML && (o.innerHTML = n.innerHTML), t.appendChild(o);\n }\n s && (t.innerHTML = s);\n}, Ge = (t, e) => {\n const n = {};\n if (typeof t != \"object\")\n throw new Error(\"filterArgs - args isn't an object.\");\n for (const r in t)\n if (!r.startsWith(\"slot\")) {\n const s = t[r], o = r.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!e || !Object.keys(e).includes(r) || e[r] !== s) && (n[o] = s);\n }\n return n;\n}, Ie = (t, e) => {\n var r, s;\n const n = document.getElementById(\"storybook-root\");\n if (n)\n return (s = document.querySelector(\"[lang]\")) == null || s.setAttribute(\"lang\", ((r = e.globals) == null ? void 0 : r.locale) || \"en\"), Ee(\n {\n $ancestorComponent$: void 0,\n $flags$: 0,\n $modeName$: void 0,\n $cmpMeta$: {\n $flags$: 0,\n $tagName$: n.tagName\n },\n $hostElement$: n\n },\n t(e)\n ), n.children[n.children.length - 1];\n}, Xe = ({ $tag$: t, $attrs$: e, $children$: n, $text$: r }) => {\n const s = document.createElement(\"div\");\n return oe(s, t, e, n, r), s.innerHTML;\n}, Ke = ({ disconnect: t, observe: e, takeRecords: n }) => {\n class r {\n constructor(o) {\n /**\n *\n */\n p(this, \"disconnect\", t);\n /**\n *\n */\n p(this, \"observe\", e);\n /**\n *\n */\n p(this, \"takeRecords\", n);\n /**\n *\n */\n p(this, \"cb\");\n this.cb = o;\n }\n }\n return [window, global].forEach((s) => {\n Object.defineProperty(s, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: r\n });\n }), r;\n}, Qe = ({ disconnect: t, observe: e }) => {\n class n {\n constructor(s) {\n /**\n *\n */\n p(this, \"disconnect\", t);\n /**\n *\n */\n p(this, \"observe\", e);\n /**\n *\n */\n p(this, \"unobserve\");\n /**\n *\n */\n p(this, \"cb\");\n this.cb = s;\n }\n }\n return [window, global].forEach((r) => {\n Object.defineProperty(r, \"ResizeObserver\", {\n writable: !0,\n configurable: !0,\n value: n\n });\n }), n;\n};\nclass Ae extends Event {\n constructor() {\n super(...arguments);\n /**\n *\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n p(this, \"detail\");\n }\n}\nconst Je = () => {\n class t extends Ae {\n }\n return [window, global].forEach((e) => {\n Object.defineProperty(e, \"SubmitEvent\", {\n writable: !0,\n configurable: !0,\n value: t\n });\n }), t;\n};\nexport {\n Me as ClassList,\n Oe as allItemsAreString,\n Ne as cleanString,\n Re as createID,\n de as dateRegExp,\n We as dateToString,\n we as defineLocales,\n Ge as filterArgs,\n De as focusableElements,\n Pe as getLocaleDatePattern,\n G as getParentWindows,\n Xe as getStoryHTML,\n _e as getWindows,\n Fe as isTagName,\n Be as isValidString,\n ze as localeCurrency,\n ge as localeDate,\n qe as localeNumber,\n Ue as nextTick,\n Ke as setupMutationObserverMock,\n Qe as setupResizeObserverMock,\n Je as setupSubmitEventMock,\n Ie as stencilWrapper,\n He as vsCodeGenerator,\n Ce as webTypesGenerator\n};\n//# sourceMappingURL=index.es.js.map\n","import en from './en/messages.json';\nimport fr from './fr/messages.json';\nimport { defineLocales } from '@mgdis/stencil-helpers';\n\nconst defaultLocale = 'en';\nconst messages = { en, fr };\n\n/**\n * Get Intl object\n * @param element - element we need to get the language\n * @returns messages object\n */\nexport const initLocales = defineLocales(messages, defaultLocale);\n"],"mappings":"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"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { MgInputTitle } from '../../atoms/mg-input-title/mg-input-title';
|
|
2
|
-
import type { ClassList } from '@mgdis/stencil-helpers';
|
|
3
|
-
/**
|
|
4
|
-
* MgInput component props
|
|
5
|
-
*/
|
|
6
|
-
export interface MgInputProps {
|
|
7
|
-
identifier: string;
|
|
8
|
-
classCollection: ClassList;
|
|
9
|
-
label: string;
|
|
10
|
-
labelOnTop: boolean;
|
|
11
|
-
labelHide: boolean;
|
|
12
|
-
isFieldset: MgInputTitle['isLegend'];
|
|
13
|
-
value: string;
|
|
14
|
-
readonlyValue: string | string[];
|
|
15
|
-
required: boolean;
|
|
16
|
-
readonly: boolean;
|
|
17
|
-
mgWidth: Width;
|
|
18
|
-
disabled: boolean;
|
|
19
|
-
tooltip: string;
|
|
20
|
-
tooltipPosition: TooltipPosition;
|
|
21
|
-
helpText: string;
|
|
22
|
-
errorMessage: string;
|
|
23
|
-
ariaDescribedbyIDs: string[];
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Possible input width
|
|
27
|
-
*/
|
|
28
|
-
export declare const widths: readonly [2, 4, 16, "full"];
|
|
29
|
-
export type Width = (typeof widths)[number];
|
|
30
|
-
/**
|
|
31
|
-
* Possible Input types
|
|
32
|
-
*/
|
|
33
|
-
export type HTMLMgInputsElement = HTMLMgInputCheckboxElement | HTMLMgInputDateElement | HTMLMgInputNumericElement | HTMLMgInputPasswordElement | HTMLMgInputRadioElement | HTMLMgInputSelectElement | HTMLMgInputTextElement | HTMLMgInputTextareaElement | (HTMLMgInputToggleElement & {
|
|
34
|
-
required: true;
|
|
35
|
-
invalid: false;
|
|
36
|
-
displayError: () => void;
|
|
37
|
-
});
|
|
38
|
-
/**
|
|
39
|
-
* Available handlers
|
|
40
|
-
*/
|
|
41
|
-
export declare enum Handler {
|
|
42
|
-
BLUR = "blur",
|
|
43
|
-
FOCUS = "focus"
|
|
44
|
-
}
|
|
45
|
-
export declare const tooltipPositions: readonly ["input", "label"];
|
|
46
|
-
export type TooltipPosition = (typeof tooltipPositions)[number];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FunctionalComponent } from '../../../stencil-public-runtime';
|
|
2
|
-
import { type MgInputProps } from './MgInput.conf';
|
|
3
|
-
/**
|
|
4
|
-
* MgInput Interface
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Get input template
|
|
8
|
-
* @param props - MgInput Interface Props
|
|
9
|
-
* @param children - Represent scoped elements
|
|
10
|
-
* @param utils - Stencil.js utils
|
|
11
|
-
* @returns input template
|
|
12
|
-
*/
|
|
13
|
-
export declare const MgInput: FunctionalComponent<MgInputProps>;
|