@maggioli-design-system/magma 2.0.0 → 2.0.1
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.cjs.js +64 -22
- package/dist/cjs/mds-avatar.cjs.entry.js +27 -32
- package/dist/cjs/mds-badge.cjs.entry.js +3 -2
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +3 -2
- package/dist/cjs/mds-bibliography.cjs.entry.js +4 -3
- package/dist/cjs/mds-button_3.cjs.entry.js +36 -10
- package/dist/cjs/mds-dropdown.cjs.entry.js +4 -3
- package/dist/cjs/mds-entity.cjs.entry.js +1 -1
- package/dist/cjs/mds-file-preview.cjs.entry.js +17 -17
- package/dist/cjs/mds-header.cjs.entry.js +17 -8
- package/dist/cjs/mds-img.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-date-range.cjs.entry.js +7 -5
- package/dist/cjs/mds-input-select.cjs.entry.js +10 -8
- package/dist/cjs/mds-input-upload.cjs.entry.js +10 -6
- package/dist/cjs/mds-input.cjs.entry.js +4 -4
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +8 -5
- package/dist/cjs/mds-keyboard.cjs.entry.js +6 -3
- package/dist/cjs/mds-mention.cjs.entry.js +3 -2
- package/dist/cjs/mds-notification.cjs.entry.js +11 -8
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +3 -2
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +3 -2
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +5 -3
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +3 -2
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +2 -2
- package/dist/cjs/mds-text.cjs.entry.js +2 -1
- package/dist/cjs/mds-toast.cjs.entry.js +9 -3
- package/dist/cjs/mds-tooltip.cjs.entry.js +4 -4
- package/dist/collection/components/mds-avatar/mds-avatar.js +27 -32
- package/dist/collection/components/mds-badge/mds-badge.js +3 -2
- package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +3 -2
- package/dist/collection/components/mds-bibliography/mds-bibliography.js +4 -3
- package/dist/collection/components/mds-button/mds-button.js +7 -6
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +4 -3
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +6 -7
- package/dist/collection/components/mds-header/mds-header.js +17 -8
- package/dist/collection/components/mds-icon/mds-icon.js +29 -4
- package/dist/collection/components/mds-icon/services/icons-set.service.js +47 -18
- package/dist/collection/components/mds-img/mds-img.js +3 -3
- package/dist/collection/components/mds-input/mds-input.js +4 -4
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +7 -5
- package/dist/collection/components/mds-input-select/mds-input-select.js +10 -8
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +10 -6
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +6 -3
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +8 -5
- package/dist/collection/components/mds-mention/mds-mention.js +3 -2
- package/dist/collection/components/mds-notification/mds-notification.js +11 -8
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +3 -2
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +3 -2
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +5 -3
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +3 -2
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +2 -2
- package/dist/collection/components/mds-text/mds-text.js +2 -1
- package/dist/collection/components/mds-toast/mds-toast.js +9 -3
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +4 -4
- package/dist/collection/dictionary/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-badge.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-chip.js +1 -1
- package/dist/components/mds-dropdown.js +1 -1
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +3 -3
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-icon.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme-item.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/mds-tooltip.js +1 -1
- package/dist/components/mds-tree-item.js +1 -1
- package/dist/components/mds-url-view.js +1 -1
- package/dist/components/mds-usage.js +1 -1
- package/dist/components/{p-D3-GP4KF.js → p-6K9sFzLr.js} +1 -1
- package/dist/components/p-BBhbQT2f.js +1 -0
- package/dist/components/{p-B2A_hlV2.js → p-BFpRu7yD.js} +1 -1
- package/dist/components/p-BL63WAAq.js +8 -0
- package/dist/components/{p-Deh5Aia-.js → p-BShLEry5.js} +1 -1
- package/dist/components/{p-BJNK4p33.js → p-BYxxgEE_.js} +1 -1
- package/dist/components/p-BZFyAX-6.js +1 -0
- package/dist/components/p-BtMdmkID.js +1 -0
- package/dist/components/{p-Caksrfcd.js → p-ByaUOMp0.js} +1 -1
- package/dist/components/p-C1xZO_fq.js +1 -0
- package/dist/components/{p-cBZsPiMJ.js → p-C6Q4zFh6.js} +1 -1
- package/dist/components/{p-DLE5TNTp.js → p-CUQ7WIXh.js} +1 -1
- package/dist/components/p-Cd_8zD_I.js +1 -0
- package/dist/components/{p-DtxB7DYE.js → p-CnAeawmf.js} +1 -1
- package/dist/components/{p-Bt4xX5ww.js → p-DCrjf0F0.js} +1 -1
- package/dist/components/p-DlHJvYE7.js +1 -0
- package/dist/components/{p-BH3bWzRT.js → p-DlaJNPdd.js} +1 -1
- package/dist/components/{p-sqRs6oj4.js → p-DnrQaRnh.js} +1 -1
- package/dist/components/{p-CBLAz3_J.js → p-OPg_Naue.js} +1 -1
- package/dist/components/{p-C03KYHGv.js → p-RS4yyl41.js} +1 -1
- package/dist/components/{p--8aaJX-p.js → p-gv3eu44S.js} +1 -1
- package/dist/components/p-kff6xSdW.js +1 -0
- package/dist/components/p-pys1EQ60.js +1 -0
- package/dist/components/p-qketFgr0.js +1 -0
- package/dist/components/p-zml3K7nx.js +1 -0
- package/dist/documentation.json +4 -4
- package/dist/esm/index.js +64 -22
- package/dist/esm/mds-avatar.entry.js +27 -32
- package/dist/esm/mds-badge.entry.js +3 -2
- package/dist/esm/mds-benchmark-bar.entry.js +3 -2
- package/dist/esm/mds-bibliography.entry.js +4 -3
- package/dist/esm/mds-button_3.entry.js +36 -10
- package/dist/esm/mds-dropdown.entry.js +4 -3
- package/dist/esm/mds-entity.entry.js +1 -1
- package/dist/esm/mds-file-preview.entry.js +17 -17
- package/dist/esm/mds-header.entry.js +17 -8
- package/dist/esm/mds-img.entry.js +3 -3
- package/dist/esm/mds-input-date-range.entry.js +7 -5
- package/dist/esm/mds-input-select.entry.js +10 -8
- package/dist/esm/mds-input-upload.entry.js +10 -6
- package/dist/esm/mds-input.entry.js +4 -4
- package/dist/esm/mds-keyboard-key.entry.js +8 -5
- package/dist/esm/mds-keyboard.entry.js +6 -3
- package/dist/esm/mds-mention.entry.js +3 -2
- package/dist/esm/mds-notification.entry.js +11 -8
- package/dist/esm/mds-pref-language-item.entry.js +3 -2
- package/dist/esm/mds-pref-theme-item.entry.js +3 -2
- package/dist/esm/mds-push-notification-item.entry.js +1 -1
- package/dist/esm/mds-stepper-bar.entry.js +5 -3
- package/dist/esm/mds-tab-bar-item.entry.js +3 -2
- package/dist/esm/mds-table-header-cell.entry.js +2 -2
- package/dist/esm/mds-text.entry.js +2 -1
- package/dist/esm/mds-toast.entry.js +9 -3
- package/dist/esm/mds-tooltip.entry.js +4 -4
- package/dist/esm-es5/index.js +37 -26
- package/dist/esm-es5/mds-avatar.entry.js +4 -2
- package/dist/esm-es5/mds-badge.entry.js +2 -3
- package/dist/esm-es5/mds-benchmark-bar.entry.js +2 -3
- package/dist/esm-es5/mds-bibliography.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +14 -9
- package/dist/esm-es5/mds-dropdown.entry.js +2 -2
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +7 -5
- package/dist/esm-es5/mds-header.entry.js +8 -6
- package/dist/esm-es5/mds-img.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +5 -3
- package/dist/esm-es5/mds-input-select.entry.js +8 -6
- package/dist/esm-es5/mds-input-upload.entry.js +3 -1
- package/dist/esm-es5/mds-input.entry.js +3 -3
- package/dist/esm-es5/mds-keyboard-key.entry.js +3 -1
- package/dist/esm-es5/mds-keyboard.entry.js +4 -2
- package/dist/esm-es5/mds-mention.entry.js +1 -1
- package/dist/esm-es5/mds-notification.entry.js +4 -2
- package/dist/esm-es5/mds-pref-language-item.entry.js +2 -2
- package/dist/esm-es5/mds-pref-theme-item.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification-item.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar.entry.js +4 -4
- package/dist/esm-es5/mds-tab-bar-item.entry.js +3 -4
- package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
- package/dist/esm-es5/mds-text.entry.js +1 -1
- package/dist/esm-es5/mds-toast.entry.js +4 -2
- package/dist/esm-es5/mds-tooltip.entry.js +2 -2
- package/dist/hydrate/index.js +270 -164
- package/dist/hydrate/index.mjs +270 -164
- package/dist/magma-components/index.esm.js +1 -1
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/p-005172ba.entry.js +1 -0
- package/dist/magma-components/{p-9ca7932d.system.entry.js → p-05fa40aa.system.entry.js} +5 -3
- package/dist/magma-components/p-0827a5bd.entry.js +1 -0
- package/dist/magma-components/{p-1a8c5086.system.entry.js → p-15c77a98.system.entry.js} +2 -2
- package/dist/magma-components/p-18473d2f.entry.js +1 -0
- package/dist/magma-components/{p-f0a168f4.system.entry.js → p-18667ae7.system.entry.js} +3 -3
- package/dist/magma-components/p-19adde9d.entry.js +1 -0
- package/dist/magma-components/p-2217a7be.entry.js +1 -0
- package/dist/magma-components/{p-5a7ead55.system.entry.js → p-2386f0d6.system.entry.js} +2 -2
- package/dist/magma-components/p-2b56fc14.entry.js +1 -0
- package/dist/magma-components/p-3f747a63.system.entry.js +1 -0
- package/dist/magma-components/p-3ff30842.system.entry.js +16 -0
- package/dist/magma-components/{p-be692266.system.entry.js → p-49b120cb.system.entry.js} +2 -2
- package/dist/magma-components/{p-6cd7cfe3.entry.js → p-4af76eb3.entry.js} +1 -1
- package/dist/magma-components/p-4ba6cb3f.entry.js +1 -0
- package/dist/magma-components/p-4cadbd49.entry.js +1 -0
- package/dist/magma-components/p-518b55f3.entry.js +1 -0
- package/dist/magma-components/{p-960dc9b5.system.entry.js → p-5eec629c.system.entry.js} +4 -2
- package/dist/magma-components/{p-a8ec3080.system.entry.js → p-646034cb.system.entry.js} +1 -1
- package/dist/magma-components/{p-ce4e1a41.system.entry.js → p-677ab154.system.entry.js} +3 -1
- package/dist/magma-components/p-759133b3.entry.js +1 -0
- package/dist/magma-components/{p-cd5866c8.entry.js → p-7912f877.entry.js} +1 -1
- package/dist/magma-components/{p-3d8e63a2.system.entry.js → p-7d304fd4.system.entry.js} +3 -1
- package/dist/magma-components/{p-07fde74d.system.entry.js → p-7f6d708c.system.entry.js} +6 -4
- package/dist/magma-components/{p-6edc4f16.system.entry.js → p-88564e9b.system.entry.js} +1 -1
- package/dist/magma-components/{p-8c4fb7ec.system.entry.js → p-8b1abf81.system.entry.js} +10 -8
- package/dist/magma-components/p-8bbee38d.entry.js +1 -0
- package/dist/magma-components/{p-481008e9.system.entry.js → p-8bf680d6.system.entry.js} +5 -3
- package/dist/magma-components/{p-ce0ecc75.system.entry.js → p-8cb3a071.system.entry.js} +2 -2
- package/dist/magma-components/p-8f229eaf.entry.js +1 -0
- package/dist/magma-components/{p-3f7d3060.system.entry.js → p-94fa3396.system.entry.js} +14 -9
- package/dist/magma-components/{p-0ad3b4da.system.entry.js → p-9bbd4193.system.entry.js} +6 -6
- package/dist/magma-components/p-9caffe14.entry.js +1 -0
- package/dist/magma-components/p-9de1ac7f.entry.js +1 -0
- package/dist/magma-components/p-CnXBPjmc.system.js +1 -1
- package/dist/magma-components/{p-CBam2PI8.system.js → p-DVd2EM-q.system.js} +29 -18
- package/dist/magma-components/{p-f1462410.system.entry.js → p-a15da479.system.entry.js} +3 -4
- package/dist/magma-components/{p-e05d2df8.system.entry.js → p-ab997243.system.entry.js} +2 -2
- package/dist/magma-components/{p-efe8d359.entry.js → p-aea6081f.entry.js} +1 -1
- package/dist/magma-components/{p-1c0a7e24.system.entry.js → p-b0539d61.system.entry.js} +7 -5
- package/dist/magma-components/p-cc033985.system.entry.js +14 -0
- package/dist/magma-components/{p-a3fc2ea4.system.entry.js → p-cd84a264.system.entry.js} +7 -5
- package/dist/magma-components/p-d0457835.entry.js +1 -0
- package/dist/magma-components/p-d64311e2.entry.js +1 -0
- package/dist/magma-components/{p-54b995c2.system.entry.js → p-da4dc390.system.entry.js} +1 -1
- package/dist/magma-components/p-dda7a33b.entry.js +1 -0
- package/dist/magma-components/p-e375c8b1.entry.js +1 -0
- package/dist/magma-components/p-e3fce8ca.entry.js +1 -0
- package/dist/magma-components/{p-9626eaff.system.entry.js → p-e9a16f22.system.entry.js} +3 -3
- package/dist/magma-components/p-ea0091b6.entry.js +1 -0
- package/dist/magma-components/{p-a3279a73.system.entry.js → p-ec00defc.system.entry.js} +6 -4
- package/dist/magma-components/p-edfb0d7a.entry.js +1 -0
- package/dist/magma-components/{p-0715a2cb.system.entry.js → p-f9d9cf7c.system.entry.js} +2 -3
- package/dist/magma-components/p-fa163e86.entry.js +1 -0
- package/dist/magma-components/p-fe19080a.entry.js +8 -0
- package/dist/magma-components/p-ff49fb35.entry.js +1 -0
- package/dist/stats.json +383 -383
- package/dist/types/components/mds-avatar/mds-avatar.d.ts +2 -0
- package/dist/types/components/mds-header/mds-header.d.ts +1 -0
- package/dist/types/components/mds-icon/mds-icon.d.ts +5 -0
- package/dist/types/components/mds-icon/services/icons-set.service.d.ts +10 -9
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +1 -0
- package/dist/types/components/mds-toast/mds-toast.d.ts +1 -0
- package/package.json +10 -10
- package/dist/components/p-B9DJLgwr.js +0 -1
- package/dist/components/p-BouRLCYL.js +0 -1
- package/dist/components/p-CVgKDZPF.js +0 -1
- package/dist/components/p-CatD1iUY.js +0 -1
- package/dist/components/p-CbufYCNj.js +0 -1
- package/dist/components/p-Cehcn85x.js +0 -1
- package/dist/components/p-ClKNADBg.js +0 -8
- package/dist/components/p-D8I1RblC.js +0 -1
- package/dist/components/p-DaI5QqNu.js +0 -1
- package/dist/components/p-Dj_oN194.js +0 -1
- package/dist/components/p-DmELzfvf.js +0 -1
- package/dist/magma-components/p-03be5c0c.entry.js +0 -1
- package/dist/magma-components/p-0af8d821.entry.js +0 -1
- package/dist/magma-components/p-1780b8ba.entry.js +0 -1
- package/dist/magma-components/p-1dcfb13e.entry.js +0 -1
- package/dist/magma-components/p-241dbf61.entry.js +0 -1
- package/dist/magma-components/p-27ea99ee.entry.js +0 -8
- package/dist/magma-components/p-4297da23.system.entry.js +0 -1
- package/dist/magma-components/p-454c4774.entry.js +0 -1
- package/dist/magma-components/p-59de81ac.entry.js +0 -1
- package/dist/magma-components/p-5e43274a.system.entry.js +0 -15
- package/dist/magma-components/p-66ce2dee.entry.js +0 -1
- package/dist/magma-components/p-69d1b815.entry.js +0 -1
- package/dist/magma-components/p-75fcf1a4.entry.js +0 -1
- package/dist/magma-components/p-78fef00a.entry.js +0 -1
- package/dist/magma-components/p-7fc29447.entry.js +0 -1
- package/dist/magma-components/p-8b7fa8d7.entry.js +0 -1
- package/dist/magma-components/p-9b2ee3fe.entry.js +0 -1
- package/dist/magma-components/p-a5ac5e0b.entry.js +0 -1
- package/dist/magma-components/p-a906a02f.system.entry.js +0 -16
- package/dist/magma-components/p-ac544ab1.entry.js +0 -1
- package/dist/magma-components/p-b23a6c83.entry.js +0 -1
- package/dist/magma-components/p-b9fecfd5.entry.js +0 -1
- package/dist/magma-components/p-c1fb2eb7.entry.js +0 -1
- package/dist/magma-components/p-c70d7159.entry.js +0 -1
- package/dist/magma-components/p-ddbdce09.entry.js +0 -1
- package/dist/magma-components/p-e3e893c4.entry.js +0 -1
- package/dist/magma-components/p-e4868ade.entry.js +0 -1
|
@@ -12,7 +12,7 @@ class IconsSetController {
|
|
|
12
12
|
this._iconsSets = new Map();
|
|
13
13
|
this._svgPathUpdate = 'mdsIconSvgPathUpdate';
|
|
14
14
|
this.cacheExp = 60 * 60 * 1000 * 24;
|
|
15
|
-
this.listeners =
|
|
15
|
+
this.listeners = new Set();
|
|
16
16
|
this.memoryCache = {};
|
|
17
17
|
// Try to retrieve svg from cache
|
|
18
18
|
this.isCacheAvailable = async (url) => {
|
|
@@ -91,29 +91,46 @@ class IconsSetController {
|
|
|
91
91
|
return { set: this._iconsSets.get(iconName.split('/')[0]) };
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* Sets the directory of the svg files. Query and fragment are dropped: the icon name is
|
|
95
|
+
* appended to the path.
|
|
95
96
|
*
|
|
96
|
-
* input path: https://www.abc.com/svg/path
|
|
97
|
-
* svgPath =
|
|
97
|
+
* input path: https://www.abc.com/svg/path/
|
|
98
|
+
* svgPath = https://www.abc.com/svg/path/
|
|
98
99
|
*
|
|
99
|
-
* input path: localhost:9000/svg/path
|
|
100
|
-
* svgPath = localhost:9000/svg/path
|
|
100
|
+
* input path: localhost:9000/svg/path/
|
|
101
|
+
* svgPath = //localhost:9000/svg/path/ (with the protocol of the page)
|
|
101
102
|
*
|
|
102
|
-
* input path: /svg/path
|
|
103
|
-
* svgPath =
|
|
103
|
+
* input path: /svg/path/ or svg/path/
|
|
104
|
+
* svgPath = unchanged, resolved by `fetch` against the document base URL on each request
|
|
104
105
|
*
|
|
105
|
-
* input path:
|
|
106
|
+
* input path: empty or not a URL
|
|
106
107
|
* throw error
|
|
107
|
-
*
|
|
108
108
|
*/
|
|
109
109
|
setSvgPath(svgPath) {
|
|
110
|
-
const
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
const error = Error(`Svg path not recognize ${svgPath}, ensure is a absolute path starting with '/' or a url`);
|
|
111
|
+
if (typeof svgPath !== 'string' || svgPath.trim() === '') {
|
|
112
|
+
throw error;
|
|
113
|
+
}
|
|
114
|
+
const value = svgPath.trim();
|
|
115
|
+
// a host with a port and no scheme (`localhost:9000/svg/`) would be read as the scheme `localhost:`
|
|
116
|
+
const path = /^[\w.-]+:\d+(\/|$)/.test(value) ? `//${value}` : value;
|
|
117
|
+
let url;
|
|
118
|
+
try {
|
|
119
|
+
// the placeholder base only validates a path, which is kept as it is
|
|
120
|
+
url = new URL(path, 'http://localhost/');
|
|
121
|
+
}
|
|
122
|
+
catch (_a) {
|
|
123
|
+
throw error;
|
|
114
124
|
}
|
|
115
125
|
if (typeof window !== 'undefined') {
|
|
116
|
-
|
|
126
|
+
if (/^[a-z][a-z\d+.-]*:/i.test(path)) {
|
|
127
|
+
url.search = '';
|
|
128
|
+
url.hash = '';
|
|
129
|
+
this._svgPath = url.href;
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
this._svgPath = path.replace(/[?#].*$/, '');
|
|
133
|
+
}
|
|
117
134
|
window.dispatchEvent(new Event(this._svgPathUpdate));
|
|
118
135
|
}
|
|
119
136
|
}
|
|
@@ -121,7 +138,10 @@ class IconsSetController {
|
|
|
121
138
|
return this._svgPath;
|
|
122
139
|
}
|
|
123
140
|
registerListener(callback) {
|
|
124
|
-
this.listeners.
|
|
141
|
+
this.listeners.add(callback);
|
|
142
|
+
}
|
|
143
|
+
unregisterListener(callback) {
|
|
144
|
+
this.listeners.delete(callback);
|
|
125
145
|
}
|
|
126
146
|
setUpListener() {
|
|
127
147
|
if (typeof window !== 'undefined') {
|
|
@@ -141,6 +161,10 @@ class IconsSetController {
|
|
|
141
161
|
if (Build.isServer && !Build.isTesting) {
|
|
142
162
|
return '';
|
|
143
163
|
}
|
|
164
|
+
// an icon without the attribute passes an undefined (or null) name: there is nothing to load
|
|
165
|
+
if (!name) {
|
|
166
|
+
return '';
|
|
167
|
+
}
|
|
144
168
|
try {
|
|
145
169
|
if (!this._svgPath && typeof window === 'undefined') {
|
|
146
170
|
throw Error('Cant find svgPath, ensure you set it');
|
|
@@ -162,9 +186,14 @@ class IconsSetController {
|
|
|
162
186
|
}
|
|
163
187
|
}
|
|
164
188
|
const src = this._svgPath && !name.startsWith('http') ? this._svgPath.concat(name, '.svg') : name;
|
|
189
|
+
// Memory first: every instance of an icon already loaded skips the IndexedDB round-trip
|
|
190
|
+
if (this.memoryCache[src]) {
|
|
191
|
+
return this.memoryCache[src];
|
|
192
|
+
}
|
|
165
193
|
const lsCache = await this.isCacheAvailable(src);
|
|
166
|
-
if (
|
|
167
|
-
|
|
194
|
+
if (lsCache) {
|
|
195
|
+
this.memoryCache[src] = lsCache;
|
|
196
|
+
return lsCache;
|
|
168
197
|
}
|
|
169
198
|
const response = await fetch(src);
|
|
170
199
|
if (!response.ok) {
|
|
@@ -85,14 +85,14 @@ export class MdsImg {
|
|
|
85
85
|
this.imageError = false;
|
|
86
86
|
}
|
|
87
87
|
componentWillLoad() {
|
|
88
|
-
var _a;
|
|
88
|
+
var _a, _b;
|
|
89
89
|
this.consumptionMode =
|
|
90
90
|
(_a = localStorage.getItem('mdsPrefConsumption')) !== null && _a !== void 0 ? _a : 'high';
|
|
91
|
-
if (this.srcsetConsumption
|
|
91
|
+
if (this.srcsetConsumption != null && this.srcsetConsumption !== '') {
|
|
92
92
|
this.srcsetConsumptionData = this.formatConsumptionData(this.srcsetConsumption);
|
|
93
93
|
}
|
|
94
94
|
this.image = this.host.querySelector('img');
|
|
95
|
-
if (this.alt === '') {
|
|
95
|
+
if (((_b = this.alt) !== null && _b !== void 0 ? _b : '') === '') {
|
|
96
96
|
this.alt = this.autoAltName();
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -228,7 +228,7 @@ export class MdsInput {
|
|
|
228
228
|
}
|
|
229
229
|
componentWillLoad() {
|
|
230
230
|
// this.valuePristine = this.value
|
|
231
|
-
var _a;
|
|
231
|
+
var _a, _b;
|
|
232
232
|
// If the mds-input has a tabindex attribute we get the value
|
|
233
233
|
// and pass it down to the native input, then remove it from the
|
|
234
234
|
// mds-input to avoid causing tabbing twice on the same element
|
|
@@ -239,7 +239,7 @@ export class MdsInput {
|
|
|
239
239
|
}
|
|
240
240
|
setFormValue(this.internals, (_a = this.value) !== null && _a !== void 0 ? _a : null);
|
|
241
241
|
this.maxLengthChanged(this.maxlength);
|
|
242
|
-
this.isValid = !(this.required && this.value === '');
|
|
242
|
+
this.isValid = !(this.required && ((_b = this.value) !== null && _b !== void 0 ? _b : '') === '');
|
|
243
243
|
}
|
|
244
244
|
componentDidLoad() {
|
|
245
245
|
var _a, _b, _c;
|
|
@@ -364,9 +364,9 @@ export class MdsInput {
|
|
|
364
364
|
}
|
|
365
365
|
render() {
|
|
366
366
|
var _a, _b, _c;
|
|
367
|
-
return (h(Host, { key: '
|
|
367
|
+
return (h(Host, { key: '845f538a792b4465e10fcfaf54b10b8fdff8b1e9', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.type === 'number' && this.controlsLayout === 'horizontal' && (h("mds-button", { key: '3e98aeaf32c5fe6904579e7f8750a52bd8ed3779', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), variant: "dark", tone: "text", part: "counter-button-decrease" })), this.type === 'textarea' ? (h("textarea", { "aria-label": this.accessibleName, class: clsx('input', ((_a = this.icon) !== null && _a !== void 0 ? _a : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoFocus: this.autofocus, disabled: this.disabled, maxLength: this.maxlength, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: (input) => (this.nativeInput = input), required: this.required, tabIndex: this.tabindex, value: this.value })) : (h("input", { "aria-label": this.accessibleName, class: clsx('input', ((_b = this.icon) !== null && _b !== void 0 ? _b : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoComplete: this.autocomplete, autoFocus: this.autofocus, disabled: this.disabled, max: this.max, maxLength: this.maxlength, min: this.min, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, pattern: this.pattern, list: this.datalistId, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: (input) => (this.nativeInput = input), required: this.required, step: this.step, tabIndex: this.tabindex, type: this.type === 'password' && this.isPasswordVisible ? 'text' : this.type, value: this.value })), this.type === 'number' && this.controlsLayout === 'vertical' && (h("div", { key: '7ab2af1009a7e03a842ed67cd325993c9a21edec', class: "counter counter--vertical" }, h("mds-button", { key: '2ef1243427d235fa097a9b2e5add1fb7e67ae5fc', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), variant: "dark", size: "sm", tone: "text", part: "counter-button-increase" }), h("mds-button", { key: '2053f7c658aa16a8a84a7173f5db555f34800e7a', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), variant: "dark", size: "sm", tone: "text", part: "counter-button-decrease" }))), this.type === 'number' && this.controlsLayout === 'horizontal' && (h("mds-button", { key: '3efe63b2ca3abe15080f721d383d3cadfaf5f5f3', class: "counter-button counter-button--horizontal counter-button--increase", variant: "dark", tone: "text", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" })), this.type === 'password' && (h("mds-button", { key: '910df4fde2fb8a423cd12fde3960018a85e1c583', class: "password-toggle-button", variant: "dark", tone: "text", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, onClick: this.handlePasswordToggleClick, tabindex: "0", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" })), this.type === 'password' && !this.isPasswordVisible && ((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) > 0 && (h("div", { key: '1440dbe88ab432466f355d5864672560c2db204c', class: "password-mask" }, h("div", { key: '864ba9b91cbca7057b4694e371e018c9df62a430', class: "password-mask-items", part: "password-mask-items" }, Array.from({ length: this.value.length }).map((_, index) => (h("div", { key: index, class: "password-mask-item", part: "password-mask-item" })))))), this.mic && (h("mds-button", { key: 'ae60b8787ca87a563823f4f9e5dcc0ec883d88b3', class: clsx('mic-toggle-button', this.isRecording && 'mic-toggle-button--recording'), icon: this.speechToTextIcon, onClick: this.toggleTextRecognition, tabindex: "0", title: this.t.get(this.speechToTextLabelKey), variant: "dark", tone: "text", part: "mic-toggle-button" })), h("mds-input-tip", { key: '428b89c685610212d326639fe26420f42b4c6a6a', position: "top", active: this.hasFocus, part: "tip-top" }, this.disabled && h("mds-input-tip-item", { key: '1c1cefd4812f2053a2a7dac7f671741190e6d1f9', expanded: true, variant: "disabled" }), this.readonly && h("mds-input-tip-item", { key: '345b4aa563e0256ead4ca1d1273c7139d558b372', expanded: true, variant: "readonly" }), this.required && (h("mds-input-tip-item", { key: '490afbec9f2f6bf267909ab3815b0064a5eccbdd', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' }))), h("mds-input-tip", { key: 'f97f2382bb8333189adaa9cba8b4b36a0e85b0a5', position: "bottom", active: this.hasFocus, part: "tip-bottom" }, this.tip && (h("mds-input-tip-item", { key: '37331d0c0d73c035ef897aab7535eadc9d7e8089', expanded: true, variant: "text" }, this.tip)), this.maxlength && (h("mds-input-tip-item", { key: '2f15cf016309493535f60e924ea17bad3c04aa5c', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel))), this.datalist && (h("datalist", { key: '080fdb03ff33d0b7b4f2097497daba098159db91', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
|
|
368
368
|
return h("option", { key: i, value: element });
|
|
369
|
-
}))), this.icon && !this.await && (h("mds-icon", { key: '
|
|
369
|
+
}))), this.icon && !this.await && (h("mds-icon", { key: '8f1a7c1559c81cd7bb0b2418fc81a66055e8b374', class: clsx('icon', this.variant), name: this.icon })), h("mds-spinner", { key: '172dfc79d67b94a453ede3dd6d991ab90a161f1c', running: this.await, class: clsx('await', this.variant) })));
|
|
370
370
|
}
|
|
371
371
|
static get is() { return "mds-input"; }
|
|
372
372
|
static get encapsulation() { return "shadow"; }
|
|
@@ -268,10 +268,12 @@ export class MdsInputDateRange {
|
|
|
268
268
|
this.syncExternalDate('end', newValue);
|
|
269
269
|
}
|
|
270
270
|
componentWillLoad() {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
this.
|
|
274
|
-
this.
|
|
271
|
+
var _a, _b;
|
|
272
|
+
// a null bound by a framework counts as no date, as the watchers already do
|
|
273
|
+
this.internalStartDate = (_a = this.startDate) !== null && _a !== void 0 ? _a : '';
|
|
274
|
+
this.internalEndDate = (_b = this.endDate) !== null && _b !== void 0 ? _b : '';
|
|
275
|
+
this.initialStartDate = this.internalStartDate;
|
|
276
|
+
this.initialEndDate = this.internalEndDate;
|
|
275
277
|
this.visibleCalendarDate = this.resolveVisibleCalendarDate(this.internalStartDate, this.internalEndDate);
|
|
276
278
|
// Se max è precedente a min, imposto max uguale a min
|
|
277
279
|
if (this.min !== null && this.min !== '' && this.max !== null && this.max !== '') {
|
|
@@ -453,7 +455,7 @@ export class MdsInputDateRange {
|
|
|
453
455
|
return (h("div", { class: "calendars" }, this.renderCalendarPreselectionPanel(), h("mds-calendar", Object.assign({ key: `${this.calendarKey}-start`, hideToday: this.hideToday, hideNextButton: true, disableMonthYearSelection: true, viewDate: this.getCalendarViewDate(), onMdsCalendarNavigate: this.handleCalendarNavigate, onMdsCalendarChange: this.handleCalendarChange, onMdsCalendarPreselect: this.handleCalendarPreselect, startDate: this.internalStartDate, endDate: this.internalEndDate }, (this.min !== null && this.min !== '' ? { min: this.min } : {}), (this.max !== null && this.max !== '' ? { max: this.max } : {}))), h("mds-calendar", Object.assign({ key: `${this.calendarKey}-end`, hideToday: this.hideToday, hidePreviousButton: true, disableMonthYearSelection: true, viewDate: this.getCalendarViewDate(1), onMdsCalendarNavigate: this.handleCalendarNavigate, onMdsCalendarChange: this.handleCalendarChange, onMdsCalendarPreselect: this.handleCalendarPreselect, startDate: this.internalStartDate, endDate: this.internalEndDate }, (this.min !== null && this.min !== '' ? { min: this.min } : {}), (this.max !== null && this.max !== '' ? { max: this.max } : {})))));
|
|
454
456
|
}
|
|
455
457
|
render() {
|
|
456
|
-
return (h(Host, { key: '
|
|
458
|
+
return (h(Host, { key: '718cf4ea938605b2569a5fa19e264cf176282a80', onClick: this.focusDateInput, "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, h("div", { key: 'f8dade2fe985e70d2943aee08d6f84123e53f38b', class: "inputs" }, h("div", { key: 'be2dd565a6364f3ccf287514ea5726e332577389', class: "input-element" }, h("mds-text", { key: 'a6c3e21e613ee60986acb06edc852f110357fc31', class: "date-label", typography: "detail", onClick: this.focusStartDateInput }, this.t.get('from')), h("div", { key: '08cdedb27bcdcfd35b94e90ae261f64d8694b0ef', class: "input-wrapper" }, h("slot", { key: 'da01b0a0fc65c8cf7094cf0db83be1d942b332b1', name: "start" }))), h("div", { key: '63e620c85a9a23660645a0e28648912cbcd79919', class: "input-element" }, h("mds-text", { key: '801f3a01f11502a5878e0ede645f238ef80fa388', class: "date-label", typography: "detail", onClick: this.focusEndDateInput }, this.t.get('to')), h("div", { key: 'fa57d66e7f8318685256e1febf35b291f7b59f19', class: "input-wrapper" }, h("slot", { key: '68e860a29b253276b3ebb29b502e7c432bb1ea9c', name: "end" })))), h("div", { key: 'cb145bf4822dda4e6dbe07240089944740b090fe', class: "action-open-calendar-wrapper" }, h("mds-button", { key: '9216baaff6c990532db1c8366b054655065a399f', class: "action-open-calendar", variant: "dark", tone: "text", icon: miBaselineCalendarToday, id: "calendar-dropdown", onClick: this.handleOpenCalendarClick })), h("mds-dropdown", { key: '94f181ff090a617de824cd46ea21981806f7f40a', ref: (el) => (this.dropdownRef = el), target: "#calendar-dropdown", "disable-auto-placement": true, placement: "bottom-end", role: "group" }, this.dualCalendar ? this.renderDualCalendars() : this.renderSingleCalendar())));
|
|
457
459
|
}
|
|
458
460
|
syncFormValue() {
|
|
459
461
|
var _a, _b, _c, _d;
|
|
@@ -43,6 +43,8 @@ export class MdsInputSelect {
|
|
|
43
43
|
this.onFocus = () => {
|
|
44
44
|
this.hasFocus = true;
|
|
45
45
|
};
|
|
46
|
+
// a removed attribute or a null bound by a framework counts as no placeholder, like ''
|
|
47
|
+
this.hasPlaceholder = () => { var _a; return ((_a = this.placeholder) !== null && _a !== void 0 ? _a : '') !== ''; };
|
|
46
48
|
this.emptyOptions = () => {
|
|
47
49
|
var _a;
|
|
48
50
|
const select = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('select');
|
|
@@ -51,10 +53,10 @@ export class MdsInputSelect {
|
|
|
51
53
|
return;
|
|
52
54
|
}
|
|
53
55
|
options.forEach((option, index) => {
|
|
54
|
-
if (this.
|
|
56
|
+
if (!this.hasPlaceholder()) {
|
|
55
57
|
option.remove();
|
|
56
58
|
}
|
|
57
|
-
if (this.
|
|
59
|
+
if (this.hasPlaceholder() && index > 0) {
|
|
58
60
|
option.remove();
|
|
59
61
|
}
|
|
60
62
|
});
|
|
@@ -66,10 +68,10 @@ export class MdsInputSelect {
|
|
|
66
68
|
if (options == null) {
|
|
67
69
|
return;
|
|
68
70
|
}
|
|
69
|
-
if (
|
|
71
|
+
if (!this.hasPlaceholder() && options.length > 0) {
|
|
70
72
|
this.emptyOptions();
|
|
71
73
|
}
|
|
72
|
-
if (this.
|
|
74
|
+
if (this.hasPlaceholder() && options.length > 1) {
|
|
73
75
|
this.emptyOptions();
|
|
74
76
|
}
|
|
75
77
|
elements === null || elements === void 0 ? void 0 : elements.forEach((element) => {
|
|
@@ -87,7 +89,7 @@ export class MdsInputSelect {
|
|
|
87
89
|
element.selected = element.value === this.value;
|
|
88
90
|
});
|
|
89
91
|
}
|
|
90
|
-
else if (this.
|
|
92
|
+
else if (!this.hasPlaceholder()) {
|
|
91
93
|
this.value = (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll('option')[0].value;
|
|
92
94
|
}
|
|
93
95
|
};
|
|
@@ -126,7 +128,7 @@ export class MdsInputSelect {
|
|
|
126
128
|
* @param oldValue placeholder old value
|
|
127
129
|
*/
|
|
128
130
|
placeholderChanged(newValue, oldValue) {
|
|
129
|
-
if (newValue
|
|
131
|
+
if (newValue != null && newValue !== '' && (oldValue !== null && oldValue !== void 0 ? oldValue : '') === '') {
|
|
130
132
|
let defaultOption = document.querySelector('.placeholder-option');
|
|
131
133
|
if (defaultOption)
|
|
132
134
|
defaultOption.remove();
|
|
@@ -163,12 +165,12 @@ export class MdsInputSelect {
|
|
|
163
165
|
}
|
|
164
166
|
}
|
|
165
167
|
render() {
|
|
166
|
-
return (h(Host, { key: '
|
|
168
|
+
return (h(Host, { key: 'd592094ab2ad5a0af7603c62516dcc85961b1986', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, h("select", { key: '3d8afceda13a8f8cda25008aa159131512607185', "aria-label": this.accessibleName, class: "input", onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: (el) => (this.selectEl = el) }, h("option", { key: 'd51ff2bc9e48b52042a5a1b11f4cd9249ad3f841', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue != null &&
|
|
167
169
|
this.defaultValue !== '' &&
|
|
168
170
|
this.defaultValue !== 0 &&
|
|
169
171
|
!Number.isNaN(this.defaultValue)
|
|
170
172
|
? undefined
|
|
171
|
-
: true }, this.placeholder)), h("div", { key: '
|
|
173
|
+
: true }, this.placeholder)), h("div", { key: 'e7433aed2a6eb737f729267ae910ac7ad0d66f91', class: "icon-container" }, h("mds-icon", { key: '1000ecef2c0d3967ab36ca6b26492f0d16828e0b', class: "icon", name: miBaselineKeyboardArrowDown })), h("div", { key: 'f50de5c45a4a81a1671c11eb7f5208cf90ad420c', class: "option-container" }, h("slot", { key: '4e81caee891537bb05722c66bd08fdea2656d2f5', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: '8b2529c44303088088d451632239594d1029d328', position: "top", active: this.hasFocus, part: "tip-top" }, this.disabled && h("mds-input-tip-item", { key: 'ba2ab348eb11aada0385bb88908ff0f218146a69', expanded: true, variant: "disabled" }), this.required && (h("mds-input-tip-item", { key: 'a4c571f697981eb930b6aed49cd5788dc9a98cfd', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' })))));
|
|
172
174
|
}
|
|
173
175
|
static get is() { return "mds-input-select"; }
|
|
174
176
|
static get encapsulation() { return "shadow"; }
|
|
@@ -326,21 +326,25 @@ export class MdsInputUpload {
|
|
|
326
326
|
return b.id - a.id;
|
|
327
327
|
}
|
|
328
328
|
isSortTabShown() {
|
|
329
|
-
|
|
329
|
+
var _a;
|
|
330
|
+
// the type has no empty sort, but the attribute can be empty or removed
|
|
331
|
+
const sort = (_a = this.sort) !== null && _a !== void 0 ? _a : '';
|
|
332
|
+
return sort !== '' && this.files.length > 1;
|
|
330
333
|
}
|
|
331
334
|
render() {
|
|
332
|
-
|
|
335
|
+
var _a;
|
|
336
|
+
return (h(Host, { key: '1282e72ee06803608c3814261fe7afb90bba04dd' }, h("div", { key: '5ea63f793cbbac434e17d9970ad1cf46b09babea', class: "drag-area", onDrop: this.onDropHandler, onDragOver: this.onDragOverHandler, onDragEnter: this.onDragEnterHandler, onDragLeave: this.onDragLeaveHandler, ref: (dragArea) => (this.elDragArea = dragArea) }, h("div", { key: 'c578728c760a7c42b58cbe1947c5e210d2c4b513', class: "main-action" }, h("div", { key: '53290a67d9a6c2af46b7fcf980822f25ab9415d2', class: "main-action-icon" }, h("mds-icon", { key: '98bb7709ed2e548c5b1d3ef850cf594fd582f31e', class: "icon", name: miOutlineFileUpload })), h("mds-text", { key: '0b5e87c56e64b00a4a60a678f7b5dc41e4f1a343', animation: this.animateText ? 'yugop' : 'none', variant: "title", typography: "action", text: this.dragging
|
|
333
337
|
? this.t.get('dragEnter')
|
|
334
|
-
: this.t.get('clickOrDrag', { maxFiles: this.maxFiles }) })), h("div", { key: '
|
|
338
|
+
: this.t.get('clickOrDrag', { maxFiles: this.maxFiles }) })), h("div", { key: '407e5f6ba315adc4914bac66591ab158858e58a9', class: "main-actions" }, h("mds-button", { key: '21e2bdd0e2c056fbac4324d1e10e8818d738ae4e', variant: "primary", onClick: this.handleAddFileClick, label: this.files != null
|
|
335
339
|
? this.t.get('addFile', { maxFiles: this.maxFiles })
|
|
336
|
-
: this.t.get('selectFile') }), this.files.length > 0 && (h("mds-button", { key: '
|
|
340
|
+
: this.t.get('selectFile') }), this.files.length > 0 && (h("mds-button", { key: 'c2aa797ea1ffa79e13edaca370ee9a80def808f9', variant: "error", onClick: this.onReset, label: this.t.get('cancel') }))), h("div", { key: 'b74bff2a047a5cb207301017acd6a7277c663f51', class: "main-infos" }, h("mds-progress", { key: '9e46cde334899b47039062c4accaf589cfb7db6e', "aria-hidden": "true", class: "progress-bar", progress: this.progress }), this.files.length < 1 ? (h("mds-text", { variant: "info", typography: "caption" }, this.t.get('maxFilesUpload', { maxFiles: this.maxFiles }))) : (h("mds-text", { variant: "info", typography: "caption" }, ((_a = this.maxFiles) !== null && _a !== void 0 ? _a : 0) !== 0 && !Number.isNaN(this.maxFiles)
|
|
337
341
|
? this.t.get('currentFilesWithMax', {
|
|
338
342
|
currentFiles: this.files.length,
|
|
339
343
|
maxFiles: this.maxFiles,
|
|
340
344
|
})
|
|
341
|
-
: this.t.get('currentFilesNoMax', { currentFiles: this.files.length }))))), h("input", { key: '
|
|
345
|
+
: this.t.get('currentFilesNoMax', { currentFiles: this.files.length }))))), h("input", { key: 'c867482029ed15726d1badeee21945ce78fcb9aa', type: "file", accept: this.accept, hidden: true, ref: (i) => (this.nativeInput = i), onChange: this.onAdd, multiple: this.maxFiles > 1 }), h("div", { key: '38bd7d7f7ce6024baf6a037445152b7acc3d3f3b', class: "additional-infos" }, h("div", { key: '6dd3982680177166a93c408ca4f32540efcd17fa', class: clsx('file-specs', this.isSortTabShown() && 'file-specs-sort') }, h("mds-text", { key: '892c2695e43c3b57e31b62cc6f9cb8bf8369c862', variant: "info", typography: "caption" }, this.extensions !== ''
|
|
342
346
|
? `${this.t.get('canUpload')} ${this.extensions}`
|
|
343
|
-
: this.t.get('canUploadAll')), h("mds-text", { key: '
|
|
347
|
+
: this.t.get('canUploadAll')), h("mds-text", { key: 'b20bee8f4d335453dc457d8abddf07aae13950f5', variant: "info", typography: "caption" }, this.t.get('maxFileSizePerFile', { maxFileSize: this.maxFileSize }))), this.isSortTabShown() && (h("mds-tab", { key: '4e998b760c02e9bee956d9037e1e9ce2af0e3e0d', class: "action-sort", onMdsTabChange: this.handleTabChange }, h("mds-tab-item", { key: '348200582b1d9b6fe9584d17f9939ee1d77274c7', icon: iconSortById, selected: this.userSort === 'date', title: this.t.get('sortByDate'), value: "date" }), h("mds-tab-item", { key: 'e2cedd3bd3c1bf62e7fe682bfc6c19d3f0b57f2a', icon: iconSortByStatus, selected: this.userSort === 'status', title: this.t.get('sortByStatus'), value: "status" })))), h("div", { key: 'b549c38e2fac65c513a3a82b97190831b5ef968f', class: clsx('file-list', this.files.length > this.cssMinCols && 'file-list--more-items') }, this.files.map((file) => {
|
|
344
348
|
switch (file.status) {
|
|
345
349
|
case Status.ERROR:
|
|
346
350
|
return (h("mds-file-preview", { deletable: true, variant: "error", filename: file.file.name, filesize: file.file.size.toString(), onMdsFileDelete: this.handleFileDelete(file.key), message: this.t.get(file.errorKey) }));
|
|
@@ -49,9 +49,12 @@ export class MdsKeyboard {
|
|
|
49
49
|
};
|
|
50
50
|
this.updateElements = () => {
|
|
51
51
|
this.filteredNodes.forEach((node) => {
|
|
52
|
-
|
|
52
|
+
var _a;
|
|
53
|
+
// the type has no empty name, but the attribute can be empty or removed
|
|
54
|
+
const name = (_a = node.name) !== null && _a !== void 0 ? _a : '';
|
|
55
|
+
if (name !== '') {
|
|
53
56
|
this.keyEls.push(node);
|
|
54
|
-
this.keyCombination.add(this.keyCodes(
|
|
57
|
+
this.keyCombination.add(this.keyCodes(name.toLowerCase()).toString());
|
|
55
58
|
}
|
|
56
59
|
});
|
|
57
60
|
};
|
|
@@ -167,7 +170,7 @@ export class MdsKeyboard {
|
|
|
167
170
|
}
|
|
168
171
|
}
|
|
169
172
|
render() {
|
|
170
|
-
return (h(Host, { key: '
|
|
173
|
+
return (h(Host, { key: '0f22438d7c2df4f9370f9daad1756c065720fded', "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, h("div", { key: '302124ad13826c7dc832a8d4dbfc3866f3bb5af9', class: "shortcuts" }, h("slot", { key: '0e74fab3079d226dbb14d062e24f7e460984e1da' })), this.try && (h("mds-button", { key: '18ad345428615395f0a6e20453c57db4f8ed93f8', icon: this.getButtonIcon(), "aria-label": this.t.get('testKeyCombination'), class: "combination-checker", variant: "dark", tone: "text", onClick: this.startKeyboardShortcutTest })), this.try && (h("mds-tooltip", { key: '545d9abac32f56ce8199d75a1cc1dc114dd442ac', target: ".combination-checker" }, this.testPassed === undefined && this.t.get('testKeyCombination'), this.testPassed === true && this.t.get('testPassed'), this.testPassed === false && (h("div", { key: 'f668a098b0b91658a9db962c2560d90169083a9c', class: "errors" }, [...this.errors].map((error) => (h("mds-text", { typography: "tip" }, this.t.get(error))))))))));
|
|
171
174
|
}
|
|
172
175
|
static get is() { return "mds-keyboard"; }
|
|
173
176
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,10 +17,13 @@ export class MdsKeyboardKey {
|
|
|
17
17
|
});
|
|
18
18
|
this.keyboardKeys = keyboardKeysData;
|
|
19
19
|
this.getTitle = () => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
var _a;
|
|
21
|
+
// the type has no empty name, but the attribute can be empty or removed
|
|
22
|
+
const name = (_a = this.name) !== null && _a !== void 0 ? _a : '';
|
|
23
|
+
if (name !== '') {
|
|
24
|
+
return this.t.get(this.keyboardKeys[name.toLowerCase()].description, {
|
|
25
|
+
character: this.keyboardKeys[name.toLowerCase()].alias,
|
|
26
|
+
keyboardPosition: this.keyboardKeys[name.toLowerCase()].keyboardPosition,
|
|
24
27
|
});
|
|
25
28
|
}
|
|
26
29
|
return undefined;
|
|
@@ -28,7 +31,7 @@ export class MdsKeyboardKey {
|
|
|
28
31
|
}
|
|
29
32
|
render() {
|
|
30
33
|
var _a, _b, _c, _d;
|
|
31
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'c6f1c7d6e70627515b3eb3c962967050c41e8e4c', title: this.getTitle() }, h("div", { key: '0b9a357f1a03a8842d01e10e9fab975e14e4c07d', class: "physical-key" }, this.name && icons.has(this.name) ? (h("mds-icon", { name: (_a = icons.get(this.name)) !== null && _a !== void 0 ? _a : miBaselineBrokenImage, class: "shortcut-icon" })) : (h("mds-text", { class: "shortcut-text", typography: "detail" }, this.name && h("b", null, this.keyboardKeys[this.name].alias))), this.name && ((_b = this.keyboardKeys[this.name]) === null || _b === void 0 ? void 0 : _b.keyboardPosition) && (h("mds-text", { key: '47ff355c39a1575159216946af4dd43735bd37e5', typography: "label" }, ((_c = this.keyboardKeys[this.name].keyboardPosition) === null || _c === void 0 ? void 0 : _c.left) && 'l', ((_d = this.keyboardKeys[this.name].keyboardPosition) === null || _d === void 0 ? void 0 : _d.right) && 'r')))));
|
|
32
35
|
}
|
|
33
36
|
static get is() { return "mds-keyboard-key"; }
|
|
34
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -29,8 +29,9 @@ export class MdsMention {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
var _a, _b;
|
|
33
|
-
|
|
32
|
+
var _a, _b, _c;
|
|
33
|
+
const icon = (_a = this.icon) !== null && _a !== void 0 ? _a : '';
|
|
34
|
+
return (h(Host, { key: '914ba108dd94074f6d4cfe55d3ae8f6da5d20c07' }, h("mds-icon", { key: '452fa5eafee76b142b2ca9491f0bdb0ed21649a2', name: icon !== '' ? icon : miBaselineAlternateEmail }), h("mds-text", { key: '1070089d8e8d38d6d9ae477b6ac7b16b7d5bb29a', typography: this.sizeTypography[(_b = this.size) !== null && _b !== void 0 ? _b : 'md'] }, this.size === 'lg' ? this.label : h("b", null, this.label)), this.deletable && (h("mds-button", { key: '958f40a8b6b208f3bdd5572750b7e6e728176f18', class: "action-remove", icon: miBaselineCancel, onClick: this.onDeleteHandler, size: "sm", title: `${this.t.get('remove')} ${(_c = this.label) !== null && _c !== void 0 ? _c : ''}`.trim(), tone: "text", variant: "dark" }))));
|
|
34
35
|
}
|
|
35
36
|
static get is() { return "mds-mention"; }
|
|
36
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,18 +33,20 @@ export class MdsNotification {
|
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
this.clean = (value) => {
|
|
36
|
-
|
|
36
|
+
var _a;
|
|
37
|
+
// a removed attribute leaves null, which counts as no value and no maximum
|
|
38
|
+
if ((value !== null && value !== void 0 ? value : 0) === 0 || isNaN(value))
|
|
37
39
|
return '';
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
40
|
+
const max = (_a = this.max) !== null && _a !== void 0 ? _a : 0;
|
|
41
|
+
if (max !== 0 && !Number.isNaN(max) && value > max) {
|
|
42
|
+
return `+${Number(max).toLocaleString()}`;
|
|
42
43
|
}
|
|
43
44
|
return Number(value).toLocaleString();
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
componentDidRender() {
|
|
47
|
-
|
|
48
|
+
var _a;
|
|
49
|
+
if (((_a = this.target) !== null && _a !== void 0 ? _a : '') === '') {
|
|
48
50
|
this.strategy = 'disabled';
|
|
49
51
|
return;
|
|
50
52
|
}
|
|
@@ -59,10 +61,11 @@ export class MdsNotification {
|
|
|
59
61
|
this.caller = c;
|
|
60
62
|
}
|
|
61
63
|
componentDidLoad() {
|
|
64
|
+
var _a;
|
|
62
65
|
if (this.strategy === 'disabled') {
|
|
63
66
|
return;
|
|
64
67
|
}
|
|
65
|
-
if (this.target !== '' && this.cleanupAutoUpdate == null) {
|
|
68
|
+
if (((_a = this.target) !== null && _a !== void 0 ? _a : '') !== '' && this.cleanupAutoUpdate == null) {
|
|
66
69
|
setTimeout(() => {
|
|
67
70
|
this.cleanupAutoUpdate = autoUpdate(this.caller, this.host, this.updatePosition);
|
|
68
71
|
}, 100);
|
|
@@ -78,7 +81,7 @@ export class MdsNotification {
|
|
|
78
81
|
}
|
|
79
82
|
render() {
|
|
80
83
|
var _a;
|
|
81
|
-
return (h(Host, { key: '
|
|
84
|
+
return (h(Host, { key: '7ccd6942aef0bc72b1da02625dd1eff455998ef5', "aria-labelledby": this.target, "aria-label": (_a = this.value) !== null && _a !== void 0 ? _a : '0', "pref-animation": preferenceStore.state.animation }, h("mds-text", { key: '8f4283fa8d54781cd37040427fd1c0dc2ee11348', typography: "caption", class: "dot", "aria-hidden": "true" }, this.clean(this.value))));
|
|
82
85
|
}
|
|
83
86
|
static get is() { return "mds-notification"; }
|
|
84
87
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,7 +21,7 @@ export class MdsPrefLanguageItem {
|
|
|
21
21
|
// unrecognized code is a real error; empty codes fall back to the `noCode` branch
|
|
22
22
|
// already handled in render().
|
|
23
23
|
this.validateCode = (code) => {
|
|
24
|
-
if (code
|
|
24
|
+
if (code != null && code !== '' && localeDefault[code] === undefined) {
|
|
25
25
|
throw Error(`Language code not found: ${code}`);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
@@ -36,10 +36,11 @@ export class MdsPrefLanguageItem {
|
|
|
36
36
|
this.validateCode(newValue);
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
+
var _a;
|
|
39
40
|
return (
|
|
40
41
|
// the item is an entry of the `menu` the mds-dropdown of the controller opens:
|
|
41
42
|
// without the role axe rejects it as a child of that menu (aria-required-children)
|
|
42
|
-
h(Host, { key: '
|
|
43
|
+
h(Host, { key: '968d0f761a2c4b2de6652069dc1db4f51d61ee76', onClick: this.handleClick, role: "menuitem" }, ((_a = this.code) !== null && _a !== void 0 ? _a : '') !== '' ? (h("mds-button", { icon: this.selected ? miBaselineCheckCircle : miOutlineCircle, variant: "dark", tone: "text", label: localeDefault[this.code] })) : (h("mds-button", { icon: miBaselineCheckCircle, variant: "error", tone: "text", label: this.t.get('noCode') }))));
|
|
43
44
|
}
|
|
44
45
|
static get is() { return "mds-pref-language-item"; }
|
|
45
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -20,7 +20,8 @@ export class MdsPrefThemeItem {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
componentWillRender() {
|
|
23
|
-
|
|
23
|
+
var _a;
|
|
24
|
+
if (((_a = this.label) !== null && _a !== void 0 ? _a : '') === '') {
|
|
24
25
|
this.label = this.name.charAt(0).toUpperCase() + this.name.slice(1).replace(/-/g, ' ');
|
|
25
26
|
}
|
|
26
27
|
}
|
|
@@ -28,7 +29,7 @@ export class MdsPrefThemeItem {
|
|
|
28
29
|
return (
|
|
29
30
|
// the item is an entry of the `menu` the mds-dropdown of the controller opens:
|
|
30
31
|
// without the role axe rejects it as a child of that menu (aria-required-children)
|
|
31
|
-
h(Host, { key: '
|
|
32
|
+
h(Host, { key: 'd14e86d120deb8ce9c1425dafb96c93e9cba4005', onClick: this.handleClick, role: "menuitem" }, h("mds-button", { key: '60a1cf50d3875d1a6aa5493d6436edab1d96349e', icon: this.selected ? miBaselineCheckCircle : miOutlineCircle, variant: "dark", tone: "text" }, h("div", { key: 'b6cd3b716ea2bf811c90c63156ad5d57e5bd7aed', class: "label" }, h("div", { key: 'cf8468e4b9f3d3b03d5060c9531ae1035555270e', class: "theme-preview" }, h("div", { key: 'b634d507168fdec1c9536d7cac619ff1195ca9f1', class: "theme-color theme-color--variant-primary" }), h("div", { key: '67c459ade780433bde32a6a2ba302ae9814a275c', class: "theme-color theme-color--status-success" }), h("div", { key: 'e68b927681b50d439bf937c55fb33b06b01463f6', class: "theme-color theme-color--status-warning" }), h("div", { key: 'eb392e74cecbeb00d06989d3fe5650977e0328ea', class: "theme-color theme-color--status-error" })), this.label))));
|
|
32
33
|
}
|
|
33
34
|
static get is() { return "mds-pref-theme-item"; }
|
|
34
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -26,11 +26,13 @@ export class MdsStepperBar {
|
|
|
26
26
|
this.currentItem = index - 1;
|
|
27
27
|
const values = new Array();
|
|
28
28
|
this.items.forEach((item, key) => {
|
|
29
|
+
var _a;
|
|
29
30
|
item.done = false;
|
|
30
31
|
if (key < this.currentItem) {
|
|
31
32
|
item.done = true;
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
const value = (_a = item.value) !== null && _a !== void 0 ? _a : '';
|
|
34
|
+
if (value !== '') {
|
|
35
|
+
values.push(value);
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
item.current = false;
|
|
@@ -108,7 +110,7 @@ export class MdsStepperBar {
|
|
|
108
110
|
});
|
|
109
111
|
}
|
|
110
112
|
render() {
|
|
111
|
-
return (h(Host, { key: '
|
|
113
|
+
return (h(Host, { key: '35f536c577499c237e0a5b1865c2dcfaa5735d72' }, h("div", { key: '5c204cc4ca343076982d3357e7645cc8770a22be', class: "items", part: "items" }, h("slot", { key: '69c3b461ada662e58051b875411781a862ff565d' })), h("div", { key: '7fb5381e1126a5227b50ecc202154e44928aab5e', class: "contents", part: "contents" }, h("slot", { key: '535d40033b20590f72e9fef336bda3ed7b06cead', name: "content" }))));
|
|
112
114
|
}
|
|
113
115
|
static get is() { return "mds-stepper-bar"; }
|
|
114
116
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,8 +21,9 @@ export class MdsTabBarItem {
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
this.onSlotChangeHandler = () => {
|
|
24
|
+
var _a;
|
|
24
25
|
/* this should be removed in the future once slotted text is no longer used, use the label property instead */
|
|
25
|
-
if (this.label !==
|
|
26
|
+
if (((_a = this.label) !== null && _a !== void 0 ? _a : '') !== '')
|
|
26
27
|
return;
|
|
27
28
|
this.label = readSlottedLabel(this.element);
|
|
28
29
|
};
|
|
@@ -37,7 +38,7 @@ export class MdsTabBarItem {
|
|
|
37
38
|
this.label = sanitizeLabel(newValue);
|
|
38
39
|
}
|
|
39
40
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '6e2c08fad0e04d0725ab7ef827c654cf9edecb51', onClick: this.select, "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, h("mds-icon", { key: 'cc8cc878d899d20532b1582ae7eb2aa459a82078', name: this.icon }), h("mds-text", { key: 'ea6030247b5999f34cd64a6a3ea8b15de66ba5ab', typography: this.typography }, this.label || h("slot", { key: 'b922dbfe1b35997ac2c9e9d384e22505838a6994', onSlotchange: this.onSlotChangeHandler }))));
|
|
41
42
|
}
|
|
42
43
|
static get is() { return "mds-tab-bar-item"; }
|
|
43
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -35,7 +35,7 @@ export class MdsTableHeaderCell {
|
|
|
35
35
|
this.tableRowsDefaultSorted = Array.from(this.tableBody.children);
|
|
36
36
|
};
|
|
37
37
|
this.getValue = (element) => {
|
|
38
|
-
if (element.value
|
|
38
|
+
if (element.value != null &&
|
|
39
39
|
element.value !== '' &&
|
|
40
40
|
element.value !== 0 &&
|
|
41
41
|
!Number.isNaN(element.value)) {
|
|
@@ -118,7 +118,7 @@ export class MdsTableHeaderCell {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
render() {
|
|
121
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: 'e7c077673fa918dfd50f25d7b341881f72eaefe2', role: "columnheader", "aria-sort": this.direction, "pref-animation": preferenceStore.state.animation }, this.sortable ? (h("mds-button", { class: "action", icon: clsx(this.direction === 'none' && miBaselineUnfoldMore, this.direction === 'ascending' && miBaselineKeyboardArrowUp, this.direction === 'descending' && miBaselineKeyboardArrowDown), "icon-position": "right", onClick: this.sort, tone: "text", variant: "dark", size: "sm", part: "action", label: this.label })) : (h("mds-text", { class: "label", typography: "label", part: "label" }, this.label))));
|
|
122
122
|
}
|
|
123
123
|
static get is() { return "mds-table-header-cell"; }
|
|
124
124
|
static get encapsulation() { return "shadow"; }
|
|
@@ -84,7 +84,8 @@ export class MdsText {
|
|
|
84
84
|
this.animateText(newValue);
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
|
|
87
|
+
var _a;
|
|
88
|
+
return (h(Host, { key: '468c9b04797da9ab100c89474a7a67313aac829b', "pref-animation": preferenceStore.state.animation }, h(this.tag, { key: '245ab42bd31cd0cb4be371f074fee956d3c1c13c', class: "text" }, ((_a = this.text) !== null && _a !== void 0 ? _a : '') === '' ? h("slot", null) : this.text)));
|
|
88
89
|
}
|
|
89
90
|
static get is() { return "mds-text"; }
|
|
90
91
|
static get encapsulation() { return "shadow"; }
|