@maggioli-design-system/magma 1.0.0-beta → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -226
- package/dist/cjs/{_commonjsHelpers-0192c5b3.js → _commonjsHelpers-e6ff1d6e.js} +0 -5
- package/dist/cjs/{aria-8237fdab.js → aria-0b8ae8a3.js} +18 -2
- package/dist/cjs/file-extensions-cd2fa955.js +126 -0
- package/dist/cjs/{floating-ui.dom.esm-58e05c82.js → floating-ui.dom.esm-4d912aff.js} +484 -40
- package/dist/cjs/{index-9808fc83.js → index-eccfa195.js} +24 -297
- package/dist/cjs/{keyboard-manager-fa9d665b.js → keyboard-manager-952eef32.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/locale-9add6645.js +845 -0
- package/dist/cjs/locale.it-e5e117c5.js +466 -0
- package/dist/cjs/magma-components.cjs.js +3 -3
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +17 -13
- package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/mds-author.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +3 -3
- package/dist/cjs/mds-badge.cjs.entry.js +2 -2
- package/dist/cjs/mds-banner.cjs.entry.js +24 -8
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +39 -4
- package/dist/cjs/mds-button_3.cjs.entry.js +53 -20
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +1 -1
- package/dist/cjs/mds-chip.cjs.entry.js +83 -28
- package/dist/cjs/mds-details.cjs.entry.js +3 -3
- package/dist/cjs/{mds-dropdown_2.cjs.entry.js → mds-dropdown.cjs.entry.js} +12 -890
- package/dist/cjs/mds-entity.cjs.entry.js +5 -5
- package/dist/cjs/mds-file-preview.cjs.entry.js +44 -11
- package/dist/cjs/mds-file.cjs.entry.js +44 -13
- package/dist/cjs/mds-filter-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-filter.cjs.entry.js +2 -2
- package/dist/cjs/mds-header-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-header.cjs.entry.js +5 -3
- package/dist/cjs/mds-help.cjs.entry.js +4 -4
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/mds-hr.cjs.entry.js +1 -1
- package/dist/cjs/mds-img.cjs.entry.js +23 -7
- package/dist/cjs/mds-input-field.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-range.cjs.entry.js +6 -5
- package/dist/cjs/mds-input-select.cjs.entry.js +8 -8
- package/dist/cjs/mds-input-switch.cjs.entry.js +9 -8
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +36 -12
- package/dist/cjs/mds-input-upload.cjs.entry.js +159 -31
- package/dist/cjs/mds-input.cjs.entry.js +44 -16
- package/dist/cjs/mds-kpi-item.cjs.entry.js +6 -4
- package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
- package/dist/cjs/mds-label.cjs.entry.js +33 -5
- package/dist/cjs/mds-list-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-list.cjs.entry.js +2 -2
- package/dist/cjs/mds-modal.cjs.entry.js +6 -4
- package/dist/cjs/mds-note.cjs.entry.js +38 -3
- package/dist/cjs/mds-notification.cjs.entry.js +4 -3
- package/dist/cjs/mds-paginator-item.cjs.entry.js +5 -5
- package/dist/cjs/mds-paginator.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-animation.cjs.entry.js +9 -7
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +9 -7
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +9 -7
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +11 -4
- package/dist/cjs/mds-pref-language.cjs.entry.js +855 -12
- package/dist/cjs/mds-pref-theme.cjs.entry.js +14 -8
- package/dist/cjs/mds-pref.cjs.entry.js +8 -4
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-progress.cjs.entry.js +10 -4
- package/dist/cjs/mds-push-notification.cjs.entry.js +87 -19
- package/dist/cjs/mds-push-notifications.cjs.entry.js +1 -1
- package/dist/cjs/mds-quote.cjs.entry.js +3 -2
- package/dist/cjs/mds-separator.cjs.entry.js +2 -2
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +8 -8
- package/dist/cjs/mds-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-row.cjs.entry.js +16 -3
- package/dist/cjs/mds-table.cjs.entry.js +18 -3
- package/dist/cjs/mds-text.cjs.entry.js +4 -2
- package/dist/cjs/mds-toast.cjs.entry.js +8 -4
- package/dist/cjs/mds-tooltip.cjs.entry.js +10 -11
- package/dist/cjs/mds-url-view.cjs.entry.js +55 -4
- package/dist/cjs/mds-usage.cjs.entry.js +3 -13
- package/dist/cjs/mds-video-wall.cjs.entry.js +5 -5
- package/dist/cjs/mds-zero.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -3
- package/dist/collection/common/aria.js +17 -1
- package/dist/collection/common/device.js +6 -0
- package/dist/collection/common/keyboard-manager.js +2 -2
- package/dist/collection/common/locale.js +17 -5
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +16 -12
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
- package/dist/collection/components/mds-avatar/mds-avatar.css +6 -6
- package/dist/collection/components/mds-badge/mds-badge.css +70 -72
- package/dist/collection/components/mds-banner/mds-banner.css +5 -5
- package/dist/collection/components/mds-banner/mds-banner.js +36 -2
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +46 -2
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +3 -0
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +1 -1
- package/dist/collection/components/mds-button/mds-button.css +147 -133
- package/dist/collection/components/mds-button/mds-button.js +4 -2
- package/dist/collection/components/mds-chip/mds-chip.css +231 -33
- package/dist/collection/components/mds-chip/mds-chip.js +167 -48
- package/dist/collection/components/mds-chip/test/mds-chip.stories.js +27 -8
- package/dist/collection/components/mds-details/mds-details.css +4 -3
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +9 -7
- package/dist/collection/components/mds-entity/mds-entity.js +4 -4
- package/dist/collection/components/mds-entity/test/mds-entity.stories.js +3 -3
- package/dist/collection/components/mds-file/mds-file.js +45 -22
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +126 -82
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +49 -3
- package/dist/collection/components/mds-filter/mds-filter.js +1 -1
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +1 -1
- package/dist/collection/components/mds-header/mds-header.js +4 -2
- package/dist/collection/components/mds-help/mds-help.css +4 -9
- package/dist/collection/components/mds-help/mds-help.js +2 -1
- package/dist/collection/components/mds-icon/mds-icon.js +2 -4
- package/dist/collection/components/mds-icon/services/icons-set.service.js +42 -9
- package/dist/collection/components/mds-icon/test/mds-icon.stories.js +15 -0
- package/dist/collection/components/mds-img/mds-img.css +3 -3
- package/dist/collection/components/mds-img/mds-img.js +32 -2
- package/dist/collection/components/mds-input/mds-input.css +4 -4
- package/dist/collection/components/mds-input/mds-input.js +40 -15
- package/dist/collection/components/mds-input/test/mds-input.stories.js +16 -7
- package/dist/collection/components/mds-input-field/mds-input-field.js +9 -9
- package/dist/collection/components/mds-input-range/mds-input-range.css +6 -6
- package/dist/collection/components/mds-input-range/mds-input-range.js +4 -3
- package/dist/collection/components/mds-input-range/test/mds-input-range.stories.js +4 -4
- package/dist/collection/components/mds-input-select/mds-input-select.css +12 -12
- package/dist/collection/components/mds-input-select/mds-input-select.js +11 -11
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +2 -2
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +6 -5
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +41 -7
- package/dist/collection/components/mds-input-upload/mds-input-upload.css +1 -1
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +41 -7
- package/dist/collection/components/mds-kpi/mds-kpi.js +1 -1
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +4 -4
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +5 -3
- package/dist/collection/components/mds-label/mds-label.css +2 -9
- package/dist/collection/components/mds-label/mds-label.js +44 -2
- package/dist/collection/components/mds-list/mds-list.js +1 -1
- package/dist/collection/components/mds-list-item/mds-list-item.js +1 -1
- package/dist/collection/components/mds-modal/mds-modal.js +5 -3
- package/dist/collection/components/mds-modal/test/mds-modal.stories.js +8 -4
- package/dist/collection/components/mds-note/mds-note.js +45 -1
- package/dist/collection/components/mds-notification/mds-notification.js +2 -1
- package/dist/collection/components/mds-paginator/mds-paginator.js +2 -2
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +3 -3
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +2 -2
- package/dist/collection/components/mds-pref/mds-pref.js +28 -2
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +32 -4
- package/dist/collection/components/mds-pref-animation/meta/dictionary.js +2 -2
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +32 -4
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +32 -4
- package/dist/collection/components/mds-pref-language/mds-pref-language.css +20 -2
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +47 -19
- package/dist/collection/components/mds-pref-language/meta/dictionary.js +2 -0
- package/dist/collection/components/mds-pref-language/test/mds-pref-language.stories.js +1 -1
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +38 -11
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +37 -5
- package/dist/collection/components/mds-price-table/test/mds-price-table.stories.js +1 -1
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +2 -0
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +4 -4
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +2 -2
- package/dist/collection/components/mds-progress/mds-progress.css +16 -16
- package/dist/collection/components/mds-progress/mds-progress.js +8 -2
- package/dist/collection/components/mds-progress/test/mds-progress.stories.js +1 -1
- package/dist/collection/components/mds-push-notification/mds-push-notification.css +6 -6
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +36 -2
- package/dist/collection/components/mds-quote/mds-quote.js +26 -1
- package/dist/collection/components/mds-quote/test/mds-quote.stories.js +11 -0
- package/dist/collection/components/mds-spinner/mds-spinner.css +3 -3
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +1 -1
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
- package/dist/collection/components/mds-tab/mds-tab.css +1 -1
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +8 -8
- package/dist/collection/components/mds-table/mds-table.css +3 -3
- package/dist/collection/components/mds-table/mds-table.js +16 -1
- package/dist/collection/components/mds-table/test/mds-table.stories.js +5 -0
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.css +2 -6
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +7 -7
- package/dist/collection/components/mds-table-row/mds-table-row.css +59 -0
- package/dist/collection/components/mds-table-row/mds-table-row.js +26 -1
- package/dist/collection/components/mds-text/mds-text.js +6 -4
- package/dist/collection/components/mds-text/test/mds-text.stories.js +1 -1
- package/dist/collection/components/mds-toast/mds-toast.js +7 -3
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +8 -9
- package/dist/collection/components/mds-url-view/mds-url-view.js +45 -1
- package/dist/collection/components/mds-usage/mds-usage.css +14 -14
- package/dist/collection/components/mds-usage/mds-usage.js +1 -11
- package/dist/collection/components/mds-video-wall/mds-video-wall.css +19 -3
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +3 -3
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/collection/dictionary/file-extensions.js +114 -56
- package/dist/collection/dictionary/text.js +60 -1
- package/dist/collection/dictionary/variant.js +10 -1
- package/dist/components/aria.js +17 -2
- package/dist/components/floating-ui.dom.esm.js +484 -40
- package/dist/components/keyboard-manager.js +2 -2
- package/dist/components/locale.it.js +578 -0
- package/dist/components/locale.js +668 -4615
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +16 -12
- package/dist/components/mds-avatar2.js +2 -2
- package/dist/components/mds-badge2.js +1 -1
- package/dist/components/mds-banner.js +23 -5
- package/dist/components/mds-breadcrumb-item.js +2 -2
- package/dist/components/mds-breadcrumb.js +39 -3
- package/dist/components/mds-button2.js +5 -3
- package/dist/components/mds-chip.js +91 -29
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown2.js +9 -7
- package/dist/components/mds-entity.js +4 -4
- package/dist/components/mds-file-preview2.js +40 -6
- package/dist/components/mds-file.js +39 -8
- package/dist/components/mds-filter-item2.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header.js +4 -2
- package/dist/components/mds-help.js +5 -4
- package/dist/components/mds-icon2.js +44 -13
- package/dist/components/mds-img2.js +22 -4
- package/dist/components/mds-input-field.js +2 -2
- package/dist/components/mds-input-range.js +5 -4
- package/dist/components/mds-input-select.js +7 -7
- package/dist/components/mds-input-switch.js +7 -6
- package/dist/components/mds-input-tip-item2.js +36 -10
- package/dist/components/mds-input-upload.js +158 -28
- package/dist/components/mds-input2.js +42 -13
- package/dist/components/mds-kpi-item.js +5 -3
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +33 -4
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-modal2.js +5 -3
- package/dist/components/mds-note.js +38 -2
- package/dist/components/mds-notification.js +2 -1
- package/dist/components/mds-paginator-item2.js +3 -3
- package/dist/components/mds-paginator.js +2 -2
- package/dist/components/mds-pref-animation.js +9 -5
- package/dist/components/mds-pref-consumption.js +9 -5
- package/dist/components/mds-pref-contrast.js +9 -5
- package/dist/components/mds-pref-language-item.js +11 -2
- package/dist/components/mds-pref-language.js +863 -23
- package/dist/components/mds-pref-theme.js +14 -6
- package/dist/components/mds-pref.js +8 -2
- package/dist/components/mds-price-table-list.js +3 -3
- package/dist/components/mds-progress2.js +9 -3
- package/dist/components/mds-push-notification.js +89 -20
- package/dist/components/mds-quote.js +4 -2
- package/dist/components/mds-spinner2.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +2 -2
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab2.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-header-cell.js +7 -7
- package/dist/components/mds-table-row.js +17 -3
- package/dist/components/mds-table.js +17 -2
- package/dist/components/mds-text2.js +3 -1
- package/dist/components/mds-toast.js +7 -3
- package/dist/components/mds-tooltip2.js +8 -9
- package/dist/components/mds-url-view.js +54 -2
- package/dist/components/mds-usage.js +2 -12
- package/dist/components/mds-video-wall.js +4 -4
- package/dist/components/mds-zero.js +1 -1
- package/dist/documentation.json +929 -484
- package/dist/{components/_commonjsHelpers.js → esm/_commonjsHelpers-bdec4bbd.js} +1 -5
- package/dist/esm/{aria-0e390d9c.js → aria-ed9d415d.js} +17 -2
- package/dist/esm/file-extensions-97006435.js +123 -0
- package/dist/esm/{floating-ui.dom.esm-f7b7f919.js → floating-ui.dom.esm-b6d2205c.js} +484 -40
- package/dist/esm/{index-f08bac5f.js → index-44fd80a1.js} +24 -297
- package/dist/esm/{keyboard-manager-f3d273fc.js → keyboard-manager-9f287ab7.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/locale-149207d6.js +843 -0
- package/dist/esm/locale.it-94429e24.js +457 -0
- package/dist/esm/magma-components.js +4 -4
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +2 -2
- package/dist/esm/mds-accordion-timer.entry.js +17 -13
- package/dist/esm/mds-accordion.entry.js +1 -1
- package/dist/esm/mds-author.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +3 -3
- package/dist/esm/mds-badge.entry.js +2 -2
- package/dist/esm/mds-banner.entry.js +24 -8
- package/dist/esm/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm/mds-bibliography.entry.js +1 -1
- package/dist/esm/mds-breadcrumb-item.entry.js +4 -4
- package/dist/esm/mds-breadcrumb.entry.js +39 -4
- package/dist/esm/mds-button_3.entry.js +53 -20
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +1 -1
- package/dist/esm/mds-chip.entry.js +83 -28
- package/dist/esm/mds-details.entry.js +3 -3
- package/dist/esm/{mds-dropdown_2.entry.js → mds-dropdown.entry.js} +13 -890
- package/dist/esm/mds-entity.entry.js +5 -5
- package/dist/esm/mds-file-preview.entry.js +40 -7
- package/dist/esm/mds-file.entry.js +39 -8
- package/dist/esm/mds-filter-item.entry.js +3 -3
- package/dist/esm/mds-filter.entry.js +2 -2
- package/dist/esm/mds-header-bar.entry.js +1 -1
- package/dist/esm/mds-header.entry.js +5 -3
- package/dist/esm/mds-help.entry.js +4 -4
- package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm/mds-hr.entry.js +1 -1
- package/dist/esm/mds-img.entry.js +23 -7
- package/dist/esm/mds-input-field.entry.js +3 -3
- package/dist/esm/mds-input-range.entry.js +6 -5
- package/dist/esm/mds-input-select.entry.js +8 -8
- package/dist/esm/mds-input-switch.entry.js +9 -8
- package/dist/esm/mds-input-tip_2.entry.js +36 -12
- package/dist/esm/mds-input-upload.entry.js +159 -31
- package/dist/esm/mds-input.entry.js +44 -16
- package/dist/esm/mds-kpi-item.entry.js +6 -4
- package/dist/esm/mds-kpi.entry.js +2 -2
- package/dist/esm/mds-label.entry.js +33 -5
- package/dist/esm/mds-list-item.entry.js +2 -2
- package/dist/esm/mds-list.entry.js +2 -2
- package/dist/esm/mds-modal.entry.js +6 -4
- package/dist/esm/mds-note.entry.js +38 -3
- package/dist/esm/mds-notification.entry.js +4 -3
- package/dist/esm/mds-paginator-item.entry.js +5 -5
- package/dist/esm/mds-paginator.entry.js +3 -3
- package/dist/esm/mds-pref-animation.entry.js +9 -7
- package/dist/esm/mds-pref-consumption.entry.js +9 -7
- package/dist/esm/mds-pref-contrast.entry.js +9 -7
- package/dist/esm/mds-pref-language-item.entry.js +11 -4
- package/dist/esm/mds-pref-language.entry.js +855 -12
- package/dist/esm/mds-pref-theme.entry.js +14 -8
- package/dist/esm/mds-pref.entry.js +8 -4
- package/dist/esm/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm/mds-price-table-features.entry.js +1 -1
- package/dist/esm/mds-price-table-header.entry.js +1 -1
- package/dist/esm/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm/mds-price-table-list.entry.js +4 -4
- package/dist/esm/mds-price-table.entry.js +1 -1
- package/dist/esm/mds-progress.entry.js +10 -4
- package/dist/esm/mds-push-notification.entry.js +87 -19
- package/dist/esm/mds-push-notifications.entry.js +1 -1
- package/dist/esm/mds-quote.entry.js +3 -2
- package/dist/esm/mds-separator.entry.js +2 -2
- package/dist/esm/mds-stepper-bar-item.entry.js +3 -3
- package/dist/esm/mds-stepper-bar.entry.js +1 -1
- package/dist/esm/mds-tab-bar-item.entry.js +2 -2
- package/dist/esm/mds-tab-bar.entry.js +1 -1
- package/dist/esm/mds-tab_2.entry.js +2 -2
- package/dist/esm/mds-table-body.entry.js +1 -1
- package/dist/esm/mds-table-cell.entry.js +2 -2
- package/dist/esm/mds-table-footer.entry.js +1 -1
- package/dist/esm/mds-table-header-cell.entry.js +8 -8
- package/dist/esm/mds-table-header.entry.js +1 -1
- package/dist/esm/mds-table-row.entry.js +16 -3
- package/dist/esm/mds-table.entry.js +18 -3
- package/dist/esm/mds-text.entry.js +4 -2
- package/dist/esm/mds-toast.entry.js +8 -4
- package/dist/esm/mds-tooltip.entry.js +10 -11
- package/dist/esm/mds-url-view.entry.js +54 -3
- package/dist/esm/mds-usage.entry.js +3 -13
- package/dist/esm/mds-video-wall.entry.js +5 -5
- package/dist/esm/mds-zero.entry.js +2 -2
- package/dist/esm-es5/_commonjsHelpers-bdec4bbd.js +1 -0
- package/dist/esm-es5/aria-ed9d415d.js +1 -0
- package/dist/esm-es5/file-extensions-97006435.js +1 -0
- package/dist/esm-es5/floating-ui.dom.esm-b6d2205c.js +1 -0
- package/dist/esm-es5/index-44fd80a1.js +1 -0
- package/dist/esm-es5/{keyboard-manager-f3d273fc.js → keyboard-manager-9f287ab7.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/locale-149207d6.js +6 -0
- package/dist/esm-es5/locale.it-94429e24.js +1 -0
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +1 -1
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +1 -1
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner.entry.js +1 -1
- package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm-es5/mds-bibliography.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +1 -1
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +1 -1
- package/dist/esm-es5/mds-chip.entry.js +1 -1
- package/dist/esm-es5/mds-details.entry.js +1 -1
- package/dist/esm-es5/mds-dropdown.entry.js +1 -0
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +2 -2
- package/dist/esm-es5/mds-file.entry.js +3 -3
- package/dist/esm-es5/mds-filter-item.entry.js +1 -1
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-header-bar.entry.js +1 -1
- package/dist/esm-es5/mds-header.entry.js +1 -1
- package/dist/esm-es5/mds-help.entry.js +1 -1
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +1 -1
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-select.entry.js +1 -1
- package/dist/esm-es5/mds-input-switch.entry.js +1 -1
- package/dist/esm-es5/mds-input-tip_2.entry.js +1 -1
- package/dist/esm-es5/mds-input-upload.entry.js +1 -1
- package/dist/esm-es5/mds-input.entry.js +1 -1
- package/dist/esm-es5/mds-kpi-item.entry.js +1 -1
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +1 -1
- package/dist/esm-es5/mds-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-note.entry.js +1 -1
- package/dist/esm-es5/mds-notification.entry.js +1 -1
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +1 -1
- package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
- package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
- package/dist/esm-es5/mds-pref-contrast.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language-item.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme.entry.js +1 -1
- package/dist/esm-es5/mds-pref.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress.entry.js +1 -1
- package/dist/esm-es5/mds-push-notification.entry.js +1 -1
- package/dist/esm-es5/mds-push-notifications.entry.js +1 -1
- package/dist/esm-es5/mds-quote.entry.js +1 -1
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab_2.entry.js +1 -1
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-cell.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +1 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
- package/dist/esm-es5/mds-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/esm-es5/mds-table.entry.js +1 -1
- package/dist/esm-es5/mds-text.entry.js +1 -1
- package/dist/esm-es5/mds-toast.entry.js +1 -1
- package/dist/esm-es5/mds-tooltip.entry.js +1 -1
- package/dist/esm-es5/mds-url-view.entry.js +1 -1
- package/dist/esm-es5/mds-usage.entry.js +1 -1
- package/dist/esm-es5/mds-video-wall.entry.js +1 -1
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/hydrate/index.d.ts +6 -0
- package/dist/hydrate/index.js +3705 -5972
- package/dist/hydrate/index.mjs +3705 -5972
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/magma-components.js +1 -1
- package/dist/magma-components/p-03c13bdf.system.entry.js +1 -0
- package/dist/magma-components/p-0492e275.entry.js +1 -0
- package/dist/magma-components/p-04c61fa1.system.entry.js +1 -0
- package/dist/magma-components/p-05bf15c7.entry.js +1 -0
- package/dist/magma-components/{p-5f0f0448.system.entry.js → p-07253a21.system.entry.js} +1 -1
- package/dist/magma-components/p-086c8147.entry.js +1 -0
- package/dist/magma-components/p-0b2a9068.entry.js +1 -0
- package/dist/magma-components/p-0b6b57fb.js +1 -0
- package/dist/magma-components/p-0b77bb1c.system.entry.js +1 -0
- package/dist/magma-components/p-0f3e17bc.js +1 -0
- package/dist/magma-components/{p-7d460c08.system.entry.js → p-0f6c6757.system.entry.js} +1 -1
- package/dist/magma-components/p-13c6c73b.entry.js +1 -0
- package/dist/magma-components/p-13ce8757.system.entry.js +1 -0
- package/dist/magma-components/p-1400e3c3.system.entry.js +1 -0
- package/dist/magma-components/p-1581b10e.system.entry.js +1 -0
- package/dist/magma-components/{p-8980cf86.system.entry.js → p-17d63927.system.entry.js} +1 -1
- package/dist/magma-components/{p-ae612034.system.entry.js → p-19114f13.system.entry.js} +1 -1
- package/dist/magma-components/{p-53f8a981.entry.js → p-19c55d3e.entry.js} +1 -1
- package/dist/magma-components/{p-5258907f.system.entry.js → p-1b436c7c.system.entry.js} +1 -1
- package/dist/magma-components/{p-2f7dd737.system.entry.js → p-1bb949c2.system.entry.js} +1 -1
- package/dist/magma-components/p-217aed60.system.entry.js +1 -0
- package/dist/magma-components/p-21b1acec.system.js +1 -0
- package/dist/magma-components/{p-f62b4856.entry.js → p-22954bd0.entry.js} +1 -1
- package/dist/magma-components/{p-67f8aea1.entry.js → p-23c0e5bb.entry.js} +1 -1
- package/dist/magma-components/p-247e25c9.entry.js +1 -0
- package/dist/magma-components/p-2547e1c5.entry.js +1 -0
- package/dist/magma-components/p-25602048.system.entry.js +1 -0
- package/dist/magma-components/{p-dbde7f2c.system.entry.js → p-27923d25.system.entry.js} +1 -1
- package/dist/magma-components/p-2a0bffc8.entry.js +1 -0
- package/dist/magma-components/p-2bedaf5f.system.entry.js +1 -0
- package/dist/magma-components/p-2d5135c7.entry.js +1 -0
- package/dist/magma-components/p-2d58b5b8.system.entry.js +1 -0
- package/dist/magma-components/{p-b4c84e8e.entry.js → p-2e3e7ae9.entry.js} +1 -1
- package/dist/magma-components/{p-12c9e7c1.system.entry.js → p-30326380.system.entry.js} +1 -1
- package/dist/magma-components/p-304b1738.entry.js +1 -0
- package/dist/magma-components/{p-c7267a25.system.entry.js → p-30671bb6.system.entry.js} +1 -1
- package/dist/magma-components/p-31ad7005.entry.js +1 -0
- package/dist/magma-components/p-3213bed3.js +1 -0
- package/dist/magma-components/{p-06bbdfbc.system.js → p-32f55263.system.js} +1 -1
- package/dist/magma-components/{p-3ebb87fd.system.entry.js → p-332ef4c5.system.entry.js} +1 -1
- package/dist/magma-components/p-340717b1.entry.js +1 -0
- package/dist/magma-components/{p-19ffbf29.system.entry.js → p-3545d28a.system.entry.js} +1 -1
- package/dist/magma-components/p-3759b1b2.system.js +6 -0
- package/dist/magma-components/{p-57e85f09.entry.js → p-3c4114a1.entry.js} +1 -1
- package/dist/magma-components/{p-e1ae3377.entry.js → p-3c7584e0.entry.js} +1 -1
- package/dist/magma-components/p-3d9b24ed.system.entry.js +1 -0
- package/dist/magma-components/p-3dcee09b.entry.js +1 -0
- package/dist/magma-components/p-413e1924.entry.js +8 -0
- package/dist/magma-components/{p-7ff9ee47.system.entry.js → p-41b0013f.system.entry.js} +1 -1
- package/dist/magma-components/p-42aaebea.entry.js +1 -0
- package/dist/magma-components/p-42c66e40.entry.js +1 -0
- package/dist/magma-components/{p-eba07611.system.entry.js → p-438c83a4.system.entry.js} +1 -1
- package/dist/magma-components/p-4509e5dd.entry.js +1 -0
- package/dist/magma-components/{p-8b576fd8.entry.js → p-46df472e.entry.js} +1 -1
- package/dist/magma-components/{p-12a6692f.entry.js → p-47044832.entry.js} +1 -1
- package/dist/magma-components/{p-1a2e5af9.entry.js → p-4a57c918.entry.js} +1 -1
- package/dist/magma-components/p-4d469a01.entry.js +1 -0
- package/dist/magma-components/{p-d41cdc56.entry.js → p-4e0c9d47.entry.js} +1 -1
- package/dist/magma-components/{p-d219007f.system.entry.js → p-4f52b15e.system.entry.js} +1 -1
- package/dist/magma-components/p-5100bf68.system.entry.js +1 -0
- package/dist/magma-components/p-55842900.entry.js +1 -0
- package/dist/magma-components/{p-8f8fd8f5.entry.js → p-5629c1f5.entry.js} +1 -1
- package/dist/magma-components/p-5818b17b.system.entry.js +1 -0
- package/dist/magma-components/p-5a2c6a26.system.entry.js +1 -0
- package/dist/magma-components/p-5af31a47.system.js +1 -0
- package/dist/magma-components/{p-0e54cbdd.entry.js → p-5d39c94f.entry.js} +1 -1
- package/dist/magma-components/{p-8c185de1.system.entry.js → p-5e063b6a.system.entry.js} +1 -1
- package/dist/magma-components/{p-32c2e662.system.entry.js → p-5fbe3d63.system.entry.js} +1 -1
- package/dist/magma-components/{p-eb1dcb87.system.entry.js → p-600f012f.system.entry.js} +1 -1
- package/dist/magma-components/{p-3013e2cb.entry.js → p-605913ba.entry.js} +1 -1
- package/dist/magma-components/p-60ab906d.entry.js +1 -0
- package/dist/magma-components/{p-945820db.system.entry.js → p-62ac240e.system.entry.js} +1 -1
- package/dist/magma-components/{p-00c6b918.system.entry.js → p-63e3f820.system.entry.js} +1 -1
- package/dist/magma-components/p-65ba0450.entry.js +1 -0
- package/dist/magma-components/p-6617f185.entry.js +1 -0
- package/dist/magma-components/p-665f05ca.system.entry.js +1 -0
- package/dist/magma-components/p-66ef6f68.system.entry.js +1 -0
- package/dist/magma-components/{p-d1f52b0b.system.js → p-6803cf8d.system.js} +1 -1
- package/dist/magma-components/p-694ac497.entry.js +1 -0
- package/dist/magma-components/p-6a2ec000.entry.js +1 -0
- package/dist/magma-components/p-6aed6b97.system.entry.js +1 -0
- package/dist/magma-components/p-6c4c3d44.system.entry.js +1 -0
- package/dist/magma-components/{p-f43e59d4.entry.js → p-6dc71639.entry.js} +1 -1
- package/dist/magma-components/{p-63e8bc17.system.entry.js → p-6f15b2d9.system.entry.js} +1 -1
- package/dist/magma-components/{p-7f235611.system.entry.js → p-71601583.system.entry.js} +1 -1
- package/dist/magma-components/p-759c9af3.entry.js +1 -0
- package/dist/magma-components/{p-b5f501d2.system.entry.js → p-782313bb.system.entry.js} +1 -1
- package/dist/magma-components/p-7a7220e5.entry.js +1 -0
- package/dist/magma-components/p-7ad5eeb3.system.entry.js +1 -0
- package/dist/magma-components/p-7affff90.system.entry.js +1 -0
- package/dist/magma-components/p-810ba60f.system.entry.js +1 -0
- package/dist/magma-components/{p-5ddef57f.entry.js → p-813176b0.entry.js} +1 -1
- package/dist/magma-components/p-84a3bc2b.system.entry.js +1 -0
- package/dist/magma-components/p-85aa8e05.js +1 -0
- package/dist/magma-components/p-85e7baee.entry.js +1 -0
- package/dist/magma-components/{p-20143ec9.entry.js → p-892e949c.entry.js} +1 -1
- package/dist/magma-components/p-893a87dc.system.entry.js +1 -0
- package/dist/magma-components/p-89f9e0d2.entry.js +1 -0
- package/dist/magma-components/{p-0349e303.system.entry.js → p-8fe9a0a2.system.entry.js} +1 -1
- package/dist/magma-components/p-917ba0e2.entry.js +1 -0
- package/dist/magma-components/p-94db8071.system.js +1 -0
- package/dist/magma-components/p-96afff9f.system.entry.js +1 -0
- package/dist/magma-components/p-96d07c9f.system.entry.js +1 -0
- package/dist/magma-components/p-96e60eca.system.entry.js +1 -0
- package/dist/magma-components/{p-c4b093c4.entry.js → p-9bd6657b.entry.js} +1 -1
- package/dist/magma-components/p-9bd9e612.system.entry.js +1 -0
- package/dist/magma-components/p-9c7039f0.entry.js +1 -0
- package/dist/magma-components/p-9d991391.entry.js +1 -0
- package/dist/magma-components/p-9df056cb.entry.js +1 -0
- package/dist/magma-components/p-a191a987.entry.js +1 -0
- package/dist/magma-components/{p-99678cdd.system.entry.js → p-a1f69741.system.entry.js} +1 -1
- package/dist/magma-components/{p-36c13a31.entry.js → p-a306ff28.entry.js} +1 -1
- package/dist/magma-components/p-a44d3db9.entry.js +1 -0
- package/dist/magma-components/p-a47aae12.entry.js +1 -0
- package/dist/magma-components/p-a4fc1b0b.entry.js +1 -0
- package/dist/magma-components/p-a557bad7.system.entry.js +1 -0
- package/dist/magma-components/p-a9432fee.system.entry.js +1 -0
- package/dist/magma-components/p-a9f8f986.system.entry.js +9 -0
- package/dist/magma-components/p-aa133f48.entry.js +1 -0
- package/dist/magma-components/p-aa24e213.system.entry.js +1 -0
- package/dist/magma-components/{p-e49f99c2.entry.js → p-aa8999ba.entry.js} +1 -1
- package/dist/magma-components/p-ac7403b5.system.js +1 -0
- package/dist/magma-components/{p-8321c0d3.entry.js → p-ac97dd43.entry.js} +1 -1
- package/dist/magma-components/p-ae0b6dcb.system.entry.js +1 -0
- package/dist/magma-components/{p-2a670d3c.system.entry.js → p-ae0c3e38.system.entry.js} +1 -1
- package/dist/magma-components/{p-8323a952.system.entry.js → p-aead7eab.system.entry.js} +1 -1
- package/dist/magma-components/p-b0868749.entry.js +1 -0
- package/dist/magma-components/p-b0bb702b.entry.js +1 -0
- package/dist/magma-components/p-b44f3e19.entry.js +1 -0
- package/dist/magma-components/{p-3d741487.entry.js → p-b458a7b7.entry.js} +1 -1
- package/dist/magma-components/p-b5551799.system.entry.js +1 -0
- package/dist/magma-components/p-b5a65fcd.system.js +1 -0
- package/dist/magma-components/p-b62d164b.system.entry.js +1 -0
- package/dist/magma-components/{p-efdb9fda.entry.js → p-b6cc1d20.entry.js} +1 -1
- package/dist/magma-components/p-b7889230.system.entry.js +1 -0
- package/dist/magma-components/{p-ec8975f3.entry.js → p-b8fcf897.entry.js} +1 -1
- package/dist/magma-components/{p-73ccc008.entry.js → p-bbe19d86.entry.js} +1 -1
- package/dist/magma-components/p-bd7c0f2b.entry.js +1 -0
- package/dist/magma-components/p-c0611d00.system.entry.js +1 -0
- package/dist/magma-components/{p-cd60481a.system.entry.js → p-c2291312.system.entry.js} +1 -1
- package/dist/magma-components/{p-0b471b37.system.entry.js → p-c2c1ca38.system.entry.js} +1 -1
- package/dist/magma-components/p-c310b41f.js +6 -0
- package/dist/magma-components/p-c3b57b65.entry.js +1 -0
- package/dist/magma-components/{p-f0bf8d7e.entry.js → p-c55796f6.entry.js} +1 -1
- package/dist/magma-components/p-c6616cf4.entry.js +1 -0
- package/dist/magma-components/p-c6f72257.entry.js +1 -0
- package/dist/magma-components/p-c7d97a3c.entry.js +1 -0
- package/dist/magma-components/p-c94628eb.system.js +2 -0
- package/dist/magma-components/p-d06b650f.entry.js +1 -0
- package/dist/magma-components/{p-bebaf8c9.system.entry.js → p-d239736c.system.entry.js} +1 -1
- package/dist/magma-components/p-d3f2a762.system.entry.js +1 -0
- package/dist/magma-components/p-d4a14ac6.entry.js +1 -0
- package/dist/magma-components/{p-adafaeb1.system.entry.js → p-d4ad6446.system.entry.js} +1 -1
- package/dist/magma-components/{p-5f3b296e.system.entry.js → p-d4f60172.system.entry.js} +1 -1
- package/dist/magma-components/p-d7fe5fb4.entry.js +1 -0
- package/dist/magma-components/p-dd0f6f83.entry.js +1 -0
- package/dist/magma-components/{p-0a4fcd1d.system.entry.js → p-dd7b49e7.system.entry.js} +1 -1
- package/dist/magma-components/p-ddb91a8e.system.entry.js +1 -0
- package/dist/magma-components/p-de21d32b.system.entry.js +1 -0
- package/dist/magma-components/p-dea5d36c.entry.js +1 -0
- package/dist/magma-components/{p-bf66db4f.entry.js → p-df55c1ea.entry.js} +1 -1
- package/dist/magma-components/{p-56132185.system.entry.js → p-e0288f0c.system.entry.js} +1 -1
- package/dist/magma-components/p-e03788d9.entry.js +1 -0
- package/dist/magma-components/p-e290055a.entry.js +18 -0
- package/dist/magma-components/p-e3423b24.entry.js +1 -0
- package/dist/magma-components/{p-d60d99ac.entry.js → p-e3b9a60f.entry.js} +1 -1
- package/dist/magma-components/p-e420031e.js +1 -0
- package/dist/magma-components/{p-ac5f1e42.system.entry.js → p-e5c3a802.system.entry.js} +1 -1
- package/dist/magma-components/p-e6e67992.entry.js +1 -0
- package/dist/magma-components/p-e82d486e.system.entry.js +18 -0
- package/dist/magma-components/p-e95f01d6.system.entry.js +1 -0
- package/dist/magma-components/{p-c2938231.system.entry.js → p-e9940be7.system.entry.js} +1 -1
- package/dist/magma-components/p-eab621a7.js +2 -0
- package/dist/magma-components/{p-9a878d34.entry.js → p-eae957b3.entry.js} +1 -1
- package/dist/magma-components/p-eb4bc264.system.entry.js +1 -0
- package/dist/magma-components/p-eb8bbb53.entry.js +1 -0
- package/dist/magma-components/{p-a09946ab.entry.js → p-edbaf4ab.entry.js} +1 -1
- package/dist/magma-components/p-ee536517.entry.js +1 -0
- package/dist/magma-components/{p-c2a42118.system.entry.js → p-eef53c2a.system.entry.js} +1 -1
- package/dist/magma-components/p-f0027ed8.system.entry.js +1 -0
- package/dist/magma-components/p-f00c93f4.js +1 -0
- package/dist/magma-components/p-f060e8cc.system.entry.js +1 -0
- package/dist/magma-components/p-f142ee72.entry.js +1 -0
- package/dist/magma-components/{p-efa3471a.entry.js → p-f1d7b5ea.entry.js} +1 -1
- package/dist/magma-components/{p-a5183c20.system.entry.js → p-f63148da.system.entry.js} +1 -1
- package/dist/magma-components/{p-44aaca66.system.entry.js → p-f94593f9.system.entry.js} +1 -1
- package/dist/magma-components/{p-c4cf09ea.system.entry.js → p-fa5fb4be.system.entry.js} +1 -1
- package/dist/magma-components/p-fc8bce99.system.entry.js +1 -0
- package/dist/magma-components/p-fe13fac9.system.entry.js +1 -0
- package/dist/magma-components/{p-12a225e3.system.entry.js → p-feadfe43.system.entry.js} +1 -1
- package/dist/magma-components/{p-bf242a75.system.entry.js → p-ffa94d0f.system.entry.js} +1 -1
- package/dist/stats.json +3575 -2712
- package/dist/types/common/aria.d.ts +3 -1
- package/dist/types/common/date.d.ts +1 -1
- package/dist/types/common/device.d.ts +2 -0
- package/dist/types/common/file.d.ts +2 -2
- package/dist/types/common/locale.d.ts +3 -1
- package/dist/types/components/mds-accordion/mds-accordion.d.ts +1 -1
- package/dist/types/components/mds-accordion-item/mds-accordion-item.d.ts +1 -1
- package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +1 -1
- package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +1 -1
- package/dist/types/components/mds-avatar/mds-avatar.d.ts +1 -1
- package/dist/types/components/mds-badge/mds-badge.d.ts +2 -2
- package/dist/types/components/mds-banner/mds-banner.d.ts +3 -1
- package/dist/types/components/mds-benchmark-bar/mds-benchmark-bar.d.ts +1 -1
- package/dist/types/components/mds-bibliography/mds-bibliography.d.ts +1 -1
- package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +5 -1
- package/dist/types/components/mds-button/mds-button.d.ts +2 -2
- package/dist/types/components/mds-chip/mds-chip.d.ts +22 -7
- package/dist/types/components/mds-chip/test/mds-chip.stories.d.ts +30 -4
- package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +1 -1
- package/dist/types/components/mds-entity/mds-entity.d.ts +1 -1
- package/dist/types/components/mds-file/mds-file.d.ts +4 -5
- package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +7 -4
- package/dist/types/components/mds-file-preview/meta/event-detail.d.ts +1 -1
- package/dist/types/components/mds-filter/mds-filter.d.ts +1 -1
- package/dist/types/components/mds-header/mds-header.d.ts +1 -1
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +1 -1
- package/dist/types/components/mds-help/mds-help.d.ts +1 -1
- package/dist/types/components/mds-icon/services/icons-set.service.d.ts +20 -4
- package/dist/types/components/mds-icon/test/mds-icon.stories.d.ts +1 -0
- package/dist/types/components/mds-img/mds-img.d.ts +3 -1
- package/dist/types/components/mds-input/mds-input.d.ts +6 -7
- package/dist/types/components/mds-input/test/mds-input.stories.d.ts +1 -0
- package/dist/types/components/mds-input-field/mds-input-field.d.ts +5 -6
- package/dist/types/components/mds-input-range/mds-input-range.d.ts +1 -0
- package/dist/types/components/mds-input-range/test/mds-input-range.stories.d.ts +0 -4
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +3 -3
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +2 -1
- package/dist/types/components/mds-input-switch/meta/interfaces.d.ts +1 -1
- package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +3 -1
- package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +13 -10
- package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +1 -1
- package/dist/types/components/mds-label/mds-label.d.ts +6 -3
- package/dist/types/components/mds-list-item/mds-list-item.d.ts +1 -1
- package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +1 -2
- package/dist/types/components/mds-note/mds-note.d.ts +5 -1
- package/dist/types/components/mds-pref/mds-pref.d.ts +2 -0
- package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +9 -8
- package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +10 -9
- package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +11 -10
- package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +20 -15
- package/dist/types/components/mds-pref-language/test/mds-pref-language.stories.d.ts +1 -1
- package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +5 -4
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +14 -12
- package/dist/types/components/mds-price-table-list-item/mds-price-table-list-item.d.ts +1 -1
- package/dist/types/components/mds-progress/mds-progress.d.ts +2 -1
- package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +4 -2
- package/dist/types/components/mds-quote/mds-quote.d.ts +6 -1
- package/dist/types/components/mds-quote/test/mds-quote.stories.d.ts +7 -0
- package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +1 -1
- package/dist/types/components/mds-tab/mds-tab.d.ts +1 -1
- package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +1 -1
- package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +1 -1
- package/dist/types/components/mds-table/mds-table.d.ts +1 -0
- package/dist/types/components/mds-table/test/mds-table.stories.d.ts +1 -0
- package/dist/types/components/mds-table-header-cell/meta/types.d.ts +1 -1
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +4 -0
- package/dist/types/components/mds-text/mds-text.d.ts +4 -3
- package/dist/types/components/mds-text/meta/types.d.ts +0 -1
- package/dist/types/components/mds-toast/mds-toast.d.ts +1 -1
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +2 -2
- package/dist/types/components/mds-url-view/mds-url-view.d.ts +5 -1
- package/dist/types/components/mds-usage/mds-usage.d.ts +0 -2
- package/dist/types/components.d.ts +99 -117
- package/dist/types/dictionary/file-extensions.d.ts +1 -1
- package/dist/types/dictionary/text.d.ts +3 -1
- package/dist/types/dictionary/variant.d.ts +2 -1
- package/dist/types/event-detail/language.d.ts +1 -2
- package/dist/types/event-detail/preference.d.ts +2 -2
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/type/autocomplete.d.ts +1 -1
- package/dist/types/type/input.d.ts +3 -0
- package/dist/types/type/text.d.ts +2 -0
- package/dist/types/type/variant-file-format.d.ts +1 -1
- package/dist/types/type/variant.d.ts +2 -1
- package/loader/cdn.js +2 -0
- package/loader/index.cjs.js +2 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +2 -0
- package/loader/index.js +3 -0
- package/loader/package.json +11 -0
- package/package.json +17 -13
- package/dist/cjs/file-0d013422.js +0 -154
- package/dist/cjs/file-extensions-b57dcf2c.js +0 -68
- package/dist/cjs/locale-c6c02a3a.js +0 -4796
- package/dist/collection/components/mds-input/meta/event-detail.js +0 -1
- package/dist/collection/components/mds-pref-language-nav/mds-pref-language-nav.css +0 -28
- package/dist/collection/components/mds-pref-language-nav/mds-pref-language-nav.js +0 -118
- package/dist/collection/interface/input-value.js +0 -1
- package/dist/collection/type/language.js +0 -1
- package/dist/components/file.js +0 -212
- package/dist/components/mds-pref-language-nav.d.ts +0 -11
- package/dist/components/mds-pref-language-nav.js +0 -6
- package/dist/components/mds-pref-language-nav2.js +0 -936
- package/dist/esm/_commonjsHelpers-e557d4a5.js +0 -11
- package/dist/esm/file-4e952d4d.js +0 -149
- package/dist/esm/file-extensions-e7320b03.js +0 -65
- package/dist/esm/locale-a730711f.js +0 -4794
- package/dist/esm-es5/_commonjsHelpers-e557d4a5.js +0 -1
- package/dist/esm-es5/aria-0e390d9c.js +0 -1
- package/dist/esm-es5/file-4e952d4d.js +0 -1
- package/dist/esm-es5/file-extensions-e7320b03.js +0 -1
- package/dist/esm-es5/floating-ui.dom.esm-f7b7f919.js +0 -1
- package/dist/esm-es5/index-f08bac5f.js +0 -1
- package/dist/esm-es5/locale-a730711f.js +0 -1
- package/dist/esm-es5/mds-dropdown_2.entry.js +0 -1
- package/dist/magma-components/p-00f83b1c.entry.js +0 -1
- package/dist/magma-components/p-02d1e968.entry.js +0 -1
- package/dist/magma-components/p-06adda46.system.entry.js +0 -1
- package/dist/magma-components/p-0d867719.entry.js +0 -1
- package/dist/magma-components/p-0e2ba962.entry.js +0 -1
- package/dist/magma-components/p-0fb85a5b.entry.js +0 -1
- package/dist/magma-components/p-19d5cfd1.system.entry.js +0 -1
- package/dist/magma-components/p-1a8bb922.system.entry.js +0 -1
- package/dist/magma-components/p-1c618541.entry.js +0 -1
- package/dist/magma-components/p-1ebc919c.system.entry.js +0 -1
- package/dist/magma-components/p-239398e3.entry.js +0 -1
- package/dist/magma-components/p-30c59b63.entry.js +0 -1
- package/dist/magma-components/p-348bfa69.system.entry.js +0 -1
- package/dist/magma-components/p-34b6dae4.entry.js +0 -1
- package/dist/magma-components/p-35010f4f.system.entry.js +0 -1
- package/dist/magma-components/p-369fc037.system.js +0 -2
- package/dist/magma-components/p-39379806.js +0 -1
- package/dist/magma-components/p-39f3c979.entry.js +0 -1
- package/dist/magma-components/p-3a1212f7.system.js +0 -1
- package/dist/magma-components/p-3b821237.entry.js +0 -1
- package/dist/magma-components/p-3bce2736.entry.js +0 -1
- package/dist/magma-components/p-3bd5921c.entry.js +0 -1
- package/dist/magma-components/p-3bd829b2.system.entry.js +0 -1
- package/dist/magma-components/p-3c7dd9e6.entry.js +0 -1
- package/dist/magma-components/p-3d6026a7.entry.js +0 -1
- package/dist/magma-components/p-40444810.entry.js +0 -1
- package/dist/magma-components/p-456e8f90.entry.js +0 -1
- package/dist/magma-components/p-45840cb9.js +0 -1
- package/dist/magma-components/p-4818acd8.entry.js +0 -1
- package/dist/magma-components/p-4852095e.system.entry.js +0 -1
- package/dist/magma-components/p-49457689.entry.js +0 -1
- package/dist/magma-components/p-498d8d1f.system.entry.js +0 -1
- package/dist/magma-components/p-4a21d75f.entry.js +0 -1
- package/dist/magma-components/p-4ba3ec43.entry.js +0 -1
- package/dist/magma-components/p-4bb672d5.system.entry.js +0 -1
- package/dist/magma-components/p-4cd1cddc.js +0 -1
- package/dist/magma-components/p-4cf59911.system.entry.js +0 -1
- package/dist/magma-components/p-5251fc6b.entry.js +0 -18
- package/dist/magma-components/p-53b343a8.js +0 -1
- package/dist/magma-components/p-56e687bd.entry.js +0 -1
- package/dist/magma-components/p-5958cf43.entry.js +0 -1
- package/dist/magma-components/p-5de2329f.entry.js +0 -1
- package/dist/magma-components/p-5ff768d2.system.entry.js +0 -1
- package/dist/magma-components/p-606200e3.entry.js +0 -1
- package/dist/magma-components/p-61fd38ea.system.entry.js +0 -1
- package/dist/magma-components/p-62358ead.entry.js +0 -1
- package/dist/magma-components/p-62bf3a83.system.entry.js +0 -1
- package/dist/magma-components/p-63f0d264.entry.js +0 -1
- package/dist/magma-components/p-66056cdc.system.js +0 -1
- package/dist/magma-components/p-663bb379.system.entry.js +0 -1
- package/dist/magma-components/p-66976b79.entry.js +0 -1
- package/dist/magma-components/p-66f540ac.system.entry.js +0 -1
- package/dist/magma-components/p-676db22b.entry.js +0 -1
- package/dist/magma-components/p-6810a806.system.entry.js +0 -1
- package/dist/magma-components/p-6c14d91c.entry.js +0 -1
- package/dist/magma-components/p-6e2784c9.entry.js +0 -1
- package/dist/magma-components/p-6eecbc9e.system.entry.js +0 -1
- package/dist/magma-components/p-71f86ae7.system.entry.js +0 -1
- package/dist/magma-components/p-728cf2dc.entry.js +0 -1
- package/dist/magma-components/p-763ed882.entry.js +0 -1
- package/dist/magma-components/p-7776a592.entry.js +0 -1
- package/dist/magma-components/p-7a41c057.system.entry.js +0 -1
- package/dist/magma-components/p-7cae0221.system.entry.js +0 -1
- package/dist/magma-components/p-7d19a7c6.entry.js +0 -1
- package/dist/magma-components/p-7d45974f.entry.js +0 -1
- package/dist/magma-components/p-7ff9abda.system.entry.js +0 -1
- package/dist/magma-components/p-82c83671.system.entry.js +0 -1
- package/dist/magma-components/p-846bafa4.system.js +0 -1
- package/dist/magma-components/p-85efbd11.entry.js +0 -1
- package/dist/magma-components/p-8a3e4d1f.system.entry.js +0 -1
- package/dist/magma-components/p-8ab85f10.entry.js +0 -1
- package/dist/magma-components/p-8c9bba00.system.entry.js +0 -1
- package/dist/magma-components/p-8ddbf6c1.system.entry.js +0 -1
- package/dist/magma-components/p-91391486.entry.js +0 -1
- package/dist/magma-components/p-91deec04.system.entry.js +0 -1
- package/dist/magma-components/p-934a4af6.system.entry.js +0 -18
- package/dist/magma-components/p-9381402f.entry.js +0 -1
- package/dist/magma-components/p-94bbfe16.entry.js +0 -1
- package/dist/magma-components/p-95e2abb6.js +0 -1
- package/dist/magma-components/p-9dfb1723.system.js +0 -1
- package/dist/magma-components/p-9f4b5a49.entry.js +0 -1
- package/dist/magma-components/p-9f80f36c.system.entry.js +0 -1
- package/dist/magma-components/p-9fefae6a.system.entry.js +0 -1
- package/dist/magma-components/p-a56a4fe4.entry.js +0 -1
- package/dist/magma-components/p-ac2a7c27.js +0 -1
- package/dist/magma-components/p-aebd1b47.entry.js +0 -1
- package/dist/magma-components/p-af75f100.entry.js +0 -1
- package/dist/magma-components/p-b3afbdcd.system.js +0 -1
- package/dist/magma-components/p-b3db90c1.entry.js +0 -1
- package/dist/magma-components/p-b435daa4.system.entry.js +0 -1
- package/dist/magma-components/p-b4395edb.system.entry.js +0 -1
- package/dist/magma-components/p-b4ce85d6.system.entry.js +0 -1
- package/dist/magma-components/p-b4ee4798.entry.js +0 -1
- package/dist/magma-components/p-b53e817c.system.entry.js +0 -1
- package/dist/magma-components/p-b6defcb6.js +0 -2
- package/dist/magma-components/p-b975c42a.js +0 -1
- package/dist/magma-components/p-bc867380.entry.js +0 -1
- package/dist/magma-components/p-bf08086c.system.entry.js +0 -1
- package/dist/magma-components/p-c6c8c32d.system.entry.js +0 -1
- package/dist/magma-components/p-c7343c40.system.entry.js +0 -9
- package/dist/magma-components/p-c852e0cb.entry.js +0 -8
- package/dist/magma-components/p-ca5f0f4d.entry.js +0 -1
- package/dist/magma-components/p-caf2dd9c.system.entry.js +0 -1
- package/dist/magma-components/p-cd9191a7.system.entry.js +0 -1
- package/dist/magma-components/p-d2cf0fd3.entry.js +0 -1
- package/dist/magma-components/p-dcc96bdb.entry.js +0 -1
- package/dist/magma-components/p-e203fbb0.system.entry.js +0 -1
- package/dist/magma-components/p-e249cc64.system.js +0 -1
- package/dist/magma-components/p-e307af8d.system.entry.js +0 -1
- package/dist/magma-components/p-e3b16a3f.entry.js +0 -1
- package/dist/magma-components/p-e72c4889.system.entry.js +0 -1
- package/dist/magma-components/p-e9042c7c.system.entry.js +0 -1
- package/dist/magma-components/p-eaade5d2.entry.js +0 -1
- package/dist/magma-components/p-ebfe7149.entry.js +0 -1
- package/dist/magma-components/p-ec231a39.system.entry.js +0 -1
- package/dist/magma-components/p-ee6d48f2.system.entry.js +0 -1
- package/dist/magma-components/p-f4bbd91e.system.entry.js +0 -1
- package/dist/magma-components/p-f855cdc0.entry.js +0 -1
- package/dist/types/components/mds-input/meta/event-detail.d.ts +0 -3
- package/dist/types/components/mds-pref-language-nav/mds-pref-language-nav.d.ts +0 -23
- package/dist/types/interface/input-value.d.ts +0 -4
- package/dist/types/type/language.d.ts +0 -2
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
@tailwind components;
|
|
2
2
|
@tailwind utilities;
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
:host {
|
|
5
5
|
|
|
6
6
|
--mds-help-tooltip-width: fit-content;
|
|
7
7
|
--mds-help-tooltip-max-width: 280px;
|
|
8
8
|
--mds-help-tooltip-delay: 0.25s;
|
|
9
9
|
margin-left: 0.25rem;
|
|
10
10
|
|
|
11
|
+
color: rgb(var(--tone-neutral-03));
|
|
11
12
|
cursor: help;
|
|
12
13
|
display: inline-flex;
|
|
13
14
|
fill: currentcolor;
|
|
@@ -30,7 +31,7 @@ i svg{
|
|
|
30
31
|
width: 100%;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
mds-
|
|
34
|
+
mds-tooltip {
|
|
34
35
|
|
|
35
36
|
--mds-tooltip-delay: var(--mds-help-tooltip-delay);
|
|
36
37
|
|
|
@@ -39,13 +40,7 @@ mds-help mds-tooltip {
|
|
|
39
40
|
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
mds-
|
|
43
|
-
max-width: var(--mds-help-tooltip-max-width);
|
|
44
|
-
min-width: var(--mds-help-tooltip-width);
|
|
45
|
-
width: var(--mds-help-tooltip-width);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
:host mds-tooltip::part(text) {
|
|
43
|
+
mds-tooltip::part(text) {
|
|
49
44
|
max-width: var(--mds-help-tooltip-max-width);
|
|
50
45
|
min-width: var(--mds-help-tooltip-width);
|
|
51
46
|
width: var(--mds-help-tooltip-width);
|
|
@@ -15,9 +15,10 @@ export class MdsHelp {
|
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
17
|
var _a;
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '93b3a04a7919b2e5c0297e54a94ef40955a918d2' }, h("mds-icon", { key: '4fc245e92c28392f5090b2d3025f1061e876e1cf', id: this.id, name: (_a = this.icon) !== null && _a !== void 0 ? _a : miOutlineHelp }), h("mds-tooltip", { key: 'bfad74ee1597eafc0d2ab21b37e16fcddf3d9cc8', placement: this.placement, autoPlacement: this.autoPlacement, strategy: "fixed", target: '#' + this.id }, h("slot", { key: 'd7cd7b45875df092dd2889fd6f77c086ae09a838' }))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "mds-help"; }
|
|
21
|
+
static get encapsulation() { return "shadow"; }
|
|
21
22
|
static get originalStyleUrls() {
|
|
22
23
|
return {
|
|
23
24
|
"$": ["mds-help.css"]
|
|
@@ -39,12 +39,10 @@ export class MdsIcon {
|
|
|
39
39
|
this.svgHTML = this.name;
|
|
40
40
|
return Promise.resolve();
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
this._iconHref = svgPath && !this.name.startsWith('http') ? window.location.origin.concat(svgPath.concat(this.name).concat('.svg')) : this.name;
|
|
44
|
-
this.svgHTML = await IconsSetService.fetchSvg(this._iconHref);
|
|
42
|
+
this.svgHTML = await IconsSetService.fetchSvg(this.name);
|
|
45
43
|
}
|
|
46
44
|
render() {
|
|
47
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '0776044452ef994b9671eaad6d0f1299bd3f7add' }, this.svgHTML && h("i", { key: '0091505aeb5563e9a1327d174d19ac0e4fe1ffd6', "aria-hidden": "true", class: "icon", part: "svg", innerHTML: this.svgHTML })));
|
|
48
46
|
}
|
|
49
47
|
static get is() { return "mds-icon"; }
|
|
50
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2,12 +2,12 @@ import { get, set, del } from "idb-keyval";
|
|
|
2
2
|
import { MdsIconSet } from "../meta/icon-set";
|
|
3
3
|
class IconsSetController {
|
|
4
4
|
constructor() {
|
|
5
|
-
this._iconsSets = new Map();
|
|
6
5
|
this._svgPathKey = 'mdsIconSvgPath';
|
|
6
|
+
this._iconsSets = new Map();
|
|
7
7
|
this._svgPathUpdate = 'mdsIconSvgPathUpdate';
|
|
8
8
|
this.cacheExp = 60 * 60 * 1000 * 24;
|
|
9
|
-
this.memoryCache = {};
|
|
10
9
|
this.listeners = [];
|
|
10
|
+
this.memoryCache = {};
|
|
11
11
|
// Try to retrieve svg from cache
|
|
12
12
|
this.isCacheAvailable = async (url) => {
|
|
13
13
|
try {
|
|
@@ -63,9 +63,32 @@ class IconsSetController {
|
|
|
63
63
|
return { set: null };
|
|
64
64
|
return { set: this._iconsSets.get(iconName.split('/')[0]) };
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* recognize svg path pattern and set host and svgPath variable
|
|
68
|
+
*
|
|
69
|
+
* input path: https://www.abc.com/svg/path
|
|
70
|
+
* svgPath = https://www.abc.com/svg/path
|
|
71
|
+
*
|
|
72
|
+
* input path: localhost:9000/svg/path
|
|
73
|
+
* svgPath = localhost:9000/svg/path
|
|
74
|
+
*
|
|
75
|
+
* input path: /svg/path
|
|
76
|
+
* svgPath = {window.location.host}/svg/path
|
|
77
|
+
*
|
|
78
|
+
* input path: svg/path
|
|
79
|
+
* throw error
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
66
82
|
setSvgPath(svgPath) {
|
|
67
|
-
|
|
68
|
-
|
|
83
|
+
const reg = /^(((https?:\/\/)?[.\w]+(:\d+)?)|\/)([\w/-]+)*/;
|
|
84
|
+
const match = reg.exec(svgPath);
|
|
85
|
+
if (!match) {
|
|
86
|
+
throw Error(`Svg path not recognize ${svgPath}, ensure is a absolute path starting with '/' or a url`);
|
|
87
|
+
}
|
|
88
|
+
if (typeof window !== 'undefined') {
|
|
89
|
+
this._svgPath = match[1] ? match[0] : window.location.origin.concat(match[0]);
|
|
90
|
+
window.dispatchEvent(new Event(this._svgPathUpdate));
|
|
91
|
+
}
|
|
69
92
|
}
|
|
70
93
|
getSvgPath() {
|
|
71
94
|
return this._svgPath;
|
|
@@ -74,13 +97,23 @@ class IconsSetController {
|
|
|
74
97
|
this.listeners.push(callback);
|
|
75
98
|
}
|
|
76
99
|
setUpListener() {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
listener
|
|
80
|
-
|
|
100
|
+
if (typeof window !== 'undefined') {
|
|
101
|
+
window.addEventListener(this._svgPathUpdate, () => {
|
|
102
|
+
for (const listener of this.listeners)
|
|
103
|
+
listener();
|
|
104
|
+
});
|
|
105
|
+
}
|
|
81
106
|
}
|
|
82
|
-
async fetchSvg(
|
|
107
|
+
async fetchSvg(name) {
|
|
108
|
+
var _a;
|
|
83
109
|
try {
|
|
110
|
+
if (!this._svgPath && typeof window === 'undefined') {
|
|
111
|
+
throw Error('Cant find svgPath, ensure you set it');
|
|
112
|
+
}
|
|
113
|
+
if (!this._svgPath) {
|
|
114
|
+
this.setSvgPath((_a = window.sessionStorage.getItem(IconsSetService._svgPathKey)) !== null && _a !== void 0 ? _a : '');
|
|
115
|
+
}
|
|
116
|
+
const src = this._svgPath && !name.startsWith('http') ? this._svgPath.concat(name, '.svg') : name;
|
|
84
117
|
const lsCache = await this.isCacheAvailable(src);
|
|
85
118
|
if (this.memoryCache[src] || lsCache) {
|
|
86
119
|
return this.memoryCache[src] || lsCache;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { iconsDictionary, mggIconsDictionary, svgIconsDictionary } from "../../../dictionary/icon";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import svgIconPackage from "../../../../../svg-icons/package.json";
|
|
3
5
|
const urlIcon = `${location.origin}/svg/mi/baseline/email.svg`;
|
|
4
6
|
const base64IconEncoded = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Im0yMzMtODAgNjUtMjgxTDgwLTU1MGwyODgtMjUgMTEyLTI2NSAxMTIgMjY1IDI4OCAyNS0yMTggMTg5IDY1IDI4MS0yNDctMTQ5TDIzMy04MFoiLz48L3N2Zz4=';
|
|
5
7
|
const svgIconDecoded = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6s-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8s-3.58-8-8-8z"/></svg>';
|
|
@@ -45,3 +47,16 @@ StorageTest.args = {
|
|
|
45
47
|
name: 'mdi/alien',
|
|
46
48
|
class: 'fill-label-green-05',
|
|
47
49
|
};
|
|
50
|
+
const ListIconsTemplate = () => {
|
|
51
|
+
const [filteredIcons, setFilteredIcons] = useState(mggIconsDictionary);
|
|
52
|
+
return h("div", { class: "flex flex-col gap-y-400" }, h("div", { class: "flex flex-col gap-y-600" }, h("mds-text", null, "La seguente \u00E8 una lista delle icone presenti nel pacchetto ", h("strong", null, "@maggioli-design-system/svg-icons ", svgIconPackage.version), ", facente riferimento alle icone di Maggioli"), h("mds-text", null, "Oltre a questo set, ", h("strong", null, "@maggioli-design-system/icons"), " fa uso anche delle librerie di ", h("a", { href: "https://fonts.google.com/icons" }, "Material Icons"), " e ", h("a", { href: "https://pictogrammers.com/library/mdi/" }, "Material Design Icons"), ", la cui lista pu\u00F2 essere consultata sui relativi siti.")), h("div", { class: "flex flex-col gap-y-600" }, h("mds-input", { name: "filter", placeholder: 'Cerca icona ...', onInput: event => {
|
|
53
|
+
var _a;
|
|
54
|
+
const _filter = (_a = event.target.value) !== null && _a !== void 0 ? _a : '';
|
|
55
|
+
if (!_filter) {
|
|
56
|
+
setFilteredIcons([...mggIconsDictionary]);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
setFilteredIcons(mggIconsDictionary.filter(item => item.includes(_filter)));
|
|
60
|
+
} }), h("div", { class: "grid grid-cols-5 gap-400" }, filteredIcons.map(icon => h("div", { key: icon, class: "flex flex-col justify-center items-center" }, h("mds-icon", { class: "w-1200 fill-brand-maggioli-05", name: icon }), h("mds-text", null, icon))))));
|
|
61
|
+
};
|
|
62
|
+
export const ListIcons = ListIconsTemplate.bind({});
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
:host {
|
|
5
5
|
|
|
6
|
-
--mds-img-background: rgb(var(--
|
|
7
|
-
--mds-img-color: rgb(var(--
|
|
8
|
-
--mds-img-icon-color: rgb(var(--
|
|
6
|
+
--mds-img-background: rgb(var(--variant-primary-03));
|
|
7
|
+
--mds-img-color: rgb(var(--variant-primary-09));
|
|
8
|
+
--mds-img-icon-color: rgb(var(--variant-primary-07));
|
|
9
9
|
--mds-img-error-background: rgb(var(--status-error-09));
|
|
10
10
|
--mds-img-error-color: rgb(var(--status-error-04));
|
|
11
11
|
--mds-img-error-icon-color: rgb(var(--status-error-06));
|
|
@@ -3,13 +3,17 @@ import { setAttributeIfEmpty } from "../../common/aria";
|
|
|
3
3
|
import miBaselinePanorama from "@icon/mi/baseline/panorama.svg";
|
|
4
4
|
import miBaselineBrokenImage from "@icon/mi/baseline/broken-image.svg";
|
|
5
5
|
import { Locale } from "../../common/locale";
|
|
6
|
+
import localeEl from "./meta/locale.el.json";
|
|
6
7
|
import localeEn from "./meta/locale.en.json";
|
|
8
|
+
import localeEs from "./meta/locale.es.json";
|
|
7
9
|
import localeIt from "./meta/locale.it.json";
|
|
8
10
|
export class MdsImg {
|
|
9
11
|
constructor() {
|
|
10
12
|
this.consumptionMode = 'high';
|
|
11
13
|
this.t = new Locale({
|
|
14
|
+
el: localeEl,
|
|
12
15
|
en: localeEn,
|
|
16
|
+
es: localeEs,
|
|
13
17
|
it: localeIt,
|
|
14
18
|
});
|
|
15
19
|
this.onSuccess = (ev) => {
|
|
@@ -49,6 +53,7 @@ export class MdsImg {
|
|
|
49
53
|
};
|
|
50
54
|
this.imageConsumptionLoaded = false;
|
|
51
55
|
this.imageError = false;
|
|
56
|
+
this.language = undefined;
|
|
52
57
|
this.alt = '';
|
|
53
58
|
this.crossorigin = 'use-credentials';
|
|
54
59
|
this.height = undefined;
|
|
@@ -60,6 +65,9 @@ export class MdsImg {
|
|
|
60
65
|
this.srcsetConsumption = undefined;
|
|
61
66
|
this.width = undefined;
|
|
62
67
|
}
|
|
68
|
+
async updateLang() {
|
|
69
|
+
this.language = this.t.lang(this.host);
|
|
70
|
+
}
|
|
63
71
|
srcsetConsumptionHandler(newValue) {
|
|
64
72
|
this.srcsetConsumptionData = this.formatConsumptionData(newValue);
|
|
65
73
|
}
|
|
@@ -88,7 +96,7 @@ export class MdsImg {
|
|
|
88
96
|
if (this.srcsetConsumptionData) {
|
|
89
97
|
if (this.consumptionMode === 'low') {
|
|
90
98
|
return (h(Host, { "aria-label": this.alt, role: "img", onClick: () => { this.imageConsumptionLoaded = true; } }, h("div", { class: "contrast-area-50" }), !this.imageConsumptionLoaded
|
|
91
|
-
? h("div", { class: "alt-text-container alt-text-container--default-aspect-ratio" }, h("mds-icon", { class: "icon", name: miBaselinePanorama }), h("mds-text", { class: "alt-text",
|
|
99
|
+
? h("div", { "aria-hidden": "true", class: "alt-text-container alt-text-container--default-aspect-ratio" }, h("mds-icon", { class: "icon", name: miBaselinePanorama }), h("mds-text", { class: "alt-text", typography: "h6" }, h("i", null, this.alt)), h("mds-button", { "aria-hidden": "true", role: "none", class: "click-to-load", tabIndex: -1, variant: "light", tone: "ghost" }, this.t.get('clickToLoad')))
|
|
92
100
|
: 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 })));
|
|
93
101
|
}
|
|
94
102
|
return (h(Host, { "aria-label": this.alt, role: "img" }, h("div", { class: "contrast-area-50" }), 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 })));
|
|
@@ -306,7 +314,8 @@ export class MdsImg {
|
|
|
306
314
|
static get states() {
|
|
307
315
|
return {
|
|
308
316
|
"imageConsumptionLoaded": {},
|
|
309
|
-
"imageError": {}
|
|
317
|
+
"imageError": {},
|
|
318
|
+
"language": {}
|
|
310
319
|
};
|
|
311
320
|
}
|
|
312
321
|
static get events() {
|
|
@@ -354,6 +363,27 @@ export class MdsImg {
|
|
|
354
363
|
}
|
|
355
364
|
}];
|
|
356
365
|
}
|
|
366
|
+
static get methods() {
|
|
367
|
+
return {
|
|
368
|
+
"updateLang": {
|
|
369
|
+
"complexType": {
|
|
370
|
+
"signature": "() => Promise<void>",
|
|
371
|
+
"parameters": [],
|
|
372
|
+
"references": {
|
|
373
|
+
"Promise": {
|
|
374
|
+
"location": "global",
|
|
375
|
+
"id": "global::Promise"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"return": "Promise<void>"
|
|
379
|
+
},
|
|
380
|
+
"docs": {
|
|
381
|
+
"text": "",
|
|
382
|
+
"tags": []
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
}
|
|
357
387
|
static get elementRef() { return "host"; }
|
|
358
388
|
static get watchers() {
|
|
359
389
|
return [{
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--mds-input-ring: 0 0 0 1px rgb(var(--mds-input-variant-color) / 0.1);
|
|
21
21
|
--mds-input-shadow: 0 1px 3px 0 rgb(var(--mds-input-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-variant-color) / 0.06);
|
|
22
22
|
--mds-input-variant-color: 0 0 0;
|
|
23
|
-
--mds-input-controls-color: rgb(var(--
|
|
23
|
+
--mds-input-controls-color: rgb(var(--variant-primary-03));
|
|
24
24
|
--mds-input-controls-border: 2px solid rgb(var(--tone-neutral-09));
|
|
25
25
|
--mds-input-textarea-min-height: 6rem;
|
|
26
26
|
--mds-input-textarea-max-height: 16rem;
|
|
@@ -335,13 +335,13 @@ textarea.input{
|
|
|
335
335
|
|
|
336
336
|
:host {
|
|
337
337
|
|
|
338
|
-
--mds-input-icon-color: var(--
|
|
338
|
+
--mds-input-icon-color: var(--variant-primary-03);
|
|
339
339
|
--mds-input-variant-color: 0 0 0;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
:host( :focus ) {
|
|
343
343
|
|
|
344
|
-
--mds-input-variant-color: var(--
|
|
344
|
+
--mds-input-variant-color: var(--variant-primary-04);
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
:host( [variant="info"] ) {
|
|
@@ -481,6 +481,6 @@ textarea.input{
|
|
|
481
481
|
|
|
482
482
|
:host {
|
|
483
483
|
|
|
484
|
-
--mds-input-background: rgb(var(--
|
|
484
|
+
--mds-input-background: rgb(var(--variant-primary-07));
|
|
485
485
|
}
|
|
486
486
|
}
|
|
@@ -7,12 +7,16 @@ import miBaselineVisible from "@icon/mi/baseline/visibility.svg";
|
|
|
7
7
|
import miBaselineVisibleOff from "@icon/mi/baseline/visibility-off.svg";
|
|
8
8
|
import { Host, h } from "@stencil/core";
|
|
9
9
|
import { Locale } from "../../common/locale";
|
|
10
|
+
import localeEl from "./meta/locale.el.json";
|
|
10
11
|
import localeEn from "./meta/locale.en.json";
|
|
12
|
+
import localeEs from "./meta/locale.es.json";
|
|
11
13
|
import localeIt from "./meta/locale.it.json";
|
|
12
14
|
export class MdsInput {
|
|
13
15
|
constructor() {
|
|
14
16
|
this.t = new Locale({
|
|
17
|
+
el: localeEl,
|
|
15
18
|
en: localeEn,
|
|
19
|
+
es: localeEs,
|
|
16
20
|
it: localeIt,
|
|
17
21
|
});
|
|
18
22
|
this.onInput = (ev) => {
|
|
@@ -80,6 +84,10 @@ export class MdsInput {
|
|
|
80
84
|
this.typography = 'detail';
|
|
81
85
|
this.value = '';
|
|
82
86
|
}
|
|
87
|
+
async updateLang() {
|
|
88
|
+
this.language = this.t.lang(this.el);
|
|
89
|
+
this.t.update();
|
|
90
|
+
}
|
|
83
91
|
componentWillLoad() {
|
|
84
92
|
var _a;
|
|
85
93
|
this.language = this.t.lang(this.el);
|
|
@@ -123,20 +131,20 @@ export class MdsInput {
|
|
|
123
131
|
}
|
|
124
132
|
render() {
|
|
125
133
|
var _a, _b;
|
|
126
|
-
return (h(Host, { key: '
|
|
134
|
+
return (h(Host, { key: 'ca5bca3d38a637ff63798e17a43e94c700d5e147' }, this.type === 'number'
|
|
127
135
|
&& this.controlsLayout === 'horizontal'
|
|
128
|
-
&& h("mds-button", { key: '
|
|
136
|
+
&& h("mds-button", { key: 'ff7112d587a18d16647bc3b5dfc6dc77ebcc2477', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, role: "button", tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" }), this.type === 'textarea'
|
|
129
137
|
? h("textarea", { class: clsx('input', ((_a = this.icon) !== null && _a !== void 0 ? _a : this.await) && 'has-icon'), autoFocus: this.autofocus, disabled: this.disabled, maxLength: this.maxlength, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: input => (this.nativeInput = input), required: this.required, tabIndex: this.tabindex, value: this.value })
|
|
130
138
|
: h("input", { class: clsx('input', ((_b = this.icon) !== null && _b !== void 0 ? _b : this.await) && 'has-icon'), autoComplete: this.autocomplete, autoFocus: this.autofocus, disabled: this.disabled, max: this.max, maxLength: this.maxlength, min: this.min, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, pattern: this.pattern, list: this.datalist && 'datalist', part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: input => (this.nativeInput = input), required: this.required, step: this.step, tabIndex: this.tabindex, type: this.type === 'password' && this.isPasswordVisible ? 'text' : this.type, value: this.value }), this.type === 'number'
|
|
131
139
|
&& this.controlsLayout === 'vertical'
|
|
132
|
-
&& h("div", { key: '
|
|
140
|
+
&& h("div", { key: '44238b57fbed08da81f30dc8048089d94d2e7b4c', class: "counter counter--vertical" }, h("mds-button", { key: '24c0ce6b95dd8dce3c33805bb861b239c595a58d', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, role: "button", tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), h("mds-button", { key: 'd420b63e53fe0dad6a326959855ff0f62c627885', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, role: "button", tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" })), this.type === 'number'
|
|
133
141
|
&& this.controlsLayout === 'horizontal'
|
|
134
|
-
&& h("mds-button", { key: '
|
|
135
|
-
&& h("mds-button", { key: '
|
|
136
|
-
h("mds-input-tip-item", { key: '
|
|
137
|
-
h("datalist", { key: '
|
|
142
|
+
&& h("mds-button", { key: 'bd8380c85f04115019a8b0202dc4e7aa30d3c9ad', class: "counter-button counter-button--horizontal counter-button--increase", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, role: "button", tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), this.type === 'password'
|
|
143
|
+
&& h("mds-button", { key: '6539cdfc36d63d28d319c79927545f8272179537', class: "password-toggle-button", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, onClick: () => this.isPasswordVisible = !this.isPasswordVisible, role: "button", tabindex: "0", tone: "quiet", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" }), h("mds-input-tip", { key: '8a0f5f05980067693a4335cd2f6355f6ddde09f3', lang: this.language, position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: 'f51f29717e92e822e3a1cd557619d6acec5c2fe1', expanded: true, variant: "disabled" }), this.readonly && h("mds-input-tip-item", { key: 'aa32b7d8d683a4785d17dcd0d4966357a9a21738', expanded: true, variant: "readonly" }), this.required &&
|
|
144
|
+
h("mds-input-tip-item", { key: '13c92ab5bca38508d5395119f1f1cdcb303bc183', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' })), h("mds-input-tip", { key: 'e907daf8c28d9e3db05202e60501da285ab7d9d2', lang: this.language, position: "bottom", active: this.hasFocus }, this.tip && h("mds-input-tip-item", { key: 'e4a8343e924a4813ac0bd483961b131d2b417132', expanded: true, variant: "text" }, this.tip)), this.datalist &&
|
|
145
|
+
h("datalist", { key: 'a61d4222f111e589b34d0c5d11bcd45f32d1a8c5', id: "datalist", class: "datalist" }, this.datalist.forEach(element => {
|
|
138
146
|
h("option", { value: element });
|
|
139
|
-
})), this.icon && !this.await && h("mds-icon", { key: '
|
|
147
|
+
})), this.icon && !this.await && h("mds-icon", { key: 'ef47a0689013b6bd6e8b4c104b3c7895d56c6679', class: clsx('icon', this.variant), name: this.icon }), h("mds-spinner", { key: '3383f336ce1ae44b0d8ca5536ed251a0398d97d9', running: this.await, class: clsx('await', this.variant) })));
|
|
140
148
|
}
|
|
141
149
|
static get is() { return "mds-input"; }
|
|
142
150
|
static get encapsulation() { return "shadow"; }
|
|
@@ -652,8 +660,8 @@ export class MdsInput {
|
|
|
652
660
|
"references": {
|
|
653
661
|
"MdsInputEventDetail": {
|
|
654
662
|
"location": "import",
|
|
655
|
-
"path": "
|
|
656
|
-
"id": "src/
|
|
663
|
+
"path": "@type/input",
|
|
664
|
+
"id": "src/type/input.ts::MdsInputEventDetail"
|
|
657
665
|
}
|
|
658
666
|
}
|
|
659
667
|
}
|
|
@@ -711,6 +719,23 @@ export class MdsInput {
|
|
|
711
719
|
}
|
|
712
720
|
static get methods() {
|
|
713
721
|
return {
|
|
722
|
+
"updateLang": {
|
|
723
|
+
"complexType": {
|
|
724
|
+
"signature": "() => Promise<void>",
|
|
725
|
+
"parameters": [],
|
|
726
|
+
"references": {
|
|
727
|
+
"Promise": {
|
|
728
|
+
"location": "global",
|
|
729
|
+
"id": "global::Promise"
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"return": "Promise<void>"
|
|
733
|
+
},
|
|
734
|
+
"docs": {
|
|
735
|
+
"text": "",
|
|
736
|
+
"tags": []
|
|
737
|
+
}
|
|
738
|
+
},
|
|
714
739
|
"setFocus": {
|
|
715
740
|
"complexType": {
|
|
716
741
|
"signature": "() => Promise<void>",
|
|
@@ -737,16 +762,16 @@ export class MdsInput {
|
|
|
737
762
|
"location": "global",
|
|
738
763
|
"id": "global::Promise"
|
|
739
764
|
},
|
|
740
|
-
"HTMLInputElement": {
|
|
741
|
-
"location": "global",
|
|
742
|
-
"id": "global::HTMLInputElement"
|
|
743
|
-
},
|
|
744
765
|
"HTMLTextAreaElement": {
|
|
745
766
|
"location": "global",
|
|
746
767
|
"id": "global::HTMLTextAreaElement"
|
|
768
|
+
},
|
|
769
|
+
"HTMLInputElement": {
|
|
770
|
+
"location": "global",
|
|
771
|
+
"id": "global::HTMLInputElement"
|
|
747
772
|
}
|
|
748
773
|
},
|
|
749
|
-
"return": "Promise<
|
|
774
|
+
"return": "Promise<HTMLTextAreaElement | HTMLInputElement>"
|
|
750
775
|
},
|
|
751
776
|
"docs": {
|
|
752
777
|
"text": "Returns the native `<input>` element used under the hood.",
|
|
@@ -123,6 +123,7 @@ export default {
|
|
|
123
123
|
},
|
|
124
124
|
};
|
|
125
125
|
const Template = (args) => h("mds-input", Object.assign({}, args));
|
|
126
|
+
const TemplateLanguage = (args) => h("div", { class: "grid gap-400" }, h("mds-input", Object.assign({}, args)), h("div", { class: "grid gap grid-cols-3" }, h("mds-pref", null, h("mds-pref-language", null, h("mds-pref-language-item", { code: "it" }), h("mds-pref-language-item", { code: "en" }), h("mds-pref-language-item", { code: "el" }), h("mds-pref-language-item", { code: "es" }), h("mds-pref-language-item", { code: "ja" })))));
|
|
126
127
|
export const Default = Template.bind({});
|
|
127
128
|
Default.args = {
|
|
128
129
|
placeholder: 'Scrivi qualcosa',
|
|
@@ -213,15 +214,23 @@ Icon.args = {
|
|
|
213
214
|
icon: 'mi/round/email',
|
|
214
215
|
placeholder: 'Status input field',
|
|
215
216
|
};
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
217
|
+
export const TestLanguageChange = TemplateLanguage.bind({});
|
|
218
|
+
TestLanguageChange.args = {
|
|
219
|
+
icon: 'mi/round/email',
|
|
220
|
+
readonly: true,
|
|
221
|
+
placeholder: 'Status input field',
|
|
222
|
+
};
|
|
223
|
+
const FormIntegrationTemplate = (args) => {
|
|
224
|
+
return (h("div", { class: "grid gap-600" }, h("form", { class: "grid gap-400", id: "mds-icon-fi", name: "mds-icon-fi", onSubmit: (e) => {
|
|
221
225
|
e.preventDefault();
|
|
222
226
|
console.info('Submitted', e);
|
|
223
|
-
})
|
|
224
|
-
|
|
227
|
+
} }, h("mds-input", Object.assign({}, args)), h("mds-button", { class: "w-min", type: "submit", onClick: (e) => {
|
|
228
|
+
e.preventDefault();
|
|
229
|
+
const form = document.querySelector('form');
|
|
230
|
+
const span = document.querySelector('span.input-value');
|
|
231
|
+
span.innerText = form['mds-input'].value !== '' ? form['mds-input'].value : 'Empty';
|
|
232
|
+
} }, "Check value")), h("mds-text", { variant: "code" }, "Input value taken from form element: ", h("span", { class: "inline-flex input-value rounded text-tone-neutral-01 bg-tone-neutral-08 px-200 py-50" }, "Empty"))));
|
|
233
|
+
};
|
|
225
234
|
export const FormIntegration = FormIntegrationTemplate.bind({});
|
|
226
235
|
FormIntegration.args = {
|
|
227
236
|
placeholder: 'Es: Hello world!',
|
|
@@ -118,9 +118,9 @@ export class MdsInputField {
|
|
|
118
118
|
return this.inputValidation.isValid(this.value);
|
|
119
119
|
}
|
|
120
120
|
render() {
|
|
121
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: '4ac545ba6d87644a4104ae62f46f6eb15b3f93e7' }, this.label && h("mds-text", { key: 'df7dba982c349670445324c8f3213b4dccfb5087', class: "label", typography: "label" }, this.label), h("div", { key: '4a21301b0f233c53a61ba9e6fb4f1858c99a4af5', class: clsx('message-window', this.variant && this.message && 'message-window--opened') }, h("mds-input", { key: '9b3274442d3798c8d818e87bb02cc9b7853e6b5f', autocomplete: this.autocomplete, autofocus: this.autofocus, await: this.await, class: clsx('input', this.isValidInput ? 'input-valid' : 'input-invalid'), controlsLayout: this.controlsLayout, controlsIcon: this.controlsIcon, disabled: this.disabled, icon: this.icon, id: "field", max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly,
|
|
122
122
|
// ref={ input => (this.mdsInput = input)}
|
|
123
|
-
required: this.required, typography: this.typography, variant: this.variant, tip: this.tip, step: this.step, tabIndex: this.tabindex, type: this.type, value: this.value }), this.message && h("mds-text", { key: '
|
|
123
|
+
required: this.required, typography: this.typography, variant: this.variant, tip: this.tip, step: this.step, tabIndex: this.tabindex, type: this.type, value: this.value }), this.message && h("mds-text", { key: '021dcc9f0d404847f6b81831ab1393704907545d', class: "message", typography: "caption" }, this.message))));
|
|
124
124
|
}
|
|
125
125
|
static get is() { return "mds-input-field"; }
|
|
126
126
|
static get encapsulation() { return "shadow"; }
|
|
@@ -617,8 +617,8 @@ export class MdsInputField {
|
|
|
617
617
|
"references": {
|
|
618
618
|
"MdsInputEventDetail": {
|
|
619
619
|
"location": "import",
|
|
620
|
-
"path": "@
|
|
621
|
-
"id": "src/
|
|
620
|
+
"path": "@type/input",
|
|
621
|
+
"id": "src/type/input.ts::MdsInputEventDetail"
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
}
|
|
@@ -702,16 +702,16 @@ export class MdsInputField {
|
|
|
702
702
|
"location": "global",
|
|
703
703
|
"id": "global::Promise"
|
|
704
704
|
},
|
|
705
|
-
"HTMLInputElement": {
|
|
706
|
-
"location": "global",
|
|
707
|
-
"id": "global::HTMLInputElement"
|
|
708
|
-
},
|
|
709
705
|
"HTMLTextAreaElement": {
|
|
710
706
|
"location": "global",
|
|
711
707
|
"id": "global::HTMLTextAreaElement"
|
|
708
|
+
},
|
|
709
|
+
"HTMLInputElement": {
|
|
710
|
+
"location": "global",
|
|
711
|
+
"id": "global::HTMLInputElement"
|
|
712
712
|
}
|
|
713
713
|
},
|
|
714
|
-
"return": "Promise<
|
|
714
|
+
"return": "Promise<HTMLTextAreaElement | HTMLInputElement | null | undefined>"
|
|
715
715
|
},
|
|
716
716
|
"docs": {
|
|
717
717
|
"text": "Returns the native `<input>` element used under the hood.",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
:host {
|
|
23
23
|
|
|
24
24
|
--mds-input-range-thumb-size: 1rem;
|
|
25
|
-
--mds-input-range-thumb-background: rgb(var(--
|
|
25
|
+
--mds-input-range-thumb-background: rgb(var(--variant-primary-04));
|
|
26
26
|
--mds-input-range-thumb-shadow: 0 0 0 2px rgb(var(--tone-neutral));
|
|
27
27
|
--mds-input-range-track-background: rgb(var(--tone-neutral-09));
|
|
28
28
|
--mds-input-range-track-size: 0.5rem;
|
|
29
|
-
--mds-input-range-track-progress-background: rgb(var(--
|
|
29
|
+
--mds-input-range-track-progress-background: rgb(var(--variant-primary-03));
|
|
30
30
|
gap: 0.25rem;
|
|
31
31
|
transition-duration: 200ms;
|
|
32
32
|
|
|
@@ -192,9 +192,9 @@
|
|
|
192
192
|
@container style(--magma-pref-theme: dark) {
|
|
193
193
|
:host {
|
|
194
194
|
|
|
195
|
-
--mds-input-range-thumb-background: rgb(var(--
|
|
195
|
+
--mds-input-range-thumb-background: rgb(var(--variant-primary-04));
|
|
196
196
|
--mds-input-range-track-background: rgb(var(--tone-neutral-07));
|
|
197
|
-
--mds-input-range-track-progress-background: rgb(var(--
|
|
197
|
+
--mds-input-range-track-progress-background: rgb(var(--variant-primary-05));
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
@@ -203,9 +203,9 @@
|
|
|
203
203
|
@media (prefers-color-scheme: dark) {
|
|
204
204
|
:host {
|
|
205
205
|
|
|
206
|
-
--mds-input-range-thumb-background: rgb(var(--
|
|
206
|
+
--mds-input-range-thumb-background: rgb(var(--variant-primary-04));
|
|
207
207
|
--mds-input-range-track-background: rgb(var(--tone-neutral-07));
|
|
208
|
-
--mds-input-range-track-progress-background: rgb(var(--
|
|
208
|
+
--mds-input-range-track-progress-background: rgb(var(--variant-primary-05));
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
}
|
|
@@ -46,13 +46,14 @@ export class MdsInputRange {
|
|
|
46
46
|
this.calculateProgress();
|
|
47
47
|
}
|
|
48
48
|
componentDidLoad() {
|
|
49
|
-
var _a;
|
|
50
|
-
this.
|
|
49
|
+
var _a, _b;
|
|
50
|
+
this.label = (_a = this.element.textContent) !== null && _a !== void 0 ? _a : '';
|
|
51
|
+
this.inputElement = (_b = this.element.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.field');
|
|
51
52
|
this.value = parseInt(this.inputElement.value);
|
|
52
53
|
this.calculateProgress();
|
|
53
54
|
}
|
|
54
55
|
render() {
|
|
55
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: 'c92ab8563410461213ec304d48633fa05aa2a914' }, h("header", { key: '761ee2fd85bd78beaead463ac24aa356e23359eb', class: "header", part: "header" }, h("mds-text", { key: '3917734e52ba2f28cb0182870945f5a25c384189', class: "label", typography: "label" }, h("slot", { key: '7295908985059db99d628e6d8414d5304874e0e8' })), h("mds-text", { key: '0d39a81709459e0478dfa2812cc861bfaf072c46', class: "value", typography: "label" }, this.value)), h("div", { key: 'a459a88c212591bff0d8e93793db770141c09a50', class: "range" }, h("div", { key: '165870361567832a29263f4d5b86bfb6aa5a2123', class: "track" }, h("div", { key: 'abd1017e7a33fe82398d77d28d8f56bb4459bde7', class: "contrast-area" }), h("div", { key: '22475d8687c090f2f403bbf8e3726b08982a84af', class: "track-total" }, h("div", { key: '151b6e11544724e3d95347046629499738090e1c', class: "track-progress", style: { width: `${this.progress}%` } }))), h("input", { key: 'b1f06f7712d1b682c2bfee7417eb27bc520da234', class: "field", "aria-label": this.label, max: this.max, min: this.min, onInput: this.onInput, step: this.step, type: "range", value: this.value }))));
|
|
56
57
|
}
|
|
57
58
|
static get is() { return "mds-input-range"; }
|
|
58
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -3,19 +3,19 @@ export default {
|
|
|
3
3
|
title: 'Form / Range',
|
|
4
4
|
argTypes: {
|
|
5
5
|
min: {
|
|
6
|
-
type: { name: 'number'
|
|
6
|
+
type: { name: 'number' },
|
|
7
7
|
description: 'The lowest value in the range of permitted values',
|
|
8
8
|
},
|
|
9
9
|
max: {
|
|
10
|
-
type: { name: 'number'
|
|
10
|
+
type: { name: 'number' },
|
|
11
11
|
description: 'The greatest value in the range of permitted values',
|
|
12
12
|
},
|
|
13
13
|
step: {
|
|
14
|
-
type: { name: 'number'
|
|
14
|
+
type: { name: 'number' },
|
|
15
15
|
description: 'The step attribute is a number that specifies the granularity that the value must adhere to, or the special value any, which is described below',
|
|
16
16
|
},
|
|
17
17
|
value: {
|
|
18
|
-
type: { name: 'number'
|
|
18
|
+
type: { name: 'number' },
|
|
19
19
|
description: 'The value attribute contains a number which contains a representation of the selected number',
|
|
20
20
|
},
|
|
21
21
|
},
|