@maggioli-design-system/magma 2.3.0 → 2.4.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/AGENTS.md +1 -1
- package/CHANGELOG.md +250 -0
- package/agents/anti-patterns.md +7 -4
- package/agents/color.md +2 -2
- package/agents/components.md +2 -1
- package/agents/conventions.md +16 -0
- package/dist/cjs/{aria-BbJUuU9_.js → aria-CzO5Rp1y.js} +23 -15
- package/dist/cjs/{floating-controller-D7Ekjocg.js → floating-controller-BiwDIKXd.js} +21 -12
- package/dist/cjs/{floating-ui.dom-EMHL7uyZ.js → floating-ui.dom-VQ_HnnRe.js} +0 -115
- package/dist/cjs/{icon-MMHcqbgv.js → icon-BhokFNM7.js} +4 -2
- package/dist/cjs/{index-MyEb-PfD.js → index-B5DKRaVO.js} +1 -1
- package/dist/cjs/{index-UmmmCMIG.js → index-B_qgSpWL.js} +89 -60
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/keyboard-manager-BuCJdI8Q.js +75 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{locale-CnorkBwF.js → locale-D9XY8LN9.js} +1 -1
- package/dist/cjs/{locale.it-CfUV2hxK.js → locale.it-CQgfBg0W.js} +6 -1
- package/dist/cjs/{datetime-DHnUzK2K.js → luxon-8hyy5YD7.js} +164 -64
- package/dist/cjs/magma-components.cjs.js +3 -3
- package/dist/cjs/mds-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +11 -10
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +16 -2
- package/dist/cjs/mds-accordion.cjs.entry.js +36 -21
- package/dist/cjs/mds-author.cjs.entry.js +2 -2
- package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack.cjs.entry.js +11 -5
- package/dist/cjs/mds-avatar.cjs.entry.js +57 -90
- package/dist/cjs/mds-badge.cjs.entry.js +4 -4
- package/dist/cjs/mds-banner_3.cjs.entry.js +51 -69
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +6 -3
- package/dist/cjs/mds-bibliography.cjs.entry.js +23 -17
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +9 -5
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +17 -33
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +15 -6
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +54 -38
- package/dist/cjs/mds-calendar_2.cjs.entry.js +74 -52
- 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 +2 -2
- package/dist/cjs/mds-card-media.cjs.entry.js +2 -2
- package/dist/cjs/mds-card.cjs.entry.js +25 -16
- package/dist/cjs/mds-details.cjs.entry.js +18 -8
- package/dist/cjs/mds-dropdown.cjs.entry.js +32 -16
- package/dist/cjs/mds-emoji.cjs.entry.js +225 -138
- package/dist/cjs/mds-entity.cjs.entry.js +5 -5
- package/dist/cjs/mds-file-preview.cjs.entry.js +30 -23
- package/dist/cjs/mds-file.cjs.entry.js +25 -7
- package/dist/cjs/mds-filter-item.cjs.entry.js +9 -21
- package/dist/cjs/mds-filter.cjs.entry.js +10 -6
- package/dist/cjs/mds-header-bar.cjs.entry.js +12 -11
- package/dist/cjs/mds-header.cjs.entry.js +9 -11
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +11 -16
- package/dist/cjs/mds-hr.cjs.entry.js +4 -4
- package/dist/cjs/mds-img.cjs.entry.js +38 -46
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +15 -7
- package/dist/cjs/mds-input-date-range.cjs.entry.js +31 -27
- package/dist/cjs/mds-input-date.cjs.entry.js +17 -14
- package/dist/cjs/mds-input-field.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-otp.cjs.entry.js +57 -22
- package/dist/cjs/mds-input-range.cjs.entry.js +4 -4
- package/dist/cjs/mds-input-select.cjs.entry.js +7 -7
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +10 -10
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +9 -8
- package/dist/cjs/mds-input-upload.cjs.entry.js +1097 -15
- package/dist/cjs/mds-input.cjs.entry.js +8 -8
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +5 -5
- package/dist/cjs/mds-keyboard.cjs.entry.js +15 -7
- package/dist/cjs/mds-kpi-item.cjs.entry.js +17 -3
- package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
- package/dist/cjs/mds-label.cjs.entry.js +13 -30
- 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-mention.cjs.entry.js +7 -6
- package/dist/cjs/mds-modal.cjs.entry.js +29 -12
- package/dist/cjs/mds-note.cjs.entry.js +18 -14
- package/dist/cjs/mds-notification.cjs.entry.js +72 -15
- package/dist/cjs/mds-paginator-item.cjs.entry.js +23 -11
- package/dist/cjs/mds-paginator.cjs.entry.js +39 -4
- package/dist/cjs/mds-policy-ai.cjs.entry.js +5 -5
- package/dist/cjs/mds-pref-animation.cjs.entry.js +41 -8
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +41 -8
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +44 -32
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +8 -8
- package/dist/cjs/mds-pref-language.cjs.entry.js +43 -21
- package/dist/cjs/mds-pref-mode.cjs.entry.js +29 -25
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +4 -3
- package/dist/cjs/mds-pref-theme.cjs.entry.js +109 -31
- package/dist/cjs/mds-pref.cjs.entry.js +28 -11
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-features.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-list.cjs.entry.js +14 -6
- package/dist/cjs/mds-price-table.cjs.entry.js +2 -2
- package/dist/cjs/mds-progress_2.cjs.entry.js +46 -33
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +12 -9
- package/dist/cjs/mds-push-notification.cjs.entry.js +37 -14
- package/dist/cjs/mds-quote.cjs.entry.js +3 -3
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-radial-menu.cjs.entry.js +48 -39
- package/dist/cjs/mds-separator.cjs.entry.js +4 -4
- package/dist/cjs/mds-status-bar.cjs.entry.js +8 -9
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +18 -6
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +8 -17
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +25 -16
- package/dist/cjs/mds-tab-bar.cjs.entry.js +11 -5
- package/dist/cjs/mds-tab_2.cjs.entry.js +17 -11
- package/dist/cjs/mds-table-body.cjs.entry.js +4 -4
- package/dist/cjs/mds-table-footer.cjs.entry.js +13 -4
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +3 -3
- package/dist/cjs/mds-table-header.cjs.entry.js +13 -5
- package/dist/cjs/mds-table-row.cjs.entry.js +35 -11
- package/dist/cjs/mds-table.cjs.entry.js +80 -23
- package/dist/cjs/mds-text.cjs.entry.js +4 -4
- package/dist/cjs/mds-toast-region.cjs.entry.js +119 -0
- package/dist/cjs/mds-toast.cjs.entry.js +164 -34
- package/dist/cjs/mds-tooltip.cjs.entry.js +72 -17
- package/dist/cjs/mds-tree-item.cjs.entry.js +25 -11
- package/dist/cjs/mds-tree.cjs.entry.js +37 -15
- package/dist/cjs/mds-url-view.cjs.entry.js +6 -6
- package/dist/cjs/mds-usage.cjs.entry.js +5 -5
- package/dist/cjs/mds-video-wall.cjs.entry.js +5 -4
- package/dist/cjs/mds-zero.cjs.entry.js +4 -4
- package/dist/cjs/{preference-DRkzNp5a.js → preference-C8BcoA3M.js} +1 -1
- package/dist/cjs/{slot-RmXfgH4P.js → slot-Dku0TdVg.js} +15 -0
- package/dist/cjs/{unit-Cm341q1R.js → unit-JdmHaLT3.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/common/aria.js +25 -1
- package/dist/collection/common/file.js +6 -1
- package/dist/collection/common/floating-controller.js +18 -9
- package/dist/collection/common/icon.js +4 -1
- package/dist/collection/common/keyboard-manager.js +29 -6
- package/dist/collection/common/slot.js +15 -1
- package/dist/collection/common/unit.js +1 -1
- package/dist/collection/components/mds-accordion/AGENTS.md +3 -2
- package/dist/collection/components/mds-accordion/antipattern.md +1 -1
- package/dist/collection/components/mds-accordion/documentation.json +9 -4
- package/dist/collection/components/mds-accordion/mds-accordion.css +1 -1
- package/dist/collection/components/mds-accordion/mds-accordion.js +34 -21
- package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-item/antipattern.md +2 -2
- package/dist/collection/components/mds-accordion-item/documentation.json +3 -3
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +5 -1
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +2 -2
- package/dist/collection/components/mds-accordion-timer/documentation.json +3 -3
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +15 -1
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +4 -4
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +4 -4
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +5 -1
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +9 -8
- package/dist/collection/components/mds-author/AGENTS.md +1 -1
- package/dist/collection/components/mds-author/documentation.json +2 -2
- package/dist/collection/components/mds-avatar/AGENTS.md +4 -4
- package/dist/collection/components/mds-avatar/documentation.json +4 -4
- package/dist/collection/components/mds-avatar/mds-avatar.css +15 -4
- package/dist/collection/components/mds-avatar/mds-avatar.js +56 -70
- package/dist/collection/components/mds-avatar/pattern.md +13 -2
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +2 -2
- package/dist/collection/components/mds-avatar-stack/documentation.json +3 -3
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +1 -1
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +15 -2
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +2 -2
- package/dist/collection/components/mds-badge/AGENTS.md +1 -1
- package/dist/collection/components/mds-badge/antipattern.md +0 -1
- package/dist/collection/components/mds-badge/documentation.json +4 -4
- package/dist/collection/components/mds-badge/mds-badge.css +4 -2
- package/dist/collection/components/mds-badge/pattern.md +0 -1
- package/dist/collection/components/mds-banner/AGENTS.md +1 -1
- package/dist/collection/components/mds-banner/documentation.json +2 -2
- package/dist/collection/components/mds-banner/mds-banner.css +18 -14
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +2 -2
- package/dist/collection/components/mds-benchmark-bar/antipattern.md +1 -1
- package/dist/collection/components/mds-benchmark-bar/documentation.json +5 -5
- package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +4 -1
- package/dist/collection/components/mds-benchmark-bar/pattern.md +1 -1
- package/dist/collection/components/mds-bibliography/AGENTS.md +4 -4
- package/dist/collection/components/mds-bibliography/antipattern.md +1 -1
- package/dist/collection/components/mds-bibliography/documentation.json +16 -7
- package/dist/collection/components/mds-bibliography/mds-bibliography.css +3 -1
- package/dist/collection/components/mds-bibliography/mds-bibliography.js +29 -17
- package/dist/collection/components/mds-bibliography/pattern.md +2 -2
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +8 -6
- package/dist/collection/components/mds-breadcrumb/antipattern.md +3 -3
- package/dist/collection/components/mds-breadcrumb/documentation.json +18 -8
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +16 -5
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +13 -29
- package/dist/collection/components/mds-breadcrumb/pattern.md +2 -5
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +4 -4
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +10 -5
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +1 -1
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +10 -3
- package/dist/collection/components/mds-button/AGENTS.md +10 -7
- package/dist/collection/components/mds-button/documentation.json +21 -8
- package/dist/collection/components/mds-button/mds-button.css +13 -7
- package/dist/collection/components/mds-button/mds-button.js +32 -27
- package/dist/collection/components/mds-button/pattern.md +6 -0
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +9 -8
- package/dist/collection/components/mds-button-dropdown/antipattern.md +1 -1
- package/dist/collection/components/mds-button-dropdown/documentation.json +13 -9
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +28 -7
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +15 -5
- package/dist/collection/components/mds-button-dropdown/pattern.md +8 -1
- package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
- package/dist/collection/components/mds-button-group/documentation.json +2 -2
- package/dist/collection/components/mds-calendar/AGENTS.md +4 -4
- package/dist/collection/components/mds-calendar/documentation.json +5 -5
- package/dist/collection/components/mds-calendar/mds-calendar.css +12 -4
- package/dist/collection/components/mds-calendar/mds-calendar.js +40 -20
- package/dist/collection/components/mds-calendar/pattern.md +4 -3
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +8 -8
- package/dist/collection/components/mds-calendar-cell/antipattern.md +2 -1
- package/dist/collection/components/mds-calendar-cell/documentation.json +14 -10
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +260 -109
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +8 -3
- package/dist/collection/components/mds-calendar-cell/pattern.md +3 -1
- package/dist/collection/components/mds-card/AGENTS.md +5 -4
- package/dist/collection/components/mds-card/antipattern.md +1 -1
- package/dist/collection/components/mds-card/documentation.json +10 -5
- package/dist/collection/components/mds-card/mds-card.css +2 -1
- package/dist/collection/components/mds-card/mds-card.js +22 -13
- package/dist/collection/components/mds-card/pattern.md +4 -3
- package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-content/documentation.json +2 -2
- package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-footer/documentation.json +2 -2
- package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-header/documentation.json +2 -2
- package/dist/collection/components/mds-card-media/AGENTS.md +2 -2
- package/dist/collection/components/mds-card-media/documentation.json +7 -3
- package/dist/collection/components/mds-card-media/mds-card-media.js +2 -1
- package/dist/collection/components/mds-chip/AGENTS.md +3 -3
- package/dist/collection/components/mds-chip/documentation.json +6 -6
- package/dist/collection/components/mds-chip/mds-chip.css +12 -9
- package/dist/collection/components/mds-chip/mds-chip.js +40 -60
- package/dist/collection/components/mds-chip/pattern.md +1 -1
- package/dist/collection/components/mds-details/AGENTS.md +5 -4
- package/dist/collection/components/mds-details/documentation.json +6 -6
- package/dist/collection/components/mds-details/mds-details.css +14 -2
- package/dist/collection/components/mds-details/mds-details.js +14 -4
- package/dist/collection/components/mds-details/pattern.md +2 -2
- package/dist/collection/components/mds-dropdown/AGENTS.md +7 -7
- package/dist/collection/components/mds-dropdown/documentation.json +15 -10
- package/dist/collection/components/mds-dropdown/mds-dropdown.css +66 -33
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +31 -12
- package/dist/collection/components/mds-dropdown/pattern.md +4 -2
- package/dist/collection/components/mds-emoji/AGENTS.md +11 -11
- package/dist/collection/components/mds-emoji/antipattern.md +1 -1
- package/dist/collection/components/mds-emoji/documentation.json +34 -64
- package/dist/collection/components/mds-emoji/mds-emoji.js +134 -80
- package/dist/collection/components/mds-emoji/meta/gaze.js +22 -0
- package/dist/collection/components/mds-entity/AGENTS.md +1 -1
- package/dist/collection/components/mds-entity/documentation.json +2 -2
- package/dist/collection/components/mds-entity/mds-entity.css +9 -4
- package/dist/collection/components/mds-entity/mds-entity.js +1 -1
- package/dist/collection/components/mds-file/AGENTS.md +5 -5
- package/dist/collection/components/mds-file/documentation.json +4 -4
- package/dist/collection/components/mds-file/mds-file.css +2 -2
- package/dist/collection/components/mds-file/mds-file.js +21 -3
- package/dist/collection/components/mds-file-preview/AGENTS.md +5 -5
- package/dist/collection/components/mds-file-preview/antipattern.md +1 -1
- package/dist/collection/components/mds-file-preview/documentation.json +20 -10
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +27 -1
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +34 -21
- package/dist/collection/components/mds-file-preview/pattern.md +1 -1
- package/dist/collection/components/mds-filter/AGENTS.md +1 -1
- package/dist/collection/components/mds-filter/documentation.json +2 -2
- package/dist/collection/components/mds-filter/mds-filter.css +3 -3
- package/dist/collection/components/mds-filter/mds-filter.js +6 -2
- package/dist/collection/components/mds-filter-item/AGENTS.md +2 -2
- package/dist/collection/components/mds-filter-item/documentation.json +3 -3
- package/dist/collection/components/mds-filter-item/mds-filter-item.css +7 -4
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +2 -14
- package/dist/collection/components/mds-header/AGENTS.md +5 -5
- package/dist/collection/components/mds-header/antipattern.md +2 -2
- package/dist/collection/components/mds-header/documentation.json +14 -9
- package/dist/collection/components/mds-header/mds-header.css +8 -6
- package/dist/collection/components/mds-header/mds-header.js +10 -9
- package/dist/collection/components/mds-header/pattern.md +1 -1
- package/dist/collection/components/mds-header-bar/AGENTS.md +5 -5
- package/dist/collection/components/mds-header-bar/documentation.json +14 -10
- package/dist/collection/components/mds-header-bar/mds-header-bar.css +13 -4
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +11 -9
- package/dist/collection/components/mds-header-bar/pattern.md +2 -2
- package/dist/collection/components/mds-help/AGENTS.md +7 -7
- package/dist/collection/components/mds-help/documentation.json +11 -7
- package/dist/collection/components/mds-help/mds-help.css +22 -0
- package/dist/collection/components/mds-help/mds-help.js +8 -5
- package/dist/collection/components/mds-help/pattern.md +2 -2
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +2 -2
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +7 -3
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +3 -3
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +7 -11
- package/dist/collection/components/mds-hr/AGENTS.md +1 -1
- package/dist/collection/components/mds-hr/documentation.json +2 -2
- package/dist/collection/components/mds-hr/mds-hr.css +1 -1
- package/dist/collection/components/mds-hr/mds-hr.js +1 -1
- package/dist/collection/components/mds-icon/AGENTS.md +2 -2
- package/dist/collection/components/mds-icon/documentation.json +4 -4
- package/dist/collection/components/mds-icon/mds-icon.js +14 -3
- package/dist/collection/components/mds-icon/pattern.md +1 -1
- package/dist/collection/components/mds-img/AGENTS.md +9 -9
- package/dist/collection/components/mds-img/antipattern.md +1 -1
- package/dist/collection/components/mds-img/documentation.json +36 -34
- package/dist/collection/components/mds-img/mds-img.js +58 -56
- package/dist/collection/components/mds-input/AGENTS.md +15 -15
- package/dist/collection/components/mds-input/antipattern.md +1 -1
- package/dist/collection/components/mds-input/documentation.json +83 -22
- package/dist/collection/components/mds-input/mds-input.css +3 -3
- package/dist/collection/components/mds-input/mds-input.js +33 -9
- package/dist/collection/components/mds-input-date/AGENTS.md +3 -3
- package/dist/collection/components/mds-input-date/antipattern.md +1 -1
- package/dist/collection/components/mds-input-date/documentation.json +23 -6
- package/dist/collection/components/mds-input-date/mds-input-date.css +1 -2
- package/dist/collection/components/mds-input-date/mds-input-date.js +17 -2
- package/dist/collection/components/mds-input-date-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range/documentation.json +18 -2
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +18 -2
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +3 -3
- package/dist/collection/components/mds-input-date-range-preselection/antipattern.md +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +26 -8
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.js +31 -9
- package/dist/collection/components/mds-input-field/AGENTS.md +4 -4
- package/dist/collection/components/mds-input-field/documentation.json +10 -6
- package/dist/collection/components/mds-input-field/mds-input-field.css +1 -1
- package/dist/collection/components/mds-input-field/mds-input-field.js +5 -2
- package/dist/collection/components/mds-input-otp/AGENTS.md +5 -4
- package/dist/collection/components/mds-input-otp/antipattern.md +1 -1
- package/dist/collection/components/mds-input-otp/documentation.json +5 -5
- package/dist/collection/components/mds-input-otp/mds-input-otp.css +12 -0
- package/dist/collection/components/mds-input-otp/mds-input-otp.js +53 -18
- package/dist/collection/components/mds-input-otp/pattern.md +1 -1
- package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-range/antipattern.md +1 -1
- package/dist/collection/components/mds-input-range/documentation.json +3 -3
- package/dist/collection/components/mds-input-range/mds-input-range.css +3 -3
- package/dist/collection/components/mds-input-range/mds-input-range.js +1 -1
- package/dist/collection/components/mds-input-select/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-select/documentation.json +2 -2
- package/dist/collection/components/mds-input-select/mds-input-select.css +9 -2
- package/dist/collection/components/mds-input-select/mds-input-select.js +2 -2
- package/dist/collection/components/mds-input-switch/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-switch/antipattern.md +1 -1
- package/dist/collection/components/mds-input-switch/documentation.json +3 -3
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +12 -9
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +1 -1
- package/dist/collection/components/mds-input-tip/AGENTS.md +2 -2
- package/dist/collection/components/mds-input-tip/documentation.json +3 -3
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +4 -3
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip-item/documentation.json +2 -2
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +3 -1
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +2 -2
- package/dist/collection/components/mds-input-tip-item/meta/dictionary.js +2 -8
- package/dist/collection/components/mds-input-upload/AGENTS.md +2 -2
- package/dist/collection/components/mds-input-upload/documentation.json +7 -3
- package/dist/collection/components/mds-input-upload/mds-input-upload.css +4 -3
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +13 -8
- package/dist/collection/components/mds-keyboard/AGENTS.md +2 -2
- package/dist/collection/components/mds-keyboard/documentation.json +4 -4
- package/dist/collection/components/mds-keyboard/mds-keyboard.css +24 -13
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +11 -3
- package/dist/collection/components/mds-keyboard/pattern.md +1 -1
- package/dist/collection/components/mds-keyboard-key/AGENTS.md +2 -2
- package/dist/collection/components/mds-keyboard-key/documentation.json +3 -3
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +2 -2
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -1
- package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi/documentation.json +2 -2
- package/dist/collection/components/mds-kpi/mds-kpi.js +1 -1
- package/dist/collection/components/mds-kpi-item/AGENTS.md +2 -2
- package/dist/collection/components/mds-kpi-item/antipattern.md +1 -1
- package/dist/collection/components/mds-kpi-item/documentation.json +5 -5
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +15 -1
- package/dist/collection/components/mds-kpi-item/pattern.md +2 -2
- package/dist/collection/components/mds-label/AGENTS.md +2 -2
- package/dist/collection/components/mds-label/documentation.json +3 -3
- package/dist/collection/components/mds-label/mds-label.css +6 -1
- package/dist/collection/components/mds-label/mds-label.js +2 -24
- package/dist/collection/components/mds-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-list/documentation.json +2 -2
- package/dist/collection/components/mds-list/mds-list.js +1 -1
- package/dist/collection/components/mds-list-item/AGENTS.md +3 -3
- package/dist/collection/components/mds-list-item/documentation.json +12 -4
- package/dist/collection/components/mds-list-item/mds-list-item.js +3 -1
- package/dist/collection/components/mds-mention/AGENTS.md +2 -2
- package/dist/collection/components/mds-mention/documentation.json +3 -3
- package/dist/collection/components/mds-mention/mds-mention.css +2 -11
- package/dist/collection/components/mds-mention/mds-mention.js +4 -3
- package/dist/collection/components/mds-modal/AGENTS.md +7 -6
- package/dist/collection/components/mds-modal/documentation.json +16 -7
- package/dist/collection/components/mds-modal/mds-modal.css +18 -9
- package/dist/collection/components/mds-modal/mds-modal.js +25 -7
- package/dist/collection/components/mds-modal/pattern.md +1 -1
- package/dist/collection/components/mds-note/AGENTS.md +2 -1
- package/dist/collection/components/mds-note/documentation.json +8 -3
- package/dist/collection/components/mds-note/mds-note.css +4 -12
- package/dist/collection/components/mds-note/mds-note.js +13 -9
- package/dist/collection/components/mds-note/pattern.md +1 -0
- package/dist/collection/components/mds-notification/AGENTS.md +5 -5
- package/dist/collection/components/mds-notification/documentation.json +10 -5
- package/dist/collection/components/mds-notification/mds-notification.css +9 -2
- package/dist/collection/components/mds-notification/mds-notification.js +78 -13
- package/dist/collection/components/mds-paginator/AGENTS.md +4 -3
- package/dist/collection/components/mds-paginator/antipattern.md +2 -1
- package/dist/collection/components/mds-paginator/documentation.json +6 -6
- package/dist/collection/components/mds-paginator/mds-paginator.css +2 -2
- package/dist/collection/components/mds-paginator/mds-paginator.js +12 -1
- package/dist/collection/components/mds-paginator/pattern.md +9 -1
- package/dist/collection/components/mds-paginator-item/AGENTS.md +4 -4
- package/dist/collection/components/mds-paginator-item/antipattern.md +2 -1
- package/dist/collection/components/mds-paginator-item/documentation.json +6 -6
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +67 -70
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +19 -7
- package/dist/collection/components/mds-paginator-item/pattern.md +3 -1
- package/dist/collection/components/mds-policy-ai/AGENTS.md +3 -2
- package/dist/collection/components/mds-policy-ai/documentation.json +13 -5
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +13 -7
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +3 -2
- package/dist/collection/components/mds-policy-ai/pattern.md +6 -1
- package/dist/collection/components/mds-pref/AGENTS.md +5 -5
- package/dist/collection/components/mds-pref/antipattern.md +1 -1
- package/dist/collection/components/mds-pref/documentation.json +8 -8
- package/dist/collection/components/mds-pref/mds-pref.js +27 -9
- package/dist/collection/components/mds-pref/pattern.md +5 -5
- package/dist/collection/components/mds-pref-animation/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref-animation/antipattern.md +1 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +5 -5
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +38 -5
- package/dist/collection/components/mds-pref-animation/pattern.md +6 -6
- package/dist/collection/components/mds-pref-consumption/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref-consumption/antipattern.md +1 -1
- package/dist/collection/components/mds-pref-consumption/documentation.json +5 -5
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +38 -5
- package/dist/collection/components/mds-pref-consumption/pattern.md +5 -6
- package/dist/collection/components/mds-pref-contrast/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref-contrast/antipattern.md +2 -2
- package/dist/collection/components/mds-pref-contrast/documentation.json +5 -5
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +41 -29
- package/dist/collection/components/mds-pref-contrast/pattern.md +3 -3
- package/dist/collection/components/mds-pref-language/AGENTS.md +5 -5
- package/dist/collection/components/mds-pref-language/antipattern.md +2 -2
- package/dist/collection/components/mds-pref-language/documentation.json +17 -7
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +54 -20
- package/dist/collection/components/mds-pref-language/pattern.md +3 -3
- package/dist/collection/components/mds-pref-language-item/AGENTS.md +2 -2
- package/dist/collection/components/mds-pref-language-item/antipattern.md +1 -1
- package/dist/collection/components/mds-pref-language-item/documentation.json +10 -5
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +9 -6
- package/dist/collection/components/mds-pref-mode/AGENTS.md +11 -4
- package/dist/collection/components/mds-pref-mode/antipattern.md +4 -4
- package/dist/collection/components/mds-pref-mode/documentation.json +22 -6
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +1 -1
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +22 -23
- package/dist/collection/components/mds-pref-mode/pattern.md +5 -5
- package/dist/collection/components/mds-pref-theme/AGENTS.md +6 -5
- package/dist/collection/components/mds-pref-theme/antipattern.md +4 -4
- package/dist/collection/components/mds-pref-theme/documentation.json +17 -7
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +121 -30
- package/dist/collection/components/mds-pref-theme/pattern.md +3 -3
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +2 -2
- package/dist/collection/components/mds-pref-theme-item/antipattern.md +1 -1
- package/dist/collection/components/mds-pref-theme-item/documentation.json +8 -4
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +20 -3
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +6 -2
- package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table/documentation.json +2 -2
- package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
- package/dist/collection/components/mds-price-table-features/AGENTS.md +3 -3
- package/dist/collection/components/mds-price-table-features/documentation.json +4 -4
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +2 -2
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +1 -1
- package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +2 -2
- package/dist/collection/components/mds-price-table-features-cell/documentation.json +3 -3
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +5 -2
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +1 -1
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-row/documentation.json +2 -2
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +1 -1
- package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-header/documentation.json +2 -2
- package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
- package/dist/collection/components/mds-price-table-list/AGENTS.md +3 -3
- package/dist/collection/components/mds-price-table-list/documentation.json +3 -3
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +2 -1
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +13 -3
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +3 -3
- package/dist/collection/components/mds-price-table-list-item/documentation.json +9 -5
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +5 -1
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +2 -1
- package/dist/collection/components/mds-price-table-list-item/pattern.md +1 -1
- package/dist/collection/components/mds-progress/AGENTS.md +3 -2
- package/dist/collection/components/mds-progress/documentation.json +4 -4
- package/dist/collection/components/mds-progress/mds-progress.css +2 -1
- package/dist/collection/components/mds-progress/mds-progress.js +42 -29
- package/dist/collection/components/mds-progress/pattern.md +1 -0
- package/dist/collection/components/mds-push-notification/AGENTS.md +4 -4
- package/dist/collection/components/mds-push-notification/documentation.json +4 -4
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +19 -12
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +4 -5
- package/dist/collection/components/mds-push-notification-item/documentation.json +18 -13
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +5 -88
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +17 -8
- package/dist/collection/components/mds-push-notification-item/pattern.md +2 -3
- package/dist/collection/components/mds-quote/AGENTS.md +1 -1
- package/dist/collection/components/mds-quote/documentation.json +2 -2
- package/dist/collection/components/mds-quote/mds-quote.js +1 -1
- package/dist/collection/components/mds-radial-menu/AGENTS.md +12 -11
- package/dist/collection/components/mds-radial-menu/antipattern.md +1 -1
- package/dist/collection/components/mds-radial-menu/documentation.json +19 -33
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +24 -7
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +46 -39
- package/dist/collection/components/mds-radial-menu/pattern.md +14 -1
- package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-menu-item/documentation.json +2 -2
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
- package/dist/collection/components/mds-radial-progress/AGENTS.md +11 -1
- package/dist/collection/components/mds-radial-progress/antipattern.md +8 -1
- package/dist/collection/components/mds-radial-progress/documentation.json +31 -5
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +9 -1
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +1 -1
- package/dist/collection/components/mds-radial-progress/pattern.md +13 -1
- package/dist/collection/components/mds-separator/AGENTS.md +1 -1
- package/dist/collection/components/mds-separator/documentation.json +2 -2
- package/dist/collection/components/mds-separator/mds-separator.css +1 -1
- package/dist/collection/components/mds-separator/mds-separator.js +1 -1
- package/dist/collection/components/mds-spinner/AGENTS.md +2 -2
- package/dist/collection/components/mds-spinner/documentation.json +4 -4
- package/dist/collection/components/mds-spinner/mds-spinner.css +64 -13
- package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
- package/dist/collection/components/mds-spinner/pattern.md +1 -1
- package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-status-bar/antipattern.md +1 -1
- package/dist/collection/components/mds-status-bar/documentation.json +4 -4
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +11 -6
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +5 -6
- package/dist/collection/components/mds-status-bar/pattern.md +1 -1
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +5 -5
- package/dist/collection/components/mds-stepper-bar/documentation.json +8 -14
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +9 -27
- package/dist/collection/components/mds-stepper-bar/pattern.md +1 -1
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +4 -4
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +6 -6
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +22 -5
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +15 -3
- package/dist/collection/components/mds-stepper-bar-item/pattern.md +1 -1
- package/dist/collection/components/mds-tab/AGENTS.md +3 -3
- package/dist/collection/components/mds-tab/documentation.json +5 -5
- package/dist/collection/components/mds-tab/mds-tab.css +4 -4
- package/dist/collection/components/mds-tab/mds-tab.js +9 -3
- package/dist/collection/components/mds-tab/pattern.md +9 -0
- package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar/antipattern.md +1 -1
- package/dist/collection/components/mds-tab-bar/documentation.json +3 -3
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +9 -3
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +3 -3
- package/dist/collection/components/mds-tab-bar-item/antipattern.md +2 -2
- package/dist/collection/components/mds-tab-bar-item/documentation.json +5 -5
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +22 -1
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +22 -18
- package/dist/collection/components/mds-tab-bar-item/pattern.md +1 -1
- package/dist/collection/components/mds-tab-item/AGENTS.md +2 -2
- package/dist/collection/components/mds-tab-item/documentation.json +9 -4
- package/dist/collection/components/mds-tab-item/mds-tab-item.css +11 -1
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +4 -1
- package/dist/collection/components/mds-table/AGENTS.md +10 -8
- package/dist/collection/components/mds-table/antipattern.md +1 -1
- package/dist/collection/components/mds-table/documentation.json +41 -10
- package/dist/collection/components/mds-table/mds-table.css +20 -21
- package/dist/collection/components/mds-table/mds-table.js +97 -21
- package/dist/collection/components/mds-table/pattern.md +4 -1
- package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-body/documentation.json +2 -2
- package/dist/collection/components/mds-table-body/mds-table-body.css +4 -1
- package/dist/collection/components/mds-table-body/mds-table-body.js +1 -1
- package/dist/collection/components/mds-table-cell/AGENTS.md +5 -5
- package/dist/collection/components/mds-table-cell/antipattern.md +1 -1
- package/dist/collection/components/mds-table-cell/documentation.json +11 -7
- package/dist/collection/components/mds-table-cell/mds-table-cell.css +7 -11
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
- package/dist/collection/components/mds-table-cell/pattern.md +6 -0
- package/dist/collection/components/mds-table-footer/AGENTS.md +14 -4
- package/dist/collection/components/mds-table-footer/documentation.json +42 -9
- package/dist/collection/components/mds-table-footer/mds-table-footer.css +6 -1
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +41 -2
- package/dist/collection/components/mds-table-footer/pattern.md +2 -1
- package/dist/collection/components/mds-table-header/AGENTS.md +4 -3
- package/dist/collection/components/mds-table-header/documentation.json +49 -6
- package/dist/collection/components/mds-table-header/mds-table-header.css +7 -0
- package/dist/collection/components/mds-table-header/mds-table-header.js +36 -2
- package/dist/collection/components/mds-table-header/pattern.md +1 -1
- package/dist/collection/components/mds-table-header-cell/AGENTS.md +3 -3
- package/dist/collection/components/mds-table-header-cell/documentation.json +20 -6
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +9 -2
- package/dist/collection/components/mds-table-row/AGENTS.md +3 -3
- package/dist/collection/components/mds-table-row/documentation.json +5 -5
- package/dist/collection/components/mds-table-row/mds-table-row.css +5 -4
- package/dist/collection/components/mds-table-row/mds-table-row.js +24 -5
- package/dist/collection/components/mds-table-row/pattern.md +1 -2
- package/dist/collection/components/mds-text/AGENTS.md +2 -2
- package/dist/collection/components/mds-text/documentation.json +3 -3
- package/dist/collection/components/mds-text/mds-text.css +86 -3
- package/dist/collection/components/mds-text/mds-text.js +1 -1
- package/dist/collection/components/mds-toast/AGENTS.md +13 -7
- package/dist/collection/components/mds-toast/antipattern.md +18 -0
- package/dist/collection/components/mds-toast/documentation.json +53 -13
- package/dist/collection/components/mds-toast/mds-toast.css +52 -3
- package/dist/collection/components/mds-toast/mds-toast.js +174 -35
- package/dist/collection/components/mds-toast/meta/event-detail.js +1 -0
- package/dist/collection/components/mds-toast/pattern.md +18 -4
- package/dist/collection/components/mds-toast-region/AGENTS.md +51 -0
- package/dist/collection/components/mds-toast-region/antipattern.md +62 -0
- package/dist/collection/components/mds-toast-region/documentation.json +136 -0
- package/dist/collection/components/mds-toast-region/mds-toast-region.css +31 -0
- package/dist/collection/components/mds-toast-region/mds-toast-region.js +177 -0
- package/dist/collection/components/mds-toast-region/pattern.md +82 -0
- package/dist/collection/components/mds-tooltip/AGENTS.md +7 -7
- package/dist/collection/components/mds-tooltip/documentation.json +18 -9
- package/dist/collection/components/mds-tooltip/mds-tooltip.css +43 -8
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +73 -14
- package/dist/collection/components/mds-tooltip/pattern.md +2 -2
- package/dist/collection/components/mds-tree/AGENTS.md +6 -5
- package/dist/collection/components/mds-tree/documentation.json +13 -7
- package/dist/collection/components/mds-tree/mds-tree.css +5 -4
- package/dist/collection/components/mds-tree/mds-tree.js +41 -16
- package/dist/collection/components/mds-tree/pattern.md +5 -1
- package/dist/collection/components/mds-tree-item/AGENTS.md +7 -7
- package/dist/collection/components/mds-tree-item/documentation.json +7 -7
- package/dist/collection/components/mds-tree-item/mds-tree-item.css +55 -20
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +22 -8
- package/dist/collection/components/mds-tree-item/pattern.md +2 -1
- package/dist/collection/components/mds-url-view/AGENTS.md +2 -2
- package/dist/collection/components/mds-url-view/documentation.json +3 -3
- package/dist/collection/components/mds-url-view/mds-url-view.css +3 -2
- package/dist/collection/components/mds-url-view/mds-url-view.js +2 -2
- package/dist/collection/components/mds-usage/AGENTS.md +12 -10
- package/dist/collection/components/mds-usage/antipattern.md +1 -1
- package/dist/collection/components/mds-usage/documentation.json +21 -9
- package/dist/collection/components/mds-usage/mds-usage.css +5 -3
- package/dist/collection/components/mds-usage/mds-usage.js +5 -2
- package/dist/collection/components/mds-usage/pattern.md +4 -4
- package/dist/collection/components/mds-video-wall/AGENTS.md +2 -2
- package/dist/collection/components/mds-video-wall/documentation.json +3 -3
- package/dist/collection/components/mds-video-wall/mds-video-wall.css +10 -5
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +2 -1
- package/dist/collection/components/mds-zero/AGENTS.md +1 -1
- package/dist/collection/components/mds-zero/documentation.json +2 -2
- package/dist/collection/components/mds-zero/mds-zero.css +2 -1
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-author.js +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-badge.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button-group.js +1 -1
- package/dist/components/mds-button.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-card-content.js +1 -1
- package/dist/components/mds-card-footer.js +1 -1
- package/dist/components/mds-card-header.js +1 -1
- package/dist/components/mds-card-media.js +1 -1
- package/dist/components/mds-card.js +1 -1
- package/dist/components/mds-chip.js +1 -1
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown.js +1 -1
- package/dist/components/mds-emoji.js +7 -7
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +1 -1
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-tip.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme-item.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features-row.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-header.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-price-table-list.js +1 -1
- package/dist/components/mds-price-table.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-separator.js +1 -1
- package/dist/components/mds-spinner.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-bar.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-tab.js +1 -1
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast-region.d.ts +11 -0
- package/dist/components/mds-toast-region.js +1 -0
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/mds-tooltip.js +1 -1
- package/dist/components/mds-tree-item.js +1 -1
- package/dist/components/mds-tree.js +1 -1
- package/dist/components/mds-url-view.js +1 -1
- package/dist/components/mds-usage.js +1 -1
- package/dist/components/mds-video-wall.js +1 -1
- package/dist/components/mds-zero.js +1 -1
- package/dist/components/p-B1bYa-o0.js +1 -0
- package/dist/components/p-B2p5a1Y8.js +3 -0
- package/dist/components/p-B6B6q5kP.js +1 -0
- package/dist/components/{p--miH951G.js → p-B9dgiq4u.js} +1 -1
- package/dist/components/p-BFisF7aN.js +1 -0
- package/dist/components/p-BHy4k3pJ.js +1 -0
- package/dist/components/p-BL220gRU.js +1 -0
- package/dist/components/p-BLXRGNya.js +1 -0
- package/dist/components/p-BLiWCyrD.js +1 -0
- package/dist/components/p-BN5kmfLJ.js +8 -0
- package/dist/components/p-BUr3NqxM.js +1 -0
- package/dist/components/p-BaFfIZGB.js +1 -0
- package/dist/components/{p-faViX-qz.js → p-Bg5E4Wnq.js} +1 -1
- package/dist/components/{p-zHpei4x6.js → p-BlnEiKN4.js} +1 -1
- package/dist/components/p-C2fyy4Mv.js +1 -0
- package/dist/components/p-CGrPq3C4.js +1 -0
- package/dist/components/p-CIWWmisz.js +1 -0
- package/dist/components/p-CJyTL7Mj.js +1 -0
- package/dist/components/p-CWk1SCJg.js +1 -0
- package/dist/components/p-CWwWCzma.js +1 -0
- package/dist/components/p-ChrRK8N9.js +1 -0
- package/dist/components/p-Cvhn9asj.js +1 -0
- package/dist/components/p-D3_jgpKd.js +1 -0
- package/dist/components/p-D4JiVIoh.js +1 -0
- package/dist/components/{p-CUmJoPAI.js → p-DACnmwad.js} +1 -1
- package/dist/components/p-DSxDXNWp.js +1 -0
- package/dist/components/p-DWIIDHSa.js +1 -0
- package/dist/components/p-DYpfVn7a.js +1 -0
- package/dist/components/{p-qYRtWYC8.js → p-D_0rjNZp.js} +1 -1
- package/dist/components/p-DaptTdaU.js +1 -0
- package/dist/components/{p-DLCcW1Q5.js → p-DezdwzYQ.js} +1 -1
- package/dist/components/{p-BcUY-9n7.js → p-DhIGZbIo.js} +1 -1
- package/dist/components/{p-ay5NzZ_x.js → p-Didp833Z.js} +1 -1
- package/dist/components/p-Ea5ilDf6.js +1 -0
- package/dist/components/p-Ebefwvkw.js +1 -0
- package/dist/components/p-JPhOaOXe.js +1 -0
- package/dist/components/p-NOw8-OrM.js +1 -0
- package/dist/components/p-NlPseOAv.js +1 -0
- package/dist/components/{p-DmPLOktp.js → p-cIZniMh0.js} +1 -1
- package/dist/components/p-fhAmrBfl.js +1 -0
- package/dist/components/p-sM-eFjwq.js +1 -0
- package/dist/documentation.json +1069 -462
- package/dist/esm/aria-Cvhn9asj.js +53 -0
- package/dist/esm/{floating-controller-D5-8D9mH.js → floating-controller-CVVcyKew.js} +21 -12
- package/dist/esm/{floating-ui.dom-JMPfVnGv.js → floating-ui.dom-BaFfIZGB.js} +1 -115
- package/dist/esm/{icon-pNJmnrhq.js → icon-B7RVWU-q.js} +4 -2
- package/dist/esm/{index-BxPbQB28.js → index-CPRkNQdE.js} +89 -60
- package/dist/esm/{index-BhCZiGfL.js → index-DI_6NAg0.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/keyboard-manager-CGrPq3C4.js +73 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-CVJm6KFD.js → locale-DfpXg7qZ.js} +1 -1
- package/dist/esm/{locale.it-Cvxh7La5.js → locale.it-Diyps98n.js} +6 -1
- package/dist/esm/{datetime-BJtA1qmE.js → luxon-DbyXf6dF.js} +164 -64
- package/dist/esm/magma-components.js +4 -4
- package/dist/esm/mds-accordion-item.entry.js +3 -3
- package/dist/esm/mds-accordion-timer-item.entry.js +11 -10
- package/dist/esm/mds-accordion-timer.entry.js +16 -2
- package/dist/esm/mds-accordion.entry.js +36 -21
- package/dist/esm/mds-author.entry.js +2 -2
- package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm/mds-avatar-stack.entry.js +11 -5
- package/dist/esm/mds-avatar.entry.js +57 -90
- package/dist/esm/mds-badge.entry.js +4 -4
- package/dist/esm/mds-banner_3.entry.js +51 -69
- package/dist/esm/mds-benchmark-bar.entry.js +6 -3
- package/dist/esm/mds-bibliography.entry.js +23 -17
- package/dist/esm/mds-breadcrumb-item.entry.js +9 -5
- package/dist/esm/mds-breadcrumb.entry.js +17 -33
- package/dist/esm/mds-button-dropdown.entry.js +15 -6
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +54 -38
- package/dist/esm/mds-calendar_2.entry.js +50 -28
- 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 +2 -2
- package/dist/esm/mds-card-media.entry.js +2 -2
- package/dist/esm/mds-card.entry.js +25 -16
- package/dist/esm/mds-details.entry.js +18 -8
- package/dist/esm/mds-dropdown.entry.js +32 -16
- package/dist/esm/mds-emoji.entry.js +225 -138
- package/dist/esm/mds-entity.entry.js +5 -5
- package/dist/esm/mds-file-preview.entry.js +30 -23
- package/dist/esm/mds-file.entry.js +25 -7
- package/dist/esm/mds-filter-item.entry.js +9 -21
- package/dist/esm/mds-filter.entry.js +10 -6
- package/dist/esm/mds-header-bar.entry.js +12 -11
- package/dist/esm/mds-header.entry.js +9 -11
- package/dist/esm/mds-horizontal-scroll.entry.js +11 -16
- package/dist/esm/mds-hr.entry.js +4 -4
- package/dist/esm/mds-img.entry.js +38 -46
- package/dist/esm/mds-input-date-range-preselection.entry.js +15 -7
- package/dist/esm/mds-input-date-range.entry.js +12 -8
- package/dist/esm/mds-input-date.entry.js +11 -8
- package/dist/esm/mds-input-field.entry.js +2 -2
- package/dist/esm/mds-input-otp.entry.js +57 -22
- package/dist/esm/mds-input-range.entry.js +4 -4
- package/dist/esm/mds-input-select.entry.js +7 -7
- package/dist/esm/mds-input-switch_2.entry.js +10 -10
- package/dist/esm/mds-input-tip_2.entry.js +9 -8
- package/dist/esm/mds-input-upload.entry.js +1097 -15
- package/dist/esm/mds-input.entry.js +8 -8
- package/dist/esm/mds-keyboard-key.entry.js +5 -5
- package/dist/esm/mds-keyboard.entry.js +15 -7
- package/dist/esm/mds-kpi-item.entry.js +17 -3
- package/dist/esm/mds-kpi.entry.js +2 -2
- package/dist/esm/mds-label.entry.js +13 -30
- package/dist/esm/mds-list-item.entry.js +2 -2
- package/dist/esm/mds-list.entry.js +2 -2
- package/dist/esm/mds-mention.entry.js +7 -6
- package/dist/esm/mds-modal.entry.js +29 -12
- package/dist/esm/mds-note.entry.js +18 -14
- package/dist/esm/mds-notification.entry.js +72 -15
- package/dist/esm/mds-paginator-item.entry.js +23 -11
- package/dist/esm/mds-paginator.entry.js +39 -4
- package/dist/esm/mds-policy-ai.entry.js +5 -5
- package/dist/esm/mds-pref-animation.entry.js +41 -8
- package/dist/esm/mds-pref-consumption.entry.js +41 -8
- package/dist/esm/mds-pref-contrast.entry.js +44 -32
- package/dist/esm/mds-pref-language-item.entry.js +8 -8
- package/dist/esm/mds-pref-language.entry.js +43 -21
- package/dist/esm/mds-pref-mode.entry.js +29 -25
- package/dist/esm/mds-pref-theme-item.entry.js +4 -3
- package/dist/esm/mds-pref-theme.entry.js +109 -31
- package/dist/esm/mds-pref.entry.js +28 -11
- package/dist/esm/mds-price-table-features-cell.entry.js +4 -4
- package/dist/esm/mds-price-table-features-row.entry.js +3 -3
- package/dist/esm/mds-price-table-features.entry.js +4 -4
- package/dist/esm/mds-price-table-header.entry.js +2 -2
- package/dist/esm/mds-price-table-list-item.entry.js +3 -3
- package/dist/esm/mds-price-table-list.entry.js +14 -6
- package/dist/esm/mds-price-table.entry.js +2 -2
- package/dist/esm/mds-progress_2.entry.js +46 -33
- package/dist/esm/mds-push-notification-item.entry.js +12 -9
- package/dist/esm/mds-push-notification.entry.js +37 -14
- package/dist/esm/mds-quote.entry.js +3 -3
- package/dist/esm/mds-radial-menu-item.entry.js +2 -2
- package/dist/esm/mds-radial-menu.entry.js +48 -39
- package/dist/esm/mds-separator.entry.js +4 -4
- package/dist/esm/mds-status-bar.entry.js +8 -9
- package/dist/esm/mds-stepper-bar-item.entry.js +18 -6
- package/dist/esm/mds-stepper-bar.entry.js +8 -17
- package/dist/esm/mds-tab-bar-item.entry.js +25 -16
- package/dist/esm/mds-tab-bar.entry.js +11 -5
- package/dist/esm/mds-tab_2.entry.js +17 -11
- package/dist/esm/mds-table-body.entry.js +4 -4
- package/dist/esm/mds-table-footer.entry.js +13 -4
- package/dist/esm/mds-table-header-cell.entry.js +3 -3
- package/dist/esm/mds-table-header.entry.js +13 -5
- package/dist/esm/mds-table-row.entry.js +35 -11
- package/dist/esm/mds-table.entry.js +80 -23
- package/dist/esm/mds-text.entry.js +4 -4
- package/dist/esm/mds-toast-region.entry.js +117 -0
- package/dist/esm/mds-toast.entry.js +164 -34
- package/dist/esm/mds-tooltip.entry.js +72 -17
- package/dist/esm/mds-tree-item.entry.js +25 -11
- package/dist/esm/mds-tree.entry.js +37 -15
- package/dist/esm/mds-url-view.entry.js +6 -6
- package/dist/esm/mds-usage.entry.js +5 -5
- package/dist/esm/mds-video-wall.entry.js +5 -4
- package/dist/esm/mds-zero.entry.js +4 -4
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{preference-DNNqH7BU.js → preference-Ch1zJnqq.js} +1 -1
- package/dist/esm/{slot-C0o_l0td.js → slot-AEckDMXh.js} +15 -1
- package/dist/esm/{unit-D8eZRaSQ.js → unit-CWk1SCJg.js} +1 -1
- package/dist/esm-es5/aria-Cvhn9asj.js +6 -0
- package/dist/esm-es5/{floating-controller-D5-8D9mH.js → floating-controller-CVVcyKew.js} +12 -3
- package/dist/esm-es5/{floating-ui.dom-JMPfVnGv.js → floating-ui.dom-BaFfIZGB.js} +40 -63
- package/dist/esm-es5/icon-B7RVWU-q.js +4 -0
- package/dist/esm-es5/{index-BxPbQB28.js → index-CPRkNQdE.js} +44 -42
- package/dist/esm-es5/{index-BhCZiGfL.js → index-DI_6NAg0.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/keyboard-manager-CGrPq3C4.js +9 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{locale-CVJm6KFD.js → locale-DfpXg7qZ.js} +1 -1
- package/dist/esm-es5/locale.it-Diyps98n.js +11 -0
- package/dist/esm-es5/{datetime-BJtA1qmE.js → luxon-DbyXf6dF.js} +51 -20
- package/dist/esm-es5/magma-components.js +3 -3
- package/dist/esm-es5/mds-accordion-item.entry.js +2 -2
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +7 -3
- package/dist/esm-es5/mds-accordion-timer.entry.js +12 -2
- package/dist/esm-es5/mds-accordion.entry.js +14 -2
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +4 -1
- package/dist/esm-es5/mds-avatar.entry.js +19 -6
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +19 -18
- package/dist/esm-es5/mds-benchmark-bar.entry.js +5 -2
- package/dist/esm-es5/mds-bibliography.entry.js +13 -2
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +4 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +8 -2
- package/dist/esm-es5/mds-button-dropdown.entry.js +6 -3
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +26 -11
- package/dist/esm-es5/mds-calendar_2.entry.js +20 -9
- 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 +11 -5
- package/dist/esm-es5/mds-details.entry.js +7 -2
- package/dist/esm-es5/mds-dropdown.entry.js +26 -17
- package/dist/esm-es5/mds-emoji.entry.js +151 -99
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +15 -13
- package/dist/esm-es5/mds-file.entry.js +11 -4
- package/dist/esm-es5/mds-filter-item.entry.js +2 -5
- package/dist/esm-es5/mds-filter.entry.js +7 -3
- package/dist/esm-es5/mds-header-bar.entry.js +7 -5
- package/dist/esm-es5/mds-header.entry.js +7 -4
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +15 -12
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +17 -11
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +6 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +16 -12
- package/dist/esm-es5/mds-input-date.entry.js +6 -3
- package/dist/esm-es5/mds-input-field.entry.js +2 -2
- package/dist/esm-es5/mds-input-otp.entry.js +16 -6
- package/dist/esm-es5/mds-input-range.entry.js +3 -3
- package/dist/esm-es5/mds-input-select.entry.js +2 -2
- package/dist/esm-es5/mds-input-switch_2.entry.js +2 -2
- package/dist/esm-es5/mds-input-tip_2.entry.js +5 -4
- package/dist/esm-es5/mds-input-upload.entry.js +5 -3
- package/dist/esm-es5/mds-input.entry.js +3 -3
- package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
- package/dist/esm-es5/mds-keyboard.entry.js +7 -3
- package/dist/esm-es5/mds-kpi-item.entry.js +7 -2
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +2 -2
- package/dist/esm-es5/mds-list-item.entry.js +2 -2
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +4 -3
- package/dist/esm-es5/mds-modal.entry.js +19 -7
- package/dist/esm-es5/mds-note.entry.js +5 -2
- package/dist/esm-es5/mds-notification.entry.js +25 -5
- package/dist/esm-es5/mds-paginator-item.entry.js +8 -1
- package/dist/esm-es5/mds-paginator.entry.js +3 -3
- package/dist/esm-es5/mds-policy-ai.entry.js +2 -2
- package/dist/esm-es5/mds-pref-animation.entry.js +14 -4
- package/dist/esm-es5/mds-pref-consumption.entry.js +14 -4
- package/dist/esm-es5/mds-pref-contrast.entry.js +14 -7
- package/dist/esm-es5/mds-pref-language-item.entry.js +5 -5
- package/dist/esm-es5/mds-pref-language.entry.js +20 -6
- package/dist/esm-es5/mds-pref-mode.entry.js +10 -3
- package/dist/esm-es5/mds-pref-theme-item.entry.js +4 -3
- package/dist/esm-es5/mds-pref-theme.entry.js +38 -11
- package/dist/esm-es5/mds-pref.entry.js +13 -7
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +2 -2
- 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 +2 -2
- package/dist/esm-es5/mds-price-table-list.entry.js +5 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +18 -3
- package/dist/esm-es5/mds-push-notification-item.entry.js +7 -3
- package/dist/esm-es5/mds-push-notification.entry.js +9 -12
- package/dist/esm-es5/mds-quote.entry.js +2 -2
- package/dist/esm-es5/mds-radial-menu-item.entry.js +2 -2
- package/dist/esm-es5/mds-radial-menu.entry.js +8 -11
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +5 -3
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +9 -3
- package/dist/esm-es5/mds-stepper-bar.entry.js +9 -4
- package/dist/esm-es5/mds-tab-bar-item.entry.js +10 -3
- package/dist/esm-es5/mds-tab-bar.entry.js +5 -1
- package/dist/esm-es5/mds-tab_2.entry.js +6 -4
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +4 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +2 -2
- package/dist/esm-es5/mds-table-header.entry.js +10 -5
- package/dist/esm-es5/mds-table-row.entry.js +9 -3
- package/dist/esm-es5/mds-table.entry.js +33 -8
- package/dist/esm-es5/mds-text.entry.js +3 -3
- package/dist/esm-es5/mds-toast-region.entry.js +22 -0
- package/dist/esm-es5/mds-toast.entry.js +42 -5
- package/dist/esm-es5/mds-tooltip.entry.js +16 -6
- package/dist/esm-es5/mds-tree-item.entry.js +15 -4
- package/dist/esm-es5/mds-tree.entry.js +15 -2
- package/dist/esm-es5/mds-url-view.entry.js +2 -2
- package/dist/esm-es5/mds-usage.entry.js +3 -3
- package/dist/esm-es5/mds-video-wall.entry.js +2 -2
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/esm-es5/{preference-DNNqH7BU.js → preference-Ch1zJnqq.js} +4 -4
- package/dist/esm-es5/slot-AEckDMXh.js +30 -0
- package/dist/esm-es5/unit-CWk1SCJg.js +1 -0
- package/dist/hydrate/index.js +4431 -1890
- package/dist/hydrate/index.mjs +4431 -1890
- package/dist/magma-components/index.esm.js +1 -1
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/magma-components.js +1 -1
- package/dist/magma-components/p-007968a8.system.entry.js +47 -0
- package/dist/magma-components/p-028f3717.entry.js +1 -0
- package/dist/magma-components/{p-808f6796.entry.js → p-0727d8f9.entry.js} +1 -1
- package/dist/magma-components/p-0b5fe949.entry.js +1 -0
- package/dist/magma-components/p-0b7a884e.system.entry.js +29 -0
- package/dist/magma-components/{p-ed897125.entry.js → p-0bcf3bb6.entry.js} +1 -1
- package/dist/magma-components/{p-c34d9e61.system.entry.js → p-0c9bdfff.system.entry.js} +1 -1
- package/dist/magma-components/{p-514d0fcb.entry.js → p-0dd4b006.entry.js} +1 -1
- package/dist/magma-components/p-0f47fd37.system.entry.js +16 -0
- package/dist/magma-components/p-11e50140.system.entry.js +19 -0
- package/dist/magma-components/{p-c644c5fc.system.entry.js → p-11feeebf.system.entry.js} +4 -1
- package/dist/magma-components/p-1287fb51.entry.js +1 -0
- package/dist/magma-components/p-12a2f8e2.system.entry.js +13 -0
- package/dist/magma-components/p-14b40c21.entry.js +1 -0
- package/dist/magma-components/p-14ef1aec.entry.js +1 -0
- package/dist/magma-components/p-166c0190.entry.js +1 -0
- package/dist/magma-components/{p-a9736d68.system.entry.js → p-176e6d9d.system.entry.js} +1 -1
- package/dist/magma-components/p-1989c0b4.entry.js +8 -0
- package/dist/magma-components/p-1a5411a8.entry.js +1 -0
- package/dist/magma-components/p-1d68fc4a.system.entry.js +80 -0
- package/dist/magma-components/p-1f5cd2b5.entry.js +1 -0
- package/dist/{components/p-B8BWxSho.js → magma-components/p-1f9ebc0d.entry.js} +1 -1
- package/dist/magma-components/{p-837fbbf7.system.entry.js → p-1fe66383.system.entry.js} +1 -1
- package/dist/magma-components/p-20469b7a.system.entry.js +1 -0
- package/dist/magma-components/p-20608f69.system.entry.js +35 -0
- package/dist/magma-components/p-2061e567.entry.js +1 -0
- package/dist/magma-components/p-21c2d7bd.entry.js +1 -0
- package/dist/magma-components/p-21fe0fef.system.entry.js +14 -0
- package/dist/magma-components/p-2294945a.system.entry.js +34 -0
- package/dist/magma-components/p-2362b91a.entry.js +1 -0
- package/dist/magma-components/p-23bf1afa.system.entry.js +27 -0
- package/dist/magma-components/{p-c575cb7b.entry.js → p-23ce0824.entry.js} +1 -1
- package/dist/magma-components/p-25576b51.system.entry.js +14 -0
- package/dist/magma-components/{p-508e10b5.system.entry.js → p-287d1253.system.entry.js} +476 -423
- package/dist/magma-components/p-288f3cfe.entry.js +1 -0
- package/dist/magma-components/p-29d4605e.system.entry.js +10 -0
- package/dist/magma-components/p-2abfc393.entry.js +1 -0
- package/dist/magma-components/p-2c4d2717.entry.js +1 -0
- package/dist/magma-components/p-2d7d9e4f.entry.js +1 -0
- package/dist/magma-components/p-2e8f703e.entry.js +1 -0
- package/dist/magma-components/p-3093af30.system.entry.js +4 -0
- package/dist/magma-components/{p-35ee2d77.entry.js → p-32bfb09c.entry.js} +1 -1
- package/dist/magma-components/p-342770d2.system.entry.js +7 -0
- package/dist/magma-components/p-357ec8c0.entry.js +1 -0
- package/dist/magma-components/p-36ad5759.system.entry.js +10 -0
- package/dist/magma-components/p-37b801d0.system.entry.js +22 -0
- package/dist/magma-components/{p-2de5f5fe.entry.js → p-3871807a.entry.js} +1 -1
- package/dist/magma-components/{p-154aff83.entry.js → p-38a9e862.entry.js} +1 -1
- package/dist/magma-components/p-3a88fc9b.system.entry.js +1 -0
- package/dist/magma-components/p-3ac09ace.entry.js +1 -0
- package/dist/magma-components/p-3b36319a.entry.js +1 -0
- package/dist/magma-components/{p-8cdad12f.entry.js → p-3ba5ddae.entry.js} +1 -1
- package/dist/magma-components/p-3bb26611.entry.js +1 -0
- package/dist/magma-components/p-3e1b21bd.entry.js +1 -0
- package/dist/magma-components/p-3fb98529.system.entry.js +28 -0
- package/dist/magma-components/p-4116e328.system.entry.js +1 -0
- package/dist/magma-components/p-4191bf22.entry.js +1 -0
- package/dist/magma-components/p-4225484c.entry.js +1 -0
- package/dist/magma-components/p-4260da67.system.entry.js +12 -0
- package/dist/magma-components/p-43338a07.entry.js +1 -0
- package/dist/magma-components/p-4582aa3e.system.entry.js +16 -0
- package/dist/magma-components/p-47f7366c.entry.js +1 -0
- package/dist/magma-components/p-4800a310.entry.js +1 -0
- package/dist/magma-components/p-495a70e2.entry.js +1 -0
- package/dist/magma-components/p-4a051ef5.system.entry.js +46 -0
- package/dist/magma-components/p-4c2dad1e.system.entry.js +81 -0
- package/dist/magma-components/p-4d079b1a.system.entry.js +26 -0
- package/dist/magma-components/p-4ea00c22.entry.js +1 -0
- package/dist/magma-components/{p-8d2a6896.entry.js → p-4f24ccf3.entry.js} +1 -1
- package/dist/magma-components/{p-ed6e287d.system.entry.js → p-4fdda209.system.entry.js} +4 -4
- package/dist/magma-components/p-51a869ee.entry.js +1 -0
- package/dist/magma-components/p-5219eba6.system.entry.js +4 -0
- package/dist/magma-components/p-52a85b97.system.entry.js +9 -0
- package/dist/magma-components/p-52d5d104.system.entry.js +17 -0
- package/dist/magma-components/{p-c4ceaef6.system.entry.js → p-5439125d.system.entry.js} +2 -2
- package/dist/magma-components/p-547f657e.system.entry.js +91 -0
- package/dist/magma-components/p-5a2deba5.entry.js +1 -0
- package/dist/magma-components/{p-e238e2eb.entry.js → p-5b21eb78.entry.js} +1 -1
- package/dist/magma-components/p-5cef4711.entry.js +1 -0
- package/dist/magma-components/p-5d9b1fe5.entry.js +1 -0
- package/dist/magma-components/{p-4dfeb655.system.entry.js → p-5ea3be82.system.entry.js} +2 -2
- package/dist/magma-components/p-61f0ebf3.entry.js +1 -0
- package/dist/magma-components/p-62e65f3b.entry.js +1 -0
- package/dist/magma-components/p-648ec03b.system.entry.js +73 -0
- package/dist/magma-components/p-677ef2a3.system.entry.js +55 -0
- package/dist/magma-components/p-69b37755.system.entry.js +17 -0
- package/dist/magma-components/p-6b2fff4b.system.entry.js +11 -0
- package/dist/magma-components/p-6bc4114c.system.entry.js +19 -0
- package/dist/magma-components/p-6c91b00d.system.entry.js +22 -0
- package/dist/magma-components/p-6da68fd5.entry.js +1 -0
- package/dist/magma-components/p-6ebbcd7b.system.entry.js +14 -0
- package/dist/magma-components/p-70a911e8.entry.js +1 -0
- package/dist/magma-components/p-70f5536c.system.entry.js +15 -0
- package/dist/magma-components/{p-c69ec735.system.entry.js → p-721b625a.system.entry.js} +13 -9
- package/dist/magma-components/p-72cc4977.system.entry.js +21 -0
- package/dist/magma-components/p-7448435b.system.entry.js +46 -0
- package/dist/magma-components/p-7497b39d.system.entry.js +7 -0
- package/dist/magma-components/p-7502528c.entry.js +1 -0
- package/dist/magma-components/{p-73e593a2.system.entry.js → p-765ff9a3.system.entry.js} +6 -3
- package/dist/magma-components/p-7a568cbf.entry.js +1 -0
- package/dist/magma-components/p-7d548a19.entry.js +1 -0
- package/dist/magma-components/p-7f776dff.entry.js +1 -0
- package/dist/magma-components/p-8059aa67.system.entry.js +17 -0
- package/dist/magma-components/p-811272a9.entry.js +1 -0
- package/dist/magma-components/p-815801dd.system.entry.js +19 -0
- package/dist/magma-components/p-87b15008.entry.js +1 -0
- package/dist/magma-components/p-88ac5d50.entry.js +1 -0
- package/dist/magma-components/{p-add1a8d0.system.entry.js → p-88be542e.system.entry.js} +2 -2
- package/dist/magma-components/{p-64f78149.system.entry.js → p-890bae38.system.entry.js} +1 -1
- package/dist/magma-components/p-8a4a2b5a.entry.js +1 -0
- package/dist/magma-components/p-8b081ba9.entry.js +1 -0
- package/dist/magma-components/{p-0a9fb138.system.entry.js → p-8ba250d6.system.entry.js} +1 -1
- package/dist/magma-components/p-8c66c761.entry.js +1 -0
- package/dist/magma-components/p-8d8c9c90.entry.js +1 -0
- package/dist/magma-components/p-8e08ae08.system.entry.js +94 -0
- package/dist/magma-components/p-90fe332f.entry.js +1 -0
- package/dist/magma-components/p-911dc847.entry.js +1 -0
- package/dist/magma-components/p-914d1b2a.system.entry.js +111 -0
- package/dist/magma-components/p-916a26e4.entry.js +1 -0
- package/dist/magma-components/p-91ed604f.entry.js +1 -0
- package/dist/magma-components/p-926ef760.entry.js +1 -0
- package/dist/magma-components/p-938dbe67.system.entry.js +27 -0
- package/dist/magma-components/p-93d8b236.system.entry.js +10 -0
- package/dist/magma-components/p-95328cc7.system.entry.js +17 -0
- package/dist/magma-components/p-95486c6a.system.entry.js +5 -0
- package/dist/magma-components/{p-f5bb8c0c.entry.js → p-96f973e3.entry.js} +1 -1
- package/dist/magma-components/p-9a28bd8d.system.entry.js +20 -0
- package/dist/magma-components/p-9bdca8b4.entry.js +1 -0
- package/dist/magma-components/p-9caf411a.system.entry.js +13 -0
- package/dist/magma-components/p-9e7d02e5.entry.js +1 -0
- package/dist/magma-components/p-AEckDMXh.js +1 -0
- package/dist/magma-components/p-B-nayZ3E.system.js +1 -0
- package/dist/magma-components/p-B7RVWU-q.js +1 -0
- package/dist/magma-components/{p-CKfEQ187.system.js → p-BHS0WXNt.system.js} +1 -1
- package/dist/magma-components/p-BaFfIZGB.js +1 -0
- package/dist/magma-components/{p-RJ5ZA1kY.system.js → p-BeNKMPXR.system.js} +9 -2
- package/dist/magma-components/{p-Kv1yahtR.js → p-BmT_DEV2.js} +2 -2
- package/dist/magma-components/{p-BTF_aRDG.system.js → p-C1ailvfu.system.js} +28 -28
- package/dist/magma-components/{p-7-TP6wnI.js → p-C25F_FlB.js} +1 -1
- package/dist/magma-components/p-CDjzBTsk.js +1 -0
- package/dist/magma-components/p-CGrPq3C4.js +1 -0
- package/dist/magma-components/p-CPRkNQdE.js +3 -0
- package/dist/magma-components/p-CWk1SCJg.js +1 -0
- package/dist/magma-components/{p-DaONbL_w.system.js → p-CmzGV0XD.system.js} +44 -44
- package/dist/magma-components/p-Cvhn9asj.js +1 -0
- package/dist/magma-components/{p-hVpoPUxI.system.js → p-D8596ytD.system.js} +8 -8
- package/dist/magma-components/p-D9J8lbUv.system.js +9 -0
- package/dist/magma-components/p-DAifcgtS.system.js +4 -0
- package/dist/magma-components/{p-DhhAXEdA.system.js → p-DVjUXVFl.system.js} +21 -12
- package/dist/magma-components/p-DbyXf6dF.js +1 -0
- package/dist/magma-components/p-DmFo8_MF.js +1 -0
- package/dist/magma-components/p-JuViHg2B.system.js +11 -0
- package/dist/magma-components/{p-CdsZyFQ-.system.js → p-LUd56iG_.system.js} +1 -1
- package/dist/magma-components/p-QYez4sql.system.js +5 -0
- package/dist/magma-components/{p-BJKToXNf.system.js → p-WSL9tMdv.system.js} +81 -50
- package/dist/magma-components/{p-584a4ee8.system.entry.js → p-a08d20c2.system.entry.js} +1 -1
- package/dist/magma-components/{p-26c85354.system.entry.js → p-a136e6fe.system.entry.js} +6 -1
- package/dist/magma-components/p-a1443292.entry.js +1 -0
- package/dist/magma-components/{p-634727e6.system.entry.js → p-a1ca2441.system.entry.js} +2 -2
- package/dist/magma-components/{p-0d97e28d.system.entry.js → p-a2d10402.system.entry.js} +2 -2
- package/dist/magma-components/p-a2ec6eac.entry.js +1 -0
- package/dist/magma-components/{p-b626c69f.system.entry.js → p-a40443ca.system.entry.js} +1 -1
- package/dist/magma-components/{p-c7d84d1c.system.entry.js → p-a47a9f11.system.entry.js} +1 -1
- package/dist/magma-components/{p-e388f1f2.system.entry.js → p-a4f46de1.system.entry.js} +9 -4
- package/dist/magma-components/p-a51f849a.entry.js +1 -0
- package/dist/magma-components/{p-3fa6cf85.system.entry.js → p-a53f6a94.system.entry.js} +5 -1
- package/dist/magma-components/p-a6fe6b4c.system.entry.js +1 -0
- package/dist/magma-components/p-a7bad4e8.entry.js +1 -0
- package/dist/magma-components/p-a8593847.entry.js +1 -0
- package/dist/magma-components/p-aa8653b1.system.entry.js +13 -0
- package/dist/magma-components/p-ac4109e3.entry.js +1 -0
- package/dist/magma-components/{p-bba04b08.system.entry.js → p-af704402.system.entry.js} +5 -2
- package/dist/magma-components/p-b169ee9b.entry.js +1 -0
- package/dist/magma-components/p-b36d54e1.system.entry.js +41 -0
- package/dist/magma-components/p-b40ef7ab.system.entry.js +23 -0
- package/dist/magma-components/{p-569cbe13.entry.js → p-b48fc62e.entry.js} +1 -1
- package/dist/magma-components/p-b509fb36.entry.js +1 -0
- package/dist/magma-components/p-b514bd3a.system.entry.js +1 -0
- package/dist/magma-components/p-b58363e2.system.entry.js +31 -0
- package/dist/magma-components/{p-22e9a507.entry.js → p-b62bbd07.entry.js} +1 -1
- package/dist/magma-components/{p-ac873ab4.entry.js → p-b919ce62.entry.js} +1 -1
- package/dist/magma-components/p-b940888d.entry.js +1 -0
- package/dist/magma-components/p-bba4c7eb.entry.js +1 -0
- package/dist/magma-components/p-bc30508b.entry.js +1 -0
- package/dist/magma-components/p-bdd18c90.system.entry.js +25 -0
- package/dist/magma-components/p-be32b7a9.system.entry.js +13 -0
- package/dist/magma-components/p-c1d8a25e.entry.js +1 -0
- package/dist/magma-components/p-c3622315.entry.js +1 -0
- package/dist/magma-components/p-c4286fb7.system.entry.js +1 -0
- package/dist/magma-components/p-c6b16493.system.entry.js +49 -0
- package/dist/magma-components/p-c6b9a14e.system.entry.js +48 -0
- package/dist/magma-components/p-c6db7a0f.system.entry.js +22 -0
- package/dist/magma-components/p-c72651b2.entry.js +1 -0
- package/dist/magma-components/p-c89c2e30.entry.js +1 -0
- package/dist/magma-components/{p-cefdc01f.system.entry.js → p-ca8e0927.system.entry.js} +2 -2
- package/dist/magma-components/p-cc0cb701.entry.js +1 -0
- package/dist/magma-components/{p-121730d1.entry.js → p-cc109576.entry.js} +1 -1
- package/dist/magma-components/p-cc88c963.system.entry.js +1 -0
- package/dist/magma-components/p-cfe080ab.system.entry.js +54 -0
- package/dist/magma-components/p-d0c0c195.entry.js +1 -0
- package/dist/magma-components/p-d3678561.system.entry.js +35 -0
- package/dist/magma-components/p-d8d87750.system.entry.js +21 -0
- package/dist/magma-components/{p-574c2c13.system.entry.js → p-d9551916.system.entry.js} +4 -4
- package/dist/magma-components/p-da532544.system.entry.js +25 -0
- package/dist/magma-components/{p-69d6cc9e.system.entry.js → p-da6cf595.system.entry.js} +2 -2
- package/dist/magma-components/p-da9afc4b.system.entry.js +8 -0
- package/dist/magma-components/p-daf9c8ca.system.entry.js +4 -0
- package/dist/magma-components/p-dbf69d54.system.entry.js +5 -0
- package/dist/magma-components/p-dd8fb2f8.system.entry.js +105 -0
- package/dist/magma-components/p-dfbecf72.system.entry.js +11 -0
- package/dist/magma-components/p-e032e77f.system.entry.js +1 -0
- package/dist/magma-components/p-e15a874b.entry.js +1 -0
- package/dist/magma-components/p-e1ce306a.system.entry.js +52 -0
- package/dist/magma-components/p-e471decd.system.entry.js +32 -0
- package/dist/magma-components/p-e49818c4.entry.js +1 -0
- package/dist/magma-components/{p-6f5a1248.entry.js → p-e5ab1f4f.entry.js} +1 -1
- package/dist/magma-components/p-e6ed6e12.entry.js +1 -0
- package/dist/magma-components/p-e73cc6fc.entry.js +18 -0
- package/dist/magma-components/{p-2710ddc4.entry.js → p-e8b9d639.entry.js} +1 -1
- package/dist/magma-components/p-e954b5c5.entry.js +1 -0
- package/dist/magma-components/p-eba7cfb3.entry.js +1 -0
- package/dist/magma-components/p-ecb87d38.entry.js +1 -0
- package/dist/magma-components/p-eebf450c.system.entry.js +4 -0
- package/dist/magma-components/p-ef4d07ba.entry.js +1 -0
- package/dist/magma-components/{p-789c1b93.system.entry.js → p-f30cdd34.system.entry.js} +1 -1
- package/dist/magma-components/p-f3763382.entry.js +1 -0
- package/dist/magma-components/p-f43379ef.entry.js +1 -0
- package/dist/magma-components/p-f454c06b.entry.js +1 -0
- package/dist/magma-components/p-f48843b7.system.entry.js +1 -0
- package/dist/magma-components/p-f5a08dca.system.entry.js +40 -0
- package/dist/magma-components/p-f7af41fb.system.entry.js +33 -0
- package/dist/magma-components/{p-5c17a324.entry.js → p-f7f6881a.entry.js} +1 -1
- package/dist/magma-components/p-f88c202e.entry.js +1 -0
- package/dist/magma-components/{p-1cb495d3.entry.js → p-f9b5a5ec.entry.js} +1 -1
- package/dist/magma-components/p-fcaa81b3.entry.js +1 -0
- package/dist/magma-components/{p-a462aadd.entry.js → p-fd53a51c.entry.js} +1 -1
- package/dist/magma-components/{p-94e9f2be.system.entry.js → p-ff4276d3.system.entry.js} +7 -2
- package/dist/magma-components/p-nFkaC8l_.system.js +210 -0
- package/dist/magma-components/p-sm_-_oFY.system.js +6 -0
- package/dist/magma-components/{p-8yWTOQiz.js → p-zQY2FlcD.js} +1 -1
- package/dist/stats.json +5527 -4219
- package/dist/types/common/aria.d.ts +8 -1
- package/dist/types/common/file.d.ts +5 -0
- package/dist/types/common/floating-controller.d.ts +8 -1
- package/dist/types/common/keyboard-manager.d.ts +8 -1
- package/dist/types/common/slot.d.ts +9 -1
- package/dist/types/components/mds-accordion/mds-accordion.d.ts +8 -1
- package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +6 -0
- package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +2 -1
- package/dist/types/components/mds-avatar/mds-avatar.d.ts +13 -9
- package/dist/types/components/mds-avatar-stack/mds-avatar-stack.d.ts +2 -1
- package/dist/types/components/mds-bibliography/mds-bibliography.d.ts +10 -2
- package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +0 -3
- package/dist/types/components/mds-breadcrumb-item/mds-breadcrumb-item.d.ts +4 -1
- package/dist/types/components/mds-button/mds-button.d.ts +7 -1
- package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +7 -3
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +7 -0
- package/dist/types/components/mds-calendar-cell/mds-calendar-cell.d.ts +4 -1
- package/dist/types/components/mds-card/mds-card.d.ts +8 -0
- package/dist/types/components/mds-card-media/mds-card-media.d.ts +1 -0
- package/dist/types/components/mds-chip/mds-chip.d.ts +7 -5
- package/dist/types/components/mds-details/mds-details.d.ts +3 -1
- package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +8 -3
- package/dist/types/components/mds-emoji/mds-emoji.d.ts +20 -10
- package/dist/types/components/mds-emoji/meta/gaze.d.ts +19 -0
- package/dist/types/components/mds-file/mds-file.d.ts +7 -1
- package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +15 -4
- package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +0 -2
- package/dist/types/components/mds-header/mds-header.d.ts +7 -5
- package/dist/types/components/mds-header/meta/event-detail.d.ts +2 -1
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +3 -2
- package/dist/types/components/mds-help/mds-help.d.ts +5 -2
- package/dist/types/components/mds-horizontal-scroll/mds-horizontal-scroll.d.ts +1 -0
- package/dist/types/components/mds-icon/mds-icon.d.ts +5 -0
- package/dist/types/components/mds-img/mds-img.d.ts +24 -14
- package/dist/types/components/mds-input/mds-input.d.ts +22 -7
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +6 -0
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +4 -0
- package/dist/types/components/mds-input-date-range-preselection/mds-input-date-range-preselection.d.ts +8 -1
- package/dist/types/components/mds-input-field/mds-input-field.d.ts +4 -1
- package/dist/types/components/mds-input-otp/mds-input-otp.d.ts +8 -0
- package/dist/types/components/mds-input-tip/mds-input-tip.d.ts +2 -1
- package/dist/types/components/mds-input-tip-item/meta/dictionary.d.ts +1 -2
- package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +3 -1
- package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +7 -0
- package/dist/types/components/mds-label/mds-label.d.ts +0 -9
- package/dist/types/components/mds-list-item/mds-list-item.d.ts +2 -0
- package/dist/types/components/mds-mention/mds-mention.d.ts +2 -1
- package/dist/types/components/mds-modal/mds-modal.d.ts +4 -1
- package/dist/types/components/mds-note/mds-note.d.ts +1 -0
- package/dist/types/components/mds-notification/mds-notification.d.ts +25 -2
- package/dist/types/components/mds-paginator/mds-paginator.d.ts +1 -0
- package/dist/types/components/mds-paginator-item/mds-paginator-item.d.ts +7 -0
- package/dist/types/components/mds-policy-ai/mds-policy-ai.d.ts +2 -1
- package/dist/types/components/mds-pref/mds-pref.d.ts +6 -1
- package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +8 -0
- package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +8 -0
- package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +8 -2
- package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +2 -2
- package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +1 -0
- package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +6 -1
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +16 -2
- package/dist/types/components/mds-pref-theme-item/mds-pref-theme-item.d.ts +1 -0
- package/dist/types/components/mds-price-table-list/mds-price-table-list.d.ts +1 -0
- package/dist/types/components/mds-price-table-list-item/mds-price-table-list-item.d.ts +1 -0
- package/dist/types/components/mds-progress/mds-progress.d.ts +14 -4
- package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +4 -9
- package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +5 -2
- package/dist/types/components/mds-radial-menu/mds-radial-menu.d.ts +11 -5
- package/dist/types/components/mds-status-bar/mds-status-bar.d.ts +1 -2
- package/dist/types/components/mds-stepper-bar/mds-stepper-bar.d.ts +4 -3
- package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +10 -2
- package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +4 -3
- package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +3 -0
- package/dist/types/components/mds-table/mds-table.d.ts +15 -2
- package/dist/types/components/mds-table-footer/mds-table-footer.d.ts +9 -1
- package/dist/types/components/mds-table-header/mds-table-header.d.ts +9 -1
- package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +5 -0
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +1 -0
- package/dist/types/components/mds-toast/mds-toast.d.ts +39 -8
- package/dist/types/components/mds-toast/meta/event-detail.d.ts +3 -0
- package/dist/types/components/mds-toast-region/mds-toast-region.d.ts +36 -0
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +24 -5
- package/dist/types/components/mds-tree/mds-tree.d.ts +12 -2
- package/dist/types/components/mds-tree-item/mds-tree-item.d.ts +7 -3
- package/dist/types/components/mds-url-view/mds-url-view.d.ts +2 -1
- package/dist/types/components/mds-usage/mds-usage.d.ts +3 -0
- package/dist/types/components.d.ts +253 -119
- package/dist/types/stencil-public-runtime.d.ts +61 -55
- package/package.json +25 -24
- package/dist/cjs/browser-C1BdXKu5.js +0 -10
- package/dist/cjs/keyboard-manager-C_Eaxw-C.js +0 -52
- package/dist/collection/components/mds-avatar/meta/variants.js +0 -20
- package/dist/components/p--5KZXaZp.js +0 -1
- package/dist/components/p--OCrgFeE.js +0 -1
- package/dist/components/p-6LGfUDQ4.js +0 -1
- package/dist/components/p-B9uIL9KO.js +0 -1
- package/dist/components/p-BBDliSai.js +0 -1
- package/dist/components/p-BCwcnHFh.js +0 -1
- package/dist/components/p-BRf-u585.js +0 -1
- package/dist/components/p-BSeokAdy.js +0 -1
- package/dist/components/p-BXUJgu8l.js +0 -1
- package/dist/components/p-BXYUyw7p.js +0 -1
- package/dist/components/p-BfgJ-hHQ.js +0 -1
- package/dist/components/p-CIfGjW_Z.js +0 -1
- package/dist/components/p-CMp9rP7L.js +0 -1
- package/dist/components/p-CSCy6TMW.js +0 -1
- package/dist/components/p-CZjHixVB.js +0 -1
- package/dist/components/p-Ck0q_n7I.js +0 -1
- package/dist/components/p-CrCa_6a1.js +0 -8
- package/dist/components/p-CsgCQiHG.js +0 -1
- package/dist/components/p-Cv7lqHIc.js +0 -1
- package/dist/components/p-Cw6_ooFx.js +0 -1
- package/dist/components/p-D8eZRaSQ.js +0 -1
- package/dist/components/p-DGYRngAi.js +0 -1
- package/dist/components/p-DHu8X7zF.js +0 -1
- package/dist/components/p-DOzcuSrZ.js +0 -1
- package/dist/components/p-DZPHWQtD.js +0 -1
- package/dist/components/p-Dje8Mggf.js +0 -1
- package/dist/components/p-DlRjt7nE.js +0 -1
- package/dist/components/p-HSM_x8fD.js +0 -1
- package/dist/components/p-JMPfVnGv.js +0 -1
- package/dist/components/p-KRu9I7dw.js +0 -1
- package/dist/components/p-lNY_3s6S.js +0 -1
- package/dist/components/p-pBvN1uAc.js +0 -3
- package/dist/esm/aria-CSCy6TMW.js +0 -45
- package/dist/esm/browser-Dje8Mggf.js +0 -8
- package/dist/esm/keyboard-manager-KRu9I7dw.js +0 -50
- package/dist/esm-es5/aria-CSCy6TMW.js +0 -1
- package/dist/esm-es5/browser-Dje8Mggf.js +0 -1
- package/dist/esm-es5/icon-pNJmnrhq.js +0 -1
- package/dist/esm-es5/keyboard-manager-KRu9I7dw.js +0 -5
- package/dist/esm-es5/locale.it-Cvxh7La5.js +0 -6
- package/dist/esm-es5/slot-C0o_l0td.js +0 -23
- package/dist/esm-es5/unit-D8eZRaSQ.js +0 -1
- package/dist/magma-components/p-00ce5c81.entry.js +0 -1
- package/dist/magma-components/p-00ff586a.system.entry.js +0 -7
- package/dist/magma-components/p-01f05a56.entry.js +0 -1
- package/dist/magma-components/p-0345cbd0.system.entry.js +0 -83
- package/dist/magma-components/p-03a6a8bd.system.entry.js +0 -46
- package/dist/magma-components/p-05de42e1.system.entry.js +0 -1
- package/dist/magma-components/p-063bccb3.entry.js +0 -1
- package/dist/magma-components/p-0a38e4ce.system.entry.js +0 -1
- package/dist/magma-components/p-0c89c485.entry.js +0 -1
- package/dist/magma-components/p-0d94a2b8.entry.js +0 -8
- package/dist/magma-components/p-108e31e6.entry.js +0 -1
- package/dist/magma-components/p-114f0bb7.system.entry.js +0 -14
- package/dist/magma-components/p-137116df.entry.js +0 -1
- package/dist/magma-components/p-13b0babc.system.entry.js +0 -1
- package/dist/magma-components/p-14a108e8.system.entry.js +0 -8
- package/dist/magma-components/p-14eadf95.system.entry.js +0 -21
- package/dist/magma-components/p-155f79f4.system.entry.js +0 -47
- package/dist/magma-components/p-17b62839.entry.js +0 -1
- package/dist/magma-components/p-1802d6a7.entry.js +0 -1
- package/dist/magma-components/p-188d9770.system.entry.js +0 -4
- package/dist/magma-components/p-18ba4766.entry.js +0 -1
- package/dist/magma-components/p-1c63801f.system.entry.js +0 -11
- package/dist/magma-components/p-1c6a507c.system.entry.js +0 -17
- package/dist/magma-components/p-1e2388be.entry.js +0 -1
- package/dist/magma-components/p-24a9871a.system.entry.js +0 -1
- package/dist/magma-components/p-26332bce.system.entry.js +0 -1
- package/dist/magma-components/p-2708561b.system.entry.js +0 -10
- package/dist/magma-components/p-2723caa7.system.entry.js +0 -13
- package/dist/magma-components/p-294241fa.entry.js +0 -1
- package/dist/magma-components/p-2b2d0910.system.entry.js +0 -1
- package/dist/magma-components/p-2c940d19.entry.js +0 -1
- package/dist/magma-components/p-2e74231d.system.entry.js +0 -4
- package/dist/magma-components/p-2e83f801.system.entry.js +0 -1
- package/dist/magma-components/p-2f0815f3.entry.js +0 -18
- package/dist/magma-components/p-30d36dfe.entry.js +0 -1
- package/dist/magma-components/p-323c7aa4.system.entry.js +0 -25
- package/dist/magma-components/p-32e077c0.system.entry.js +0 -7
- package/dist/magma-components/p-334b305d.system.entry.js +0 -16
- package/dist/magma-components/p-341994b3.system.entry.js +0 -89
- package/dist/magma-components/p-35434d4b.system.entry.js +0 -32
- package/dist/magma-components/p-37495e03.entry.js +0 -1
- package/dist/magma-components/p-38e0379a.system.entry.js +0 -10
- package/dist/magma-components/p-3b91efd1.entry.js +0 -1
- package/dist/magma-components/p-3dc4db04.system.entry.js +0 -16
- package/dist/magma-components/p-3f0e82bc.entry.js +0 -1
- package/dist/magma-components/p-40e97485.entry.js +0 -1
- package/dist/magma-components/p-4159c306.entry.js +0 -1
- package/dist/magma-components/p-42411854.system.entry.js +0 -102
- package/dist/magma-components/p-42ebba8c.entry.js +0 -1
- package/dist/magma-components/p-4356d96e.system.entry.js +0 -21
- package/dist/magma-components/p-4577948d.system.entry.js +0 -12
- package/dist/magma-components/p-4658a200.entry.js +0 -1
- package/dist/magma-components/p-4cfa925a.entry.js +0 -1
- package/dist/magma-components/p-4ef19542.entry.js +0 -1
- package/dist/magma-components/p-4oB0woT9.system.js +0 -6
- package/dist/magma-components/p-522fd3d0.system.entry.js +0 -4
- package/dist/magma-components/p-528d913c.system.entry.js +0 -17
- package/dist/magma-components/p-595fde64.entry.js +0 -1
- package/dist/magma-components/p-5989cdf2.system.entry.js +0 -16
- package/dist/magma-components/p-5df91427.system.entry.js +0 -15
- package/dist/magma-components/p-5f1132b8.entry.js +0 -1
- package/dist/magma-components/p-5fcc1455.entry.js +0 -1
- package/dist/magma-components/p-61638aa3.entry.js +0 -1
- package/dist/magma-components/p-6465c8f4.entry.js +0 -1
- package/dist/magma-components/p-6764b13a.entry.js +0 -1
- package/dist/magma-components/p-6812f01b.entry.js +0 -1
- package/dist/magma-components/p-6901428b.system.entry.js +0 -1
- package/dist/magma-components/p-699a7926.entry.js +0 -1
- package/dist/magma-components/p-6a798061.entry.js +0 -1
- package/dist/magma-components/p-6d350c7c.entry.js +0 -1
- package/dist/magma-components/p-6fba5e6c.entry.js +0 -1
- package/dist/magma-components/p-6fd9a2ae.entry.js +0 -1
- package/dist/magma-components/p-6ff8be3e.system.entry.js +0 -30
- package/dist/magma-components/p-70caf05b.system.entry.js +0 -10
- package/dist/magma-components/p-70cc167f.entry.js +0 -1
- package/dist/magma-components/p-736c0e25.system.entry.js +0 -20
- package/dist/magma-components/p-7450a7a7.system.entry.js +0 -49
- package/dist/magma-components/p-7535328a.entry.js +0 -1
- package/dist/magma-components/p-76f02296.system.entry.js +0 -1
- package/dist/magma-components/p-79bc2e81.entry.js +0 -1
- package/dist/magma-components/p-79dc2243.entry.js +0 -1
- package/dist/magma-components/p-7b1c6eb0.entry.js +0 -1
- package/dist/magma-components/p-7b8b51c8.entry.js +0 -1
- package/dist/magma-components/p-7bc0a6c4.entry.js +0 -1
- package/dist/magma-components/p-7c8e79a7.system.entry.js +0 -4
- package/dist/magma-components/p-7c90298a.entry.js +0 -1
- package/dist/magma-components/p-7e02237b.entry.js +0 -1
- package/dist/magma-components/p-7f247e64.system.entry.js +0 -16
- package/dist/magma-components/p-82480df5.entry.js +0 -1
- package/dist/magma-components/p-842b1dfc.entry.js +0 -1
- package/dist/magma-components/p-88c7be3d.system.entry.js +0 -68
- package/dist/magma-components/p-89733d3a.system.entry.js +0 -14
- package/dist/magma-components/p-8c75425d.entry.js +0 -1
- package/dist/magma-components/p-8c76410b.entry.js +0 -1
- package/dist/magma-components/p-8d7835e2.system.entry.js +0 -10
- package/dist/magma-components/p-8f039ca0.system.entry.js +0 -7
- package/dist/magma-components/p-8f54cf62.system.entry.js +0 -4
- package/dist/magma-components/p-8f6bd147.entry.js +0 -1
- package/dist/magma-components/p-9017022c.system.entry.js +0 -15
- package/dist/magma-components/p-909f5b60.system.entry.js +0 -55
- package/dist/magma-components/p-976bb373.system.entry.js +0 -90
- package/dist/magma-components/p-97d82884.system.entry.js +0 -16
- package/dist/magma-components/p-97de86c6.system.entry.js +0 -16
- package/dist/magma-components/p-97e9a197.system.entry.js +0 -32
- package/dist/magma-components/p-9a936cae.system.entry.js +0 -45
- package/dist/magma-components/p-9c6d184f.entry.js +0 -1
- package/dist/magma-components/p-9db0a6e9.entry.js +0 -1
- package/dist/magma-components/p-9e662528.entry.js +0 -1
- package/dist/magma-components/p-9ff02a82.entry.js +0 -1
- package/dist/magma-components/p-B6mQg6yQ.js +0 -1
- package/dist/magma-components/p-BJqUjYIG.system.js +0 -1
- package/dist/magma-components/p-BJtA1qmE.js +0 -1
- package/dist/magma-components/p-BcYSdbK0.system.js +0 -233
- package/dist/magma-components/p-BeYLDgbf.js +0 -1
- package/dist/magma-components/p-BxPbQB28.js +0 -3
- package/dist/magma-components/p-C0o_l0td.js +0 -1
- package/dist/magma-components/p-CSCy6TMW.js +0 -1
- package/dist/magma-components/p-CYRMc5KW.system.js +0 -1
- package/dist/magma-components/p-D8eZRaSQ.js +0 -1
- package/dist/magma-components/p-Dje8Mggf.js +0 -1
- package/dist/magma-components/p-JMPfVnGv.js +0 -1
- package/dist/magma-components/p-KRu9I7dw.js +0 -1
- package/dist/magma-components/p-LerCJgfP.system.js +0 -5
- package/dist/magma-components/p-ZDRIVCAt.system.js +0 -5
- package/dist/magma-components/p-_X0N_X__.system.js +0 -1
- package/dist/magma-components/p-a3e3a653.system.entry.js +0 -81
- package/dist/magma-components/p-a41e52f7.entry.js +0 -1
- package/dist/magma-components/p-a4c26b4d.system.entry.js +0 -19
- package/dist/magma-components/p-a61c7ae9.system.entry.js +0 -7
- package/dist/magma-components/p-a653e096.entry.js +0 -1
- package/dist/magma-components/p-a8bf46cb.system.entry.js +0 -1
- package/dist/magma-components/p-ac4435e7.entry.js +0 -1
- package/dist/magma-components/p-acae292f.system.entry.js +0 -28
- package/dist/magma-components/p-b1a0e56e.system.entry.js +0 -42
- package/dist/magma-components/p-b33a6f7e.system.entry.js +0 -13
- package/dist/magma-components/p-b492dd4c.entry.js +0 -1
- package/dist/magma-components/p-b99cac43.entry.js +0 -1
- package/dist/magma-components/p-baf0359b.entry.js +0 -1
- package/dist/magma-components/p-bbd414dc.entry.js +0 -1
- package/dist/magma-components/p-be1aad5f.entry.js +0 -1
- package/dist/magma-components/p-bf05f9f3.entry.js +0 -1
- package/dist/magma-components/p-bf8c6647.system.entry.js +0 -11
- package/dist/magma-components/p-bfe19e4b.entry.js +0 -1
- package/dist/magma-components/p-c1a7266a.entry.js +0 -1
- package/dist/magma-components/p-c3585de7.system.entry.js +0 -7
- package/dist/magma-components/p-c45d9a64.system.entry.js +0 -32
- package/dist/magma-components/p-cb8b45fd.entry.js +0 -1
- package/dist/magma-components/p-cbfd8b10.system.entry.js +0 -16
- package/dist/magma-components/p-ce46191c.entry.js +0 -1
- package/dist/magma-components/p-cebe7b52.entry.js +0 -1
- package/dist/magma-components/p-d025a34f.system.entry.js +0 -15
- package/dist/magma-components/p-d1c47baa.entry.js +0 -1
- package/dist/magma-components/p-d269bfb0.entry.js +0 -1
- package/dist/magma-components/p-d42f267b.system.entry.js +0 -40
- package/dist/magma-components/p-d5bd6bef.entry.js +0 -1
- package/dist/magma-components/p-d65d8a09.system.entry.js +0 -1
- package/dist/magma-components/p-d6eca2ef.entry.js +0 -1
- package/dist/magma-components/p-d716efe9.system.entry.js +0 -1
- package/dist/magma-components/p-da6ccc03.entry.js +0 -1
- package/dist/magma-components/p-dbaf5368.system.entry.js +0 -7
- package/dist/magma-components/p-dc340618.entry.js +0 -1
- package/dist/magma-components/p-dc752e9b.entry.js +0 -1
- package/dist/magma-components/p-e2ef1d6f.entry.js +0 -1
- package/dist/magma-components/p-e50fdcee.entry.js +0 -1
- package/dist/magma-components/p-e779a67f.system.entry.js +0 -10
- package/dist/magma-components/p-e8ae4016.system.entry.js +0 -1
- package/dist/magma-components/p-e8d95868.system.entry.js +0 -14
- package/dist/magma-components/p-ed232c76.entry.js +0 -1
- package/dist/magma-components/p-ed87425c.system.entry.js +0 -13
- package/dist/magma-components/p-ee876b20.system.entry.js +0 -4
- package/dist/magma-components/p-efe0bb12.system.entry.js +0 -7
- package/dist/magma-components/p-f2412853.system.entry.js +0 -27
- package/dist/magma-components/p-f2743a2b.entry.js +0 -1
- package/dist/magma-components/p-f2f2945b.entry.js +0 -1
- package/dist/magma-components/p-f37f1343.entry.js +0 -1
- package/dist/magma-components/p-f3dd135e.system.entry.js +0 -32
- package/dist/magma-components/p-f5ce24e8.entry.js +0 -1
- package/dist/magma-components/p-f8a88f11.entry.js +0 -1
- package/dist/magma-components/p-f900fe90.entry.js +0 -1
- package/dist/magma-components/p-faa1f22c.entry.js +0 -1
- package/dist/magma-components/p-lozaO1BU.system.js +0 -1
- package/dist/magma-components/p-pNJmnrhq.js +0 -1
- package/dist/types/components/mds-avatar/meta/variants.d.ts +0 -2
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
System.register(["./p-CmzGV0XD.system.js","./p-BeNKMPXR.system.js","./p-sm_-_oFY.system.js","./p-Qrub-hmK.system.js","./p-B-nayZ3E.system.js","./p-D8596ytD.system.js"],(function(t){"use strict";var a,r,e,s,i,o,n,d,l,c,b;return{setters:[function(t){a=t.r;r=t.d;e=t.h;s=t.e;i=t.g},function(t){o=t.b},function(t){n=t.s;d=t.h},function(t){l=t.c},function(t){c=t.c},function(t){b=t.p}],execute:function(){var m=function(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-tab-item:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-direction-vertical-columns:auto auto;--mds-tab-item-default-background:#0000;--mds-tab-item-default-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-tab-item-default-shadow:none;--mds-tab-item-hover-background:#0000;--mds-tab-item-hover-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-radius:min(calc(var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px))) - var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200))),var(--magma-corner-cap,.5) * var(--private-tab-item-height));--mds-tab-item-selected-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-selected-shadow:var(--shadow-sm,0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a);--mds-tab-scroll-behavior:smooth;--mds-tab-scroll-scrollbar-margin:0;--mds-tab-scroll-scrollbar-radius:0;--mds-tab-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-tab-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3);--mds-tab-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-tab-slide-delay:.125s;--mds-tab-tabs-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-tab-tabs-gap:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-overflow-shadow-size:calc(var(--spacing,.0025rem)*600);--mds-tab-tabs-overflow-shadow:0 0 var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem)*600)) -2px #00000060;--mds-tab-tabs-padding:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-radius:min(var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)),var(--magma-corner-cap,.5) * var(--private-tab-item-height) + var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem)*200)));--mds-tab-tabs-wrapper-margin:0;--mds-tab-tabs-wrapper-outline-opacity:.7;--mds-tab-tabs-wrapper-shadow-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));--mds-tab-tabs-wrapper-shadow:0 0 0 2px var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-transition-duration:.5s;--private-tab-transition-duration:var(--mds-tab-transition-duration,.5s);--private-tab-item-height:calc(var(--spacing,.0025rem)*900);--mds-tab-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-tab-corner-shape:var(--magma-corner-shape,squircle);border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));corner-shape:var(--mds-tab-corner-shape,round);display:grid;gap:0 calc(var(--spacing,.0025rem)*600);grid-template-rows:min-content auto;position:relative}:host([size=sm]){--private-tab-item-height:calc(var(--spacing,.0025rem)*700)}:host([animation=slide]) ::slotted(mds-tab-item){--mds-tab-item-hover-background:#0000;--mds-tab-item-hover-shadow:none;--mds-tab-item-selected-background:#0000;--mds-tab-item-selected-shadow:#0000;--mds-tab-item-default-background:#0000;--mds-tab-item-default-shadow:none}.tabs{align-items:flex-start;background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));box-sizing:border-box;display:flex;gap:var(--mds-tab-tabs-gap,calc(var(--spacing,.0025rem)*200));overflow:auto;padding:var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem)*200));scroll-behavior:var(--mds-tab-scroll-behavior);scroll-snap-type:x mandatory;transition-duration:var(--private-tab-transition-duration);transition-property:background-color;transition-timing-function:var(--mds-tab-transition-timing-function);z-index:0}.tabs,.tabs-wrapper{border-radius:inherit;corner-shape:inherit;position:relative}.tabs-wrapper{display:grid;flex-shrink:0;margin:var(--mds-tab-tabs-wrapper-margin,0);max-width:max-content;overflow:hidden}.tabs-wrapper--fill{max-width:100%}.tabs-wrapper:after{border-radius:inherit;corner-shape:inherit;border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));box-shadow:var(--mds-tab-tabs-wrapper-shadow);content:"";inset:0;opacity:var(--mds-tab-tabs-wrapper-outline-opacity,.7);pointer-events:none;position:absolute;transition-duration:var(--private-tab-transition-duration);transition-duration:var(--mds-tab-transition-duration,.5s);transition-property:box-shadow,opacity;transition-timing-function:var(--mds-tab-transition-timing-function);z-index:1}.contents{--mds-tab-contents-height:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;align-items:stretch;box-sizing:border-box;display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*600);height:var(--mds-tab-contents-height);overflow:auto hidden;position:relative;scroll-behavior:var(--mds-tab-scroll-behavior);scroll-snap-type:x mandatory;scrollbar-width:none;transition-duration:var(--private-tab-transition-duration);transition-property:height;transition-timing-function:var(--mds-tab-transition-timing-function)}.contents::-webkit-scrollbar{display:none}.contents--empty{display:none}::slotted([slot=content]){flex-basis:0;flex-grow:1;min-width:100%;scroll-snap-align:start;width:100%}::slotted([slot=content][mds-tab-content-hidden]){display:none!important}.slider{--mds-tab-slider-offset-x:0;--mds-tab-slider-offset-y:0;--mds-tab-slider-width:0;--mds-tab-slider-height:0;background-color:var(--mds-tab-item-selected-background);border-radius:var(--mds-tab-item-radius);box-shadow:var(--mds-tab-item-selected-shadow);corner-shape:var(--mds-tab-corner-shape);height:var(--mds-tab-slider-height);inset:0 auto auto 0;pointer-events:none;position:absolute;transform:translate(var(--mds-tab-slider-offset-x),var(--mds-tab-slider-offset-y));transition-duration:var(--mds-tab-transition-duration,.5s);transition-property:background-color,box-shadow,transform,width;transition-timing-function:var(--mds-tab-transition-timing-function);width:var(--mds-tab-slider-width);will-change:height,transform,width;z-index:-1}.slider--still{transition-property:background-color,box-shadow}::slotted(mds-tab-item){position:relative;z-index:1}:host([direction=vertical]){--mds-tab-tabs-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));grid-template-columns:var(--mds-tab-direction-vertical-columns,auto auto);grid-template-rows:1fr}:host([direction=vertical]) .tabs{align-self:start;flex-direction:column}:host([direction=vertical]) .tabs-wrapper{align-self:start;max-width:none}:host([direction=vertical][fill]) :is(.tabs,.tabs-wrapper){align-self:auto}:host([direction=vertical]) .tabs-wrapper--no-content{grid-column:1/-1}:host([direction=vertical])::slotted(mds-tab-item){width:100%}:host(:not([scrollbar])) .tabs{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([scrollbar])) .tabs::-webkit-scrollbar{display:none}:host([scrollbar]) .tabs::-webkit-scrollbar{height:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([scrollbar]) .tabs::-webkit-scrollbar-track{background-color:var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-tab-scroll-scrollbar-radius,0);margin-block:var(--mds-tab-scroll-scrollbar-margin,0);margin-inline:var(--mds-tab-scroll-scrollbar-margin,0)}:host([scrollbar]) .tabs::-webkit-scrollbar-thumb{background-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3));border-radius:var(--mds-tab-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.tabs{scrollbar-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3)) var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));scrollbar-width:thin}}.tabs-wrapper-overflow-left,.tabs-wrapper-overflow-right{--size:calc(var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200)) * 2);--offset-outside:calc(var(--size) + var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem) * 600)));background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));border-radius:100%;box-shadow:var(--mds-tab-tabs-overflow-shadow);content:"";display:inline-flex;height:auto;pointer-events:none;position:absolute;transition-duration:.5s;transition-property:transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:var(--size);z-index:2}.tabs-wrapper-overflow-left{inset:0 auto 0 0;transform:translateX(calc(var(--offset-outside)*-1))}.tabs-wrapper-overflow-right{inset:0 0 0 auto;transform:translateX(var(--offset-outside))}.tabs-wrapper-overflow-left--show{transform:translate(-100%)}.tabs-wrapper-overflow-right--show{transform:translate(100%)}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-tab-item-selected-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([pref-contrast=more]){--mds-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-tab-tabs-wrapper-outline-opacity:.3}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-tab-transition-duration:0s}@media (prefers-reduced-motion:reduce){:host{--mds-tab-scroll-behavior:auto}:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-tab-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-tab-item-selected-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-tab-tabs-wrapper-outline-opacity:.3}}'};var h=t("mds_tab",/** @class */function(){function t(t){var e=this;a(this,t);this.changedEvent=r(this,"mdsTabChange",7);this.currentItemIndex=-1;this.tabItems=[];this.contentItems=[];this.sliderWidth=-1;this.sliderHeight=-1;this.sliderOffsetX=-1;this.sliderOffsetY=-1;
|
|
2
|
+
/** the slider slides only to follow a selection, any other move draws it in place */this.sliderSlides=false;this.overflowLeft=false;this.overflowRight=false;
|
|
3
|
+
/** every item is a link: the strip is a navigation, not a tablist */this.navigation=false;this.hasContent=false;
|
|
4
|
+
/**
|
|
5
|
+
* Sets if the component distributes item vertically or horzontally
|
|
6
|
+
*/this.direction="horizontal";
|
|
7
|
+
/**
|
|
8
|
+
* Sets the animation type of the selection transition between `mds-tab-item` elements
|
|
9
|
+
*/this.animation="slide";this.queryContentItems=function(){return o(e.element,"content")};this.updateContentItems=function(){e.contentItems=e.queryContentItems();e.hasContent=e.contentItems.length>0;
|
|
10
|
+
// a panel past the last item has no tab to open it: it stays hidden, named by nothing
|
|
11
|
+
if(e.contentItems.length>e.tabItems.length){console.warn("mds-tab: ".concat(e.contentItems.length," content panels for ").concat(e.tabItems.length," mds-tab-item, the panels past the last item are never shown"))}e.contentItems.forEach((function(t,a){n(t,"role","tabpanel");if(a<e.tabItems.length){n(t,"aria-labelledby",e.tabItems[a].id)}}));e.selectContentItem()};this.setTabsItems=function(){e.tabItems=Array.from(e.element.querySelectorAll("mds-tab-item"));e.currentItemIndex=-1;e.navigation=e.tabItems.length>0&&e.tabItems.every((function(t){var a;return((a=t.href)!==null&&a!==void 0?a:"")!==""}));e.tabItems.forEach((function(t){t.size=e.size;t.direction=e.direction;t.animation=e.animation}));e.tabItems.forEach((function(t,a){if(t.id===""){n(t,"id",d("mds-tab-item"))}if(t.selected){e.currentItemIndex=a;e.currentItemEl=e.tabItems[e.currentItemIndex]}}))};this.updateTabItems=function(){e.setTabsItems();if(e.overflow)e.updateOverflowState();e.updateSliderPosition();e.scrollTabs(e.currentItemIndex)};this.unsetOverflowCheck=function(){e.tabs.removeEventListener("scroll",e.updateOverflowState);e.observer.unobserve(e.tabsContainer)};this.initOverflowCheck=function(){e.tabs.addEventListener("scroll",e.updateOverflowState);e.observer=new ResizeObserver((function(){if(e.overflow)e.updateOverflowState();e.updateSliderPosition()}));e.observer.observe(e.tabsContainer);e.updateOverflowState()};this.updateOverflowState=function(){if(e.tabs==null||e.tabsContainer==null)return;var t=e.tabsContainer.offsetWidth;var a=e.tabs.scrollWidth;var r=e.tabs.scrollLeft;e.overflowLeft=r>0;e.overflowRight=Math.ceil(r+t)<a-1};
|
|
12
|
+
/**
|
|
13
|
+
* Moves the slider under the selected item. It slides there only to follow a selection
|
|
14
|
+
* (`slide`): on load, after a change of the layout, or when the strip is shown again after
|
|
15
|
+
* being hidden, it is drawn in place, so the strip appears with the selected tab already
|
|
16
|
+
* marked (#924).
|
|
17
|
+
*/this.updateSliderPosition=function(t){if(t===void 0){t=false}if(e.animation==="slide"&&e.currentItemIndex>=0){self.requestAnimationFrame((function(){
|
|
18
|
+
// a hidden strip has no box, and every measure reads 0: the slider keeps its place
|
|
19
|
+
// instead of collapsing in the corner, and the observer moves it once the strip is shown
|
|
20
|
+
if(!e.currentItemEl.offsetWidth)return;e.sliderSlides=t;e.sliderWidth=e.currentItemEl.offsetWidth;e.sliderHeight=e.currentItemEl.offsetHeight;e.sliderOffsetX=e.currentItemEl.offsetLeft-e.tabsContainer.offsetLeft;e.sliderOffsetY=e.currentItemEl.offsetTop-e.tabsContainer.offsetTop+e.currentItemEl.offsetHeight-e.sliderHeight}))}else{e.sliderHeight=-1;e.sliderOffsetX=-1;e.sliderOffsetY=-1;e.sliderWidth=-1}};this.scrollTabs=function(t){
|
|
21
|
+
// no item selected: nothing to bring into view
|
|
22
|
+
if(t<0||t>=e.tabItems.length)return;var a=e.tabItems[t];setTimeout((function(){e.tabs.scrollLeft=a.offsetLeft-e.tabs.offsetLeft-e.tabs.offsetWidth/2+a.offsetWidth/2;e.updateOverflowState()}),c(e.cssSlideDelayDuration))};this.selectContentItem=function(){e.contentItems.forEach((function(t,a){t.setAttribute("mds-tab-content-hidden","");if(a===e.currentItemIndex){t.removeAttribute("mds-tab-content-hidden")}}))};this.updateCSSCustomProps=function(){if(typeof window==="undefined")return;var t=window.getComputedStyle(e.element);e.cssSlideDelayDuration=t.getPropertyValue("--mds-tab-slide-delay")}}t.prototype.componentWillLoad=function(){this.setTabsItems();this.hasContent=this.queryContentItems().length>0};t.prototype.disconnectedCallback=function(){this.unsetOverflowCheck()};t.prototype.componentDidLoad=function(){var t,a,r,e;this.updateCSSCustomProps();this.tabs=(t=this.element.shadowRoot)===null||t===void 0?void 0:t.querySelector(".tabs");this.tabsContainer=(a=this.element.shadowRoot)===null||a===void 0?void 0:a.querySelector(".tabs-wrapper");
|
|
23
|
+
// attach onSlotChange event here to prevent fire event before componentDidLoad
|
|
24
|
+
(e=(r=this.element.shadowRoot)===null||r===void 0?void 0:r.querySelector("slot"))===null||e===void 0?void 0:e.addEventListener("slotchange",this.updateTabItems.bind(this));this.updateContentItems();this.initOverflowCheck();this.updateSliderPosition();if(this.currentItemIndex>0){this.scrollTabs(this.currentItemIndex)}};t.prototype.changeEventHandler=function(t){var a=this;
|
|
25
|
+
// since the external developer can define a custom id
|
|
26
|
+
// we must find the key from event.detail
|
|
27
|
+
this.tabItems.forEach((function(r,e){var s;if(r.id===t.detail.target.id){a.changedEvent.emit({id:e,value:r.value});a.currentItemIndex=e;a.currentItemEl=a.tabItems[a.currentItemIndex];a.scrollTabs(e);r.selected=true;
|
|
28
|
+
// for some reason, mds-tab-item looses focus when we click Enter with the keyboard,
|
|
29
|
+
// which forces user to find again where the tab is with keyboard
|
|
30
|
+
var i=(s=a.tabItems[a.currentItemIndex].shadowRoot)===null||s===void 0?void 0:s.querySelector("mds-button");setTimeout((function(){i.focus()}),0);return}r.selected=undefined}));this.selectContentItem();this.updateSliderPosition(true)};t.prototype.focusEventHandler=function(t){var a=this;this.tabItems.forEach((function(r,e){if(r.id===t.detail.target.id){a.scrollTabs(e)}}))};t.prototype.handleAnimationChange=function(t){this.tabItems.forEach((function(a){a.animation=t}));this.updateSliderPosition()};t.prototype.handleDirectionChange=function(t){this.tabItems.forEach((function(a){a.direction=t}))};t.prototype.handleScrollbarChange=function(t){if(t===false){this.scrollbar=undefined}};t.prototype.handleFillChange=function(t){if(t===false){this.fill=undefined}};t.prototype.handleOverflowChange=function(t){if(!t){this.unsetOverflowCheck();return}this.initOverflowCheck()};t.prototype.handleSizeChange=function(t){this.tabItems.forEach((function(a){a.size=t}))};t.prototype.render=function(){return e(s,{key:"780966a4389bc21db5a6236aad4e2af6b2d3192b","pref-animation":b.state.animation,"pref-contrast":b.state.contrast,"pref-mode":b.state.mode,"pref-theme-scheme":b.state["theme-scheme"]},e("div",{key:"2f75159dd2f2d3157942333d6fbe38d50db7eefc",class:l("tabs-wrapper",this.fill&&"tabs-wrapper--fill",!this.hasContent&&"tabs-wrapper--no-content")},this.overflow&&e("div",{key:"fed97d11b8ecaad311ba6d2786f9b943746db74d",class:l("tabs-wrapper-overflow-left",this.overflowLeft&&"tabs-wrapper-overflow-left--show")}),this.overflow&&e("div",{key:"e3820235416a017c11a709512f88b04a4e3011c4",class:l("tabs-wrapper-overflow-right",this.overflowRight&&"tabs-wrapper-overflow-right--show")}),e("div",{key:"e5e2dbfd2794f24e70ca7f6a3b16945abd65edd0",class:"tabs",part:"tabs",role:this.navigation?undefined:"tablist"},e("slot",{key:"d918fa0ba194bffdc4f563e17450cc3c4b6704ca"}),this.animation==="slide"&&e("div",{key:"49e15a844be7dd7632191e9f7f1b508be34a2f62",class:l("slider",!this.sliderSlides&&"slider--still"),part:"slider",style:{"--mds-tab-slider-width":"".concat(this.sliderWidth,"px"),"--mds-tab-slider-height":"".concat(this.sliderHeight,"px"),"--mds-tab-slider-offset-x":"".concat(this.sliderOffsetX,"px"),"--mds-tab-slider-offset-y":"".concat(this.sliderOffsetY,"px")}}))),e("div",{key:"5906706f684aeb6f0be7dd1abea27746d71716cf",class:l("contents",!this.hasContent&&"contents--empty"),part:"contents"},e("slot",{key:"088916022b6a8cbc4ab595202aadbfac4bd16d4d",name:"content",onSlotchange:this.updateContentItems})))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{animation:[{handleAnimationChange:0}],direction:[{handleDirectionChange:0}],scrollbar:[{handleScrollbarChange:0}],fill:[{handleFillChange:0}],overflow:[{handleOverflowChange:0}],size:[{handleSizeChange:0}]}},enumerable:false,configurable:true});return t}());h.style=m();var u=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-item-selected-shadow:inherit;--mds-tab-item-radius:inherit;corner-shape:var(--magma-corner-shape,squircle);cursor:pointer;display:flex}:host([animation=slide]){--mds-tab-item-hover-background:#0000;--mds-tab-item-selected-background:#0000;--mds-tab-item-selected-shadow:none;--mds-tab-item-default-background:#0000;--mds-tab-item-default-shadow:none;--mds-tab-item-hover-shadow:none}.button{--mds-button-background:var(--mds-tab-item-default-background);--mds-button-color:var(--mds-tab-item-default-color);--mds-button-radius:var(--mds-tab-item-radius);--mds-button-border-default-opacity:0;--mds-button-corner-shape:var(--mds-tab-item-corner-shape,var(--magma-corner-shape,squircle));aspect-ratio:auto;box-shadow:var(--mds-tab-item-default-shadow,none);flex-grow:1}.button:hover{--mds-button-background:var(--mds-tab-item-hover-background);--mds-button-color:var(--mds-tab-item-hover-color);box-shadow:var(--mds-tab-item-hover-shadow,var(--mds-tab-item-default-shadow,none))}.button.selected,.button.selected:hover{--mds-button-background:var(--mds-tab-item-selected-background);--mds-button-color:var(--mds-tab-item-selected-color);box-shadow:var(--mds-tab-item-selected-shadow);pointer-events:none}:host([disabled]){pointer-events:none}:host([direction=vertical]){width:100%}:host([direction=vertical]) .button{justify-content:start}:host([pref-contrast=more]){--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-selected-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-selected-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}}"};var f=t("mds_tab_item",/** @class */function(){function t(t){var e=this;a(this,t);this.selectedEvent=r(this,"mdsTabItemSelect",7);this.focusedEvent=r(this,"mdsTabItemFocus",7);
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the horizontal position of the icon displayed in the tab item
|
|
33
|
+
*/this.iconPosition="left";
|
|
34
|
+
/**
|
|
35
|
+
* The type of the tab item element
|
|
36
|
+
*/this.type="submit";
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the size for the tab item
|
|
39
|
+
*/this.size="md";this.isLink=function(){var t;return((t=e.href)!==null&&t!==void 0?t:"")!==""};this.toggle=function(t){if(e.disabled){return}
|
|
40
|
+
// a modifier click on a link opens it elsewhere (new tab or window): the strip stays as it is
|
|
41
|
+
if(e.isLink()&&(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){return}e.isSelected=!e.isSelected;if(e.isSelected){e.selectedEvent.emit({target:e.element,value:e.value})}};this.focus=function(){e.focusedEvent.emit({target:e.element,value:e.value})}}t.prototype.validateActive=function(t){
|
|
42
|
+
// the item that announced its selection gets `selected` back from the parent: it has
|
|
43
|
+
// announced it already, a second time would double the parent's mdsTabChange
|
|
44
|
+
if(this.isSelected===t)return;this.isSelected=t;if(this.isSelected){this.selectedEvent.emit({target:this.element,value:this.value})}};t.prototype.componentWillLoad=function(){this.hasText=this.element.innerHTML!==""};t.prototype.render=function(){var t;return e(s,{key:"cb3a7e892230ac67077ccd09a09fecbace72eb79","pref-contrast":b.state.contrast,"pref-mode":b.state.mode,"pref-theme-scheme":b.state["theme-scheme"]},e("mds-button",{key:"453e7166703965d64de05e1a9900eb9f235bd9e5",class:l("button",this.selected?"selected":""),await:this.await,disabled:(t=this.disabled)!==null&&t!==void 0?t:undefined,href:this.href,icon:this.icon,iconPosition:this.iconPosition,onKeyDown:this.focus,onClick:this.toggle,part:"button",
|
|
45
|
+
// a tab controls a panel; one with href is a link to another page or place, which
|
|
46
|
+
// ARIA names as such, the selected one being the current one
|
|
47
|
+
role:this.isLink()?"link":"tab","aria-current":this.isLink()&&this.selected?"true":undefined,"aria-expanded":this.expanded===undefined?undefined:"".concat(this.expanded),label:this.label,size:this.size,
|
|
48
|
+
// the tab is the inner button: an icon-only item takes its accessible name from the host title
|
|
49
|
+
title:this.element.title||undefined,type:this.type}))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:[{validateActive:0}]}},enumerable:false,configurable:true});return t}());f.style=u()}}}));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
System.register(["./p-CmzGV0XD.system.js","./p-Cxe5TwXZ.system.js","./p-CJOUmbsO.system.js","./p-Qrub-hmK.system.js","./p-B-nayZ3E.system.js","./p-C1ailvfu.system.js","./p-D8596ytD.system.js"],(function(a){"use strict";var r,o,n,t,l,i,s,c,e;return{setters:[function(a){r=a.r;o=a.h;n=a.e;t=a.g},function(a){l=a.m},function(a){i=a.m},function(a){s=a.c},function(a){c=a.a},function(a){e=a.L},null],execute:function(){var d="Κύλιση προς τα πίσω";var v="Κύλιση προς τα εμπρός";var m={scrollBack:d,scrollForward:v};var h="Scroll back";var g="Scroll forward";var u={scrollBack:h,scrollForward:g};var p="Desplazar hacia atrás";var f="Desplazar hacia adelante";var b={scrollBack:p,scrollForward:f};var z="Scorri indietro";var w="Scorri avanti";var y={scrollBack:z,scrollForward:w};var k=function(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-horizontal-scroll-behavior:smooth;--mds-horizontal-scroll-dots-gap:calc(var(--spacing,.0025rem)*100);--mds-horizontal-scroll-dot-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-dot-max-width:auto;--mds-horizontal-scroll-dot-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-horizontal-scroll-dot-area-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-horizontal-scroll-contents-padding:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-contents-scroll-padding:0 calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-controls-margin:calc(var(--spacing,.0025rem)*1200);--mds-horizontal-scroll-gap:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-max-width:var(--breakpoint-wide,1280px);--mds-horizontal-scroll-scrollbar-margin:0;--mds-horizontal-scroll-scrollbar-radius:0;--mds-horizontal-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3);--mds-horizontal-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--max-width:var(--mds-horizontal-scroll-max-width,var(--breakpoint-wide,1280px));--scroll-margin:calc(((100svw - var(--max-width)) / 2) + (var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)) * 2));align-items:center;container:mds-horizontal-scroll/inline-size;display:flex;flex-direction:column;justify-content:center;position:relative;width:100%}.navigation{border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:none;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition-duration:.2s;transition-property:opacity,scale,transform}.contents{box-sizing:border-box;display:flex;gap:var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem)*600));overflow:auto;padding-bottom:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));padding-top:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));position:relative;scroll-behavior:var(--mds-horizontal-scroll-behavior,smooth);scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600));scroll-snap-type:x mandatory;width:100%}.contents>::slotted(*){flex:0 0 0;scroll-margin:0 var(--scroll-margin)}.spacer{--width:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)));content:"";display:block;flex:0 0 0;min-width:clamp(1px,var(--width),var(--width));scroll-margin:0 var(--scroll-margin)}@container (max-width:1024px){:host{--scroll-margin:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents{scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents>::slotted(*){scroll-margin:0 var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}}.navigation--back{left:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--back,.navigation--forward{--position:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) - var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)))}.navigation--forward{right:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--disabled{opacity:0;pointer-events:none;transform:translateY(-50%)scale(.5)}:host([controls=all]) .navigation{display:flex}.dot-navigation{align-self:center;background-color:var(--mds-horizontal-scroll-dot-area-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:none;gap:var(--mds-horizontal-scroll-dots-gap,calc(var(--spacing,.0025rem)*100));justify-content:start;margin:0 auto var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600)) auto;max-width:calc(var(--spacing,.0025rem)*4000);padding:calc(var(--spacing,.0025rem)*50);width:100%}:host([navigation=position]) .dot-navigation{display:inline-flex}.dot{background-color:var(--mds-horizontal-scroll-dot-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));height:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));max-width:var(--mds-horizontal-scroll-dot-max-width);min-width:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));transition-duration:.3s;transition-property:width;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:calc(var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem) * 200)) * 2)}:host(:not([navigation=scrollbar])) .contents{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([navigation=scrollbar])) .contents::-webkit-scrollbar{display:none}:host([navigation=scrollbar]) .contents::-webkit-scrollbar{height:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-track{background-color:var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0);margin-block:var(--mds-horizontal-scroll-scrollbar-margin,0);margin-inline:var(--mds-horizontal-scroll-scrollbar-margin,0)}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-thumb{background-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.contents{scrollbar-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3)) var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));scrollbar-width:thin}}:host([snap=start]) .contents>::slotted(*){scroll-snap-align:start}:host([snap=center]) .contents>::slotted(*){scroll-snap-align:center}:host([snap=end]) .contents>::slotted(*){scroll-snap-align:end}@media (prefers-reduced-motion:reduce){:host{--mds-horizontal-scroll-behavior:auto}}@media (min-width:1920px){:host([controls=tv]) .navigation{display:flex}}@media (min-width:1600px){:host([controls=xlarge]) .navigation{display:flex}}@media (min-width:1440px){:host([controls=large]) .navigation{display:flex}}@media (min-width:1280px){:host([controls=wide]) .navigation{display:flex}}@media (min-width:1024px){:host([controls=desktop]) .navigation{display:flex}}@media (min-width:768px){:host([controls=tablet]) .navigation{display:flex}}'};var x=a("mds_horizontal_scroll",/** @class */function(){function a(a){var o=this;r(this,a);this.t=new e({el:m,en:u,es:b,it:y});this.elements=[];this.hasCompatibility=true;this.showForward=true;this.showBack=false;
|
|
2
|
+
/**
|
|
3
|
+
* Specifies the viewport which will display navigation controls
|
|
4
|
+
*/this.controls="desktop";
|
|
5
|
+
/**
|
|
6
|
+
* Specifies the box’s snap position as an alignment of its snap area
|
|
7
|
+
*/this.navigation="position";
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the box’s snap position as an alignment of its snap area
|
|
10
|
+
*/this.snap="start";
|
|
11
|
+
// the elements only: the text between the cards of indented markup has no box to measure, and
|
|
12
|
+
// the arrows threw on it (#825)
|
|
13
|
+
this.updateElements=function(){var a,r;var n=(a=o.host.shadowRoot)===null||a===void 0?void 0:a.querySelector("slot");o.elements=(r=n===null||n===void 0?void 0:n.assignedElements())!==null&&r!==void 0?r:[]};this.updateCSSCustomProps=function(){if(typeof window==="undefined")return;var a=window.getComputedStyle(o.host);o.scrollGap=c(a.getPropertyValue("--mds-horizontal-scroll-gap"))};this.isInViewport=function(a){if(o.contents==null){return false}var r=o.spacer.offsetWidth+o.scrollGap;var n=a.getBoundingClientRect();var t=o.contents.getBoundingClientRect();return n.top>=0&&n.left>=r&&n.bottom<=t.height&&n.right<=t.width-r*2};
|
|
14
|
+
// private isInViewportContents = (element: HTMLElement): boolean => {
|
|
15
|
+
// if (!this.contents) {
|
|
16
|
+
// return false
|
|
17
|
+
// }
|
|
18
|
+
// const spacerWidth = this.spacer.offsetWidth + this.scrollGap
|
|
19
|
+
// const rect = element.getBoundingClientRect()
|
|
20
|
+
// const rectWrapper = this.contents.getBoundingClientRect()
|
|
21
|
+
// return (
|
|
22
|
+
// rect.top >= 0 &&
|
|
23
|
+
// rect.left >= spacerWidth &&
|
|
24
|
+
// rect.bottom <= rectWrapper.height &&
|
|
25
|
+
// rect.right <= rectWrapper.width - spacerWidth * 2
|
|
26
|
+
// )
|
|
27
|
+
// }
|
|
28
|
+
this.checkNavigationButtons=function(){o.showBack=true;o.showForward=true;o.elements.forEach((function(a,r){if(r===0&&o.isInViewport(a)){o.showBack=false}if(o.elements.length-1===r&&o.isInViewport(a)){o.showForward=false}}))};this.moveBack=function(){var a=0;var r;var n;o.elements.forEach((function(t,l){
|
|
29
|
+
// element.style.backgroundColor = 'transparent'
|
|
30
|
+
if(o.isInViewport(t)){if(!r){a=l;r=t}
|
|
31
|
+
// element.style.backgroundColor = 'red'
|
|
32
|
+
n=t}}));o.elements.forEach((function(t,l){if(!o.isInViewport(t)&&l===a-1&&r!==undefined&&n!==undefined){
|
|
33
|
+
// element.style.backgroundColor = 'red'
|
|
34
|
+
o.contents.scrollLeft=o.contents.scrollLeft+t.offsetLeft-n.offsetLeft-r.offsetWidth-o.scrollGap}}))};this.moveForward=function(){var a=true;o.elements.forEach((function(r){
|
|
35
|
+
// element.style.backgroundColor = 'white'
|
|
36
|
+
if(!o.isInViewport(r)){if(r.offsetLeft>o.contents.scrollLeft&&a){a=false;
|
|
37
|
+
// element.style.backgroundColor = 'red'
|
|
38
|
+
o.lastElementOffsetLeft=r.offsetLeft;o.contents.scrollLeft=o.lastElementOffsetLeft}}}))};this.translateNavigationDot=function(){if(o.elements==null||o.contents==null||o.navigationDot==null||o.navigationDots==null){console.error("mds-horizontal-scroll.translateNavigationDot: One of the shadowRoot elements is missing.");return}var a=o.contents,r=a.scrollLeft,n=a.scrollWidth,t=a.offsetWidth;var l=window.getComputedStyle(o.navigationDots);var i=parseFloat(l.paddingLeft)||0;var s=parseFloat(l.paddingRight)||0;var c=o.navigationDots.offsetWidth-i-s;var e=o.navigationDot.offsetWidth;if(t===0||n===0){console.error("mds-horizontal-scroll.translateNavigationDot: offsetWidth or scrollWidth is 0, impossible to calculate position");return}
|
|
39
|
+
// Calcolo della posizione normalizzata
|
|
40
|
+
var d=n-t;var v=r/d;// Valore tra 0 e 1
|
|
41
|
+
var m=c-e;// Limite massimo di spostamento
|
|
42
|
+
var h=v*m;o.navigationDot.style.transform="translateX(".concat(h,"px)")};this.updateNavigationDotSize=function(){if(o.contents==null||o.navigationDot==null||o.navigationDots==null){console.error("mds-horizontal-scroll.updateNavigationDotSize: One of the shadowRoot elements is missing.");return}var a=o.contents,r=a.scrollWidth,n=a.offsetWidth;var t=o.navigationDots.offsetWidth;if(r<=n){
|
|
43
|
+
// Se non c'è scroll, il dot occupa tutto lo spazio
|
|
44
|
+
o.navigationDot.style.width="".concat(t,"px");return}
|
|
45
|
+
// Calcolo proporzionale
|
|
46
|
+
var l=n/r*t;o.navigationDot.style.width="".concat(l,"px")};this.addNavigationDots=function(){var a,r;o.contents.removeEventListener("scroll",o.translateNavigationDot);o.navigationDot=(a=o.host.shadowRoot)===null||a===void 0?void 0:a.querySelector(".dot");o.navigationDots=(r=o.host.shadowRoot)===null||r===void 0?void 0:r.querySelector(".dot-navigation");o.updateNavigationDotSize();if(o.navigationDot==null)return;o.contents.addEventListener("scroll",o.translateNavigationDot)}}a.prototype.watchNavigation=function(a){if(a==="position"){this.addNavigationDots()}};a.prototype.componentWillLoad=function(){this.updateCSSCustomProps()};a.prototype.componentDidLoad=function(){var a,r;this.contents=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelector(".contents");this.spacer=(r=this.host.shadowRoot)===null||r===void 0?void 0:r.querySelector(".spacer");if(this.navigation==="position")this.addNavigationDots();
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
48
|
+
if(window&&typeof window.onscrollend!=="undefined"){this.contents.addEventListener("scrollend",this.checkNavigationButtons)}else{if(this.controls!==undefined)this.controls=undefined}};a.prototype.disconnectedCallback=function(){this.contents.removeEventListener("scrollend",this.checkNavigationButtons);this.contents.removeEventListener("scroll",this.translateNavigationDot)};a.prototype.render=function(){return o(n,{key:"bb197703381bbaecb64eab3f29593f9381bd1385"},o("div",{key:"22e98fe39199fd5deaa4bdcd8824e623a887ba3d",class:"contents",part:"content"},o("div",{key:"cf59c7a2cc662169210b4a8a194d44cc7dfdcfbf",class:"spacer"}),o("slot",{key:"8266dfb68782c91333e363466a510f490008c95c",onSlotchange:this.updateElements}),o("div",{key:"afc6023087ab16e70809a8620c18ce1973cac4da",class:"spacer"})),o("div",{key:"0a0eefae9e8687fe0d6dff4211e8080a17e34a22",class:"dot-navigation"},o("div",{key:"f8a3de1f76682463f5e2866bb1d33a4f71c2fbba",class:"dot"})),this.controls&&this.controls!=="none"&&o("mds-button",{key:"523bccf4a013e00913bc53fe5cd2bb79740aafd9","aria-label":this.t.get("scrollBack"),onClick:this.moveBack,size:"lg",class:s("navigation navigation--back",!this.showBack&&"navigation--disabled"),icon:l}),this.controls&&this.controls!=="none"&&o("mds-button",{key:"08ec20003cfaf33bcb3aebdd8b34577fa9956de0","aria-label":this.t.get("scrollForward"),onClick:this.moveForward,size:"lg",class:s("navigation navigation--forward",!this.showForward&&"navigation--disabled"),icon:i}))};Object.defineProperty(a.prototype,"host",{get:function(){return t(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{navigation:[{watchNavigation:0}]}},enumerable:false,configurable:true});return a}());x.style=k()}}}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
System.register(["./p-CmzGV0XD.system.js","./p-Qrub-hmK.system.js","./p-D9J8lbUv.system.js","./p-C1ailvfu.system.js","./p-D8596ytD.system.js"],(function(e){"use strict";var r,a,t,s,i,n,o,p,d;return{setters:[function(e){r=e.r;a=e.d;t=e.h;s=e.e;i=e.g},function(e){n=e.c},function(e){o=e.K},function(e){p=e.L},function(e){d=e.p}],execute:function(){var m="Ολοκληρώθηκε";var c="Καθημερινή";var u="Σε αναμονή";var b="Βήμα {{ index }}";var g={badgeDone:m,badgeCurrent:c,badgeQueued:u,step:b};var v="Done";var l="Current";var h="Queued";var f="Step {{ index }}";var y={badgeDone:v,badgeCurrent:l,badgeQueued:h,step:f};var x="Completado";var k="En curso";var w="En cola";var C="Paso {{ index }}";var D={badgeDone:x,badgeCurrent:k,badgeQueued:w,step:C};var z="Completato";var j="In corso";var Q="In coda";var q="Step {{ index }}";var S={badgeDone:z,badgeCurrent:j,badgeQueued:Q,step:q};var I=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-badge,mds-icon,mds-progress,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-stepper-bar-item-header-gap:var(--mds-stepper-bar-gap,calc(var(--spacing,.0025rem)*50));--mds-stepper-bar-item-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-stepper-bar-item-duration:.25s;--private-stepper-bar-item-duaration:var(--mds-stepper-bar-item-duration,.25s);--mds-stepper-bar-item-transition-duration:var(--duration-200,.2s);--private-stepper-bar-item-transition-duration:var(--mds-stepper-bar-item-transition-duration);--mds-stepper-bar-item-icon-background-done:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-stepper-bar-item-icon-background-current:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-progress-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));--mds-stepper-bar-item-icon-color-done:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-stepper-bar-item-icon-color-current:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-stepper-bar-item-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-stepper-bar-item-min-width:180px;--mds-stepper-bar-item-progress-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-stepper-bar-item-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-stepper-bar-item-progress-thickness:calc(var(--spacing,.0025rem)*200);border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));corner-shape:var(--magma-corner-shape,squircle);align-items:flex-start;display:grid;flex:1 0 0;flex-direction:column;gap:calc(var(--spacing,.0025rem)*400);min-width:var(--mds-stepper-bar-item-min-width,180px);position:relative;scroll-snap-align:center;transition-duration:var(--private-stepper-bar-item-duaration);transition-property:outline,outline-offset,background-color}:host(:last-of-type){flex-basis:calc(var(--spacing,.0025rem)*100)}:host(:last-of-type) .progress{display:none}:host([done]) .icon{--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-icon-background-done,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))));--mds-stepper-bar-item-icon-color:var(--mds-stepper-bar-item-icon-color-done,rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255))));transition-delay:0s}:host([current]) .icon{--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-icon-background-current,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-stepper-bar-item-icon-color:var(--mds-stepper-bar-item-icon-color-current,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));transition-delay:calc(var(--private-stepper-bar-item-duaration)/2)}.header{--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));border-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));corner-shape:var(--magma-corner-shape,squircle);align-items:center;display:flex;gap:var(--mds-stepper-bar-item-header-gap);transition-duration:var(--private-stepper-bar-item-transition-duration);transition-property:outline,outline-offset;width:100%}.icon{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:var(--mds-stepper-bar-item-icon-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:flex;fill:var(--mds-stepper-bar-item-icon-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));flex-shrink:0;padding:calc(var(--spacing,.0025rem)*200);position:relative;transition-duration:var(--private-stepper-bar-item-duaration);transition-property:background-color,fill;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.progress{--mds-progress-background:var(--mds-stepper-bar-item-progress-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));--mds-progress-color:var(--mds-stepper-bar-item-progress-color,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))));--mds-progress-thickness:var(--mds-stepper-bar-item-progress-thickness,calc(var(--spacing,.0025rem)*200));--mds-progress-radius:0;flex-grow:1}.infos{display:grid;gap:calc(var(--spacing,.0025rem)*100);padding-left:calc(var(--spacing,.0025rem)*100)}.text{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));color:var(--mds-stepper-bar-item-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));pointer-events:none;transition-duration:var(--private-stepper-bar-item-duaration);transition-property:color;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.badge,.step{border-radius:var(--magma-radius-full,var(--radius-full,1000px));pointer-events:none}.step{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-stepper-bar-item-duaration:0s;--private-stepper-bar-item-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-stepper-bar-item-duaration:0s;--private-stepper-bar-item-transition-duration:0s}}'};var _=e("mds_stepper_bar_item",/** @class */function(){function e(e){var s=this;r(this,e);this.doneEvent=a(this,"mdsStepperBarItemDone",7);this.km=new o;this.t=new p({el:g,en:y,es:D,it:S});
|
|
2
|
+
/**
|
|
3
|
+
* Specifies the icon displayed of the component when is checked
|
|
4
|
+
*/this.iconChecked=this.icon;
|
|
5
|
+
/**
|
|
6
|
+
* Specifies if the component is checked or not
|
|
7
|
+
*/this.done=false;
|
|
8
|
+
/**
|
|
9
|
+
* Specifies if the component is the current or not
|
|
10
|
+
*/this.current=false;
|
|
11
|
+
/**
|
|
12
|
+
* Specifies the typography of the element
|
|
13
|
+
*/this.typography="h6";
|
|
14
|
+
// a step already done can be gone back to: the item is a button then
|
|
15
|
+
this.isReachable=function(){return!!s.isDone&&!s.isCurrent};
|
|
16
|
+
/**
|
|
17
|
+
* Asks to go back to this step, with its value: the event was declared and never emitted. The
|
|
18
|
+
* stepper bar is driven by its `itemsDone`, so the page answers by setting it.
|
|
19
|
+
*/this.handleClick=function(){var e;if(!s.isReachable())return;s.doneEvent.emit({value:(e=s.value)!==null&&e!==void 0?e:""})};this.showBadge=function(){if(s.isDone){return t("mds-badge",{class:"badge",variant:"success",tone:"weak",typography:"option"},s.t.get("badgeDone"))}if(s.isCurrent){return t("mds-badge",{class:"badge",variant:"info",tone:"weak",typography:"option"},s.t.get("badgeCurrent"))}return t("mds-badge",{class:"badge",variant:"dark",tone:"weak",typography:"option"},s.t.get("badgeQueued"))}}e.prototype.componentWillLoad=function(){var e=this;this.isCurrent=this.current;this.isDone=this.done;var r=this.host.parentElement;
|
|
20
|
+
// childNodes counts the whitespace between the tags, so formatted markup made
|
|
21
|
+
// the step numbers come out doubled: 2, 4, 6, 8 for four steps.
|
|
22
|
+
if(r){this.index=Array.from(r.children).filter((function(r){return r.tagName===e.host.tagName})).indexOf(this.host)}};e.prototype.componentDidLoad=function(){this.km.addElement(this.host);this.km.attachClickBehavior()};e.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};e.prototype.selectedHandler=function(e){this.isDone=e};e.prototype.currentHandler=function(e){this.isCurrent=e};e.prototype.render=function(){return t(s,{key:"96f3ba81d51ac9335f61574612b848b69580a730",onClick:this.handleClick,"pref-animation":d.state.animation,role:this.isReachable()?"button":undefined,tabindex:this.isReachable()?"0":undefined},t("div",{key:"70ea3a0a5af55cf8e1451694de28361069991284",class:"header"},t("mds-icon",{key:"ee7d41226329ca7ab1bdd93b64364bcd11dede7b",class:"icon",name:n(this.isDone&&!this.isCurrent?this.iconChecked:this.icon)}),t("mds-progress",{key:"738ff976e1e4c762ba99a73f1faae43b842924d3","aria-hidden":"true",class:"progress",progress:this.isDone?1:0})),t("div",{key:"166f99a8c1d794fc9e634fb91e52c5b34889b52c",class:"infos"},this.step&&t("mds-text",{key:"14033c16170834d1ec903e40a854b95e220625c8",class:"step",typography:"option"},this.t.get("step",{index:this.index+1})),this.label&&t("mds-text",{key:"ec73be5b3bfcd6c4e5c7d93640b33ce754e0f14a",class:"text",typography:this.typography},this.label),this.badge&&t("div",{key:"ff9817a4e5abd7694370d3755533a8b5b0fd14aa",part:"badge"},this.showBadge())))};Object.defineProperty(e.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{done:[{selectedHandler:0}],current:[{currentHandler:0}]}},enumerable:false,configurable:true});return e}());_.style=I()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,d as e,h as s,e as i,g as a}from"./p-CPRkNQdE.js";import{c as h}from"./p-CWk1SCJg.js";import{m as o}from"./p-XQgkfNpn.js";import{L as d}from"./p-BmT_DEV2.js";import{p as r}from"./p-C25F_FlB.js";var l={darkMode:"Σκούρο",label:"Λειτουργία",lightMode:"Ανοιχτό",systemSettings:"Με βάση το λειτουργικό σύστημα"},m={darkMode:"Dark",label:"Mode",lightMode:"Light",systemSettings:"Based on operating system"},c={darkMode:"Oscura",label:"Modo",lightMode:"Clara",systemSettings:"Basado en el sistema operativo"},n={darkMode:"Scura",label:"Modalità",lightMode:"Chiara",systemSettings:"Basato sul sistema operativo"};const f=class{constructor(s){t(this,s),this.prefChangeEvent=e(this,"mdsPrefChange",7),this.defaultMode="system",this.t=new d({el:l,en:m,es:c,it:n}),this.localStorageAlias="mdsPrefMode",this.customPropertyAlias="--magma-pref-mode",this.overlayBackgroundVisible="rgb(var(--magma-surface-default))",this.overlayBackgroundHidden="rgb(var(--magma-surface-default) / 0)",this.cssOverlayShowDuration="300",this.cssOverlayFadeoutDuration="200",this.cssOverlayZIndex="6000",this.overlayId="mds-pref-mode-overlay",this.overlayShow=!1,this.syncingFromStore=!1,this.updateCSSCustomProps=()=>{var t,e,s;if("undefined"==typeof window)return;const i=window.getComputedStyle(this.element);this.cssOverlayShowDuration=null!==(t=i.getPropertyValue("--mds-pref-mode-overlay-show-duration"))&&void 0!==t?t:"300",this.cssOverlayFadeoutDuration=null!==(e=i.getPropertyValue("--mds-pref-mode-overlay-fadeout-duration"))&&void 0!==e?e:"200",this.cssOverlayZIndex=null!==(s=i.getPropertyValue("--mds-pref-mode-overlay-z-index"))&&void 0!==s?s:"6000"},this.transition="smooth",this.modes={dark:{selector:"pref-mode-dark",label:"darkMode"},system:{selector:"pref-mode-system",label:"systemSettings"},light:{selector:"pref-mode-light",label:"lightMode"}},this.syncMode=t=>{void 0!==t&&t!==this.mode&&(this.syncingFromStore=!0,this.mode=t,this.appliedMode=t,this.syncingFromStore=!1)},this.setMode=t=>{if(t===this.appliedMode)return void(this.mode=t);const e=void 0===this.appliedMode;if(this.appliedMode=t,this.mode=t,localStorage.setItem(this.localStorageAlias,this.mode),"undefined"!=typeof document){const e=document.querySelector("html");for(const t in this.modes)({}).hasOwnProperty.call(this.modes,t)&&(null==e||e.classList.remove(this.modes[t].selector));null==e||e.classList.add(this.modes[t].selector),null==e||e.style.setProperty(this.customPropertyAlias,this.mode)}r.state.mode=t,e||this.prefChangeEvent.emit({preference:"mode"})},this.isDarkMode=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,this.getColorScheme=t=>void 0!==t?"system"===t?this.isDarkMode()?"dark":"light":t:"system"===this.mode?this.isDarkMode()?"dark":"light":this.mode,this.instanceOverlay=()=>{null==this.overlayEl&&(this.overlayEl=document.createElement("div"),this.overlayEl.className=this.overlayId,this.overlayEl.style.inset="0",this.overlayEl.style.pointerEvents="none",this.overlayEl.style.position="fixed",this.overlayEl.style.transition=`background-color ${this.cssOverlayFadeoutDuration} ease-out`,this.overlayEl.style.zIndex=this.cssOverlayZIndex),this.overlayEl.style.backgroundColor=this.overlayBackgroundHidden},this.attachFlashOverlayTransition=()=>{this.overlayShow=!0,this.instanceOverlay(),this.overlayEl.style.backgroundColor=this.overlayBackgroundVisible,document.body.appendChild(this.overlayEl),clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.overlayShow=!1,this.detachOverlayTransition()}),h(this.cssOverlayShowDuration))},this.attachSmoothOverlayTransition=t=>{this.overlayShow=!0,this.instanceOverlay(),document.body.appendChild(this.overlayEl),clearTimeout(this.overlaySmoothTimer),this.overlaySmoothTimer=setTimeout((()=>{this.overlayEl.style.backgroundColor=this.overlayBackgroundVisible,clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.setMode(t),clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.overlayShow=!1,this.detachOverlayTransition()}),h(this.cssOverlayFadeoutDuration))}),h(this.cssOverlayShowDuration))}),1)},this.isModeDisabled=t=>"light"===this.lockedScheme?"dark"===t:"dark"===this.lockedScheme&&"light"===t,this.changeMode=t=>{if(!this.isModeDisabled(t))if(this.getColorScheme()!==this.getColorScheme(t))switch(this.transition){case"none":default:this.setMode(t);break;case"flash":this.setMode(t),this.attachFlashOverlayTransition();break;case"smooth":this.attachSmoothOverlayTransition(t)}else this.setMode(t)},this.handleModeClick=t=>()=>{this.overlayShow||this.changeMode(t)}}componentWillLoad(){var t,e;this.setMode(null!==(e=null!==(t=this.mode)&&void 0!==t?t:localStorage.getItem(this.localStorageAlias))&&void 0!==e?e:this.defaultMode)}connectedCallback(){this.unsubscribeStore=r.onChange("mode",this.syncMode)}disconnectedCallback(){var t;null===(t=this.unsubscribeStore)||void 0===t||t.call(this)}componentDidLoad(){this.updateCSSCustomProps()}modeChanged(t,e){t===e||this.syncingFromStore||this.setMode(t)}detachOverlayTransition(){null!=this.overlayEl&&(this.overlayEl.style.backgroundColor=this.overlayBackgroundHidden,clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.overlayEl.remove()}),h(this.cssOverlayFadeoutDuration)))}render(){var t;return s(i,{key:"54942d5c0b4d9a9bd64491cf336f0781a7c2f48b","pref-contrast":r.state.contrast,"pref-mode":r.state.mode,"pref-theme-scheme":r.state["theme-scheme"]},s("mds-text",{key:"0febf8db8b0d509c7fe8493add1adcbd51b2b685",class:"info",typography:"caption"},s("b",{key:"cdfe50fb106eb352ece6c95cd4849182fd3100a2"},this.t.get("label"))," ",this.t.get(this.modes[null!==(t=this.mode)&&void 0!==t?t:this.defaultMode].label)),s("mds-tab",{key:"91b9a987e51b1723eaa9ed8dafd1eb885df7bbf4",fill:!0,size:this.size},s("mds-tab-item",{key:"f8b02536a2ff93163881f8d8cd9487c8c1dc57d5",disabled:this.isModeDisabled("light"),selected:"light"===this.mode,onClick:this.handleModeClick("light"),class:"item item--light",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5s5-2.24 5-5s-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58a.996.996 0 0 0-1.41 0a.996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37a.996.996 0 0 0-1.41 0a.996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0a.996.996 0 0 0 0-1.41l-1.06-1.06zm1.06-10.96a.996.996 0 0 0 0-1.41a.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36a.996.996 0 0 0 0-1.41a.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"/></svg>',title:this.t.get(this.modes.light.label)}),s("mds-tab-item",{key:"24171536adfeacd0820757c9645563de1f104499",disabled:this.isModeDisabled("system"),selected:"system"===this.mode,onClick:this.handleModeClick("system"),class:"item item--system",icon:o,title:this.t.get(this.modes.system.label)}),s("mds-tab-item",{key:"a8a70270da474426111975d6e636f97b1c2ad0fc",disabled:this.isModeDisabled("dark"),selected:"dark"===this.mode,onClick:this.handleModeClick("dark"),class:"item item--dark",icon:"dark"===this.mode?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 3a9 9 0 1 0 9 9c0-.46-.04-.92-.1-1.36a5.389 5.389 0 0 1-4.4 2.26a5.403 5.403 0 0 1-3.14-9.8c-.44-.06-.9-.1-1.36-.1z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9.37 5.51A7.35 7.35 0 0 0 9.1 7.5c0 4.08 3.32 7.4 7.4 7.4c.68 0 1.35-.09 1.99-.27A7.014 7.014 0 0 1 12 19c-3.86 0-7-3.14-7-7c0-2.93 1.81-5.45 4.37-6.49zM12 3a9 9 0 1 0 9 9c0-.46-.04-.92-.1-1.36a5.389 5.389 0 0 1-4.4 2.26a5.403 5.403 0 0 1-3.14-9.8c-.44-.06-.9-.1-1.36-.1z"/></svg>',title:this.t.get(this.modes.dark.label)})))}get element(){return a(this)}static get watchers(){return{mode:[{modeChanged:0}]}}};f.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-pref-mode-overlay-fadeout-duration:.2s;--mds-pref-mode-overlay-show-duration:.3s;--mds-pref-mode-overlay-z-index:var(--magma-theme-overlay-z-index,7000);display:grid;gap:calc(var(--spacing,.0025rem)*200)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--system{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}.item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-06,214 163 7))}.item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-06,47 182 243))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-03,112 85 4))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-03,8 94 133))}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-03,112 85 4))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-03,8 94 133))}}";export{f as mds_pref_mode}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as a,e as s,g as e}from"./p-CPRkNQdE.js";import{p as t,a as o}from"./p-C25F_FlB.js";const i=class{constructor(a){r(this,a),this.leftOut=!1,this.stepsList=new Array,this.progress=0,this.direction="horizontal",this.variant="primary",this.typography="option",this.size="sm",this.steps="Inizio,Un quarto,Metà,Tre quarti,Fine",this.clampedProgress=()=>{const r=Number(this.progress);return Number.isNaN(r)?0:Math.min(1,Math.max(0,r))},this.resolveValueText=()=>{const r=""!==this.steps?this.stepsList[Math.round(this.clampedProgress()*(this.stepsList.length-1))]:void 0,a=this.element.getAttribute("aria-valuetext");return null!==a&&a!==this.appliedValueText&&a!==r?a:(this.appliedValueText=r,r)}}componentWillLoad(){this.stepsList=this.steps.split(","),this.leftOut="true"===this.element.getAttribute("aria-hidden")}stepsChanged(r){this.stepsList=r.split(",")}ariaHiddenChanged(){this.leftOut="true"===this.element.getAttribute("aria-hidden")}render(){return a(s,{key:"64ccb474ac66104dd5aa138c83e29cfee795cb55","aria-valuemax":this.leftOut?void 0:"100","aria-valuemin":this.leftOut?void 0:"0","aria-valuenow":this.leftOut?void 0:Math.round(100*this.clampedProgress()),"aria-valuetext":this.leftOut?void 0:this.resolveValueText(),role:this.leftOut?void 0:"progressbar","pref-animation":t.state.animation,"pref-contrast":t.state.contrast,"pref-mode":t.state.mode,"pref-theme-scheme":t.state["theme-scheme"]},"radial"===this.direction?a("mds-radial-progress",{"aria-hidden":"true",progress:this.clampedProgress(),part:"radial-progress",typography:this.typography,variant:this.variant}):a("div",{class:"progress",part:"progress",style:"horizontal"===this.direction?{flexGrow:`${this.clampedProgress()}`}:{flexGrow:`${this.clampedProgress()}`,width:"100%"}}))}get element(){return e(this)}static get watchers(){return{steps:[{stepsChanged:0}],"aria-hidden":[{ariaHiddenChanged:0}]}}};i.style='@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-progress-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-progress-duration:.75s;--private-progress-duration:var(--mds-progress-duration,.75s);--mds-progress-transition-duration:var(--duration-300,.3s);--private-progress-transition-duration:var(--mds-progress-transition-duration);--mds-progress-thickness:calc(var(--spacing,.0025rem)*200);--mds-progress-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:var(--mds-progress-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--mds-progress-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));corner-shape:var(--magma-corner-shape,squircle);display:flex;height:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200));min-height:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200));min-width:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200));overflow:hidden;position:relative;transition-duration:var(--private-progress-transition-duration);transition-property:background-color;width:100%}:host([direction=vertical]){flex-direction:column;height:unset;min-height:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200));width:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200))}:host([direction=radial]){aspect-ratio:1;background-color:#0000;height:auto}:host([direction=radial]) mds-radial-progress{width:inherit}.progress{--tw-ease:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));background-color:var(--mds-progress-color,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));border-radius:inherit;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));corner-shape:inherit;transition-duration:var(--private-progress-duration);transition-property:background-color,flex-grow}:host([variant=dark]){--mds-progress-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-progress-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([variant=light]){--mds-progress-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-progress-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)))}:host([variant=error]){--mds-progress-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-progress-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)))}:host([variant=warning]){--mds-progress-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-progress-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)))}:host([variant=success]){--mds-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-progress-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)))}:host([variant=info]){--mds-progress-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-progress-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)))}:host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-progress-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([variant=ai]){--mds-progress-color:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-progress-background:rgb(var(--magma-accent-ai-surface,var(--variant-ai-09,229 218 253)))}:host([size=sm]){--mds-progress-thickness:calc(var(--spacing,.0025rem)*200)}:host([size=md]){--mds-progress-thickness:calc(var(--spacing,.0025rem)*300)}:host([size=lg]){--mds-progress-thickness:calc(var(--spacing,.0025rem)*400)}:host([size=xl]){--mds-progress-thickness:calc(var(--spacing,.0025rem)*600)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-progress-duration:0s;--private-progress-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=error]){--mds-progress-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-progress-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=warning]){--mds-progress-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-progress-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=success]){--mds-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-progress-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=info]){--mds-progress-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-progress-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)))}:host([pref-contrast=more]),:host([pref-contrast=more]):host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-progress-duration:0s;--private-progress-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=error]){--mds-progress-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-progress-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=warning]){--mds-progress-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-progress-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=success]){--mds-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-progress-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=info]){--mds-progress-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-progress-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]),:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}}';const n=class{constructor(a){r(this,a),this.progress=0,this.animatedProgress=0,this.rafId=null,this.typography="option",this.variant="primary",this.progressPercentage=r=>`${Math.round(100*r)}`,this.clampProgress=r=>Math.min(1,Math.max(0,r)),this.easeOutExpo=r=>1===r?1:1-Math.pow(2,-10*r),this.stopAnimation=()=>{null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null)},this.animateTo=r=>{const a=this.clampProgress(r),s=this.animatedProgress;if(this.stopAnimation(),o())return void(this.animatedProgress=a);const e=performance.now(),t=r=>{const o=Math.min(1,(r-e)/500),i=this.easeOutExpo(o);this.animatedProgress=s+(a-s)*i,this.rafId=o<1?requestAnimationFrame(t):null};this.rafId=requestAnimationFrame(t)}}componentWillLoad(){this.animatedProgress=this.clampProgress(this.progress)}disconnectedCallback(){this.stopAnimation()}onProgressChange(r){this.animateTo(r)}render(){const r=`${(100*this.animatedProgress).toFixed(2)}%`,e=this.progressPercentage(this.clampProgress(this.progress));return a(s,{key:"a6b6be85cf9edec9b959dc408453df22a7259293","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":e,role:"progressbar",style:{"--mds-radial-progress":r}},a("div",{key:"601ad68d20b60661443e9d2a91c7245b14bb8cef",class:"value-container",part:"value-container"},this.icon&&a("mds-icon",{key:"d179a8847a1e6a0116d47f337efb66b4ef8499d6",class:"icon",name:this.icon,part:"icon"}),a("div",{key:"4bf2f076b9a9b796022bcd2358cf07f336d41040",class:"value-container__text"},a("mds-text",{key:"f34d46b90c233a1334f1f6c1cc09bf77ca36e1b7",class:"value",typography:this.typography},e))))}static get watchers(){return{progress:[{onProgressChange:0}]}}};n.style='@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-tooltip):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-radial-progress-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-radial-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-radial-progress-text-background-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-radial-progress-text-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-radial-progress-text-suffix:"%";--mds-radial-progress:0%;align-items:center;aspect-ratio:1;background-color:var(--mds-radial-progress-background);background-image:conic-gradient(var(--mds-radial-progress-color) var(--mds-radial-progress,0),#0000 0);border-radius:var(--magma-radius-full,var(--radius-full,1000px));box-sizing:border-box;container:mds-radial-progress/inline-size;display:flex;height:auto;justify-content:center;padding:calc(var(--spacing,.0025rem)*200);transition-duration:.5s;transition-property:background-color,--mds-radial-progress-color,--mds-radial-progress;transition-timing-function:ease-out;width:calc(var(--spacing,.0025rem)*1200)}.value-container{aspect-ratio:1;background-color:var(--mds-radial-progress-text-background);border-radius:inherit;box-shadow:var(--mds-radial-progress-text-background-shadow);display:flex;flex-direction:column;gap:calc(var(--spacing,.0025rem)*50);padding:calc(var(--spacing,.0025rem)*50);width:100%}.value-container,.value-container__text{align-items:center;justify-content:center}.value,.value-container__text{display:inline-flex}.value{color:currentColor}.value:after{content:var(--mds-radial-progress-text-suffix)}.icon{aspect-ratio:1;fill:var(--mds-radial-progress-color);max-height:calc(var(--spacing,.0025rem)*600);max-width:calc(var(--spacing,.0025rem)*600);width:100%}@container mds-radial-progress (max-width:47px){:host([typography=label][icon]) .value-container__text,:host([typography=option][icon]) .value-container__text{display:none}}@container mds-radial-progress (max-width:35px){:host([typography=label]) .value{--mds-radial-progress-text-suffix:""}}@container mds-radial-progress (max-width:31px){:host([typography=option]) .value{--mds-radial-progress-text-suffix:""}}@container mds-radial-progress (max-width:23px){:host([typography=label]) .value{display:none}}@container mds-radial-progress (max-width:19px){:host([typography=option]) .value{display:none}}:host([variant=primary]),:host([variant=secondary]){--mds-radial-progress-color:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-radial-progress-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([variant=ai]){--mds-radial-progress-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-radial-progress-background:rgb(var(--magma-accent-ai-surface,var(--variant-ai-09,229 218 253)))}:host([variant=error]){--mds-radial-progress-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-radial-progress-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)))}:host([variant=warning]){--mds-radial-progress-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)));--mds-radial-progress-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)))}:host([variant=success]){--mds-radial-progress-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-radial-progress-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)))}:host([variant=info]){--mds-radial-progress-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)));--mds-radial-progress-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)))}:host([variant=light]){--mds-radial-progress-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-radial-progress-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([variant=dark]){--mds-radial-progress-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-radial-progress-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42)));--mds-radial-progress-text-background:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))/.15);color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)))}';export{i as mds_progress,n as mds_radial_progress}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-CmzGV0XD.system.js"],(function(t){"use strict";var i,a,r;return{setters:[function(t){i=t.r;a=t.h;r=t.e}],execute:function(){var e='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10"/>\n</svg>\n';var n=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-list-item-icon-margin:0 calc(var(--spacing,.0025rem)*200) 0 0;align-items:flex-start;display:flex;justify-content:flex-start;width:100%}.icon{fill:currentColor;height:calc(var(--spacing,.0025rem)*600);margin:var(--mds-list-item-icon-margin,0 calc(var(--spacing,.0025rem)*200) 0 0);width:calc(var(--spacing,.0025rem)*600)}:host([typography=paragraph]){--mds-list-item-icon-margin:.25rem calc(var(--spacing,.0025rem)*200) 0 0}:host([typography=caption]){--mds-list-item-icon-margin:-.125rem calc(var(--spacing,.0025rem)*200) 0 0}:host([typography=label]),:host([typography=tip]){--mds-list-item-icon-margin:-.25rem calc(var(--spacing,.0025rem)*200) 0 0}:host([typography=option]){--mds-list-item-icon-margin:-.5rem calc(var(--spacing,.0025rem)*200) 0 0}"};var s=t("mds_list_item",/** @class */function(){function t(t){i(this,t);
|
|
2
2
|
/**
|
|
3
3
|
* Specifies the typography of the element
|
|
4
4
|
*/this.typography="detail";
|
|
5
5
|
/**
|
|
6
6
|
* Specifies the variant for `typography`
|
|
7
|
-
*/this.variant="info"}t.prototype.render=function(){var t;return a(r,{key:"
|
|
7
|
+
*/this.variant="info"}t.prototype.render=function(){var t;return a(r,{key:"e8b358da2cc4621d883f5f1175905d0691ed4454",role:"listitem"},a("mds-icon",{key:"9ca63553709a5702840c71861e4403efb81e4847","aria-hidden":"true",class:"icon",name:(t=this.icon)!==null&&t!==void 0?t:e,part:"icon"}),a("mds-text",{key:"1a20c4b3110c7027bdc42c1cbfdd690140d7c172",tag:"span",typography:this.typography,variant:this.variant,part:"text"},a("slot",{key:"5cb71d6870644790c1bb7dfe251a0d857fcf4058"})))};return t}());s.style=n()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,d as e,h as s,e as i}from"./p-CPRkNQdE.js";import{L as o}from"./p-BmT_DEV2.js";import{p as a}from"./p-C25F_FlB.js";var n={consumptionHigh:"Υψηλή",consumptionLow:"Χαμηλή",consumptionMedium:"Μεσαία",label:"Κατανάλωση"},r={consumptionHigh:"High",consumptionLow:"Low",consumptionMedium:"Medium",label:"Consumption"},m={consumptionHigh:"Alto",consumptionLow:"Bajo",consumptionMedium:"Medio",label:"Consumo"},c={consumptionHigh:"Alto",consumptionLow:"Basso",consumptionMedium:"Medio",label:"Consumo"};const d=class{constructor(s){t(this,s),this.prefChangeEvent=e(this,"mdsPrefChange",7),this.localStorageAlias="mdsPrefConsumption",this.customPropertyAlias="--magma-pref-consumption",this.defaultMode="high",this.syncingFromStore=!1,this.t=new o({el:n,en:r,es:m,it:c}),this.consumption={high:{selector:"pref-consumption-high",label:"consumptionHigh"},medium:{selector:"pref-consumption-medium",label:"consumptionMedium"},low:{selector:"pref-consumption-low",label:"consumptionLow"}},this.isMode=t=>null!=t&&{}.hasOwnProperty.call(this.consumption,t),this.warnInvalidMode=t=>{console.warn(`mds-pref-consumption: ignoring the invalid mode "${t}", use one of: ${Object.keys(this.consumption).join(", ")}`)},this.syncConsumption=t=>{void 0!==t&&t!==this.mode&&(this.syncingFromStore=!0,this.mode=t,this.appliedMode=t,this.syncingFromStore=!1)},this.setConsumption=t=>{if(t===this.appliedMode)return void(this.mode=t);const e=void 0===this.appliedMode;if(this.appliedMode=t,this.mode=t,localStorage.setItem(this.localStorageAlias,this.mode),"undefined"!=typeof document){const t=document.querySelector("html");for(const e in this.consumption)({}).hasOwnProperty.call(this.consumption,e)&&(null==t||t.classList.remove(this.consumption[e].selector));null==t||t.classList.add(this.consumption[this.mode].selector),null==t||t.style.setProperty(this.customPropertyAlias,this.mode)}a.state.consumption=t,e||this.prefChangeEvent.emit({preference:"consumption"})},this.handleModeClick=t=>()=>{this.setConsumption(t)}}componentWillLoad(){var t;null==this.mode||this.isMode(this.mode)||this.warnInvalidMode(this.mode);const e=localStorage.getItem(this.localStorageAlias);null===e||this.isMode(e)||localStorage.removeItem(this.localStorageAlias),this.setConsumption(null!==(t=[this.mode,e].find(this.isMode))&&void 0!==t?t:this.defaultMode)}connectedCallback(){this.unsubscribeStore=a.onChange("consumption",this.syncConsumption)}disconnectedCallback(){var t;null===(t=this.unsubscribeStore)||void 0===t||t.call(this)}modeChanged(t){if(!this.syncingFromStore)return this.isMode(t)?void this.setConsumption(t):(null!=t&&this.warnInvalidMode(t),void this.syncConsumption(a.state.consumption))}render(){var t;return s(i,{key:"8cefd0a0898e2865f7c3262cdf1b7d4cff70ca48","pref-contrast":a.state.contrast},s("mds-text",{key:"d87939dcf15a0f3e4f217c97fafb6dc6564cee5b",class:"info",typography:"caption"},s("b",{key:"205fe30173dec1c6a63b4dd2bf008d7edcea2900"},this.t.get("label"))," ",this.t.get(this.consumption[null!==(t=this.mode)&&void 0!==t?t:this.defaultMode].label)),s("mds-tab",{key:"6e87fd04f67fb8ca65a41469d8690cb7d6225fcd",fill:!0,size:this.size},s("mds-tab-item",{key:"cec3f2a522431fe305489abb616afa87e52f8540",selected:"low"===this.mode,onClick:this.handleModeClick("low"),class:"item item--low",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M13.314 12.492c-.943-.837-4.99-3.526-8.385-5.563 2.037 3.395 4.726 7.442 5.563 8.384q.045.052.094.101a2 2 0 1 0 2.728-2.922"/>\n <path d="M2 14c0 1.893.526 3.663 1.44 5.173.326.538.93.827 1.558.827h14.004c.629 0 1.232-.29 1.558-.827A9.95 9.95 0 0 0 22 14c0-5.523-4.477-10-10-10a9.95 9.95 0 0 0-5.416 1.592c.64.39 1.292.795 1.937 1.202A8 8 0 0 1 18.93 18H5.07A7.96 7.96 0 0 1 4 14c0-1.247.285-2.427.794-3.48-.407-.644-.812-1.297-1.202-1.936A9.95 9.95 0 0 0 2 14"/>\n</svg>\n',title:this.t.get(this.consumption.low.label)}),s("mds-tab-item",{key:"c92c93637404a8391c1e7b76b93e35dfaf420612",selected:"medium"===this.mode,onClick:this.handleModeClick("medium"),class:"item item--medium",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M9.885 4.224C5.378 5.194 2 9.203 2 14c0 1.893.526 3.663 1.44 5.173.326.538.93.827 1.558.827h14.004c.629 0 1.232-.29 1.558-.827A9.95 9.95 0 0 0 22 14c0-4.797-3.378-8.805-7.885-9.776.177.728.352 1.476.52 2.22A8.003 8.003 0 0 1 18.93 18H5.07A8.003 8.003 0 0 1 9.365 6.444a137 137 0 0 1 .52-2.22"/>\n <path d="M13.995 13.862C13.921 12.605 12.96 7.842 12 4c-.96 3.841-1.92 8.605-1.995 9.862a2 2 0 1 0 3.99 0"/>\n</svg>\n',title:this.t.get(this.consumption.medium.label)}),s("mds-tab-item",{key:"6ffb2cc2f73ddd53e010376549e75f9e01f517a7",selected:"high"===this.mode,onClick:this.handleModeClick("high"),class:"item item--high",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M13.508 15.314c.837-.943 3.526-4.99 5.563-8.385-3.395 2.037-7.443 4.726-8.385 5.563q-.051.045-.1.094a2 2 0 1 0 2.922 2.728"/>\n <path d="M3.44 19.173A9.95 9.95 0 0 1 2 14C2 8.477 6.477 4 12 4c1.996 0 3.855.585 5.416 1.592-.64.39-1.292.795-1.937 1.202A8 8 0 0 0 5.07 18h13.86A7.96 7.96 0 0 0 20 14a8 8 0 0 0-.794-3.48c.407-.644.813-1.297 1.202-1.936A9.95 9.95 0 0 1 22 14a9.95 9.95 0 0 1-1.44 5.173c-.326.538-.93.827-1.558.827H4.998c-.629 0-1.232-.29-1.558-.827"/>\n</svg>\n',title:this.t.get(this.consumption.high.label)})))}static get watchers(){return{mode:[{modeChanged:0}]}}};d.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--high{--mds-tab-item-selected-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)))}.item--medium{--mds-tab-item-selected-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)))}.item--low{--mds-tab-item-selected-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}:host([pref-contrast=more]) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-contrast=more]) .item--high{--mds-tab-item-default-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([pref-contrast=more]) .item--medium{--mds-tab-item-default-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([pref-contrast=more]) .item--low{--mds-tab-item-default-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item--high{--mds-tab-item-default-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item--medium{--mds-tab-item-default-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item--low{--mds-tab-item-default-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}}";export{d as mds_pref_consumption}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,d as e,h as i,e as s,g as n}from"./p-BxPbQB28.js";import{L as o}from"./p-Kv1yahtR.js";import{p as t}from"./p-7-TP6wnI.js";import{m as r}from"./p-DiWN48aq.js";import{m as l}from"./p-Ccz0jCNB.js";var d={auto:"Αυτόματο",label:"Γλώσσα",af:"Αφρικάανς",ar:"Αραβικά",az:"Αζερμπαϊτζανικά",be:"Λευκορωσικά",bg:"Βουλγαρικά",bn:"Μπενγκάλι",bs:"Βοσνιακά",ca:"Καταλανικά",ceb:"Σεμπουάνο",cs:"Τσεχικά",cy:"Ουαλικά",da:"Δανικά",de:"Γερμανικά",el:"Ελληνικά",en:"Αγγλικά",eo:"Εσπεράντο",es:"Ισπανικά",et:"Εσθονικά",eu:"Βασκικά",fa:"Περσικά",fi:"Φινλανδικά",fr:"Γαλλικά",fy:"Φριζικά",ga:"Ιρλανδικά",gd:"Σκωτικά Κέλτικα",gl:"Γαλικιανά",gu:"Γκουτζαράτι",ha:"Χάουσα",haw:"Χαβαϊκά",he:"Εβραϊκά",hi:"Χίντι",hmn:"Χμονγκ",hr:"Κροατικά",ht:"Κρεολικά Αϊτής",hu:"Ουγγρικά",hy:"Αρμενικά",id:"Ινδονησιακά",ig:"Ίγκμπο",is:"Ισλανδικά",it:"Ιταλικά",ja:"Ιαπωνικά",jv:"Ιαβανικά",ka:"Γεωργιανά",kk:"Καζακικά",km:"Χμερ",kn:"Κανάντα",ko:"Κορεατικά",ku:"Κουρδικά",ky:"Κιργιζικά",la:"Λατινικά",lb:"Λουξεμβουργιανά",lo:"Λάο",lt:"Λιθουανικά",lv:"Λετονικά",mg:"Μαλαγάσι",mi:"Μαορί",mk:"Μακεδονικά",ml:"Μαλαγιαλαμικά",mn:"Μογγολικά",mr:"Μαράθι",ms:"Μαλαϊκά",mt:"Μαλτέζικα",my:"Βιρμανικά",ne:"Νεπαλικά",nl:"Ολλανδικά",no:"Νορβηγικά",ny:"Τσιτσέουα",or:"Ορίγια",pa:"Παντζαπικά",pl:"Πολωνικά",ps:"Πάστο",pt:"Πορτογαλικά",ro:"Ρουμανικά",ru:"Ρωσικά",sd:"Σιντ",si:"Σινχαλέζικα",sk:"Σλοβακικά",sl:"Σλοβενικά",sm:"Σαμοανά",sn:"Σόνα",so:"Σομαλικά",sq:"Αλβανικά",sr:"Σερβικά",st:"Σόθο",su:"Σουνδανικά",sv:"Σουηδικά",sw:"Σουαχίλι",ta:"Ταμίλ",te:"Τελούγκου",tg:"Τατζικικά",th:"Ταϊλανδικά",tr:"Τουρκικά",tt:"Ταταρικά",uk:"Ουκρανικά",ur:"Ουρντού",uz:"Ουζμπεκικά",vi:"Βιετναμέζικα",xh:"Ξόσα",yi:"Γίντις",yo:"Γιορούμπα",zh:"Κινέζικα",zu:"Ζουλού",defaultLanguage:"Εάν η μετάφραση δεν είναι διαθέσιμη, θα χρησιμοποιηθούν τα Αγγλικά"},h={auto:"Automatic",label:"Language",af:"Afrikaans",ar:"Arabic",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",bn:"Bengali",bs:"Bosnian",ca:"Catalan",ceb:"Cebuano",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",fa:"Persian",fi:"Finnish",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jv:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",or:"Odia",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tr:"Turkish",tt:"Tatar",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",xh:"Xhosa",yi:"Yiddish",yo:"Yoruba",zh:"Chinese",zu:"Zulu",defaultLanguage:"If the translation is not available, English will be used"},u={auto:"Automático",label:"Idioma",af:"Afrikáans",ar:"Árabe",az:"Azerbaiyano",be:"Bielorruso",bg:"Búlgaro",bn:"Bengalí",bs:"Bosnio",ca:"Catalán",ceb:"Cebuano",cs:"Checo",cy:"Galés",da:"Danés",de:"Alemán",el:"Griego",en:"Inglés",eo:"Esperanto",es:"Español",et:"Estonio",eu:"Vasco",fa:"Persa",fi:"Finlandés",fr:"Francés",fy:"Frisón",ga:"Irlandés",gd:"Gaélico escocés",gl:"Gallego",gu:"Gujarati",ha:"Hausa",haw:"Hawaiano",he:"Hebreo",hi:"Hindi",hmn:"Hmong",hr:"Croata",ht:"Criollo haitiano",hu:"Húngaro",hy:"Armenio",id:"Indonesio",ig:"Igbo",is:"Islandés",it:"Italiano",ja:"Japonés",jv:"Javanés",ka:"Georgiano",kk:"Kazajo",km:"Jemer",kn:"Canarés",ko:"Coreano",ku:"Kurdo",ky:"Kirguís",la:"Latín",lb:"Luxemburgués",lo:"Lao",lt:"Lituano",lv:"Letón",mg:"Malgache",mi:"Maorí",mk:"Macedonio",ml:"Malayalam",mn:"Mongol",mr:"Maratí",ms:"Malayo",mt:"Maltés",my:"Birmano",ne:"Nepalí",nl:"Holandés",no:"Noruego",ny:"Chichewa",or:"Oriya",pa:"Panyabí",pl:"Polaco",ps:"Pastún",pt:"Portugués",ro:"Rumano",ru:"Ruso",sd:"Sindhi",si:"Cingalés",sk:"Eslovaco",sl:"Esloveno",sm:"Samoano",sn:"Shona",so:"Somalí",sq:"Albanés",sr:"Serbio",st:"Sesotho",su:"Sundanés",sv:"Sueco",sw:"Suajili",ta:"Tamil",te:"Telugu",tg:"Tayiko",th:"Tailandés",tr:"Turco",tt:"Tártaro",uk:"Ucraniano",ur:"Urdu",uz:"Uzbeko",vi:"Vietnamita",xh:"Xhosa",yi:"Yidis",yo:"Yoruba",zh:"Chino",zu:"Zulú",defaultLanguage:"Si la traducción no está disponible, se utilizará el inglés"},m={auto:"Automatico",label:"Lingua",af:"Afrikaans",ar:"Arabo",az:"Azero",be:"Bielorusso",bg:"Bulgaro",bn:"Bengalese",bs:"Bosniaco",ca:"Catalano",ceb:"Cebuano",cs:"Ceco",cy:"Gallese",da:"Danese",de:"Tedesco",el:"Greco",en:"Inglese",eo:"Esperanto",es:"Spagnolo",et:"Estone",eu:"Basco",fa:"Persiano",fi:"Finlandese",fr:"Francese",fy:"Frisone",ga:"Irlandese",gd:"Gaelico scozzese",gl:"Galiziano",gu:"Gujarati",ha:"Hausa",haw:"Hawaiano",he:"Ebraico",hi:"Hindi",hmn:"Hmong",hr:"Croato",ht:"Creolo haitiano",hu:"Ungherese",hy:"Armeno",id:"Indonesiano",ig:"Igbo",is:"Islandese",it:"Italiano",ja:"Giapponese",jv:"Giavanese",ka:"Georgiano",kk:"Kazako",km:"Khmer",kn:"Kannada",ko:"Coreano",ku:"Curdo",ky:"Kirghiso",la:"Latino",lb:"Lussemburghese",lo:"Lao",lt:"Lituano",lv:"Lettone",mg:"Malgascio",mi:"Maori",mk:"Macedone",ml:"Malayalam",mn:"Mongolo",mr:"Marathi",ms:"Malese",mt:"Maltese",my:"Birmano",ne:"Nepalese",nl:"Olandese",no:"Norvegese",ny:"Chichewa",or:"Oriya",pa:"Punjabi",pl:"Polacco",ps:"Pashtu",pt:"Portoghese",ro:"Rumeno",ru:"Russo",sd:"Sindhi",si:"Singalese",sk:"Slovacco",sl:"Sloveno",sm:"Samoano",sn:"Shona",so:"Somalo",sq:"Albanese",sr:"Serbo",st:"Sesotho",su:"Sundanese",sv:"Svedese",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tagico",th:"Thai",tr:"Turco",tt:"Tataro",uk:"Ucraino",ur:"Urdu",uz:"Uzbeko",vi:"Vietnamita",xh:"Xhosa",yi:"Yiddish",yo:"Yoruba",zh:"Cinese",zu:"Zulu",defaultLanguage:"Se la traduzione non è disponibile, verrà utilizzato l'Inglese"};const g=class{constructor(i){a(this,i),this.languageChangeEvent=e(this,"mdsPrefLanguageChange",7),this.prefChangeEvent=e(this,"mdsPrefChange",7),this.showDropdown=!1,this.localStorageAlias="mdsPrefLanguage",this.defaultLanguage="en",this.t=new o({el:d,en:h,es:u,it:m}),this.set="auto",this.toggleDropdown=()=>{this.showDropdown=!this.showDropdown},this.hideLanguageSelectDropdown=()=>{this.showDropdown=!1},this.changeLanguageSelectItem=()=>{this.elPreferLanguageItems.forEach((a=>{a.selected=!1}))},this.checkLanguageSelect=()=>{this.elPreferLanguageItems=this.element.querySelectorAll("mds-pref-language-item"),this.elPreferLanguageItems.forEach((a=>{a.addEventListener("mdsPrefLanguageItemSelect",(a=>{this.changeLanguageSelectItem(),this.currentSelectedItem=a.currentTarget,this.currentSelectedItem.selected=!0,this.languageChangeEvent.emit({language:this.currentSelectedItem.code}),this.showDropdown=!1,this.setLanguage(a.detail.language)}))})),this.elPreferLanguageItems.forEach((a=>{a.selected=a.code===this.set}))},this.sanitizeLanguage=a=>a.includes("-")?a.split("-")[0].toLowerCase():a,this.setLanguage=a=>{var e,i,s,n,o;if(!/(auto)|^[a-z]{2}(-[A-Z]{2})?$/gm.exec(a))throw Error(`Language code set not reconized: ${a}`);const r=this.sanitizeLanguage(null!==(e=navigator.language)&&void 0!==e?e:"en"),l=localStorage.getItem(this.localStorageAlias),d=null!==(s=null===(i=document.querySelector("html"))||void 0===i?void 0:i.getAttribute("lang"))&&void 0!==s?s:null,h="auto"===a?null!==(n=null!=l?l:d)&&void 0!==n?n:r:this.sanitizeLanguage(a);if(this.set=h,h===this.appliedLanguage)return;const u=void 0===this.appliedLanguage;this.appliedLanguage=h,localStorage.setItem(this.localStorageAlias,h),"undefined"!=typeof document&&(null===(o=document.querySelector("html"))||void 0===o||o.setAttribute("lang",h)),t.state.language=h,u||this.prefChangeEvent.emit({preference:"language"})}}componentWillLoad(){this.setLanguage(this.set)}componentDidLoad(){this.checkLanguageSelect()}handleSetChange(a){this.setLanguage(a)}render(){var a;return i(s,{key:"21129a3d751feb56d928d2bc9f5e39f0f548f909"},i("div",{key:"bcfbe0dd6918f8a37d26ecfd57da156c78e94582",class:"menu"},i("mds-text",{key:"6386b4d771c1fca8efbede23f69ea56dbbee4947",class:"info",typography:"caption"},i("b",{key:"4d309028a088aacfac87ee401daaafdc75163d4c"},this.t.get("label"))),i("mds-tab",{key:"ad09f6d0f37a6570d77341456b7b2fcc0a6987a6",fill:!0,size:this.size},i("mds-tab-item",{key:"8230f8238bd9e68211d41098af53d78e86711c97",selected:!0,onClick:this.toggleDropdown,expanded:this.showDropdown,id:"mds-pref-language-nav",class:"item item--custom-language","icon-position":"right",icon:this.showDropdown?l:r,label:this.t.get(null!==(a=this.set)&&void 0!==a?a:"auto")}))),i("mds-dropdown",{key:"333d1c56ea5e1a7ec3266d25fb4fd46481b18829",class:"mds-pref-language-dropdown",target:"#mds-pref-language-nav",interaction:"none",visible:this.showDropdown,onMdsDropdownHide:this.hideLanguageSelectDropdown},i("slot",{key:"82f649867dbf53c395dcbdc17690512019f0e6b3"})),this.set!==this.defaultLanguage&&i("mds-text",{key:"0ecda6e3832b41bb0e8127ff88a9122eab4459e7",typography:"caption"},this.t.get("defaultLanguage")))}get element(){return n(this)}static get watchers(){return{set:[{handleSetChange:0}]}}};g.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-dropdown,mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*400)}.menu{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.mds-pref-language-dropdown{gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*400)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--custom-language{cursor:pointer}.item--auto,.item--custom-language{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}";export{g as mds_pref_language}
|
|
1
|
+
import{r as a,d as e,h as i,e as s,g as n}from"./p-CPRkNQdE.js";import{L as o}from"./p-BmT_DEV2.js";import{p as t}from"./p-C25F_FlB.js";import{m as l}from"./p-DiWN48aq.js";import{m as r}from"./p-Ccz0jCNB.js";var h={auto:"Αυτόματο",label:"Γλώσσα",af:"Αφρικάανς",ar:"Αραβικά",az:"Αζερμπαϊτζανικά",be:"Λευκορωσικά",bg:"Βουλγαρικά",bn:"Μπενγκάλι",bs:"Βοσνιακά",ca:"Καταλανικά",ceb:"Σεμπουάνο",cs:"Τσεχικά",cy:"Ουαλικά",da:"Δανικά",de:"Γερμανικά",el:"Ελληνικά",en:"Αγγλικά",eo:"Εσπεράντο",es:"Ισπανικά",et:"Εσθονικά",eu:"Βασκικά",fa:"Περσικά",fi:"Φινλανδικά",fr:"Γαλλικά",fy:"Φριζικά",ga:"Ιρλανδικά",gd:"Σκωτικά Κέλτικα",gl:"Γαλικιανά",gu:"Γκουτζαράτι",ha:"Χάουσα",haw:"Χαβαϊκά",he:"Εβραϊκά",hi:"Χίντι",hmn:"Χμονγκ",hr:"Κροατικά",ht:"Κρεολικά Αϊτής",hu:"Ουγγρικά",hy:"Αρμενικά",id:"Ινδονησιακά",ig:"Ίγκμπο",is:"Ισλανδικά",it:"Ιταλικά",ja:"Ιαπωνικά",jv:"Ιαβανικά",ka:"Γεωργιανά",kk:"Καζακικά",km:"Χμερ",kn:"Κανάντα",ko:"Κορεατικά",ku:"Κουρδικά",ky:"Κιργιζικά",la:"Λατινικά",lb:"Λουξεμβουργιανά",lo:"Λάο",lt:"Λιθουανικά",lv:"Λετονικά",mg:"Μαλαγάσι",mi:"Μαορί",mk:"Μακεδονικά",ml:"Μαλαγιαλαμικά",mn:"Μογγολικά",mr:"Μαράθι",ms:"Μαλαϊκά",mt:"Μαλτέζικα",my:"Βιρμανικά",ne:"Νεπαλικά",nl:"Ολλανδικά",no:"Νορβηγικά",ny:"Τσιτσέουα",or:"Ορίγια",pa:"Παντζαπικά",pl:"Πολωνικά",ps:"Πάστο",pt:"Πορτογαλικά",ro:"Ρουμανικά",ru:"Ρωσικά",sd:"Σιντ",si:"Σινχαλέζικα",sk:"Σλοβακικά",sl:"Σλοβενικά",sm:"Σαμοανά",sn:"Σόνα",so:"Σομαλικά",sq:"Αλβανικά",sr:"Σερβικά",st:"Σόθο",su:"Σουνδανικά",sv:"Σουηδικά",sw:"Σουαχίλι",ta:"Ταμίλ",te:"Τελούγκου",tg:"Τατζικικά",th:"Ταϊλανδικά",tr:"Τουρκικά",tt:"Ταταρικά",uk:"Ουκρανικά",ur:"Ουρντού",uz:"Ουζμπεκικά",vi:"Βιετναμέζικα",xh:"Ξόσα",yi:"Γίντις",yo:"Γιορούμπα",zh:"Κινέζικα",zu:"Ζουλού",defaultLanguage:"Εάν η μετάφραση δεν είναι διαθέσιμη, θα χρησιμοποιηθούν τα Αγγλικά"},u={auto:"Automatic",label:"Language",af:"Afrikaans",ar:"Arabic",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",bn:"Bengali",bs:"Bosnian",ca:"Catalan",ceb:"Cebuano",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",fa:"Persian",fi:"Finnish",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jv:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",or:"Odia",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tr:"Turkish",tt:"Tatar",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",xh:"Xhosa",yi:"Yiddish",yo:"Yoruba",zh:"Chinese",zu:"Zulu",defaultLanguage:"If the translation is not available, English will be used"},d={auto:"Automático",label:"Idioma",af:"Afrikáans",ar:"Árabe",az:"Azerbaiyano",be:"Bielorruso",bg:"Búlgaro",bn:"Bengalí",bs:"Bosnio",ca:"Catalán",ceb:"Cebuano",cs:"Checo",cy:"Galés",da:"Danés",de:"Alemán",el:"Griego",en:"Inglés",eo:"Esperanto",es:"Español",et:"Estonio",eu:"Vasco",fa:"Persa",fi:"Finlandés",fr:"Francés",fy:"Frisón",ga:"Irlandés",gd:"Gaélico escocés",gl:"Gallego",gu:"Gujarati",ha:"Hausa",haw:"Hawaiano",he:"Hebreo",hi:"Hindi",hmn:"Hmong",hr:"Croata",ht:"Criollo haitiano",hu:"Húngaro",hy:"Armenio",id:"Indonesio",ig:"Igbo",is:"Islandés",it:"Italiano",ja:"Japonés",jv:"Javanés",ka:"Georgiano",kk:"Kazajo",km:"Jemer",kn:"Canarés",ko:"Coreano",ku:"Kurdo",ky:"Kirguís",la:"Latín",lb:"Luxemburgués",lo:"Lao",lt:"Lituano",lv:"Letón",mg:"Malgache",mi:"Maorí",mk:"Macedonio",ml:"Malayalam",mn:"Mongol",mr:"Maratí",ms:"Malayo",mt:"Maltés",my:"Birmano",ne:"Nepalí",nl:"Holandés",no:"Noruego",ny:"Chichewa",or:"Oriya",pa:"Panyabí",pl:"Polaco",ps:"Pastún",pt:"Portugués",ro:"Rumano",ru:"Ruso",sd:"Sindhi",si:"Cingalés",sk:"Eslovaco",sl:"Esloveno",sm:"Samoano",sn:"Shona",so:"Somalí",sq:"Albanés",sr:"Serbio",st:"Sesotho",su:"Sundanés",sv:"Sueco",sw:"Suajili",ta:"Tamil",te:"Telugu",tg:"Tayiko",th:"Tailandés",tr:"Turco",tt:"Tártaro",uk:"Ucraniano",ur:"Urdu",uz:"Uzbeko",vi:"Vietnamita",xh:"Xhosa",yi:"Yidis",yo:"Yoruba",zh:"Chino",zu:"Zulú",defaultLanguage:"Si la traducción no está disponible, se utilizará el inglés"},g={auto:"Automatico",label:"Lingua",af:"Afrikaans",ar:"Arabo",az:"Azero",be:"Bielorusso",bg:"Bulgaro",bn:"Bengalese",bs:"Bosniaco",ca:"Catalano",ceb:"Cebuano",cs:"Ceco",cy:"Gallese",da:"Danese",de:"Tedesco",el:"Greco",en:"Inglese",eo:"Esperanto",es:"Spagnolo",et:"Estone",eu:"Basco",fa:"Persiano",fi:"Finlandese",fr:"Francese",fy:"Frisone",ga:"Irlandese",gd:"Gaelico scozzese",gl:"Galiziano",gu:"Gujarati",ha:"Hausa",haw:"Hawaiano",he:"Ebraico",hi:"Hindi",hmn:"Hmong",hr:"Croato",ht:"Creolo haitiano",hu:"Ungherese",hy:"Armeno",id:"Indonesiano",ig:"Igbo",is:"Islandese",it:"Italiano",ja:"Giapponese",jv:"Giavanese",ka:"Georgiano",kk:"Kazako",km:"Khmer",kn:"Kannada",ko:"Coreano",ku:"Curdo",ky:"Kirghiso",la:"Latino",lb:"Lussemburghese",lo:"Lao",lt:"Lituano",lv:"Lettone",mg:"Malgascio",mi:"Maori",mk:"Macedone",ml:"Malayalam",mn:"Mongolo",mr:"Marathi",ms:"Malese",mt:"Maltese",my:"Birmano",ne:"Nepalese",nl:"Olandese",no:"Norvegese",ny:"Chichewa",or:"Oriya",pa:"Punjabi",pl:"Polacco",ps:"Pashtu",pt:"Portoghese",ro:"Rumeno",ru:"Russo",sd:"Sindhi",si:"Singalese",sk:"Slovacco",sl:"Sloveno",sm:"Samoano",sn:"Shona",so:"Somalo",sq:"Albanese",sr:"Serbo",st:"Sesotho",su:"Sundanese",sv:"Svedese",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tagico",th:"Thai",tr:"Turco",tt:"Tataro",uk:"Ucraino",ur:"Urdu",uz:"Uzbeko",vi:"Vietnamita",xh:"Xhosa",yi:"Yiddish",yo:"Yoruba",zh:"Cinese",zu:"Zulu",defaultLanguage:"Se la traduzione non è disponibile, verrà utilizzato l'Inglese"};const m=/^[a-z]{2,3}(-[A-Za-z0-9]{1,8})*$/,c=a=>null!=a&&m.test(a),b=class{constructor(i){a(this,i),this.languageChangeEvent=e(this,"mdsPrefLanguageChange",7),this.prefChangeEvent=e(this,"mdsPrefChange",7),this.showDropdown=!1,this.localStorageAlias="mdsPrefLanguage",this.defaultLanguage="en",this.t=new o({el:h,en:u,es:d,it:g}),this.set="auto",this.toggleDropdown=()=>{this.showDropdown=!this.showDropdown},this.hideLanguageSelectDropdown=()=>{this.showDropdown=!1},this.changeLanguageSelectItem=()=>{this.elPreferLanguageItems.forEach((a=>{a.selected=!1}))},this.checkLanguageSelect=()=>{this.elPreferLanguageItems=this.element.querySelectorAll("mds-pref-language-item"),this.elPreferLanguageItems.forEach((a=>{a.selected=a.code===this.set}))},this.sanitizeLanguage=a=>a.includes("-")?a.split("-")[0].toLowerCase():a,this.setLanguage=a=>{var e,i,s,n,o;if("auto"!==a&&!c(a)&&(null!=a&&console.warn(`mds-pref-language: ignoring the invalid language code "${a}"`),void 0!==this.appliedLanguage))return void(this.set=this.appliedLanguage);const l=c(a)?a:"auto",r=this.sanitizeLanguage(null!==(e=navigator.language)&&void 0!==e?e:"en"),h=localStorage.getItem(this.localStorageAlias);null===h||c(h)||localStorage.removeItem(this.localStorageAlias);const u=null!==(s=null===(i=document.querySelector("html"))||void 0===i?void 0:i.getAttribute("lang"))&&void 0!==s?s:null,d="auto"===l?null!==(n=[h,u].find(c))&&void 0!==n?n:r:this.sanitizeLanguage(l);if(this.set=d,d===this.appliedLanguage)return;const g=void 0===this.appliedLanguage;this.appliedLanguage=d,localStorage.setItem(this.localStorageAlias,d),"undefined"!=typeof document&&(null===(o=document.querySelector("html"))||void 0===o||o.setAttribute("lang",d)),t.state.language=d,g||this.prefChangeEvent.emit({preference:"language"})}}componentWillLoad(){this.setLanguage(this.set)}componentDidLoad(){this.checkLanguageSelect()}handleSetChange(a){var e;this.setLanguage(a),null===(e=this.elPreferLanguageItems)||void 0===e||e.forEach((a=>{a.selected=a.code===this.set}))}handleItemSelect(a){this.changeLanguageSelectItem(),this.currentSelectedItem=a.target,this.currentSelectedItem.selected=!0,this.languageChangeEvent.emit({language:this.currentSelectedItem.code}),this.showDropdown=!1,this.setLanguage(a.detail.language)}render(){var a;return i(s,{key:"75783c164d28a49147705263cc4ba5786caa887b"},i("div",{key:"d2f6ac30e51f0c7c120ff9dba5a04b2a802d5cf1",class:"menu"},i("mds-text",{key:"89369b36ce7920bebc0c6e0e72a8637c559fb817",class:"info",typography:"caption"},i("b",{key:"6f6fcc375a4fe68a97bdd5f0c2ffdbd15e5266d6"},this.t.get("label"))),i("mds-tab",{key:"8cb1b2afa124bf426bbd3298b1c434fe18a8aee0",fill:!0,size:this.size},i("mds-tab-item",{key:"96b0de3f6a68511e45f2fb650d8be11be739a820",selected:!0,onClick:this.toggleDropdown,expanded:this.showDropdown,id:"mds-pref-language-nav",class:"item item--custom-language","icon-position":"right",icon:this.showDropdown?r:l,label:this.t.get(null!==(a=this.set)&&void 0!==a?a:"auto")}))),i("mds-dropdown",{key:"3d59d19f0c5487c9bb76c5cb54843127e9506234",class:"mds-pref-language-dropdown",target:"#mds-pref-language-nav",interaction:"none",visible:this.showDropdown,onMdsDropdownHide:this.hideLanguageSelectDropdown},i("slot",{key:"96dc9d4379426589a42df4f7adaac4c69ce68b04",onSlotchange:this.checkLanguageSelect})),this.set!==this.defaultLanguage&&i("mds-text",{key:"3b735f3e02bc9ac41bf4b9d30583d735a4c0bc76",typography:"caption"},this.t.get("defaultLanguage")))}get element(){return n(this)}static get watchers(){return{set:[{handleSetChange:0}]}}};b.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-dropdown,mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*400)}.menu{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.mds-pref-language-dropdown{gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*400)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--custom-language{cursor:pointer}.item--auto,.item--custom-language{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}";export{b as mds_pref_language}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-CmzGV0XD.system.js"],(function(t){"use strict";var e,i,r;return{setters:[function(t){e=t.r;i=t.h;r=t.e}],execute:function(){var n=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-price-table-list:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*600);grid-template-columns:repeat(auto-fit,minmax(1px,1fr))}"};var a=t("mds_price_table_header",/** @class */function(){function t(t){e(this,t)}t.prototype.render=function(){return i(r,{key:"cb5a7e40673f0304f0ed00cae9f93753bc848717"},i("slot",{key:"7bbefb79891067cf911dd2d0042e269e2e14bbbc"}))};return t}());a.style=n()}}}));
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
System.register(["./p-CmzGV0XD.system.js","./p-B-nayZ3E.system.js","./p-D8596ytD.system.js","./p-C1ailvfu.system.js","./p-BeNKMPXR.system.js","./p-Qrub-hmK.system.js"],(function(t){"use strict";var a,o,r,s,i,e,n,d,c,u;return{setters:[function(t){a=t.r;o=t.d;r=t.h;s=t.e;i=t.g},function(t){e=t.c},function(t){n=t.p},function(t){d=t.L},function(t){c=t.h},function(t){u=t.c}],execute:function(){var m='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8l8-8z"/></svg>';var l='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8l-8 8z"/></svg>';var h="Απόκρυψη";var v={hide:h};var f="Hide";var p={hide:f};var g="Ocultar";var b={hide:g};var x="Nascondi";var w={hide:x};var y=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-toast-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-duration:.3s;--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-xl,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a);--mds-toast-width:auto;--private-toast-transition-duration:var(--mds-toast-duration,.3s);--private-toast-transition-duration-intro:var(--duration-500,.5s);--private-toast-transition-duration-icon:var(--duration-200,.2s);color:var(--mds-toast-color,rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))));display:flex;left:0;pointer-events:none;position:fixed;right:0;z-index:var(--magma-modal-z-index,3000)}.dialog{--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));background-color:var(--mds-toast-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));box-shadow:var(--mds-toast-shadow);transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));corner-shape:var(--magma-corner-shape,squircle);align-items:center;display:inline-flex;gap:calc(var(--spacing,.0025rem)*400);margin-inline:calc(var(--spacing,.0025rem)*400);max-width:100%;padding:calc(var(--spacing,.0025rem)*400);pointer-events:none;transition-duration:var(--private-toast-transition-duration);transition-property:box-shadow,background-color,color,transform,visibility;visibility:hidden;width:var(--mds-toast-width,auto)}:host([visible]:not([visible=false])) .dialog{pointer-events:auto;visibility:visible}:host([position^=top]){top:0}:host([position=top-left]){justify-content:flex-start}:host([position=top-center]){justify-content:center}:host([position=top-right]){justify-content:flex-end}:host([position^=bottom]){bottom:0}:host([position=bottom-left]){justify-content:flex-start}:host([position=bottom-center]){justify-content:center}:host([position=bottom-right]){justify-content:flex-end}.actions{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}.hide{flex-shrink:0}::slotted([slot=icon]){--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));fill:var(--mds-toast-icon-color,rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))));flex-shrink:0;transition-duration:var(--private-toast-transition-duration-icon);transition-property:fill;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}:host([variant=dark]),:host([variant=dark][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)))}:host([variant=dark][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)))}:host([variant=error]),:host([variant=error][tone=strong]){--mds-toast-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-toast-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error][tone=weak]){--mds-toast-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-toast-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=info]),:host([variant=info][tone=strong]){--mds-toast-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-toast-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info][tone=weak]){--mds-toast-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-toast-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=light]),:host([variant=light][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-toast-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([variant=light][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-toast-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}:host([variant=success]),:host([variant=success][tone=strong]){--mds-toast-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-toast-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success][tone=weak]){--mds-toast-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-toast-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning]),:host([variant=warning][tone=strong]){--mds-toast-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-toast-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning][tone=weak]){--mds-toast-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-toast-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}.to-top-center,.to-top-left,.to-top-right{transform:translateY(calc(-100% - var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,.3s));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-top-center.dialog--visible,.to-top-left.dialog--visible,.to-top-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.to-bottom-center,.to-bottom-left,.to-bottom-right{transform:translateY(calc(100% + var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,.3s));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-bottom-center.dialog--visible,.to-bottom-left.dialog--visible,.to-bottom-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400*-1));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}:host([stacked]){inset:auto;position:relative;transition-behavior:allow-discrete;transition-duration:var(--private-toast-transition-duration);transition-property:display;z-index:auto}:host([stacked]:not([visible])),:host([stacked][visible=false]){display:none}:host([stacked]) .dialog:not(.dialog--visible){opacity:0;transform:none}@starting-style{:host([stacked]) .dialog--visible{opacity:0;transform:none}}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}:host([pref-contrast=more]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}}'};var k=t("mds_toast",/** @class */function(){function t(t){var r=this;a(this,t);this.closedEvent=o(this,"mdsToastClose",7);this.cssDismissAnimationDuration=300;// hardcoded from CSS :-(
|
|
2
|
+
this.countdownStart=0;this.pointerInside=false;this.focusInside=false;
|
|
3
|
+
// who hid the toast, read by the close that follows: the application, unless the timer or
|
|
4
|
+
// the hide button say otherwise
|
|
5
|
+
this.closeReason="hide";this.t=new d({el:v,en:p,es:b,it:w});
|
|
6
|
+
// inside an mds-toast-region, which places the toast and announces it
|
|
7
|
+
this.stacked=false;
|
|
8
|
+
/**
|
|
9
|
+
* If set, specifies the visibility duration in milliseconds of the element inside the viewport, when the time is up the visible property will be set to false. The countdown waits while the pointer is over the toast or the focus is inside it. If the duration is set to 0 the toast stays until it is hidden: give it `deletable` so the person can hide it too.
|
|
10
|
+
*/this.duration=5e3;
|
|
11
|
+
/**
|
|
12
|
+
* Sets the theme variant colours
|
|
13
|
+
*/this.variant="light";
|
|
14
|
+
/**
|
|
15
|
+
* Sets the tone of the color variant
|
|
16
|
+
*/this.tone="strong";
|
|
17
|
+
/**
|
|
18
|
+
* Sets position of toast
|
|
19
|
+
*/this.position="bottom-center";
|
|
20
|
+
// a removed attribute leaves null, which counts as no duration, like 0
|
|
21
|
+
this.hasDuration=function(){var t;var a=(t=r.duration)!==null&&t!==void 0?t:0;return a!==0&&!Number.isNaN(a)};this.stopCountdown=function(){window.clearTimeout(r.dismissTimer);r.dismissTimer=undefined};this.runCountdown=function(){if(r.remaining===undefined||r.dismissTimer!==undefined){return}if(r.pointerInside||r.focusInside){return}r.countdownStart=Date.now();r.dismissTimer=window.setTimeout((function(){r.dismissTimer=undefined;r.remaining=undefined;r.hide("timeout")}),r.remaining)};
|
|
22
|
+
// the time spent counting is gone, the rest waits for the pointer and the focus to leave
|
|
23
|
+
this.holdCountdown=function(){if(r.dismissTimer===undefined||r.remaining===undefined){return}r.stopCountdown();r.remaining=Math.max(0,r.remaining-(Date.now()-r.countdownStart))};
|
|
24
|
+
/**
|
|
25
|
+
* While the toast is visible with a duration, one countdown hides it when the time is up, and
|
|
26
|
+
* mdsToastClose follows once the exit animation is over. The countdown is one-shot: it was an
|
|
27
|
+
* interval that nobody stopped, so a dismissed toast emitted mdsToastClose again every
|
|
28
|
+
* `duration`. Hiding the toast, showing it again or changing the duration starts from scratch.
|
|
29
|
+
* The countdown waits while the pointer is over the toast or the focus is inside it, so its
|
|
30
|
+
* action is not taken away while the person is reaching it (WCAG 2.2.1).
|
|
31
|
+
*/this.reloadTimeListeners=function(t){if(typeof window==="undefined")return;r.stopCountdown();r.remaining=t&&r.hasDuration()?r.duration:undefined;r.runCountdown()};this.hide=function(t){r.closeReason=t;r.visible=false};this.onCloseClick=function(){r.hide("close")};this.onPointerEnter=function(){r.pointerInside=true;r.holdCountdown()};this.onPointerLeave=function(){r.pointerInside=false;r.runCountdown()};this.onFocusIn=function(){r.focusInside=true;r.holdCountdown()};
|
|
32
|
+
// the focus moving from one control of the toast to another sends the focusin of the next one
|
|
33
|
+
// right after: the countdown goes on and stops again in the same task
|
|
34
|
+
this.onFocusOut=function(){r.focusInside=false;r.runCountdown()};
|
|
35
|
+
// the hide button takes the colour of the text of the toast: the variants without a style of
|
|
36
|
+
// their own are drawn as dark
|
|
37
|
+
this.closeButtonVariant=function(){switch(r.variant){case"light":return"dark";case"error":case"info":case"success":case"warning":return r.variant;default:return"light"}};this.onActionSlotChange=function(){r.hasActions=c(r.hostElement,"action")}}
|
|
38
|
+
// mdsToastClose waits for the exit transition, so it reads the duration the transition really
|
|
39
|
+
// has: --mds-toast-duration, or 0s when the motion preference removes it. An invalid value
|
|
40
|
+
// leaves the transition at 0s too
|
|
41
|
+
t.prototype.updateCSSCustomProps=function(){if(typeof window==="undefined")return;var t=window.getComputedStyle(this.hostElement);this.cssDismissAnimationDuration=e(t.getPropertyValue("--private-toast-transition-duration"),0)};t.prototype.connectedCallback=function(){this.stacked=this.hostElement.closest("mds-toast-region")!==null};t.prototype.disconnectedCallback=function(){window.clearTimeout(this.dismissTimer);window.clearTimeout(this.closeTimer);this.dismissTimer=undefined;this.closeTimer=undefined};t.prototype.componentWillLoad=function(){this.hasText=this.hostElement.innerHTML!=="";this.hasActions=c(this.hostElement,"action");this.reloadTimeListeners(!!this.visible)};t.prototype.componentDidLoad=function(){this.updateCSSCustomProps()};t.prototype.visibleChanged=function(t,a){var o=this;
|
|
42
|
+
// read again when the toast hides: the preference or the property may have changed since load
|
|
43
|
+
this.updateCSSCustomProps();var r=this.closeReason;this.closeReason="hide";if(!t){
|
|
44
|
+
// a hidden toast leaves the pointer and the focus behind without telling: the boundary
|
|
45
|
+
// events come only when the pointer moves, and a control that turns hidden loses the
|
|
46
|
+
// focus silently. The next showing starts its countdown from a clean state
|
|
47
|
+
this.pointerInside=false;this.focusInside=false}this.reloadTimeListeners(t);if(t){
|
|
48
|
+
// shown again before the close of the last showing: that close is no longer true
|
|
49
|
+
window.clearTimeout(this.closeTimer);this.closeTimer=undefined;return}if(!a){return}window.clearTimeout(this.closeTimer);this.closeTimer=window.setTimeout((function(){o.closeTimer=undefined;o.closedEvent.emit({reason:r})}),this.cssDismissAnimationDuration)};t.prototype.durationChanged=function(){this.reloadTimeListeners(!!this.visible)};t.prototype.render=function(){var t;
|
|
50
|
+
// a status region: the message is announced when the toast shows it, without moving the
|
|
51
|
+
// focus. The host is the region and stays in the page, so the content that appears inside
|
|
52
|
+
// it is what a screen reader reads out. Inside an mds-toast-region the region is the live
|
|
53
|
+
// region, already in the page before any toast: a toast of its own would nest a second one
|
|
54
|
+
return r(s,{key:"54d6d4cb0813dd1d58fc32d57c044e4f3c0888b7",role:this.stacked?undefined:"status",stacked:this.stacked,"pref-animation":n.state.animation,"pref-contrast":n.state.contrast,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},r("div",{key:"acf4944a4ceca7b96f2eac57ccfe78b2d267dfa9",class:u("dialog",this.position&&"to-".concat(this.position),this.visible&&"dialog--visible"),onFocusin:this.onFocusIn,onFocusout:this.onFocusOut,onPointerEnter:this.onPointerEnter,onPointerLeave:this.onPointerLeave},r("slot",{key:"b26ca83def0e4bf35c85ac7ece1b04c46ed2664f",name:"icon"}),this.hasText&&r("mds-text",{key:"c97189fd1bff2693686184e006c6282d0f67ac09",typography:"caption"},r("slot",{key:"b1964597f7b88df8f5bf2fddf3673eb033f45ce0"})),r("div",{key:"d6ab6634153b14b4f00d546d3dda91918505d7a9",class:u("actions",!this.hasActions&&"actions--hidden")},r("slot",{key:"087fb1d4d1e8e122db02061f91489ba87193457e",name:"action",onSlotchange:this.onActionSlotChange})),this.deletable&&r("mds-button",{key:"668d30646ab454eab30f8b34fa09aa2a7338a2dd","aria-label":this.t.get("hide"),class:"hide",icon:((t=this.position)===null||t===void 0?void 0:t.startsWith("top"))?l:m,onClick:this.onCloseClick,size:"sm",tone:"text",type:"button",variant:this.closeButtonVariant()})))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}},enumerable:false,configurable:true});return t}());k.style=y()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,d as e,h as i,e as s}from"./p-CPRkNQdE.js";import{m as a}from"./p-lZldSMeV.js";import{m as n}from"./p-XQgkfNpn.js";import{L as o}from"./p-BmT_DEV2.js";import{p as r}from"./p-C25F_FlB.js";var m={animationDisabled:"Απενεργοποιημένο",animationEnabled:"Ενεργοποιημένο",label:"Κινηματογραφήσεις",systemSettings:"Ρυθμίσεις συστήματος"},d={animationDisabled:"Disabled",animationEnabled:"Enabled",label:"Animations",systemSettings:"System settings"},l={animationDisabled:"Deshabilitadas",animationEnabled:"Habilitadas",label:"Animaciones",systemSettings:"Sistema operativo"},h={animationDisabled:"Disabilitate",animationEnabled:"Abilitate",label:"Animazioni",systemSettings:"Sistema operativo"};const c=class{constructor(i){t(this,i),this.prefChangeEvent=e(this,"mdsPrefChange",7),this.localStorageAlias="mdsPrefAnimation",this.customPropertyAlias="--magma-pref-animation",this.defaultMode="system",this.syncingFromStore=!1,this.t=new o({el:m,en:d,es:l,it:h}),this.animation={reduce:{selector:"pref-animation-reduce",label:"animationDisabled"},system:{selector:"pref-animation-system",label:"systemSettings"},"no-preference":{selector:"pref-animation-no-preference",label:"animationEnabled"}},this.isMode=t=>null!=t&&{}.hasOwnProperty.call(this.animation,t),this.warnInvalidMode=t=>{console.warn(`mds-pref-animation: ignoring the invalid mode "${t}", use one of: ${Object.keys(this.animation).join(", ")}`)},this.syncAnimation=t=>{void 0!==t&&t!==this.mode&&(this.syncingFromStore=!0,this.mode=t,this.appliedMode=t,this.syncingFromStore=!1)},this.setAnimation=t=>{if(t===this.appliedMode)return void(this.mode=t);const e=void 0===this.appliedMode;if(this.appliedMode=t,this.mode=t,localStorage.setItem(this.localStorageAlias,this.mode),"undefined"!=typeof document){const t=document.querySelector("html");for(const e in this.animation)({}).hasOwnProperty.call(this.animation,e)&&(null==t||t.classList.remove(this.animation[e].selector));null==t||t.classList.add(this.animation[this.mode].selector),null==t||t.style.setProperty(this.customPropertyAlias,this.mode)}r.state.animation=t,e||this.prefChangeEvent.emit({preference:"animation"})},this.handleModeClick=t=>()=>{this.setAnimation(t)}}componentWillLoad(){var t;null==this.mode||this.isMode(this.mode)||this.warnInvalidMode(this.mode);const e=localStorage.getItem(this.localStorageAlias);null===e||this.isMode(e)||localStorage.removeItem(this.localStorageAlias),this.setAnimation(null!==(t=[this.mode,e].find(this.isMode))&&void 0!==t?t:this.defaultMode)}connectedCallback(){this.unsubscribeStore=r.onChange("animation",this.syncAnimation)}disconnectedCallback(){var t;null===(t=this.unsubscribeStore)||void 0===t||t.call(this)}modeChanged(t){if(!this.syncingFromStore)return this.isMode(t)?void this.setAnimation(t):(null!=t&&this.warnInvalidMode(t),void this.syncAnimation(r.state.animation))}render(){var t;return i(s,{key:"276d5f317595e88054db0a9ec69fa1095cbbef91","pref-contrast":r.state.contrast},i("mds-text",{key:"cb56097bc048b24883184aefe88a49fb712a373c",class:"info",typography:"caption"},i("b",{key:"35b7f4c98ed90859fe5e31835949a73ab5382419"},this.t.get("label"))," ",this.t.get(this.animation[null!==(t=this.mode)&&void 0!==t?t:this.defaultMode].label)),i("mds-tab",{key:"b107564f88693d770e13159cec20e2542bfd6ebf",fill:!0,size:this.size},i("mds-tab-item",{key:"1885f9d746e40500be35c1ce061d92ce2b84f808",selected:"reduce"===this.mode,onClick:this.handleModeClick("reduce"),class:"item item--reduce",icon:a,title:this.t.get(this.animation.reduce.label)}),i("mds-tab-item",{key:"d45fe7770fdbe0d8bdd3c0a05f18e885c03dbe74",selected:"system"===this.mode,onClick:this.handleModeClick("system"),class:"item item--system",icon:n,title:this.t.get(this.animation.system.label)}),i("mds-tab-item",{key:"70c2ad0603eb95517ef509897f70277a5e41dd94",selected:"no-preference"===this.mode,onClick:this.handleModeClick("no-preference"),class:"item item--no-preference",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 2c-2.71 0-5.05 1.54-6.22 3.78a7.062 7.062 0 0 0-3 3A7.014 7.014 0 0 0 2 15c0 3.87 3.13 7 7 7c2.71 0 5.05-1.54 6.22-3.78a7.062 7.062 0 0 0 3-3A7.014 7.014 0 0 0 22 9c0-3.87-3.13-7-7-7zM9 20a5.002 5.002 0 0 1-4-8c0 3.87 3.13 7 7 7c-.84.63-1.88 1-3 1zm3-3a5.002 5.002 0 0 1-4-8c0 3.86 3.13 6.99 7 7c-.84.63-1.88 1-3 1zm4.7-3.3c-.53.19-1.1.3-1.7.3c-2.76 0-5-2.24-5-5c0-.6.11-1.17.3-1.7c.53-.19 1.1-.3 1.7-.3c2.76 0 5 2.24 5 5c0 .6-.11 1.17-.3 1.7zM19 12c0-3.86-3.13-6.99-7-7a5.002 5.002 0 0 1 7 7z"/></svg>',title:this.t.get(this.animation["no-preference"].label)})))}static get watchers(){return{mode:[{modeChanged:0}]}}};c.style="@layer reset,vendor,theme,base,components,utilities;:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host(:not(:is([hydrated],.hydrated))),:is(mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--disabled,.item--enabled,.item--system{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([pref-contrast=more]) .item{--mds-tab-item-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item{--mds-tab-item-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}";export{c as mds_pref_animation}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
System.register(["./p-CmzGV0XD.system.js","./p-D8596ytD.system.js","./p-sm_-_oFY.system.js","./p-nFkaC8l_.system.js"],(function(t){"use strict";var i,n,a,o,e,s,r,d,f,c,u,m,l;return{setters:[function(t){i=t.r;n=t.h;a=t.e;o=t.g},function(t){e=t.p},function(t){s=t.r;r=t.s;d=t.h;f=t.a},function(t){c=t.o;u=t.s;m=t.c;l=t.b}],execute:function(){var h=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-notification-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-dot-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-notification-dot-padding:6px;--mds-notification-min-width:var(--mds-notification-size,20px);--mds-notification-ring-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-ring-size:2px;--mds-notification-size:20px;--mds-notification-transition-duration:.2s;--private-notification-transition-duration:var(--mds-notification-transition-duration,.2s);--mds-notification-dot-transition-duration:var(--duration-300,.3s);--private-notification-dot-transition-duration:var(--mds-notification-dot-transition-duration);--mds-notification-transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));--mds-notification-translate-offset-x:-1.75;--mds-notification-translate-offset-y:-2;--mds-notification-translate:translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)));align-items:center;border-radius:var(--magma-radius-full,var(--radius-full,1000px));bottom:100%;color:var(--mds-notification-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));display:inline-flex;height:var(--mds-notification-size,20px);justify-content:flex-end;min-width:max-content;pointer-events:none;width:var(--mds-notification-size,20px);z-index:10}:host([strategy=absolute]),:host([strategy=fixed]){opacity:0;right:100%;transform:var(--mds-notification-translate,translate(-11.42857px,-10px)) scale(0);transform-origin:calc(100% - var(--mds-notification-size,20px)/2) 50%;transition-duration:var(--private-notification-transition-duration);transition-property:color,height,opacity,transform,width;transition-timing-function:var(--mds-notification-transition-timing-function)}:host([strategy=absolute]){position:absolute}:host([strategy=fixed]){position:fixed}.dot{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-notification-dot-background,rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));box-shadow:0 0 0 var(--mds-notification-ring-size,2px) var(--mds-notification-ring-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));box-sizing:border-box;display:inline-flex;justify-content:center;line-height:var(--mds-notification-size,20px);min-height:var(--mds-notification-size,20px);min-width:var(--mds-notification-min-width,20px);padding-left:var(--mds-notification-dot-padding,6px);padding-right:var(--mds-notification-dot-padding,6px);position:static;transition-duration:var(--private-notification-dot-transition-duration);transition-property:background-color,color,box-shadow;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));white-space:nowrap}:host([strategy=absolute]) .dot,:host([strategy=fixed]) .dot{position:absolute}.spacer{box-sizing:border-box;display:inline-flex;height:var(--mds-notification-size,20px);width:var(--mds-notification-min-width,20px)}:host([dismissed]:not([dismissed=false])[strategy=absolute]),:host([dismissed]:not([dismissed=false])[strategy=fixed]){--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));opacity:1;transform:var(--mds-notification-translate,translate(-11.42857px,-10px)) scale(0);transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}:host([strategy=absolute]:not([dismissed])),:host([strategy=absolute][dismissed=false]),:host([strategy=fixed]:not([dismissed])),:host([strategy=fixed][dismissed=false]){--tw-ease:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));opacity:1;transform:var(--mds-notification-translate,translate(-11.42857px,-10px)) scale(1);transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1))}:host(:not([target])),:host([strategy=disabled]){opacity:1;position:static;transform:scale(1);transform-origin:unset;transition-duration:0s}:host(:not([target])) .dot,:host([strategy=disabled]) .dot{position:static}:host([dismissed]:not([dismissed=false]):not([target])),:host([dismissed]:not([dismissed=false])[strategy=disabled]){display:none}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-notification-transition-duration:0s;--private-notification-dot-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-notification-transition-duration:0s;--private-notification-dot-transition-duration:0s}}'};var p=t("mds_notification",/** @class */function(){function t(t){var n=this;i(this,t);this.describing=false;
|
|
2
|
+
/**
|
|
3
|
+
* Specifies the number of notifications to display. At 0 the badge shows no number, as an
|
|
4
|
+
* empty dot: it is not hidden, `dismissed` takes it off its target
|
|
5
|
+
*/this.value=0;
|
|
6
|
+
/**
|
|
7
|
+
* Specifies if the notification is dismissed
|
|
8
|
+
*/this.dismissed=false;
|
|
9
|
+
/**
|
|
10
|
+
* Specifies the position strategy of the notification
|
|
11
|
+
*/this.strategy="fixed";this.placement="right-start";this.updatePosition=function(){var t=new Array;var i=n.strategy==="disabled"?"absolute":"fixed";t.push(c(0));t.push(u({padding:0}));m(n.caller,n.host,{middleware:t,placement:n.placement,strategy:i}).then((function(t){var i=t.x,a=t.y;Object.assign(n.host.style,{left:"".concat(i,"px"),top:"".concat(a,"px")})}))};this.clean=function(t){var i;
|
|
12
|
+
// a removed attribute leaves null, which counts as no value and no maximum
|
|
13
|
+
if((t!==null&&t!==void 0?t:0)===0||isNaN(t))return"";var a=(i=n.max)!==null&&i!==void 0?i:0;if(a!==0&&!Number.isNaN(a)&&t>a){return"+".concat(Number(a).toLocaleString())}return Number(t).toLocaleString()};
|
|
14
|
+
/**
|
|
15
|
+
* The count reaches a screen reader through the element it sits on, as a description of it
|
|
16
|
+
* ("Messages, button, 3"): the badge itself is then hidden, or it would be read again wherever
|
|
17
|
+
* it sits in the page. A dismissed badge, a plain dot and a caller in another tree (an IDREF
|
|
18
|
+
* does not cross a shadow boundary) describe nothing. Ids already in the caller's
|
|
19
|
+
* `aria-describedby`, a tooltip's among them, stay. Without a target the count is plain text,
|
|
20
|
+
* read with whatever contains it: the name of the mds-button it sits in.
|
|
21
|
+
*/this.describeCaller=function(t){var i=n.host.id;if(n.describedCaller&&n.describedCaller!==t&&i){s(n.describedCaller,"aria-describedby",i)}var a=t!==undefined&&!n.dismissed&&n.clean(n.value)!==""&&t.getRootNode()===n.host.getRootNode();
|
|
22
|
+
// the state is set once, to its final value: a render runs after every change of it, and
|
|
23
|
+
// this runs after every render
|
|
24
|
+
n.describing=a;if(!a){if(t&&i)s(t,"aria-describedby",i);n.describedCaller=undefined;return}var o=r(n.host,"id",d("mds-notification"));f(t,"aria-describedby",o);n.describedCaller=t};
|
|
25
|
+
/**
|
|
26
|
+
* floating-ui keeps the badge on its target through listeners on the scroll parents and an
|
|
27
|
+
* observer of their size: they are started once, after a short wait for the target's layout,
|
|
28
|
+
* and stopped with the function autoUpdate returns. That function used to be replaced by an
|
|
29
|
+
* empty one instead of being called, so every badge ever removed kept its listeners.
|
|
30
|
+
*/this.startAutoUpdate=function(){var t;if(n.strategy==="disabled"||((t=n.target)!==null&&t!==void 0?t:"")===""||!n.caller)return;if(n.cleanupAutoUpdate||n.autoUpdateTimer!==undefined)return;n.autoUpdateTimer=setTimeout((function(){n.autoUpdateTimer=undefined;n.cleanupAutoUpdate=l(n.caller,n.host,n.updatePosition)}),100)};this.stopAutoUpdate=function(){var t;clearTimeout(n.autoUpdateTimer);n.autoUpdateTimer=undefined;(t=n.cleanupAutoUpdate)===null||t===void 0?void 0:t.call(n);n.cleanupAutoUpdate=undefined}}t.prototype.componentDidRender=function(){var t;if(((t=this.target)!==null&&t!==void 0?t:"")===""){this.strategy="disabled";return}var i=document.querySelector(this.target);if(i==null){
|
|
31
|
+
// the target may legitimately be absent (e.g. during SSR the document
|
|
32
|
+
// only contains the component subtree being serialized)
|
|
33
|
+
console.warn("mds-notification: no valid target found: ".concat(this.target));this.strategy="disabled";return}this.caller=i;this.describeCaller(i)};t.prototype.componentDidLoad=function(){if(this.strategy==="disabled"){return}this.startAutoUpdate()};
|
|
34
|
+
// a badge moved in the page is disconnected and connected again, without loading again
|
|
35
|
+
t.prototype.connectedCallback=function(){this.startAutoUpdate()};t.prototype.disconnectedCallback=function(){this.stopAutoUpdate();this.describeCaller(undefined)};t.prototype.strategyHandler=function(t){if(t==="disabled"){this.stopAutoUpdate()}};t.prototype.render=function(){return n(a,{key:"a9e2d0a288c4b30a84389cf94fdad02e9795481d","aria-hidden":this.describing?"true":undefined,"pref-animation":e.state.animation},n("mds-text",{key:"3ad8f42e7772e356011f9763c0f99d2e0f0809ce",typography:"caption",class:"dot"},this.clean(this.value)))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{strategy:[{strategyHandler:0}]}},enumerable:false,configurable:true});return t}());p.style=h()}}}));
|