@maggioli-design-system/magma 2.0.0-beta.5 → 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/README.md +2 -1
- package/dist/cjs/index.cjs.js +64 -22
- package/dist/cjs/{locale.it-D-rxNDkm.js → locale.it-CfUV2hxK.js} +13 -10
- 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 +18 -18
- package/dist/cjs/mds-file.cjs.entry.js +1 -1
- 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/common/file.js +13 -10
- 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-B14Ci2fO.js → p-s2Gu6hY7.js} +1 -1
- package/dist/components/p-zml3K7nx.js +1 -0
- package/dist/documentation.json +5 -5
- package/dist/esm/index.js +64 -22
- package/dist/esm/{locale.it-Dj8sWDfj.js → locale.it-Cvxh7La5.js} +13 -10
- 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 +18 -18
- package/dist/esm/mds-file.entry.js +1 -1
- 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/locale.it-Cvxh7La5.js +6 -0
- 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 +13 -11
- package/dist/esm-es5/mds-file.entry.js +6 -6
- 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 +283 -174
- package/dist/hydrate/index.mjs +283 -174
- 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-7f2e3b74.system.entry.js → p-4f107cb2.system.entry.js} +31 -31
- package/dist/magma-components/p-4oB0woT9.system.js +6 -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-8103d4d4.system.entry.js → p-8b1abf81.system.entry.js} +12 -10
- 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-B6mQg6yQ.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-9d9a947b.entry.js → p-b35c26f8.entry.js} +2 -2
- 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 +411 -411
- 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 +11 -11
- 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-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/components/p-sUKtonkE.js +0 -8
- package/dist/esm-es5/locale.it-Dj8sWDfj.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-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-7d317ff0.entry.js +0 -8
- 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-CSb7Iu19.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
- package/dist/magma-components/p-ihVfCXG4.system.js +0 -1
|
@@ -101,8 +101,9 @@ const MdsButton = class {
|
|
|
101
101
|
throw Error('Object window is not defined');
|
|
102
102
|
};
|
|
103
103
|
this.onSlotChangeHandler = () => {
|
|
104
|
+
var _a;
|
|
104
105
|
/* this should be removed in the future once slotted text is no longer used, use the label property instead */
|
|
105
|
-
if (this.label !==
|
|
106
|
+
if (((_a = this.label) !== null && _a !== void 0 ? _a : '') !== '')
|
|
106
107
|
return;
|
|
107
108
|
this.label = readSlottedLabel(this.host);
|
|
108
109
|
};
|
|
@@ -159,8 +160,9 @@ const MdsButton = class {
|
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
162
|
componentWillLoad() {
|
|
163
|
+
var _a;
|
|
162
164
|
this.handleVariantChange(this.variant);
|
|
163
|
-
if (this.href !==
|
|
165
|
+
if (((_a = this.href) !== null && _a !== void 0 ? _a : '') !== '') {
|
|
164
166
|
this.host.addEventListener('click', (e) => {
|
|
165
167
|
var _a;
|
|
166
168
|
e.preventDefault();
|
|
@@ -183,6 +185,7 @@ const MdsButton = class {
|
|
|
183
185
|
}
|
|
184
186
|
}
|
|
185
187
|
componentDidLoad() {
|
|
188
|
+
var _a;
|
|
186
189
|
this.km.addElement(this.host);
|
|
187
190
|
if (!this.await) {
|
|
188
191
|
this.km.attachClickBehavior();
|
|
@@ -200,9 +203,7 @@ const MdsButton = class {
|
|
|
200
203
|
if (this.label === '') {
|
|
201
204
|
this.label = undefined;
|
|
202
205
|
}
|
|
203
|
-
if ((this.label ===
|
|
204
|
-
this.icon !== undefined &&
|
|
205
|
-
this.icon !== '') {
|
|
206
|
+
if (((_a = this.label) !== null && _a !== void 0 ? _a : '') === '' && this.icon != null && this.icon !== '') {
|
|
206
207
|
const iconTitle = unslugName(this.icon);
|
|
207
208
|
if (!this.host.hasAttribute('aria-label')) {
|
|
208
209
|
setAttributeIfEmpty(this.host, 'title', iconTitle);
|
|
@@ -231,7 +232,7 @@ const MdsButton = class {
|
|
|
231
232
|
render() {
|
|
232
233
|
var _a;
|
|
233
234
|
this.typography = ((_a = buttonSizeTypographyVariant[this.size]) !== null && _a !== void 0 ? _a : buttonSizeTypographyVariant.md);
|
|
234
|
-
return (h(Host, { key: '
|
|
235
|
+
return (h(Host, { key: '3d7db80d99477ad9e4ff34c97d0cb0e04160a041', onMouseDown: this.mouseDown, onMouseUp: this.mouseUp, onMouseOut: this.mouseUp, tabindex: "0", "pref-animation": preferenceStore.state.animation, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, h("div", { key: '133053ee2566972bbbaf1f47faa87c1f9c30b841', class: "await" }, h("mds-spinner", { key: 'ce67aa6522a2c646b1efebf51dcc51d3a987b5c9', class: "spinner", running: this.await })), this.icon && this.iconPosition === 'left' && (h("mds-icon", { key: '81d183d185387f2e6113869e14cb274a57f44f3b', "aria-hidden": "true", class: "icon", name: this.icon, part: "icon" })), h("mds-text", { key: '5ac26dd99519f30bcfe71fcbe0fdd4195055bea2', class: "text", part: "label", tag: "span", typography: this.typography, truncate: this.truncate, animation: this.animation, text: this.label }, this.label || h("slot", { key: 'a56c6946ed59d9b9fe481955027015d7f46bcab1', onSlotchange: this.onSlotChangeHandler })), h("slot", { key: '1f0a279dd9e57ba7510c879e72d1f815adb76b6b', name: "notification" }), this.icon && this.iconPosition === 'right' && (h("mds-icon", { key: 'eb2f6eff668e5195d5725360ba30cb99a6e7a054', "aria-hidden": "true", class: "icon", name: this.icon, part: "icon" }))));
|
|
235
236
|
}
|
|
236
237
|
static get formAssociated() { return true; }
|
|
237
238
|
get host() { return getElement(this); }
|
|
@@ -262,14 +263,31 @@ const mdsIconCss = () => `@layer reset,vendor,theme,base,components,utilities;:h
|
|
|
262
263
|
const MdsIcon = class {
|
|
263
264
|
constructor(hostRef) {
|
|
264
265
|
registerInstance(this, hostRef);
|
|
266
|
+
// Each update supersedes the ones still loading: only the latest one sets the svg
|
|
267
|
+
this.lastUpdate = 0;
|
|
268
|
+
this.wasDisconnected = false;
|
|
269
|
+
this.onSvgPathUpdate = () => {
|
|
270
|
+
this.updateIcon();
|
|
271
|
+
};
|
|
265
272
|
this.convertBase64ToSvg = () => {
|
|
266
273
|
const svgBase64 = this.name.replace(BASE64_SVG_ICON, '').replace(/=/i, '');
|
|
267
274
|
return atob(svgBase64);
|
|
268
275
|
};
|
|
269
276
|
}
|
|
277
|
+
connectedCallback() {
|
|
278
|
+
IconsSetService.registerListener(this.onSvgPathUpdate);
|
|
279
|
+
// the svg path may have changed while the icon was out of the page
|
|
280
|
+
if (this.wasDisconnected) {
|
|
281
|
+
this.wasDisconnected = false;
|
|
282
|
+
this.updateIcon();
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
disconnectedCallback() {
|
|
286
|
+
IconsSetService.unregisterListener(this.onSvgPathUpdate);
|
|
287
|
+
this.wasDisconnected = true;
|
|
288
|
+
}
|
|
270
289
|
componentWillLoad() {
|
|
271
290
|
this.updateIcon();
|
|
272
|
-
IconsSetService.registerListener(() => this.updateIcon());
|
|
273
291
|
}
|
|
274
292
|
/**
|
|
275
293
|
* Set the path to the directory of svg files
|
|
@@ -280,8 +298,13 @@ const MdsIcon = class {
|
|
|
280
298
|
return Promise.resolve();
|
|
281
299
|
}
|
|
282
300
|
async updateIcon() {
|
|
283
|
-
|
|
301
|
+
var _a;
|
|
302
|
+
const update = ++this.lastUpdate;
|
|
303
|
+
// `name` is undefined (or null) at runtime when the attribute is missing or removed
|
|
304
|
+
if (((_a = this.name) !== null && _a !== void 0 ? _a : '') === '') {
|
|
305
|
+
this.svgHTML = '';
|
|
284
306
|
return Promise.resolve();
|
|
307
|
+
}
|
|
285
308
|
if (isIconFormatIsBase64(this.name)) {
|
|
286
309
|
this.svgHTML = this.convertBase64ToSvg();
|
|
287
310
|
return Promise.resolve();
|
|
@@ -290,10 +313,13 @@ const MdsIcon = class {
|
|
|
290
313
|
this.svgHTML = this.name;
|
|
291
314
|
return Promise.resolve();
|
|
292
315
|
}
|
|
293
|
-
|
|
316
|
+
const svgHTML = await IconsSetService.fetchSvg(this.name);
|
|
317
|
+
if (update === this.lastUpdate) {
|
|
318
|
+
this.svgHTML = svgHTML;
|
|
319
|
+
}
|
|
294
320
|
}
|
|
295
321
|
render() {
|
|
296
|
-
return (h(Host, { key: '
|
|
322
|
+
return (h(Host, { key: '9544b1ca2b153e95f6710e0bbed762048676fb48' }, this.svgHTML && h("i", { key: '745b56492d69be55e449b94633b09391972e3d79', "aria-hidden": "true", class: "icon", part: "svg", innerHTML: this.svgHTML })));
|
|
297
323
|
}
|
|
298
324
|
get hostElement() { return getElement(this); }
|
|
299
325
|
static get watchers() { return {
|
|
@@ -293,7 +293,8 @@ const MdsDropdown = class {
|
|
|
293
293
|
this.floatingController.updatePosition();
|
|
294
294
|
}
|
|
295
295
|
targetChanged() {
|
|
296
|
-
|
|
296
|
+
var _a;
|
|
297
|
+
if (((_a = this.target) !== null && _a !== void 0 ? _a : '') === '' || this.floatingController == null)
|
|
297
298
|
return;
|
|
298
299
|
const caller = this.floatingController.updateCaller(this.target);
|
|
299
300
|
if (!caller)
|
|
@@ -362,9 +363,9 @@ const MdsDropdown = class {
|
|
|
362
363
|
this.km.detachEscapeBehavior();
|
|
363
364
|
}
|
|
364
365
|
render() {
|
|
365
|
-
return (h(Host, { key: '
|
|
366
|
+
return (h(Host, { key: '42bb1259088a7cc15869cd0cbf007ce9f34331cb', style: {
|
|
366
367
|
zIndex: `${this.zIndex}`,
|
|
367
|
-
}, "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: '
|
|
368
|
+
}, "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: '6a2caa47a6dca50fe6ae209229daddcd7791473d', class: "arrow", innerHTML: arrowSvg }), h("slot", { key: '656a32363daa94dc4433cd5fb86d689d80502221' })));
|
|
368
369
|
}
|
|
369
370
|
get host() { return getElement(this); }
|
|
370
371
|
static get watchers() { return {
|
|
@@ -3,7 +3,7 @@ import { h as hasChildWithSlot } from './slot-C0o_l0td.js';
|
|
|
3
3
|
import { c as clsx } from './clsx-ChV9xqsO.js';
|
|
4
4
|
import { p as preferenceStore } from './preference-CKerJx2M.js';
|
|
5
5
|
|
|
6
|
-
const mdsEntityCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-avatar,mds-spinner):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-entity-background:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-entity-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-entity-detail-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-entity-icon-background:rgb(var(--label-blue-09,216 222 254));--mds-entity-icon-radius:var(--radius-md,12px);--mds-entity-icon-color:rgb(var(--label-blue-04,63 94 248));align-items:stretch;background-color:var(--mds-entity-background,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));border-radius:var(--radius-lg,16px);-webkit-box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:var(--mds-entity-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));display:flex;gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*200)}.delete,.preview,.spinner{border-radius:var(--radius-md,12px);flex-shrink:0;width:calc(var(--spacing,.0025rem)*1100)}.preview{--mds-avatar-radius:var(--mds-entity-icon-radius,var(--radius-md,12px))}.preview:not([variant]){--mds-avatar-color:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)));--mds-avatar-background-color:var(--mds-entity-icon-background,rgb(var(--label-blue-09,216 222 254)))}.preview,.spinner{align-items:center;aspect-ratio:var(--aspect-square,1/1);display:inline-flex;justify-content:center}.spinner{background-color:#0000;display:none;fill:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)))}:host([await]:not([await=false])) .spinner{display:inline-flex}mds-spinner{height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}.infos{display:flex;flex-direction:column;flex-grow:1;gap:
|
|
6
|
+
const mdsEntityCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-avatar,mds-spinner):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-entity-background:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-entity-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-entity-detail-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-entity-icon-background:rgb(var(--label-blue-09,216 222 254));--mds-entity-icon-radius:var(--radius-md,12px);--mds-entity-icon-color:rgb(var(--label-blue-04,63 94 248));align-items:stretch;background-color:var(--mds-entity-background,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));border-radius:var(--radius-lg,16px);-webkit-box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:var(--mds-entity-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));display:flex;gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*200)}.delete,.preview,.spinner{border-radius:var(--radius-md,12px);flex-shrink:0;width:calc(var(--spacing,.0025rem)*1100)}.preview{--mds-avatar-radius:var(--mds-entity-icon-radius,var(--radius-md,12px))}.preview:not([variant]){--mds-avatar-color:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)));--mds-avatar-background-color:var(--mds-entity-icon-background,rgb(var(--label-blue-09,216 222 254)))}.preview,.spinner{align-items:center;aspect-ratio:var(--aspect-square,1/1);display:inline-flex;justify-content:center}.spinner{background-color:#0000;display:none;fill:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)))}:host([await]:not([await=false])) .spinner{display:inline-flex}mds-spinner{height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}.infos{display:flex;flex-direction:column;flex-grow:1;gap:0;justify-content:center;min-width:0;white-space:nowrap}.details{align-items:baseline;color:var(--mds-entity-detail-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));display:flex;gap:calc(var(--spacing,.0025rem)*100)}.details--hidden{display:none}.actions{align-items:center;display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}::slotted([slot=action]){aspect-ratio:var(--aspect-square,1/1);height:auto;width:calc(var(--spacing,.0025rem)*1100)}::slotted(*){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title{display:flex;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([pref-contrast=more]){--mds-entity-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-entity-icon-background:rgb(var(--label-blue-08,200 210 253));--mds-entity-icon-color:rgb(var(--label-blue-03,11 51 246))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-entity-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-entity-icon-background:rgb(var(--label-blue-08,200 210 253));--mds-entity-icon-color:rgb(var(--label-blue-03,11 51 246))}}`;
|
|
7
7
|
|
|
8
8
|
const MdsEntity = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, e as Host, g as getElement } from './index-DIiEV39g.js';
|
|
2
2
|
import { m as miBaselineCancel } from './cancel-BJ8rpzfj.js';
|
|
3
3
|
import { c as clsx } from './clsx-ChV9xqsO.js';
|
|
4
|
-
import { f as fileDescriptionLocaleIt, a as fileDescriptionLocaleEs, b as fileDescriptionLocaleEn, c as fileDescriptionLocaleEl, g as getExtensionInfos, d as getSuffix, e as getFormatsVariant } from './locale.it-
|
|
4
|
+
import { f as fileDescriptionLocaleIt, a as fileDescriptionLocaleEs, b as fileDescriptionLocaleEn, c as fileDescriptionLocaleEl, g as getExtensionInfos, d as getSuffix, e as getFormatsVariant } from './locale.it-Cvxh7La5.js';
|
|
5
5
|
import { L as Locale } from './locale-CbJbTW_c.js';
|
|
6
6
|
import { p as preferenceStore } from './preference-CKerJx2M.js';
|
|
7
7
|
import './file-extensions-BxIk5ZFV.js';
|
|
8
8
|
import './panorama-b1ORvfSX.js';
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* filesize
|
|
12
|
-
*
|
|
13
|
-
* @copyright
|
|
14
|
-
* @license BSD-3-Clause
|
|
15
|
-
* @version 10.1.
|
|
16
|
-
*/
|
|
10
|
+
/**
|
|
11
|
+
* filesize
|
|
12
|
+
*
|
|
13
|
+
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
|
|
14
|
+
* @license BSD-3-Clause
|
|
15
|
+
* @version 10.1.6
|
|
16
|
+
*/
|
|
17
17
|
const ARRAY = "array";
|
|
18
18
|
const BIT = "bit";
|
|
19
19
|
const BITS = "bits";
|
|
@@ -176,9 +176,10 @@ const STRINGS = {
|
|
|
176
176
|
result[0] = result[0].toString().replace(PERIOD, separator);
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
if (pad &&
|
|
180
|
-
const
|
|
181
|
-
|
|
179
|
+
if (pad && round > 0) {
|
|
180
|
+
const i = result[0].toString(),
|
|
181
|
+
x = separator || ((i.match(/(\D)/g) || []).pop() || PERIOD),
|
|
182
|
+
tmp = i.toString().split(x),
|
|
182
183
|
s = tmp[1] || EMPTY,
|
|
183
184
|
l = s.length,
|
|
184
185
|
n = round - l;
|
|
@@ -273,13 +274,12 @@ const MdsFilePreview = class {
|
|
|
273
274
|
card === null || card === void 0 ? void 0 : card.removeEventListener('click', this.onClickDownloadEvent);
|
|
274
275
|
}
|
|
275
276
|
render() {
|
|
276
|
-
var _a, _b, _c;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
: 'preview--status') }, this.icon !== undefined && this.icon !== '' ? (h("mds-icon", { class: "icon", name: this.icon })) : (h("mds-icon", { class: "icon", name: getFormatsVariant(this.filename, this.suffix).icon })), this.message && (h("mds-text", { class: "message", typography: "caption", variant: "info" }, this.message)))), h("mds-text", { key: '32d3359b9c41a845001e17987ce703219ba29843', class: "file-name", typography: "h6", variant: "title", truncate: this.truncate, title: this.filename }, this.filename), h("div", { key: '79e555cedfc5d35b2d54ec6a3aee7591cc0edf2e', class: clsx('infos', this.filesize && 'infos--has-file-size') }, this.filesize && this.filesize === Number(this.filesize).toString() && (h("mds-text", { key: '84e7d78e1d0639e637173a1c781a61f21e459b6d', class: "file-size", truncate: "word", typography: "caption", variant: "info" }, filesize(Number(this.filesize), { standard: 'jedec' }))), this.filesize && this.filesize !== Number(this.filesize).toString() && (h("mds-text", { key: '8945ff2c6224b7a4803390eae2fc12474903a3dd', class: "file-size", truncate: "word", typography: "caption", variant: "info" }, this.filesize)), getSuffix(this.filename, this.suffix) && (h("mds-badge", { key: '5581cb1f4d13f6f15f28c0957094dcd5982f0a0f', variant: getFormatsVariant(this.filename, this.suffix).variant, tone: "weak", class: "suffix", title: (_a = this.description) !== null && _a !== void 0 ? _a : this.t.get(this.getDefaultKeyDescription()) }, getSuffix(this.filename, this.suffix))), (this.filesize === undefined || this.filesize === '') && (h("mds-text", { key: 'd743b838cc6fa9fed0f5cdf7914c7652bfc3e1ac', class: "description", truncate: "word", typography: "caption", variant: "info", title: (_b = this.description) !== null && _b !== void 0 ? _b : this.t.get(this.getDefaultKeyDescription()) }, (_c = this.description) !== null && _c !== void 0 ? _c : this.t.get(this.getDefaultKeyDescription())))))));
|
|
277
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
278
|
+
// a removed attribute or a null bound by a framework counts as not set, like an empty value
|
|
279
|
+
const hasMessage = ((_a = this.message) !== null && _a !== void 0 ? _a : '') !== '';
|
|
280
|
+
return (h(Host, { key: '4450e7351e840c4b0f7d72c9b1bc441d9087ad7e', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.deletable && (h("mds-button", { key: '8f1d4ced62f8c479a5e1c324b5ce940cf7aa2d84', title: this.t.get('remove'), class: "action-delete", icon: miBaselineCancel, variant: "light", onClick: this.onClickDeletedEvent })), h("div", { key: '45d38745f7466b0da5b8f2724879ef46d6826bfd', class: "card", part: "card", onClick: this.onClickDownloadEvent }, ((_b = this.src) !== null && _b !== void 0 ? _b : '') !== '' &&
|
|
281
|
+
!hasMessage &&
|
|
282
|
+
getExtensionInfos(this.filename, this.suffix).preview ? (h("mds-img", { src: this.src, class: "preview preview--image", "aspect-ratio": "1/1" })) : (h("div", { class: clsx('preview', hasMessage ? 'preview--status' : 'preview--icon') }, ((_c = this.icon) !== null && _c !== void 0 ? _c : '') !== '' ? (h("mds-icon", { class: "icon", name: this.icon })) : (h("mds-icon", { class: "icon", name: getFormatsVariant(this.filename, this.suffix).icon })), this.message && (h("mds-text", { class: "message", typography: "caption", variant: "info" }, this.message)))), h("mds-text", { key: 'e87d673948267ccf70636d4c2940fb8885f2fb96', class: "file-name", typography: "h6", variant: "title", truncate: this.truncate, title: this.filename }, this.filename), h("div", { key: '25e05eb7f5bef19a392b87401f2e780bd8e605cd', class: clsx('infos', this.filesize && 'infos--has-file-size') }, this.filesize && this.filesize === Number(this.filesize).toString() && (h("mds-text", { key: 'cdd7ebbbc99f90caee0c49d74a4b8f4ce0769a2a', class: "file-size", truncate: "word", typography: "caption", variant: "info" }, filesize(Number(this.filesize), { standard: 'jedec' }))), this.filesize && this.filesize !== Number(this.filesize).toString() && (h("mds-text", { key: '381998bfae5b4d76fed78c70f38ef2aab5d13f9e', class: "file-size", truncate: "word", typography: "caption", variant: "info" }, this.filesize)), getSuffix(this.filename, this.suffix) && (h("mds-badge", { key: '89f980cf0ec10d220c83f5a6e8ded4a4d9491a0c', variant: getFormatsVariant(this.filename, this.suffix).variant, tone: "weak", class: "suffix", title: (_d = this.description) !== null && _d !== void 0 ? _d : this.t.get(this.getDefaultKeyDescription()) }, getSuffix(this.filename, this.suffix))), ((_e = this.filesize) !== null && _e !== void 0 ? _e : '') === '' && (h("mds-text", { key: 'f29356eb97dbb5bc137d3d278176633ce938111f', class: "description", truncate: "word", typography: "caption", variant: "info", title: (_f = this.description) !== null && _f !== void 0 ? _f : this.t.get(this.getDefaultKeyDescription()) }, (_g = this.description) !== null && _g !== void 0 ? _g : this.t.get(this.getDefaultKeyDescription())))))));
|
|
283
283
|
}
|
|
284
284
|
get host() { return getElement(this); }
|
|
285
285
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, e as Host, g as getElement } from './index-DIiEV39g.js';
|
|
2
2
|
import { a as getAugmentedNamespace, c as commonjsGlobal } from './_commonjsHelpers-E-ZsRS8r.js';
|
|
3
|
-
import { f as fileDescriptionLocaleIt, a as fileDescriptionLocaleEs, b as fileDescriptionLocaleEn, c as fileDescriptionLocaleEl, g as getExtensionInfos, d as getSuffix, h as getName, e as getFormatsVariant } from './locale.it-
|
|
3
|
+
import { f as fileDescriptionLocaleIt, a as fileDescriptionLocaleEs, b as fileDescriptionLocaleEn, c as fileDescriptionLocaleEl, g as getExtensionInfos, d as getSuffix, h as getName, e as getFormatsVariant } from './locale.it-Cvxh7La5.js';
|
|
4
4
|
import { L as Locale } from './locale-CbJbTW_c.js';
|
|
5
5
|
import { p as preferenceStore } from './preference-CKerJx2M.js';
|
|
6
6
|
import './file-extensions-BxIk5ZFV.js';
|
|
@@ -47,12 +47,19 @@ const MdsHeader = class {
|
|
|
47
47
|
this.closedEvent.emit({ bar: this.headerBar });
|
|
48
48
|
this.headerBar.setOpened(false);
|
|
49
49
|
};
|
|
50
|
+
// a removed attribute leaves null, which turns the auto hide off like 0
|
|
51
|
+
this.getAutoHide = () => {
|
|
52
|
+
var _a;
|
|
53
|
+
const autoHide = (_a = this.autoHide) !== null && _a !== void 0 ? _a : 0;
|
|
54
|
+
return Number.isNaN(autoHide) ? 0 : autoHide;
|
|
55
|
+
};
|
|
50
56
|
this.handleVisibility = () => {
|
|
51
|
-
|
|
57
|
+
const autoHide = this.getAutoHide();
|
|
58
|
+
if (autoHide === 0) {
|
|
52
59
|
return;
|
|
53
60
|
}
|
|
54
61
|
// reset var if the page is scrolled to top
|
|
55
|
-
if (window.scrollY <
|
|
62
|
+
if (window.scrollY < autoHide) {
|
|
56
63
|
this.visibility = 'visible';
|
|
57
64
|
this.relativeThresholdUp = 0;
|
|
58
65
|
this.relativeTresholdDown = 0;
|
|
@@ -69,9 +76,9 @@ const MdsHeader = class {
|
|
|
69
76
|
this.relativePosition = this.relativeThresholdUp;
|
|
70
77
|
}
|
|
71
78
|
// set hidden for the first scroll from top
|
|
72
|
-
if (this.relativePosition <
|
|
79
|
+
if (this.relativePosition < autoHide && autoHide - window.scrollY <= 0) {
|
|
73
80
|
this.visibility = 'hidden';
|
|
74
|
-
this.relativePosition =
|
|
81
|
+
this.relativePosition = autoHide;
|
|
75
82
|
}
|
|
76
83
|
// update respective threshold if page is scrolled up or down
|
|
77
84
|
if (window.scrollY > this.relativeThresholdUp) {
|
|
@@ -82,11 +89,13 @@ const MdsHeader = class {
|
|
|
82
89
|
}
|
|
83
90
|
};
|
|
84
91
|
this.sanitizeAppearance = () => {
|
|
85
|
-
|
|
92
|
+
var _a;
|
|
93
|
+
const appearanceSet = (_a = this.appearanceSet) !== null && _a !== void 0 ? _a : '';
|
|
94
|
+
if (appearanceSet === '') {
|
|
86
95
|
return [this.appearance];
|
|
87
96
|
}
|
|
88
97
|
const regex = /\b(\w+)\b/g;
|
|
89
|
-
const matches =
|
|
98
|
+
const matches = appearanceSet.match(regex);
|
|
90
99
|
if (matches) {
|
|
91
100
|
return matches;
|
|
92
101
|
}
|
|
@@ -103,7 +112,7 @@ const MdsHeader = class {
|
|
|
103
112
|
this.handleScroll = () => {
|
|
104
113
|
if (typeof window === 'undefined')
|
|
105
114
|
return;
|
|
106
|
-
if (this.
|
|
115
|
+
if (this.getAutoHide() !== 0) {
|
|
107
116
|
this.handleVisibility();
|
|
108
117
|
}
|
|
109
118
|
if (this.sanitizedAppearance.length > 1) {
|
|
@@ -182,7 +191,7 @@ const MdsHeader = class {
|
|
|
182
191
|
}
|
|
183
192
|
}
|
|
184
193
|
render() {
|
|
185
|
-
return (h(Host, { key: '
|
|
194
|
+
return (h(Host, { key: 'f672f81878e181d21c234188d2ad02ded1bdb039', "pref-consumption": preferenceStore.state.consumption, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, !this.hideBackdrop && (h("div", { key: '6bf87ed021bcdb62c728fbee3818a8ad11895b06', class: "backdrop" }, h("div", { key: '6a3ad84c2e41313c14531b514b2752f972986ec4', class: "backdrop-blur-item" }), h("div", { key: 'b8031f912733bcc01f47ae28e756ae9f9f184bf1', class: "backdrop-blur-item" }), h("div", { key: 'b9fddc9c2c459bc1b16ef7cc4fe0dd62c6ae0357', class: "backdrop-blur-item" }), h("div", { key: 'fb97781789e0773d35b31744a3f28bd23816e9eb', class: "backdrop-blur-item" }), h("div", { key: '1d464ccd4d846ac79d1b0ea303ab66f41af84116', class: "backdrop-blur-item" }), h("div", { key: '7ab61f7f2f21da6ad94408442237b8e2a16d32c1', class: "backdrop-blur-item" }), h("div", { key: '90fb7f3244c8047c6a576288dad756451de07cdf', class: "backdrop-blur-item" }), h("div", { key: '955ff4ac62f6a5e50726fcf5d097202622e760d2', class: "backdrop-blur-item" }), h("div", { key: '49e995993b74ce17e06c3a05004e7411442dd694', class: "backdrop-blur-item" }), h("div", { key: 'd0c693752ed5b8eee3f0c6925e158168b4e06822', class: "backdrop-blur-item" }))), h("slot", { key: '564de9025f4cdc11edb1dadf27c0c3e03be5d06d' }), this.hasMenu && (h("div", { key: 'c6cd25b6e417675a67662bbe4e2a8f0c89e1fd74', class: "menu", part: "menu" }, h("mds-modal", { key: 'cb330659a98adcf88e8af18097450edb71cb1423', class: "modal", opened: this.isOpened, onMdsModalClose: this.close, position: "right" }, h("slot", { key: 'd4f1dbcaee3303ad4c2130d7f7d64be3486bdc19', name: "menu" }))))));
|
|
186
195
|
}
|
|
187
196
|
get host() { return getElement(this); }
|
|
188
197
|
static get watchers() { return {
|
|
@@ -108,14 +108,14 @@ const MdsImg = class {
|
|
|
108
108
|
this.imageError = false;
|
|
109
109
|
}
|
|
110
110
|
componentWillLoad() {
|
|
111
|
-
var _a;
|
|
111
|
+
var _a, _b;
|
|
112
112
|
this.consumptionMode =
|
|
113
113
|
(_a = localStorage.getItem('mdsPrefConsumption')) !== null && _a !== void 0 ? _a : 'high';
|
|
114
|
-
if (this.srcsetConsumption
|
|
114
|
+
if (this.srcsetConsumption != null && this.srcsetConsumption !== '') {
|
|
115
115
|
this.srcsetConsumptionData = this.formatConsumptionData(this.srcsetConsumption);
|
|
116
116
|
}
|
|
117
117
|
this.image = this.host.querySelector('img');
|
|
118
|
-
if (this.alt === '') {
|
|
118
|
+
if (((_b = this.alt) !== null && _b !== void 0 ? _b : '') === '') {
|
|
119
119
|
this.alt = this.autoAltName();
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -315,10 +315,12 @@ const MdsInputDateRange = class {
|
|
|
315
315
|
this.syncExternalDate('end', newValue);
|
|
316
316
|
}
|
|
317
317
|
componentWillLoad() {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
318
|
+
var _a, _b;
|
|
319
|
+
// a null bound by a framework counts as no date, as the watchers already do
|
|
320
|
+
this.internalStartDate = (_a = this.startDate) !== null && _a !== void 0 ? _a : '';
|
|
321
|
+
this.internalEndDate = (_b = this.endDate) !== null && _b !== void 0 ? _b : '';
|
|
322
|
+
this.initialStartDate = this.internalStartDate;
|
|
323
|
+
this.initialEndDate = this.internalEndDate;
|
|
322
324
|
this.visibleCalendarDate = this.resolveVisibleCalendarDate(this.internalStartDate, this.internalEndDate);
|
|
323
325
|
// Se max è precedente a min, imposto max uguale a min
|
|
324
326
|
if (this.min !== null && this.min !== '' && this.max !== null && this.max !== '') {
|
|
@@ -500,7 +502,7 @@ const MdsInputDateRange = class {
|
|
|
500
502
|
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 } : {})))));
|
|
501
503
|
}
|
|
502
504
|
render() {
|
|
503
|
-
return (h(Host, { key: '
|
|
505
|
+
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())));
|
|
504
506
|
}
|
|
505
507
|
syncFormValue() {
|
|
506
508
|
var _a, _b, _c, _d;
|
|
@@ -50,6 +50,8 @@ const MdsInputSelect = class {
|
|
|
50
50
|
this.onFocus = () => {
|
|
51
51
|
this.hasFocus = true;
|
|
52
52
|
};
|
|
53
|
+
// a removed attribute or a null bound by a framework counts as no placeholder, like ''
|
|
54
|
+
this.hasPlaceholder = () => { var _a; return ((_a = this.placeholder) !== null && _a !== void 0 ? _a : '') !== ''; };
|
|
53
55
|
this.emptyOptions = () => {
|
|
54
56
|
var _a;
|
|
55
57
|
const select = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('select');
|
|
@@ -58,10 +60,10 @@ const MdsInputSelect = class {
|
|
|
58
60
|
return;
|
|
59
61
|
}
|
|
60
62
|
options.forEach((option, index) => {
|
|
61
|
-
if (this.
|
|
63
|
+
if (!this.hasPlaceholder()) {
|
|
62
64
|
option.remove();
|
|
63
65
|
}
|
|
64
|
-
if (this.
|
|
66
|
+
if (this.hasPlaceholder() && index > 0) {
|
|
65
67
|
option.remove();
|
|
66
68
|
}
|
|
67
69
|
});
|
|
@@ -73,10 +75,10 @@ const MdsInputSelect = class {
|
|
|
73
75
|
if (options == null) {
|
|
74
76
|
return;
|
|
75
77
|
}
|
|
76
|
-
if (
|
|
78
|
+
if (!this.hasPlaceholder() && options.length > 0) {
|
|
77
79
|
this.emptyOptions();
|
|
78
80
|
}
|
|
79
|
-
if (this.
|
|
81
|
+
if (this.hasPlaceholder() && options.length > 1) {
|
|
80
82
|
this.emptyOptions();
|
|
81
83
|
}
|
|
82
84
|
elements === null || elements === void 0 ? void 0 : elements.forEach((element) => {
|
|
@@ -94,7 +96,7 @@ const MdsInputSelect = class {
|
|
|
94
96
|
element.selected = element.value === this.value;
|
|
95
97
|
});
|
|
96
98
|
}
|
|
97
|
-
else if (this.
|
|
99
|
+
else if (!this.hasPlaceholder()) {
|
|
98
100
|
this.value = (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll('option')[0].value;
|
|
99
101
|
}
|
|
100
102
|
};
|
|
@@ -133,7 +135,7 @@ const MdsInputSelect = class {
|
|
|
133
135
|
* @param oldValue placeholder old value
|
|
134
136
|
*/
|
|
135
137
|
placeholderChanged(newValue, oldValue) {
|
|
136
|
-
if (newValue
|
|
138
|
+
if (newValue != null && newValue !== '' && (oldValue !== null && oldValue !== void 0 ? oldValue : '') === '') {
|
|
137
139
|
let defaultOption = document.querySelector('.placeholder-option');
|
|
138
140
|
if (defaultOption)
|
|
139
141
|
defaultOption.remove();
|
|
@@ -170,12 +172,12 @@ const MdsInputSelect = class {
|
|
|
170
172
|
}
|
|
171
173
|
}
|
|
172
174
|
render() {
|
|
173
|
-
return (h(Host, { key: '
|
|
175
|
+
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 &&
|
|
174
176
|
this.defaultValue !== '' &&
|
|
175
177
|
this.defaultValue !== 0 &&
|
|
176
178
|
!Number.isNaN(this.defaultValue)
|
|
177
179
|
? undefined
|
|
178
|
-
: true }, this.placeholder)), h("div", { key: '
|
|
180
|
+
: 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' })))));
|
|
179
181
|
}
|
|
180
182
|
static get formAssociated() { return true; }
|
|
181
183
|
get host() { return getElement(this); }
|
|
@@ -631,21 +631,25 @@ const MdsInputUpload = class {
|
|
|
631
631
|
return b.id - a.id;
|
|
632
632
|
}
|
|
633
633
|
isSortTabShown() {
|
|
634
|
-
|
|
634
|
+
var _a;
|
|
635
|
+
// the type has no empty sort, but the attribute can be empty or removed
|
|
636
|
+
const sort = (_a = this.sort) !== null && _a !== void 0 ? _a : '';
|
|
637
|
+
return sort !== '' && this.files.length > 1;
|
|
635
638
|
}
|
|
636
639
|
render() {
|
|
637
|
-
|
|
640
|
+
var _a;
|
|
641
|
+
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
|
|
638
642
|
? this.t.get('dragEnter')
|
|
639
|
-
: this.t.get('clickOrDrag', { maxFiles: this.maxFiles }) })), h("div", { key: '
|
|
643
|
+
: 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
|
|
640
644
|
? this.t.get('addFile', { maxFiles: this.maxFiles })
|
|
641
|
-
: this.t.get('selectFile') }), this.files.length > 0 && (h("mds-button", { key: '
|
|
645
|
+
: 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)
|
|
642
646
|
? this.t.get('currentFilesWithMax', {
|
|
643
647
|
currentFiles: this.files.length,
|
|
644
648
|
maxFiles: this.maxFiles,
|
|
645
649
|
})
|
|
646
|
-
: this.t.get('currentFilesNoMax', { currentFiles: this.files.length }))))), h("input", { key: '
|
|
650
|
+
: 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 !== ''
|
|
647
651
|
? `${this.t.get('canUpload')} ${this.extensions}`
|
|
648
|
-
: this.t.get('canUploadAll')), h("mds-text", { key: '
|
|
652
|
+
: 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) => {
|
|
649
653
|
switch (file.status) {
|
|
650
654
|
case Status.ERROR:
|
|
651
655
|
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) }));
|
|
@@ -503,7 +503,7 @@ const MdsInput = class {
|
|
|
503
503
|
}
|
|
504
504
|
componentWillLoad() {
|
|
505
505
|
// this.valuePristine = this.value
|
|
506
|
-
var _a;
|
|
506
|
+
var _a, _b;
|
|
507
507
|
// If the mds-input has a tabindex attribute we get the value
|
|
508
508
|
// and pass it down to the native input, then remove it from the
|
|
509
509
|
// mds-input to avoid causing tabbing twice on the same element
|
|
@@ -514,7 +514,7 @@ const MdsInput = class {
|
|
|
514
514
|
}
|
|
515
515
|
setFormValue(this.internals, (_a = this.value) !== null && _a !== void 0 ? _a : null);
|
|
516
516
|
this.maxLengthChanged(this.maxlength);
|
|
517
|
-
this.isValid = !(this.required && this.value === '');
|
|
517
|
+
this.isValid = !(this.required && ((_b = this.value) !== null && _b !== void 0 ? _b : '') === '');
|
|
518
518
|
}
|
|
519
519
|
componentDidLoad() {
|
|
520
520
|
var _a, _b, _c;
|
|
@@ -639,9 +639,9 @@ const MdsInput = class {
|
|
|
639
639
|
}
|
|
640
640
|
render() {
|
|
641
641
|
var _a, _b, _c;
|
|
642
|
-
return (h(Host, { key: '
|
|
642
|
+
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' ? miBaselineKeyboardArrowDown : 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' ? miBaselineKeyboardArrowUp : 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' ? miBaselineKeyboardArrowDown : 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' ? miBaselineKeyboardArrowUp : 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) => {
|
|
643
643
|
return h("option", { key: i, value: element });
|
|
644
|
-
}))), this.icon && !this.await && (h("mds-icon", { key: '
|
|
644
|
+
}))), 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) })));
|
|
645
645
|
}
|
|
646
646
|
static get formAssociated() { return true; }
|
|
647
647
|
get el() { return getElement(this); }
|
|
@@ -272,10 +272,13 @@ const MdsKeyboardKey = class {
|
|
|
272
272
|
});
|
|
273
273
|
this.keyboardKeys = keyboardKeysData;
|
|
274
274
|
this.getTitle = () => {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
275
|
+
var _a;
|
|
276
|
+
// the type has no empty name, but the attribute can be empty or removed
|
|
277
|
+
const name = (_a = this.name) !== null && _a !== void 0 ? _a : '';
|
|
278
|
+
if (name !== '') {
|
|
279
|
+
return this.t.get(this.keyboardKeys[name.toLowerCase()].description, {
|
|
280
|
+
character: this.keyboardKeys[name.toLowerCase()].alias,
|
|
281
|
+
keyboardPosition: this.keyboardKeys[name.toLowerCase()].keyboardPosition,
|
|
279
282
|
});
|
|
280
283
|
}
|
|
281
284
|
return undefined;
|
|
@@ -283,7 +286,7 @@ const MdsKeyboardKey = class {
|
|
|
283
286
|
}
|
|
284
287
|
render() {
|
|
285
288
|
var _a, _b, _c, _d;
|
|
286
|
-
return (h(Host, { key: '
|
|
289
|
+
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')))));
|
|
287
290
|
}
|
|
288
291
|
};
|
|
289
292
|
MdsKeyboardKey.style = mdsKeyboardKeyCss();
|