@maggioli-design-system/magma 1.0.0-beta → 1.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 +44 -226
- package/dist/cjs/{_commonjsHelpers-0192c5b3.js → _commonjsHelpers-e6ff1d6e.js} +0 -5
- package/dist/cjs/{aria-8237fdab.js → aria-0b8ae8a3.js} +18 -2
- package/dist/cjs/file-extensions-cd2fa955.js +126 -0
- package/dist/cjs/{floating-ui.dom.esm-58e05c82.js → floating-ui.dom.esm-4d912aff.js} +484 -40
- package/dist/cjs/{index-9808fc83.js → index-eccfa195.js} +24 -297
- package/dist/cjs/{keyboard-manager-fa9d665b.js → keyboard-manager-952eef32.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/locale-9add6645.js +845 -0
- package/dist/cjs/locale.it-e5e117c5.js +466 -0
- package/dist/cjs/magma-components.cjs.js +3 -3
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +17 -13
- package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/mds-author.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +3 -3
- package/dist/cjs/mds-badge.cjs.entry.js +2 -2
- package/dist/cjs/mds-banner.cjs.entry.js +24 -8
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +39 -4
- package/dist/cjs/mds-button_3.cjs.entry.js +53 -20
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +1 -1
- package/dist/cjs/mds-chip.cjs.entry.js +83 -28
- package/dist/cjs/mds-details.cjs.entry.js +3 -3
- package/dist/cjs/{mds-dropdown_2.cjs.entry.js → mds-dropdown.cjs.entry.js} +12 -890
- package/dist/cjs/mds-entity.cjs.entry.js +5 -5
- package/dist/cjs/mds-file-preview.cjs.entry.js +44 -11
- package/dist/cjs/mds-file.cjs.entry.js +44 -13
- package/dist/cjs/mds-filter-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-filter.cjs.entry.js +2 -2
- package/dist/cjs/mds-header-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-header.cjs.entry.js +5 -3
- package/dist/cjs/mds-help.cjs.entry.js +4 -4
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/mds-hr.cjs.entry.js +1 -1
- package/dist/cjs/mds-img.cjs.entry.js +23 -7
- package/dist/cjs/mds-input-field.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-range.cjs.entry.js +6 -5
- package/dist/cjs/mds-input-select.cjs.entry.js +8 -8
- package/dist/cjs/mds-input-switch.cjs.entry.js +9 -8
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +36 -12
- package/dist/cjs/mds-input-upload.cjs.entry.js +159 -31
- package/dist/cjs/mds-input.cjs.entry.js +44 -16
- package/dist/cjs/mds-kpi-item.cjs.entry.js +6 -4
- package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
- package/dist/cjs/mds-label.cjs.entry.js +33 -5
- package/dist/cjs/mds-list-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-list.cjs.entry.js +2 -2
- package/dist/cjs/mds-modal.cjs.entry.js +6 -4
- package/dist/cjs/mds-note.cjs.entry.js +38 -3
- package/dist/cjs/mds-notification.cjs.entry.js +4 -3
- package/dist/cjs/mds-paginator-item.cjs.entry.js +5 -5
- package/dist/cjs/mds-paginator.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-animation.cjs.entry.js +9 -7
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +9 -7
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +9 -7
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +11 -4
- package/dist/cjs/mds-pref-language.cjs.entry.js +855 -12
- package/dist/cjs/mds-pref-theme.cjs.entry.js +14 -8
- package/dist/cjs/mds-pref.cjs.entry.js +8 -4
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-progress.cjs.entry.js +10 -4
- package/dist/cjs/mds-push-notification.cjs.entry.js +87 -19
- package/dist/cjs/mds-push-notifications.cjs.entry.js +1 -1
- package/dist/cjs/mds-quote.cjs.entry.js +3 -2
- package/dist/cjs/mds-separator.cjs.entry.js +2 -2
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +8 -8
- package/dist/cjs/mds-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-row.cjs.entry.js +16 -3
- package/dist/cjs/mds-table.cjs.entry.js +18 -3
- package/dist/cjs/mds-text.cjs.entry.js +4 -2
- package/dist/cjs/mds-toast.cjs.entry.js +8 -4
- package/dist/cjs/mds-tooltip.cjs.entry.js +10 -11
- package/dist/cjs/mds-url-view.cjs.entry.js +55 -4
- package/dist/cjs/mds-usage.cjs.entry.js +3 -13
- package/dist/cjs/mds-video-wall.cjs.entry.js +5 -5
- package/dist/cjs/mds-zero.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -3
- package/dist/collection/common/aria.js +17 -1
- package/dist/collection/common/device.js +6 -0
- package/dist/collection/common/keyboard-manager.js +2 -2
- package/dist/collection/common/locale.js +17 -5
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +16 -12
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
- package/dist/collection/components/mds-avatar/mds-avatar.css +6 -6
- package/dist/collection/components/mds-badge/mds-badge.css +70 -72
- package/dist/collection/components/mds-banner/mds-banner.css +5 -5
- package/dist/collection/components/mds-banner/mds-banner.js +36 -2
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +46 -2
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +3 -0
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +1 -1
- package/dist/collection/components/mds-button/mds-button.css +147 -133
- package/dist/collection/components/mds-button/mds-button.js +4 -2
- package/dist/collection/components/mds-chip/mds-chip.css +231 -33
- package/dist/collection/components/mds-chip/mds-chip.js +167 -48
- package/dist/collection/components/mds-chip/test/mds-chip.stories.js +27 -8
- package/dist/collection/components/mds-details/mds-details.css +4 -3
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +9 -7
- package/dist/collection/components/mds-entity/mds-entity.js +4 -4
- package/dist/collection/components/mds-entity/test/mds-entity.stories.js +3 -3
- package/dist/collection/components/mds-file/mds-file.js +45 -22
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +126 -82
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +49 -3
- package/dist/collection/components/mds-filter/mds-filter.js +1 -1
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +1 -1
- package/dist/collection/components/mds-header/mds-header.js +4 -2
- package/dist/collection/components/mds-help/mds-help.css +4 -9
- package/dist/collection/components/mds-help/mds-help.js +2 -1
- package/dist/collection/components/mds-icon/mds-icon.js +2 -4
- package/dist/collection/components/mds-icon/services/icons-set.service.js +42 -9
- package/dist/collection/components/mds-icon/test/mds-icon.stories.js +15 -0
- package/dist/collection/components/mds-img/mds-img.css +3 -3
- package/dist/collection/components/mds-img/mds-img.js +32 -2
- package/dist/collection/components/mds-input/mds-input.css +4 -4
- package/dist/collection/components/mds-input/mds-input.js +40 -15
- package/dist/collection/components/mds-input/test/mds-input.stories.js +16 -7
- package/dist/collection/components/mds-input-field/mds-input-field.js +9 -9
- package/dist/collection/components/mds-input-range/mds-input-range.css +6 -6
- package/dist/collection/components/mds-input-range/mds-input-range.js +4 -3
- package/dist/collection/components/mds-input-range/test/mds-input-range.stories.js +4 -4
- package/dist/collection/components/mds-input-select/mds-input-select.css +12 -12
- package/dist/collection/components/mds-input-select/mds-input-select.js +11 -11
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +2 -2
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +6 -5
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +41 -7
- package/dist/collection/components/mds-input-upload/mds-input-upload.css +1 -1
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +41 -7
- package/dist/collection/components/mds-kpi/mds-kpi.js +1 -1
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +4 -4
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +5 -3
- package/dist/collection/components/mds-label/mds-label.css +2 -9
- package/dist/collection/components/mds-label/mds-label.js +44 -2
- package/dist/collection/components/mds-list/mds-list.js +1 -1
- package/dist/collection/components/mds-list-item/mds-list-item.js +1 -1
- package/dist/collection/components/mds-modal/mds-modal.js +5 -3
- package/dist/collection/components/mds-modal/test/mds-modal.stories.js +8 -4
- package/dist/collection/components/mds-note/mds-note.js +45 -1
- package/dist/collection/components/mds-notification/mds-notification.js +2 -1
- package/dist/collection/components/mds-paginator/mds-paginator.js +2 -2
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +3 -3
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +2 -2
- package/dist/collection/components/mds-pref/mds-pref.js +28 -2
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +32 -4
- package/dist/collection/components/mds-pref-animation/meta/dictionary.js +2 -2
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +32 -4
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +32 -4
- package/dist/collection/components/mds-pref-language/mds-pref-language.css +20 -2
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +47 -19
- package/dist/collection/components/mds-pref-language/meta/dictionary.js +2 -0
- package/dist/collection/components/mds-pref-language/test/mds-pref-language.stories.js +1 -1
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +38 -11
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +37 -5
- package/dist/collection/components/mds-price-table/test/mds-price-table.stories.js +1 -1
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +2 -0
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +4 -4
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +2 -2
- package/dist/collection/components/mds-progress/mds-progress.css +16 -16
- package/dist/collection/components/mds-progress/mds-progress.js +8 -2
- package/dist/collection/components/mds-progress/test/mds-progress.stories.js +1 -1
- package/dist/collection/components/mds-push-notification/mds-push-notification.css +6 -6
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +36 -2
- package/dist/collection/components/mds-quote/mds-quote.js +26 -1
- package/dist/collection/components/mds-quote/test/mds-quote.stories.js +11 -0
- package/dist/collection/components/mds-spinner/mds-spinner.css +3 -3
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +1 -1
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
- package/dist/collection/components/mds-tab/mds-tab.css +1 -1
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +8 -8
- package/dist/collection/components/mds-table/mds-table.css +3 -3
- package/dist/collection/components/mds-table/mds-table.js +16 -1
- package/dist/collection/components/mds-table/test/mds-table.stories.js +5 -0
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.css +2 -6
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +7 -7
- package/dist/collection/components/mds-table-row/mds-table-row.css +59 -0
- package/dist/collection/components/mds-table-row/mds-table-row.js +26 -1
- package/dist/collection/components/mds-text/mds-text.js +6 -4
- package/dist/collection/components/mds-text/test/mds-text.stories.js +1 -1
- package/dist/collection/components/mds-toast/mds-toast.js +7 -3
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +8 -9
- package/dist/collection/components/mds-url-view/mds-url-view.js +45 -1
- package/dist/collection/components/mds-usage/mds-usage.css +14 -14
- package/dist/collection/components/mds-usage/mds-usage.js +1 -11
- package/dist/collection/components/mds-video-wall/mds-video-wall.css +19 -3
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +3 -3
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/collection/dictionary/file-extensions.js +114 -56
- package/dist/collection/dictionary/text.js +60 -1
- package/dist/collection/dictionary/variant.js +10 -1
- package/dist/components/aria.js +17 -2
- package/dist/components/floating-ui.dom.esm.js +484 -40
- package/dist/components/keyboard-manager.js +2 -2
- package/dist/components/locale.it.js +578 -0
- package/dist/components/locale.js +668 -4615
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +16 -12
- package/dist/components/mds-avatar2.js +2 -2
- package/dist/components/mds-badge2.js +1 -1
- package/dist/components/mds-banner.js +23 -5
- package/dist/components/mds-breadcrumb-item.js +2 -2
- package/dist/components/mds-breadcrumb.js +39 -3
- package/dist/components/mds-button2.js +5 -3
- package/dist/components/mds-chip.js +91 -29
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown2.js +9 -7
- package/dist/components/mds-entity.js +4 -4
- package/dist/components/mds-file-preview2.js +40 -6
- package/dist/components/mds-file.js +39 -8
- package/dist/components/mds-filter-item2.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header.js +4 -2
- package/dist/components/mds-help.js +5 -4
- package/dist/components/mds-icon2.js +44 -13
- package/dist/components/mds-img2.js +22 -4
- package/dist/components/mds-input-field.js +2 -2
- package/dist/components/mds-input-range.js +5 -4
- package/dist/components/mds-input-select.js +7 -7
- package/dist/components/mds-input-switch.js +7 -6
- package/dist/components/mds-input-tip-item2.js +36 -10
- package/dist/components/mds-input-upload.js +158 -28
- package/dist/components/mds-input2.js +42 -13
- package/dist/components/mds-kpi-item.js +5 -3
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +33 -4
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-modal2.js +5 -3
- package/dist/components/mds-note.js +38 -2
- package/dist/components/mds-notification.js +2 -1
- package/dist/components/mds-paginator-item2.js +3 -3
- package/dist/components/mds-paginator.js +2 -2
- package/dist/components/mds-pref-animation.js +9 -5
- package/dist/components/mds-pref-consumption.js +9 -5
- package/dist/components/mds-pref-contrast.js +9 -5
- package/dist/components/mds-pref-language-item.js +11 -2
- package/dist/components/mds-pref-language.js +863 -23
- package/dist/components/mds-pref-theme.js +14 -6
- package/dist/components/mds-pref.js +8 -2
- package/dist/components/mds-price-table-list.js +3 -3
- package/dist/components/mds-progress2.js +9 -3
- package/dist/components/mds-push-notification.js +89 -20
- package/dist/components/mds-quote.js +4 -2
- package/dist/components/mds-spinner2.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +2 -2
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab2.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-header-cell.js +7 -7
- package/dist/components/mds-table-row.js +17 -3
- package/dist/components/mds-table.js +17 -2
- package/dist/components/mds-text2.js +3 -1
- package/dist/components/mds-toast.js +7 -3
- package/dist/components/mds-tooltip2.js +8 -9
- package/dist/components/mds-url-view.js +54 -2
- package/dist/components/mds-usage.js +2 -12
- package/dist/components/mds-video-wall.js +4 -4
- package/dist/components/mds-zero.js +1 -1
- package/dist/documentation.json +929 -484
- package/dist/{components/_commonjsHelpers.js → esm/_commonjsHelpers-bdec4bbd.js} +1 -5
- package/dist/esm/{aria-0e390d9c.js → aria-ed9d415d.js} +17 -2
- package/dist/esm/file-extensions-97006435.js +123 -0
- package/dist/esm/{floating-ui.dom.esm-f7b7f919.js → floating-ui.dom.esm-b6d2205c.js} +484 -40
- package/dist/esm/{index-f08bac5f.js → index-44fd80a1.js} +24 -297
- package/dist/esm/{keyboard-manager-f3d273fc.js → keyboard-manager-9f287ab7.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/locale-149207d6.js +843 -0
- package/dist/esm/locale.it-94429e24.js +457 -0
- package/dist/esm/magma-components.js +4 -4
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +2 -2
- package/dist/esm/mds-accordion-timer.entry.js +17 -13
- package/dist/esm/mds-accordion.entry.js +1 -1
- package/dist/esm/mds-author.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +3 -3
- package/dist/esm/mds-badge.entry.js +2 -2
- package/dist/esm/mds-banner.entry.js +24 -8
- package/dist/esm/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm/mds-bibliography.entry.js +1 -1
- package/dist/esm/mds-breadcrumb-item.entry.js +4 -4
- package/dist/esm/mds-breadcrumb.entry.js +39 -4
- package/dist/esm/mds-button_3.entry.js +53 -20
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +1 -1
- package/dist/esm/mds-chip.entry.js +83 -28
- package/dist/esm/mds-details.entry.js +3 -3
- package/dist/esm/{mds-dropdown_2.entry.js → mds-dropdown.entry.js} +13 -890
- package/dist/esm/mds-entity.entry.js +5 -5
- package/dist/esm/mds-file-preview.entry.js +40 -7
- package/dist/esm/mds-file.entry.js +39 -8
- package/dist/esm/mds-filter-item.entry.js +3 -3
- package/dist/esm/mds-filter.entry.js +2 -2
- package/dist/esm/mds-header-bar.entry.js +1 -1
- package/dist/esm/mds-header.entry.js +5 -3
- package/dist/esm/mds-help.entry.js +4 -4
- package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm/mds-hr.entry.js +1 -1
- package/dist/esm/mds-img.entry.js +23 -7
- package/dist/esm/mds-input-field.entry.js +3 -3
- package/dist/esm/mds-input-range.entry.js +6 -5
- package/dist/esm/mds-input-select.entry.js +8 -8
- package/dist/esm/mds-input-switch.entry.js +9 -8
- package/dist/esm/mds-input-tip_2.entry.js +36 -12
- package/dist/esm/mds-input-upload.entry.js +159 -31
- package/dist/esm/mds-input.entry.js +44 -16
- package/dist/esm/mds-kpi-item.entry.js +6 -4
- package/dist/esm/mds-kpi.entry.js +2 -2
- package/dist/esm/mds-label.entry.js +33 -5
- package/dist/esm/mds-list-item.entry.js +2 -2
- package/dist/esm/mds-list.entry.js +2 -2
- package/dist/esm/mds-modal.entry.js +6 -4
- package/dist/esm/mds-note.entry.js +38 -3
- package/dist/esm/mds-notification.entry.js +4 -3
- package/dist/esm/mds-paginator-item.entry.js +5 -5
- package/dist/esm/mds-paginator.entry.js +3 -3
- package/dist/esm/mds-pref-animation.entry.js +9 -7
- package/dist/esm/mds-pref-consumption.entry.js +9 -7
- package/dist/esm/mds-pref-contrast.entry.js +9 -7
- package/dist/esm/mds-pref-language-item.entry.js +11 -4
- package/dist/esm/mds-pref-language.entry.js +855 -12
- package/dist/esm/mds-pref-theme.entry.js +14 -8
- package/dist/esm/mds-pref.entry.js +8 -4
- package/dist/esm/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm/mds-price-table-features.entry.js +1 -1
- package/dist/esm/mds-price-table-header.entry.js +1 -1
- package/dist/esm/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm/mds-price-table-list.entry.js +4 -4
- package/dist/esm/mds-price-table.entry.js +1 -1
- package/dist/esm/mds-progress.entry.js +10 -4
- package/dist/esm/mds-push-notification.entry.js +87 -19
- package/dist/esm/mds-push-notifications.entry.js +1 -1
- package/dist/esm/mds-quote.entry.js +3 -2
- package/dist/esm/mds-separator.entry.js +2 -2
- package/dist/esm/mds-stepper-bar-item.entry.js +3 -3
- package/dist/esm/mds-stepper-bar.entry.js +1 -1
- package/dist/esm/mds-tab-bar-item.entry.js +2 -2
- package/dist/esm/mds-tab-bar.entry.js +1 -1
- package/dist/esm/mds-tab_2.entry.js +2 -2
- package/dist/esm/mds-table-body.entry.js +1 -1
- package/dist/esm/mds-table-cell.entry.js +2 -2
- package/dist/esm/mds-table-footer.entry.js +1 -1
- package/dist/esm/mds-table-header-cell.entry.js +8 -8
- package/dist/esm/mds-table-header.entry.js +1 -1
- package/dist/esm/mds-table-row.entry.js +16 -3
- package/dist/esm/mds-table.entry.js +18 -3
- package/dist/esm/mds-text.entry.js +4 -2
- package/dist/esm/mds-toast.entry.js +8 -4
- package/dist/esm/mds-tooltip.entry.js +10 -11
- package/dist/esm/mds-url-view.entry.js +54 -3
- package/dist/esm/mds-usage.entry.js +3 -13
- package/dist/esm/mds-video-wall.entry.js +5 -5
- package/dist/esm/mds-zero.entry.js +2 -2
- package/dist/esm-es5/_commonjsHelpers-bdec4bbd.js +1 -0
- package/dist/esm-es5/aria-ed9d415d.js +1 -0
- package/dist/esm-es5/file-extensions-97006435.js +1 -0
- package/dist/esm-es5/floating-ui.dom.esm-b6d2205c.js +1 -0
- package/dist/esm-es5/index-44fd80a1.js +1 -0
- package/dist/esm-es5/{keyboard-manager-f3d273fc.js → keyboard-manager-9f287ab7.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/locale-149207d6.js +6 -0
- package/dist/esm-es5/locale.it-94429e24.js +1 -0
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +1 -1
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +1 -1
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner.entry.js +1 -1
- package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm-es5/mds-bibliography.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +1 -1
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +1 -1
- package/dist/esm-es5/mds-chip.entry.js +1 -1
- package/dist/esm-es5/mds-details.entry.js +1 -1
- package/dist/esm-es5/mds-dropdown.entry.js +1 -0
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +2 -2
- package/dist/esm-es5/mds-file.entry.js +3 -3
- package/dist/esm-es5/mds-filter-item.entry.js +1 -1
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-header-bar.entry.js +1 -1
- package/dist/esm-es5/mds-header.entry.js +1 -1
- package/dist/esm-es5/mds-help.entry.js +1 -1
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +1 -1
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-select.entry.js +1 -1
- package/dist/esm-es5/mds-input-switch.entry.js +1 -1
- package/dist/esm-es5/mds-input-tip_2.entry.js +1 -1
- package/dist/esm-es5/mds-input-upload.entry.js +1 -1
- package/dist/esm-es5/mds-input.entry.js +1 -1
- package/dist/esm-es5/mds-kpi-item.entry.js +1 -1
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +1 -1
- package/dist/esm-es5/mds-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-note.entry.js +1 -1
- package/dist/esm-es5/mds-notification.entry.js +1 -1
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +1 -1
- package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
- package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
- package/dist/esm-es5/mds-pref-contrast.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language-item.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme.entry.js +1 -1
- package/dist/esm-es5/mds-pref.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress.entry.js +1 -1
- package/dist/esm-es5/mds-push-notification.entry.js +1 -1
- package/dist/esm-es5/mds-push-notifications.entry.js +1 -1
- package/dist/esm-es5/mds-quote.entry.js +1 -1
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab_2.entry.js +1 -1
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-cell.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +1 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
- package/dist/esm-es5/mds-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/esm-es5/mds-table.entry.js +1 -1
- package/dist/esm-es5/mds-text.entry.js +1 -1
- package/dist/esm-es5/mds-toast.entry.js +1 -1
- package/dist/esm-es5/mds-tooltip.entry.js +1 -1
- package/dist/esm-es5/mds-url-view.entry.js +1 -1
- package/dist/esm-es5/mds-usage.entry.js +1 -1
- package/dist/esm-es5/mds-video-wall.entry.js +1 -1
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/hydrate/index.d.ts +6 -0
- package/dist/hydrate/index.js +3705 -5972
- package/dist/hydrate/index.mjs +3705 -5972
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/magma-components.js +1 -1
- package/dist/magma-components/p-03c13bdf.system.entry.js +1 -0
- package/dist/magma-components/p-0492e275.entry.js +1 -0
- package/dist/magma-components/p-04c61fa1.system.entry.js +1 -0
- package/dist/magma-components/p-05bf15c7.entry.js +1 -0
- package/dist/magma-components/{p-5f0f0448.system.entry.js → p-07253a21.system.entry.js} +1 -1
- package/dist/magma-components/p-086c8147.entry.js +1 -0
- package/dist/magma-components/p-0b2a9068.entry.js +1 -0
- package/dist/magma-components/p-0b6b57fb.js +1 -0
- package/dist/magma-components/p-0b77bb1c.system.entry.js +1 -0
- package/dist/magma-components/p-0f3e17bc.js +1 -0
- package/dist/magma-components/{p-7d460c08.system.entry.js → p-0f6c6757.system.entry.js} +1 -1
- package/dist/magma-components/p-13c6c73b.entry.js +1 -0
- package/dist/magma-components/p-13ce8757.system.entry.js +1 -0
- package/dist/magma-components/p-1400e3c3.system.entry.js +1 -0
- package/dist/magma-components/p-1581b10e.system.entry.js +1 -0
- package/dist/magma-components/{p-8980cf86.system.entry.js → p-17d63927.system.entry.js} +1 -1
- package/dist/magma-components/{p-ae612034.system.entry.js → p-19114f13.system.entry.js} +1 -1
- package/dist/magma-components/{p-53f8a981.entry.js → p-19c55d3e.entry.js} +1 -1
- package/dist/magma-components/{p-5258907f.system.entry.js → p-1b436c7c.system.entry.js} +1 -1
- package/dist/magma-components/{p-2f7dd737.system.entry.js → p-1bb949c2.system.entry.js} +1 -1
- package/dist/magma-components/p-217aed60.system.entry.js +1 -0
- package/dist/magma-components/p-21b1acec.system.js +1 -0
- package/dist/magma-components/{p-f62b4856.entry.js → p-22954bd0.entry.js} +1 -1
- package/dist/magma-components/{p-67f8aea1.entry.js → p-23c0e5bb.entry.js} +1 -1
- package/dist/magma-components/p-247e25c9.entry.js +1 -0
- package/dist/magma-components/p-2547e1c5.entry.js +1 -0
- package/dist/magma-components/p-25602048.system.entry.js +1 -0
- package/dist/magma-components/{p-dbde7f2c.system.entry.js → p-27923d25.system.entry.js} +1 -1
- package/dist/magma-components/p-2a0bffc8.entry.js +1 -0
- package/dist/magma-components/p-2bedaf5f.system.entry.js +1 -0
- package/dist/magma-components/p-2d5135c7.entry.js +1 -0
- package/dist/magma-components/p-2d58b5b8.system.entry.js +1 -0
- package/dist/magma-components/{p-b4c84e8e.entry.js → p-2e3e7ae9.entry.js} +1 -1
- package/dist/magma-components/{p-12c9e7c1.system.entry.js → p-30326380.system.entry.js} +1 -1
- package/dist/magma-components/p-304b1738.entry.js +1 -0
- package/dist/magma-components/{p-c7267a25.system.entry.js → p-30671bb6.system.entry.js} +1 -1
- package/dist/magma-components/p-31ad7005.entry.js +1 -0
- package/dist/magma-components/p-3213bed3.js +1 -0
- package/dist/magma-components/{p-06bbdfbc.system.js → p-32f55263.system.js} +1 -1
- package/dist/magma-components/{p-3ebb87fd.system.entry.js → p-332ef4c5.system.entry.js} +1 -1
- package/dist/magma-components/p-340717b1.entry.js +1 -0
- package/dist/magma-components/{p-19ffbf29.system.entry.js → p-3545d28a.system.entry.js} +1 -1
- package/dist/magma-components/p-3759b1b2.system.js +6 -0
- package/dist/magma-components/{p-57e85f09.entry.js → p-3c4114a1.entry.js} +1 -1
- package/dist/magma-components/{p-e1ae3377.entry.js → p-3c7584e0.entry.js} +1 -1
- package/dist/magma-components/p-3d9b24ed.system.entry.js +1 -0
- package/dist/magma-components/p-3dcee09b.entry.js +1 -0
- package/dist/magma-components/p-413e1924.entry.js +8 -0
- package/dist/magma-components/{p-7ff9ee47.system.entry.js → p-41b0013f.system.entry.js} +1 -1
- package/dist/magma-components/p-42aaebea.entry.js +1 -0
- package/dist/magma-components/p-42c66e40.entry.js +1 -0
- package/dist/magma-components/{p-eba07611.system.entry.js → p-438c83a4.system.entry.js} +1 -1
- package/dist/magma-components/p-4509e5dd.entry.js +1 -0
- package/dist/magma-components/{p-8b576fd8.entry.js → p-46df472e.entry.js} +1 -1
- package/dist/magma-components/{p-12a6692f.entry.js → p-47044832.entry.js} +1 -1
- package/dist/magma-components/{p-1a2e5af9.entry.js → p-4a57c918.entry.js} +1 -1
- package/dist/magma-components/p-4d469a01.entry.js +1 -0
- package/dist/magma-components/{p-d41cdc56.entry.js → p-4e0c9d47.entry.js} +1 -1
- package/dist/magma-components/{p-d219007f.system.entry.js → p-4f52b15e.system.entry.js} +1 -1
- package/dist/magma-components/p-5100bf68.system.entry.js +1 -0
- package/dist/magma-components/p-55842900.entry.js +1 -0
- package/dist/magma-components/{p-8f8fd8f5.entry.js → p-5629c1f5.entry.js} +1 -1
- package/dist/magma-components/p-5818b17b.system.entry.js +1 -0
- package/dist/magma-components/p-5a2c6a26.system.entry.js +1 -0
- package/dist/magma-components/p-5af31a47.system.js +1 -0
- package/dist/magma-components/{p-0e54cbdd.entry.js → p-5d39c94f.entry.js} +1 -1
- package/dist/magma-components/{p-8c185de1.system.entry.js → p-5e063b6a.system.entry.js} +1 -1
- package/dist/magma-components/{p-32c2e662.system.entry.js → p-5fbe3d63.system.entry.js} +1 -1
- package/dist/magma-components/{p-eb1dcb87.system.entry.js → p-600f012f.system.entry.js} +1 -1
- package/dist/magma-components/{p-3013e2cb.entry.js → p-605913ba.entry.js} +1 -1
- package/dist/magma-components/p-60ab906d.entry.js +1 -0
- package/dist/magma-components/{p-945820db.system.entry.js → p-62ac240e.system.entry.js} +1 -1
- package/dist/magma-components/{p-00c6b918.system.entry.js → p-63e3f820.system.entry.js} +1 -1
- package/dist/magma-components/p-65ba0450.entry.js +1 -0
- package/dist/magma-components/p-6617f185.entry.js +1 -0
- package/dist/magma-components/p-665f05ca.system.entry.js +1 -0
- package/dist/magma-components/p-66ef6f68.system.entry.js +1 -0
- package/dist/magma-components/{p-d1f52b0b.system.js → p-6803cf8d.system.js} +1 -1
- package/dist/magma-components/p-694ac497.entry.js +1 -0
- package/dist/magma-components/p-6a2ec000.entry.js +1 -0
- package/dist/magma-components/p-6aed6b97.system.entry.js +1 -0
- package/dist/magma-components/p-6c4c3d44.system.entry.js +1 -0
- package/dist/magma-components/{p-f43e59d4.entry.js → p-6dc71639.entry.js} +1 -1
- package/dist/magma-components/{p-63e8bc17.system.entry.js → p-6f15b2d9.system.entry.js} +1 -1
- package/dist/magma-components/{p-7f235611.system.entry.js → p-71601583.system.entry.js} +1 -1
- package/dist/magma-components/p-759c9af3.entry.js +1 -0
- package/dist/magma-components/{p-b5f501d2.system.entry.js → p-782313bb.system.entry.js} +1 -1
- package/dist/magma-components/p-7a7220e5.entry.js +1 -0
- package/dist/magma-components/p-7ad5eeb3.system.entry.js +1 -0
- package/dist/magma-components/p-7affff90.system.entry.js +1 -0
- package/dist/magma-components/p-810ba60f.system.entry.js +1 -0
- package/dist/magma-components/{p-5ddef57f.entry.js → p-813176b0.entry.js} +1 -1
- package/dist/magma-components/p-84a3bc2b.system.entry.js +1 -0
- package/dist/magma-components/p-85aa8e05.js +1 -0
- package/dist/magma-components/p-85e7baee.entry.js +1 -0
- package/dist/magma-components/{p-20143ec9.entry.js → p-892e949c.entry.js} +1 -1
- package/dist/magma-components/p-893a87dc.system.entry.js +1 -0
- package/dist/magma-components/p-89f9e0d2.entry.js +1 -0
- package/dist/magma-components/{p-0349e303.system.entry.js → p-8fe9a0a2.system.entry.js} +1 -1
- package/dist/magma-components/p-917ba0e2.entry.js +1 -0
- package/dist/magma-components/p-94db8071.system.js +1 -0
- package/dist/magma-components/p-96afff9f.system.entry.js +1 -0
- package/dist/magma-components/p-96d07c9f.system.entry.js +1 -0
- package/dist/magma-components/p-96e60eca.system.entry.js +1 -0
- package/dist/magma-components/{p-c4b093c4.entry.js → p-9bd6657b.entry.js} +1 -1
- package/dist/magma-components/p-9bd9e612.system.entry.js +1 -0
- package/dist/magma-components/p-9c7039f0.entry.js +1 -0
- package/dist/magma-components/p-9d991391.entry.js +1 -0
- package/dist/magma-components/p-9df056cb.entry.js +1 -0
- package/dist/magma-components/p-a191a987.entry.js +1 -0
- package/dist/magma-components/{p-99678cdd.system.entry.js → p-a1f69741.system.entry.js} +1 -1
- package/dist/magma-components/{p-36c13a31.entry.js → p-a306ff28.entry.js} +1 -1
- package/dist/magma-components/p-a44d3db9.entry.js +1 -0
- package/dist/magma-components/p-a47aae12.entry.js +1 -0
- package/dist/magma-components/p-a4fc1b0b.entry.js +1 -0
- package/dist/magma-components/p-a557bad7.system.entry.js +1 -0
- package/dist/magma-components/p-a9432fee.system.entry.js +1 -0
- package/dist/magma-components/p-a9f8f986.system.entry.js +9 -0
- package/dist/magma-components/p-aa133f48.entry.js +1 -0
- package/dist/magma-components/p-aa24e213.system.entry.js +1 -0
- package/dist/magma-components/{p-e49f99c2.entry.js → p-aa8999ba.entry.js} +1 -1
- package/dist/magma-components/p-ac7403b5.system.js +1 -0
- package/dist/magma-components/{p-8321c0d3.entry.js → p-ac97dd43.entry.js} +1 -1
- package/dist/magma-components/p-ae0b6dcb.system.entry.js +1 -0
- package/dist/magma-components/{p-2a670d3c.system.entry.js → p-ae0c3e38.system.entry.js} +1 -1
- package/dist/magma-components/{p-8323a952.system.entry.js → p-aead7eab.system.entry.js} +1 -1
- package/dist/magma-components/p-b0868749.entry.js +1 -0
- package/dist/magma-components/p-b0bb702b.entry.js +1 -0
- package/dist/magma-components/p-b44f3e19.entry.js +1 -0
- package/dist/magma-components/{p-3d741487.entry.js → p-b458a7b7.entry.js} +1 -1
- package/dist/magma-components/p-b5551799.system.entry.js +1 -0
- package/dist/magma-components/p-b5a65fcd.system.js +1 -0
- package/dist/magma-components/p-b62d164b.system.entry.js +1 -0
- package/dist/magma-components/{p-efdb9fda.entry.js → p-b6cc1d20.entry.js} +1 -1
- package/dist/magma-components/p-b7889230.system.entry.js +1 -0
- package/dist/magma-components/{p-ec8975f3.entry.js → p-b8fcf897.entry.js} +1 -1
- package/dist/magma-components/{p-73ccc008.entry.js → p-bbe19d86.entry.js} +1 -1
- package/dist/magma-components/p-bd7c0f2b.entry.js +1 -0
- package/dist/magma-components/p-c0611d00.system.entry.js +1 -0
- package/dist/magma-components/{p-cd60481a.system.entry.js → p-c2291312.system.entry.js} +1 -1
- package/dist/magma-components/{p-0b471b37.system.entry.js → p-c2c1ca38.system.entry.js} +1 -1
- package/dist/magma-components/p-c310b41f.js +6 -0
- package/dist/magma-components/p-c3b57b65.entry.js +1 -0
- package/dist/magma-components/{p-f0bf8d7e.entry.js → p-c55796f6.entry.js} +1 -1
- package/dist/magma-components/p-c6616cf4.entry.js +1 -0
- package/dist/magma-components/p-c6f72257.entry.js +1 -0
- package/dist/magma-components/p-c7d97a3c.entry.js +1 -0
- package/dist/magma-components/p-c94628eb.system.js +2 -0
- package/dist/magma-components/p-d06b650f.entry.js +1 -0
- package/dist/magma-components/{p-bebaf8c9.system.entry.js → p-d239736c.system.entry.js} +1 -1
- package/dist/magma-components/p-d3f2a762.system.entry.js +1 -0
- package/dist/magma-components/p-d4a14ac6.entry.js +1 -0
- package/dist/magma-components/{p-adafaeb1.system.entry.js → p-d4ad6446.system.entry.js} +1 -1
- package/dist/magma-components/{p-5f3b296e.system.entry.js → p-d4f60172.system.entry.js} +1 -1
- package/dist/magma-components/p-d7fe5fb4.entry.js +1 -0
- package/dist/magma-components/p-dd0f6f83.entry.js +1 -0
- package/dist/magma-components/{p-0a4fcd1d.system.entry.js → p-dd7b49e7.system.entry.js} +1 -1
- package/dist/magma-components/p-ddb91a8e.system.entry.js +1 -0
- package/dist/magma-components/p-de21d32b.system.entry.js +1 -0
- package/dist/magma-components/p-dea5d36c.entry.js +1 -0
- package/dist/magma-components/{p-bf66db4f.entry.js → p-df55c1ea.entry.js} +1 -1
- package/dist/magma-components/{p-56132185.system.entry.js → p-e0288f0c.system.entry.js} +1 -1
- package/dist/magma-components/p-e03788d9.entry.js +1 -0
- package/dist/magma-components/p-e290055a.entry.js +18 -0
- package/dist/magma-components/p-e3423b24.entry.js +1 -0
- package/dist/magma-components/{p-d60d99ac.entry.js → p-e3b9a60f.entry.js} +1 -1
- package/dist/magma-components/p-e420031e.js +1 -0
- package/dist/magma-components/{p-ac5f1e42.system.entry.js → p-e5c3a802.system.entry.js} +1 -1
- package/dist/magma-components/p-e6e67992.entry.js +1 -0
- package/dist/magma-components/p-e82d486e.system.entry.js +18 -0
- package/dist/magma-components/p-e95f01d6.system.entry.js +1 -0
- package/dist/magma-components/{p-c2938231.system.entry.js → p-e9940be7.system.entry.js} +1 -1
- package/dist/magma-components/p-eab621a7.js +2 -0
- package/dist/magma-components/{p-9a878d34.entry.js → p-eae957b3.entry.js} +1 -1
- package/dist/magma-components/p-eb4bc264.system.entry.js +1 -0
- package/dist/magma-components/p-eb8bbb53.entry.js +1 -0
- package/dist/magma-components/{p-a09946ab.entry.js → p-edbaf4ab.entry.js} +1 -1
- package/dist/magma-components/p-ee536517.entry.js +1 -0
- package/dist/magma-components/{p-c2a42118.system.entry.js → p-eef53c2a.system.entry.js} +1 -1
- package/dist/magma-components/p-f0027ed8.system.entry.js +1 -0
- package/dist/magma-components/p-f00c93f4.js +1 -0
- package/dist/magma-components/p-f060e8cc.system.entry.js +1 -0
- package/dist/magma-components/p-f142ee72.entry.js +1 -0
- package/dist/magma-components/{p-efa3471a.entry.js → p-f1d7b5ea.entry.js} +1 -1
- package/dist/magma-components/{p-a5183c20.system.entry.js → p-f63148da.system.entry.js} +1 -1
- package/dist/magma-components/{p-44aaca66.system.entry.js → p-f94593f9.system.entry.js} +1 -1
- package/dist/magma-components/{p-c4cf09ea.system.entry.js → p-fa5fb4be.system.entry.js} +1 -1
- package/dist/magma-components/p-fc8bce99.system.entry.js +1 -0
- package/dist/magma-components/p-fe13fac9.system.entry.js +1 -0
- package/dist/magma-components/{p-12a225e3.system.entry.js → p-feadfe43.system.entry.js} +1 -1
- package/dist/magma-components/{p-bf242a75.system.entry.js → p-ffa94d0f.system.entry.js} +1 -1
- package/dist/stats.json +3575 -2712
- package/dist/types/common/aria.d.ts +3 -1
- package/dist/types/common/date.d.ts +1 -1
- package/dist/types/common/device.d.ts +2 -0
- package/dist/types/common/file.d.ts +2 -2
- package/dist/types/common/locale.d.ts +3 -1
- package/dist/types/components/mds-accordion/mds-accordion.d.ts +1 -1
- package/dist/types/components/mds-accordion-item/mds-accordion-item.d.ts +1 -1
- package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +1 -1
- package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +1 -1
- package/dist/types/components/mds-avatar/mds-avatar.d.ts +1 -1
- package/dist/types/components/mds-badge/mds-badge.d.ts +2 -2
- package/dist/types/components/mds-banner/mds-banner.d.ts +3 -1
- package/dist/types/components/mds-benchmark-bar/mds-benchmark-bar.d.ts +1 -1
- package/dist/types/components/mds-bibliography/mds-bibliography.d.ts +1 -1
- package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +5 -1
- package/dist/types/components/mds-button/mds-button.d.ts +2 -2
- package/dist/types/components/mds-chip/mds-chip.d.ts +22 -7
- package/dist/types/components/mds-chip/test/mds-chip.stories.d.ts +30 -4
- package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +1 -1
- package/dist/types/components/mds-entity/mds-entity.d.ts +1 -1
- package/dist/types/components/mds-file/mds-file.d.ts +4 -5
- package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +7 -4
- package/dist/types/components/mds-file-preview/meta/event-detail.d.ts +1 -1
- package/dist/types/components/mds-filter/mds-filter.d.ts +1 -1
- package/dist/types/components/mds-header/mds-header.d.ts +1 -1
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +1 -1
- package/dist/types/components/mds-help/mds-help.d.ts +1 -1
- package/dist/types/components/mds-icon/services/icons-set.service.d.ts +20 -4
- package/dist/types/components/mds-icon/test/mds-icon.stories.d.ts +1 -0
- package/dist/types/components/mds-img/mds-img.d.ts +3 -1
- package/dist/types/components/mds-input/mds-input.d.ts +6 -7
- package/dist/types/components/mds-input/test/mds-input.stories.d.ts +1 -0
- package/dist/types/components/mds-input-field/mds-input-field.d.ts +5 -6
- package/dist/types/components/mds-input-range/mds-input-range.d.ts +1 -0
- package/dist/types/components/mds-input-range/test/mds-input-range.stories.d.ts +0 -4
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +3 -3
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +2 -1
- package/dist/types/components/mds-input-switch/meta/interfaces.d.ts +1 -1
- package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +3 -1
- package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +13 -10
- package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +1 -1
- package/dist/types/components/mds-label/mds-label.d.ts +6 -3
- package/dist/types/components/mds-list-item/mds-list-item.d.ts +1 -1
- package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +1 -2
- package/dist/types/components/mds-note/mds-note.d.ts +5 -1
- package/dist/types/components/mds-pref/mds-pref.d.ts +2 -0
- package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +9 -8
- package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +10 -9
- package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +11 -10
- package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +20 -15
- package/dist/types/components/mds-pref-language/test/mds-pref-language.stories.d.ts +1 -1
- package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +5 -4
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +14 -12
- package/dist/types/components/mds-price-table-list-item/mds-price-table-list-item.d.ts +1 -1
- package/dist/types/components/mds-progress/mds-progress.d.ts +2 -1
- package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +4 -2
- package/dist/types/components/mds-quote/mds-quote.d.ts +6 -1
- package/dist/types/components/mds-quote/test/mds-quote.stories.d.ts +7 -0
- package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +1 -1
- package/dist/types/components/mds-tab/mds-tab.d.ts +1 -1
- package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +1 -1
- package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +1 -1
- package/dist/types/components/mds-table/mds-table.d.ts +1 -0
- package/dist/types/components/mds-table/test/mds-table.stories.d.ts +1 -0
- package/dist/types/components/mds-table-header-cell/meta/types.d.ts +1 -1
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +4 -0
- package/dist/types/components/mds-text/mds-text.d.ts +4 -3
- package/dist/types/components/mds-text/meta/types.d.ts +0 -1
- package/dist/types/components/mds-toast/mds-toast.d.ts +1 -1
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +2 -2
- package/dist/types/components/mds-url-view/mds-url-view.d.ts +5 -1
- package/dist/types/components/mds-usage/mds-usage.d.ts +0 -2
- package/dist/types/components.d.ts +99 -117
- package/dist/types/dictionary/file-extensions.d.ts +1 -1
- package/dist/types/dictionary/text.d.ts +3 -1
- package/dist/types/dictionary/variant.d.ts +2 -1
- package/dist/types/event-detail/language.d.ts +1 -2
- package/dist/types/event-detail/preference.d.ts +2 -2
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/type/autocomplete.d.ts +1 -1
- package/dist/types/type/input.d.ts +3 -0
- package/dist/types/type/text.d.ts +2 -0
- package/dist/types/type/variant-file-format.d.ts +1 -1
- package/dist/types/type/variant.d.ts +2 -1
- package/loader/cdn.js +2 -0
- package/loader/index.cjs.js +2 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +2 -0
- package/loader/index.js +3 -0
- package/loader/package.json +11 -0
- package/package.json +17 -13
- package/dist/cjs/file-0d013422.js +0 -154
- package/dist/cjs/file-extensions-b57dcf2c.js +0 -68
- package/dist/cjs/locale-c6c02a3a.js +0 -4796
- package/dist/collection/components/mds-input/meta/event-detail.js +0 -1
- package/dist/collection/components/mds-pref-language-nav/mds-pref-language-nav.css +0 -28
- package/dist/collection/components/mds-pref-language-nav/mds-pref-language-nav.js +0 -118
- package/dist/collection/interface/input-value.js +0 -1
- package/dist/collection/type/language.js +0 -1
- package/dist/components/file.js +0 -212
- package/dist/components/mds-pref-language-nav.d.ts +0 -11
- package/dist/components/mds-pref-language-nav.js +0 -6
- package/dist/components/mds-pref-language-nav2.js +0 -936
- package/dist/esm/_commonjsHelpers-e557d4a5.js +0 -11
- package/dist/esm/file-4e952d4d.js +0 -149
- package/dist/esm/file-extensions-e7320b03.js +0 -65
- package/dist/esm/locale-a730711f.js +0 -4794
- package/dist/esm-es5/_commonjsHelpers-e557d4a5.js +0 -1
- package/dist/esm-es5/aria-0e390d9c.js +0 -1
- package/dist/esm-es5/file-4e952d4d.js +0 -1
- package/dist/esm-es5/file-extensions-e7320b03.js +0 -1
- package/dist/esm-es5/floating-ui.dom.esm-f7b7f919.js +0 -1
- package/dist/esm-es5/index-f08bac5f.js +0 -1
- package/dist/esm-es5/locale-a730711f.js +0 -1
- package/dist/esm-es5/mds-dropdown_2.entry.js +0 -1
- package/dist/magma-components/p-00f83b1c.entry.js +0 -1
- package/dist/magma-components/p-02d1e968.entry.js +0 -1
- package/dist/magma-components/p-06adda46.system.entry.js +0 -1
- package/dist/magma-components/p-0d867719.entry.js +0 -1
- package/dist/magma-components/p-0e2ba962.entry.js +0 -1
- package/dist/magma-components/p-0fb85a5b.entry.js +0 -1
- package/dist/magma-components/p-19d5cfd1.system.entry.js +0 -1
- package/dist/magma-components/p-1a8bb922.system.entry.js +0 -1
- package/dist/magma-components/p-1c618541.entry.js +0 -1
- package/dist/magma-components/p-1ebc919c.system.entry.js +0 -1
- package/dist/magma-components/p-239398e3.entry.js +0 -1
- package/dist/magma-components/p-30c59b63.entry.js +0 -1
- package/dist/magma-components/p-348bfa69.system.entry.js +0 -1
- package/dist/magma-components/p-34b6dae4.entry.js +0 -1
- package/dist/magma-components/p-35010f4f.system.entry.js +0 -1
- package/dist/magma-components/p-369fc037.system.js +0 -2
- package/dist/magma-components/p-39379806.js +0 -1
- package/dist/magma-components/p-39f3c979.entry.js +0 -1
- package/dist/magma-components/p-3a1212f7.system.js +0 -1
- package/dist/magma-components/p-3b821237.entry.js +0 -1
- package/dist/magma-components/p-3bce2736.entry.js +0 -1
- package/dist/magma-components/p-3bd5921c.entry.js +0 -1
- package/dist/magma-components/p-3bd829b2.system.entry.js +0 -1
- package/dist/magma-components/p-3c7dd9e6.entry.js +0 -1
- package/dist/magma-components/p-3d6026a7.entry.js +0 -1
- package/dist/magma-components/p-40444810.entry.js +0 -1
- package/dist/magma-components/p-456e8f90.entry.js +0 -1
- package/dist/magma-components/p-45840cb9.js +0 -1
- package/dist/magma-components/p-4818acd8.entry.js +0 -1
- package/dist/magma-components/p-4852095e.system.entry.js +0 -1
- package/dist/magma-components/p-49457689.entry.js +0 -1
- package/dist/magma-components/p-498d8d1f.system.entry.js +0 -1
- package/dist/magma-components/p-4a21d75f.entry.js +0 -1
- package/dist/magma-components/p-4ba3ec43.entry.js +0 -1
- package/dist/magma-components/p-4bb672d5.system.entry.js +0 -1
- package/dist/magma-components/p-4cd1cddc.js +0 -1
- package/dist/magma-components/p-4cf59911.system.entry.js +0 -1
- package/dist/magma-components/p-5251fc6b.entry.js +0 -18
- package/dist/magma-components/p-53b343a8.js +0 -1
- package/dist/magma-components/p-56e687bd.entry.js +0 -1
- package/dist/magma-components/p-5958cf43.entry.js +0 -1
- package/dist/magma-components/p-5de2329f.entry.js +0 -1
- package/dist/magma-components/p-5ff768d2.system.entry.js +0 -1
- package/dist/magma-components/p-606200e3.entry.js +0 -1
- package/dist/magma-components/p-61fd38ea.system.entry.js +0 -1
- package/dist/magma-components/p-62358ead.entry.js +0 -1
- package/dist/magma-components/p-62bf3a83.system.entry.js +0 -1
- package/dist/magma-components/p-63f0d264.entry.js +0 -1
- package/dist/magma-components/p-66056cdc.system.js +0 -1
- package/dist/magma-components/p-663bb379.system.entry.js +0 -1
- package/dist/magma-components/p-66976b79.entry.js +0 -1
- package/dist/magma-components/p-66f540ac.system.entry.js +0 -1
- package/dist/magma-components/p-676db22b.entry.js +0 -1
- package/dist/magma-components/p-6810a806.system.entry.js +0 -1
- package/dist/magma-components/p-6c14d91c.entry.js +0 -1
- package/dist/magma-components/p-6e2784c9.entry.js +0 -1
- package/dist/magma-components/p-6eecbc9e.system.entry.js +0 -1
- package/dist/magma-components/p-71f86ae7.system.entry.js +0 -1
- package/dist/magma-components/p-728cf2dc.entry.js +0 -1
- package/dist/magma-components/p-763ed882.entry.js +0 -1
- package/dist/magma-components/p-7776a592.entry.js +0 -1
- package/dist/magma-components/p-7a41c057.system.entry.js +0 -1
- package/dist/magma-components/p-7cae0221.system.entry.js +0 -1
- package/dist/magma-components/p-7d19a7c6.entry.js +0 -1
- package/dist/magma-components/p-7d45974f.entry.js +0 -1
- package/dist/magma-components/p-7ff9abda.system.entry.js +0 -1
- package/dist/magma-components/p-82c83671.system.entry.js +0 -1
- package/dist/magma-components/p-846bafa4.system.js +0 -1
- package/dist/magma-components/p-85efbd11.entry.js +0 -1
- package/dist/magma-components/p-8a3e4d1f.system.entry.js +0 -1
- package/dist/magma-components/p-8ab85f10.entry.js +0 -1
- package/dist/magma-components/p-8c9bba00.system.entry.js +0 -1
- package/dist/magma-components/p-8ddbf6c1.system.entry.js +0 -1
- package/dist/magma-components/p-91391486.entry.js +0 -1
- package/dist/magma-components/p-91deec04.system.entry.js +0 -1
- package/dist/magma-components/p-934a4af6.system.entry.js +0 -18
- package/dist/magma-components/p-9381402f.entry.js +0 -1
- package/dist/magma-components/p-94bbfe16.entry.js +0 -1
- package/dist/magma-components/p-95e2abb6.js +0 -1
- package/dist/magma-components/p-9dfb1723.system.js +0 -1
- package/dist/magma-components/p-9f4b5a49.entry.js +0 -1
- package/dist/magma-components/p-9f80f36c.system.entry.js +0 -1
- package/dist/magma-components/p-9fefae6a.system.entry.js +0 -1
- package/dist/magma-components/p-a56a4fe4.entry.js +0 -1
- package/dist/magma-components/p-ac2a7c27.js +0 -1
- package/dist/magma-components/p-aebd1b47.entry.js +0 -1
- package/dist/magma-components/p-af75f100.entry.js +0 -1
- package/dist/magma-components/p-b3afbdcd.system.js +0 -1
- package/dist/magma-components/p-b3db90c1.entry.js +0 -1
- package/dist/magma-components/p-b435daa4.system.entry.js +0 -1
- package/dist/magma-components/p-b4395edb.system.entry.js +0 -1
- package/dist/magma-components/p-b4ce85d6.system.entry.js +0 -1
- package/dist/magma-components/p-b4ee4798.entry.js +0 -1
- package/dist/magma-components/p-b53e817c.system.entry.js +0 -1
- package/dist/magma-components/p-b6defcb6.js +0 -2
- package/dist/magma-components/p-b975c42a.js +0 -1
- package/dist/magma-components/p-bc867380.entry.js +0 -1
- package/dist/magma-components/p-bf08086c.system.entry.js +0 -1
- package/dist/magma-components/p-c6c8c32d.system.entry.js +0 -1
- package/dist/magma-components/p-c7343c40.system.entry.js +0 -9
- package/dist/magma-components/p-c852e0cb.entry.js +0 -8
- package/dist/magma-components/p-ca5f0f4d.entry.js +0 -1
- package/dist/magma-components/p-caf2dd9c.system.entry.js +0 -1
- package/dist/magma-components/p-cd9191a7.system.entry.js +0 -1
- package/dist/magma-components/p-d2cf0fd3.entry.js +0 -1
- package/dist/magma-components/p-dcc96bdb.entry.js +0 -1
- package/dist/magma-components/p-e203fbb0.system.entry.js +0 -1
- package/dist/magma-components/p-e249cc64.system.js +0 -1
- package/dist/magma-components/p-e307af8d.system.entry.js +0 -1
- package/dist/magma-components/p-e3b16a3f.entry.js +0 -1
- package/dist/magma-components/p-e72c4889.system.entry.js +0 -1
- package/dist/magma-components/p-e9042c7c.system.entry.js +0 -1
- package/dist/magma-components/p-eaade5d2.entry.js +0 -1
- package/dist/magma-components/p-ebfe7149.entry.js +0 -1
- package/dist/magma-components/p-ec231a39.system.entry.js +0 -1
- package/dist/magma-components/p-ee6d48f2.system.entry.js +0 -1
- package/dist/magma-components/p-f4bbd91e.system.entry.js +0 -1
- package/dist/magma-components/p-f855cdc0.entry.js +0 -1
- package/dist/types/components/mds-input/meta/event-detail.d.ts +0 -3
- package/dist/types/components/mds-pref-language-nav/mds-pref-language-nav.d.ts +0 -23
- package/dist/types/interface/input-value.d.ts +0 -4
- package/dist/types/type/language.d.ts +0 -2
|
@@ -2,12 +2,23 @@ import { Host, h } from "@stencil/core";
|
|
|
2
2
|
import miBaselineCancel from "@icon/mi/baseline/cancel.svg";
|
|
3
3
|
import { setAttributeIfEmpty } from "../../common/aria";
|
|
4
4
|
import { KeyboardManager } from "../../common/keyboard-manager";
|
|
5
|
+
import { Locale } from "../../common/locale";
|
|
6
|
+
import localeEl from "./meta/locale.el.json";
|
|
7
|
+
import localeEn from "./meta/locale.en.json";
|
|
8
|
+
import localeEs from "./meta/locale.es.json";
|
|
9
|
+
import localeIt from "./meta/locale.it.json";
|
|
5
10
|
export class MdsChip {
|
|
6
11
|
constructor() {
|
|
7
12
|
this.km = new KeyboardManager();
|
|
8
|
-
this.
|
|
13
|
+
this.t = new Locale({
|
|
14
|
+
el: localeEl,
|
|
15
|
+
en: localeEn,
|
|
16
|
+
es: localeEs,
|
|
17
|
+
it: localeIt,
|
|
18
|
+
});
|
|
19
|
+
this.handleClickableKeyboard = (isClickable) => {
|
|
9
20
|
var _a;
|
|
10
|
-
if (
|
|
21
|
+
if (isClickable) {
|
|
11
22
|
const label = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.label');
|
|
12
23
|
this.km.addElement(label, 'label');
|
|
13
24
|
this.km.attachClickBehavior('label');
|
|
@@ -15,9 +26,9 @@ export class MdsChip {
|
|
|
15
26
|
}
|
|
16
27
|
this.km.detachClickBehavior('label');
|
|
17
28
|
};
|
|
18
|
-
this.handleDeletableKeyboard = () => {
|
|
29
|
+
this.handleDeletableKeyboard = (isDeletable) => {
|
|
19
30
|
var _a;
|
|
20
|
-
if (
|
|
31
|
+
if (isDeletable) {
|
|
21
32
|
const deleteElement = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.button-delete');
|
|
22
33
|
this.km.addElement(deleteElement, 'delete');
|
|
23
34
|
this.km.attachClickBehavior('delete');
|
|
@@ -25,13 +36,13 @@ export class MdsChip {
|
|
|
25
36
|
}
|
|
26
37
|
this.km.detachClickBehavior('delete');
|
|
27
38
|
};
|
|
28
|
-
this.handleClickableElement = () => {
|
|
39
|
+
this.handleClickableElement = (isClickable) => {
|
|
29
40
|
var _a;
|
|
30
41
|
const label = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.label');
|
|
31
42
|
if (!label) {
|
|
32
43
|
return;
|
|
33
44
|
}
|
|
34
|
-
if (
|
|
45
|
+
if (isClickable) {
|
|
35
46
|
setAttributeIfEmpty(label, 'role', 'button');
|
|
36
47
|
label.addEventListener('click', this.onClickLabelHandler.bind(this));
|
|
37
48
|
return;
|
|
@@ -39,55 +50,77 @@ export class MdsChip {
|
|
|
39
50
|
label.removeAttribute('role');
|
|
40
51
|
label.removeEventListener('click', this.onClickLabelHandler.bind(this));
|
|
41
52
|
};
|
|
42
|
-
this.handleDeletableElement = () => {
|
|
53
|
+
this.handleDeletableElement = (isDeletable) => {
|
|
43
54
|
var _a;
|
|
44
55
|
const deleteElement = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.button-delete');
|
|
45
56
|
if (!deleteElement) {
|
|
46
57
|
return;
|
|
47
58
|
}
|
|
48
|
-
if (
|
|
49
|
-
setAttributeIfEmpty(deleteElement, 'aria-hidden', 'true');
|
|
59
|
+
if (isDeletable) {
|
|
50
60
|
deleteElement.addEventListener('click', this.onDeleteHandler.bind(this));
|
|
51
61
|
return;
|
|
52
62
|
}
|
|
53
63
|
deleteElement.removeAttribute('aria-hidden');
|
|
54
64
|
deleteElement.removeEventListener('click', this.onDeleteHandler.bind(this));
|
|
55
65
|
};
|
|
66
|
+
this.language = undefined;
|
|
56
67
|
this.clickable = undefined;
|
|
57
68
|
this.deletable = undefined;
|
|
58
|
-
this.deleteLabel = 'Rimuovi';
|
|
59
69
|
this.disabled = false;
|
|
60
70
|
this.icon = undefined;
|
|
61
71
|
this.label = undefined;
|
|
62
72
|
this.selected = false;
|
|
73
|
+
this.selectable = false;
|
|
74
|
+
this.variant = 'primary';
|
|
75
|
+
this.tone = 'strong';
|
|
76
|
+
}
|
|
77
|
+
async updateLang() {
|
|
78
|
+
this.language = this.t.lang(this.host);
|
|
79
|
+
}
|
|
80
|
+
handleSelectableProp(newValue) {
|
|
81
|
+
if (newValue) {
|
|
82
|
+
this.clickable = true;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
handleClickableProp(newValue) {
|
|
86
|
+
this.handleClickableElement(newValue);
|
|
87
|
+
this.handleClickableKeyboard(newValue);
|
|
88
|
+
}
|
|
89
|
+
handleDeletableProp(newValue) {
|
|
90
|
+
this.handleDeletableElement(newValue);
|
|
91
|
+
this.handleDeletableKeyboard(newValue);
|
|
63
92
|
}
|
|
64
93
|
onClickLabelHandler(event) {
|
|
65
94
|
this.clickLabelEvent.emit({ event, element: this.host });
|
|
95
|
+
if (this.selectable) {
|
|
96
|
+
this.selected = !this.selected;
|
|
97
|
+
}
|
|
66
98
|
}
|
|
67
99
|
onDeleteHandler(event) {
|
|
68
100
|
this.deleteEvent.emit({ event, element: this.host });
|
|
69
101
|
}
|
|
70
|
-
|
|
71
|
-
this.
|
|
72
|
-
this.handleClickableKeyboard();
|
|
73
|
-
this.handleDeletableElement();
|
|
74
|
-
this.handleDeletableKeyboard();
|
|
102
|
+
componentWillLoad() {
|
|
103
|
+
this.t.lang(this.host);
|
|
75
104
|
}
|
|
76
|
-
|
|
77
|
-
this.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
105
|
+
componentDidLoad() {
|
|
106
|
+
if (this.clickable) {
|
|
107
|
+
this.handleClickableElement(true);
|
|
108
|
+
this.handleClickableKeyboard(true);
|
|
109
|
+
}
|
|
110
|
+
if (this.deletable) {
|
|
111
|
+
this.handleDeletableElement(true);
|
|
112
|
+
this.handleDeletableKeyboard(true);
|
|
113
|
+
}
|
|
81
114
|
}
|
|
82
115
|
disconnectedCallback() {
|
|
83
116
|
this.km.detachClickBehavior('label');
|
|
84
117
|
this.km.detachClickBehavior('delete');
|
|
85
118
|
}
|
|
86
119
|
render() {
|
|
87
|
-
return (h(Host, { key: '
|
|
88
|
-
h("div", { key: '
|
|
89
|
-
? h("mds-text", { class: "label
|
|
90
|
-
: h("mds-text", { class: "label", typography: "caption", truncate: "word" }, this.label), this.deletable && h("mds-button", { key: '
|
|
120
|
+
return (h(Host, { key: '67d05d7b187efe97dd8127ff49c32356553500d2', "aria-disabled": this.disabled ? 'true' : 'false' }, this.icon &&
|
|
121
|
+
h("div", { key: '10583c909ef3d3f346a65904c763cbc5582c1666', "aria-hidden": "true", class: "icon-area" }, h("mds-icon", { key: '5d6c3afd28d26951be06eaeee5a0b5414629b70f', class: "icon", name: this.icon })), this.clickable
|
|
122
|
+
? h("mds-text", { class: "label label--interactive", tabindex: "0", typography: "caption", truncate: "word" }, this.label)
|
|
123
|
+
: h("mds-text", { class: "label", typography: "caption", truncate: "word" }, this.label), this.deletable && h("mds-button", { key: '9a865e47188bd6433019e5ac0ca43c67d6495cec', class: "button-delete", icon: miBaselineCancel, onClick: this.onDeleteHandler.bind(this), title: `${this.t.get('deleteLabel')} ${this.label}`, variant: "dark", tone: "quiet", size: "sm" })));
|
|
91
124
|
}
|
|
92
125
|
static get is() { return "mds-chip"; }
|
|
93
126
|
static get encapsulation() { return "shadow"; }
|
|
@@ -105,7 +138,7 @@ export class MdsChip {
|
|
|
105
138
|
return {
|
|
106
139
|
"clickable": {
|
|
107
140
|
"type": "boolean",
|
|
108
|
-
"mutable":
|
|
141
|
+
"mutable": true,
|
|
109
142
|
"complexType": {
|
|
110
143
|
"original": "boolean",
|
|
111
144
|
"resolved": "boolean | undefined",
|
|
@@ -118,7 +151,7 @@ export class MdsChip {
|
|
|
118
151
|
"text": "Adds ARIA support to the element if has interaction"
|
|
119
152
|
},
|
|
120
153
|
"attribute": "clickable",
|
|
121
|
-
"reflect":
|
|
154
|
+
"reflect": true
|
|
122
155
|
},
|
|
123
156
|
"deletable": {
|
|
124
157
|
"type": "boolean",
|
|
@@ -137,24 +170,6 @@ export class MdsChip {
|
|
|
137
170
|
"attribute": "deletable",
|
|
138
171
|
"reflect": false
|
|
139
172
|
},
|
|
140
|
-
"deleteLabel": {
|
|
141
|
-
"type": "string",
|
|
142
|
-
"mutable": false,
|
|
143
|
-
"complexType": {
|
|
144
|
-
"original": "\"Rimuovi\" | undefined",
|
|
145
|
-
"resolved": "\"Rimuovi\" | undefined",
|
|
146
|
-
"references": {}
|
|
147
|
-
},
|
|
148
|
-
"required": false,
|
|
149
|
-
"optional": true,
|
|
150
|
-
"docs": {
|
|
151
|
-
"tags": [],
|
|
152
|
-
"text": "Sets the cross icon accessibility label to perform cancel/delete action on element"
|
|
153
|
-
},
|
|
154
|
-
"attribute": "delete-label",
|
|
155
|
-
"reflect": false,
|
|
156
|
-
"defaultValue": "'Rimuovi'"
|
|
157
|
-
},
|
|
158
173
|
"disabled": {
|
|
159
174
|
"type": "boolean",
|
|
160
175
|
"mutable": false,
|
|
@@ -205,18 +220,18 @@ export class MdsChip {
|
|
|
205
220
|
"text": "The label displayed to the right of the component's icon"
|
|
206
221
|
},
|
|
207
222
|
"attribute": "label",
|
|
208
|
-
"reflect":
|
|
223
|
+
"reflect": true
|
|
209
224
|
},
|
|
210
225
|
"selected": {
|
|
211
226
|
"type": "boolean",
|
|
212
|
-
"mutable":
|
|
227
|
+
"mutable": true,
|
|
213
228
|
"complexType": {
|
|
214
229
|
"original": "boolean",
|
|
215
|
-
"resolved": "boolean",
|
|
230
|
+
"resolved": "boolean | undefined",
|
|
216
231
|
"references": {}
|
|
217
232
|
},
|
|
218
233
|
"required": false,
|
|
219
|
-
"optional":
|
|
234
|
+
"optional": true,
|
|
220
235
|
"docs": {
|
|
221
236
|
"tags": [],
|
|
222
237
|
"text": "Sets the component selected"
|
|
@@ -224,9 +239,80 @@ export class MdsChip {
|
|
|
224
239
|
"attribute": "selected",
|
|
225
240
|
"reflect": true,
|
|
226
241
|
"defaultValue": "false"
|
|
242
|
+
},
|
|
243
|
+
"selectable": {
|
|
244
|
+
"type": "boolean",
|
|
245
|
+
"mutable": false,
|
|
246
|
+
"complexType": {
|
|
247
|
+
"original": "boolean",
|
|
248
|
+
"resolved": "boolean | undefined",
|
|
249
|
+
"references": {}
|
|
250
|
+
},
|
|
251
|
+
"required": false,
|
|
252
|
+
"optional": true,
|
|
253
|
+
"docs": {
|
|
254
|
+
"tags": [],
|
|
255
|
+
"text": "Sets if the component change is status to selected when is clicked"
|
|
256
|
+
},
|
|
257
|
+
"attribute": "selectable",
|
|
258
|
+
"reflect": true,
|
|
259
|
+
"defaultValue": "false"
|
|
260
|
+
},
|
|
261
|
+
"variant": {
|
|
262
|
+
"type": "string",
|
|
263
|
+
"mutable": false,
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "ChipVariantType",
|
|
266
|
+
"resolved": "\"dark\" | \"error\" | \"info\" | \"primary\" | \"secondary\" | \"success\" | \"warning\" | undefined",
|
|
267
|
+
"references": {
|
|
268
|
+
"ChipVariantType": {
|
|
269
|
+
"location": "import",
|
|
270
|
+
"path": "@type/variant",
|
|
271
|
+
"id": "src/type/variant.ts::ChipVariantType"
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": true,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": "Sets the color variant of the component"
|
|
280
|
+
},
|
|
281
|
+
"attribute": "variant",
|
|
282
|
+
"reflect": true,
|
|
283
|
+
"defaultValue": "'primary'"
|
|
284
|
+
},
|
|
285
|
+
"tone": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"mutable": false,
|
|
288
|
+
"complexType": {
|
|
289
|
+
"original": "ToneMinimalVariantType",
|
|
290
|
+
"resolved": "\"strong\" | \"weak\" | undefined",
|
|
291
|
+
"references": {
|
|
292
|
+
"ToneMinimalVariantType": {
|
|
293
|
+
"location": "import",
|
|
294
|
+
"path": "@type/variant",
|
|
295
|
+
"id": "src/type/variant.ts::ToneMinimalVariantType"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"required": false,
|
|
300
|
+
"optional": true,
|
|
301
|
+
"docs": {
|
|
302
|
+
"tags": [],
|
|
303
|
+
"text": "Sets the color variant tone of the component"
|
|
304
|
+
},
|
|
305
|
+
"attribute": "tone",
|
|
306
|
+
"reflect": true,
|
|
307
|
+
"defaultValue": "'strong'"
|
|
227
308
|
}
|
|
228
309
|
};
|
|
229
310
|
}
|
|
311
|
+
static get states() {
|
|
312
|
+
return {
|
|
313
|
+
"language": {}
|
|
314
|
+
};
|
|
315
|
+
}
|
|
230
316
|
static get events() {
|
|
231
317
|
return [{
|
|
232
318
|
"method": "clickLabelEvent",
|
|
@@ -272,5 +358,38 @@ export class MdsChip {
|
|
|
272
358
|
}
|
|
273
359
|
}];
|
|
274
360
|
}
|
|
361
|
+
static get methods() {
|
|
362
|
+
return {
|
|
363
|
+
"updateLang": {
|
|
364
|
+
"complexType": {
|
|
365
|
+
"signature": "() => Promise<void>",
|
|
366
|
+
"parameters": [],
|
|
367
|
+
"references": {
|
|
368
|
+
"Promise": {
|
|
369
|
+
"location": "global",
|
|
370
|
+
"id": "global::Promise"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"return": "Promise<void>"
|
|
374
|
+
},
|
|
375
|
+
"docs": {
|
|
376
|
+
"text": "",
|
|
377
|
+
"tags": []
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
}
|
|
275
382
|
static get elementRef() { return "host"; }
|
|
383
|
+
static get watchers() {
|
|
384
|
+
return [{
|
|
385
|
+
"propName": "selectable",
|
|
386
|
+
"methodName": "handleSelectableProp"
|
|
387
|
+
}, {
|
|
388
|
+
"propName": "clickable",
|
|
389
|
+
"methodName": "handleClickableProp"
|
|
390
|
+
}, {
|
|
391
|
+
"propName": "deletable",
|
|
392
|
+
"methodName": "handleDeletableProp"
|
|
393
|
+
}];
|
|
394
|
+
}
|
|
276
395
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { iconsDictionary } from "../../../dictionary/icon";
|
|
3
|
+
import { themeVariantChipDictionary, toneMinimalVariantDictionary } from "../../../dictionary/variant";
|
|
3
4
|
export default {
|
|
4
5
|
title: 'UI / Chip',
|
|
5
6
|
argTypes: {
|
|
@@ -29,6 +30,22 @@ export default {
|
|
|
29
30
|
type: { name: 'boolean' },
|
|
30
31
|
description: 'Sets the component selected',
|
|
31
32
|
},
|
|
33
|
+
selectable: {
|
|
34
|
+
type: { name: 'boolean' },
|
|
35
|
+
description: 'Sets if the component change is status to selected when is clicked',
|
|
36
|
+
},
|
|
37
|
+
tone: {
|
|
38
|
+
type: { name: 'string' },
|
|
39
|
+
options: toneMinimalVariantDictionary,
|
|
40
|
+
control: { type: 'select' },
|
|
41
|
+
description: 'Sets the color variant tone of the component',
|
|
42
|
+
},
|
|
43
|
+
variant: {
|
|
44
|
+
type: { name: 'string' },
|
|
45
|
+
options: themeVariantChipDictionary,
|
|
46
|
+
control: { type: 'select' },
|
|
47
|
+
description: 'Sets the color variant of the component',
|
|
48
|
+
},
|
|
32
49
|
},
|
|
33
50
|
};
|
|
34
51
|
const Template = args => h("mds-chip", Object.assign({}, args, { onDelete: () => { console.info('onDelete'); } }));
|
|
@@ -37,8 +54,8 @@ Default.args = {
|
|
|
37
54
|
label: 'Bovaro del Bernese',
|
|
38
55
|
icon: 'mi/baseline/pets',
|
|
39
56
|
};
|
|
40
|
-
export const
|
|
41
|
-
|
|
57
|
+
export const Selected = Template.bind({});
|
|
58
|
+
Selected.args = {
|
|
42
59
|
label: 'Bovaro del Bernese',
|
|
43
60
|
icon: 'mi/baseline/pets',
|
|
44
61
|
selected: true,
|
|
@@ -48,18 +65,20 @@ Icon.args = {
|
|
|
48
65
|
label: 'Bovaro del Bernese',
|
|
49
66
|
icon: 'mi/baseline/eco',
|
|
50
67
|
};
|
|
51
|
-
export const
|
|
52
|
-
|
|
68
|
+
export const Deletable = Template.bind({});
|
|
69
|
+
Deletable.args = {
|
|
53
70
|
deletable: true,
|
|
54
71
|
label: 'Bovaro del Bernese',
|
|
55
72
|
};
|
|
56
|
-
export const
|
|
57
|
-
|
|
73
|
+
export const Clickable = Template.bind({});
|
|
74
|
+
Clickable.args = {
|
|
58
75
|
clickable: true,
|
|
76
|
+
selectable: true,
|
|
77
|
+
icon: 'mi/baseline/eco',
|
|
59
78
|
label: 'Hover me to interact',
|
|
60
79
|
};
|
|
61
|
-
export const
|
|
62
|
-
|
|
80
|
+
export const FullyInteractive = Template.bind({});
|
|
81
|
+
FullyInteractive.args = {
|
|
63
82
|
clickable: true,
|
|
64
83
|
deletable: true,
|
|
65
84
|
icon: 'mi/baseline/downhill-skiing',
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
:host {
|
|
20
20
|
|
|
21
21
|
--mds-details-duration: 300ms;
|
|
22
|
-
--mds-details-icon-color: rgb(var(--
|
|
22
|
+
--mds-details-icon-color: rgb(var(--variant-primary-04));
|
|
23
23
|
--mds-details-helper-icon-color: rgb(var(--tone-neutral-03));
|
|
24
24
|
gap: 0.5rem;
|
|
25
25
|
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
grid-template-rows: 1fr;
|
|
58
58
|
opacity: 1;
|
|
59
|
+
overflow: visible;
|
|
59
60
|
pointer-events: auto;
|
|
60
61
|
}
|
|
61
62
|
|
|
@@ -128,7 +129,7 @@
|
|
|
128
129
|
@container style(--magma-pref-contrast: more) {
|
|
129
130
|
:host {
|
|
130
131
|
|
|
131
|
-
--mds-details-icon-color: rgb(var(--
|
|
132
|
+
--mds-details-icon-color: rgb(var(--variant-primary-03));
|
|
132
133
|
--mds-details-helper-icon-color: rgb(var(--tone-neutral-02));
|
|
133
134
|
}
|
|
134
135
|
}
|
|
@@ -138,7 +139,7 @@
|
|
|
138
139
|
@media (prefers-contrast: more) {
|
|
139
140
|
:host {
|
|
140
141
|
|
|
141
|
-
--mds-details-icon-color: rgb(var(--
|
|
142
|
+
--mds-details-icon-color: rgb(var(--variant-primary-03));
|
|
142
143
|
--mds-details-helper-icon-color: rgb(var(--tone-neutral-02));
|
|
143
144
|
}
|
|
144
145
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { setAttributeIfEmpty } from "../../common/aria";
|
|
2
2
|
import { KeyboardManager } from "../../common/keyboard-manager";
|
|
3
3
|
import { cssDurationToMilliseconds } from "../../common/unit";
|
|
4
4
|
import { arrow, autoPlacement, autoUpdate, computePosition, flip, offset, shift } from "@floating-ui/dom";
|
|
@@ -162,6 +162,8 @@ export class MdsDropdown {
|
|
|
162
162
|
});
|
|
163
163
|
};
|
|
164
164
|
this.updateCSSCustomProps = () => {
|
|
165
|
+
if (typeof window === 'undefined')
|
|
166
|
+
return;
|
|
165
167
|
const elementStyles = window.getComputedStyle(this.host);
|
|
166
168
|
this.cssBackdropDuration = elementStyles.getPropertyValue('--mds-dropdown-backdrop-duration');
|
|
167
169
|
this.cssBackdropZIndex = elementStyles.getPropertyValue('--mds-dropdown-backdrop-z-index');
|
|
@@ -282,20 +284,20 @@ export class MdsDropdown {
|
|
|
282
284
|
this.zIndexChanged(this.zIndex);
|
|
283
285
|
}
|
|
284
286
|
setAriaAttributes() {
|
|
285
|
-
const hostId = setAttributeIfEmpty(this.host, 'id', hashValue(this.target));
|
|
286
287
|
setAttributeIfEmpty(this.caller, 'aria-haspopup', 'true');
|
|
287
|
-
setAttributeIfEmpty(this.caller, 'aria-controls',
|
|
288
|
+
setAttributeIfEmpty(this.caller, 'aria-controls', this.target);
|
|
288
289
|
setAttributeIfEmpty(this.host, 'role', 'menu');
|
|
289
290
|
setAttributeIfEmpty(this.host, 'aria-labelledby', this.target);
|
|
290
291
|
}
|
|
291
292
|
componentDidLoad() {
|
|
292
|
-
var _a;
|
|
293
|
+
var _a, _b, _c, _d;
|
|
293
294
|
this.updateCSSCustomProps();
|
|
294
295
|
document.addEventListener('click', this.handleCloseDropdown);
|
|
295
296
|
this.arrowEl = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.arrow');
|
|
296
|
-
|
|
297
|
+
// search caller in document or rootNode of host (if target is in shadowDOM)
|
|
298
|
+
const caller = (_d = (_c = (_b = this.host.parentElement) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector(this.target)) !== null && _d !== void 0 ? _d : this.host.getRootNode().querySelector(this.target);
|
|
297
299
|
if (!caller) {
|
|
298
|
-
|
|
300
|
+
throw Error(`Target not found: ${this.target}`);
|
|
299
301
|
}
|
|
300
302
|
this.caller = caller;
|
|
301
303
|
this.setAriaAttributes();
|
|
@@ -314,7 +316,7 @@ export class MdsDropdown {
|
|
|
314
316
|
this.cleanupAutoUpdate = () => { return; };
|
|
315
317
|
}
|
|
316
318
|
render() {
|
|
317
|
-
return (h(Host, { key: '
|
|
319
|
+
return (h(Host, { key: 'aee79e7c76205417090673bbbe9d875065764eb3' }, h("div", { key: '9b310fb9655866a581df3ecd043e24da86fabd6c', class: "arrow", innerHTML: arrowSvg }), h("slot", { key: '206e6aff41805e57c06fbccab2aa9ca595c312ae' })));
|
|
318
320
|
}
|
|
319
321
|
static get is() { return "mds-dropdown"; }
|
|
320
322
|
static get encapsulation() { return "shadow"; }
|
|
@@ -34,10 +34,10 @@ export class MdsEntity {
|
|
|
34
34
|
this.actions = this.hostElement.querySelector('[slot="action"]') !== null;
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
38
|
-
h("mds-avatar", { key: '
|
|
39
|
-
h("div", { key: '
|
|
40
|
-
h("div", { key: '
|
|
37
|
+
return (h(Host, { key: '9391672c7ecfde903e03798d210760e52370c90b' }, h("div", { key: 'fab671cb638c283a8ea3648aee9c9188512e8fa0', class: "spinner" }, h("mds-spinner", { key: 'baed37a926e1f606b41fb85b24be7728f671ab54', running: true })), this.checkAvatar() &&
|
|
38
|
+
h("mds-avatar", { key: '380ed5fdef281b9e9338e4beeecffa4ef9bae7b5', class: "preview", icon: this.icon, initials: this.initials, src: this.src, tone: this.tone, variant: this.variant }), h("div", { key: 'd876fe0ce1f53eec1cc1062e5c38b82d67b3bd89', class: "infos" }, h("slot", { key: '949113bb0e3dbf092e6604358544630440a43740' }), this.details &&
|
|
39
|
+
h("div", { key: '7635a1805fa615b2907e3b89fffa250db9b71dce', class: "details" }, h("slot", { key: 'a6b8ff76384000ebc4b1684b3b888d7dd60cafd3', name: "deuploadtail" }))), this.actions &&
|
|
40
|
+
h("div", { key: '11c50375bc0e9ea56989d7549e95b99a6db191c7', class: "actions" }, h("slot", { key: '653e308b14d27197b9c945269190030984ac2ebd', name: "action" }))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "mds-entity"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,8 +37,8 @@ export default {
|
|
|
37
37
|
},
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
|
-
const Template = args => h("mds-entity", Object.assign({}, args, { "aria-label": "Personaggio" }), h("mds-text", { truncate: "word", "aria-label": "Nome", typography: "h6" }, "Mario Rossi"), h("mds-badge", { "aria-label": "Carattere", slot: "detail", variant: "orange", tone: "weak" }, "buono"), h("mds-text", { truncate: "word", "aria-label": "Email", slot: "detail", typography: "caption" }, "mario@nintendo.com"), h("mds-button", { onClick: () => { console.info('Restore'); }, slot: "action", icon: "mdi/replay", variant: "primary", tone: "strong", title: "Restore" }), h("mds-button", { onClick: () => { console.info('Delete'); }, slot: "action", icon: "mdi/delete", variant: "error", tone: "strong", title: "Delete" }));
|
|
41
|
-
const TemplateLocation = args => h("mds-entity", Object.assign({}, args, { "aria-label": "Luogo" }), h("mds-text", { truncate: "word",
|
|
40
|
+
const Template = args => h("mds-entity", Object.assign({}, args, { "aria-label": "Personaggio" }), h("mds-text", { truncate: "word", "aria-label": "Nome", role: "text", typography: "h6" }, "Mario Rossi"), h("mds-badge", { "aria-label": "Carattere", role: "text", slot: "detail", variant: "orange", tone: "weak" }, "buono"), h("mds-text", { truncate: "word", "aria-label": "Email", role: "text", slot: "detail", typography: "caption" }, "mario@nintendo.com"), h("mds-button", { onClick: () => { console.info('Restore'); }, slot: "action", icon: "mdi/replay", variant: "primary", tone: "strong", title: "Restore" }), h("mds-button", { onClick: () => { console.info('Delete'); }, slot: "action", icon: "mdi/delete", variant: "error", tone: "strong", title: "Delete" }));
|
|
41
|
+
const TemplateLocation = args => h("mds-entity", Object.assign({}, args, { "aria-label": "Luogo" }), h("mds-text", { truncate: "word", typography: "h6", title: "Nome" }, "Maggioli Headquarters"), h("mds-text", { truncate: "word", title: "Strada", slot: "detail", typography: "caption" }, "Via Pinelli 64, Santarcangelo di Romanga, Italy"), h("mds-button", { slot: "action", icon: "mdi/map-marker", variant: "primary", tone: "strong", title: "Go to Google Maps" }));
|
|
42
42
|
const TemplateDownload = args => {
|
|
43
43
|
const [isUploading, setUpload] = useState(true);
|
|
44
44
|
const [isComplete, setUploadComplete] = useState(false);
|
|
@@ -50,7 +50,7 @@ const TemplateDownload = args => {
|
|
|
50
50
|
message = 'Upload annullato';
|
|
51
51
|
}
|
|
52
52
|
if (isComplete) {
|
|
53
|
-
message = 'Upload
|
|
53
|
+
message = 'Upload completato con successo';
|
|
54
54
|
}
|
|
55
55
|
return h("div", { class: "grid gap-400 grid-cols-full" }, h("mds-entity", Object.assign({ await: isUploading && !isComplete, icon: isComplete ? 'mi/baseline/done' : 'mi/baseline/remove-circle', variant: isComplete ? 'success' : 'warning' }, args, { "aria-label": "File" }), h("mds-text", { truncate: "word", "aria-label": "Nome", typography: "h6" }, "Report finanziario 2024.docx"), h("mds-text", { truncate: "word", "aria-label": "Stato caricamento", slot: "detail", typography: "caption" }, message), isUploading && !isComplete && h("mds-button", { onClick: () => setUpload(false), slot: "action", icon: "mi/baseline/cancel", variant: "light", title: "Annulla upload" })), h("div", { class: "flex gap-400 flex-wrap justify-between" }, h("mds-button", { onClick: () => { setUploadComplete(false); setUpload(true); }, variant: "dark", tone: "ghost" }, "Riavvia"), h("mds-button", { onClick: () => { setUploadComplete(true); } }, "Completa upload")));
|
|
56
56
|
};
|
|
@@ -2,9 +2,24 @@ import { Host, h } from "@stencil/core";
|
|
|
2
2
|
import { MD5 } from "crypto-js";
|
|
3
3
|
import { getFormatsVariant, getName, getSuffix, getExtensionInfos } from "../../common/file";
|
|
4
4
|
import miBaselineFileDownloadDone from "@icon/mi/baseline/file-download-done.svg";
|
|
5
|
+
import { Locale } from "../../common/locale";
|
|
6
|
+
import localeEl from "./meta/locale.el.json";
|
|
7
|
+
import localeEn from "./meta/locale.en.json";
|
|
8
|
+
import localeEs from "./meta/locale.es.json";
|
|
9
|
+
import localeIt from "./meta/locale.it.json";
|
|
10
|
+
import fileDescriptionLocaleEl from "../../meta/file-format/locale.el";
|
|
11
|
+
import fileDescriptionLocaleEn from "../../meta/file-format/locale.en";
|
|
12
|
+
import fileDescriptionLocaleEs from "../../meta/file-format/locale.es";
|
|
13
|
+
import fileDescriptionLocaleIt from "../../meta/file-format/locale.it";
|
|
5
14
|
// https://stackoverflow.com/questions/1106377/detect-when-a-browser-receives-a-file-download
|
|
6
15
|
export class MdsFile {
|
|
7
16
|
constructor() {
|
|
17
|
+
this.t = new Locale({
|
|
18
|
+
el: Object.assign(Object.assign({}, localeEl), fileDescriptionLocaleEl),
|
|
19
|
+
en: Object.assign(Object.assign({}, localeEn), fileDescriptionLocaleEn),
|
|
20
|
+
es: Object.assign(Object.assign({}, localeEs), fileDescriptionLocaleEs),
|
|
21
|
+
it: Object.assign(Object.assign({}, localeIt), fileDescriptionLocaleIt),
|
|
22
|
+
});
|
|
8
23
|
this.handleOnClick = () => {
|
|
9
24
|
var _a;
|
|
10
25
|
const { format, description } = getExtensionInfos(this.filename, this.suffix);
|
|
@@ -17,17 +32,21 @@ export class MdsFile {
|
|
|
17
32
|
this.wasDownloaded = localStorage.getItem(filename) === 'downloaded';
|
|
18
33
|
};
|
|
19
34
|
this.getDefaultDescription = () => getExtensionInfos(this.filename, this.suffix).description;
|
|
35
|
+
this.language = undefined;
|
|
20
36
|
this.wasDownloaded = false;
|
|
21
37
|
this.suffix = undefined;
|
|
22
38
|
this.description = undefined;
|
|
23
|
-
this.downloadedLabel = 'Hai già scaricato questo file';
|
|
24
39
|
this.filename = undefined;
|
|
25
40
|
this.preview = undefined;
|
|
26
41
|
this.showDownloadedIcon = true;
|
|
27
42
|
this.format = undefined;
|
|
28
43
|
}
|
|
44
|
+
async updateLang() {
|
|
45
|
+
this.language = this.t.lang(this.host);
|
|
46
|
+
}
|
|
29
47
|
componentWillLoad() {
|
|
30
48
|
this.checkWasDownloaded();
|
|
49
|
+
this.t.lang(this.host);
|
|
31
50
|
this.format = getExtensionInfos(this.filename, this.suffix).format;
|
|
32
51
|
}
|
|
33
52
|
componentDidUpdate() {
|
|
@@ -38,10 +57,10 @@ export class MdsFile {
|
|
|
38
57
|
}
|
|
39
58
|
render() {
|
|
40
59
|
var _a, _b;
|
|
41
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: 'fea56400bff2657114cfd7b9785b72762a143663', tabindex: "0", onClick: this.handleOnClick }, h("div", { key: '38d5f835886aef86afcea6b2fd779d459de97a9d', class: "preview" }, this.preview !== undefined
|
|
42
61
|
? h("div", { class: "image-preview", style: { backgroundImage: `url(${this.preview})` } })
|
|
43
|
-
: h("mds-icon", { name: getFormatsVariant(this.filename, this.suffix).icon })), h("div", { key: '
|
|
44
|
-
h("div", { key: '
|
|
62
|
+
: h("mds-icon", { name: getFormatsVariant(this.filename, this.suffix).icon })), h("div", { key: 'dc913aee8aeeeb51e261bcac7519361d762b45c2', class: "info" }, h("div", { key: '23cce7c93bfe95e2e29fd16e352c8592e79b4a88', class: "filename", title: this.filename }, h("mds-text", { key: 'b7552213276990fe8d4e71faf3b41787da41e9fd', truncate: "word", typography: "h6", class: "name" }, getName(this.filename)), this.suffix === undefined && getSuffix(this.filename, this.suffix) && h("mds-text", { key: '82ff59e493ae2f35b87c093549c4d7f34ebf6c55', typography: "h6", class: "extension" }, ".", getSuffix(this.filename, this.suffix))), h("div", { key: '56b038b3f17d140a841ef998633b5519df873c91', class: "detail" }, getSuffix(this.filename, this.suffix) && h("mds-badge", { key: '3d96163232a0b5d77555e903d3e237b978ec7f43', variant: getFormatsVariant(this.filename, this.suffix).variant, tone: "weak", class: "suffix" }, getSuffix(this.filename, this.suffix)), h("mds-text", { key: 'cd52271f23a549b089de4bcc6bac4ee7ee61198e', truncate: "word", typography: "caption", class: "description", title: (_a = this.description) !== null && _a !== void 0 ? _a : this.t.get(this.getDefaultDescription()) }, (_b = this.description) !== null && _b !== void 0 ? _b : this.t.get(this.getDefaultDescription())))), this.wasDownloaded && this.showDownloadedIcon &&
|
|
63
|
+
h("div", { key: 'f0ab2874f31232ebfdae120a9fc9c2bb018f8819', class: "indicator" }, h("i", { key: '39d48760d3134793d0bca763d27f272cee30f2f8', class: "downloaded", innerHTML: miBaselineFileDownloadDone, title: this.t.get('alreadyDownloaded') }))));
|
|
45
64
|
}
|
|
46
65
|
static get is() { return "mds-file"; }
|
|
47
66
|
static get encapsulation() { return "shadow"; }
|
|
@@ -97,24 +116,6 @@ export class MdsFile {
|
|
|
97
116
|
"attribute": "description",
|
|
98
117
|
"reflect": false
|
|
99
118
|
},
|
|
100
|
-
"downloadedLabel": {
|
|
101
|
-
"type": "string",
|
|
102
|
-
"mutable": false,
|
|
103
|
-
"complexType": {
|
|
104
|
-
"original": "string",
|
|
105
|
-
"resolved": "string | undefined",
|
|
106
|
-
"references": {}
|
|
107
|
-
},
|
|
108
|
-
"required": false,
|
|
109
|
-
"optional": true,
|
|
110
|
-
"docs": {
|
|
111
|
-
"tags": [],
|
|
112
|
-
"text": "Sets a label which is shown when the file is downloaded"
|
|
113
|
-
},
|
|
114
|
-
"attribute": "downloaded-label",
|
|
115
|
-
"reflect": false,
|
|
116
|
-
"defaultValue": "'Hai gi\u00E0 scaricato questo file'"
|
|
117
|
-
},
|
|
118
119
|
"filename": {
|
|
119
120
|
"type": "string",
|
|
120
121
|
"mutable": false,
|
|
@@ -188,6 +189,7 @@ export class MdsFile {
|
|
|
188
189
|
}
|
|
189
190
|
static get states() {
|
|
190
191
|
return {
|
|
192
|
+
"language": {},
|
|
191
193
|
"wasDownloaded": {}
|
|
192
194
|
};
|
|
193
195
|
}
|
|
@@ -215,6 +217,27 @@ export class MdsFile {
|
|
|
215
217
|
}
|
|
216
218
|
}];
|
|
217
219
|
}
|
|
220
|
+
static get methods() {
|
|
221
|
+
return {
|
|
222
|
+
"updateLang": {
|
|
223
|
+
"complexType": {
|
|
224
|
+
"signature": "() => Promise<void>",
|
|
225
|
+
"parameters": [],
|
|
226
|
+
"references": {
|
|
227
|
+
"Promise": {
|
|
228
|
+
"location": "global",
|
|
229
|
+
"id": "global::Promise"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"return": "Promise<void>"
|
|
233
|
+
},
|
|
234
|
+
"docs": {
|
|
235
|
+
"text": "",
|
|
236
|
+
"tags": []
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
}
|
|
218
241
|
static get elementRef() { return "host"; }
|
|
219
242
|
static get watchers() {
|
|
220
243
|
return [{
|