@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
|
@@ -49,12 +49,19 @@ const MdsHeader = class {
|
|
|
49
49
|
this.closedEvent.emit({ bar: this.headerBar });
|
|
50
50
|
this.headerBar.setOpened(false);
|
|
51
51
|
};
|
|
52
|
+
// a removed attribute leaves null, which turns the auto hide off like 0
|
|
53
|
+
this.getAutoHide = () => {
|
|
54
|
+
var _a;
|
|
55
|
+
const autoHide = (_a = this.autoHide) !== null && _a !== void 0 ? _a : 0;
|
|
56
|
+
return Number.isNaN(autoHide) ? 0 : autoHide;
|
|
57
|
+
};
|
|
52
58
|
this.handleVisibility = () => {
|
|
53
|
-
|
|
59
|
+
const autoHide = this.getAutoHide();
|
|
60
|
+
if (autoHide === 0) {
|
|
54
61
|
return;
|
|
55
62
|
}
|
|
56
63
|
// reset var if the page is scrolled to top
|
|
57
|
-
if (window.scrollY <
|
|
64
|
+
if (window.scrollY < autoHide) {
|
|
58
65
|
this.visibility = 'visible';
|
|
59
66
|
this.relativeThresholdUp = 0;
|
|
60
67
|
this.relativeTresholdDown = 0;
|
|
@@ -71,9 +78,9 @@ const MdsHeader = class {
|
|
|
71
78
|
this.relativePosition = this.relativeThresholdUp;
|
|
72
79
|
}
|
|
73
80
|
// set hidden for the first scroll from top
|
|
74
|
-
if (this.relativePosition <
|
|
81
|
+
if (this.relativePosition < autoHide && autoHide - window.scrollY <= 0) {
|
|
75
82
|
this.visibility = 'hidden';
|
|
76
|
-
this.relativePosition =
|
|
83
|
+
this.relativePosition = autoHide;
|
|
77
84
|
}
|
|
78
85
|
// update respective threshold if page is scrolled up or down
|
|
79
86
|
if (window.scrollY > this.relativeThresholdUp) {
|
|
@@ -84,11 +91,13 @@ const MdsHeader = class {
|
|
|
84
91
|
}
|
|
85
92
|
};
|
|
86
93
|
this.sanitizeAppearance = () => {
|
|
87
|
-
|
|
94
|
+
var _a;
|
|
95
|
+
const appearanceSet = (_a = this.appearanceSet) !== null && _a !== void 0 ? _a : '';
|
|
96
|
+
if (appearanceSet === '') {
|
|
88
97
|
return [this.appearance];
|
|
89
98
|
}
|
|
90
99
|
const regex = /\b(\w+)\b/g;
|
|
91
|
-
const matches =
|
|
100
|
+
const matches = appearanceSet.match(regex);
|
|
92
101
|
if (matches) {
|
|
93
102
|
return matches;
|
|
94
103
|
}
|
|
@@ -105,7 +114,7 @@ const MdsHeader = class {
|
|
|
105
114
|
this.handleScroll = () => {
|
|
106
115
|
if (typeof window === 'undefined')
|
|
107
116
|
return;
|
|
108
|
-
if (this.
|
|
117
|
+
if (this.getAutoHide() !== 0) {
|
|
109
118
|
this.handleVisibility();
|
|
110
119
|
}
|
|
111
120
|
if (this.sanitizedAppearance.length > 1) {
|
|
@@ -184,7 +193,7 @@ const MdsHeader = class {
|
|
|
184
193
|
}
|
|
185
194
|
}
|
|
186
195
|
render() {
|
|
187
|
-
return (index.h(index.Host, { key: '
|
|
196
|
+
return (index.h(index.Host, { key: 'f672f81878e181d21c234188d2ad02ded1bdb039', "pref-consumption": preference.preferenceStore.state.consumption, "pref-mode": preference.preferenceStore.state.mode, "pref-theme-scheme": preference.preferenceStore.state['theme-scheme'] }, !this.hideBackdrop && (index.h("div", { key: '6bf87ed021bcdb62c728fbee3818a8ad11895b06', class: "backdrop" }, index.h("div", { key: '6a3ad84c2e41313c14531b514b2752f972986ec4', class: "backdrop-blur-item" }), index.h("div", { key: 'b8031f912733bcc01f47ae28e756ae9f9f184bf1', class: "backdrop-blur-item" }), index.h("div", { key: 'b9fddc9c2c459bc1b16ef7cc4fe0dd62c6ae0357', class: "backdrop-blur-item" }), index.h("div", { key: 'fb97781789e0773d35b31744a3f28bd23816e9eb', class: "backdrop-blur-item" }), index.h("div", { key: '1d464ccd4d846ac79d1b0ea303ab66f41af84116', class: "backdrop-blur-item" }), index.h("div", { key: '7ab61f7f2f21da6ad94408442237b8e2a16d32c1', class: "backdrop-blur-item" }), index.h("div", { key: '90fb7f3244c8047c6a576288dad756451de07cdf', class: "backdrop-blur-item" }), index.h("div", { key: '955ff4ac62f6a5e50726fcf5d097202622e760d2', class: "backdrop-blur-item" }), index.h("div", { key: '49e995993b74ce17e06c3a05004e7411442dd694', class: "backdrop-blur-item" }), index.h("div", { key: 'd0c693752ed5b8eee3f0c6925e158168b4e06822', class: "backdrop-blur-item" }))), index.h("slot", { key: '564de9025f4cdc11edb1dadf27c0c3e03be5d06d' }), this.hasMenu && (index.h("div", { key: 'c6cd25b6e417675a67662bbe4e2a8f0c89e1fd74', class: "menu", part: "menu" }, index.h("mds-modal", { key: 'cb330659a98adcf88e8af18097450edb71cb1423', class: "modal", opened: this.isOpened, onMdsModalClose: this.close, position: "right" }, index.h("slot", { key: 'd4f1dbcaee3303ad4c2130d7f7d64be3486bdc19', name: "menu" }))))));
|
|
188
197
|
}
|
|
189
198
|
get host() { return index.getElement(this); }
|
|
190
199
|
static get watchers() { return {
|
|
@@ -110,14 +110,14 @@ const MdsImg = class {
|
|
|
110
110
|
this.imageError = false;
|
|
111
111
|
}
|
|
112
112
|
componentWillLoad() {
|
|
113
|
-
var _a;
|
|
113
|
+
var _a, _b;
|
|
114
114
|
this.consumptionMode =
|
|
115
115
|
(_a = localStorage.getItem('mdsPrefConsumption')) !== null && _a !== void 0 ? _a : 'high';
|
|
116
|
-
if (this.srcsetConsumption
|
|
116
|
+
if (this.srcsetConsumption != null && this.srcsetConsumption !== '') {
|
|
117
117
|
this.srcsetConsumptionData = this.formatConsumptionData(this.srcsetConsumption);
|
|
118
118
|
}
|
|
119
119
|
this.image = this.host.querySelector('img');
|
|
120
|
-
if (this.alt === '') {
|
|
120
|
+
if (((_b = this.alt) !== null && _b !== void 0 ? _b : '') === '') {
|
|
121
121
|
this.alt = this.autoAltName();
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -317,10 +317,12 @@ const MdsInputDateRange = class {
|
|
|
317
317
|
this.syncExternalDate('end', newValue);
|
|
318
318
|
}
|
|
319
319
|
componentWillLoad() {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
320
|
+
var _a, _b;
|
|
321
|
+
// a null bound by a framework counts as no date, as the watchers already do
|
|
322
|
+
this.internalStartDate = (_a = this.startDate) !== null && _a !== void 0 ? _a : '';
|
|
323
|
+
this.internalEndDate = (_b = this.endDate) !== null && _b !== void 0 ? _b : '';
|
|
324
|
+
this.initialStartDate = this.internalStartDate;
|
|
325
|
+
this.initialEndDate = this.internalEndDate;
|
|
324
326
|
this.visibleCalendarDate = this.resolveVisibleCalendarDate(this.internalStartDate, this.internalEndDate);
|
|
325
327
|
// Se max è precedente a min, imposto max uguale a min
|
|
326
328
|
if (this.min !== null && this.min !== '' && this.max !== null && this.max !== '') {
|
|
@@ -502,7 +504,7 @@ const MdsInputDateRange = class {
|
|
|
502
504
|
return (index.h("div", { class: "calendars" }, this.renderCalendarPreselectionPanel(), index.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 } : {}))), index.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 } : {})))));
|
|
503
505
|
}
|
|
504
506
|
render() {
|
|
505
|
-
return (index.h(index.Host, { key: '
|
|
507
|
+
return (index.h(index.Host, { key: '718cf4ea938605b2569a5fa19e264cf176282a80', onClick: this.focusDateInput, "pref-animation": preference.preferenceStore.state.animation, "pref-contrast": preference.preferenceStore.state.contrast, "pref-mode": preference.preferenceStore.state.mode, "pref-theme-scheme": preference.preferenceStore.state['theme-scheme'] }, index.h("div", { key: 'f8dade2fe985e70d2943aee08d6f84123e53f38b', class: "inputs" }, index.h("div", { key: 'be2dd565a6364f3ccf287514ea5726e332577389', class: "input-element" }, index.h("mds-text", { key: 'a6c3e21e613ee60986acb06edc852f110357fc31', class: "date-label", typography: "detail", onClick: this.focusStartDateInput }, this.t.get('from')), index.h("div", { key: '08cdedb27bcdcfd35b94e90ae261f64d8694b0ef', class: "input-wrapper" }, index.h("slot", { key: 'da01b0a0fc65c8cf7094cf0db83be1d942b332b1', name: "start" }))), index.h("div", { key: '63e620c85a9a23660645a0e28648912cbcd79919', class: "input-element" }, index.h("mds-text", { key: '801f3a01f11502a5878e0ede645f238ef80fa388', class: "date-label", typography: "detail", onClick: this.focusEndDateInput }, this.t.get('to')), index.h("div", { key: 'fa57d66e7f8318685256e1febf35b291f7b59f19', class: "input-wrapper" }, index.h("slot", { key: '68e860a29b253276b3ebb29b502e7c432bb1ea9c', name: "end" })))), index.h("div", { key: 'cb145bf4822dda4e6dbe07240089944740b090fe', class: "action-open-calendar-wrapper" }, index.h("mds-button", { key: '9216baaff6c990532db1c8366b054655065a399f', class: "action-open-calendar", variant: "dark", tone: "text", icon: calendarToday.miBaselineCalendarToday, id: "calendar-dropdown", onClick: this.handleOpenCalendarClick })), index.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())));
|
|
506
508
|
}
|
|
507
509
|
syncFormValue() {
|
|
508
510
|
var _a, _b, _c, _d;
|
|
@@ -52,6 +52,8 @@ const MdsInputSelect = class {
|
|
|
52
52
|
this.onFocus = () => {
|
|
53
53
|
this.hasFocus = true;
|
|
54
54
|
};
|
|
55
|
+
// a removed attribute or a null bound by a framework counts as no placeholder, like ''
|
|
56
|
+
this.hasPlaceholder = () => { var _a; return ((_a = this.placeholder) !== null && _a !== void 0 ? _a : '') !== ''; };
|
|
55
57
|
this.emptyOptions = () => {
|
|
56
58
|
var _a;
|
|
57
59
|
const select = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('select');
|
|
@@ -60,10 +62,10 @@ const MdsInputSelect = class {
|
|
|
60
62
|
return;
|
|
61
63
|
}
|
|
62
64
|
options.forEach((option, index) => {
|
|
63
|
-
if (this.
|
|
65
|
+
if (!this.hasPlaceholder()) {
|
|
64
66
|
option.remove();
|
|
65
67
|
}
|
|
66
|
-
if (this.
|
|
68
|
+
if (this.hasPlaceholder() && index > 0) {
|
|
67
69
|
option.remove();
|
|
68
70
|
}
|
|
69
71
|
});
|
|
@@ -75,10 +77,10 @@ const MdsInputSelect = class {
|
|
|
75
77
|
if (options == null) {
|
|
76
78
|
return;
|
|
77
79
|
}
|
|
78
|
-
if (
|
|
80
|
+
if (!this.hasPlaceholder() && options.length > 0) {
|
|
79
81
|
this.emptyOptions();
|
|
80
82
|
}
|
|
81
|
-
if (this.
|
|
83
|
+
if (this.hasPlaceholder() && options.length > 1) {
|
|
82
84
|
this.emptyOptions();
|
|
83
85
|
}
|
|
84
86
|
elements === null || elements === void 0 ? void 0 : elements.forEach((element) => {
|
|
@@ -96,7 +98,7 @@ const MdsInputSelect = class {
|
|
|
96
98
|
element.selected = element.value === this.value;
|
|
97
99
|
});
|
|
98
100
|
}
|
|
99
|
-
else if (this.
|
|
101
|
+
else if (!this.hasPlaceholder()) {
|
|
100
102
|
this.value = (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll('option')[0].value;
|
|
101
103
|
}
|
|
102
104
|
};
|
|
@@ -135,7 +137,7 @@ const MdsInputSelect = class {
|
|
|
135
137
|
* @param oldValue placeholder old value
|
|
136
138
|
*/
|
|
137
139
|
placeholderChanged(newValue, oldValue) {
|
|
138
|
-
if (newValue
|
|
140
|
+
if (newValue != null && newValue !== '' && (oldValue !== null && oldValue !== void 0 ? oldValue : '') === '') {
|
|
139
141
|
let defaultOption = document.querySelector('.placeholder-option');
|
|
140
142
|
if (defaultOption)
|
|
141
143
|
defaultOption.remove();
|
|
@@ -172,12 +174,12 @@ const MdsInputSelect = class {
|
|
|
172
174
|
}
|
|
173
175
|
}
|
|
174
176
|
render() {
|
|
175
|
-
return (index.h(index.Host, { key: '
|
|
177
|
+
return (index.h(index.Host, { key: 'd592094ab2ad5a0af7603c62516dcc85961b1986', "pref-animation": preference.preferenceStore.state.animation, "pref-contrast": preference.preferenceStore.state.contrast, "pref-mode": preference.preferenceStore.state.mode, "pref-theme-scheme": preference.preferenceStore.state['theme-scheme'] }, index.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) }, index.h("option", { key: 'd51ff2bc9e48b52042a5a1b11f4cd9249ad3f841', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue != null &&
|
|
176
178
|
this.defaultValue !== '' &&
|
|
177
179
|
this.defaultValue !== 0 &&
|
|
178
180
|
!Number.isNaN(this.defaultValue)
|
|
179
181
|
? undefined
|
|
180
|
-
: true }, this.placeholder)), index.h("div", { key: '
|
|
182
|
+
: true }, this.placeholder)), index.h("div", { key: 'e7433aed2a6eb737f729267ae910ac7ad0d66f91', class: "icon-container" }, index.h("mds-icon", { key: '1000ecef2c0d3967ab36ca6b26492f0d16828e0b', class: "icon", name: keyboardArrowDown.miBaselineKeyboardArrowDown })), index.h("div", { key: 'f50de5c45a4a81a1671c11eb7f5208cf90ad420c', class: "option-container" }, index.h("slot", { key: '4e81caee891537bb05722c66bd08fdea2656d2f5', onSlotchange: this.onSlotChangeHandler })), index.h("mds-input-tip", { key: '8b2529c44303088088d451632239594d1029d328', position: "top", active: this.hasFocus, part: "tip-top" }, this.disabled && index.h("mds-input-tip-item", { key: 'ba2ab348eb11aada0385bb88908ff0f218146a69', expanded: true, variant: "disabled" }), this.required && (index.h("mds-input-tip-item", { key: 'a4c571f697981eb930b6aed49cd5788dc9a98cfd', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' })))));
|
|
181
183
|
}
|
|
182
184
|
static get formAssociated() { return true; }
|
|
183
185
|
get host() { return index.getElement(this); }
|
|
@@ -633,21 +633,25 @@ const MdsInputUpload = class {
|
|
|
633
633
|
return b.id - a.id;
|
|
634
634
|
}
|
|
635
635
|
isSortTabShown() {
|
|
636
|
-
|
|
636
|
+
var _a;
|
|
637
|
+
// the type has no empty sort, but the attribute can be empty or removed
|
|
638
|
+
const sort = (_a = this.sort) !== null && _a !== void 0 ? _a : '';
|
|
639
|
+
return sort !== '' && this.files.length > 1;
|
|
637
640
|
}
|
|
638
641
|
render() {
|
|
639
|
-
|
|
642
|
+
var _a;
|
|
643
|
+
return (index.h(index.Host, { key: '1282e72ee06803608c3814261fe7afb90bba04dd' }, index.h("div", { key: '5ea63f793cbbac434e17d9970ad1cf46b09babea', class: "drag-area", onDrop: this.onDropHandler, onDragOver: this.onDragOverHandler, onDragEnter: this.onDragEnterHandler, onDragLeave: this.onDragLeaveHandler, ref: (dragArea) => (this.elDragArea = dragArea) }, index.h("div", { key: 'c578728c760a7c42b58cbe1947c5e210d2c4b513', class: "main-action" }, index.h("div", { key: '53290a67d9a6c2af46b7fcf980822f25ab9415d2', class: "main-action-icon" }, index.h("mds-icon", { key: '98bb7709ed2e548c5b1d3ef850cf594fd582f31e', class: "icon", name: miOutlineFileUpload })), index.h("mds-text", { key: '0b5e87c56e64b00a4a60a678f7b5dc41e4f1a343', animation: this.animateText ? 'yugop' : 'none', variant: "title", typography: "action", text: this.dragging
|
|
640
644
|
? this.t.get('dragEnter')
|
|
641
|
-
: this.t.get('clickOrDrag', { maxFiles: this.maxFiles }) })), index.h("div", { key: '
|
|
645
|
+
: this.t.get('clickOrDrag', { maxFiles: this.maxFiles }) })), index.h("div", { key: '407e5f6ba315adc4914bac66591ab158858e58a9', class: "main-actions" }, index.h("mds-button", { key: '21e2bdd0e2c056fbac4324d1e10e8818d738ae4e', variant: "primary", onClick: this.handleAddFileClick, label: this.files != null
|
|
642
646
|
? this.t.get('addFile', { maxFiles: this.maxFiles })
|
|
643
|
-
: this.t.get('selectFile') }), this.files.length > 0 && (index.h("mds-button", { key: '
|
|
647
|
+
: this.t.get('selectFile') }), this.files.length > 0 && (index.h("mds-button", { key: 'c2aa797ea1ffa79e13edaca370ee9a80def808f9', variant: "error", onClick: this.onReset, label: this.t.get('cancel') }))), index.h("div", { key: 'b74bff2a047a5cb207301017acd6a7277c663f51', class: "main-infos" }, index.h("mds-progress", { key: '9e46cde334899b47039062c4accaf589cfb7db6e', "aria-hidden": "true", class: "progress-bar", progress: this.progress }), this.files.length < 1 ? (index.h("mds-text", { variant: "info", typography: "caption" }, this.t.get('maxFilesUpload', { maxFiles: this.maxFiles }))) : (index.h("mds-text", { variant: "info", typography: "caption" }, ((_a = this.maxFiles) !== null && _a !== void 0 ? _a : 0) !== 0 && !Number.isNaN(this.maxFiles)
|
|
644
648
|
? this.t.get('currentFilesWithMax', {
|
|
645
649
|
currentFiles: this.files.length,
|
|
646
650
|
maxFiles: this.maxFiles,
|
|
647
651
|
})
|
|
648
|
-
: this.t.get('currentFilesNoMax', { currentFiles: this.files.length }))))), index.h("input", { key: '
|
|
652
|
+
: this.t.get('currentFilesNoMax', { currentFiles: this.files.length }))))), index.h("input", { key: 'c867482029ed15726d1badeee21945ce78fcb9aa', type: "file", accept: this.accept, hidden: true, ref: (i) => (this.nativeInput = i), onChange: this.onAdd, multiple: this.maxFiles > 1 }), index.h("div", { key: '38bd7d7f7ce6024baf6a037445152b7acc3d3f3b', class: "additional-infos" }, index.h("div", { key: '6dd3982680177166a93c408ca4f32540efcd17fa', class: clsx.clsx('file-specs', this.isSortTabShown() && 'file-specs-sort') }, index.h("mds-text", { key: '892c2695e43c3b57e31b62cc6f9cb8bf8369c862', variant: "info", typography: "caption" }, this.extensions !== ''
|
|
649
653
|
? `${this.t.get('canUpload')} ${this.extensions}`
|
|
650
|
-
: this.t.get('canUploadAll')), index.h("mds-text", { key: '
|
|
654
|
+
: this.t.get('canUploadAll')), index.h("mds-text", { key: 'b20bee8f4d335453dc457d8abddf07aae13950f5', variant: "info", typography: "caption" }, this.t.get('maxFileSizePerFile', { maxFileSize: this.maxFileSize }))), this.isSortTabShown() && (index.h("mds-tab", { key: '4e998b760c02e9bee956d9037e1e9ce2af0e3e0d', class: "action-sort", onMdsTabChange: this.handleTabChange }, index.h("mds-tab-item", { key: '348200582b1d9b6fe9584d17f9939ee1d77274c7', icon: iconSortById, selected: this.userSort === 'date', title: this.t.get('sortByDate'), value: "date" }), index.h("mds-tab-item", { key: 'e2cedd3bd3c1bf62e7fe682bfc6c19d3f0b57f2a', icon: iconSortByStatus, selected: this.userSort === 'status', title: this.t.get('sortByStatus'), value: "status" })))), index.h("div", { key: 'b549c38e2fac65c513a3a82b97190831b5ef968f', class: clsx.clsx('file-list', this.files.length > this.cssMinCols && 'file-list--more-items') }, this.files.map((file) => {
|
|
651
655
|
switch (file.status) {
|
|
652
656
|
case Status.ERROR:
|
|
653
657
|
return (index.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) }));
|
|
@@ -505,7 +505,7 @@ const MdsInput = class {
|
|
|
505
505
|
}
|
|
506
506
|
componentWillLoad() {
|
|
507
507
|
// this.valuePristine = this.value
|
|
508
|
-
var _a;
|
|
508
|
+
var _a, _b;
|
|
509
509
|
// If the mds-input has a tabindex attribute we get the value
|
|
510
510
|
// and pass it down to the native input, then remove it from the
|
|
511
511
|
// mds-input to avoid causing tabbing twice on the same element
|
|
@@ -516,7 +516,7 @@ const MdsInput = class {
|
|
|
516
516
|
}
|
|
517
517
|
form.setFormValue(this.internals, (_a = this.value) !== null && _a !== void 0 ? _a : null);
|
|
518
518
|
this.maxLengthChanged(this.maxlength);
|
|
519
|
-
this.isValid = !(this.required && this.value === '');
|
|
519
|
+
this.isValid = !(this.required && ((_b = this.value) !== null && _b !== void 0 ? _b : '') === '');
|
|
520
520
|
}
|
|
521
521
|
componentDidLoad() {
|
|
522
522
|
var _a, _b, _c;
|
|
@@ -641,9 +641,9 @@ const MdsInput = class {
|
|
|
641
641
|
}
|
|
642
642
|
render() {
|
|
643
643
|
var _a, _b, _c;
|
|
644
|
-
return (index.h(index.Host, { key: '
|
|
644
|
+
return (index.h(index.Host, { key: '845f538a792b4465e10fcfaf54b10b8fdff8b1e9', "pref-animation": preference.preferenceStore.state.animation, "pref-contrast": preference.preferenceStore.state.contrast, "pref-mode": preference.preferenceStore.state.mode, "pref-theme-scheme": preference.preferenceStore.state['theme-scheme'] }, this.type === 'number' && this.controlsLayout === 'horizontal' && (index.h("mds-button", { key: '3e98aeaf32c5fe6904579e7f8750a52bd8ed3779', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? keyboardArrowDown.miBaselineKeyboardArrowDown : remove.miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), variant: "dark", tone: "text", part: "counter-button-decrease" })), this.type === 'textarea' ? (index.h("textarea", { "aria-label": this.accessibleName, class: clsx.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 })) : (index.h("input", { "aria-label": this.accessibleName, class: clsx.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' && (index.h("div", { key: '7ab2af1009a7e03a842ed67cd325993c9a21edec', class: "counter counter--vertical" }, index.h("mds-button", { key: '2ef1243427d235fa097a9b2e5add1fb7e67ae5fc', class: "counter-button", icon: this.controlsIcon === 'arrow' ? keyboardArrowUp.miBaselineKeyboardArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), variant: "dark", size: "sm", tone: "text", part: "counter-button-increase" }), index.h("mds-button", { key: '2053f7c658aa16a8a84a7173f5db555f34800e7a', class: "counter-button", icon: this.controlsIcon === 'arrow' ? keyboardArrowDown.miBaselineKeyboardArrowDown : remove.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' && (index.h("mds-button", { key: '3efe63b2ca3abe15080f721d383d3cadfaf5f5f3', class: "counter-button counter-button--horizontal counter-button--increase", variant: "dark", tone: "text", icon: this.controlsIcon === 'arrow' ? keyboardArrowUp.miBaselineKeyboardArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" })), this.type === 'password' && (index.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 && (index.h("div", { key: '1440dbe88ab432466f355d5864672560c2db204c', class: "password-mask" }, index.h("div", { key: '864ba9b91cbca7057b4694e371e018c9df62a430', class: "password-mask-items", part: "password-mask-items" }, Array.from({ length: this.value.length }).map((_, index$1) => (index.h("div", { key: index$1, class: "password-mask-item", part: "password-mask-item" })))))), this.mic && (index.h("mds-button", { key: 'ae60b8787ca87a563823f4f9e5dcc0ec883d88b3', class: clsx.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" })), index.h("mds-input-tip", { key: '428b89c685610212d326639fe26420f42b4c6a6a', position: "top", active: this.hasFocus, part: "tip-top" }, this.disabled && index.h("mds-input-tip-item", { key: '1c1cefd4812f2053a2a7dac7f671741190e6d1f9', expanded: true, variant: "disabled" }), this.readonly && index.h("mds-input-tip-item", { key: '345b4aa563e0256ead4ca1d1273c7139d558b372', expanded: true, variant: "readonly" }), this.required && (index.h("mds-input-tip-item", { key: '490afbec9f2f6bf267909ab3815b0064a5eccbdd', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' }))), index.h("mds-input-tip", { key: 'f97f2382bb8333189adaa9cba8b4b36a0e85b0a5', position: "bottom", active: this.hasFocus, part: "tip-bottom" }, this.tip && (index.h("mds-input-tip-item", { key: '37331d0c0d73c035ef897aab7535eadc9d7e8089', expanded: true, variant: "text" }, this.tip)), this.maxlength && (index.h("mds-input-tip-item", { key: '2f15cf016309493535f60e924ea17bad3c04aa5c', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel))), this.datalist && (index.h("datalist", { key: '080fdb03ff33d0b7b4f2097497daba098159db91', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
|
|
645
645
|
return index.h("option", { key: i, value: element });
|
|
646
|
-
}))), this.icon && !this.await && (index.h("mds-icon", { key: '
|
|
646
|
+
}))), this.icon && !this.await && (index.h("mds-icon", { key: '8f1a7c1559c81cd7bb0b2418fc81a66055e8b374', class: clsx.clsx('icon', this.variant), name: this.icon })), index.h("mds-spinner", { key: '172dfc79d67b94a453ede3dd6d991ab90a161f1c', running: this.await, class: clsx.clsx('await', this.variant) })));
|
|
647
647
|
}
|
|
648
648
|
static get formAssociated() { return true; }
|
|
649
649
|
get el() { return index.getElement(this); }
|
|
@@ -274,10 +274,13 @@ const MdsKeyboardKey = class {
|
|
|
274
274
|
});
|
|
275
275
|
this.keyboardKeys = keys.keyboardKeysData;
|
|
276
276
|
this.getTitle = () => {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
277
|
+
var _a;
|
|
278
|
+
// the type has no empty name, but the attribute can be empty or removed
|
|
279
|
+
const name = (_a = this.name) !== null && _a !== void 0 ? _a : '';
|
|
280
|
+
if (name !== '') {
|
|
281
|
+
return this.t.get(this.keyboardKeys[name.toLowerCase()].description, {
|
|
282
|
+
character: this.keyboardKeys[name.toLowerCase()].alias,
|
|
283
|
+
keyboardPosition: this.keyboardKeys[name.toLowerCase()].keyboardPosition,
|
|
281
284
|
});
|
|
282
285
|
}
|
|
283
286
|
return undefined;
|
|
@@ -285,7 +288,7 @@ const MdsKeyboardKey = class {
|
|
|
285
288
|
}
|
|
286
289
|
render() {
|
|
287
290
|
var _a, _b, _c, _d;
|
|
288
|
-
return (index.h(index.Host, { key: '
|
|
291
|
+
return (index.h(index.Host, { key: 'c6f1c7d6e70627515b3eb3c962967050c41e8e4c', title: this.getTitle() }, index.h("div", { key: '0b9a357f1a03a8842d01e10e9fab975e14e4c07d', class: "physical-key" }, this.name && icons.has(this.name) ? (index.h("mds-icon", { name: (_a = icons.get(this.name)) !== null && _a !== void 0 ? _a : brokenImage.miBaselineBrokenImage, class: "shortcut-icon" })) : (index.h("mds-text", { class: "shortcut-text", typography: "detail" }, this.name && index.h("b", null, this.keyboardKeys[this.name].alias))), this.name && ((_b = this.keyboardKeys[this.name]) === null || _b === void 0 ? void 0 : _b.keyboardPosition) && (index.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')))));
|
|
289
292
|
}
|
|
290
293
|
};
|
|
291
294
|
MdsKeyboardKey.style = mdsKeyboardKeyCss();
|
|
@@ -85,9 +85,12 @@ const MdsKeyboard = class {
|
|
|
85
85
|
};
|
|
86
86
|
this.updateElements = () => {
|
|
87
87
|
this.filteredNodes.forEach((node) => {
|
|
88
|
-
|
|
88
|
+
var _a;
|
|
89
|
+
// the type has no empty name, but the attribute can be empty or removed
|
|
90
|
+
const name = (_a = node.name) !== null && _a !== void 0 ? _a : '';
|
|
91
|
+
if (name !== '') {
|
|
89
92
|
this.keyEls.push(node);
|
|
90
|
-
this.keyCombination.add(this.keyCodes(
|
|
93
|
+
this.keyCombination.add(this.keyCodes(name.toLowerCase()).toString());
|
|
91
94
|
}
|
|
92
95
|
});
|
|
93
96
|
};
|
|
@@ -203,7 +206,7 @@ const MdsKeyboard = class {
|
|
|
203
206
|
}
|
|
204
207
|
}
|
|
205
208
|
render() {
|
|
206
|
-
return (index.h(index.Host, { key: '
|
|
209
|
+
return (index.h(index.Host, { key: '0f22438d7c2df4f9370f9daad1756c065720fded', "pref-mode": preference.preferenceStore.state.mode, "pref-theme-scheme": preference.preferenceStore.state['theme-scheme'] }, index.h("div", { key: '302124ad13826c7dc832a8d4dbfc3866f3bb5af9', class: "shortcuts" }, index.h("slot", { key: '0e74fab3079d226dbb14d062e24f7e460984e1da' })), this.try && (index.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 && (index.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 && (index.h("div", { key: 'f668a098b0b91658a9db962c2560d90169083a9c', class: "errors" }, [...this.errors].map((error) => (index.h("mds-text", { typography: "tip" }, this.t.get(error))))))))));
|
|
207
210
|
}
|
|
208
211
|
get host() { return index.getElement(this); }
|
|
209
212
|
static get watchers() { return {
|
|
@@ -54,8 +54,9 @@ const MdsMention = class {
|
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
var _a, _b;
|
|
58
|
-
|
|
57
|
+
var _a, _b, _c;
|
|
58
|
+
const icon = (_a = this.icon) !== null && _a !== void 0 ? _a : '';
|
|
59
|
+
return (index.h(index.Host, { key: '914ba108dd94074f6d4cfe55d3ae8f6da5d20c07' }, index.h("mds-icon", { key: '452fa5eafee76b142b2ca9491f0bdb0ed21649a2', name: icon !== '' ? icon : miBaselineAlternateEmail }), index.h("mds-text", { key: '1070089d8e8d38d6d9ae477b6ac7b16b7d5bb29a', typography: this.sizeTypography[(_b = this.size) !== null && _b !== void 0 ? _b : 'md'] }, this.size === 'lg' ? this.label : index.h("b", null, this.label)), this.deletable && (index.h("mds-button", { key: '958f40a8b6b208f3bdd5572750b7e6e728176f18', class: "action-remove", icon: cancel.miBaselineCancel, onClick: this.onDeleteHandler, size: "sm", title: `${this.t.get('remove')} ${(_c = this.label) !== null && _c !== void 0 ? _c : ''}`.trim(), tone: "text", variant: "dark" }))));
|
|
59
60
|
}
|
|
60
61
|
get host() { return index.getElement(this); }
|
|
61
62
|
};
|
|
@@ -39,18 +39,20 @@ const MdsNotification = class {
|
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
41
|
this.clean = (value) => {
|
|
42
|
-
|
|
42
|
+
var _a;
|
|
43
|
+
// a removed attribute leaves null, which counts as no value and no maximum
|
|
44
|
+
if ((value !== null && value !== void 0 ? value : 0) === 0 || isNaN(value))
|
|
43
45
|
return '';
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
46
|
+
const max = (_a = this.max) !== null && _a !== void 0 ? _a : 0;
|
|
47
|
+
if (max !== 0 && !Number.isNaN(max) && value > max) {
|
|
48
|
+
return `+${Number(max).toLocaleString()}`;
|
|
48
49
|
}
|
|
49
50
|
return Number(value).toLocaleString();
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
53
|
componentDidRender() {
|
|
53
|
-
|
|
54
|
+
var _a;
|
|
55
|
+
if (((_a = this.target) !== null && _a !== void 0 ? _a : '') === '') {
|
|
54
56
|
this.strategy = 'disabled';
|
|
55
57
|
return;
|
|
56
58
|
}
|
|
@@ -65,10 +67,11 @@ const MdsNotification = class {
|
|
|
65
67
|
this.caller = c;
|
|
66
68
|
}
|
|
67
69
|
componentDidLoad() {
|
|
70
|
+
var _a;
|
|
68
71
|
if (this.strategy === 'disabled') {
|
|
69
72
|
return;
|
|
70
73
|
}
|
|
71
|
-
if (this.target !== '' && this.cleanupAutoUpdate == null) {
|
|
74
|
+
if (((_a = this.target) !== null && _a !== void 0 ? _a : '') !== '' && this.cleanupAutoUpdate == null) {
|
|
72
75
|
setTimeout(() => {
|
|
73
76
|
this.cleanupAutoUpdate = floatingUi_dom.autoUpdate(this.caller, this.host, this.updatePosition);
|
|
74
77
|
}, 100);
|
|
@@ -84,7 +87,7 @@ const MdsNotification = class {
|
|
|
84
87
|
}
|
|
85
88
|
render() {
|
|
86
89
|
var _a;
|
|
87
|
-
return (index.h(index.Host, { key: '
|
|
90
|
+
return (index.h(index.Host, { key: '7ccd6942aef0bc72b1da02625dd1eff455998ef5', "aria-labelledby": this.target, "aria-label": (_a = this.value) !== null && _a !== void 0 ? _a : '0', "pref-animation": preference.preferenceStore.state.animation }, index.h("mds-text", { key: '8f4283fa8d54781cd37040427fd1c0dc2ee11348', typography: "caption", class: "dot", "aria-hidden": "true" }, this.clean(this.value))));
|
|
88
91
|
}
|
|
89
92
|
get host() { return index.getElement(this); }
|
|
90
93
|
static get watchers() { return {
|
|
@@ -243,7 +243,7 @@ const MdsPrefLanguageItem = class {
|
|
|
243
243
|
// unrecognized code is a real error; empty codes fall back to the `noCode` branch
|
|
244
244
|
// already handled in render().
|
|
245
245
|
this.validateCode = (code) => {
|
|
246
|
-
if (code
|
|
246
|
+
if (code != null && code !== '' && localeDefault[code] === undefined) {
|
|
247
247
|
throw Error(`Language code not found: ${code}`);
|
|
248
248
|
}
|
|
249
249
|
};
|
|
@@ -258,10 +258,11 @@ const MdsPrefLanguageItem = class {
|
|
|
258
258
|
this.validateCode(newValue);
|
|
259
259
|
}
|
|
260
260
|
render() {
|
|
261
|
+
var _a;
|
|
261
262
|
return (
|
|
262
263
|
// the item is an entry of the `menu` the mds-dropdown of the controller opens:
|
|
263
264
|
// without the role axe rejects it as a child of that menu (aria-required-children)
|
|
264
|
-
index.h(index.Host, { key: '
|
|
265
|
+
index.h(index.Host, { key: '968d0f761a2c4b2de6652069dc1db4f51d61ee76', onClick: this.handleClick, role: "menuitem" }, ((_a = this.code) !== null && _a !== void 0 ? _a : '') !== '' ? (index.h("mds-button", { icon: this.selected ? checkCircle.miBaselineCheckCircle : circle.miOutlineCircle, variant: "dark", tone: "text", label: localeDefault[this.code] })) : (index.h("mds-button", { icon: checkCircle.miBaselineCheckCircle, variant: "error", tone: "text", label: this.t.get('noCode') }))));
|
|
265
266
|
}
|
|
266
267
|
static get watchers() { return {
|
|
267
268
|
"code": [{
|
|
@@ -27,7 +27,8 @@ const MdsPrefThemeItem = class {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
componentWillRender() {
|
|
30
|
-
|
|
30
|
+
var _a;
|
|
31
|
+
if (((_a = this.label) !== null && _a !== void 0 ? _a : '') === '') {
|
|
31
32
|
this.label = this.name.charAt(0).toUpperCase() + this.name.slice(1).replace(/-/g, ' ');
|
|
32
33
|
}
|
|
33
34
|
}
|
|
@@ -35,7 +36,7 @@ const MdsPrefThemeItem = class {
|
|
|
35
36
|
return (
|
|
36
37
|
// the item is an entry of the `menu` the mds-dropdown of the controller opens:
|
|
37
38
|
// without the role axe rejects it as a child of that menu (aria-required-children)
|
|
38
|
-
index.h(index.Host, { key: '
|
|
39
|
+
index.h(index.Host, { key: 'd14e86d120deb8ce9c1425dafb96c93e9cba4005', onClick: this.handleClick, role: "menuitem" }, index.h("mds-button", { key: '60a1cf50d3875d1a6aa5493d6436edab1d96349e', icon: this.selected ? checkCircle.miBaselineCheckCircle : circle.miOutlineCircle, variant: "dark", tone: "text" }, index.h("div", { key: 'b6cd3b716ea2bf811c90c63156ad5d57e5bd7aed', class: "label" }, index.h("div", { key: 'cf8468e4b9f3d3b03d5060c9531ae1035555270e', class: "theme-preview" }, index.h("div", { key: 'b634d507168fdec1c9536d7cac619ff1195ca9f1', class: "theme-color theme-color--variant-primary" }), index.h("div", { key: '67c459ade780433bde32a6a2ba302ae9814a275c', class: "theme-color theme-color--status-success" }), index.h("div", { key: 'e68b927681b50d439bf937c55fb33b06b01463f6', class: "theme-color theme-color--status-warning" }), index.h("div", { key: 'eb392e74cecbeb00d06989d3fe5650977e0328ea', class: "theme-color theme-color--status-error" })), this.label))));
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
42
|
MdsPrefThemeItem.style = mdsPrefThemeItemCss();
|
|
@@ -19,7 +19,7 @@ function requireDayjs_min () {
|
|
|
19
19
|
if (hasRequiredDayjs_min) return dayjs_min$1.exports;
|
|
20
20
|
hasRequiredDayjs_min = 1;
|
|
21
21
|
(function (module, exports) {
|
|
22
|
-
!function(t,e){module.exports=e();}(dayjs_min,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|
|
|
22
|
+
!function(t,e){module.exports=e();}(dayjs_min,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,true),this.parse(t),this.$x=this.$x||t.x||{},this[p]=true;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,false)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case "YY":return String(e.$y).slice(-2);case "YYYY":return b.s(e.$y,4,"0");case "M":return a+1;case "MM":return b.s(a+1,2,"0");case "MMM":return h(n.monthsShort,a,c,3);case "MMMM":return h(c,a);case "D":return e.$D;case "DD":return b.s(e.$D,2,"0");case "d":return String(e.$W);case "dd":return h(n.weekdaysMin,e.$W,o,2);case "ddd":return h(n.weekdaysShort,e.$W,o,3);case "dddd":return o[e.$W];case "H":return String(s);case "HH":return b.s(s,2,"0");case "h":return d(1);case "hh":return d(2);case "a":return $(s,u,true);case "A":return $(s,u,false);case "m":return String(u);case "mm":return b.s(u,2,"0");case "s":return String(e.$s);case "ss":return b.s(e.$s,2,"0");case "SSS":return b.s(e.$ms,3,"0");case "Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,true);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),Y=_.prototype;return O.prototype=Y,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){Y[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=true),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
|
|
23
23
|
} (dayjs_min$1));
|
|
24
24
|
return dayjs_min$1.exports;
|
|
25
25
|
}
|
|
@@ -27,11 +27,13 @@ const MdsStepperBar = class {
|
|
|
27
27
|
this.currentItem = index - 1;
|
|
28
28
|
const values = new Array();
|
|
29
29
|
this.items.forEach((item, key) => {
|
|
30
|
+
var _a;
|
|
30
31
|
item.done = false;
|
|
31
32
|
if (key < this.currentItem) {
|
|
32
33
|
item.done = true;
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
const value = (_a = item.value) !== null && _a !== void 0 ? _a : '';
|
|
35
|
+
if (value !== '') {
|
|
36
|
+
values.push(value);
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
item.current = false;
|
|
@@ -109,7 +111,7 @@ const MdsStepperBar = class {
|
|
|
109
111
|
});
|
|
110
112
|
}
|
|
111
113
|
render() {
|
|
112
|
-
return (index.h(index.Host, { key: '
|
|
114
|
+
return (index.h(index.Host, { key: '35f536c577499c237e0a5b1865c2dcfaa5735d72' }, index.h("div", { key: '5c204cc4ca343076982d3357e7645cc8770a22be', class: "items", part: "items" }, index.h("slot", { key: '69c3b461ada662e58051b875411781a862ff565d' })), index.h("div", { key: '7fb5381e1126a5227b50ecc202154e44928aab5e', class: "contents", part: "contents" }, index.h("slot", { key: '535d40033b20590f72e9fef336bda3ed7b06cead', name: "content" }))));
|
|
113
115
|
}
|
|
114
116
|
get element() { return index.getElement(this); }
|
|
115
117
|
static get watchers() { return {
|
|
@@ -25,8 +25,9 @@ const MdsTabBarItem = class {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
this.onSlotChangeHandler = () => {
|
|
28
|
+
var _a;
|
|
28
29
|
/* this should be removed in the future once slotted text is no longer used, use the label property instead */
|
|
29
|
-
if (this.label !==
|
|
30
|
+
if (((_a = this.label) !== null && _a !== void 0 ? _a : '') !== '')
|
|
30
31
|
return;
|
|
31
32
|
this.label = slot.readSlottedLabel(this.element);
|
|
32
33
|
};
|
|
@@ -41,7 +42,7 @@ const MdsTabBarItem = class {
|
|
|
41
42
|
this.label = slot.sanitizeLabel(newValue);
|
|
42
43
|
}
|
|
43
44
|
render() {
|
|
44
|
-
return (index.h(index.Host, { key: '
|
|
45
|
+
return (index.h(index.Host, { key: '6e2c08fad0e04d0725ab7ef827c654cf9edecb51', onClick: this.select, "pref-animation": preference.preferenceStore.state.animation, "pref-contrast": preference.preferenceStore.state.contrast, "pref-mode": preference.preferenceStore.state.mode, "pref-theme-scheme": preference.preferenceStore.state['theme-scheme'] }, index.h("mds-icon", { key: 'cc8cc878d899d20532b1582ae7eb2aa459a82078', name: this.icon }), index.h("mds-text", { key: 'ea6030247b5999f34cd64a6a3ea8b15de66ba5ab', typography: this.typography }, this.label || index.h("slot", { key: 'b922dbfe1b35997ac2c9e9d384e22505838a6994', onSlotchange: this.onSlotChangeHandler }))));
|
|
45
46
|
}
|
|
46
47
|
get element() { return index.getElement(this); }
|
|
47
48
|
static get watchers() { return {
|