@maggioli-design-system/magma 1.0.0-beta → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -226
- package/dist/cjs/{_commonjsHelpers-0192c5b3.js → _commonjsHelpers-e6ff1d6e.js} +0 -5
- package/dist/cjs/{aria-8237fdab.js → aria-0b8ae8a3.js} +18 -2
- package/dist/cjs/file-extensions-cd2fa955.js +126 -0
- package/dist/cjs/{floating-ui.dom.esm-58e05c82.js → floating-ui.dom.esm-4d912aff.js} +484 -40
- package/dist/cjs/{index-9808fc83.js → index-eccfa195.js} +24 -297
- package/dist/cjs/{keyboard-manager-fa9d665b.js → keyboard-manager-952eef32.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/locale-9add6645.js +845 -0
- package/dist/cjs/locale.it-e5e117c5.js +466 -0
- package/dist/cjs/magma-components.cjs.js +3 -3
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +17 -13
- package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/mds-author.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +3 -3
- package/dist/cjs/mds-badge.cjs.entry.js +2 -2
- package/dist/cjs/mds-banner.cjs.entry.js +24 -8
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +39 -4
- package/dist/cjs/mds-button_3.cjs.entry.js +53 -20
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +1 -1
- package/dist/cjs/mds-chip.cjs.entry.js +83 -28
- package/dist/cjs/mds-details.cjs.entry.js +3 -3
- package/dist/cjs/{mds-dropdown_2.cjs.entry.js → mds-dropdown.cjs.entry.js} +12 -890
- package/dist/cjs/mds-entity.cjs.entry.js +5 -5
- package/dist/cjs/mds-file-preview.cjs.entry.js +44 -11
- package/dist/cjs/mds-file.cjs.entry.js +44 -13
- package/dist/cjs/mds-filter-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-filter.cjs.entry.js +2 -2
- package/dist/cjs/mds-header-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-header.cjs.entry.js +5 -3
- package/dist/cjs/mds-help.cjs.entry.js +4 -4
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/mds-hr.cjs.entry.js +1 -1
- package/dist/cjs/mds-img.cjs.entry.js +23 -7
- package/dist/cjs/mds-input-field.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-range.cjs.entry.js +6 -5
- package/dist/cjs/mds-input-select.cjs.entry.js +8 -8
- package/dist/cjs/mds-input-switch.cjs.entry.js +9 -8
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +36 -12
- package/dist/cjs/mds-input-upload.cjs.entry.js +159 -31
- package/dist/cjs/mds-input.cjs.entry.js +44 -16
- package/dist/cjs/mds-kpi-item.cjs.entry.js +6 -4
- package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
- package/dist/cjs/mds-label.cjs.entry.js +33 -5
- package/dist/cjs/mds-list-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-list.cjs.entry.js +2 -2
- package/dist/cjs/mds-modal.cjs.entry.js +6 -4
- package/dist/cjs/mds-note.cjs.entry.js +38 -3
- package/dist/cjs/mds-notification.cjs.entry.js +4 -3
- package/dist/cjs/mds-paginator-item.cjs.entry.js +5 -5
- package/dist/cjs/mds-paginator.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-animation.cjs.entry.js +9 -7
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +9 -7
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +9 -7
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +11 -4
- package/dist/cjs/mds-pref-language.cjs.entry.js +855 -12
- package/dist/cjs/mds-pref-theme.cjs.entry.js +14 -8
- package/dist/cjs/mds-pref.cjs.entry.js +8 -4
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-progress.cjs.entry.js +10 -4
- package/dist/cjs/mds-push-notification.cjs.entry.js +87 -19
- package/dist/cjs/mds-push-notifications.cjs.entry.js +1 -1
- package/dist/cjs/mds-quote.cjs.entry.js +3 -2
- package/dist/cjs/mds-separator.cjs.entry.js +2 -2
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +8 -8
- package/dist/cjs/mds-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-row.cjs.entry.js +16 -3
- package/dist/cjs/mds-table.cjs.entry.js +18 -3
- package/dist/cjs/mds-text.cjs.entry.js +4 -2
- package/dist/cjs/mds-toast.cjs.entry.js +8 -4
- package/dist/cjs/mds-tooltip.cjs.entry.js +10 -11
- package/dist/cjs/mds-url-view.cjs.entry.js +55 -4
- package/dist/cjs/mds-usage.cjs.entry.js +3 -13
- package/dist/cjs/mds-video-wall.cjs.entry.js +5 -5
- package/dist/cjs/mds-zero.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -3
- package/dist/collection/common/aria.js +17 -1
- package/dist/collection/common/device.js +6 -0
- package/dist/collection/common/keyboard-manager.js +2 -2
- package/dist/collection/common/locale.js +17 -5
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +16 -12
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
- package/dist/collection/components/mds-avatar/mds-avatar.css +6 -6
- package/dist/collection/components/mds-badge/mds-badge.css +70 -72
- package/dist/collection/components/mds-banner/mds-banner.css +5 -5
- package/dist/collection/components/mds-banner/mds-banner.js +36 -2
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +46 -2
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +3 -0
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +1 -1
- package/dist/collection/components/mds-button/mds-button.css +147 -133
- package/dist/collection/components/mds-button/mds-button.js +4 -2
- package/dist/collection/components/mds-chip/mds-chip.css +231 -33
- package/dist/collection/components/mds-chip/mds-chip.js +167 -48
- package/dist/collection/components/mds-chip/test/mds-chip.stories.js +27 -8
- package/dist/collection/components/mds-details/mds-details.css +4 -3
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +9 -7
- package/dist/collection/components/mds-entity/mds-entity.js +4 -4
- package/dist/collection/components/mds-entity/test/mds-entity.stories.js +3 -3
- package/dist/collection/components/mds-file/mds-file.js +45 -22
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +126 -82
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +49 -3
- package/dist/collection/components/mds-filter/mds-filter.js +1 -1
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +1 -1
- package/dist/collection/components/mds-header/mds-header.js +4 -2
- package/dist/collection/components/mds-help/mds-help.css +4 -9
- package/dist/collection/components/mds-help/mds-help.js +2 -1
- package/dist/collection/components/mds-icon/mds-icon.js +2 -4
- package/dist/collection/components/mds-icon/services/icons-set.service.js +42 -9
- package/dist/collection/components/mds-icon/test/mds-icon.stories.js +15 -0
- package/dist/collection/components/mds-img/mds-img.css +3 -3
- package/dist/collection/components/mds-img/mds-img.js +32 -2
- package/dist/collection/components/mds-input/mds-input.css +4 -4
- package/dist/collection/components/mds-input/mds-input.js +40 -15
- package/dist/collection/components/mds-input/test/mds-input.stories.js +16 -7
- package/dist/collection/components/mds-input-field/mds-input-field.js +9 -9
- package/dist/collection/components/mds-input-range/mds-input-range.css +6 -6
- package/dist/collection/components/mds-input-range/mds-input-range.js +4 -3
- package/dist/collection/components/mds-input-range/test/mds-input-range.stories.js +4 -4
- package/dist/collection/components/mds-input-select/mds-input-select.css +12 -12
- package/dist/collection/components/mds-input-select/mds-input-select.js +11 -11
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +2 -2
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +6 -5
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +41 -7
- package/dist/collection/components/mds-input-upload/mds-input-upload.css +1 -1
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +41 -7
- package/dist/collection/components/mds-kpi/mds-kpi.js +1 -1
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +4 -4
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +5 -3
- package/dist/collection/components/mds-label/mds-label.css +2 -9
- package/dist/collection/components/mds-label/mds-label.js +44 -2
- package/dist/collection/components/mds-list/mds-list.js +1 -1
- package/dist/collection/components/mds-list-item/mds-list-item.js +1 -1
- package/dist/collection/components/mds-modal/mds-modal.js +5 -3
- package/dist/collection/components/mds-modal/test/mds-modal.stories.js +8 -4
- package/dist/collection/components/mds-note/mds-note.js +45 -1
- package/dist/collection/components/mds-notification/mds-notification.js +2 -1
- package/dist/collection/components/mds-paginator/mds-paginator.js +2 -2
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +3 -3
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +2 -2
- package/dist/collection/components/mds-pref/mds-pref.js +28 -2
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +32 -4
- package/dist/collection/components/mds-pref-animation/meta/dictionary.js +2 -2
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +32 -4
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +32 -4
- package/dist/collection/components/mds-pref-language/mds-pref-language.css +20 -2
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +47 -19
- package/dist/collection/components/mds-pref-language/meta/dictionary.js +2 -0
- package/dist/collection/components/mds-pref-language/test/mds-pref-language.stories.js +1 -1
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +38 -11
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +37 -5
- package/dist/collection/components/mds-price-table/test/mds-price-table.stories.js +1 -1
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +2 -0
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +4 -4
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +2 -2
- package/dist/collection/components/mds-progress/mds-progress.css +16 -16
- package/dist/collection/components/mds-progress/mds-progress.js +8 -2
- package/dist/collection/components/mds-progress/test/mds-progress.stories.js +1 -1
- package/dist/collection/components/mds-push-notification/mds-push-notification.css +6 -6
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +36 -2
- package/dist/collection/components/mds-quote/mds-quote.js +26 -1
- package/dist/collection/components/mds-quote/test/mds-quote.stories.js +11 -0
- package/dist/collection/components/mds-spinner/mds-spinner.css +3 -3
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +1 -1
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
- package/dist/collection/components/mds-tab/mds-tab.css +1 -1
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +8 -8
- package/dist/collection/components/mds-table/mds-table.css +3 -3
- package/dist/collection/components/mds-table/mds-table.js +16 -1
- package/dist/collection/components/mds-table/test/mds-table.stories.js +5 -0
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.css +2 -6
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +7 -7
- package/dist/collection/components/mds-table-row/mds-table-row.css +59 -0
- package/dist/collection/components/mds-table-row/mds-table-row.js +26 -1
- package/dist/collection/components/mds-text/mds-text.js +6 -4
- package/dist/collection/components/mds-text/test/mds-text.stories.js +1 -1
- package/dist/collection/components/mds-toast/mds-toast.js +7 -3
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +8 -9
- package/dist/collection/components/mds-url-view/mds-url-view.js +45 -1
- package/dist/collection/components/mds-usage/mds-usage.css +14 -14
- package/dist/collection/components/mds-usage/mds-usage.js +1 -11
- package/dist/collection/components/mds-video-wall/mds-video-wall.css +19 -3
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +3 -3
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/collection/dictionary/file-extensions.js +114 -56
- package/dist/collection/dictionary/text.js +60 -1
- package/dist/collection/dictionary/variant.js +10 -1
- package/dist/components/aria.js +17 -2
- package/dist/components/floating-ui.dom.esm.js +484 -40
- package/dist/components/keyboard-manager.js +2 -2
- package/dist/components/locale.it.js +578 -0
- package/dist/components/locale.js +668 -4615
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +16 -12
- package/dist/components/mds-avatar2.js +2 -2
- package/dist/components/mds-badge2.js +1 -1
- package/dist/components/mds-banner.js +23 -5
- package/dist/components/mds-breadcrumb-item.js +2 -2
- package/dist/components/mds-breadcrumb.js +39 -3
- package/dist/components/mds-button2.js +5 -3
- package/dist/components/mds-chip.js +91 -29
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown2.js +9 -7
- package/dist/components/mds-entity.js +4 -4
- package/dist/components/mds-file-preview2.js +40 -6
- package/dist/components/mds-file.js +39 -8
- package/dist/components/mds-filter-item2.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header.js +4 -2
- package/dist/components/mds-help.js +5 -4
- package/dist/components/mds-icon2.js +44 -13
- package/dist/components/mds-img2.js +22 -4
- package/dist/components/mds-input-field.js +2 -2
- package/dist/components/mds-input-range.js +5 -4
- package/dist/components/mds-input-select.js +7 -7
- package/dist/components/mds-input-switch.js +7 -6
- package/dist/components/mds-input-tip-item2.js +36 -10
- package/dist/components/mds-input-upload.js +158 -28
- package/dist/components/mds-input2.js +42 -13
- package/dist/components/mds-kpi-item.js +5 -3
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +33 -4
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-modal2.js +5 -3
- package/dist/components/mds-note.js +38 -2
- package/dist/components/mds-notification.js +2 -1
- package/dist/components/mds-paginator-item2.js +3 -3
- package/dist/components/mds-paginator.js +2 -2
- package/dist/components/mds-pref-animation.js +9 -5
- package/dist/components/mds-pref-consumption.js +9 -5
- package/dist/components/mds-pref-contrast.js +9 -5
- package/dist/components/mds-pref-language-item.js +11 -2
- package/dist/components/mds-pref-language.js +863 -23
- package/dist/components/mds-pref-theme.js +14 -6
- package/dist/components/mds-pref.js +8 -2
- package/dist/components/mds-price-table-list.js +3 -3
- package/dist/components/mds-progress2.js +9 -3
- package/dist/components/mds-push-notification.js +89 -20
- package/dist/components/mds-quote.js +4 -2
- package/dist/components/mds-spinner2.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +2 -2
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab2.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-header-cell.js +7 -7
- package/dist/components/mds-table-row.js +17 -3
- package/dist/components/mds-table.js +17 -2
- package/dist/components/mds-text2.js +3 -1
- package/dist/components/mds-toast.js +7 -3
- package/dist/components/mds-tooltip2.js +8 -9
- package/dist/components/mds-url-view.js +54 -2
- package/dist/components/mds-usage.js +2 -12
- package/dist/components/mds-video-wall.js +4 -4
- package/dist/components/mds-zero.js +1 -1
- package/dist/documentation.json +929 -484
- package/dist/{components/_commonjsHelpers.js → esm/_commonjsHelpers-bdec4bbd.js} +1 -5
- package/dist/esm/{aria-0e390d9c.js → aria-ed9d415d.js} +17 -2
- package/dist/esm/file-extensions-97006435.js +123 -0
- package/dist/esm/{floating-ui.dom.esm-f7b7f919.js → floating-ui.dom.esm-b6d2205c.js} +484 -40
- package/dist/esm/{index-f08bac5f.js → index-44fd80a1.js} +24 -297
- package/dist/esm/{keyboard-manager-f3d273fc.js → keyboard-manager-9f287ab7.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/locale-149207d6.js +843 -0
- package/dist/esm/locale.it-94429e24.js +457 -0
- package/dist/esm/magma-components.js +4 -4
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +2 -2
- package/dist/esm/mds-accordion-timer.entry.js +17 -13
- package/dist/esm/mds-accordion.entry.js +1 -1
- package/dist/esm/mds-author.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +3 -3
- package/dist/esm/mds-badge.entry.js +2 -2
- package/dist/esm/mds-banner.entry.js +24 -8
- package/dist/esm/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm/mds-bibliography.entry.js +1 -1
- package/dist/esm/mds-breadcrumb-item.entry.js +4 -4
- package/dist/esm/mds-breadcrumb.entry.js +39 -4
- package/dist/esm/mds-button_3.entry.js +53 -20
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +1 -1
- package/dist/esm/mds-chip.entry.js +83 -28
- package/dist/esm/mds-details.entry.js +3 -3
- package/dist/esm/{mds-dropdown_2.entry.js → mds-dropdown.entry.js} +13 -890
- package/dist/esm/mds-entity.entry.js +5 -5
- package/dist/esm/mds-file-preview.entry.js +40 -7
- package/dist/esm/mds-file.entry.js +39 -8
- package/dist/esm/mds-filter-item.entry.js +3 -3
- package/dist/esm/mds-filter.entry.js +2 -2
- package/dist/esm/mds-header-bar.entry.js +1 -1
- package/dist/esm/mds-header.entry.js +5 -3
- package/dist/esm/mds-help.entry.js +4 -4
- package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm/mds-hr.entry.js +1 -1
- package/dist/esm/mds-img.entry.js +23 -7
- package/dist/esm/mds-input-field.entry.js +3 -3
- package/dist/esm/mds-input-range.entry.js +6 -5
- package/dist/esm/mds-input-select.entry.js +8 -8
- package/dist/esm/mds-input-switch.entry.js +9 -8
- package/dist/esm/mds-input-tip_2.entry.js +36 -12
- package/dist/esm/mds-input-upload.entry.js +159 -31
- package/dist/esm/mds-input.entry.js +44 -16
- package/dist/esm/mds-kpi-item.entry.js +6 -4
- package/dist/esm/mds-kpi.entry.js +2 -2
- package/dist/esm/mds-label.entry.js +33 -5
- package/dist/esm/mds-list-item.entry.js +2 -2
- package/dist/esm/mds-list.entry.js +2 -2
- package/dist/esm/mds-modal.entry.js +6 -4
- package/dist/esm/mds-note.entry.js +38 -3
- package/dist/esm/mds-notification.entry.js +4 -3
- package/dist/esm/mds-paginator-item.entry.js +5 -5
- package/dist/esm/mds-paginator.entry.js +3 -3
- package/dist/esm/mds-pref-animation.entry.js +9 -7
- package/dist/esm/mds-pref-consumption.entry.js +9 -7
- package/dist/esm/mds-pref-contrast.entry.js +9 -7
- package/dist/esm/mds-pref-language-item.entry.js +11 -4
- package/dist/esm/mds-pref-language.entry.js +855 -12
- package/dist/esm/mds-pref-theme.entry.js +14 -8
- package/dist/esm/mds-pref.entry.js +8 -4
- package/dist/esm/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm/mds-price-table-features.entry.js +1 -1
- package/dist/esm/mds-price-table-header.entry.js +1 -1
- package/dist/esm/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm/mds-price-table-list.entry.js +4 -4
- package/dist/esm/mds-price-table.entry.js +1 -1
- package/dist/esm/mds-progress.entry.js +10 -4
- package/dist/esm/mds-push-notification.entry.js +87 -19
- package/dist/esm/mds-push-notifications.entry.js +1 -1
- package/dist/esm/mds-quote.entry.js +3 -2
- package/dist/esm/mds-separator.entry.js +2 -2
- package/dist/esm/mds-stepper-bar-item.entry.js +3 -3
- package/dist/esm/mds-stepper-bar.entry.js +1 -1
- package/dist/esm/mds-tab-bar-item.entry.js +2 -2
- package/dist/esm/mds-tab-bar.entry.js +1 -1
- package/dist/esm/mds-tab_2.entry.js +2 -2
- package/dist/esm/mds-table-body.entry.js +1 -1
- package/dist/esm/mds-table-cell.entry.js +2 -2
- package/dist/esm/mds-table-footer.entry.js +1 -1
- package/dist/esm/mds-table-header-cell.entry.js +8 -8
- package/dist/esm/mds-table-header.entry.js +1 -1
- package/dist/esm/mds-table-row.entry.js +16 -3
- package/dist/esm/mds-table.entry.js +18 -3
- package/dist/esm/mds-text.entry.js +4 -2
- package/dist/esm/mds-toast.entry.js +8 -4
- package/dist/esm/mds-tooltip.entry.js +10 -11
- package/dist/esm/mds-url-view.entry.js +54 -3
- package/dist/esm/mds-usage.entry.js +3 -13
- package/dist/esm/mds-video-wall.entry.js +5 -5
- package/dist/esm/mds-zero.entry.js +2 -2
- package/dist/esm-es5/_commonjsHelpers-bdec4bbd.js +1 -0
- package/dist/esm-es5/aria-ed9d415d.js +1 -0
- package/dist/esm-es5/file-extensions-97006435.js +1 -0
- package/dist/esm-es5/floating-ui.dom.esm-b6d2205c.js +1 -0
- package/dist/esm-es5/index-44fd80a1.js +1 -0
- package/dist/esm-es5/{keyboard-manager-f3d273fc.js → keyboard-manager-9f287ab7.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/locale-149207d6.js +6 -0
- package/dist/esm-es5/locale.it-94429e24.js +1 -0
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +1 -1
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +1 -1
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner.entry.js +1 -1
- package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm-es5/mds-bibliography.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +1 -1
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +1 -1
- package/dist/esm-es5/mds-chip.entry.js +1 -1
- package/dist/esm-es5/mds-details.entry.js +1 -1
- package/dist/esm-es5/mds-dropdown.entry.js +1 -0
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +2 -2
- package/dist/esm-es5/mds-file.entry.js +3 -3
- package/dist/esm-es5/mds-filter-item.entry.js +1 -1
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-header-bar.entry.js +1 -1
- package/dist/esm-es5/mds-header.entry.js +1 -1
- package/dist/esm-es5/mds-help.entry.js +1 -1
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +1 -1
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-select.entry.js +1 -1
- package/dist/esm-es5/mds-input-switch.entry.js +1 -1
- package/dist/esm-es5/mds-input-tip_2.entry.js +1 -1
- package/dist/esm-es5/mds-input-upload.entry.js +1 -1
- package/dist/esm-es5/mds-input.entry.js +1 -1
- package/dist/esm-es5/mds-kpi-item.entry.js +1 -1
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +1 -1
- package/dist/esm-es5/mds-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-note.entry.js +1 -1
- package/dist/esm-es5/mds-notification.entry.js +1 -1
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +1 -1
- package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
- package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
- package/dist/esm-es5/mds-pref-contrast.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language-item.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme.entry.js +1 -1
- package/dist/esm-es5/mds-pref.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress.entry.js +1 -1
- package/dist/esm-es5/mds-push-notification.entry.js +1 -1
- package/dist/esm-es5/mds-push-notifications.entry.js +1 -1
- package/dist/esm-es5/mds-quote.entry.js +1 -1
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab_2.entry.js +1 -1
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-cell.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +1 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
- package/dist/esm-es5/mds-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/esm-es5/mds-table.entry.js +1 -1
- package/dist/esm-es5/mds-text.entry.js +1 -1
- package/dist/esm-es5/mds-toast.entry.js +1 -1
- package/dist/esm-es5/mds-tooltip.entry.js +1 -1
- package/dist/esm-es5/mds-url-view.entry.js +1 -1
- package/dist/esm-es5/mds-usage.entry.js +1 -1
- package/dist/esm-es5/mds-video-wall.entry.js +1 -1
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/hydrate/index.d.ts +6 -0
- package/dist/hydrate/index.js +3705 -5972
- package/dist/hydrate/index.mjs +3705 -5972
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/magma-components.js +1 -1
- package/dist/magma-components/p-03c13bdf.system.entry.js +1 -0
- package/dist/magma-components/p-0492e275.entry.js +1 -0
- package/dist/magma-components/p-04c61fa1.system.entry.js +1 -0
- package/dist/magma-components/p-05bf15c7.entry.js +1 -0
- package/dist/magma-components/{p-5f0f0448.system.entry.js → p-07253a21.system.entry.js} +1 -1
- package/dist/magma-components/p-086c8147.entry.js +1 -0
- package/dist/magma-components/p-0b2a9068.entry.js +1 -0
- package/dist/magma-components/p-0b6b57fb.js +1 -0
- package/dist/magma-components/p-0b77bb1c.system.entry.js +1 -0
- package/dist/magma-components/p-0f3e17bc.js +1 -0
- package/dist/magma-components/{p-7d460c08.system.entry.js → p-0f6c6757.system.entry.js} +1 -1
- package/dist/magma-components/p-13c6c73b.entry.js +1 -0
- package/dist/magma-components/p-13ce8757.system.entry.js +1 -0
- package/dist/magma-components/p-1400e3c3.system.entry.js +1 -0
- package/dist/magma-components/p-1581b10e.system.entry.js +1 -0
- package/dist/magma-components/{p-8980cf86.system.entry.js → p-17d63927.system.entry.js} +1 -1
- package/dist/magma-components/{p-ae612034.system.entry.js → p-19114f13.system.entry.js} +1 -1
- package/dist/magma-components/{p-53f8a981.entry.js → p-19c55d3e.entry.js} +1 -1
- package/dist/magma-components/{p-5258907f.system.entry.js → p-1b436c7c.system.entry.js} +1 -1
- package/dist/magma-components/{p-2f7dd737.system.entry.js → p-1bb949c2.system.entry.js} +1 -1
- package/dist/magma-components/p-217aed60.system.entry.js +1 -0
- package/dist/magma-components/p-21b1acec.system.js +1 -0
- package/dist/magma-components/{p-f62b4856.entry.js → p-22954bd0.entry.js} +1 -1
- package/dist/magma-components/{p-67f8aea1.entry.js → p-23c0e5bb.entry.js} +1 -1
- package/dist/magma-components/p-247e25c9.entry.js +1 -0
- package/dist/magma-components/p-2547e1c5.entry.js +1 -0
- package/dist/magma-components/p-25602048.system.entry.js +1 -0
- package/dist/magma-components/{p-dbde7f2c.system.entry.js → p-27923d25.system.entry.js} +1 -1
- package/dist/magma-components/p-2a0bffc8.entry.js +1 -0
- package/dist/magma-components/p-2bedaf5f.system.entry.js +1 -0
- package/dist/magma-components/p-2d5135c7.entry.js +1 -0
- package/dist/magma-components/p-2d58b5b8.system.entry.js +1 -0
- package/dist/magma-components/{p-b4c84e8e.entry.js → p-2e3e7ae9.entry.js} +1 -1
- package/dist/magma-components/{p-12c9e7c1.system.entry.js → p-30326380.system.entry.js} +1 -1
- package/dist/magma-components/p-304b1738.entry.js +1 -0
- package/dist/magma-components/{p-c7267a25.system.entry.js → p-30671bb6.system.entry.js} +1 -1
- package/dist/magma-components/p-31ad7005.entry.js +1 -0
- package/dist/magma-components/p-3213bed3.js +1 -0
- package/dist/magma-components/{p-06bbdfbc.system.js → p-32f55263.system.js} +1 -1
- package/dist/magma-components/{p-3ebb87fd.system.entry.js → p-332ef4c5.system.entry.js} +1 -1
- package/dist/magma-components/p-340717b1.entry.js +1 -0
- package/dist/magma-components/{p-19ffbf29.system.entry.js → p-3545d28a.system.entry.js} +1 -1
- package/dist/magma-components/p-3759b1b2.system.js +6 -0
- package/dist/magma-components/{p-57e85f09.entry.js → p-3c4114a1.entry.js} +1 -1
- package/dist/magma-components/{p-e1ae3377.entry.js → p-3c7584e0.entry.js} +1 -1
- package/dist/magma-components/p-3d9b24ed.system.entry.js +1 -0
- package/dist/magma-components/p-3dcee09b.entry.js +1 -0
- package/dist/magma-components/p-413e1924.entry.js +8 -0
- package/dist/magma-components/{p-7ff9ee47.system.entry.js → p-41b0013f.system.entry.js} +1 -1
- package/dist/magma-components/p-42aaebea.entry.js +1 -0
- package/dist/magma-components/p-42c66e40.entry.js +1 -0
- package/dist/magma-components/{p-eba07611.system.entry.js → p-438c83a4.system.entry.js} +1 -1
- package/dist/magma-components/p-4509e5dd.entry.js +1 -0
- package/dist/magma-components/{p-8b576fd8.entry.js → p-46df472e.entry.js} +1 -1
- package/dist/magma-components/{p-12a6692f.entry.js → p-47044832.entry.js} +1 -1
- package/dist/magma-components/{p-1a2e5af9.entry.js → p-4a57c918.entry.js} +1 -1
- package/dist/magma-components/p-4d469a01.entry.js +1 -0
- package/dist/magma-components/{p-d41cdc56.entry.js → p-4e0c9d47.entry.js} +1 -1
- package/dist/magma-components/{p-d219007f.system.entry.js → p-4f52b15e.system.entry.js} +1 -1
- package/dist/magma-components/p-5100bf68.system.entry.js +1 -0
- package/dist/magma-components/p-55842900.entry.js +1 -0
- package/dist/magma-components/{p-8f8fd8f5.entry.js → p-5629c1f5.entry.js} +1 -1
- package/dist/magma-components/p-5818b17b.system.entry.js +1 -0
- package/dist/magma-components/p-5a2c6a26.system.entry.js +1 -0
- package/dist/magma-components/p-5af31a47.system.js +1 -0
- package/dist/magma-components/{p-0e54cbdd.entry.js → p-5d39c94f.entry.js} +1 -1
- package/dist/magma-components/{p-8c185de1.system.entry.js → p-5e063b6a.system.entry.js} +1 -1
- package/dist/magma-components/{p-32c2e662.system.entry.js → p-5fbe3d63.system.entry.js} +1 -1
- package/dist/magma-components/{p-eb1dcb87.system.entry.js → p-600f012f.system.entry.js} +1 -1
- package/dist/magma-components/{p-3013e2cb.entry.js → p-605913ba.entry.js} +1 -1
- package/dist/magma-components/p-60ab906d.entry.js +1 -0
- package/dist/magma-components/{p-945820db.system.entry.js → p-62ac240e.system.entry.js} +1 -1
- package/dist/magma-components/{p-00c6b918.system.entry.js → p-63e3f820.system.entry.js} +1 -1
- package/dist/magma-components/p-65ba0450.entry.js +1 -0
- package/dist/magma-components/p-6617f185.entry.js +1 -0
- package/dist/magma-components/p-665f05ca.system.entry.js +1 -0
- package/dist/magma-components/p-66ef6f68.system.entry.js +1 -0
- package/dist/magma-components/{p-d1f52b0b.system.js → p-6803cf8d.system.js} +1 -1
- package/dist/magma-components/p-694ac497.entry.js +1 -0
- package/dist/magma-components/p-6a2ec000.entry.js +1 -0
- package/dist/magma-components/p-6aed6b97.system.entry.js +1 -0
- package/dist/magma-components/p-6c4c3d44.system.entry.js +1 -0
- package/dist/magma-components/{p-f43e59d4.entry.js → p-6dc71639.entry.js} +1 -1
- package/dist/magma-components/{p-63e8bc17.system.entry.js → p-6f15b2d9.system.entry.js} +1 -1
- package/dist/magma-components/{p-7f235611.system.entry.js → p-71601583.system.entry.js} +1 -1
- package/dist/magma-components/p-759c9af3.entry.js +1 -0
- package/dist/magma-components/{p-b5f501d2.system.entry.js → p-782313bb.system.entry.js} +1 -1
- package/dist/magma-components/p-7a7220e5.entry.js +1 -0
- package/dist/magma-components/p-7ad5eeb3.system.entry.js +1 -0
- package/dist/magma-components/p-7affff90.system.entry.js +1 -0
- package/dist/magma-components/p-810ba60f.system.entry.js +1 -0
- package/dist/magma-components/{p-5ddef57f.entry.js → p-813176b0.entry.js} +1 -1
- package/dist/magma-components/p-84a3bc2b.system.entry.js +1 -0
- package/dist/magma-components/p-85aa8e05.js +1 -0
- package/dist/magma-components/p-85e7baee.entry.js +1 -0
- package/dist/magma-components/{p-20143ec9.entry.js → p-892e949c.entry.js} +1 -1
- package/dist/magma-components/p-893a87dc.system.entry.js +1 -0
- package/dist/magma-components/p-89f9e0d2.entry.js +1 -0
- package/dist/magma-components/{p-0349e303.system.entry.js → p-8fe9a0a2.system.entry.js} +1 -1
- package/dist/magma-components/p-917ba0e2.entry.js +1 -0
- package/dist/magma-components/p-94db8071.system.js +1 -0
- package/dist/magma-components/p-96afff9f.system.entry.js +1 -0
- package/dist/magma-components/p-96d07c9f.system.entry.js +1 -0
- package/dist/magma-components/p-96e60eca.system.entry.js +1 -0
- package/dist/magma-components/{p-c4b093c4.entry.js → p-9bd6657b.entry.js} +1 -1
- package/dist/magma-components/p-9bd9e612.system.entry.js +1 -0
- package/dist/magma-components/p-9c7039f0.entry.js +1 -0
- package/dist/magma-components/p-9d991391.entry.js +1 -0
- package/dist/magma-components/p-9df056cb.entry.js +1 -0
- package/dist/magma-components/p-a191a987.entry.js +1 -0
- package/dist/magma-components/{p-99678cdd.system.entry.js → p-a1f69741.system.entry.js} +1 -1
- package/dist/magma-components/{p-36c13a31.entry.js → p-a306ff28.entry.js} +1 -1
- package/dist/magma-components/p-a44d3db9.entry.js +1 -0
- package/dist/magma-components/p-a47aae12.entry.js +1 -0
- package/dist/magma-components/p-a4fc1b0b.entry.js +1 -0
- package/dist/magma-components/p-a557bad7.system.entry.js +1 -0
- package/dist/magma-components/p-a9432fee.system.entry.js +1 -0
- package/dist/magma-components/p-a9f8f986.system.entry.js +9 -0
- package/dist/magma-components/p-aa133f48.entry.js +1 -0
- package/dist/magma-components/p-aa24e213.system.entry.js +1 -0
- package/dist/magma-components/{p-e49f99c2.entry.js → p-aa8999ba.entry.js} +1 -1
- package/dist/magma-components/p-ac7403b5.system.js +1 -0
- package/dist/magma-components/{p-8321c0d3.entry.js → p-ac97dd43.entry.js} +1 -1
- package/dist/magma-components/p-ae0b6dcb.system.entry.js +1 -0
- package/dist/magma-components/{p-2a670d3c.system.entry.js → p-ae0c3e38.system.entry.js} +1 -1
- package/dist/magma-components/{p-8323a952.system.entry.js → p-aead7eab.system.entry.js} +1 -1
- package/dist/magma-components/p-b0868749.entry.js +1 -0
- package/dist/magma-components/p-b0bb702b.entry.js +1 -0
- package/dist/magma-components/p-b44f3e19.entry.js +1 -0
- package/dist/magma-components/{p-3d741487.entry.js → p-b458a7b7.entry.js} +1 -1
- package/dist/magma-components/p-b5551799.system.entry.js +1 -0
- package/dist/magma-components/p-b5a65fcd.system.js +1 -0
- package/dist/magma-components/p-b62d164b.system.entry.js +1 -0
- package/dist/magma-components/{p-efdb9fda.entry.js → p-b6cc1d20.entry.js} +1 -1
- package/dist/magma-components/p-b7889230.system.entry.js +1 -0
- package/dist/magma-components/{p-ec8975f3.entry.js → p-b8fcf897.entry.js} +1 -1
- package/dist/magma-components/{p-73ccc008.entry.js → p-bbe19d86.entry.js} +1 -1
- package/dist/magma-components/p-bd7c0f2b.entry.js +1 -0
- package/dist/magma-components/p-c0611d00.system.entry.js +1 -0
- package/dist/magma-components/{p-cd60481a.system.entry.js → p-c2291312.system.entry.js} +1 -1
- package/dist/magma-components/{p-0b471b37.system.entry.js → p-c2c1ca38.system.entry.js} +1 -1
- package/dist/magma-components/p-c310b41f.js +6 -0
- package/dist/magma-components/p-c3b57b65.entry.js +1 -0
- package/dist/magma-components/{p-f0bf8d7e.entry.js → p-c55796f6.entry.js} +1 -1
- package/dist/magma-components/p-c6616cf4.entry.js +1 -0
- package/dist/magma-components/p-c6f72257.entry.js +1 -0
- package/dist/magma-components/p-c7d97a3c.entry.js +1 -0
- package/dist/magma-components/p-c94628eb.system.js +2 -0
- package/dist/magma-components/p-d06b650f.entry.js +1 -0
- package/dist/magma-components/{p-bebaf8c9.system.entry.js → p-d239736c.system.entry.js} +1 -1
- package/dist/magma-components/p-d3f2a762.system.entry.js +1 -0
- package/dist/magma-components/p-d4a14ac6.entry.js +1 -0
- package/dist/magma-components/{p-adafaeb1.system.entry.js → p-d4ad6446.system.entry.js} +1 -1
- package/dist/magma-components/{p-5f3b296e.system.entry.js → p-d4f60172.system.entry.js} +1 -1
- package/dist/magma-components/p-d7fe5fb4.entry.js +1 -0
- package/dist/magma-components/p-dd0f6f83.entry.js +1 -0
- package/dist/magma-components/{p-0a4fcd1d.system.entry.js → p-dd7b49e7.system.entry.js} +1 -1
- package/dist/magma-components/p-ddb91a8e.system.entry.js +1 -0
- package/dist/magma-components/p-de21d32b.system.entry.js +1 -0
- package/dist/magma-components/p-dea5d36c.entry.js +1 -0
- package/dist/magma-components/{p-bf66db4f.entry.js → p-df55c1ea.entry.js} +1 -1
- package/dist/magma-components/{p-56132185.system.entry.js → p-e0288f0c.system.entry.js} +1 -1
- package/dist/magma-components/p-e03788d9.entry.js +1 -0
- package/dist/magma-components/p-e290055a.entry.js +18 -0
- package/dist/magma-components/p-e3423b24.entry.js +1 -0
- package/dist/magma-components/{p-d60d99ac.entry.js → p-e3b9a60f.entry.js} +1 -1
- package/dist/magma-components/p-e420031e.js +1 -0
- package/dist/magma-components/{p-ac5f1e42.system.entry.js → p-e5c3a802.system.entry.js} +1 -1
- package/dist/magma-components/p-e6e67992.entry.js +1 -0
- package/dist/magma-components/p-e82d486e.system.entry.js +18 -0
- package/dist/magma-components/p-e95f01d6.system.entry.js +1 -0
- package/dist/magma-components/{p-c2938231.system.entry.js → p-e9940be7.system.entry.js} +1 -1
- package/dist/magma-components/p-eab621a7.js +2 -0
- package/dist/magma-components/{p-9a878d34.entry.js → p-eae957b3.entry.js} +1 -1
- package/dist/magma-components/p-eb4bc264.system.entry.js +1 -0
- package/dist/magma-components/p-eb8bbb53.entry.js +1 -0
- package/dist/magma-components/{p-a09946ab.entry.js → p-edbaf4ab.entry.js} +1 -1
- package/dist/magma-components/p-ee536517.entry.js +1 -0
- package/dist/magma-components/{p-c2a42118.system.entry.js → p-eef53c2a.system.entry.js} +1 -1
- package/dist/magma-components/p-f0027ed8.system.entry.js +1 -0
- package/dist/magma-components/p-f00c93f4.js +1 -0
- package/dist/magma-components/p-f060e8cc.system.entry.js +1 -0
- package/dist/magma-components/p-f142ee72.entry.js +1 -0
- package/dist/magma-components/{p-efa3471a.entry.js → p-f1d7b5ea.entry.js} +1 -1
- package/dist/magma-components/{p-a5183c20.system.entry.js → p-f63148da.system.entry.js} +1 -1
- package/dist/magma-components/{p-44aaca66.system.entry.js → p-f94593f9.system.entry.js} +1 -1
- package/dist/magma-components/{p-c4cf09ea.system.entry.js → p-fa5fb4be.system.entry.js} +1 -1
- package/dist/magma-components/p-fc8bce99.system.entry.js +1 -0
- package/dist/magma-components/p-fe13fac9.system.entry.js +1 -0
- package/dist/magma-components/{p-12a225e3.system.entry.js → p-feadfe43.system.entry.js} +1 -1
- package/dist/magma-components/{p-bf242a75.system.entry.js → p-ffa94d0f.system.entry.js} +1 -1
- package/dist/stats.json +3575 -2712
- package/dist/types/common/aria.d.ts +3 -1
- package/dist/types/common/date.d.ts +1 -1
- package/dist/types/common/device.d.ts +2 -0
- package/dist/types/common/file.d.ts +2 -2
- package/dist/types/common/locale.d.ts +3 -1
- package/dist/types/components/mds-accordion/mds-accordion.d.ts +1 -1
- package/dist/types/components/mds-accordion-item/mds-accordion-item.d.ts +1 -1
- package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +1 -1
- package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +1 -1
- package/dist/types/components/mds-avatar/mds-avatar.d.ts +1 -1
- package/dist/types/components/mds-badge/mds-badge.d.ts +2 -2
- package/dist/types/components/mds-banner/mds-banner.d.ts +3 -1
- package/dist/types/components/mds-benchmark-bar/mds-benchmark-bar.d.ts +1 -1
- package/dist/types/components/mds-bibliography/mds-bibliography.d.ts +1 -1
- package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +5 -1
- package/dist/types/components/mds-button/mds-button.d.ts +2 -2
- package/dist/types/components/mds-chip/mds-chip.d.ts +22 -7
- package/dist/types/components/mds-chip/test/mds-chip.stories.d.ts +30 -4
- package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +1 -1
- package/dist/types/components/mds-entity/mds-entity.d.ts +1 -1
- package/dist/types/components/mds-file/mds-file.d.ts +4 -5
- package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +7 -4
- package/dist/types/components/mds-file-preview/meta/event-detail.d.ts +1 -1
- package/dist/types/components/mds-filter/mds-filter.d.ts +1 -1
- package/dist/types/components/mds-header/mds-header.d.ts +1 -1
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +1 -1
- package/dist/types/components/mds-help/mds-help.d.ts +1 -1
- package/dist/types/components/mds-icon/services/icons-set.service.d.ts +20 -4
- package/dist/types/components/mds-icon/test/mds-icon.stories.d.ts +1 -0
- package/dist/types/components/mds-img/mds-img.d.ts +3 -1
- package/dist/types/components/mds-input/mds-input.d.ts +6 -7
- package/dist/types/components/mds-input/test/mds-input.stories.d.ts +1 -0
- package/dist/types/components/mds-input-field/mds-input-field.d.ts +5 -6
- package/dist/types/components/mds-input-range/mds-input-range.d.ts +1 -0
- package/dist/types/components/mds-input-range/test/mds-input-range.stories.d.ts +0 -4
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +3 -3
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +2 -1
- package/dist/types/components/mds-input-switch/meta/interfaces.d.ts +1 -1
- package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +3 -1
- package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +13 -10
- package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +1 -1
- package/dist/types/components/mds-label/mds-label.d.ts +6 -3
- package/dist/types/components/mds-list-item/mds-list-item.d.ts +1 -1
- package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +1 -2
- package/dist/types/components/mds-note/mds-note.d.ts +5 -1
- package/dist/types/components/mds-pref/mds-pref.d.ts +2 -0
- package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +9 -8
- package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +10 -9
- package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +11 -10
- package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +20 -15
- package/dist/types/components/mds-pref-language/test/mds-pref-language.stories.d.ts +1 -1
- package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +5 -4
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +14 -12
- package/dist/types/components/mds-price-table-list-item/mds-price-table-list-item.d.ts +1 -1
- package/dist/types/components/mds-progress/mds-progress.d.ts +2 -1
- package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +4 -2
- package/dist/types/components/mds-quote/mds-quote.d.ts +6 -1
- package/dist/types/components/mds-quote/test/mds-quote.stories.d.ts +7 -0
- package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +1 -1
- package/dist/types/components/mds-tab/mds-tab.d.ts +1 -1
- package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +1 -1
- package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +1 -1
- package/dist/types/components/mds-table/mds-table.d.ts +1 -0
- package/dist/types/components/mds-table/test/mds-table.stories.d.ts +1 -0
- package/dist/types/components/mds-table-header-cell/meta/types.d.ts +1 -1
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +4 -0
- package/dist/types/components/mds-text/mds-text.d.ts +4 -3
- package/dist/types/components/mds-text/meta/types.d.ts +0 -1
- package/dist/types/components/mds-toast/mds-toast.d.ts +1 -1
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +2 -2
- package/dist/types/components/mds-url-view/mds-url-view.d.ts +5 -1
- package/dist/types/components/mds-usage/mds-usage.d.ts +0 -2
- package/dist/types/components.d.ts +99 -117
- package/dist/types/dictionary/file-extensions.d.ts +1 -1
- package/dist/types/dictionary/text.d.ts +3 -1
- package/dist/types/dictionary/variant.d.ts +2 -1
- package/dist/types/event-detail/language.d.ts +1 -2
- package/dist/types/event-detail/preference.d.ts +2 -2
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/type/autocomplete.d.ts +1 -1
- package/dist/types/type/input.d.ts +3 -0
- package/dist/types/type/text.d.ts +2 -0
- package/dist/types/type/variant-file-format.d.ts +1 -1
- package/dist/types/type/variant.d.ts +2 -1
- package/loader/cdn.js +2 -0
- package/loader/index.cjs.js +2 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +2 -0
- package/loader/index.js +3 -0
- package/loader/package.json +11 -0
- package/package.json +17 -13
- package/dist/cjs/file-0d013422.js +0 -154
- package/dist/cjs/file-extensions-b57dcf2c.js +0 -68
- package/dist/cjs/locale-c6c02a3a.js +0 -4796
- package/dist/collection/components/mds-input/meta/event-detail.js +0 -1
- package/dist/collection/components/mds-pref-language-nav/mds-pref-language-nav.css +0 -28
- package/dist/collection/components/mds-pref-language-nav/mds-pref-language-nav.js +0 -118
- package/dist/collection/interface/input-value.js +0 -1
- package/dist/collection/type/language.js +0 -1
- package/dist/components/file.js +0 -212
- package/dist/components/mds-pref-language-nav.d.ts +0 -11
- package/dist/components/mds-pref-language-nav.js +0 -6
- package/dist/components/mds-pref-language-nav2.js +0 -936
- package/dist/esm/_commonjsHelpers-e557d4a5.js +0 -11
- package/dist/esm/file-4e952d4d.js +0 -149
- package/dist/esm/file-extensions-e7320b03.js +0 -65
- package/dist/esm/locale-a730711f.js +0 -4794
- package/dist/esm-es5/_commonjsHelpers-e557d4a5.js +0 -1
- package/dist/esm-es5/aria-0e390d9c.js +0 -1
- package/dist/esm-es5/file-4e952d4d.js +0 -1
- package/dist/esm-es5/file-extensions-e7320b03.js +0 -1
- package/dist/esm-es5/floating-ui.dom.esm-f7b7f919.js +0 -1
- package/dist/esm-es5/index-f08bac5f.js +0 -1
- package/dist/esm-es5/locale-a730711f.js +0 -1
- package/dist/esm-es5/mds-dropdown_2.entry.js +0 -1
- package/dist/magma-components/p-00f83b1c.entry.js +0 -1
- package/dist/magma-components/p-02d1e968.entry.js +0 -1
- package/dist/magma-components/p-06adda46.system.entry.js +0 -1
- package/dist/magma-components/p-0d867719.entry.js +0 -1
- package/dist/magma-components/p-0e2ba962.entry.js +0 -1
- package/dist/magma-components/p-0fb85a5b.entry.js +0 -1
- package/dist/magma-components/p-19d5cfd1.system.entry.js +0 -1
- package/dist/magma-components/p-1a8bb922.system.entry.js +0 -1
- package/dist/magma-components/p-1c618541.entry.js +0 -1
- package/dist/magma-components/p-1ebc919c.system.entry.js +0 -1
- package/dist/magma-components/p-239398e3.entry.js +0 -1
- package/dist/magma-components/p-30c59b63.entry.js +0 -1
- package/dist/magma-components/p-348bfa69.system.entry.js +0 -1
- package/dist/magma-components/p-34b6dae4.entry.js +0 -1
- package/dist/magma-components/p-35010f4f.system.entry.js +0 -1
- package/dist/magma-components/p-369fc037.system.js +0 -2
- package/dist/magma-components/p-39379806.js +0 -1
- package/dist/magma-components/p-39f3c979.entry.js +0 -1
- package/dist/magma-components/p-3a1212f7.system.js +0 -1
- package/dist/magma-components/p-3b821237.entry.js +0 -1
- package/dist/magma-components/p-3bce2736.entry.js +0 -1
- package/dist/magma-components/p-3bd5921c.entry.js +0 -1
- package/dist/magma-components/p-3bd829b2.system.entry.js +0 -1
- package/dist/magma-components/p-3c7dd9e6.entry.js +0 -1
- package/dist/magma-components/p-3d6026a7.entry.js +0 -1
- package/dist/magma-components/p-40444810.entry.js +0 -1
- package/dist/magma-components/p-456e8f90.entry.js +0 -1
- package/dist/magma-components/p-45840cb9.js +0 -1
- package/dist/magma-components/p-4818acd8.entry.js +0 -1
- package/dist/magma-components/p-4852095e.system.entry.js +0 -1
- package/dist/magma-components/p-49457689.entry.js +0 -1
- package/dist/magma-components/p-498d8d1f.system.entry.js +0 -1
- package/dist/magma-components/p-4a21d75f.entry.js +0 -1
- package/dist/magma-components/p-4ba3ec43.entry.js +0 -1
- package/dist/magma-components/p-4bb672d5.system.entry.js +0 -1
- package/dist/magma-components/p-4cd1cddc.js +0 -1
- package/dist/magma-components/p-4cf59911.system.entry.js +0 -1
- package/dist/magma-components/p-5251fc6b.entry.js +0 -18
- package/dist/magma-components/p-53b343a8.js +0 -1
- package/dist/magma-components/p-56e687bd.entry.js +0 -1
- package/dist/magma-components/p-5958cf43.entry.js +0 -1
- package/dist/magma-components/p-5de2329f.entry.js +0 -1
- package/dist/magma-components/p-5ff768d2.system.entry.js +0 -1
- package/dist/magma-components/p-606200e3.entry.js +0 -1
- package/dist/magma-components/p-61fd38ea.system.entry.js +0 -1
- package/dist/magma-components/p-62358ead.entry.js +0 -1
- package/dist/magma-components/p-62bf3a83.system.entry.js +0 -1
- package/dist/magma-components/p-63f0d264.entry.js +0 -1
- package/dist/magma-components/p-66056cdc.system.js +0 -1
- package/dist/magma-components/p-663bb379.system.entry.js +0 -1
- package/dist/magma-components/p-66976b79.entry.js +0 -1
- package/dist/magma-components/p-66f540ac.system.entry.js +0 -1
- package/dist/magma-components/p-676db22b.entry.js +0 -1
- package/dist/magma-components/p-6810a806.system.entry.js +0 -1
- package/dist/magma-components/p-6c14d91c.entry.js +0 -1
- package/dist/magma-components/p-6e2784c9.entry.js +0 -1
- package/dist/magma-components/p-6eecbc9e.system.entry.js +0 -1
- package/dist/magma-components/p-71f86ae7.system.entry.js +0 -1
- package/dist/magma-components/p-728cf2dc.entry.js +0 -1
- package/dist/magma-components/p-763ed882.entry.js +0 -1
- package/dist/magma-components/p-7776a592.entry.js +0 -1
- package/dist/magma-components/p-7a41c057.system.entry.js +0 -1
- package/dist/magma-components/p-7cae0221.system.entry.js +0 -1
- package/dist/magma-components/p-7d19a7c6.entry.js +0 -1
- package/dist/magma-components/p-7d45974f.entry.js +0 -1
- package/dist/magma-components/p-7ff9abda.system.entry.js +0 -1
- package/dist/magma-components/p-82c83671.system.entry.js +0 -1
- package/dist/magma-components/p-846bafa4.system.js +0 -1
- package/dist/magma-components/p-85efbd11.entry.js +0 -1
- package/dist/magma-components/p-8a3e4d1f.system.entry.js +0 -1
- package/dist/magma-components/p-8ab85f10.entry.js +0 -1
- package/dist/magma-components/p-8c9bba00.system.entry.js +0 -1
- package/dist/magma-components/p-8ddbf6c1.system.entry.js +0 -1
- package/dist/magma-components/p-91391486.entry.js +0 -1
- package/dist/magma-components/p-91deec04.system.entry.js +0 -1
- package/dist/magma-components/p-934a4af6.system.entry.js +0 -18
- package/dist/magma-components/p-9381402f.entry.js +0 -1
- package/dist/magma-components/p-94bbfe16.entry.js +0 -1
- package/dist/magma-components/p-95e2abb6.js +0 -1
- package/dist/magma-components/p-9dfb1723.system.js +0 -1
- package/dist/magma-components/p-9f4b5a49.entry.js +0 -1
- package/dist/magma-components/p-9f80f36c.system.entry.js +0 -1
- package/dist/magma-components/p-9fefae6a.system.entry.js +0 -1
- package/dist/magma-components/p-a56a4fe4.entry.js +0 -1
- package/dist/magma-components/p-ac2a7c27.js +0 -1
- package/dist/magma-components/p-aebd1b47.entry.js +0 -1
- package/dist/magma-components/p-af75f100.entry.js +0 -1
- package/dist/magma-components/p-b3afbdcd.system.js +0 -1
- package/dist/magma-components/p-b3db90c1.entry.js +0 -1
- package/dist/magma-components/p-b435daa4.system.entry.js +0 -1
- package/dist/magma-components/p-b4395edb.system.entry.js +0 -1
- package/dist/magma-components/p-b4ce85d6.system.entry.js +0 -1
- package/dist/magma-components/p-b4ee4798.entry.js +0 -1
- package/dist/magma-components/p-b53e817c.system.entry.js +0 -1
- package/dist/magma-components/p-b6defcb6.js +0 -2
- package/dist/magma-components/p-b975c42a.js +0 -1
- package/dist/magma-components/p-bc867380.entry.js +0 -1
- package/dist/magma-components/p-bf08086c.system.entry.js +0 -1
- package/dist/magma-components/p-c6c8c32d.system.entry.js +0 -1
- package/dist/magma-components/p-c7343c40.system.entry.js +0 -9
- package/dist/magma-components/p-c852e0cb.entry.js +0 -8
- package/dist/magma-components/p-ca5f0f4d.entry.js +0 -1
- package/dist/magma-components/p-caf2dd9c.system.entry.js +0 -1
- package/dist/magma-components/p-cd9191a7.system.entry.js +0 -1
- package/dist/magma-components/p-d2cf0fd3.entry.js +0 -1
- package/dist/magma-components/p-dcc96bdb.entry.js +0 -1
- package/dist/magma-components/p-e203fbb0.system.entry.js +0 -1
- package/dist/magma-components/p-e249cc64.system.js +0 -1
- package/dist/magma-components/p-e307af8d.system.entry.js +0 -1
- package/dist/magma-components/p-e3b16a3f.entry.js +0 -1
- package/dist/magma-components/p-e72c4889.system.entry.js +0 -1
- package/dist/magma-components/p-e9042c7c.system.entry.js +0 -1
- package/dist/magma-components/p-eaade5d2.entry.js +0 -1
- package/dist/magma-components/p-ebfe7149.entry.js +0 -1
- package/dist/magma-components/p-ec231a39.system.entry.js +0 -1
- package/dist/magma-components/p-ee6d48f2.system.entry.js +0 -1
- package/dist/magma-components/p-f4bbd91e.system.entry.js +0 -1
- package/dist/magma-components/p-f855cdc0.entry.js +0 -1
- package/dist/types/components/mds-input/meta/event-detail.d.ts +0 -3
- package/dist/types/components/mds-pref-language-nav/mds-pref-language-nav.d.ts +0 -23
- package/dist/types/interface/input-value.d.ts +0 -4
- package/dist/types/type/language.d.ts +0 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-eccfa195.js');
|
|
6
6
|
|
|
7
7
|
const mdsEntityCss = "@tailwind utilities;\n\n/**\n * @prop --mds-entity-background: The background-color of the entity\n * @prop --mds-entity-color: The color of the entity name\n * @prop --mds-entity-detail-color: The color of the text details\n * @prop --mds-entity-icon-background: The background-color of the icon\n * @prop --mds-entity-icon-color: The color of the icon\n * @prop --mds-entity-shadow: The box-shadow od the component\n */\n\n:host {\n\n --mds-entity-background: rgb(var(--tone-neutral));\n --mds-entity-color: rgb(var(--tone-neutral-02));\n --mds-entity-detail-color: rgb(var(--tone-neutral-03));\n --mds-entity-icon-background: rgb(var(--label-blue-09));\n --mds-entity-icon-radius: 0.25rem;\n --mds-entity-icon-color: rgb(var(--label-blue-04));\n --mds-entity-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n gap: 0.5rem;\n border-radius: 0.5rem;\n padding: 0.5rem;\n\n -ms-flex-align: stretch;\n\n align-items: stretch;\n background-color: var(--mds-entity-background);\n -webkit-box-shadow: var(--mds-entity-shadow);\n box-shadow: var(--mds-entity-shadow);\n color: var(--mds-entity-color);\n display: -ms-flexbox;\n display: flex;\n}\n\n.spinner,\n.preview,\n.delete{\n\n width: 2.75rem;\n\n border-radius: 0.25rem;\n\n -ms-flex-negative: 0;\n\n flex-shrink: 0;\n}\n\n.spinner,\n.preview{\n\n aspect-ratio: 1/1;\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: var(--mds-entity-icon-background);\n border-radius: var(--mds-entity-icon-radius);\n display: -ms-inline-flexbox;\n display: inline-flex;\n fill: var(--mds-entity-icon-color);\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.preview {\n\n --mds-avatar-radius: var(--mds-entity-icon-radius);\n}\n\n.spinner {\n background-color: transparent;\n display: none;\n fill: var(--mds-entity-icon-color);\n}\n\n:host([await]:not([await=\"false\"])) .spinner {\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n\nmds-spinner{\n\n height: 2.25rem;\n\n width: 2.25rem;\n}\n\n.infos{\n\n min-width: 0rem;\n\n gap: 0rem;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-positive: 1;\n flex-grow: 1;\n -ms-flex-pack: center;\n justify-content: center;\n white-space: nowrap;\n}\n\n.details{\n\n gap: 0.25rem;\n\n -ms-flex-align: center;\n\n align-items: center;\n color: var(--mds-entity-detail-color);\n display: -ms-flexbox;\n display: flex;\n}\n\n.actions{\n\n gap: 0.5rem;\n\n -ms-flex-align: center;\n\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n}\n\n::slotted( [slot=\"action\"] ){\n\n aspect-ratio: 1/1;\n\n width: 2.75rem;\n\n height: auto;\n}\n\n::slotted( * ){\n\n overflow: hidden;\n\n text-overflow: ellipsis;\n\n white-space: nowrap;\n}\n\n.title{\n\n min-width: 0rem;\n\n overflow: hidden;\n\n text-overflow: ellipsis;\n\n white-space: nowrap;\n\n display: -ms-flexbox;\n\n display: flex;\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-entity-background: rgb(var(--tone-neutral));\n --mds-entity-color: rgb(var(--tone-neutral-01));\n --mds-entity-detail-color: rgb(var(--tone-neutral-02));\n --mds-entity-icon-background: rgb(var(--label-blue-08));\n --mds-entity-icon-color: rgb(var(--label-blue-03));\n --mds-entity-shadow: 0 0 0 2px 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-entity-background: rgb(var(--tone-neutral));\n --mds-entity-color: rgb(var(--tone-neutral-01));\n --mds-entity-detail-color: rgb(var(--tone-neutral-02));\n --mds-entity-icon-background: rgb(var(--label-blue-08));\n --mds-entity-icon-color: rgb(var(--label-blue-03));\n --mds-entity-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-entity-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-entity-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n";
|
|
8
8
|
const MdsEntityStyle0 = mdsEntityCss;
|
|
@@ -38,10 +38,10 @@ const MdsEntity = class {
|
|
|
38
38
|
this.actions = this.hostElement.querySelector('[slot="action"]') !== null;
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (index.h(index.Host, { key: '
|
|
42
|
-
index.h("mds-avatar", { key: '
|
|
43
|
-
index.h("div", { key: '
|
|
44
|
-
index.h("div", { key: '
|
|
41
|
+
return (index.h(index.Host, { key: '9391672c7ecfde903e03798d210760e52370c90b' }, index.h("div", { key: 'fab671cb638c283a8ea3648aee9c9188512e8fa0', class: "spinner" }, index.h("mds-spinner", { key: 'baed37a926e1f606b41fb85b24be7728f671ab54', running: true })), this.checkAvatar() &&
|
|
42
|
+
index.h("mds-avatar", { key: '380ed5fdef281b9e9338e4beeecffa4ef9bae7b5', class: "preview", icon: this.icon, initials: this.initials, src: this.src, tone: this.tone, variant: this.variant }), index.h("div", { key: 'd876fe0ce1f53eec1cc1062e5c38b82d67b3bd89', class: "infos" }, index.h("slot", { key: '949113bb0e3dbf092e6604358544630440a43740' }), this.details &&
|
|
43
|
+
index.h("div", { key: '7635a1805fa615b2907e3b89fffa250db9b71dce', class: "details" }, index.h("slot", { key: 'a6b8ff76384000ebc4b1684b3b888d7dd60cafd3', name: "deuploadtail" }))), this.actions &&
|
|
44
|
+
index.h("div", { key: '11c50375bc0e9ea56989d7549e95b99a6db191c7', class: "actions" }, index.h("slot", { key: '653e308b14d27197b9c945269190030984ac2ebd', name: "action" }))));
|
|
45
45
|
}
|
|
46
46
|
get hostElement() { return index.getElement(this); }
|
|
47
47
|
};
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-eccfa195.js');
|
|
6
6
|
const cancel = require('./cancel-d0e4d842.js');
|
|
7
7
|
const clsx = require('./clsx-fc789adc.js');
|
|
8
|
-
const
|
|
9
|
-
require('./
|
|
8
|
+
const locale_it = require('./locale.it-e5e117c5.js');
|
|
9
|
+
const locale = require('./locale-9add6645.js');
|
|
10
|
+
require('./file-extensions-cd2fa955.js');
|
|
10
11
|
require('./panorama-7cd0b638.js');
|
|
12
|
+
require('./_commonjsHelpers-e6ff1d6e.js');
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
15
|
* filesize
|
|
@@ -201,7 +203,27 @@ const STRINGS = {
|
|
|
201
203
|
} : result.join(spacer);
|
|
202
204
|
}
|
|
203
205
|
|
|
204
|
-
const mdsFilePreviewCss = "@tailwind utilities;\n\n:host {\n\n --mds-file-preview-background-color: rgb(var(--tone-neutral));\n --mds-file-preview-border-radius: 0.5rem;\n --mds-file-preview-color: rgb(var(--tone-neutral-03));\n --mds-file-preview-icon-background: inherit;\n --mds-file-preview-icon-color: var(--mds-file-preview-color);\n\n -ms-flex-align: stretch;\n\n align-items: stretch;\n background-color: var(--mds-file-preview-background-color);\n border-radius: var(--mds-file-preview-border-radius);\n -webkit-box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n display: -ms-flexbox;\n display: flex;\n fill: var(--mds-file-preview-color);\n -ms-flex-pack: stretch;\n justify-content: stretch;\n position: relative;\n}\n\n.card{\n\n grid-template-columns: repeat(auto-fit, minmax(1px, 100%));\n\n gap: 0.5rem;\n\n padding: 1rem;\n\n border-radius: var(--mds-file-preview-border-radius);\n display: grid;\n width: 100%;\n}\n\n.preview{\n\n aspect-ratio: 1/1;\n\n background-color: var(--mds-file-preview-icon-bacground);\n border-radius: 0.25rem;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: var(--mds-file-preview-color);\n fill: var(--mds-file-preview-icon-color);\n width: 100%;\n}\n\n.preview--image {\n -webkit-filter: brightness(0.975);\n filter: brightness(0.975);\n padding: 0 !important;\n}\n\n.preview--icon,\n.preview--status {\n -ms-flex-align: center;\n align-items: center;\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}\n\n.preview--status{\n\n gap: 0.5rem;\n\n padding: 1rem;\n}\n\n.icon{\n\n height: 3rem;\n\n width: 3rem;\n}\n\n.message {\n text-align: center;\n}\n\n.action-delete {\n background-color: var(--mds-file-preview-background-color);\n fill: var(--mds-file-preview-color);\n position: absolute;\n right: 0;\n top: 0;\n z-index: 10;\n}\n\n.infos{\n\n gap: 0.5rem;\n\n -ms-flex-align: center;\n\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n}\n\n.suffix {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n\n.infos--has-file-size {\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.file-name {\n\n --mds-text-line-clamp: 2;\n}\n\n:host([format=\"archive\"]),\n:host([format=\"executable\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-04));\n --mds-file-preview-color: rgb(var(--label-amaranth-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-amaranth-10));\n}\n\n:host([format=\"attachment\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--tone-neutral-04));\n --mds-file-preview-color: rgb(var(--tone-neutral-04));\n --mds-file-preview-icon-bacground: rgb(var(--tone-neutral-10));\n}\n\n:host([format=\"audio\"]),\n:host([format=\"video\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-violet-04));\n --mds-file-preview-color: rgb(var(--label-violet-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-violet-10));\n}\n\n:host([format=\"code\"]),\n:host([format=\"data\"]),\n:host([format=\"markup\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-yellow-04));\n --mds-file-preview-color: rgb(var(--label-yellow-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-yellow-10));\n}\n\n:host([format=\"document\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-orange-04));\n --mds-file-preview-color: rgb(var(--label-orange-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-orange-10));\n}\n\n:host([format=\"email\"]),\n:host([format=\"text\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-blue-04));\n --mds-file-preview-color: rgb(var(--label-blue-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-blue-10));\n}\n\n:host([format=\"image\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-green-04));\n --mds-file-preview-color: rgb(var(--label-green-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-green-10));\n}\n\n:host([format=\"slide\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-orchid-04));\n --mds-file-preview-color: rgb(var(--label-orchid-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-orchid-10));\n}\n\n:host([format=\"spreadsheet\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-lime-04));\n --mds-file-preview-color: rgb(var(--label-lime-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-lime-10));\n}\n\n:host([format=\"vector\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-aqua-04));\n --mds-file-preview-color: rgb(var(--label-aqua-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-aqua-10));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"info\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-info-09));\n --mds-file-preview-icon-color: rgb(var(--status-info-04));\n}\n\n:host( [variant=\"success\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-success-09));\n --mds-file-preview-icon-color: rgb(var(--status-success-04));\n}\n\n:host( [variant=\"warning\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-warning-09));\n --mds-file-preview-icon-color: rgb(var(--status-warning-04));\n}\n\n:host( [variant=\"error\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-error-09));\n --mds-file-preview-icon-color: rgb(var(--status-error-04));\n}\n\n\n:host( [variant=\"amaranth\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-amaranth-09));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-04));\n}\n\n:host( [variant=\"aqua\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-aqua-09));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-04));\n}\n\n\n:host( [variant=\"blue\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-blue-09));\n --mds-file-preview-icon-color: rgb(var(--label-blue-04));\n}\n\n:host( [variant=\"green\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-green-09));\n --mds-file-preview-icon-color: rgb(var(--label-green-04));\n}\n\n:host( [variant=\"lime\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-lime-09));\n --mds-file-preview-icon-color: rgb(var(--label-lime-04));\n}\n\n:host( [variant=\"orange\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-orange-09));\n --mds-file-preview-icon-color: rgb(var(--label-orange-04));\n}\n\n:host( [variant=\"orchid\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-orchid-09));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-04));\n}\n\n:host( [variant=\"primary\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--brand-maggioli-09));\n --mds-file-preview-icon-color: rgb(var(--brand-maggioli-04));\n}\n\n:host( [variant=\"sky\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-sky-09));\n --mds-file-preview-icon-color: rgb(var(--label-sky-04));\n}\n\n:host( [variant=\"violet\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-violet-09));\n --mds-file-preview-icon-color: rgb(var(--label-violet-04));\n}\n\n:host( [variant=\"yellow\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-yellow-09));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-04));\n}\n\n@container style(--magma-pref-contrast: more) {\n :host( [variant=\"info\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-info-10));\n --mds-file-preview-icon-color: rgb(var(--status-info-02));\n }\n\n :host( [variant=\"success\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-success-10));\n --mds-file-preview-icon-color: rgb(var(--status-success-02));\n }\n\n :host( [variant=\"warning\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-warning-10));\n --mds-file-preview-icon-color: rgb(var(--status-warning-02));\n }\n\n :host( [variant=\"error\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-error-10));\n --mds-file-preview-icon-color: rgb(var(--status-error-02));\n }\n\n\n :host( [variant=\"amaranth\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-amaranth-10));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-02));\n }\n\n :host( [variant=\"aqua\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-aqua-10));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-02));\n }\n\n\n :host( [variant=\"blue\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-blue-10));\n --mds-file-preview-icon-color: rgb(var(--label-blue-02));\n }\n\n :host( [variant=\"green\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-green-10));\n --mds-file-preview-icon-color: rgb(var(--label-green-02));\n }\n\n :host( [variant=\"lime\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-lime-10));\n --mds-file-preview-icon-color: rgb(var(--label-lime-02));\n }\n\n :host( [variant=\"orange\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-orange-10));\n --mds-file-preview-icon-color: rgb(var(--label-orange-02));\n }\n\n :host( [variant=\"orchid\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-orchid-10));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-02));\n }\n\n :host( [variant=\"primary\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--brand-maggioli-10));\n --mds-file-preview-icon-color: rgb(var(--brand-maggioli-02));\n }\n\n :host( [variant=\"sky\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-sky-10));\n --mds-file-preview-icon-color: rgb(var(--label-sky-02));\n }\n\n :host( [variant=\"violet\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-violet-10));\n --mds-file-preview-icon-color: rgb(var(--label-violet-02));\n }\n\n :host( [variant=\"yellow\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-yellow-10));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-02));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host( [variant=\"info\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-info-10));\n --mds-file-preview-icon-color: rgb(var(--status-info-02));\n }\n\n :host( [variant=\"success\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-success-10));\n --mds-file-preview-icon-color: rgb(var(--status-success-02));\n }\n\n :host( [variant=\"warning\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-warning-10));\n --mds-file-preview-icon-color: rgb(var(--status-warning-02));\n }\n\n :host( [variant=\"error\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-error-10));\n --mds-file-preview-icon-color: rgb(var(--status-error-02));\n }\n\n\n :host( [variant=\"amaranth\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-amaranth-10));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-02));\n }\n\n :host( [variant=\"aqua\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-aqua-10));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-02));\n }\n\n\n :host( [variant=\"blue\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-blue-10));\n --mds-file-preview-icon-color: rgb(var(--label-blue-02));\n }\n\n :host( [variant=\"green\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-green-10));\n --mds-file-preview-icon-color: rgb(var(--label-green-02));\n }\n\n :host( [variant=\"lime\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-lime-10));\n --mds-file-preview-icon-color: rgb(var(--label-lime-02));\n }\n\n :host( [variant=\"orange\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-orange-10));\n --mds-file-preview-icon-color: rgb(var(--label-orange-02));\n }\n\n :host( [variant=\"orchid\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-orchid-10));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-02));\n }\n\n :host( [variant=\"primary\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--brand-maggioli-10));\n --mds-file-preview-icon-color: rgb(var(--brand-maggioli-02));\n }\n\n :host( [variant=\"sky\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-sky-10));\n --mds-file-preview-icon-color: rgb(var(--label-sky-02));\n }\n\n :host( [variant=\"violet\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-violet-10));\n --mds-file-preview-icon-color: rgb(var(--label-violet-02));\n }\n\n :host( [variant=\"yellow\"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-yellow-10));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-02));\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .preview {\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 .preview {\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 -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 -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-contrast: more) {\n :host {\n\n --mds-file-preview-color: rgb(var(--tone-neutral-01));\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-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-file-preview-color: rgb(var(--tone-neutral-01));\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";
|
|
206
|
+
const remove$3 = "Αφαιρέστε το αρχείο από την ουρά μεταφόρτωσης";
|
|
207
|
+
const localeEl = {
|
|
208
|
+
remove: remove$3
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
const remove$2 = "Remove file from upload queue";
|
|
212
|
+
const localeEn = {
|
|
213
|
+
remove: remove$2
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
const remove$1 = "Eliminar archivo de la cola de carga";
|
|
217
|
+
const localeEs = {
|
|
218
|
+
remove: remove$1
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
const remove = "Rimuovi file dalla coda di upload";
|
|
222
|
+
const localeIt = {
|
|
223
|
+
remove: remove
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
const mdsFilePreviewCss = "@tailwind utilities;\n\n:host {\n\n --mds-file-preview-background-color: rgb(var(--tone-neutral));\n --mds-file-preview-border-radius: 0.5rem;\n --mds-file-preview-color: rgb(var(--tone-neutral-03));\n --mds-file-preview-icon-background: inherit;\n --mds-file-preview-icon-color: var(--mds-file-preview-color);\n\n -ms-flex-align: stretch;\n\n align-items: stretch;\n background-color: var(--mds-file-preview-background-color);\n border-radius: var(--mds-file-preview-border-radius);\n -webkit-box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n display: -ms-flexbox;\n display: flex;\n fill: var(--mds-file-preview-color);\n -ms-flex-pack: stretch;\n justify-content: stretch;\n position: relative;\n}\n\n.card{\n\n grid-template-columns: repeat(auto-fit, minmax(1px, 100%));\n\n gap: 0.5rem;\n\n padding: 1rem;\n\n border-radius: var(--mds-file-preview-border-radius);\n display: grid;\n width: 100%;\n}\n\n.preview{\n\n aspect-ratio: 1/1;\n\n background-color: var(--mds-file-preview-icon-background);\n border-radius: 0.25rem;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: var(--mds-file-preview-color);\n fill: var(--mds-file-preview-icon-color);\n width: 100%;\n}\n\n.preview--image {\n -webkit-filter: brightness(0.975);\n filter: brightness(0.975);\n padding: 0 !important;\n}\n\n.preview--icon,\n.preview--status {\n -ms-flex-align: center;\n align-items: center;\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}\n\n.preview--status{\n\n gap: 0.5rem;\n\n padding: 1rem;\n}\n\n.icon{\n\n height: 3rem;\n\n width: 3rem;\n}\n\n.message {\n text-align: center;\n}\n\n.action-delete {\n background-color: var(--mds-file-preview-background-color);\n position: absolute;\n right: 0;\n top: 0;\n z-index: 10;\n}\n\n.infos{\n\n gap: 0.5rem;\n\n -ms-flex-align: center;\n\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n}\n\n.suffix {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n\n.infos--has-file-size {\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.file-name {\n\n --mds-text-line-clamp: 2;\n}\n\n:host([format=\"archive\"]),\n:host([format=\"executable\"]) {\n\n --mds-file-preview-color: rgb(var(--label-amaranth-04));\n --mds-file-preview-icon-background: rgb(var(--label-amaranth-10));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-04));\n}\n\n:host([format=\"attachment\"]) {\n\n --mds-file-preview-color: rgb(var(--tone-neutral-04));\n --mds-file-preview-icon-background: rgb(var(--tone-neutral-10));\n --mds-file-preview-icon-color: rgb(var(--tone-neutral-04));\n}\n\n:host([format=\"audio\"]),\n:host([format=\"video\"]) {\n\n --mds-file-preview-color: rgb(var(--label-violet-04));\n --mds-file-preview-icon-background: rgb(var(--label-violet-10));\n --mds-file-preview-icon-color: rgb(var(--label-violet-04));\n}\n\n:host([format=\"code\"]),\n:host([format=\"data\"]),\n:host([format=\"markup\"]) {\n\n --mds-file-preview-color: rgb(var(--label-yellow-04));\n --mds-file-preview-icon-background: rgb(var(--label-yellow-10));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-04));\n}\n\n:host([format=\"document\"]) {\n\n --mds-file-preview-color: rgb(var(--label-orange-04));\n --mds-file-preview-icon-background: rgb(var(--label-orange-10));\n --mds-file-preview-icon-color: rgb(var(--label-orange-04));\n}\n\n:host([format=\"email\"]),\n:host([format=\"text\"]) {\n\n --mds-file-preview-color: rgb(var(--label-blue-04));\n --mds-file-preview-icon-background: rgb(var(--label-blue-10));\n --mds-file-preview-icon-color: rgb(var(--label-blue-04));\n}\n\n:host([format=\"image\"]) {\n\n --mds-file-preview-color: rgb(var(--label-green-04));\n --mds-file-preview-icon-background: rgb(var(--label-green-10));\n --mds-file-preview-icon-color: rgb(var(--label-green-04));\n}\n\n:host([format=\"slide\"]) {\n\n --mds-file-preview-color: rgb(var(--label-orchid-04));\n --mds-file-preview-icon-background: rgb(var(--label-orchid-10));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-04));\n}\n\n:host([format=\"spreadsheet\"]) {\n\n --mds-file-preview-color: rgb(var(--label-lime-04));\n --mds-file-preview-icon-background: rgb(var(--label-lime-10));\n --mds-file-preview-icon-color: rgb(var(--label-lime-04));\n}\n\n:host([format=\"vector\"]) {\n\n --mds-file-preview-color: rgb(var(--label-aqua-04));\n --mds-file-preview-icon-background: rgb(var(--label-aqua-10));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-04));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"primary\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--variant-primary-09));\n --mds-file-preview-icon-color: rgb(var(--variant-primary-04));\n}\n\n:host( [variant=\"info\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-info-09));\n --mds-file-preview-icon-color: rgb(var(--status-info-04));\n --mds-file-preview-color: rgb(var(--status-info-03));\n}\n\n:host( [variant=\"success\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-success-09));\n --mds-file-preview-icon-color: rgb(var(--status-success-04));\n --mds-file-preview-color: rgb(var(--status-success-03));\n}\n\n:host( [variant=\"warning\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-warning-09));\n --mds-file-preview-icon-color: rgb(var(--status-warning-04));\n --mds-file-preview-color: rgb(var(--status-warning-03));\n}\n\n:host( [variant=\"error\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-error-09));\n --mds-file-preview-icon-color: rgb(var(--status-error-04));\n --mds-file-preview-color: rgb(var(--status-error-03));\n}\n\n\n:host( [variant=\"amaranth\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-amaranth-09));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-04));\n --mds-file-preview-color: rgb(var(--label-amaranth-03));\n}\n\n:host( [variant=\"aqua\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-aqua-09));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-04));\n --mds-file-preview-color: rgb(var(--label-aqua-03));\n}\n\n\n:host( [variant=\"blue\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-blue-09));\n --mds-file-preview-icon-color: rgb(var(--label-blue-04));\n --mds-file-preview-color: rgb(var(--label-blue-03));\n}\n\n:host( [variant=\"green\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-green-09));\n --mds-file-preview-icon-color: rgb(var(--label-green-04));\n --mds-file-preview-color: rgb(var(--label-green-03));\n}\n\n:host( [variant=\"lime\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-lime-09));\n --mds-file-preview-icon-color: rgb(var(--label-lime-04));\n --mds-file-preview-color: rgb(var(--label-lime-03));\n}\n\n:host( [variant=\"orange\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-orange-09));\n --mds-file-preview-icon-color: rgb(var(--label-orange-04));\n --mds-file-preview-color: rgb(var(--label-orange-03));\n}\n\n:host( [variant=\"orchid\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-orchid-09));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-04));\n --mds-file-preview-color: rgb(var(--label-orchid-03));\n}\n\n:host( [variant=\"sky\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-sky-09));\n --mds-file-preview-icon-color: rgb(var(--label-sky-04));\n --mds-file-preview-color: rgb(var(--label-sky-03));\n}\n\n:host( [variant=\"violet\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-violet-09));\n --mds-file-preview-icon-color: rgb(var(--label-violet-04));\n --mds-file-preview-color: rgb(var(--label-violet-03));\n}\n\n:host( [variant=\"yellow\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-yellow-09));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-04));\n --mds-file-preview-color: rgb(var(--label-yellow-03));\n}\n\n@container style(--magma-pref-contrast: more) {\n\n :host( [variant=\"primary\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--variant-primary-10));\n --mds-file-preview-icon-color: rgb(var(--variant-primary-02));\n --mds-file-preview-color: rgb(var(--variant-primary-01));\n }\n\n :host( [variant=\"info\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-info-10));\n --mds-file-preview-icon-color: rgb(var(--status-info-02));\n --mds-file-preview-color: rgb(var(--status-info-01));\n }\n\n :host( [variant=\"success\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-success-10));\n --mds-file-preview-icon-color: rgb(var(--status-success-02));\n --mds-file-preview-color: rgb(var(--status-success-01));\n }\n\n :host( [variant=\"warning\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-warning-10));\n --mds-file-preview-icon-color: rgb(var(--status-warning-02));\n --mds-file-preview-color: rgb(var(--status-warning-01));\n }\n\n :host( [variant=\"error\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-error-10));\n --mds-file-preview-icon-color: rgb(var(--status-error-02));\n --mds-file-preview-color: rgb(var(--status-error-01));\n }\n\n\n :host( [variant=\"amaranth\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-amaranth-10));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-02));\n --mds-file-preview-color: rgb(var(--label-amaranth-01));\n }\n\n :host( [variant=\"aqua\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-aqua-10));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-02));\n --mds-file-preview-color: rgb(var(--label-aqua-01));\n }\n\n\n :host( [variant=\"blue\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-blue-10));\n --mds-file-preview-icon-color: rgb(var(--label-blue-02));\n --mds-file-preview-color: rgb(var(--label-blue-01));\n }\n\n :host( [variant=\"green\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-green-10));\n --mds-file-preview-icon-color: rgb(var(--label-green-02));\n --mds-file-preview-color: rgb(var(--label-green-01));\n }\n\n :host( [variant=\"lime\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-lime-10));\n --mds-file-preview-icon-color: rgb(var(--label-lime-02));\n --mds-file-preview-color: rgb(var(--label-lime-01));\n }\n\n :host( [variant=\"orange\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-orange-10));\n --mds-file-preview-icon-color: rgb(var(--label-orange-02));\n --mds-file-preview-color: rgb(var(--label-orange-01));\n }\n\n :host( [variant=\"orchid\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-orchid-10));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-02));\n --mds-file-preview-color: rgb(var(--label-orchid-01));\n }\n\n :host( [variant=\"sky\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-sky-10));\n --mds-file-preview-icon-color: rgb(var(--label-sky-02));\n --mds-file-preview-color: rgb(var(--label-sky-01));\n }\n\n :host( [variant=\"violet\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-violet-10));\n --mds-file-preview-icon-color: rgb(var(--label-violet-02));\n --mds-file-preview-color: rgb(var(--label-violet-01));\n }\n\n :host( [variant=\"yellow\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-yellow-10));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-02));\n --mds-file-preview-color: rgb(var(--label-yellow-01));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host( [variant=\"primary\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--variant-primary-10));\n --mds-file-preview-icon-color: rgb(var(--variant-primary-02));\n --mds-file-preview-color: rgb(var(--variant-primary-01));\n }\n\n :host( [variant=\"info\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-info-10));\n --mds-file-preview-icon-color: rgb(var(--status-info-02));\n --mds-file-preview-color: rgb(var(--status-info-01));\n }\n\n :host( [variant=\"success\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-success-10));\n --mds-file-preview-icon-color: rgb(var(--status-success-02));\n --mds-file-preview-color: rgb(var(--status-success-01));\n }\n\n :host( [variant=\"warning\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-warning-10));\n --mds-file-preview-icon-color: rgb(var(--status-warning-02));\n --mds-file-preview-color: rgb(var(--status-warning-01));\n }\n\n :host( [variant=\"error\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-error-10));\n --mds-file-preview-icon-color: rgb(var(--status-error-02));\n --mds-file-preview-color: rgb(var(--status-error-01));\n }\n\n\n :host( [variant=\"amaranth\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-amaranth-10));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-02));\n --mds-file-preview-color: rgb(var(--label-amaranth-01));\n }\n\n :host( [variant=\"aqua\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-aqua-10));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-02));\n --mds-file-preview-color: rgb(var(--label-aqua-01));\n }\n\n\n :host( [variant=\"blue\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-blue-10));\n --mds-file-preview-icon-color: rgb(var(--label-blue-02));\n --mds-file-preview-color: rgb(var(--label-blue-01));\n }\n\n :host( [variant=\"green\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-green-10));\n --mds-file-preview-icon-color: rgb(var(--label-green-02));\n --mds-file-preview-color: rgb(var(--label-green-01));\n }\n\n :host( [variant=\"lime\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-lime-10));\n --mds-file-preview-icon-color: rgb(var(--label-lime-02));\n --mds-file-preview-color: rgb(var(--label-lime-01));\n }\n\n :host( [variant=\"orange\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-orange-10));\n --mds-file-preview-icon-color: rgb(var(--label-orange-02));\n --mds-file-preview-color: rgb(var(--label-orange-01));\n }\n\n :host( [variant=\"orchid\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-orchid-10));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-02));\n --mds-file-preview-color: rgb(var(--label-orchid-01));\n }\n\n :host( [variant=\"sky\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-sky-10));\n --mds-file-preview-icon-color: rgb(var(--label-sky-02));\n --mds-file-preview-color: rgb(var(--label-sky-01));\n }\n\n :host( [variant=\"violet\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-violet-10));\n --mds-file-preview-icon-color: rgb(var(--label-violet-02));\n --mds-file-preview-color: rgb(var(--label-violet-01));\n }\n\n :host( [variant=\"yellow\"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-yellow-10));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-02));\n --mds-file-preview-color: rgb(var(--label-yellow-01));\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .preview {\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 .preview {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host {\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 -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-contrast: more) {\n :host {\n\n --mds-file-preview-color: rgb(var(--tone-neutral-01));\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-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-file-preview-color: rgb(var(--tone-neutral-01));\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";
|
|
205
227
|
const MdsFilePreviewStyle0 = mdsFilePreviewCss;
|
|
206
228
|
|
|
207
229
|
const MdsFilePreview = class {
|
|
@@ -209,13 +231,20 @@ const MdsFilePreview = class {
|
|
|
209
231
|
index.registerInstance(this, hostRef);
|
|
210
232
|
this.downloadedEvent = index.createEvent(this, "mdsFileDownload", 7);
|
|
211
233
|
this.deletedEvent = index.createEvent(this, "mdsFileDelete", 7);
|
|
212
|
-
this.
|
|
234
|
+
this.t = new locale.Locale({
|
|
235
|
+
el: Object.assign(Object.assign({}, localeEl), locale_it.fileDescriptionLocaleEl),
|
|
236
|
+
en: Object.assign(Object.assign({}, localeEn), locale_it.fileDescriptionLocaleEn),
|
|
237
|
+
es: Object.assign(Object.assign({}, localeEs), locale_it.fileDescriptionLocaleEs),
|
|
238
|
+
it: Object.assign(Object.assign({}, localeIt), locale_it.fileDescriptionLocaleIt),
|
|
239
|
+
});
|
|
240
|
+
this.getDefaultKeyDescription = () => locale_it.getExtensionInfos(this.filename, this.suffix).description;
|
|
213
241
|
this.onClickDeletedEvent = () => {
|
|
214
|
-
this.deletedEvent.emit({ target: this.host, filename: this.filename, extension:
|
|
242
|
+
this.deletedEvent.emit({ target: this.host, filename: this.filename, extension: locale_it.getSuffix(this.filename, this.suffix) });
|
|
215
243
|
};
|
|
216
244
|
this.onClickDownloadEvent = () => {
|
|
217
|
-
this.downloadedEvent.emit({ target: this.host, filename: this.filename, extension:
|
|
245
|
+
this.downloadedEvent.emit({ target: this.host, filename: this.filename, extension: locale_it.getSuffix(this.filename, this.suffix) });
|
|
218
246
|
};
|
|
247
|
+
this.language = undefined;
|
|
219
248
|
this.deletable = undefined;
|
|
220
249
|
this.downloadable = undefined;
|
|
221
250
|
this.description = undefined;
|
|
@@ -229,14 +258,18 @@ const MdsFilePreview = class {
|
|
|
229
258
|
this.variant = undefined;
|
|
230
259
|
this.format = undefined;
|
|
231
260
|
}
|
|
261
|
+
async updateLang() {
|
|
262
|
+
this.language = this.t.lang(this.host);
|
|
263
|
+
}
|
|
232
264
|
componentWillLoad() {
|
|
233
|
-
this.
|
|
265
|
+
this.t.lang(this.host);
|
|
266
|
+
this.format = locale_it.getExtensionInfos(this.filename, this.suffix).format;
|
|
234
267
|
}
|
|
235
268
|
componentDidLoad() {
|
|
236
269
|
this.handleDownloadable(this.downloadable);
|
|
237
270
|
}
|
|
238
271
|
handleFilename(newValue) {
|
|
239
|
-
this.format =
|
|
272
|
+
this.format = locale_it.getExtensionInfos(newValue, this.suffix).format;
|
|
240
273
|
}
|
|
241
274
|
handleDownloadable(newValue, oldValue) {
|
|
242
275
|
var _a;
|
|
@@ -251,11 +284,11 @@ const MdsFilePreview = class {
|
|
|
251
284
|
}
|
|
252
285
|
render() {
|
|
253
286
|
var _a, _b, _c;
|
|
254
|
-
return (index.h(index.Host, { key: '
|
|
287
|
+
return (index.h(index.Host, { key: 'a7dda123874919af0842b36f88f84de14e9dc85a' }, this.deletable && index.h("mds-button", { key: '7e36d34ac76dd06d03ea07ff5d1be37bbec7a19d', title: this.t.get('remove'), class: "action-delete", icon: cancel.miBaselineCancel, variant: "light", onClick: this.onClickDeletedEvent }), index.h("div", { key: '5f43336b09414404595fd96b0f885fea892401fd', class: "card", part: "card", onClick: this.onClickDownloadEvent }, this.src && !this.message && locale_it.getExtensionInfos(this.filename, this.suffix).preview
|
|
255
288
|
? index.h("mds-img", { src: this.src, class: "preview preview--image", "aspect-ratio": "1/1" })
|
|
256
289
|
: index.h("div", { class: clsx.clsx('preview', !this.message ? 'preview--icon' : 'preview--status') }, this.icon
|
|
257
290
|
? index.h("mds-icon", { class: "icon", name: this.icon })
|
|
258
|
-
: index.h("mds-icon", { class: "icon", name:
|
|
291
|
+
: index.h("mds-icon", { class: "icon", name: locale_it.getFormatsVariant(this.filename, this.suffix).icon }), this.message && index.h("mds-text", { class: "message", typography: "caption", variant: "info" }, this.message)), index.h("mds-text", { key: 'fb4b233d9d7b2c53404865013102c349b1b97400', class: "file-name", typography: "h6", variant: "title", truncate: this.truncate, title: this.filename }, this.filename), index.h("footer", { key: '00b1ba509692b5de8dc88ce8d480b96a0c7c8344', class: clsx.clsx('infos', this.filesize && 'infos--has-file-size') }, this.filesize && this.filesize === Number(this.filesize).toString() && index.h("mds-text", { key: '2f2db2eb690b1c47de551a05618c495382bedf1b', class: "file-size", truncate: "word", typography: "caption", variant: "info" }, filesize(Number(this.filesize), { standard: 'jedec' })), this.filesize && this.filesize !== Number(this.filesize).toString() && index.h("mds-text", { key: '4fe83b584365b422f7fa31c91ddfb5168a7a213b', class: "file-size", truncate: "word", typography: "caption", variant: "info" }, this.filesize), locale_it.getSuffix(this.filename, this.suffix) && index.h("mds-badge", { key: 'e40bb98da46ed616f9c67223ecbed54d76a38454', variant: locale_it.getFormatsVariant(this.filename, this.suffix).variant, tone: "weak", class: "suffix", title: (_a = this.description) !== null && _a !== void 0 ? _a : this.t.get(this.getDefaultKeyDescription()) }, locale_it.getSuffix(this.filename, this.suffix)), !this.filesize && index.h("mds-text", { key: '299abc283bed28e4410249d5140b1fbeec9b2eb5', class: "description", truncate: "word", typography: "caption", variant: "info", title: (_b = this.description) !== null && _b !== void 0 ? _b : this.t.get(this.getDefaultKeyDescription()) }, (_c = this.description) !== null && _c !== void 0 ? _c : this.t.get(this.getDefaultKeyDescription()))))));
|
|
259
292
|
}
|
|
260
293
|
get host() { return index.getElement(this); }
|
|
261
294
|
static get watchers() { return {
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const _commonjsHelpers = require('./_commonjsHelpers-
|
|
7
|
-
const
|
|
8
|
-
require('./
|
|
5
|
+
const index = require('./index-eccfa195.js');
|
|
6
|
+
const _commonjsHelpers = require('./_commonjsHelpers-e6ff1d6e.js');
|
|
7
|
+
const locale_it = require('./locale.it-e5e117c5.js');
|
|
8
|
+
const locale = require('./locale-9add6645.js');
|
|
9
|
+
require('./file-extensions-cd2fa955.js');
|
|
9
10
|
require('./panorama-7cd0b638.js');
|
|
10
11
|
|
|
11
12
|
var cryptoJs = {exports: {}};
|
|
@@ -7183,6 +7184,26 @@ var blowfish = {exports: {}};
|
|
|
7183
7184
|
|
|
7184
7185
|
const miBaselineFileDownloadDone = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 18h14v2H5v-2zm4.6-2.7L5 10.7l2-1.9l2.6 2.6L17 4l2 2l-9.4 9.3z"/></svg>`;
|
|
7185
7186
|
|
|
7187
|
+
const alreadyDownloaded$3 = "Έχετε ήδη κατεβάσει αυτό το αρχείο";
|
|
7188
|
+
const localeEl = {
|
|
7189
|
+
alreadyDownloaded: alreadyDownloaded$3
|
|
7190
|
+
};
|
|
7191
|
+
|
|
7192
|
+
const alreadyDownloaded$2 = "You have already downloaded this file";
|
|
7193
|
+
const localeEn = {
|
|
7194
|
+
alreadyDownloaded: alreadyDownloaded$2
|
|
7195
|
+
};
|
|
7196
|
+
|
|
7197
|
+
const alreadyDownloaded$1 = "Ya has descargado este archivo";
|
|
7198
|
+
const localeEs = {
|
|
7199
|
+
alreadyDownloaded: alreadyDownloaded$1
|
|
7200
|
+
};
|
|
7201
|
+
|
|
7202
|
+
const alreadyDownloaded = "Hai già scaricato questo file";
|
|
7203
|
+
const localeIt = {
|
|
7204
|
+
alreadyDownloaded: alreadyDownloaded
|
|
7205
|
+
};
|
|
7206
|
+
|
|
7186
7207
|
const mdsFileCss = "@-webkit-keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n @keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n /* included for focus effect */\n@tailwind components;\n@tailwind utilities;\n\n:host {\n -webkit-animation-duration: var(--magma-outline-animation-duration, 1s);\n animation-duration: var(--magma-outline-animation-duration, 1s);\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: focus-bounce;\n animation-name: focus-bounce;\n -webkit-animation-play-state: paused;\n animation-play-state: paused;\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n outline: var(--magma-outline-blur);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n }\n\n:host:focus-visible {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n:host {\n border-radius: 0.375rem;\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\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 -ms-flex-align: stretch;\n\n align-items: stretch;\n background-color: rgb(var(--tone-neutral));\n -webkit-box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 3px 0 rgb(0 0 0 / 0.1);\n box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 3px 0 rgb(0 0 0 / 0.1);\n color: rgb(var(--tone-neutral-04));\n cursor: pointer;\n display: -ms-inline-flexbox;\n display: inline-flex;\n overflow: hidden;\n -webkit-transition-property: outline, outline-offset, -webkit-box-shadow;\n transition-property: outline, outline-offset, -webkit-box-shadow;\n transition-property: box-shadow, outline, outline-offset;\n transition-property: box-shadow, outline, outline-offset, -webkit-box-shadow;\n width: 100%;\n}\n\n:host(:focus-visible) {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n:host( :hover ) {\n -webkit-box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);\n box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);\n}\n\n.preview {\n width: 3.5rem;\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\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-file-preview-icon-bacground);\n color: var(--mds-file-preview-color);\n display: -ms-flexbox;\n display: flex;\n fill: var(--mds-file-preview-icon-color);\n -ms-flex-negative: 0;\n flex-shrink: 0;\n -ms-flex-pack: center;\n justify-content: center;\n position: relative;\n -webkit-transition-property: color, background-color, fill;\n transition-property: color, background-color, fill;\n}\n\n.image-preview {\n bottom: 0.75rem;\n left: 0.75rem;\n right: 0.75rem;\n top: 0.75rem;\n\n background-position: center;\n background-repeat: no-repeat;\n background-size: contain;\n position: absolute;\n}\n\n.info {\n min-width: 0rem;\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n.filename {\n min-width: 0rem;\n\n display: -ms-flexbox;\n\n display: flex;\n}\n\n.name {\n min-width: 0rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.extension {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n\n.detail {\n min-width: 0rem;\n gap: 0.5rem;\n\n -ms-flex-align: center;\n\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n}\n\n.suffix {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n pointer-events: none;\n}\n\n.description {\n min-width: 0rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n color: rgb(var(--tone-neutral-05));\n}\n\n.indicator {\n padding-right: 1rem;\n\n -ms-flex-align: center;\n\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.downloaded {\n display: -ms-flexbox;\n display: flex;\n}\n\n.downloaded svg {\n aspect-ratio: 1/1;\n height: 100%;\n width: 100%;\n}\n\n.downloaded {\n\n fill: rgb(var(--status-success-06));\n}\n\n:host([format=\"archive\"]),\n:host([format=\"executable\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-04));\n --mds-file-preview-color: rgb(var(--label-amaranth-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-amaranth-10));\n}\n\n:host([format=\"attachment\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--tone-neutral-04));\n --mds-file-preview-color: rgb(var(--tone-neutral-04));\n --mds-file-preview-icon-bacground: rgb(var(--tone-neutral-10));\n}\n\n:host([format=\"audio\"]),\n:host([format=\"video\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-violet-04));\n --mds-file-preview-color: rgb(var(--label-violet-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-violet-10));\n}\n\n:host([format=\"code\"]),\n:host([format=\"data\"]),\n:host([format=\"markup\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-yellow-04));\n --mds-file-preview-color: rgb(var(--label-yellow-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-yellow-10));\n}\n\n:host([format=\"document\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-orange-04));\n --mds-file-preview-color: rgb(var(--label-orange-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-orange-10));\n}\n\n:host([format=\"email\"]),\n:host([format=\"text\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-blue-04));\n --mds-file-preview-color: rgb(var(--label-blue-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-blue-10));\n}\n\n:host([format=\"image\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-green-04));\n --mds-file-preview-color: rgb(var(--label-green-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-green-10));\n}\n\n:host([format=\"slide\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-orchid-04));\n --mds-file-preview-color: rgb(var(--label-orchid-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-orchid-10));\n}\n\n:host([format=\"spreadsheet\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-lime-04));\n --mds-file-preview-color: rgb(var(--label-lime-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-lime-10));\n}\n\n:host([format=\"vector\"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-aqua-04));\n --mds-file-preview-color: rgb(var(--label-aqua-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-aqua-10));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .preview {\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 .preview {\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 -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 :host(:hover) {\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 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 -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 :host(:hover) {\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 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 background-color: rgb(var(--tone-neutral));\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n color: rgb(var(--tone-neutral-01));\n }\n\n :host(:hover) {\n -webkit-box-shadow: 0 0 0 4px rgb(var(--tone-neutral-01) / 0.6);\n box-shadow: 0 0 0 4px rgb(var(--tone-neutral-01) / 0.6);\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n background-color: rgb(var(--tone-neutral));\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n color: rgb(var(--tone-neutral-01));\n }\n\n :host(:hover) {\n -webkit-box-shadow: 0 0 0 4px rgb(var(--tone-neutral-01) / 0.6);\n box-shadow: 0 0 0 4px rgb(var(--tone-neutral-01) / 0.6);\n }\n }\n}\n\n\n";
|
|
7187
7208
|
const MdsFileStyle0 = mdsFileCss;
|
|
7188
7209
|
|
|
@@ -7190,10 +7211,16 @@ const MdsFile = class {
|
|
|
7190
7211
|
constructor(hostRef) {
|
|
7191
7212
|
index.registerInstance(this, hostRef);
|
|
7192
7213
|
this.downloadedEvent = index.createEvent(this, "mdsFileDownload", 7);
|
|
7214
|
+
this.t = new locale.Locale({
|
|
7215
|
+
el: Object.assign(Object.assign({}, localeEl), locale_it.fileDescriptionLocaleEl),
|
|
7216
|
+
en: Object.assign(Object.assign({}, localeEn), locale_it.fileDescriptionLocaleEn),
|
|
7217
|
+
es: Object.assign(Object.assign({}, localeEs), locale_it.fileDescriptionLocaleEs),
|
|
7218
|
+
it: Object.assign(Object.assign({}, localeIt), locale_it.fileDescriptionLocaleIt),
|
|
7219
|
+
});
|
|
7193
7220
|
this.handleOnClick = () => {
|
|
7194
7221
|
var _a;
|
|
7195
|
-
const { format, description } =
|
|
7196
|
-
this.downloadedEvent.emit({ description: (_a = this.description) !== null && _a !== void 0 ? _a : description, extension:
|
|
7222
|
+
const { format, description } = locale_it.getExtensionInfos(this.filename, this.suffix);
|
|
7223
|
+
this.downloadedEvent.emit({ description: (_a = this.description) !== null && _a !== void 0 ? _a : description, extension: locale_it.getSuffix(this.filename, this.suffix), filename: this.filename, target: this.host, type: format });
|
|
7197
7224
|
localStorage.setItem(`mdsFile${cryptoJs.exports.MD5(this.filename).toString()}`, 'downloaded');
|
|
7198
7225
|
this.checkWasDownloaded();
|
|
7199
7226
|
};
|
|
@@ -7201,32 +7228,36 @@ const MdsFile = class {
|
|
|
7201
7228
|
const filename = `mdsFile/${cryptoJs.exports.MD5(this.filename).toString()}`;
|
|
7202
7229
|
this.wasDownloaded = localStorage.getItem(filename) === 'downloaded';
|
|
7203
7230
|
};
|
|
7204
|
-
this.getDefaultDescription = () =>
|
|
7231
|
+
this.getDefaultDescription = () => locale_it.getExtensionInfos(this.filename, this.suffix).description;
|
|
7232
|
+
this.language = undefined;
|
|
7205
7233
|
this.wasDownloaded = false;
|
|
7206
7234
|
this.suffix = undefined;
|
|
7207
7235
|
this.description = undefined;
|
|
7208
|
-
this.downloadedLabel = 'Hai già scaricato questo file';
|
|
7209
7236
|
this.filename = undefined;
|
|
7210
7237
|
this.preview = undefined;
|
|
7211
7238
|
this.showDownloadedIcon = true;
|
|
7212
7239
|
this.format = undefined;
|
|
7213
7240
|
}
|
|
7241
|
+
async updateLang() {
|
|
7242
|
+
this.language = this.t.lang(this.host);
|
|
7243
|
+
}
|
|
7214
7244
|
componentWillLoad() {
|
|
7215
7245
|
this.checkWasDownloaded();
|
|
7216
|
-
this.
|
|
7246
|
+
this.t.lang(this.host);
|
|
7247
|
+
this.format = locale_it.getExtensionInfos(this.filename, this.suffix).format;
|
|
7217
7248
|
}
|
|
7218
7249
|
componentDidUpdate() {
|
|
7219
7250
|
this.checkWasDownloaded();
|
|
7220
7251
|
}
|
|
7221
7252
|
handleFilename(newValue) {
|
|
7222
|
-
this.format =
|
|
7253
|
+
this.format = locale_it.getExtensionInfos(newValue, this.suffix).format;
|
|
7223
7254
|
}
|
|
7224
7255
|
render() {
|
|
7225
7256
|
var _a, _b;
|
|
7226
|
-
return (index.h(index.Host, { key: '
|
|
7257
|
+
return (index.h(index.Host, { key: 'fea56400bff2657114cfd7b9785b72762a143663', tabindex: "0", onClick: this.handleOnClick }, index.h("div", { key: '38d5f835886aef86afcea6b2fd779d459de97a9d', class: "preview" }, this.preview !== undefined
|
|
7227
7258
|
? index.h("div", { class: "image-preview", style: { backgroundImage: `url(${this.preview})` } })
|
|
7228
|
-
: index.h("mds-icon", { name:
|
|
7229
|
-
index.h("div", { key: '
|
|
7259
|
+
: index.h("mds-icon", { name: locale_it.getFormatsVariant(this.filename, this.suffix).icon })), index.h("div", { key: 'dc913aee8aeeeb51e261bcac7519361d762b45c2', class: "info" }, index.h("div", { key: '23cce7c93bfe95e2e29fd16e352c8592e79b4a88', class: "filename", title: this.filename }, index.h("mds-text", { key: 'b7552213276990fe8d4e71faf3b41787da41e9fd', truncate: "word", typography: "h6", class: "name" }, locale_it.getName(this.filename)), this.suffix === undefined && locale_it.getSuffix(this.filename, this.suffix) && index.h("mds-text", { key: '82ff59e493ae2f35b87c093549c4d7f34ebf6c55', typography: "h6", class: "extension" }, ".", locale_it.getSuffix(this.filename, this.suffix))), index.h("div", { key: '56b038b3f17d140a841ef998633b5519df873c91', class: "detail" }, locale_it.getSuffix(this.filename, this.suffix) && index.h("mds-badge", { key: '3d96163232a0b5d77555e903d3e237b978ec7f43', variant: locale_it.getFormatsVariant(this.filename, this.suffix).variant, tone: "weak", class: "suffix" }, locale_it.getSuffix(this.filename, this.suffix)), index.h("mds-text", { key: 'cd52271f23a549b089de4bcc6bac4ee7ee61198e', truncate: "word", typography: "caption", class: "description", title: (_a = this.description) !== null && _a !== void 0 ? _a : this.t.get(this.getDefaultDescription()) }, (_b = this.description) !== null && _b !== void 0 ? _b : this.t.get(this.getDefaultDescription())))), this.wasDownloaded && this.showDownloadedIcon &&
|
|
7260
|
+
index.h("div", { key: 'f0ab2874f31232ebfdae120a9fc9c2bb018f8819', class: "indicator" }, index.h("i", { key: '39d48760d3134793d0bca763d27f272cee30f2f8', class: "downloaded", innerHTML: miBaselineFileDownloadDone, title: this.t.get('alreadyDownloaded') }))));
|
|
7230
7261
|
}
|
|
7231
7262
|
get host() { return index.getElement(this); }
|
|
7232
7263
|
static get watchers() { return {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const keyboardManager = require('./keyboard-manager-
|
|
5
|
+
const index = require('./index-eccfa195.js');
|
|
6
|
+
const keyboardManager = require('./keyboard-manager-952eef32.js');
|
|
7
7
|
|
|
8
8
|
const mdsFilterItemCss = "@-webkit-keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n @keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n /* included for focus effect */\n@tailwind components;\n@tailwind utilities;\n\n/* x */\n\n:host {\n -webkit-animation-duration: var(--magma-outline-animation-duration, 1s);\n animation-duration: var(--magma-outline-animation-duration, 1s);\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: focus-bounce;\n animation-name: focus-bounce;\n -webkit-animation-play-state: paused;\n animation-play-state: paused;\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n outline: var(--magma-outline-blur);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n }\n\n:host:focus-visible {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n:host {\n gap: 0.25rem;\n border-radius: 9999px;\n padding-left: 1rem;\n padding-right: 1rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\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 -ms-flex-align: center;\n\n align-items: center;\n color: rgb(var(--tone-neutral-03));\n cursor: pointer;\n display: -ms-flexbox;\n display: flex;\n fill: rgb(var(--tone-neutral-03));\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-transition-property: background-color, color, outline, outline-offset, -webkit-box-shadow;\n transition-property: background-color, color, outline, outline-offset, -webkit-box-shadow;\n transition-property: background-color, box-shadow, color, outline, outline-offset;\n transition-property: background-color, box-shadow, color, outline, outline-offset, -webkit-box-shadow;\n white-space: nowrap;\n}\n\n:host(:focus-visible) {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n:host( [icon]:not([label]) ) {\n height: 2.25rem;\n width: 2.25rem;\n padding: 0rem;\n}\n\n:host( [selected]:not([selected=\"false\"]) ),\n:host( :hover ) {\n background-color: rgb(var(--tone-neutral));\n}\n\n:host( [selected]:not([selected=\"false\"]) ) {\n color: rgb(var(--tone-neutral-01));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host {\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 -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 background-color: rgb(var(--tone-neutral-10));\n }\n\n :host( [selected]:not([selected=\"false\"]) ) {\n background-color: rgb(var(--tone-neutral-08));\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 :host( :hover ) {\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 background-color: rgb(var(--tone-neutral-10));\n }\n\n :host( [selected]:not([selected=\"false\"]) ) {\n background-color: rgb(var(--tone-neutral-08));\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 :host( :hover ) {\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-contrast: more) {\n :host( [selected]:not([selected=\"false\"]) ),\n :host( :hover ) {\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host( [selected]:not([selected=\"false\"]) ),\n :host( :hover ) {\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);\n }\n }\n}\n\n\n";
|
|
9
9
|
const MdsFilterItemStyle0 = mdsFilterItemCss;
|
|
@@ -31,7 +31,7 @@ const MdsFilterItem = class {
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
var _a;
|
|
34
|
-
return (index.h(index.Host, { key: '
|
|
34
|
+
return (index.h(index.Host, { key: 'e9cc0e7bcb05b01294f9ae954f00f330a48520e6', tabindex: "0", role: "menuitem", "aria-label": (_a = this.label) !== null && _a !== void 0 ? _a : this.icon, onClick: this.toggle }, this.icon && index.h("mds-icon", { key: '27c86b0b6b923d94c9cb5abad53bb040d91a0f4f', "aria-hidden": "true", name: this.icon }), this.label && index.h("mds-text", { key: '6981635e56ac780070b6c9e12f7e90612845867e', "aria-hidden": "true", variant: "info", typography: "caption" }, this.label)));
|
|
35
35
|
}
|
|
36
36
|
get element() { return index.getElement(this); }
|
|
37
37
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-eccfa195.js');
|
|
6
6
|
const clsx = require('./clsx-fc789adc.js');
|
|
7
7
|
|
|
8
8
|
const mdsFilterCss = "@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-filter-items-background-active: Sets the background-color of the items row area when a filter is active\n * @prop --mds-filter-items-background: Sets the background-color of the items row area\n * @prop --mds-filter-items-gap: Sets the gap between items\n * @prop --mds-filter-items-padding: Sets the padding of the items row area\n * @prop --mds-filter-items-radius: Sets the border-radius of the items row area\n * @prop --mds-filter-label-padding: Sets the padding of the label\n */\n\n:host {\n\n --mds-filter-items-background-active: rgb(var(--tone-neutral-08));\n --mds-filter-items-background: rgb(var(--tone-neutral-09));\n --mds-filter-items-gap: 0.5rem;\n --mds-filter-items-padding: 0.5rem;\n --mds-filter-items-radius: 9999px;\n --mds-filter-label-padding: 0 1.5rem;\n gap: 0.25rem;\n\n display: grid;\n grid-auto-rows: -webkit-min-content;\n grid-auto-rows: min-content;\n}\n\n.reset {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-positive: 1;\n flex-grow: 1;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n\n.reset-button{\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(1, 0, 0, 1);\n\n transition-timing-function: cubic-bezier(1, 0, 0, 1);\n\n scale: 0;\n -webkit-transition-property: -webkit-transform;\n transition-property: -webkit-transform;\n transition-property: transform;\n transition-property: transform, -webkit-transform;\n}\n\n.reset-button-opened {\n scale: 1;\n}\n\n.items {\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: none;\n scrollbar-width: none;\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(1, 0, 0, 1);\n transition-timing-function: cubic-bezier(1, 0, 0, 1);\n\n background-color: var(--mds-filter-items-background);\n border-radius: var(--mds-filter-items-radius);\n display: -ms-flexbox;\n display: flex;\n gap: var(--mds-filter-items-gap);\n overflow: auto;\n padding: var(--mds-filter-items-padding);\n scroll-behavior: smooth;\n -webkit-scroll-snap-type: x mandatory;\n -ms-scroll-snap-type: x mandatory;\n scroll-snap-type: x mandatory;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n }\n\n.items::-webkit-scrollbar {\n display: none;\n}\n\n.label {\n padding: var(--mds-filter-label-padding);\n}\n\n.active {\n background-color: var(--mds-filter-items-background-active);\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .reset-button,\n .items {\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 .reset-button,\n .items {\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 .items {\n\n --mds-filter-items-background-active: rgb(var(--tone-neutral-10));\n --mds-filter-items-background: rgb(var(--tone-neutral-09));\n\n -webkit-box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n\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 .items {\n\n --mds-filter-items-background-active: rgb(var(--tone-neutral-10));\n --mds-filter-items-background: rgb(var(--tone-neutral-09));\n\n -webkit-box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n\n box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-filter-items-background-active: rgb(var(--tone-neutral-09));\n --mds-filter-items-background: rgb(var(--tone-neutral-10));\n }\n\n .items {\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 0 0 0 2px 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-filter-items-background-active: rgb(var(--tone-neutral-09));\n --mds-filter-items-background: rgb(var(--tone-neutral-10));\n }\n\n .items {\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n\n";
|
|
@@ -102,7 +102,7 @@ const MdsFilter = class {
|
|
|
102
102
|
this.changedEvent.emit({ children: items, value: this.itemsValues() });
|
|
103
103
|
}
|
|
104
104
|
render() {
|
|
105
|
-
return (index.h(index.Host, { key: '
|
|
105
|
+
return (index.h(index.Host, { key: '7215fb2de82e3f33a94ab1c101fc732a9a05cf27', "aria-label": this.label, role: "menubar" }, this.label && index.h("mds-text", { key: '4a95f76c175f7b9db14ea616a1556a17abe32ba1', class: "label", typography: "label" }, this.label), index.h("div", { key: '91a7cbd971f9bba667665a2119ab76fc2905d06d', class: clsx.clsx('items', this.active && 'active') }, index.h("slot", { key: 'f927719daa34281b0220d45e88dfbeea2a23560a' }), this.reset && index.h("div", { key: '8ec10d0b9d88a9808beb5cabc511d932820817a4', class: clsx.clsx('reset', this.active && 'reset-opened') }, index.h("mds-filter-item", { key: '22ea88c487a3f339fe9f1501a7bd30e484633671', selected: this.active, class: clsx.clsx('reset-button', this.active && 'reset-button-opened'), icon: "mi/baseline/close", onClick: this.resetItems })))));
|
|
106
106
|
}
|
|
107
107
|
get element() { return index.getElement(this); }
|
|
108
108
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-eccfa195.js');
|
|
6
6
|
|
|
7
7
|
const miRoundMenu = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zm0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zM3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1z"/></svg>`;
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-eccfa195.js');
|
|
6
6
|
|
|
7
7
|
const mdsHeaderCss = "@tailwind utilities;\n\n/**\n * @prop --mds-header-color: Sets the text color of the header and the mobile toggler icon\n * @prop --mds-header-hidden-bar-translate-inline: Sets translateY value for the appearance inline `mds-header-bar` element\n * @prop --mds-header-hidden-bar-translate-stripe: Sets translateY value for the appearance stripe `mds-header-bar` element\n * @prop --mds-header-icon-color: Sets the color of the icon toggler\n * @prop --mds-header-z-index: Sets the z-index of the modal\n */\n\n:host {\n\n --mds-header-color: rgb(var(--tone-neutral-02));\n --mds-header-hidden-bar-translate-inline: translateY(-150%);\n --mds-header-hidden-bar-translate-stripe: translateY(-110%);\n --mds-header-icon-color: var(--mds-header-color, rgb(var(--tone-neutral-02)));\n --mds-header-modal-icon-color: rgb(var(--tone-neutral));\n --mds-header-z-index: var(--magma-header-z-index, 1000);\n\n color: var(--mds-header-color);\n fill: var(--mds-header-icon-color);\n position: relative;\n z-index: var(--mds-header-z-index);\n}\n\n.menu {\n -ms-flex-align: center;\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n}\n\n.modal {\n\n --mds-modal-close-icon-color: var(--mds-header-modal-icon-color);\n\n z-index: var(--mds-header-z-index);\n}\n\n:host([appearance=\"inline\"]) ::slotted(mds-header-bar){\n\n margin-top: 1.5rem;\n\n margin-bottom: 1.5rem;\n\n max-width: 1280px;\n\n border-radius: 0.5rem;\n\n width: calc(100% - 3rem);\n}\n\n@media (max-width: 1023px){\n\n :host([menu=\"desktop\"]) .menu{\n\n display: none;\n }\n}\n\n@media (min-width: 1024px){\n\n :host([menu=\"mobile\"]) .menu{\n\n display: none;\n }\n}\n\n:host([menu=\"none\"]) .menu {\n display: none;\n}\n\n:host([visibility=\"hidden\"][appearance=\"stripe\"]) ::slotted(mds-header-bar) {\n -webkit-transform: var(--mds-header-hidden-bar-translate-stripe);\n transform: var(--mds-header-hidden-bar-translate-stripe);\n}\n\n:host([visibility=\"hidden\"][appearance=\"inline\"]) ::slotted(mds-header-bar) {\n -webkit-transform: var(--mds-header-hidden-bar-translate-inline);\n transform: var(--mds-header-hidden-bar-translate-inline);\n}\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-header-modal-icon-color: rgb(var(--tone-neutral-01));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-header-modal-icon-color: rgb(var(--tone-neutral-01));\n }\n }\n}\n\n";
|
|
8
8
|
const MdsHeaderStyle0 = mdsHeaderCss;
|
|
@@ -81,6 +81,8 @@ const MdsHeader = class {
|
|
|
81
81
|
this.appearance = (_b = this.sanitizedAppearance[0]) !== null && _b !== void 0 ? _b : this.appearance;
|
|
82
82
|
};
|
|
83
83
|
this.handleScroll = () => {
|
|
84
|
+
if (typeof window === 'undefined')
|
|
85
|
+
return;
|
|
84
86
|
if (this.autoHide) {
|
|
85
87
|
this.handleVisibility();
|
|
86
88
|
}
|
|
@@ -142,8 +144,8 @@ const MdsHeader = class {
|
|
|
142
144
|
}
|
|
143
145
|
}
|
|
144
146
|
render() {
|
|
145
|
-
return (index.h(index.Host, { key: '
|
|
146
|
-
index.h("div", { key: '
|
|
147
|
+
return (index.h(index.Host, { key: '9595147f138d9d0e5abd37fe62687b6fcb9ae0fa' }, index.h("slot", { key: 'c14dbedd7b3e3a9b58ec7b32aaa3b65c35ce0308' }), this.hasMenu &&
|
|
148
|
+
index.h("div", { key: 'e9428c80b5cccadebcd7a82b66eb6fb35c80b039', class: "menu", part: "menu" }, index.h("mds-modal", { key: '93ce4d76d087adff4982b0a74874c4ca2a25d432', class: "modal", opened: this.isOpened, onMdsModalClose: this.close, position: "right" }, index.h("slot", { key: 'ee8647c583f3203314da681e5b8aec4d15332157', name: "menu" })))));
|
|
147
149
|
}
|
|
148
150
|
get host() { return index.getElement(this); }
|
|
149
151
|
static get watchers() { return {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const aria = require('./aria-
|
|
5
|
+
const index = require('./index-eccfa195.js');
|
|
6
|
+
const aria = require('./aria-0b8ae8a3.js');
|
|
7
7
|
|
|
8
8
|
const miOutlineHelp = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"/></svg>`;
|
|
9
9
|
|
|
10
|
-
const mdsHelpCss = "@tailwind components; @tailwind utilities;
|
|
10
|
+
const mdsHelpCss = "@tailwind components; @tailwind utilities; :host{--mds-help-tooltip-width:fit-content;--mds-help-tooltip-max-width:280px;--mds-help-tooltip-delay:0.25s;margin-left:0.25rem;color:rgb(var(--tone-neutral-03));cursor:help;display:-ms-inline-flexbox;display:inline-flex;fill:currentcolor;-ms-flex-pack:start;justify-content:flex-start;overflow:visible;position:relative}i{display:-ms-flexbox;display:flex}i svg{aspect-ratio:1/1;height:100%;width:100%}mds-tooltip{--mds-tooltip-delay:var(--mds-help-tooltip-delay);max-width:var(--mds-help-tooltip-max-width);min-width:var(--mds-help-tooltip-width)}mds-tooltip::part(text){max-width:var(--mds-help-tooltip-max-width);min-width:var(--mds-help-tooltip-width);width:var(--mds-help-tooltip-width)}mds-icon,i{height:1rem;width:1rem;fill:inherit}";
|
|
11
11
|
const MdsHelpStyle0 = mdsHelpCss;
|
|
12
12
|
|
|
13
13
|
const MdsHelp = class {
|
|
@@ -22,7 +22,7 @@ const MdsHelp = class {
|
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
24
|
var _a;
|
|
25
|
-
return (index.h(index.Host, { key: '
|
|
25
|
+
return (index.h(index.Host, { key: '93b3a04a7919b2e5c0297e54a94ef40955a918d2' }, index.h("mds-icon", { key: '4fc245e92c28392f5090b2d3025f1061e876e1cf', id: this.id, name: (_a = this.icon) !== null && _a !== void 0 ? _a : miOutlineHelp }), index.h("mds-tooltip", { key: 'bfad74ee1597eafc0d2ab21b37e16fcddf3d9cc8', placement: this.placement, autoPlacement: this.autoPlacement, strategy: "fixed", target: '#' + this.id }, index.h("slot", { key: 'd7cd7b45875df092dd2889fd6f77c086ae09a838' }))));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
MdsHelp.style = MdsHelpStyle0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-eccfa195.js');
|
|
6
6
|
const arrowBack = require('./arrow-back-58b847f5.js');
|
|
7
7
|
const arrowForward = require('./arrow-forward-8a81fb5c.js');
|
|
8
8
|
const clsx = require('./clsx-fc789adc.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-eccfa195.js');
|
|
6
6
|
|
|
7
7
|
const mdsHrCss = "\n@tailwind utilities;\n\n:host{\n\n height: 0.25rem;\n\n width: 100%;\n\n border-radius: 0.25rem;\n\n background-color: rgb(var(--tone-neutral-08));\n border: 0;\n display: -ms-flexbox;\n display: flex;\n}\n\n@container style(--magma-pref-theme: dark) {\n :host {\n background-color: rgb(var(--tone-neutral-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n background-color: rgb(var(--tone-neutral-07));\n }\n }\n}\n\n";
|
|
8
8
|
const MdsHrStyle0 = mdsHrCss;
|
|
@@ -2,16 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const aria = require('./aria-
|
|
5
|
+
const index = require('./index-eccfa195.js');
|
|
6
|
+
const aria = require('./aria-0b8ae8a3.js');
|
|
7
7
|
const panorama = require('./panorama-7cd0b638.js');
|
|
8
|
-
const locale = require('./locale-
|
|
9
|
-
require('./_commonjsHelpers-
|
|
8
|
+
const locale = require('./locale-9add6645.js');
|
|
9
|
+
require('./_commonjsHelpers-e6ff1d6e.js');
|
|
10
10
|
|
|
11
11
|
const miBaselineBrokenImage = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21 5v6.59l-3-3.01l-4 4.01l-4-4l-4 4l-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99l4-4l4 4l4-3.99z"/></svg>`;
|
|
12
12
|
|
|
13
|
-
const clickToLoad$
|
|
13
|
+
const clickToLoad$3 = "Φόρτωση εικόνας";
|
|
14
|
+
const localeEl = {
|
|
15
|
+
clickToLoad: clickToLoad$3
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const clickToLoad$2 = "Load image";
|
|
14
19
|
const localeEn = {
|
|
20
|
+
clickToLoad: clickToLoad$2
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const clickToLoad$1 = "Cargar imagen";
|
|
24
|
+
const localeEs = {
|
|
15
25
|
clickToLoad: clickToLoad$1
|
|
16
26
|
};
|
|
17
27
|
|
|
@@ -20,7 +30,7 @@ const localeIt = {
|
|
|
20
30
|
clickToLoad: clickToLoad
|
|
21
31
|
};
|
|
22
32
|
|
|
23
|
-
const mdsImgCss = "@tailwind components; @tailwind utilities; :host{--mds-img-background:rgb(var(--
|
|
33
|
+
const mdsImgCss = "@tailwind components; @tailwind utilities; :host{--mds-img-background:rgb(var(--variant-primary-03));--mds-img-color:rgb(var(--variant-primary-09));--mds-img-icon-color:rgb(var(--variant-primary-07));--mds-img-error-background:rgb(var(--status-error-09));--mds-img-error-color:rgb(var(--status-error-04));--mds-img-error-icon-color:rgb(var(--status-error-06));display:-ms-flexbox;display:flex;-o-object-fit:cover;object-fit:cover;overflow:hidden;position:relative}img{width:100%;-o-object-fit:inherit;object-fit:inherit}.alt-text-container{gap:1.5rem;padding:1.5rem;-ms-flex-align:center;align-items:center;background-color:var(--mds-img-background);color:var(--mds-img-color);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;text-align:center}.alt-text-container--absolute{cursor:pointer;inset:0;position:absolute}.alt-text-container--error{--mds-img-background:var(--mds-img-error-background);--mds-img-color:var(--mds-img-error-color);--mds-img-icon-color:var(--mds-img-error-icon-color);cursor:not-allowed}.alt-text-container--default-aspect-ratio{cursor:pointer;width:100%}.click-to-load{pointer-events:none}.icon{width:2.25rem;fill:var(--mds-img-icon-color)}";
|
|
24
34
|
const MdsImgStyle0 = mdsImgCss;
|
|
25
35
|
|
|
26
36
|
const MdsImg = class {
|
|
@@ -30,7 +40,9 @@ const MdsImg = class {
|
|
|
30
40
|
this.loadSuccessEvent = index.createEvent(this, "mdsImgLoadSuccess", 7);
|
|
31
41
|
this.consumptionMode = 'high';
|
|
32
42
|
this.t = new locale.Locale({
|
|
43
|
+
el: localeEl,
|
|
33
44
|
en: localeEn,
|
|
45
|
+
es: localeEs,
|
|
34
46
|
it: localeIt,
|
|
35
47
|
});
|
|
36
48
|
this.onSuccess = (ev) => {
|
|
@@ -70,6 +82,7 @@ const MdsImg = class {
|
|
|
70
82
|
};
|
|
71
83
|
this.imageConsumptionLoaded = false;
|
|
72
84
|
this.imageError = false;
|
|
85
|
+
this.language = undefined;
|
|
73
86
|
this.alt = '';
|
|
74
87
|
this.crossorigin = 'use-credentials';
|
|
75
88
|
this.height = undefined;
|
|
@@ -81,6 +94,9 @@ const MdsImg = class {
|
|
|
81
94
|
this.srcsetConsumption = undefined;
|
|
82
95
|
this.width = undefined;
|
|
83
96
|
}
|
|
97
|
+
async updateLang() {
|
|
98
|
+
this.language = this.t.lang(this.host);
|
|
99
|
+
}
|
|
84
100
|
srcsetConsumptionHandler(newValue) {
|
|
85
101
|
this.srcsetConsumptionData = this.formatConsumptionData(newValue);
|
|
86
102
|
}
|
|
@@ -109,7 +125,7 @@ const MdsImg = class {
|
|
|
109
125
|
if (this.srcsetConsumptionData) {
|
|
110
126
|
if (this.consumptionMode === 'low') {
|
|
111
127
|
return (index.h(index.Host, { "aria-label": this.alt, role: "img", onClick: () => { this.imageConsumptionLoaded = true; } }, index.h("div", { class: "contrast-area-50" }), !this.imageConsumptionLoaded
|
|
112
|
-
? index.h("div", { class: "alt-text-container alt-text-container--default-aspect-ratio" }, index.h("mds-icon", { class: "icon", name: panorama.miBaselinePanorama }), index.h("mds-text", { class: "alt-text",
|
|
128
|
+
? index.h("div", { "aria-hidden": "true", class: "alt-text-container alt-text-container--default-aspect-ratio" }, index.h("mds-icon", { class: "icon", name: panorama.miBaselinePanorama }), index.h("mds-text", { class: "alt-text", typography: "h6" }, index.h("i", null, this.alt)), index.h("mds-button", { "aria-hidden": "true", role: "none", class: "click-to-load", tabIndex: -1, variant: "light", tone: "ghost" }, this.t.get('clickToLoad')))
|
|
113
129
|
: index.h("img", { alt: this.alt, "aria-hidden": "true", height: this.height, loading: this.loading, onError: this.onError, onLoad: this.onSuccess, part: "media", sizes: this.sizes, src: (_a = this.srcsetConsumptionData[this.consumptionMode]) !== null && _a !== void 0 ? _a : this.src, srcset: this.srcset, width: this.width })));
|
|
114
130
|
}
|
|
115
131
|
return (index.h(index.Host, { "aria-label": this.alt, role: "img" }, index.h("div", { class: "contrast-area-50" }), index.h("img", { alt: this.alt, "aria-hidden": "true", height: this.height, loading: this.loading, onError: this.onError, onLoad: this.onSuccess, part: "media", sizes: this.sizes, src: (_b = this.srcsetConsumptionData[this.consumptionMode]) !== null && _b !== void 0 ? _b : this.src, srcset: this.srcset, width: this.width })));
|