@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as clsx } from './clsx.js';
|
|
3
|
-
import {
|
|
3
|
+
import { i as genericMimeToExt } from './locale.it.js';
|
|
4
4
|
import { L as Locale } from './locale.js';
|
|
5
5
|
import { d as defineCustomElement$b } from './mds-badge2.js';
|
|
6
6
|
import { d as defineCustomElement$a } from './mds-button2.js';
|
|
@@ -126,35 +126,145 @@ var ErrorType;
|
|
|
126
126
|
ErrorType[ErrorType["MAX"] = 2] = "MAX";
|
|
127
127
|
})(ErrorType || (ErrorType = {}));
|
|
128
128
|
|
|
129
|
-
const addFile$
|
|
129
|
+
const addFile$3 = [
|
|
130
|
+
"Προσθήκη αρχείου",
|
|
131
|
+
"Προσθήκη αρχείων"
|
|
132
|
+
];
|
|
133
|
+
const canUpload$3 = "Μπορείτε να ανεβάσετε";
|
|
134
|
+
const canUploadAll$3 = "Μπορείτε να ανεβάσετε κάθε μορφή αρχείου";
|
|
135
|
+
const cancel$3 = "Ακύρωση";
|
|
136
|
+
const clickOrDrag$3 = [
|
|
137
|
+
"Κάντε κλικ και επιλέξτε ή σύρετε το αρχείο για να το ανεβάσετε εδώ",
|
|
138
|
+
"Κάντε κλικ και επιλέξτε ή σύρετε τα αρχεία για να τα ανεβάσετε εδώ"
|
|
139
|
+
];
|
|
140
|
+
const currentFilesNoMax$3 = [
|
|
141
|
+
"Έχετε μεταφορτώσει {{ currentFiles }} αρχείο",
|
|
142
|
+
"Έχετε μεταφορτώσει {{ currentFiles }} αρχεία"
|
|
143
|
+
];
|
|
144
|
+
const currentFilesWithMax$3 = [
|
|
145
|
+
"Έχετε μεταφορτώσει {{ currentFiles }} αρχείο από {{ maxFiles }} συνολικά",
|
|
146
|
+
"Έχετε μεταφορτώσει {{ currentFiles }} αρχεία από {{ maxFiles }} συνολικά"
|
|
147
|
+
];
|
|
148
|
+
const dragEnter$3 = "Αποθέστε τα αρχεία για ανέβασμα εδώ";
|
|
149
|
+
const fileTooLarge$3 = "Το αρχείο είναι πολύ μεγάλο";
|
|
150
|
+
const formatNotAlowed$3 = "Μη έγκυρη μορφή αρχείου";
|
|
151
|
+
const maxFilesExceed$3 = "Έχετε φτάσει τον μέγιστο αριθμό αρχείων";
|
|
152
|
+
const maxFileSizePerFile$3 = "{{ maxFileSize }}MB μέγιστο ανά αρχείο";
|
|
153
|
+
const maxFilesUpload$3 = [
|
|
154
|
+
"Μπορείτε να ανεβάσετε ένα μόνο αρχείο",
|
|
155
|
+
"Μπορείτε να ανεβάσετε έως {{ maxFiles }} αρχεία"
|
|
156
|
+
];
|
|
157
|
+
const selectFile$3 = "Επιλογή αρχείου";
|
|
158
|
+
const sortByDate$3 = "Ταξινόμηση κατά ημερομηνία προσθήκης";
|
|
159
|
+
const sortByStatus$3 = "Ταξινόμηση κατά κατάσταση ανέβασματος";
|
|
160
|
+
const localeEl = {
|
|
161
|
+
addFile: addFile$3,
|
|
162
|
+
canUpload: canUpload$3,
|
|
163
|
+
canUploadAll: canUploadAll$3,
|
|
164
|
+
cancel: cancel$3,
|
|
165
|
+
clickOrDrag: clickOrDrag$3,
|
|
166
|
+
currentFilesNoMax: currentFilesNoMax$3,
|
|
167
|
+
currentFilesWithMax: currentFilesWithMax$3,
|
|
168
|
+
dragEnter: dragEnter$3,
|
|
169
|
+
fileTooLarge: fileTooLarge$3,
|
|
170
|
+
formatNotAlowed: formatNotAlowed$3,
|
|
171
|
+
maxFilesExceed: maxFilesExceed$3,
|
|
172
|
+
maxFileSizePerFile: maxFileSizePerFile$3,
|
|
173
|
+
maxFilesUpload: maxFilesUpload$3,
|
|
174
|
+
selectFile: selectFile$3,
|
|
175
|
+
sortByDate: sortByDate$3,
|
|
176
|
+
sortByStatus: sortByStatus$3
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const addFile$2 = [
|
|
130
180
|
"Add file",
|
|
131
181
|
"Add files"
|
|
132
182
|
];
|
|
133
|
-
const canUpload$
|
|
134
|
-
const canUploadAll$
|
|
135
|
-
const cancel$
|
|
136
|
-
const clickOrDrag$
|
|
183
|
+
const canUpload$2 = "You can upload";
|
|
184
|
+
const canUploadAll$2 = "You can upload every file format";
|
|
185
|
+
const cancel$2 = "Cancel";
|
|
186
|
+
const clickOrDrag$2 = [
|
|
137
187
|
"Click and select or drag the file to upload here",
|
|
138
188
|
"Click and select or drag files to upload here"
|
|
139
189
|
];
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
const
|
|
145
|
-
|
|
190
|
+
const currentFilesNoMax$2 = [
|
|
191
|
+
"You have uploaded {{ currentFiles }} file",
|
|
192
|
+
"You have uploaded {{ currentFiles }} files"
|
|
193
|
+
];
|
|
194
|
+
const currentFilesWithMax$2 = [
|
|
195
|
+
"You have uploaded {{ currentFiles }} file of {{ maxFiles }} total",
|
|
196
|
+
"You have uploaded {{ currentFiles }} files of {{ maxFiles }} total"
|
|
197
|
+
];
|
|
198
|
+
const dragEnter$2 = "Drop files to upload here";
|
|
199
|
+
const fileTooLarge$2 = "File too large";
|
|
200
|
+
const formatNotAlowed$2 = "Invalid file format";
|
|
201
|
+
const maxFilesExceed$2 = "Maximum number of files reached";
|
|
202
|
+
const maxFileSizePerFile$2 = "{{ maxFileSize }}MB max per file";
|
|
203
|
+
const maxFilesUpload$2 = [
|
|
146
204
|
"You can upload a single file",
|
|
147
205
|
"You can upload a maximum of {{ maxFiles }} files"
|
|
148
206
|
];
|
|
149
|
-
const selectFile$
|
|
150
|
-
const sortByDate$
|
|
151
|
-
const
|
|
207
|
+
const selectFile$2 = "Select file";
|
|
208
|
+
const sortByDate$2 = "Sort by date added";
|
|
209
|
+
const sortByStatus$2 = "Sort by upload status";
|
|
152
210
|
const localeEn = {
|
|
211
|
+
addFile: addFile$2,
|
|
212
|
+
canUpload: canUpload$2,
|
|
213
|
+
canUploadAll: canUploadAll$2,
|
|
214
|
+
cancel: cancel$2,
|
|
215
|
+
clickOrDrag: clickOrDrag$2,
|
|
216
|
+
currentFilesNoMax: currentFilesNoMax$2,
|
|
217
|
+
currentFilesWithMax: currentFilesWithMax$2,
|
|
218
|
+
dragEnter: dragEnter$2,
|
|
219
|
+
fileTooLarge: fileTooLarge$2,
|
|
220
|
+
formatNotAlowed: formatNotAlowed$2,
|
|
221
|
+
maxFilesExceed: maxFilesExceed$2,
|
|
222
|
+
maxFileSizePerFile: maxFileSizePerFile$2,
|
|
223
|
+
maxFilesUpload: maxFilesUpload$2,
|
|
224
|
+
selectFile: selectFile$2,
|
|
225
|
+
sortByDate: sortByDate$2,
|
|
226
|
+
sortByStatus: sortByStatus$2
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
const addFile$1 = [
|
|
230
|
+
"Añadir archivo",
|
|
231
|
+
"Añadir archivos"
|
|
232
|
+
];
|
|
233
|
+
const canUpload$1 = "Puedes subir";
|
|
234
|
+
const canUploadAll$1 = "Puedes subir cualquier formato de archivo";
|
|
235
|
+
const cancel$1 = "Cancelar";
|
|
236
|
+
const clickOrDrag$1 = [
|
|
237
|
+
"Haz clic y selecciona o arrastra el archivo para subirlo aquí",
|
|
238
|
+
"Haz clic y selecciona o arrastra los archivos para subirlos aquí"
|
|
239
|
+
];
|
|
240
|
+
const currentFilesNoMax$1 = [
|
|
241
|
+
"Has subido un archivo",
|
|
242
|
+
"Has subido {{ currentFiles }} archivos"
|
|
243
|
+
];
|
|
244
|
+
const currentFilesWithMax$1 = [
|
|
245
|
+
"Has subido {{ currentFiles }} archivos de un total de {{ maxFiles }}",
|
|
246
|
+
"Has subido un archivo de un total de {{ maxFiles }}"
|
|
247
|
+
];
|
|
248
|
+
const dragEnter$1 = "Suelta los archivos para subirlos aquí";
|
|
249
|
+
const fileTooLarge$1 = "El archivo es demasiado grande";
|
|
250
|
+
const formatNotAlowed$1 = "Formato de archivo no válido";
|
|
251
|
+
const maxFilesExceed$1 = "Número máximo de archivos alcanzado";
|
|
252
|
+
const maxFileSizePerFile$1 = "{{ maxFileSize }}MB máximo por archivo";
|
|
253
|
+
const maxFilesUpload$1 = [
|
|
254
|
+
"Puedes subir un solo archivo",
|
|
255
|
+
"Puedes subir un máximo de {{ maxFiles }} archivos"
|
|
256
|
+
];
|
|
257
|
+
const selectFile$1 = "Seleccionar archivo";
|
|
258
|
+
const sortByDate$1 = "Ordenar por fecha de añadido";
|
|
259
|
+
const sortByStatus$1 = "Ordenar por estado de subida";
|
|
260
|
+
const localeEs = {
|
|
153
261
|
addFile: addFile$1,
|
|
154
262
|
canUpload: canUpload$1,
|
|
155
263
|
canUploadAll: canUploadAll$1,
|
|
156
264
|
cancel: cancel$1,
|
|
157
265
|
clickOrDrag: clickOrDrag$1,
|
|
266
|
+
currentFilesNoMax: currentFilesNoMax$1,
|
|
267
|
+
currentFilesWithMax: currentFilesWithMax$1,
|
|
158
268
|
dragEnter: dragEnter$1,
|
|
159
269
|
fileTooLarge: fileTooLarge$1,
|
|
160
270
|
formatNotAlowed: formatNotAlowed$1,
|
|
@@ -163,7 +273,7 @@ const localeEn = {
|
|
|
163
273
|
maxFilesUpload: maxFilesUpload$1,
|
|
164
274
|
selectFile: selectFile$1,
|
|
165
275
|
sortByDate: sortByDate$1,
|
|
166
|
-
|
|
276
|
+
sortByStatus: sortByStatus$1
|
|
167
277
|
};
|
|
168
278
|
|
|
169
279
|
const addFile = "Aggiungi file";
|
|
@@ -174,33 +284,37 @@ const clickOrDrag = [
|
|
|
174
284
|
"Clicca e seleziona o trascina qui il file da caricare",
|
|
175
285
|
"Clicca e seleziona o trascina qui i file da caricare"
|
|
176
286
|
];
|
|
287
|
+
const currentFilesNoMax = "Hai caricato {{ currentFiles }} file";
|
|
288
|
+
const currentFilesWithMax = "Hai caricato {{ currentFiles }} file su {{ maxFiles }} totali";
|
|
177
289
|
const dragEnter = "Rilascia qui i file da caricare";
|
|
178
290
|
const fileTooLarge = "File troppo grande";
|
|
179
291
|
const formatNotAlowed = "Formato file non consentito";
|
|
180
|
-
const maxFilesExceed = "Numero massimo di file raggiunto";
|
|
181
292
|
const maxFileSizePerFile = "{{ maxFileSize }}MB max per file";
|
|
293
|
+
const maxFilesExceed = "Numero massimo di file raggiunto";
|
|
182
294
|
const maxFilesUpload = "Puoi caricare fino a {{ maxFiles }} file";
|
|
183
295
|
const selectFile = "Seleziona file";
|
|
184
296
|
const sortByDate = "Ordino per data di aggiunta";
|
|
185
|
-
const
|
|
297
|
+
const sortByStatus = "Ordino per stato upload";
|
|
186
298
|
const localeIt = {
|
|
187
299
|
addFile: addFile,
|
|
188
300
|
canUpload: canUpload,
|
|
189
301
|
canUploadAll: canUploadAll,
|
|
190
302
|
cancel: cancel,
|
|
191
303
|
clickOrDrag: clickOrDrag,
|
|
304
|
+
currentFilesNoMax: currentFilesNoMax,
|
|
305
|
+
currentFilesWithMax: currentFilesWithMax,
|
|
192
306
|
dragEnter: dragEnter,
|
|
193
307
|
fileTooLarge: fileTooLarge,
|
|
194
308
|
formatNotAlowed: formatNotAlowed,
|
|
195
|
-
maxFilesExceed: maxFilesExceed,
|
|
196
309
|
maxFileSizePerFile: maxFileSizePerFile,
|
|
310
|
+
maxFilesExceed: maxFilesExceed,
|
|
197
311
|
maxFilesUpload: maxFilesUpload,
|
|
198
312
|
selectFile: selectFile,
|
|
199
313
|
sortByDate: sortByDate,
|
|
200
|
-
|
|
314
|
+
sortByStatus: sortByStatus
|
|
201
315
|
};
|
|
202
316
|
|
|
203
|
-
const mdsInputUploadCss = "@tailwind components;\n@tailwind utilities;\n\n:host {\n\n --mds-input-upload-drag-area-background-color-on-drag: rgb(var(--tone-neutral-10));\n --mds-input-upload-drag-area-background-color: rgb(var(--tone-neutral));\n --mds-input-upload-drag-area-border-on-drag: 3px dashed rgb(var(--tone-neutral-07));\n --mds-input-upload-drag-area-border: 3px dashed rgb(var(--tone-neutral-07));\n --mds-input-upload-min-cols: 3;\n grid-template-columns: repeat(auto-fit, minmax(1px, 100%));\n gap: 1rem;\n\n container-type: inline-size;\n display: grid;\n}\n\n.drag-area {\n\n /*\n actually there is no way to custom background-image url\n paramter which not allows to pass custom properties inside\n --stroke-color: theme('colors.tone-neutral-07');\n --stroke-dashoffset: 8;\n --stroke-line-width: 8;\n --stroke-width: 5;\n --stroke-line-distance: theme('spacing.400');\n --stroke-dasharray-line: var(--stroke-line-width) '%2c' var(--stroke-line-distance);\n --border-radius: theme('borderRadius.2xl');\n --url: \"url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='\" var(--border-radius) \"' ry='\" var(--border-radius) \"' stroke='\" var(--stroke-color) \"' stroke-width='\" var(--stroke-width) \"' stroke-dasharray='8%2c 16' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e)\";\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx=\"16\" ry='16' stroke='red' stroke-width='5' stroke-dasharray='8%2c 16' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e\");\n */\n\n gap: 1rem;\n\n border-radius: 1rem;\n\n padding: 1.5rem;\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: var(--mds-input-upload-drag-area-background-color);\n border: var(--mds-input-upload-drag-area-border);\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;\n transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.drag-area--on-drag-enter {\n\n --mds-input-upload-drag-area-background-color: var(--mds-input-upload-drag-area-background-color-on-drag);\n --mds-input-upload-drag-area-border: var(--mds-input-upload-drag-area-border-on-drag);\n}\n\n.icon{\n\n display: -ms-flexbox;\n\n display: flex;\n}\n\n.icon svg{\n\n aspect-ratio: 1/1;\n\n height: 100%;\n\n width: 100%;\n}\n\n.icon{\n\n width: 3rem;\n\n fill: rgb(var(--
|
|
317
|
+
const mdsInputUploadCss = "@tailwind components;\n@tailwind utilities;\n\n:host {\n\n --mds-input-upload-drag-area-background-color-on-drag: rgb(var(--tone-neutral-10));\n --mds-input-upload-drag-area-background-color: rgb(var(--tone-neutral));\n --mds-input-upload-drag-area-border-on-drag: 3px dashed rgb(var(--tone-neutral-07));\n --mds-input-upload-drag-area-border: 3px dashed rgb(var(--tone-neutral-07));\n --mds-input-upload-min-cols: 3;\n grid-template-columns: repeat(auto-fit, minmax(1px, 100%));\n gap: 1rem;\n\n container-type: inline-size;\n display: grid;\n}\n\n.drag-area {\n\n /*\n actually there is no way to custom background-image url\n paramter which not allows to pass custom properties inside\n --stroke-color: theme('colors.tone-neutral-07');\n --stroke-dashoffset: 8;\n --stroke-line-width: 8;\n --stroke-width: 5;\n --stroke-line-distance: theme('spacing.400');\n --stroke-dasharray-line: var(--stroke-line-width) '%2c' var(--stroke-line-distance);\n --border-radius: theme('borderRadius.2xl');\n --url: \"url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='\" var(--border-radius) \"' ry='\" var(--border-radius) \"' stroke='\" var(--stroke-color) \"' stroke-width='\" var(--stroke-width) \"' stroke-dasharray='8%2c 16' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e)\";\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx=\"16\" ry='16' stroke='red' stroke-width='5' stroke-dasharray='8%2c 16' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e\");\n */\n\n gap: 1rem;\n\n border-radius: 1rem;\n\n padding: 1.5rem;\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: var(--mds-input-upload-drag-area-background-color);\n border: var(--mds-input-upload-drag-area-border);\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;\n transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.drag-area--on-drag-enter {\n\n --mds-input-upload-drag-area-background-color: var(--mds-input-upload-drag-area-background-color-on-drag);\n --mds-input-upload-drag-area-border: var(--mds-input-upload-drag-area-border-on-drag);\n}\n\n.icon{\n\n display: -ms-flexbox;\n\n display: flex;\n}\n\n.icon svg{\n\n aspect-ratio: 1/1;\n\n height: 100%;\n\n width: 100%;\n}\n\n.icon{\n\n width: 3rem;\n\n fill: rgb(var(--variant-primary-05));\n}\n\n.action{\n\n padding: 0.375rem;\n\n border-radius: 1000px;\n fill: rgb(var(--tone-neutral-04));\n height: auto;\n}\n\n.action--cancel-upload:focus-visible,\n.action--cancel-upload:hover {\n\n --mds-button-background: rgb(var(--status-error-09));\n\n fill: rgb(var(--status-error-04));\n}\n\n.action--retry-upload:focus-visible,\n.action--retry-upload:hover {\n\n --mds-button-background: rgb(var(--status-success-09));\n\n fill: rgb(var(--status-success-04));\n}\n\n.main-action{\n\n grid-template-columns: repeat(auto-fit, minmax(1px, 100%));\n\n display: grid;\n pointer-events: none;\n text-align: center;\n}\n\n.main-actions{\n\n min-width: 8rem;\n\n gap: 0.5rem;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.main-action-icon {\n -ms-flex-align: center;\n align-items: center;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.file-list,\n.main-infos{\n\n grid-template-columns: repeat(auto-fit, minmax(1px, 100%));\n\n gap: 0.25rem;\n\n display: grid;\n}\n\n.file-list {\n\n\n --cols: var(--mds-input-upload-min-cols);\n --perc-w: calc(100% / var(--cols));\n --gap: 1rem;\n --gap-w: calc(var(--gap) - calc(var(--gap) / var(--cols)));\n --max-w: calc(var(--perc-w) - var(--gap-w));\n --template-cols: repeat(auto-fit, minmax(10rem, var(--max-w)));\n gap: 1rem;\n\n grid-template-columns: var(--template-cols);\n}\n\n.file-list--more-items {\n\n --template-cols: repeat(auto-fit, minmax(10rem, 1fr));\n}\n\n@container (max-width: 340px) {\n .file-list {\n\n --template-cols: 1fr;\n }\n}\n\n.main-infos{\n\n max-width: 12rem;\n\n min-width: 0;\n text-align: center;\n width: 100%;\n}\n\n.progress-bar {\n min-width: 0;\n width: 100%;\n}\n\n.additional-infos{\n\n gap: 1rem;\n\n -ms-flex-align: start;\n\n align-items: flex-start;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.file-specs{\n\n -moz-column-gap: 1rem;\n\n -webkit-column-gap: 1rem;\n\n column-gap: 1rem;\n\n row-gap: 0.25rem;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-positive: 1;\n flex-grow: 1;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.action-sort {\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n\n.file-specs.file-specs-sort {\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n -ms-flex-pack: center;\n justify-content: center;\n}\n";
|
|
204
318
|
const MdsInputUploadStyle0 = mdsInputUploadCss;
|
|
205
319
|
|
|
206
320
|
const MdsInputUpload$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputUpload extends HTMLElement {
|
|
@@ -212,12 +326,16 @@ const MdsInputUpload$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputUpload e
|
|
|
212
326
|
this.internals = this.attachInternals();
|
|
213
327
|
this.fileUploaded = 0;
|
|
214
328
|
this.cssMinCols = 1000;
|
|
215
|
-
this.
|
|
329
|
+
this.idFile = 0;
|
|
216
330
|
this.t = new Locale({
|
|
331
|
+
el: localeEl,
|
|
217
332
|
en: localeEn,
|
|
333
|
+
es: localeEs,
|
|
218
334
|
it: localeIt,
|
|
219
335
|
});
|
|
220
336
|
this.updateCSSCustomProps = () => {
|
|
337
|
+
if (typeof window === 'undefined')
|
|
338
|
+
return;
|
|
221
339
|
const elementStyles = window.getComputedStyle(this.host);
|
|
222
340
|
this.cssMinCols = Number(elementStyles.getPropertyValue('--mds-input-upload-min-cols'));
|
|
223
341
|
};
|
|
@@ -280,6 +398,7 @@ const MdsInputUpload$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputUpload e
|
|
|
280
398
|
localStorage.setItem(LOCALSTORAGE_KEY_USER_SORT, this.userSort);
|
|
281
399
|
}
|
|
282
400
|
};
|
|
401
|
+
this.language = undefined;
|
|
283
402
|
this.actionTitle = '';
|
|
284
403
|
this.files = [];
|
|
285
404
|
this.progress = 0;
|
|
@@ -289,6 +408,9 @@ const MdsInputUpload$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputUpload e
|
|
|
289
408
|
this.maxFiles = 1;
|
|
290
409
|
this.sort = undefined;
|
|
291
410
|
}
|
|
411
|
+
async updateLang() {
|
|
412
|
+
this.language = this.t.lang(this.host);
|
|
413
|
+
}
|
|
292
414
|
componentWillLoad() {
|
|
293
415
|
var _a;
|
|
294
416
|
this.extensions = this.getExtension();
|
|
@@ -336,7 +458,7 @@ const MdsInputUpload$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputUpload e
|
|
|
336
458
|
// prepare new file added
|
|
337
459
|
for (const file of files) {
|
|
338
460
|
// update only file not added previously or files with errors
|
|
339
|
-
this.
|
|
461
|
+
this.idFile += 1;
|
|
340
462
|
const index = this.files.findIndex(f => f.key === file.name);
|
|
341
463
|
if (index === -1 || this.files[index].status !== Status.SUCCESS) {
|
|
342
464
|
// remove file with error
|
|
@@ -345,11 +467,11 @@ const MdsInputUpload$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputUpload e
|
|
|
345
467
|
}
|
|
346
468
|
const { errorMessage, type } = this.checkError(file);
|
|
347
469
|
if (!errorMessage) {
|
|
348
|
-
this.files.push({ key: file.name, file, id: this.
|
|
470
|
+
this.files.push({ key: file.name, file, id: this.idFile, status: Status.SUCCESS });
|
|
349
471
|
this.fileUploaded += 1;
|
|
350
472
|
}
|
|
351
473
|
else {
|
|
352
|
-
this.files.push({ key: file.name, file, id: this.
|
|
474
|
+
this.files.push({ key: file.name, file, id: this.idFile, status: Status.ERROR, errorType: type, errorMessage });
|
|
353
475
|
}
|
|
354
476
|
}
|
|
355
477
|
}
|
|
@@ -461,10 +583,16 @@ const MdsInputUpload$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputUpload e
|
|
|
461
583
|
sortById(a, b) {
|
|
462
584
|
return b.id - a.id;
|
|
463
585
|
}
|
|
586
|
+
isSortTabShown() {
|
|
587
|
+
return !!this.sort && this.files.length > 1;
|
|
588
|
+
}
|
|
464
589
|
render() {
|
|
465
|
-
return (h(Host, { key: '
|
|
466
|
-
h("mds-
|
|
467
|
-
:
|
|
590
|
+
return (h(Host, { key: 'a792c785e3bf546af643669295339258d432ca2a' }, h("div", { key: 'a56bcd8ba423d5bcebc6db10e6c8d71a1ff4584c', class: "drag-area", onDrop: this.onDropHandler, onDragOver: this.onDragOverHandler, onDragEnter: this.onDragEnterHandler, onDragLeave: this.onDragLeaveHandler, ref: dragArea => this.elDragArea = dragArea }, h("div", { key: '95fe93336a217fb31c8356b549a932a9b74ebddd', class: "main-action" }, h("div", { key: '53a6907f96b65a61c03f19ba4d0bba0465f950f8', class: "main-action-icon" }, h("i", { key: '9797bad2c4df806db28e9cd6fe2331ed36c0d29c', class: "icon", innerHTML: miBaselineAddCircle })), h("mds-text", { key: '39ed56cc236e03ad389a879c49af9862e259787f', animation: this.animateText ? 'yugop' : 'none', variant: "title", typography: "action", text: this.actionTitle })), h("div", { key: '246ae89ee012664526f2bf6da271f679b43853d1', class: "main-actions" }, h("mds-button", { key: 'fb9472b7193a50763a86f7f2f61aff469521b067', variant: 'primary', onClick: () => { var _a; return (_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.click(); } }, " ", this.files ? this.t.get('addFile', { maxFiles: this.maxFiles }) : this.t.get('selectFile')), this.files.length > 0 && h("mds-button", { key: '068da5408a1f6b61aef95235d64b94e39ca44a8e', variant: 'error', onClick: this.onReset }, this.t.get('cancel'))), h("div", { key: '913ff1d4131646afc616888102fe662b61763da9', class: "main-infos" }, h("mds-progress", { key: '3286632acbc5411a9662ebc364fd6d72f3d5cc46', "aria-hidden": "true", class: "progress-bar", progress: this.progress }), this.files.length < 1
|
|
591
|
+
? h("mds-text", { variant: "info", typography: "caption" }, this.t.get('maxFilesUpload', { maxFiles: this.maxFiles }))
|
|
592
|
+
: h("mds-text", { variant: "info", typography: "caption" }, this.maxFiles
|
|
593
|
+
? this.t.get('currentFilesWithMax', { currentFiles: this.files.length, maxFiles: this.maxFiles })
|
|
594
|
+
: this.t.get('currentFilesNoMax', { currentFiles: this.files.length })))), h("input", { key: '7b5a9fd3aade909d4204145faa4aee8a9f53e7af', type: 'file', accept: this.accept, hidden: true, ref: i => this.nativeInput = i, onChange: this.onAdd, multiple: this.maxFiles > 1 }), h("div", { key: 'ed18861c7e6443fc75dcfa2d408f9b0d90f1b37c', class: "additional-infos" }, h("div", { key: '8b858fcd8ed3eab40406973105550c250fbd971d', class: clsx('file-specs', this.isSortTabShown() && 'file-specs-sort') }, h("mds-text", { key: '835f92a0ab6d785e5ad359ef8c7908e5ed98fbcc', variant: "info", typography: "caption" }, this.extensions !== '' ? `${this.t.get('canUpload')} ${this.extensions}` : this.t.get('canUploadAll')), h("mds-text", { key: '32ee88f2bca36400021a394881764b0cea392a52', variant: "info", typography: "caption" }, this.t.get('maxFileSizePerFile', { maxFileSize: this.maxFileSize }))), this.isSortTabShown() &&
|
|
595
|
+
h("mds-tab", { key: '8801be0550155b365015a9e2371065f5dad58d59', class: "action-sort", onMdsTabChange: event => this.onChangeTab(event.detail) }, h("mds-tab-item", { key: '094ddc0512dcd5404c38e18fb3ea160e4a98758c', icon: iconSortById, selected: this.userSort === 'date', title: this.t.get('sortByDate'), value: 'date' }), h("mds-tab-item", { key: '0977f5de0a0d1be969311cf68d272d64108f16d2', icon: iconSortByStatus, selected: this.userSort === 'status', title: this.t.get('sortByStatus'), value: 'status' }))), h("div", { key: '9019416ac646dffe8d021f0843ed979af6bfefb8', class: clsx('file-list', this.files.length > this.cssMinCols && 'file-list--more-items') }, this.files.map(file => {
|
|
468
596
|
switch (file.status) {
|
|
469
597
|
case Status.ERROR:
|
|
470
598
|
return (h("mds-file-preview", { deletable: true, variant: "error", filename: file.file.name, filesize: file.file.size.toString(), onMdsFileDelete: () => this.onCancel(file.key), message: file.errorMessage }));
|
|
@@ -484,10 +612,12 @@ const MdsInputUpload$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputUpload e
|
|
|
484
612
|
"maxFileSize": [514, "max-file-size"],
|
|
485
613
|
"maxFiles": [514, "max-files"],
|
|
486
614
|
"sort": [513],
|
|
615
|
+
"language": [32],
|
|
487
616
|
"actionTitle": [32],
|
|
488
617
|
"files": [32],
|
|
489
618
|
"progress": [32],
|
|
490
619
|
"animateText": [32],
|
|
620
|
+
"updateLang": [64],
|
|
491
621
|
"getFiles": [64],
|
|
492
622
|
"getFilesError": [64]
|
|
493
623
|
}, undefined, {
|
|
@@ -17,11 +17,33 @@ const miBaselineVisible = `<svg xmlns="http://www.w3.org/2000/svg" width="24" he
|
|
|
17
17
|
|
|
18
18
|
const miBaselineVisibleOff = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 7c2.76 0 5 2.24 5 5c0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75c-1.73-4.39-6-7.5-11-7.5c-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28l.46.46A11.804 11.804 0 0 0 1 12c1.73 4.39 6 7.5 11 7.5c1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22L21 20.73L3.27 3L2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65c0 1.66 1.34 3 3 3c.22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53c-2.76 0-5-2.24-5-5c0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15l.02-.16c0-1.66-1.34-3-3-3l-.17.01z"/></svg>`;
|
|
19
19
|
|
|
20
|
-
const increase$
|
|
21
|
-
const decrease$
|
|
22
|
-
const showPassword$
|
|
23
|
-
const hidePassword$
|
|
20
|
+
const increase$3 = "Αύξηση";
|
|
21
|
+
const decrease$3 = "Μείωση";
|
|
22
|
+
const showPassword$3 = "Εμφάνιση Κωδικού";
|
|
23
|
+
const hidePassword$3 = "Απόκρυψη Κωδικού";
|
|
24
|
+
const localeEl = {
|
|
25
|
+
increase: increase$3,
|
|
26
|
+
decrease: decrease$3,
|
|
27
|
+
showPassword: showPassword$3,
|
|
28
|
+
hidePassword: hidePassword$3
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const increase$2 = "Increase";
|
|
32
|
+
const decrease$2 = "Decrease";
|
|
33
|
+
const showPassword$2 = "Show Password";
|
|
34
|
+
const hidePassword$2 = "Hide Password";
|
|
24
35
|
const localeEn = {
|
|
36
|
+
increase: increase$2,
|
|
37
|
+
decrease: decrease$2,
|
|
38
|
+
showPassword: showPassword$2,
|
|
39
|
+
hidePassword: hidePassword$2
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const increase$1 = "Aumentar";
|
|
43
|
+
const decrease$1 = "Disminuir";
|
|
44
|
+
const showPassword$1 = "Mostrar Contraseña";
|
|
45
|
+
const hidePassword$1 = "Ocultar Contraseña";
|
|
46
|
+
const localeEs = {
|
|
25
47
|
increase: increase$1,
|
|
26
48
|
decrease: decrease$1,
|
|
27
49
|
showPassword: showPassword$1,
|
|
@@ -39,7 +61,7 @@ const localeIt = {
|
|
|
39
61
|
hidePassword: hidePassword
|
|
40
62
|
};
|
|
41
63
|
|
|
42
|
-
const mdsInputCss = "@tailwind utilities;\n\n/**\n * @prop --mds-input-background: Sets the background-color of the component\n * @prop --mds-input-icon-color: Sets the icon color of the component\n * @prop --mds-input-ring: Sets the box-shadow of the component's input\n * @prop --mds-input-shadow: Sets the box-shadow of the component's input\n * @prop --mds-input-textarea-field-sizing: Sets the height of the textarea automatically, this is an EXPERIMENTAL css property, so it couldn't work in every browser\n * @prop --mds-input-textarea-max-height: Sets the `max-height` of the component when attribute `type` is set to `textarea`\n * @prop --mds-input-textarea-min-height: Sets the `min-height` of the component when attribute `type` is set to `textarea`\n * @prop --mds-input-tip-background: Sets the background color of the tip message at the bottom right of the component\n * @prop --mds-input-variant-color: Sets the variant colors of the component\n */\n\n:host {\n\n --mds-input-background: rgb(var(--tone-neutral));\n --mds-input-icon-color: var(--mds-input-variant-color);\n --mds-input-tip-background: 84 84 84;\n --mds-input-ring: 0 0 0 1px rgb(var(--mds-input-variant-color) / 0.1);\n --mds-input-shadow: 0 1px 3px 0 rgb(var(--mds-input-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-variant-color) / 0.06);\n --mds-input-variant-color: 0 0 0;\n --mds-input-controls-color: rgb(var(--brand-maggioli-03));\n --mds-input-controls-border: 2px solid rgb(var(--tone-neutral-09));\n --mds-input-textarea-min-height: 6rem;\n --mds-input-textarea-max-height: 16rem;\n --mds-input-textarea-field-sizing: content;\n min-height: 1.5rem;\n font-family: Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n font-size: 1rem;\n line-height: 1.5rem;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n gap: 0.5rem;\n\n container-type: inline-size;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n}\n\n:host( [typography=\"detail\"] ) .input{\n\n min-height: 1.5rem;\n\n font-family: Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n\n font-size: 1rem;\n\n line-height: 1.5rem;\n\n -webkit-font-smoothing: antialiased;\n\n -moz-osx-font-smoothing: grayscale;\n}\n\n:host( [typography=\"snippet\"] ) .input{\n\n min-height: 1.5rem;\n\n font-family: 'Roboto Mono', 'Courier New', monospace;\n\n font-size: 1rem;\n\n line-height: 1.5rem;\n\n -webkit-font-smoothing: antialiased;\n\n -moz-osx-font-smoothing: grayscale;\n}\n\n.input{\n\n font-family: Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n\n font-size: 1rem;\n\n line-height: 1.5rem;\n\n -webkit-font-smoothing: antialiased;\n\n -moz-osx-font-smoothing: grayscale;\n\n margin: 0rem;\n\n border-radius: 0.5rem;\n\n padding-left: 1rem;\n\n padding-right: 1rem;\n\n padding-top: 0.75rem;\n\n padding-bottom: 0.75rem;\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-input-background);\n border: 0;\n -webkit-box-shadow: var(--mds-input-ring), var(--mds-input-shadow);\n box-shadow: var(--mds-input-ring), var(--mds-input-shadow);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: rgb(var(--tone-neutral-02));\n min-height: 3rem;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-transition-property: background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform;\n transition-property: background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform, -webkit-box-shadow, -webkit-transform;\n width: 100%;\n}\n\n.input::-moz-placeholder {\n color: rgb(var(--tone-neutral-04));\n}\n\n.input::-webkit-input-placeholder {\n color: rgb(var(--tone-neutral-04));\n}\n\n.input:-ms-input-placeholder {\n color: rgb(var(--tone-neutral-04));\n}\n\n.input::-ms-input-placeholder {\n color: rgb(var(--tone-neutral-04));\n}\n\n.input::placeholder {\n color: rgb(var(--tone-neutral-04));\n}\n\n.input::-webkit-outer-spin-button,\n.input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n appearance: none;\n display: none;\n margin: 0;\n}\n\ntextarea.input{\n\n resize: vertical;\n\n border-bottom-right-radius: 0;\n\n field-sizing: var(--mds-input-textarea-field-sizing);\n max-height: var(--mds-input-textarea-max-height);\n min-height: var(--mds-input-textarea-min-height);\n overflow: auto;\n}\n\n.input:focus{\n\n outline: 2px solid transparent;\n\n outline-offset: 2px;\n\n --mds-input-ring: 0 0 0 3px rgb(var(--mds-input-variant-color) / 1);\n --mds-input-shadow: 0 4px 6px 3px rgb(var(--mds-input-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-variant-color) / 0.06);\n}\n\n.input:disabled {\n background-color: rgb(var(--tone-neutral-10));\n}\n\n.input:disabled::-moz-placeholder {\n color: rgb(var(--tone-neutral-05));\n}\n\n.input:disabled::-webkit-input-placeholder {\n color: rgb(var(--tone-neutral-05));\n}\n\n.input:disabled:-ms-input-placeholder {\n color: rgb(var(--tone-neutral-05));\n}\n\n.input:disabled::-ms-input-placeholder {\n color: rgb(var(--tone-neutral-05));\n}\n\n.input:disabled,\n.input:disabled::placeholder {\n color: rgb(var(--tone-neutral-05));\n}\n\n.input.has-icon{\n\n padding-left: 2.75rem;\n}\n\n\n.await,\n.icon{\n\n left: 0.75rem;\n\n top: 0.75rem;\n\n fill: rgb(var(--mds-input-icon-color));\n position: absolute;\n}\n\n.await {\n color: rgb(var(--mds-input-icon-color));\n height: 24px;\n width: 24px;\n}\n\n.counter {\n border-left: var(--mds-input-controls-border);\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n gap: 0;\n position: absolute;\n right: 0;\n}\n\n.counter-button{\n\n height: 1.5rem;\n\n width: 1.75rem;\n\n border-radius: 0.5rem;\n\n --mds-button-background: transparent;\n\n border: 0;\n fill: var(--mds-input-controls-color);\n min-height: 0;\n padding: 0;\n}\n\n.counter-button:hover {\n\n --mds-button-background: rgb(var(--tone-neutral-09));\n}\n\n.counter .counter-button:first-child {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-top-left-radius: 0;\n}\n\n.counter .counter-button:last-child {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n.counter-button--horizontal{\n\n height: 3rem;\n\n width: 3rem;\n\n bottom: 0;\n position: absolute;\n top: 0;\n}\n\n.counter-button--decrease {\n border-bottom-right-radius: 0;\n border-right: var(--mds-input-controls-border);\n border-top-right-radius: 0;\n left: 0;\n}\n\n.counter-button--increase {\n border-bottom-left-radius: 0;\n border-left: var(--mds-input-controls-border);\n border-top-left-radius: 0;\n right: 0;\n}\n\n.password-toggle-button{\n\n top: 0.375rem;\n\n right: 0.375rem;\n\n fill: var(--mds-input-controls-color);\n position: absolute;\n}\n\n:host( [type=\"number\"] ) .input{\n\n padding-right: 2rem;\n}\n\n:host( [type=\"number\"][controls-layout=\"horizontal\"] ) .input{\n\n padding-left: 3.5rem;\n\n padding-right: 3.5rem;\n\n text-align: center;\n}\n\n:host( [type=\"number\"][controls-layout=\"horizontal\"][icon] ) .input{\n\n padding-left: 6rem;\n\n text-align: left;\n}\n\n\n:host( [type=\"number\"][controls-layout=\"horizontal\"] ) .icon{\n\n left: 3.75rem;\n}\n\n:host( [type=\"password\"]) .input{\n\n padding-right: 2.5rem;\n}\n\n:host( [type=\"password\"]) .input[type=\"password\"]:not(:-moz-placeholder-shown) {\n font-size: 3rem;\n max-height: 3rem;\n}\n\n:host( [type=\"password\"]) .input[type=\"password\"]:not(:-ms-input-placeholder) {\n font-size: 3rem;\n max-height: 3rem;\n}\n\n:host( [type=\"password\"]) .input[type=\"password\"]:not(:placeholder-shown) {\n font-size: 3rem;\n max-height: 3rem;\n}\n\n:host( [type=\"password\"]) .input[type=\"text\"]:not(:-moz-placeholder-shown){\n\n min-height: 1.5rem;\n\n font-family: 'Roboto Mono', 'Courier New', monospace;\n\n font-size: 1rem;\n\n line-height: 1.5rem;\n\n -webkit-font-smoothing: antialiased;\n\n -moz-osx-font-smoothing: grayscale;\n}\n\n:host( [type=\"password\"]) .input[type=\"text\"]:not(:-ms-input-placeholder){\n\n min-height: 1.5rem;\n\n font-family: 'Roboto Mono', 'Courier New', monospace;\n\n font-size: 1rem;\n\n line-height: 1.5rem;\n\n -webkit-font-smoothing: antialiased;\n\n -moz-osx-font-smoothing: grayscale;\n}\n\n:host( [type=\"password\"]) .input[type=\"text\"]:not(:placeholder-shown){\n\n min-height: 1.5rem;\n\n font-family: 'Roboto Mono', 'Courier New', monospace;\n\n font-size: 1rem;\n\n line-height: 1.5rem;\n\n -webkit-font-smoothing: antialiased;\n\n -moz-osx-font-smoothing: grayscale;\n}\n\n@tailwind utilities;\n\n:host {\n\n --mds-input-icon-color: var(--brand-maggioli-03);\n --mds-input-variant-color: 0 0 0;\n}\n\n:host( :focus ) {\n\n --mds-input-variant-color: var(--brand-maggioli-04);\n}\n\n:host( [variant=\"info\"] ) {\n\n --mds-input-icon-color: var(--status-info-05);\n --mds-input-tip-background: var(--status-info-05);\n --mds-input-variant-color: 0 0 0;\n}\n\n:host( [variant=\"info\"]:focus ) {\n\n --mds-input-icon-color: var(--status-info-04);\n --mds-input-variant-color: var(--status-info-05);\n}\n\n:host( [variant=\"success\"] ) {\n\n --mds-input-icon-color: var(--status-success-05);\n --mds-input-tip-background: var(--status-success-05);\n --mds-input-variant-color: 0 0 0;\n}\n\n:host( [variant=\"success\"]:focus ) {\n\n --mds-input-icon-color: var(--status-success-04);\n --mds-input-variant-color: var(--status-success-05);\n}\n\n:host( [variant=\"warning\"] ) {\n\n --mds-input-icon-color: var(--status-warning-05);\n --mds-input-tip-background: var(--status-warning-05);\n --mds-input-variant-color: 0 0 0;\n}\n\n:host( [variant=\"warning\"]:focus ) {\n\n --mds-input-icon-color: var(--status-warning-04);\n --mds-input-variant-color: var(--status-warning-05);\n}\n\n:host( [variant=\"error\"] ) {\n\n --mds-input-icon-color: var(--status-error-05);\n --mds-input-tip-background: var(--status-error-05);\n --mds-input-variant-color: 0 0 0;\n}\n\n:host( [variant=\"error\"]:focus ) {\n\n --mds-input-icon-color: var(--status-error-04);\n --mds-input-variant-color: var(--status-error-05);\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n .input {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n .input {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-input-ring: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-input-ring: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-input-ring: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);\n }\n\n .input::-moz-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input::-webkit-input-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input:-ms-input-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input::-ms-input-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input::placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-input-ring: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);\n }\n\n .input::-moz-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input::-webkit-input-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input:-ms-input-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input::-ms-input-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input::placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n }\n}\n\n\n\n@container (max-width: 210px) {\n :host .tip__content,\n :host(:focus-within) .tip__content {\n grid-template-columns: 0fr;\n opacity: 0;\n }\n\n :host .tip {\n padding-left: 0;\n padding-right: 0;\n }\n\n :host {\n\n --mds-input-background: rgb(var(--brand-maggioli-07));\n }\n}\n";
|
|
64
|
+
const mdsInputCss = "@tailwind utilities;\n\n/**\n * @prop --mds-input-background: Sets the background-color of the component\n * @prop --mds-input-icon-color: Sets the icon color of the component\n * @prop --mds-input-ring: Sets the box-shadow of the component's input\n * @prop --mds-input-shadow: Sets the box-shadow of the component's input\n * @prop --mds-input-textarea-field-sizing: Sets the height of the textarea automatically, this is an EXPERIMENTAL css property, so it couldn't work in every browser\n * @prop --mds-input-textarea-max-height: Sets the `max-height` of the component when attribute `type` is set to `textarea`\n * @prop --mds-input-textarea-min-height: Sets the `min-height` of the component when attribute `type` is set to `textarea`\n * @prop --mds-input-tip-background: Sets the background color of the tip message at the bottom right of the component\n * @prop --mds-input-variant-color: Sets the variant colors of the component\n */\n\n:host {\n\n --mds-input-background: rgb(var(--tone-neutral));\n --mds-input-icon-color: var(--mds-input-variant-color);\n --mds-input-tip-background: 84 84 84;\n --mds-input-ring: 0 0 0 1px rgb(var(--mds-input-variant-color) / 0.1);\n --mds-input-shadow: 0 1px 3px 0 rgb(var(--mds-input-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-variant-color) / 0.06);\n --mds-input-variant-color: 0 0 0;\n --mds-input-controls-color: rgb(var(--variant-primary-03));\n --mds-input-controls-border: 2px solid rgb(var(--tone-neutral-09));\n --mds-input-textarea-min-height: 6rem;\n --mds-input-textarea-max-height: 16rem;\n --mds-input-textarea-field-sizing: content;\n min-height: 1.5rem;\n font-family: Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n font-size: 1rem;\n line-height: 1.5rem;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n gap: 0.5rem;\n\n container-type: inline-size;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n}\n\n:host( [typography=\"detail\"] ) .input{\n\n min-height: 1.5rem;\n\n font-family: Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n\n font-size: 1rem;\n\n line-height: 1.5rem;\n\n -webkit-font-smoothing: antialiased;\n\n -moz-osx-font-smoothing: grayscale;\n}\n\n:host( [typography=\"snippet\"] ) .input{\n\n min-height: 1.5rem;\n\n font-family: 'Roboto Mono', 'Courier New', monospace;\n\n font-size: 1rem;\n\n line-height: 1.5rem;\n\n -webkit-font-smoothing: antialiased;\n\n -moz-osx-font-smoothing: grayscale;\n}\n\n.input{\n\n font-family: Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n\n font-size: 1rem;\n\n line-height: 1.5rem;\n\n -webkit-font-smoothing: antialiased;\n\n -moz-osx-font-smoothing: grayscale;\n\n margin: 0rem;\n\n border-radius: 0.5rem;\n\n padding-left: 1rem;\n\n padding-right: 1rem;\n\n padding-top: 0.75rem;\n\n padding-bottom: 0.75rem;\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-input-background);\n border: 0;\n -webkit-box-shadow: var(--mds-input-ring), var(--mds-input-shadow);\n box-shadow: var(--mds-input-ring), var(--mds-input-shadow);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: rgb(var(--tone-neutral-02));\n min-height: 3rem;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-transition-property: background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform;\n transition-property: background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform, -webkit-box-shadow, -webkit-transform;\n width: 100%;\n}\n\n.input::-moz-placeholder {\n color: rgb(var(--tone-neutral-04));\n}\n\n.input::-webkit-input-placeholder {\n color: rgb(var(--tone-neutral-04));\n}\n\n.input:-ms-input-placeholder {\n color: rgb(var(--tone-neutral-04));\n}\n\n.input::-ms-input-placeholder {\n color: rgb(var(--tone-neutral-04));\n}\n\n.input::placeholder {\n color: rgb(var(--tone-neutral-04));\n}\n\n.input::-webkit-outer-spin-button,\n.input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n appearance: none;\n display: none;\n margin: 0;\n}\n\ntextarea.input{\n\n resize: vertical;\n\n border-bottom-right-radius: 0;\n\n field-sizing: var(--mds-input-textarea-field-sizing);\n max-height: var(--mds-input-textarea-max-height);\n min-height: var(--mds-input-textarea-min-height);\n overflow: auto;\n}\n\n.input:focus{\n\n outline: 2px solid transparent;\n\n outline-offset: 2px;\n\n --mds-input-ring: 0 0 0 3px rgb(var(--mds-input-variant-color) / 1);\n --mds-input-shadow: 0 4px 6px 3px rgb(var(--mds-input-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-variant-color) / 0.06);\n}\n\n.input:disabled {\n background-color: rgb(var(--tone-neutral-10));\n}\n\n.input:disabled::-moz-placeholder {\n color: rgb(var(--tone-neutral-05));\n}\n\n.input:disabled::-webkit-input-placeholder {\n color: rgb(var(--tone-neutral-05));\n}\n\n.input:disabled:-ms-input-placeholder {\n color: rgb(var(--tone-neutral-05));\n}\n\n.input:disabled::-ms-input-placeholder {\n color: rgb(var(--tone-neutral-05));\n}\n\n.input:disabled,\n.input:disabled::placeholder {\n color: rgb(var(--tone-neutral-05));\n}\n\n.input.has-icon{\n\n padding-left: 2.75rem;\n}\n\n\n.await,\n.icon{\n\n left: 0.75rem;\n\n top: 0.75rem;\n\n fill: rgb(var(--mds-input-icon-color));\n position: absolute;\n}\n\n.await {\n color: rgb(var(--mds-input-icon-color));\n height: 24px;\n width: 24px;\n}\n\n.counter {\n border-left: var(--mds-input-controls-border);\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n gap: 0;\n position: absolute;\n right: 0;\n}\n\n.counter-button{\n\n height: 1.5rem;\n\n width: 1.75rem;\n\n border-radius: 0.5rem;\n\n --mds-button-background: transparent;\n\n border: 0;\n fill: var(--mds-input-controls-color);\n min-height: 0;\n padding: 0;\n}\n\n.counter-button:hover {\n\n --mds-button-background: rgb(var(--tone-neutral-09));\n}\n\n.counter .counter-button:first-child {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-top-left-radius: 0;\n}\n\n.counter .counter-button:last-child {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n.counter-button--horizontal{\n\n height: 3rem;\n\n width: 3rem;\n\n bottom: 0;\n position: absolute;\n top: 0;\n}\n\n.counter-button--decrease {\n border-bottom-right-radius: 0;\n border-right: var(--mds-input-controls-border);\n border-top-right-radius: 0;\n left: 0;\n}\n\n.counter-button--increase {\n border-bottom-left-radius: 0;\n border-left: var(--mds-input-controls-border);\n border-top-left-radius: 0;\n right: 0;\n}\n\n.password-toggle-button{\n\n top: 0.375rem;\n\n right: 0.375rem;\n\n fill: var(--mds-input-controls-color);\n position: absolute;\n}\n\n:host( [type=\"number\"] ) .input{\n\n padding-right: 2rem;\n}\n\n:host( [type=\"number\"][controls-layout=\"horizontal\"] ) .input{\n\n padding-left: 3.5rem;\n\n padding-right: 3.5rem;\n\n text-align: center;\n}\n\n:host( [type=\"number\"][controls-layout=\"horizontal\"][icon] ) .input{\n\n padding-left: 6rem;\n\n text-align: left;\n}\n\n\n:host( [type=\"number\"][controls-layout=\"horizontal\"] ) .icon{\n\n left: 3.75rem;\n}\n\n:host( [type=\"password\"]) .input{\n\n padding-right: 2.5rem;\n}\n\n:host( [type=\"password\"]) .input[type=\"password\"]:not(:-moz-placeholder-shown) {\n font-size: 3rem;\n max-height: 3rem;\n}\n\n:host( [type=\"password\"]) .input[type=\"password\"]:not(:-ms-input-placeholder) {\n font-size: 3rem;\n max-height: 3rem;\n}\n\n:host( [type=\"password\"]) .input[type=\"password\"]:not(:placeholder-shown) {\n font-size: 3rem;\n max-height: 3rem;\n}\n\n:host( [type=\"password\"]) .input[type=\"text\"]:not(:-moz-placeholder-shown){\n\n min-height: 1.5rem;\n\n font-family: 'Roboto Mono', 'Courier New', monospace;\n\n font-size: 1rem;\n\n line-height: 1.5rem;\n\n -webkit-font-smoothing: antialiased;\n\n -moz-osx-font-smoothing: grayscale;\n}\n\n:host( [type=\"password\"]) .input[type=\"text\"]:not(:-ms-input-placeholder){\n\n min-height: 1.5rem;\n\n font-family: 'Roboto Mono', 'Courier New', monospace;\n\n font-size: 1rem;\n\n line-height: 1.5rem;\n\n -webkit-font-smoothing: antialiased;\n\n -moz-osx-font-smoothing: grayscale;\n}\n\n:host( [type=\"password\"]) .input[type=\"text\"]:not(:placeholder-shown){\n\n min-height: 1.5rem;\n\n font-family: 'Roboto Mono', 'Courier New', monospace;\n\n font-size: 1rem;\n\n line-height: 1.5rem;\n\n -webkit-font-smoothing: antialiased;\n\n -moz-osx-font-smoothing: grayscale;\n}\n\n@tailwind utilities;\n\n:host {\n\n --mds-input-icon-color: var(--variant-primary-03);\n --mds-input-variant-color: 0 0 0;\n}\n\n:host( :focus ) {\n\n --mds-input-variant-color: var(--variant-primary-04);\n}\n\n:host( [variant=\"info\"] ) {\n\n --mds-input-icon-color: var(--status-info-05);\n --mds-input-tip-background: var(--status-info-05);\n --mds-input-variant-color: 0 0 0;\n}\n\n:host( [variant=\"info\"]:focus ) {\n\n --mds-input-icon-color: var(--status-info-04);\n --mds-input-variant-color: var(--status-info-05);\n}\n\n:host( [variant=\"success\"] ) {\n\n --mds-input-icon-color: var(--status-success-05);\n --mds-input-tip-background: var(--status-success-05);\n --mds-input-variant-color: 0 0 0;\n}\n\n:host( [variant=\"success\"]:focus ) {\n\n --mds-input-icon-color: var(--status-success-04);\n --mds-input-variant-color: var(--status-success-05);\n}\n\n:host( [variant=\"warning\"] ) {\n\n --mds-input-icon-color: var(--status-warning-05);\n --mds-input-tip-background: var(--status-warning-05);\n --mds-input-variant-color: 0 0 0;\n}\n\n:host( [variant=\"warning\"]:focus ) {\n\n --mds-input-icon-color: var(--status-warning-04);\n --mds-input-variant-color: var(--status-warning-05);\n}\n\n:host( [variant=\"error\"] ) {\n\n --mds-input-icon-color: var(--status-error-05);\n --mds-input-tip-background: var(--status-error-05);\n --mds-input-variant-color: 0 0 0;\n}\n\n:host( [variant=\"error\"]:focus ) {\n\n --mds-input-icon-color: var(--status-error-04);\n --mds-input-variant-color: var(--status-error-05);\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n .input {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n .input {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-input-ring: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-input-ring: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-input-ring: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);\n }\n\n .input::-moz-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input::-webkit-input-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input:-ms-input-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input::-ms-input-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input::placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-input-ring: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);\n }\n\n .input::-moz-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input::-webkit-input-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input:-ms-input-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input::-ms-input-placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n\n .input::placeholder {\n color: rgb(var(--tone-neutral-03));\n }\n }\n}\n\n\n\n@container (max-width: 210px) {\n :host .tip__content,\n :host(:focus-within) .tip__content {\n grid-template-columns: 0fr;\n opacity: 0;\n }\n\n :host .tip {\n padding-left: 0;\n padding-right: 0;\n }\n\n :host {\n\n --mds-input-background: rgb(var(--variant-primary-07));\n }\n}\n";
|
|
43
65
|
const MdsInputStyle0 = mdsInputCss;
|
|
44
66
|
|
|
45
67
|
const MdsInput = /*@__PURE__*/ proxyCustomElement(class MdsInput extends HTMLElement {
|
|
@@ -53,7 +75,9 @@ const MdsInput = /*@__PURE__*/ proxyCustomElement(class MdsInput extends HTMLEle
|
|
|
53
75
|
this.focusEvent = createEvent(this, "mdsInputFocus", 7);
|
|
54
76
|
this.internals = this.attachInternals();
|
|
55
77
|
this.t = new Locale({
|
|
78
|
+
el: localeEl,
|
|
56
79
|
en: localeEn,
|
|
80
|
+
es: localeEs,
|
|
57
81
|
it: localeIt,
|
|
58
82
|
});
|
|
59
83
|
this.onInput = (ev) => {
|
|
@@ -121,6 +145,10 @@ const MdsInput = /*@__PURE__*/ proxyCustomElement(class MdsInput extends HTMLEle
|
|
|
121
145
|
this.typography = 'detail';
|
|
122
146
|
this.value = '';
|
|
123
147
|
}
|
|
148
|
+
async updateLang() {
|
|
149
|
+
this.language = this.t.lang(this.el);
|
|
150
|
+
this.t.update();
|
|
151
|
+
}
|
|
124
152
|
componentWillLoad() {
|
|
125
153
|
var _a;
|
|
126
154
|
this.language = this.t.lang(this.el);
|
|
@@ -164,20 +192,20 @@ const MdsInput = /*@__PURE__*/ proxyCustomElement(class MdsInput extends HTMLEle
|
|
|
164
192
|
}
|
|
165
193
|
render() {
|
|
166
194
|
var _a, _b;
|
|
167
|
-
return (h(Host, { key: '
|
|
195
|
+
return (h(Host, { key: 'ca5bca3d38a637ff63798e17a43e94c700d5e147' }, this.type === 'number'
|
|
168
196
|
&& this.controlsLayout === 'horizontal'
|
|
169
|
-
&& h("mds-button", { key: '
|
|
197
|
+
&& h("mds-button", { key: 'ff7112d587a18d16647bc3b5dfc6dc77ebcc2477', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineKeyboardArrowDown : miBaselineRemove, onClick: this.stepDown, role: "button", tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" }), this.type === 'textarea'
|
|
170
198
|
? h("textarea", { class: clsx('input', ((_a = this.icon) !== null && _a !== void 0 ? _a : this.await) && 'has-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 })
|
|
171
199
|
: h("input", { class: clsx('input', ((_b = this.icon) !== null && _b !== void 0 ? _b : this.await) && 'has-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.datalist && 'datalist', 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'
|
|
172
200
|
&& this.controlsLayout === 'vertical'
|
|
173
|
-
&& h("div", { key: '
|
|
201
|
+
&& h("div", { key: '44238b57fbed08da81f30dc8048089d94d2e7b4c', class: "counter counter--vertical" }, h("mds-button", { key: '24c0ce6b95dd8dce3c33805bb861b239c595a58d', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineKeyboardArrowUp : miBaselineAdd, onClick: this.stepUp, role: "button", tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), h("mds-button", { key: 'd420b63e53fe0dad6a326959855ff0f62c627885', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineKeyboardArrowDown : miBaselineRemove, onClick: this.stepDown, role: "button", tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" })), this.type === 'number'
|
|
174
202
|
&& this.controlsLayout === 'horizontal'
|
|
175
|
-
&& h("mds-button", { key: '
|
|
176
|
-
&& h("mds-button", { key: '
|
|
177
|
-
h("mds-input-tip-item", { key: '
|
|
178
|
-
h("datalist", { key: '
|
|
203
|
+
&& h("mds-button", { key: 'bd8380c85f04115019a8b0202dc4e7aa30d3c9ad', class: "counter-button counter-button--horizontal counter-button--increase", icon: this.controlsIcon === 'arrow' ? miBaselineKeyboardArrowUp : miBaselineAdd, onClick: this.stepUp, role: "button", tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), this.type === 'password'
|
|
204
|
+
&& h("mds-button", { key: '6539cdfc36d63d28d319c79927545f8272179537', class: "password-toggle-button", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, onClick: () => this.isPasswordVisible = !this.isPasswordVisible, role: "button", tabindex: "0", tone: "quiet", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" }), h("mds-input-tip", { key: '8a0f5f05980067693a4335cd2f6355f6ddde09f3', lang: this.language, position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: 'f51f29717e92e822e3a1cd557619d6acec5c2fe1', expanded: true, variant: "disabled" }), this.readonly && h("mds-input-tip-item", { key: 'aa32b7d8d683a4785d17dcd0d4966357a9a21738', expanded: true, variant: "readonly" }), this.required &&
|
|
205
|
+
h("mds-input-tip-item", { key: '13c92ab5bca38508d5395119f1f1cdcb303bc183', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' })), h("mds-input-tip", { key: 'e907daf8c28d9e3db05202e60501da285ab7d9d2', lang: this.language, position: "bottom", active: this.hasFocus }, this.tip && h("mds-input-tip-item", { key: 'e4a8343e924a4813ac0bd483961b131d2b417132', expanded: true, variant: "text" }, this.tip)), this.datalist &&
|
|
206
|
+
h("datalist", { key: 'a61d4222f111e589b34d0c5d11bcd45f32d1a8c5', id: "datalist", class: "datalist" }, this.datalist.forEach(element => {
|
|
179
207
|
h("option", { value: element });
|
|
180
|
-
})), this.icon && !this.await && h("mds-icon", { key: '
|
|
208
|
+
})), this.icon && !this.await && h("mds-icon", { key: 'ef47a0689013b6bd6e8b4c104b3c7895d56c6679', class: clsx('icon', this.variant), name: this.icon }), h("mds-spinner", { key: '3383f336ce1ae44b0d8ca5536ed251a0398d97d9', running: this.await, class: clsx('await', this.variant) })));
|
|
181
209
|
}
|
|
182
210
|
static get formAssociated() { return true; }
|
|
183
211
|
get el() { return this; }
|
|
@@ -214,6 +242,7 @@ const MdsInput = /*@__PURE__*/ proxyCustomElement(class MdsInput extends HTMLEle
|
|
|
214
242
|
"hasFocus": [32],
|
|
215
243
|
"language": [32],
|
|
216
244
|
"isPasswordVisible": [32],
|
|
245
|
+
"updateLang": [64],
|
|
217
246
|
"setFocus": [64],
|
|
218
247
|
"getInputElement": [64]
|
|
219
248
|
}, undefined, {
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
2
|
import { d as defineCustomElement$3 } from './mds-icon2.js';
|
|
3
3
|
import { d as defineCustomElement$2 } from './mds-text2.js';
|
|
4
4
|
|
|
5
|
-
const mdsKpiItemCss = "@tailwind utilities;\n\n/**\n * @prop --mds-kpi-item-icon-color: Set the fill color of the icon element\n * @prop --mds-kpi-item-info-background: Set the `background-color` of the text area element\n * @prop --mds-kpi-item-text-animation-placeholder-char: Sets the animation placeholder char of the text\n * @prop --mds-kpi-item-text-animation-speed: Sets the animation speed of the text\n */\n\n:host {\n\n --mds-kpi-item-icon-color: rgb(var(--
|
|
5
|
+
const mdsKpiItemCss = "@tailwind utilities;\n\n/**\n * @prop --mds-kpi-item-icon-color: Set the fill color of the icon element\n * @prop --mds-kpi-item-info-background: Set the `background-color` of the text area element\n * @prop --mds-kpi-item-text-animation-placeholder-char: Sets the animation placeholder char of the text\n * @prop --mds-kpi-item-text-animation-speed: Sets the animation speed of the text\n */\n\n:host {\n\n --mds-kpi-item-icon-color: rgb(var(--variant-primary-04));\n --mds-kpi-item-info-background: rgb(var(--tone-neutral));\n --mds-kpi-item-text-animation-placeholder-char: var(--mds-kpi-text-animation-placeholder-char, \" \");\n --mds-kpi-item-text-animation-speed: var(--mds-kpi-text-animation-speed, 0.15);\n gap: 0rem;\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n aspect-ratio: 1;\n background-color: rgb(var(--variant-primary-10));\n border-radius: 1rem;\n -webkit-box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n overflow: hidden;\n padding: 1rem;\n -webkit-transition-property: background-color, -webkit-box-shadow;\n transition-property: background-color, -webkit-box-shadow;\n transition-property: background-color, box-shadow;\n transition-property: background-color, box-shadow, -webkit-box-shadow;\n}\n\n.icon-container{\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n -ms-flex-align: center;\n\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-positive: 1;\n flex-grow: 1;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n}\n\n.icon{\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n fill: var(--mds-kpi-item-icon-color);\n -webkit-transition-property: fill;\n transition-property: fill;\n width: 40%;\n}\n\n.info{\n\n gap: 0rem;\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n background-color: var(--mds-kpi-item-info-background);\n border-radius: 0.5rem;\n -webkit-box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n display: grid;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n -ms-flex-pack: center;\n justify-content: center;\n padding: 1rem;\n text-align: center;\n -webkit-transition-property: background-color, border-radius, -webkit-box-shadow;\n transition-property: background-color, border-radius, -webkit-box-shadow;\n transition-property: background-color, border-radius, box-shadow;\n transition-property: background-color, border-radius, box-shadow, -webkit-box-shadow;\n}\n\n.label,\n.description{\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n --mds-text-animation-speed: var(--mds-kpi-item-text-animation-speed);\n --mds-text-animation-placeholder-char: var(--mds-kpi-item-text-animation-placeholder-char);\n\n -webkit-transition-property: fill;\n\n transition-property: fill;\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .description,\n .icon,\n .icon-container,\n .info,\n .label {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .description,\n .icon,\n .icon-container,\n .info,\n .label {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-kpi-item-info-background: rgb(var(--tone-neutral));\n\n -webkit-box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1), 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n\n box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1), 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n color: rgb(var(--tone-neutral-01));\n }\n\n .info {\n -webkit-box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-kpi-item-info-background: rgb(var(--tone-neutral));\n\n -webkit-box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1), 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n\n box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1), 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n color: rgb(var(--tone-neutral-01));\n }\n\n .info {\n -webkit-box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-kpi-item-info-background: rgb(var(--tone-neutral-09));\n\n background-color: rgb(var(--variant-primary-09));\n -webkit-box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-kpi-item-info-background: rgb(var(--tone-neutral-09));\n\n background-color: rgb(var(--variant-primary-09));\n -webkit-box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n\n@container style(--magma-pref-theme: dark) and style(--magma-pref-contrast: more) {\n :host {\n\n --mds-kpi-item-info-background: rgb(var(--tone-neutral));\n\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n}\n\n@container style(--magma-pref-theme: dark) and style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-kpi-item-info-background: rgb(var(--tone-neutral));\n\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n@container style(--magma-pref-theme: system) and style(--magma-pref-contrast: system) {\n\n @media (prefers-color-scheme: dark) and (prefers-contrast: more) {\n :host {\n\n --mds-kpi-item-info-background: rgb(var(--tone-neutral));\n\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n@container style(--magma-pref-theme: system) and style(--magma-pref-contrast: more) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-kpi-item-info-background: rgb(var(--tone-neutral));\n\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n\n\n";
|
|
6
6
|
const MdsKpiItemStyle0 = mdsKpiItemCss;
|
|
7
7
|
|
|
8
8
|
const MdsKpiItem$1 = /*@__PURE__*/ proxyCustomElement(class MdsKpiItem extends HTMLElement {
|
|
@@ -11,6 +11,8 @@ const MdsKpiItem$1 = /*@__PURE__*/ proxyCustomElement(class MdsKpiItem extends H
|
|
|
11
11
|
this.__registerHost();
|
|
12
12
|
this.__attachShadow();
|
|
13
13
|
this.setObserver = () => {
|
|
14
|
+
if (typeof window === 'undefined')
|
|
15
|
+
return;
|
|
14
16
|
this.observer = new window.IntersectionObserver(([entry]) => {
|
|
15
17
|
this.isIntersecting = entry.isIntersecting;
|
|
16
18
|
}, {
|
|
@@ -31,8 +33,8 @@ const MdsKpiItem$1 = /*@__PURE__*/ proxyCustomElement(class MdsKpiItem extends H
|
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
35
|
-
h("div", { key: '
|
|
36
|
+
return (h(Host, { key: '18d4a5a877ecded781040a3f6de264e47bc3fd4f', "aria-label": `${this.label}: ${this.description}`, role: "listitem" }, this.icon &&
|
|
37
|
+
h("div", { key: '73be825f8674587b7f9f2ad48e5b4ea250f1c7b5', class: "icon-container", part: "icon-container" }, h("mds-icon", { key: 'bc1fb262cb6bffd4c63fed97d655260f91b8b61e', class: "icon", name: this.icon, part: "icon" })), h("div", { key: '6567b14fa5a69948b5099d1a1e9a37d3cba62eb4', class: "info", part: "content", "aria-hidden": "true" }, this.label && this.threshold !== 0 && h("mds-text", { key: '92e58e88536a3324040fa794736df4ce31885747', class: "value", typography: "h2", text: this.isIntersecting ? this.label : '', animation: "yugop" }), this.label && this.threshold === 0 && h("mds-text", { key: 'ae2410bad8c18ef768ce932ad3787597c0a3ccf0', class: "value", typography: "h2" }, this.label), this.description && this.threshold !== 0 && h("mds-text", { key: 'd2c315edd53a1de077bec3da3d72f5ed37e42d8c', class: "description", typography: "label", text: this.isIntersecting ? this.description : '', animation: "yugop" }), this.description && this.threshold === 0 && h("mds-text", { key: 'a4f762c2e05ce728312cc5e140bd537ddeec155d', class: "description", typography: "label" }, this.description))));
|
|
36
38
|
}
|
|
37
39
|
get hostElement() { return this; }
|
|
38
40
|
static get style() { return MdsKpiItemStyle0; }
|
|
@@ -10,7 +10,7 @@ const MdsKpi$1 = /*@__PURE__*/ proxyCustomElement(class MdsKpi extends HTMLEleme
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '708ae136da63b0837b6b5244bd5914511c827914', role: "list" }, h("slot", { key: 'ab2517e35afd60e26f91823079372201a606f3c3' })));
|
|
14
14
|
}
|
|
15
15
|
static get style() { return MdsKpiStyle0; }
|
|
16
16
|
}, [1, "mds-kpi"]);
|