@maggioli-design-system/magma 2.1.0 → 2.3.0
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 +26 -10
- package/CHANGELOG.md +475 -0
- package/README.md +5 -2
- package/agents/assets.md +231 -28
- package/agents/color.md +5 -3
- package/agents/components.md +3 -3
- package/agents/install.md +25 -4
- package/agents/reporting.md +127 -0
- package/agents/theming.md +15 -0
- package/dist/cjs/_commonjsHelpers-CFO10eej.js +7 -0
- package/dist/cjs/{floating-controller-uOCBLTk2.js → floating-controller-D7Ekjocg.js} +18 -4
- package/dist/cjs/{floating-ui.dom-DflSHZIo.js → floating-ui.dom-EMHL7uyZ.js} +146 -94
- package/dist/cjs/icon-MMHcqbgv.js +20 -0
- package/dist/cjs/index-UmmmCMIG.js +40 -40
- package/dist/cjs/index.cjs.js +62 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +2 -2
- package/dist/cjs/mds-badge.cjs.entry.js +1 -1
- package/dist/cjs/mds-banner_3.cjs.entry.js +3 -3
- package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +30 -2
- package/dist/cjs/mds-button_3.cjs.entry.js +125 -58
- package/dist/cjs/mds-calendar_2.cjs.entry.js +59 -6
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +1 -1
- package/dist/cjs/mds-details.cjs.entry.js +1 -1
- package/dist/cjs/mds-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/mds-emoji.cjs.entry.js +1 -1
- package/dist/cjs/mds-entity.cjs.entry.js +1 -1
- package/dist/cjs/mds-file-preview.cjs.entry.js +1 -1
- package/dist/cjs/mds-file.cjs.entry.js +29 -7520
- package/dist/cjs/mds-filter-item.cjs.entry.js +89 -3
- package/dist/cjs/mds-filter.cjs.entry.js +113 -19
- package/dist/cjs/mds-header-bar.cjs.entry.js +29 -2
- package/dist/cjs/mds-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +38 -2
- package/dist/cjs/mds-hr.cjs.entry.js +1 -1
- package/dist/cjs/mds-img.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +16 -2
- package/dist/cjs/mds-input-date.cjs.entry.js +36 -4
- package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-select.cjs.entry.js +32 -5
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +21 -8
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-upload.cjs.entry.js +1 -1
- package/dist/cjs/mds-input.cjs.entry.js +12 -3
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +1 -1
- package/dist/cjs/mds-keyboard.cjs.entry.js +1 -1
- package/dist/cjs/mds-kpi-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-label.cjs.entry.js +1 -1
- package/dist/cjs/mds-list-item.cjs.entry.js +2 -3
- package/dist/cjs/mds-mention.cjs.entry.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +32 -5
- package/dist/cjs/mds-note.cjs.entry.js +1 -1
- package/dist/cjs/mds-notification.cjs.entry.js +2 -2
- package/dist/cjs/mds-paginator-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-paginator.cjs.entry.js +1 -1
- package/dist/cjs/mds-policy-ai.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-animation.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-language.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-mode.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +4 -3
- package/dist/cjs/mds-pref-theme.cjs.entry.js +29 -2
- package/dist/cjs/mds-pref.cjs.entry.js +24 -53
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-features.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-list.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-progress_2.cjs.entry.js +4 -4
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-push-notification.cjs.entry.js +2 -2
- package/dist/cjs/mds-quote.cjs.entry.js +2 -2
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-radial-menu.cjs.entry.js +40 -4
- package/dist/cjs/mds-separator.cjs.entry.js +2 -2
- package/dist/cjs/mds-status-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab_2.cjs.entry.js +43 -8
- package/dist/cjs/mds-table-body.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +116 -77
- package/dist/cjs/mds-table-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-row.cjs.entry.js +22 -16
- package/dist/cjs/mds-table.cjs.entry.js +9 -2
- package/dist/cjs/mds-text.cjs.entry.js +37 -27
- package/dist/cjs/mds-toast.cjs.entry.js +2 -2
- package/dist/cjs/mds-tooltip.cjs.entry.js +17 -4
- package/dist/cjs/mds-tree-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-tree.cjs.entry.js +2 -2
- package/dist/cjs/mds-url-view.cjs.entry.js +2 -2
- package/dist/cjs/mds-usage.cjs.entry.js +23 -4
- package/dist/cjs/mds-video-wall.cjs.entry.js +2 -2
- package/dist/cjs/mds-zero.cjs.entry.js +2 -2
- package/dist/cjs/string-RoXIuD3q.js +7 -0
- package/dist/collection/common/floating-controller.js +17 -3
- package/dist/collection/common/hash.js +15 -0
- package/dist/collection/common/navigation.js +60 -0
- package/dist/collection/common/string.js +3 -1
- package/dist/collection/common/yugop/random-text.js +5 -0
- package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion/documentation.json +1 -1
- package/dist/collection/components/mds-accordion/mds-accordion.css +5 -5
- package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-item/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +11 -11
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +2 -2
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +6 -6
- 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-author/mds-author.css +2 -1
- package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar/documentation.json +2 -2
- package/dist/collection/components/mds-avatar/mds-avatar.css +18 -17
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack/documentation.json +1 -1
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +3 -3
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +1 -1
- package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.css +6 -6
- package/dist/collection/components/mds-badge/AGENTS.md +1 -1
- package/dist/collection/components/mds-badge/documentation.json +1 -1
- package/dist/collection/components/mds-badge/mds-badge.css +13 -13
- package/dist/collection/components/mds-banner/AGENTS.md +1 -1
- package/dist/collection/components/mds-banner/documentation.json +1 -1
- package/dist/collection/components/mds-banner/mds-banner.css +56 -56
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-benchmark-bar/documentation.json +1 -1
- package/dist/collection/components/mds-bibliography/AGENTS.md +1 -1
- package/dist/collection/components/mds-bibliography/documentation.json +2 -2
- package/dist/collection/components/mds-bibliography/mds-bibliography.css +8 -6
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb/documentation.json +1 -1
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +6 -6
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +1 -1
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +14 -13
- package/dist/collection/components/mds-button/AGENTS.md +5 -5
- package/dist/collection/components/mds-button/antipattern.md +20 -2
- package/dist/collection/components/mds-button/documentation.json +5 -5
- package/dist/collection/components/mds-button/mds-button.css +239 -417
- package/dist/collection/components/mds-button/mds-button.js +120 -38
- package/dist/collection/components/mds-button/pattern.md +34 -1
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +2 -2
- package/dist/collection/components/mds-button-dropdown/documentation.json +2 -2
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +10 -10
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +12 -1
- package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
- package/dist/collection/components/mds-button-group/documentation.json +1 -1
- package/dist/collection/components/mds-calendar/AGENTS.md +2 -2
- package/dist/collection/components/mds-calendar/documentation.json +2 -2
- package/dist/collection/components/mds-calendar/mds-calendar.css +5 -5
- package/dist/collection/components/mds-calendar/mds-calendar.js +17 -4
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-calendar-cell/documentation.json +1 -1
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +58 -58
- package/dist/collection/components/mds-card/AGENTS.md +1 -1
- package/dist/collection/components/mds-card/documentation.json +1 -1
- package/dist/collection/components/mds-card/mds-card.css +2 -2
- package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-content/documentation.json +1 -1
- package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-footer/documentation.json +1 -1
- package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-header/documentation.json +1 -1
- package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-media/documentation.json +1 -1
- package/dist/collection/components/mds-chip/AGENTS.md +1 -1
- package/dist/collection/components/mds-chip/documentation.json +1 -1
- package/dist/collection/components/mds-chip/mds-chip.css +90 -90
- package/dist/collection/components/mds-details/AGENTS.md +1 -1
- package/dist/collection/components/mds-details/documentation.json +1 -1
- package/dist/collection/components/mds-details/mds-details.css +6 -6
- package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
- package/dist/collection/components/mds-dropdown/documentation.json +2 -2
- package/dist/collection/components/mds-dropdown/mds-dropdown.css +26 -26
- package/dist/collection/components/mds-emoji/AGENTS.md +2 -2
- package/dist/collection/components/mds-emoji/documentation.json +3 -3
- package/dist/collection/components/mds-emoji/mds-emoji.css +5 -5
- package/dist/collection/components/mds-entity/AGENTS.md +1 -1
- package/dist/collection/components/mds-entity/documentation.json +1 -1
- package/dist/collection/components/mds-entity/mds-entity.css +8 -8
- package/dist/collection/components/mds-file/AGENTS.md +2 -2
- package/dist/collection/components/mds-file/documentation.json +3 -3
- package/dist/collection/components/mds-file/mds-file.css +13 -13
- package/dist/collection/components/mds-file/mds-file.js +15 -9
- package/dist/collection/components/mds-file/pattern.md +1 -1
- package/dist/collection/components/mds-file-preview/AGENTS.md +1 -1
- package/dist/collection/components/mds-file-preview/documentation.json +1 -1
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +21 -21
- package/dist/collection/components/mds-filter/AGENTS.md +5 -3
- package/dist/collection/components/mds-filter/documentation.json +3 -3
- package/dist/collection/components/mds-filter/mds-filter.css +16 -16
- package/dist/collection/components/mds-filter/mds-filter.js +97 -19
- package/dist/collection/components/mds-filter/pattern.md +34 -4
- package/dist/collection/components/mds-filter-item/AGENTS.md +9 -8
- package/dist/collection/components/mds-filter-item/documentation.json +4 -4
- package/dist/collection/components/mds-filter-item/mds-filter-item.css +27 -17
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +65 -3
- package/dist/collection/components/mds-filter-item/pattern.md +5 -5
- package/dist/collection/components/mds-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-header/documentation.json +1 -1
- package/dist/collection/components/mds-header/mds-header.css +21 -13
- package/dist/collection/components/mds-header-bar/AGENTS.md +2 -2
- package/dist/collection/components/mds-header-bar/documentation.json +2 -2
- package/dist/collection/components/mds-header-bar/mds-header-bar.css +5 -5
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +12 -1
- package/dist/collection/components/mds-help/AGENTS.md +1 -1
- package/dist/collection/components/mds-help/documentation.json +2 -2
- package/dist/collection/components/mds-help/mds-help.css +1 -1
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +2 -2
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +2 -2
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +10 -10
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +12 -1
- package/dist/collection/components/mds-hr/AGENTS.md +1 -1
- package/dist/collection/components/mds-hr/documentation.json +1 -1
- package/dist/collection/components/mds-hr/mds-hr.css +1 -1
- package/dist/collection/components/mds-icon/AGENTS.md +1 -1
- package/dist/collection/components/mds-icon/documentation.json +2 -2
- package/dist/collection/components/mds-img/AGENTS.md +1 -1
- package/dist/collection/components/mds-img/documentation.json +1 -1
- package/dist/collection/components/mds-img/mds-img.css +6 -6
- package/dist/collection/components/mds-input/AGENTS.md +3 -1
- package/dist/collection/components/mds-input/documentation.json +52 -4
- package/dist/collection/components/mds-input/mds-input.css +133 -62
- package/dist/collection/components/mds-input/mds-input.js +38 -2
- package/dist/collection/components/mds-input/pattern.md +15 -0
- package/dist/collection/components/mds-input-date/AGENTS.md +5 -2
- package/dist/collection/components/mds-input-date/documentation.json +50 -2
- package/dist/collection/components/mds-input-date/mds-input-date.css +52 -26
- package/dist/collection/components/mds-input-date/mds-input-date.js +46 -2
- package/dist/collection/components/mds-input-date-range/AGENTS.md +4 -2
- package/dist/collection/components/mds-input-date-range/documentation.json +50 -2
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +51 -25
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +34 -1
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.css +18 -18
- package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-field/documentation.json +1 -1
- package/dist/collection/components/mds-input-field/mds-input-field.css +7 -7
- package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-otp/documentation.json +1 -1
- package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-range/documentation.json +1 -1
- package/dist/collection/components/mds-input-range/mds-input-range.css +13 -12
- package/dist/collection/components/mds-input-select/AGENTS.md +7 -4
- package/dist/collection/components/mds-input-select/documentation.json +58 -7
- package/dist/collection/components/mds-input-select/mds-input-select.css +103 -29
- package/dist/collection/components/mds-input-select/mds-input-select.js +61 -7
- package/dist/collection/components/mds-input-select/pattern.md +3 -3
- package/dist/collection/components/mds-input-switch/AGENTS.md +2 -2
- package/dist/collection/components/mds-input-switch/documentation.json +2 -2
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +86 -65
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +19 -6
- package/dist/collection/components/mds-input-tip/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip/mds-input-tip.css +1 -1
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +21 -20
- package/dist/collection/components/mds-input-upload/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-upload/documentation.json +1 -1
- package/dist/collection/components/mds-input-upload/mds-input-upload.css +13 -12
- package/dist/collection/components/mds-keyboard/AGENTS.md +1 -1
- package/dist/collection/components/mds-keyboard/documentation.json +1 -1
- package/dist/collection/components/mds-keyboard/mds-keyboard.css +4 -3
- package/dist/collection/components/mds-keyboard-key/AGENTS.md +1 -1
- package/dist/collection/components/mds-keyboard-key/documentation.json +1 -1
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +2 -1
- package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi/documentation.json +1 -1
- package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi-item/documentation.json +1 -1
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +13 -13
- package/dist/collection/components/mds-label/AGENTS.md +1 -1
- package/dist/collection/components/mds-label/documentation.json +1 -1
- package/dist/collection/components/mds-label/mds-label.css +12 -12
- package/dist/collection/components/mds-list/AGENTS.md +2 -2
- package/dist/collection/components/mds-list/documentation.json +2 -2
- package/dist/collection/components/mds-list-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-list-item/documentation.json +3 -3
- package/dist/collection/components/mds-list-item/mds-list-item.css +0 -18
- package/dist/collection/components/mds-list-item/mds-list-item.js +1 -2
- package/dist/collection/components/mds-list-item/pattern.md +11 -0
- package/dist/collection/components/mds-mention/AGENTS.md +1 -1
- package/dist/collection/components/mds-mention/documentation.json +1 -1
- package/dist/collection/components/mds-mention/mds-mention.css +2 -2
- package/dist/collection/components/mds-modal/AGENTS.md +2 -2
- package/dist/collection/components/mds-modal/documentation.json +2 -2
- package/dist/collection/components/mds-modal/mds-modal.css +5 -5
- package/dist/collection/components/mds-modal/mds-modal.js +14 -3
- package/dist/collection/components/mds-note/AGENTS.md +1 -1
- package/dist/collection/components/mds-note/documentation.json +1 -1
- package/dist/collection/components/mds-note/mds-note.css +3 -3
- package/dist/collection/components/mds-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-notification/documentation.json +2 -2
- package/dist/collection/components/mds-notification/mds-notification.css +4 -4
- package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
- package/dist/collection/components/mds-paginator/documentation.json +1 -1
- package/dist/collection/components/mds-paginator/mds-paginator.css +6 -6
- package/dist/collection/components/mds-paginator-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-paginator-item/documentation.json +1 -1
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +31 -30
- package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
- package/dist/collection/components/mds-policy-ai/documentation.json +1 -1
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +8 -8
- package/dist/collection/components/mds-pref/AGENTS.md +2 -2
- package/dist/collection/components/mds-pref/documentation.json +14 -3
- package/dist/collection/components/mds-pref/mds-pref.js +39 -53
- package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +1 -1
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.css +7 -7
- package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-consumption/documentation.json +1 -1
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.css +4 -4
- package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-contrast/documentation.json +1 -1
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.css +5 -5
- package/dist/collection/components/mds-pref-language/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref-language/documentation.json +2 -2
- package/dist/collection/components/mds-pref-language/mds-pref-language.css +10 -2
- package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-language-item/documentation.json +1 -1
- package/dist/collection/components/mds-pref-mode/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref-mode/documentation.json +2 -2
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +5 -5
- package/dist/collection/components/mds-pref-theme/AGENTS.md +4 -3
- package/dist/collection/components/mds-pref-theme/documentation.json +2 -2
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.css +10 -2
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +29 -2
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-theme-item/documentation.json +1 -1
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +10 -9
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +3 -2
- package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table/documentation.json +1 -1
- package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
- package/dist/collection/components/mds-price-table-features/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features/documentation.json +1 -1
- 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 +1 -1
- package/dist/collection/components/mds-price-table-features-cell/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +11 -11
- 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 +1 -1
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +12 -12
- 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 +1 -1
- 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 +1 -1
- package/dist/collection/components/mds-price-table-list/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +8 -8
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +1 -1
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list-item/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +2 -2
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
- package/dist/collection/components/mds-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-progress/documentation.json +1 -1
- package/dist/collection/components/mds-progress/mds-progress.css +20 -20
- package/dist/collection/components/mds-progress/mds-progress.js +1 -1
- package/dist/collection/components/mds-push-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification/documentation.json +1 -1
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +1 -1
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification-item/documentation.json +1 -1
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +16 -16
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +2 -2
- package/dist/collection/components/mds-quote/AGENTS.md +1 -1
- package/dist/collection/components/mds-quote/documentation.json +1 -1
- package/dist/collection/components/mds-quote/mds-quote.css +6 -4
- package/dist/collection/components/mds-quote/mds-quote.js +1 -1
- package/dist/collection/components/mds-radial-menu/AGENTS.md +2 -2
- package/dist/collection/components/mds-radial-menu/documentation.json +2 -2
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +5 -3
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +12 -1
- package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-menu-item/documentation.json +1 -1
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
- package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +15 -15
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +1 -1
- package/dist/collection/components/mds-separator/AGENTS.md +1 -1
- package/dist/collection/components/mds-separator/documentation.json +1 -1
- package/dist/collection/components/mds-separator/mds-separator.css +2 -2
- package/dist/collection/components/mds-separator/mds-separator.js +1 -1
- package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
- package/dist/collection/components/mds-spinner/documentation.json +1 -1
- package/dist/collection/components/mds-spinner/mds-spinner.css +3 -3
- package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
- package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-status-bar/documentation.json +1 -1
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +7 -6
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +1 -1
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-stepper-bar/documentation.json +1 -1
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +6 -6
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +1 -1
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +1 -1
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +15 -15
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
- package/dist/collection/components/mds-tab/AGENTS.md +6 -5
- package/dist/collection/components/mds-tab/antipattern.md +27 -0
- package/dist/collection/components/mds-tab/documentation.json +6 -6
- package/dist/collection/components/mds-tab/mds-tab.css +61 -24
- package/dist/collection/components/mds-tab/mds-tab.js +34 -6
- package/dist/collection/components/mds-tab/pattern.md +33 -1
- package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +1 -1
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +1 -1
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar-item/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +14 -14
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +1 -1
- package/dist/collection/components/mds-tab-item/AGENTS.md +5 -4
- package/dist/collection/components/mds-tab-item/antipattern.md +22 -1
- package/dist/collection/components/mds-tab-item/documentation.json +5 -5
- package/dist/collection/components/mds-tab-item/mds-tab-item.css +2 -2
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +15 -3
- package/dist/collection/components/mds-tab-item/pattern.md +25 -7
- package/dist/collection/components/mds-table/AGENTS.md +4 -2
- package/dist/collection/components/mds-table/documentation.json +48 -4
- package/dist/collection/components/mds-table/mds-table.css +33 -22
- package/dist/collection/components/mds-table/mds-table.js +35 -1
- package/dist/collection/components/mds-table/pattern.md +30 -0
- package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-body/documentation.json +1 -1
- package/dist/collection/components/mds-table-body/mds-table-body.css +8 -8
- package/dist/collection/components/mds-table-body/mds-table-body.js +1 -1
- package/dist/collection/components/mds-table-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-cell/documentation.json +1 -1
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
- package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-footer/documentation.json +1 -1
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +1 -1
- package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-header/documentation.json +1 -1
- package/dist/collection/components/mds-table-header/mds-table-header.js +1 -1
- package/dist/collection/components/mds-table-header-cell/AGENTS.md +14 -5
- package/dist/collection/components/mds-table-header-cell/antipattern.md +17 -10
- package/dist/collection/components/mds-table-header-cell/documentation.json +54 -6
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +159 -82
- package/dist/collection/components/mds-table-header-cell/meta/event-detail.js +1 -0
- package/dist/collection/components/mds-table-header-cell/pattern.md +27 -6
- package/dist/collection/components/mds-table-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-row/documentation.json +1 -1
- package/dist/collection/components/mds-table-row/mds-table-row.css +12 -12
- package/dist/collection/components/mds-table-row/mds-table-row.js +22 -16
- package/dist/collection/components/mds-text/AGENTS.md +3 -3
- package/dist/collection/components/mds-text/documentation.json +2 -2
- package/dist/collection/components/mds-text/mds-text.css +3 -3
- package/dist/collection/components/mds-text/mds-text.js +31 -26
- package/dist/collection/components/mds-toast/AGENTS.md +1 -1
- package/dist/collection/components/mds-toast/documentation.json +1 -1
- package/dist/collection/components/mds-toast/mds-toast.css +18 -18
- package/dist/collection/components/mds-toast/mds-toast.js +1 -1
- package/dist/collection/components/mds-tooltip/AGENTS.md +4 -2
- package/dist/collection/components/mds-tooltip/antipattern.md +14 -0
- package/dist/collection/components/mds-tooltip/documentation.json +46 -5
- package/dist/collection/components/mds-tooltip/mds-tooltip.css +10 -10
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +41 -1
- package/dist/collection/components/mds-tooltip/pattern.md +9 -0
- package/dist/collection/components/mds-tree/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree/documentation.json +1 -1
- package/dist/collection/components/mds-tree/mds-tree.css +13 -13
- package/dist/collection/components/mds-tree/mds-tree.js +1 -1
- package/dist/collection/components/mds-tree-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree-item/documentation.json +1 -1
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +1 -1
- package/dist/collection/components/mds-url-view/AGENTS.md +1 -1
- package/dist/collection/components/mds-url-view/documentation.json +1 -1
- package/dist/collection/components/mds-url-view/mds-url-view.css +7 -7
- package/dist/collection/components/mds-url-view/mds-url-view.js +1 -1
- package/dist/collection/components/mds-usage/AGENTS.md +5 -3
- package/dist/collection/components/mds-usage/antipattern.md +17 -1
- package/dist/collection/components/mds-usage/documentation.json +31 -5
- package/dist/collection/components/mds-usage/mds-usage.css +6 -6
- package/dist/collection/components/mds-usage/mds-usage.js +26 -4
- package/dist/collection/components/mds-usage/meta/variants.js +14 -18
- package/dist/collection/components/mds-usage/pattern.md +10 -0
- package/dist/collection/components/mds-video-wall/AGENTS.md +1 -1
- package/dist/collection/components/mds-video-wall/documentation.json +1 -1
- package/dist/collection/components/mds-video-wall/mds-video-wall.css +3 -3
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +1 -1
- package/dist/collection/components/mds-zero/AGENTS.md +1 -1
- package/dist/collection/components/mds-zero/documentation.json +1 -1
- package/dist/collection/components/mds-zero/mds-zero.css +3 -3
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/collection/index.js +11 -4
- package/dist/collection/type/floating-ui.js +1 -0
- package/dist/collection/type/input.js +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-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.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-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 +2 -2
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +1 -18
- 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-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-label.js +1 -1
- package/dist/components/mds-list-item.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.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--5KZXaZp.js +1 -0
- package/dist/components/p--OCrgFeE.js +1 -0
- package/dist/components/p-6LGfUDQ4.js +1 -0
- package/dist/components/p-6pgPWpGI.js +1 -0
- package/dist/components/p-B8BWxSho.js +1 -0
- package/dist/components/p-B9uIL9KO.js +1 -0
- package/dist/components/p-BBDliSai.js +1 -0
- package/dist/components/p-BCwcnHFh.js +1 -0
- package/dist/components/p-BRf-u585.js +1 -0
- package/dist/components/p-BSeokAdy.js +1 -0
- package/dist/components/p-BXUJgu8l.js +1 -0
- package/dist/components/p-BXYUyw7p.js +1 -0
- package/dist/components/{p-s2Gu6hY7.js → p-BcUY-9n7.js} +1 -1
- package/dist/components/p-BfgJ-hHQ.js +1 -0
- package/dist/components/{p-x_c_51aL.js → p-CIfGjW_Z.js} +1 -1
- package/dist/components/p-CMp9rP7L.js +1 -0
- package/dist/components/p-CUmJoPAI.js +1 -0
- package/dist/components/p-CZjHixVB.js +1 -0
- package/dist/components/p-Ck0q_n7I.js +1 -0
- package/dist/components/p-CrCa_6a1.js +8 -0
- package/dist/components/p-Cv7lqHIc.js +1 -0
- package/dist/components/p-Cw6_ooFx.js +1 -0
- package/dist/components/p-DGYRngAi.js +1 -0
- package/dist/components/p-DHu8X7zF.js +1 -0
- package/dist/components/{p-BW24ByN-.js → p-DLCcW1Q5.js} +1 -1
- package/dist/components/p-DOzcuSrZ.js +1 -0
- package/dist/components/p-DZPHWQtD.js +1 -0
- package/dist/components/p-DlRjt7nE.js +1 -0
- package/dist/components/p-HSM_x8fD.js +1 -0
- package/dist/components/p-JMPfVnGv.js +1 -0
- package/dist/components/p-ay5NzZ_x.js +1 -0
- package/dist/components/p-lNY_3s6S.js +1 -0
- package/dist/components/p-qYRtWYC8.js +1 -0
- package/dist/documentation.json +469 -84
- package/dist/esm/_commonjsHelpers-B85MJLTf.js +5 -0
- package/dist/esm/{floating-controller-BTYkH_Ih.js → floating-controller-D5-8D9mH.js} +18 -4
- package/dist/esm/{floating-ui.dom-CHAGzQT-.js → floating-ui.dom-JMPfVnGv.js} +146 -94
- package/dist/esm/icon-pNJmnrhq.js +16 -0
- package/dist/esm/index-BxPbQB28.js +40 -40
- package/dist/esm/index.js +62 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer.entry.js +1 -1
- package/dist/esm/mds-accordion.entry.js +1 -1
- package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm/mds-avatar-stack.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +2 -2
- package/dist/esm/mds-badge.entry.js +1 -1
- package/dist/esm/mds-banner_3.entry.js +3 -3
- package/dist/esm/mds-bibliography.entry.js +1 -1
- package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm/mds-breadcrumb.entry.js +1 -1
- package/dist/esm/mds-button-dropdown.entry.js +30 -2
- package/dist/esm/mds-button_3.entry.js +123 -56
- package/dist/esm/mds-calendar_2.entry.js +59 -6
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +1 -1
- package/dist/esm/mds-details.entry.js +1 -1
- package/dist/esm/mds-dropdown.entry.js +3 -3
- package/dist/esm/mds-emoji.entry.js +1 -1
- package/dist/esm/mds-entity.entry.js +1 -1
- package/dist/esm/mds-file-preview.entry.js +1 -1
- package/dist/esm/mds-file.entry.js +30 -7521
- package/dist/esm/mds-filter-item.entry.js +89 -3
- package/dist/esm/mds-filter.entry.js +114 -20
- package/dist/esm/mds-header-bar.entry.js +29 -2
- package/dist/esm/mds-header.entry.js +1 -1
- package/dist/esm/mds-horizontal-scroll.entry.js +38 -2
- package/dist/esm/mds-hr.entry.js +1 -1
- package/dist/esm/mds-img.entry.js +1 -1
- package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +16 -2
- package/dist/esm/mds-input-date.entry.js +36 -4
- package/dist/esm/mds-input-field.entry.js +1 -1
- package/dist/esm/mds-input-range.entry.js +1 -1
- package/dist/esm/mds-input-select.entry.js +32 -5
- package/dist/esm/mds-input-switch_2.entry.js +21 -8
- package/dist/esm/mds-input-tip_2.entry.js +2 -2
- package/dist/esm/mds-input-upload.entry.js +1 -1
- package/dist/esm/mds-input.entry.js +12 -3
- package/dist/esm/mds-keyboard-key.entry.js +1 -1
- package/dist/esm/mds-keyboard.entry.js +1 -1
- package/dist/esm/mds-kpi-item.entry.js +1 -1
- package/dist/esm/mds-label.entry.js +1 -1
- package/dist/esm/mds-list-item.entry.js +2 -3
- package/dist/esm/mds-mention.entry.js +1 -1
- package/dist/esm/mds-modal.entry.js +31 -4
- package/dist/esm/mds-note.entry.js +1 -1
- package/dist/esm/mds-notification.entry.js +2 -2
- package/dist/esm/mds-paginator-item.entry.js +1 -1
- package/dist/esm/mds-paginator.entry.js +1 -1
- package/dist/esm/mds-policy-ai.entry.js +1 -1
- package/dist/esm/mds-pref-animation.entry.js +1 -1
- package/dist/esm/mds-pref-consumption.entry.js +1 -1
- package/dist/esm/mds-pref-contrast.entry.js +1 -1
- package/dist/esm/mds-pref-language.entry.js +1 -1
- package/dist/esm/mds-pref-mode.entry.js +1 -1
- package/dist/esm/mds-pref-theme-item.entry.js +4 -3
- package/dist/esm/mds-pref-theme.entry.js +30 -3
- package/dist/esm/mds-pref.entry.js +24 -53
- package/dist/esm/mds-price-table-features-cell.entry.js +2 -2
- package/dist/esm/mds-price-table-features-row.entry.js +2 -2
- package/dist/esm/mds-price-table-features.entry.js +2 -2
- package/dist/esm/mds-price-table-header.entry.js +1 -1
- package/dist/esm/mds-price-table-list-item.entry.js +2 -2
- package/dist/esm/mds-price-table-list.entry.js +2 -2
- package/dist/esm/mds-price-table.entry.js +1 -1
- package/dist/esm/mds-progress_2.entry.js +4 -4
- package/dist/esm/mds-push-notification-item.entry.js +4 -4
- package/dist/esm/mds-push-notification.entry.js +2 -2
- package/dist/esm/mds-quote.entry.js +2 -2
- package/dist/esm/mds-radial-menu-item.entry.js +2 -2
- package/dist/esm/mds-radial-menu.entry.js +40 -4
- package/dist/esm/mds-separator.entry.js +2 -2
- package/dist/esm/mds-status-bar.entry.js +2 -2
- package/dist/esm/mds-stepper-bar-item.entry.js +2 -2
- package/dist/esm/mds-stepper-bar.entry.js +2 -2
- package/dist/esm/mds-tab-bar-item.entry.js +2 -2
- package/dist/esm/mds-tab-bar.entry.js +2 -2
- package/dist/esm/mds-tab_2.entry.js +43 -8
- package/dist/esm/mds-table-body.entry.js +2 -2
- package/dist/esm/mds-table-footer.entry.js +2 -2
- package/dist/esm/mds-table-header-cell.entry.js +117 -78
- package/dist/esm/mds-table-header.entry.js +2 -2
- package/dist/esm/mds-table-row.entry.js +23 -17
- package/dist/esm/mds-table.entry.js +9 -2
- package/dist/esm/mds-text.entry.js +37 -27
- package/dist/esm/mds-toast.entry.js +2 -2
- package/dist/esm/mds-tooltip.entry.js +17 -4
- package/dist/esm/mds-tree-item.entry.js +2 -2
- package/dist/esm/mds-tree.entry.js +2 -2
- package/dist/esm/mds-url-view.entry.js +2 -2
- package/dist/esm/mds-usage.entry.js +23 -4
- package/dist/esm/mds-video-wall.entry.js +2 -2
- package/dist/esm/mds-zero.entry.js +2 -2
- package/dist/esm/string-6pgPWpGI.js +5 -0
- package/dist/esm-es5/_commonjsHelpers-B85MJLTf.js +1 -0
- package/dist/esm-es5/{floating-controller-BTYkH_Ih.js → floating-controller-D5-8D9mH.js} +11 -5
- package/dist/esm-es5/{floating-ui.dom-CHAGzQT-.js → floating-ui.dom-JMPfVnGv.js} +80 -48
- package/dist/esm-es5/icon-pNJmnrhq.js +1 -0
- package/dist/esm-es5/index-BxPbQB28.js +36 -36
- package/dist/esm-es5/index.js +37 -20
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +2 -2
- package/dist/esm-es5/mds-accordion-timer.entry.js +2 -2
- package/dist/esm-es5/mds-accordion.entry.js +2 -2
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +2 -2
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +3 -3
- package/dist/esm-es5/mds-bibliography.entry.js +2 -2
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +2 -2
- package/dist/esm-es5/mds-button-dropdown.entry.js +3 -3
- package/dist/esm-es5/mds-button_3.entry.js +50 -7
- package/dist/esm-es5/mds-calendar_2.entry.js +8 -6
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +5 -5
- package/dist/esm-es5/mds-details.entry.js +2 -2
- package/dist/esm-es5/mds-dropdown.entry.js +16 -16
- package/dist/esm-es5/mds-emoji.entry.js +18 -18
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +7 -7
- package/dist/esm-es5/mds-file.entry.js +15 -2835
- package/dist/esm-es5/mds-filter-item.entry.js +16 -1
- package/dist/esm-es5/mds-filter.entry.js +18 -2
- package/dist/esm-es5/mds-header-bar.entry.js +3 -3
- package/dist/esm-es5/mds-header.entry.js +7 -7
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +13 -13
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +7 -2
- package/dist/esm-es5/mds-input-date.entry.js +8 -3
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +7 -7
- package/dist/esm-es5/mds-input-select.entry.js +14 -5
- package/dist/esm-es5/mds-input-switch_2.entry.js +17 -9
- package/dist/esm-es5/mds-input-tip_2.entry.js +2 -2
- package/dist/esm-es5/mds-input-upload.entry.js +1 -1
- package/dist/esm-es5/mds-input.entry.js +30 -25
- package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
- package/dist/esm-es5/mds-keyboard.entry.js +1 -1
- package/dist/esm-es5/mds-kpi-item.entry.js +2 -2
- 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-mention.entry.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +5 -5
- package/dist/esm-es5/mds-note.entry.js +1 -1
- package/dist/esm-es5/mds-notification.entry.js +3 -3
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +3 -3
- package/dist/esm-es5/mds-policy-ai.entry.js +1 -1
- package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
- package/dist/esm-es5/mds-pref-consumption.entry.js +2 -2
- package/dist/esm-es5/mds-pref-contrast.entry.js +2 -2
- package/dist/esm-es5/mds-pref-language.entry.js +1 -1
- package/dist/esm-es5/mds-pref-mode.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme-item.entry.js +3 -3
- package/dist/esm-es5/mds-pref-theme.entry.js +15 -7
- package/dist/esm-es5/mds-pref.entry.js +14 -5
- 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 +1 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +3 -3
- package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification.entry.js +2 -2
- 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 +2 -2
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +2 -2
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +3 -3
- package/dist/esm-es5/mds-stepper-bar.entry.js +4 -4
- package/dist/esm-es5/mds-tab-bar-item.entry.js +3 -3
- package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab_2.entry.js +25 -4
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +1 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +22 -3
- package/dist/esm-es5/mds-table-header.entry.js +4 -4
- package/dist/esm-es5/mds-table-row.entry.js +12 -4
- package/dist/esm-es5/mds-table.entry.js +11 -5
- package/dist/esm-es5/mds-text.entry.js +25 -7
- package/dist/esm-es5/mds-toast.entry.js +2 -2
- package/dist/esm-es5/mds-tooltip.entry.js +8 -3
- package/dist/esm-es5/mds-tree-item.entry.js +2 -2
- package/dist/esm-es5/mds-tree.entry.js +3 -3
- package/dist/esm-es5/mds-url-view.entry.js +2 -2
- package/dist/esm-es5/mds-usage.entry.js +9 -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/string-6pgPWpGI.js +2 -0
- package/dist/hydrate/index.js +1580 -8246
- package/dist/hydrate/index.mjs +1580 -8246
- package/dist/magma-components/index.esm.js +1 -1
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/p-00ce5c81.entry.js +1 -0
- package/dist/magma-components/{p-5c94e0c2.system.entry.js → p-00ff586a.system.entry.js} +2 -2
- package/dist/magma-components/p-01f05a56.entry.js +1 -0
- package/dist/magma-components/p-0345cbd0.system.entry.js +83 -0
- package/dist/magma-components/p-03a6a8bd.system.entry.js +46 -0
- package/dist/magma-components/p-05de42e1.system.entry.js +1 -0
- package/dist/magma-components/p-063bccb3.entry.js +1 -0
- package/dist/magma-components/p-0c89c485.entry.js +1 -0
- package/dist/magma-components/p-0d94a2b8.entry.js +8 -0
- package/dist/magma-components/{p-ee1e7f07.system.entry.js → p-0d97e28d.system.entry.js} +1 -1
- package/dist/magma-components/p-108e31e6.entry.js +1 -0
- package/dist/magma-components/p-114f0bb7.system.entry.js +14 -0
- package/dist/magma-components/{p-e8ed096b.entry.js → p-121730d1.entry.js} +1 -1
- package/dist/magma-components/p-137116df.entry.js +1 -0
- package/dist/magma-components/p-13b0babc.system.entry.js +1 -0
- package/dist/magma-components/p-14a108e8.system.entry.js +8 -0
- package/dist/magma-components/p-14eadf95.system.entry.js +21 -0
- package/dist/magma-components/p-154aff83.entry.js +1 -0
- package/dist/magma-components/p-155f79f4.system.entry.js +47 -0
- package/dist/magma-components/p-17b62839.entry.js +1 -0
- package/dist/magma-components/{p-0a551e86.entry.js → p-1802d6a7.entry.js} +1 -1
- package/dist/magma-components/{p-91c4015f.system.entry.js → p-188d9770.system.entry.js} +1 -1
- package/dist/magma-components/p-18ba4766.entry.js +1 -0
- package/dist/magma-components/p-1c63801f.system.entry.js +11 -0
- package/dist/magma-components/p-1c6a507c.system.entry.js +17 -0
- package/dist/magma-components/p-1e2388be.entry.js +1 -0
- package/dist/magma-components/{p-eaff7300.entry.js → p-22e9a507.entry.js} +1 -1
- package/dist/magma-components/p-24a9871a.system.entry.js +1 -0
- package/dist/magma-components/p-26332bce.system.entry.js +1 -0
- package/dist/magma-components/p-26c85354.system.entry.js +1 -0
- package/dist/magma-components/p-2708561b.system.entry.js +10 -0
- package/dist/magma-components/{p-a4a83a63.entry.js → p-2710ddc4.entry.js} +1 -1
- package/dist/magma-components/p-294241fa.entry.js +1 -0
- package/dist/magma-components/p-2b2d0910.system.entry.js +1 -0
- package/dist/magma-components/p-2c940d19.entry.js +1 -0
- package/dist/magma-components/{p-93d39066.entry.js → p-2de5f5fe.entry.js} +1 -1
- package/dist/magma-components/p-2e74231d.system.entry.js +4 -0
- package/dist/magma-components/p-2e83f801.system.entry.js +1 -0
- package/dist/magma-components/{p-dd58f9ee.entry.js → p-2f0815f3.entry.js} +1 -1
- package/dist/magma-components/p-30d36dfe.entry.js +1 -0
- package/dist/magma-components/p-323c7aa4.system.entry.js +25 -0
- package/dist/magma-components/{p-493fb2f4.system.entry.js → p-32e077c0.system.entry.js} +2 -2
- package/dist/magma-components/p-334b305d.system.entry.js +16 -0
- package/dist/magma-components/{p-6c18c40e.system.entry.js → p-341994b3.system.entry.js} +1 -1
- package/dist/magma-components/p-35434d4b.system.entry.js +32 -0
- package/dist/magma-components/p-37495e03.entry.js +1 -0
- package/dist/magma-components/{p-439c9ce3.system.entry.js → p-38e0379a.system.entry.js} +2 -2
- package/dist/magma-components/p-3b91efd1.entry.js +1 -0
- package/dist/magma-components/p-3dc4db04.system.entry.js +16 -0
- package/dist/magma-components/p-3f0e82bc.entry.js +1 -0
- package/dist/magma-components/p-3fa6cf85.system.entry.js +1 -0
- package/dist/magma-components/p-40e97485.entry.js +1 -0
- package/dist/magma-components/p-4159c306.entry.js +1 -0
- package/dist/magma-components/p-42411854.system.entry.js +102 -0
- package/dist/magma-components/{p-2f520704.entry.js → p-42ebba8c.entry.js} +1 -1
- package/dist/magma-components/p-4356d96e.system.entry.js +21 -0
- package/dist/magma-components/p-4577948d.system.entry.js +12 -0
- package/dist/magma-components/p-4658a200.entry.js +1 -0
- package/dist/magma-components/{p-b431ca8a.entry.js → p-4cfa925a.entry.js} +1 -1
- package/dist/magma-components/p-4dfeb655.system.entry.js +23 -0
- package/dist/magma-components/p-4ef19542.entry.js +1 -0
- package/dist/magma-components/{p-ac81f63a.system.entry.js → p-508e10b5.system.entry.js} +1 -1
- package/dist/magma-components/p-522fd3d0.system.entry.js +4 -0
- package/dist/magma-components/p-528d913c.system.entry.js +17 -0
- package/dist/magma-components/p-569cbe13.entry.js +1 -0
- package/dist/magma-components/p-574c2c13.system.entry.js +222 -0
- package/dist/magma-components/{p-218d8254.system.entry.js → p-584a4ee8.system.entry.js} +1 -1
- package/dist/magma-components/{p-577db922.entry.js → p-595fde64.entry.js} +1 -1
- package/dist/magma-components/p-5989cdf2.system.entry.js +16 -0
- package/dist/magma-components/p-5c17a324.entry.js +1 -0
- package/dist/magma-components/p-5df91427.system.entry.js +15 -0
- package/dist/magma-components/p-5fcc1455.entry.js +1 -0
- package/dist/magma-components/p-61638aa3.entry.js +1 -0
- package/dist/magma-components/p-634727e6.system.entry.js +22 -0
- package/dist/magma-components/{p-03c2060d.entry.js → p-6465c8f4.entry.js} +1 -1
- package/dist/magma-components/p-6764b13a.entry.js +1 -0
- package/dist/magma-components/p-6812f01b.entry.js +1 -0
- package/dist/magma-components/{p-4211ce6c.system.entry.js → p-6901428b.system.entry.js} +1 -1
- package/dist/magma-components/p-699a7926.entry.js +1 -0
- package/dist/magma-components/p-69d6cc9e.system.entry.js +7 -0
- package/dist/magma-components/p-6a798061.entry.js +1 -0
- package/dist/magma-components/p-6d350c7c.entry.js +1 -0
- package/dist/magma-components/p-6f5a1248.entry.js +1 -0
- package/dist/magma-components/p-6fba5e6c.entry.js +1 -0
- package/dist/magma-components/p-6fd9a2ae.entry.js +1 -0
- package/dist/magma-components/p-6pgPWpGI.js +1 -0
- package/dist/magma-components/p-70caf05b.system.entry.js +10 -0
- package/dist/magma-components/{p-832883c4.entry.js → p-70cc167f.entry.js} +1 -1
- package/dist/magma-components/{p-86f4b6eb.system.entry.js → p-736c0e25.system.entry.js} +2 -2
- package/dist/magma-components/p-73e593a2.system.entry.js +95 -0
- package/dist/magma-components/p-7450a7a7.system.entry.js +49 -0
- package/dist/magma-components/p-7535328a.entry.js +1 -0
- package/dist/magma-components/{p-4cb88b06.system.entry.js → p-76f02296.system.entry.js} +1 -1
- package/dist/magma-components/p-79bc2e81.entry.js +1 -0
- package/dist/magma-components/p-79dc2243.entry.js +1 -0
- package/dist/magma-components/p-7b1c6eb0.entry.js +1 -0
- package/dist/magma-components/p-7b8b51c8.entry.js +1 -0
- package/dist/magma-components/p-7bc0a6c4.entry.js +1 -0
- package/dist/magma-components/{p-8d53bd61.system.entry.js → p-7c8e79a7.system.entry.js} +1 -1
- package/dist/magma-components/p-7c90298a.entry.js +1 -0
- package/dist/magma-components/p-7e02237b.entry.js +1 -0
- package/dist/magma-components/{p-f733ae92.system.entry.js → p-7f247e64.system.entry.js} +2 -2
- package/dist/magma-components/p-808f6796.entry.js +1 -0
- package/dist/magma-components/{p-e213640b.entry.js → p-82480df5.entry.js} +1 -1
- package/dist/magma-components/p-842b1dfc.entry.js +1 -0
- package/dist/magma-components/p-88c7be3d.system.entry.js +68 -0
- package/dist/magma-components/p-89733d3a.system.entry.js +14 -0
- package/dist/magma-components/p-8c75425d.entry.js +1 -0
- package/dist/magma-components/{p-5ac9e2f4.entry.js → p-8c76410b.entry.js} +1 -1
- package/dist/magma-components/p-8cdad12f.entry.js +1 -0
- package/dist/magma-components/p-8d2a6896.entry.js +1 -0
- package/dist/magma-components/p-8d7835e2.system.entry.js +10 -0
- package/dist/magma-components/p-8f039ca0.system.entry.js +7 -0
- package/dist/magma-components/p-8f54cf62.system.entry.js +4 -0
- package/dist/magma-components/p-8f6bd147.entry.js +1 -0
- package/dist/magma-components/p-9017022c.system.entry.js +15 -0
- package/dist/magma-components/p-909f5b60.system.entry.js +55 -0
- package/dist/magma-components/p-94e9f2be.system.entry.js +11 -0
- package/dist/magma-components/p-976bb373.system.entry.js +90 -0
- package/dist/magma-components/p-97d82884.system.entry.js +16 -0
- package/dist/magma-components/p-97de86c6.system.entry.js +16 -0
- package/dist/magma-components/p-97e9a197.system.entry.js +32 -0
- package/dist/magma-components/p-9a936cae.system.entry.js +45 -0
- package/dist/magma-components/p-9c6d184f.entry.js +1 -0
- package/dist/magma-components/p-9db0a6e9.entry.js +1 -0
- package/dist/magma-components/p-9e662528.entry.js +1 -0
- package/dist/magma-components/{p-7ffda4f5.entry.js → p-9ff02a82.entry.js} +1 -1
- package/dist/magma-components/p-B85MJLTf.js +1 -0
- package/dist/magma-components/p-BJqUjYIG.system.js +1 -0
- package/dist/magma-components/{p-Dg8nxRUX.system.js → p-BcYSdbK0.system.js} +85 -53
- package/dist/magma-components/p-BeYLDgbf.js +1 -0
- package/dist/magma-components/p-CKfEQ187.system.js +107 -0
- package/dist/magma-components/p-D6-Ny6z1.system.js +1 -0
- package/dist/magma-components/{p-BPNsbMrg.system.js → p-DhhAXEdA.system.js} +11 -5
- package/dist/magma-components/p-JMPfVnGv.js +1 -0
- package/dist/magma-components/p-ZDRIVCAt.system.js +1 -1
- package/dist/magma-components/p-a3e3a653.system.entry.js +81 -0
- package/dist/magma-components/p-a4c26b4d.system.entry.js +19 -0
- package/dist/magma-components/{p-dcc3be64.system.entry.js → p-a61c7ae9.system.entry.js} +1 -1
- package/dist/magma-components/p-a653e096.entry.js +1 -0
- package/dist/magma-components/p-a8bf46cb.system.entry.js +1 -0
- package/dist/magma-components/p-a9736d68.system.entry.js +4 -0
- package/dist/magma-components/p-ac4435e7.entry.js +1 -0
- package/dist/magma-components/p-ac873ab4.entry.js +1 -0
- package/dist/magma-components/p-acae292f.system.entry.js +28 -0
- package/dist/magma-components/p-add1a8d0.system.entry.js +7 -0
- package/dist/magma-components/p-b1a0e56e.system.entry.js +42 -0
- package/dist/magma-components/p-b33a6f7e.system.entry.js +13 -0
- package/dist/magma-components/p-b492dd4c.entry.js +1 -0
- package/dist/magma-components/p-b99cac43.entry.js +1 -0
- package/dist/magma-components/p-baf0359b.entry.js +1 -0
- package/dist/magma-components/p-bbd414dc.entry.js +1 -0
- package/dist/magma-components/p-be1aad5f.entry.js +1 -0
- package/dist/magma-components/p-bf05f9f3.entry.js +1 -0
- package/dist/magma-components/p-bf8c6647.system.entry.js +11 -0
- package/dist/magma-components/p-bfe19e4b.entry.js +1 -0
- package/dist/magma-components/p-c1a7266a.entry.js +1 -0
- package/dist/magma-components/p-c3585de7.system.entry.js +7 -0
- package/dist/magma-components/p-c45d9a64.system.entry.js +32 -0
- package/dist/magma-components/p-c4ceaef6.system.entry.js +10 -0
- package/dist/magma-components/{p-57762bae.entry.js → p-c575cb7b.entry.js} +1 -1
- package/dist/magma-components/p-c644c5fc.system.entry.js +1 -0
- package/dist/magma-components/{p-61bedbe7.system.entry.js → p-c69ec735.system.entry.js} +8 -3
- package/dist/magma-components/p-c7d84d1c.system.entry.js +1 -0
- package/dist/magma-components/p-cb8b45fd.entry.js +1 -0
- package/dist/magma-components/p-cbfd8b10.system.entry.js +16 -0
- package/dist/magma-components/{p-ed897f9f.entry.js → p-ce46191c.entry.js} +1 -1
- package/dist/magma-components/p-cebe7b52.entry.js +1 -0
- package/dist/magma-components/p-cefdc01f.system.entry.js +7 -0
- package/dist/magma-components/{p-f29a059d.system.entry.js → p-d025a34f.system.entry.js} +1 -1
- package/dist/magma-components/p-d1c47baa.entry.js +1 -0
- package/dist/magma-components/p-d269bfb0.entry.js +1 -0
- package/dist/magma-components/p-d42f267b.system.entry.js +40 -0
- package/dist/magma-components/p-d65d8a09.system.entry.js +1 -0
- package/dist/magma-components/p-d6eca2ef.entry.js +1 -0
- package/dist/magma-components/p-d716efe9.system.entry.js +1 -0
- package/dist/magma-components/{p-314abfba.entry.js → p-da6ccc03.entry.js} +1 -1
- package/dist/magma-components/p-dbaf5368.system.entry.js +7 -0
- package/dist/magma-components/p-dc340618.entry.js +1 -0
- package/dist/magma-components/p-dc752e9b.entry.js +1 -0
- package/dist/magma-components/p-e238e2eb.entry.js +1 -0
- package/dist/magma-components/p-e388f1f2.system.entry.js +19 -0
- package/dist/magma-components/{p-74b51db8.entry.js → p-e50fdcee.entry.js} +1 -1
- package/dist/magma-components/{p-2c44c961.system.entry.js → p-e779a67f.system.entry.js} +3 -3
- package/dist/magma-components/p-e8ae4016.system.entry.js +1 -0
- package/dist/magma-components/{p-9eb1e154.system.entry.js → p-e8d95868.system.entry.js} +2 -2
- package/dist/magma-components/p-ed232c76.entry.js +1 -0
- package/dist/magma-components/{p-6fdb3fe7.system.entry.js → p-ed6e287d.system.entry.js} +25 -7
- package/dist/magma-components/{p-88287207.system.entry.js → p-ed87425c.system.entry.js} +1 -1
- package/dist/magma-components/p-ed897125.entry.js +1 -0
- package/dist/magma-components/p-ee876b20.system.entry.js +4 -0
- package/dist/magma-components/p-efe0bb12.system.entry.js +7 -0
- package/dist/magma-components/p-f2412853.system.entry.js +27 -0
- package/dist/magma-components/p-f2743a2b.entry.js +1 -0
- package/dist/magma-components/p-f2f2945b.entry.js +1 -0
- package/dist/magma-components/p-f37f1343.entry.js +1 -0
- package/dist/magma-components/p-f3dd135e.system.entry.js +32 -0
- package/dist/magma-components/p-f5ce24e8.entry.js +1 -0
- package/dist/magma-components/p-f8a88f11.entry.js +1 -0
- package/dist/magma-components/p-f900fe90.entry.js +1 -0
- package/dist/magma-components/p-pNJmnrhq.js +1 -0
- package/dist/magma-components/p-pxyGaQ-P.system.js +2 -0
- package/dist/stats.json +2920 -2147
- package/dist/types/common/floating-controller.d.ts +8 -1
- package/dist/types/common/hash.d.ts +8 -0
- package/dist/types/common/navigation.d.ts +32 -0
- package/dist/types/common/string.d.ts +3 -1
- package/dist/types/components/mds-button/mds-button.d.ts +33 -2
- package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +1 -0
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +1 -0
- package/dist/types/components/mds-file/mds-file.d.ts +6 -1
- package/dist/types/components/mds-filter/mds-filter.d.ts +15 -0
- package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +18 -1
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +1 -0
- package/dist/types/components/mds-horizontal-scroll/mds-horizontal-scroll.d.ts +1 -0
- package/dist/types/components/mds-input/mds-input.d.ts +8 -1
- 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 +5 -0
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +15 -2
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +8 -3
- package/dist/types/components/mds-modal/mds-modal.d.ts +1 -0
- package/dist/types/components/mds-pref/mds-pref.d.ts +5 -8
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +8 -0
- package/dist/types/components/mds-radial-menu/mds-radial-menu.d.ts +1 -0
- package/dist/types/components/mds-tab/mds-tab.d.ts +14 -1
- package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +6 -1
- package/dist/types/components/mds-table/mds-table.d.ts +8 -1
- package/dist/types/components/mds-table/meta/type.d.ts +1 -0
- package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +33 -14
- package/dist/types/components/mds-table-header-cell/meta/event-detail.d.ts +6 -0
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -2
- package/dist/types/components/mds-text/mds-text.d.ts +8 -4
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +8 -1
- package/dist/types/components/mds-usage/mds-usage.d.ts +5 -1
- package/dist/types/components/mds-usage/meta/variants.d.ts +7 -19
- package/dist/types/components.d.ts +127 -22
- package/dist/types/index.d.ts +12 -4
- package/dist/types/type/floating-ui.d.ts +2 -0
- package/dist/types/type/input.d.ts +3 -0
- package/package.json +18 -18
- package/dist/cjs/_commonjsHelpers-B83fTs8d.js +0 -36
- package/dist/collection/dictionary/icon.js +0 -10
- package/dist/collection/type/icon.js +0 -1
- package/dist/components/p-1aH7xiMs.js +0 -1
- package/dist/components/p-B05zwjTY.js +0 -1
- package/dist/components/p-BOu_NOgd.js +0 -1
- package/dist/components/p-BTpjOy0A.js +0 -1
- package/dist/components/p-BVw5aqzn.js +0 -1
- package/dist/components/p-BWpSxp3h.js +0 -1
- package/dist/components/p-BXPIlPIF.js +0 -1
- package/dist/components/p-BzvYQBdf.js +0 -1
- package/dist/components/p-C3Sn8bRc.js +0 -1
- package/dist/components/p-CGkSDkOY.js +0 -1
- package/dist/components/p-CHAGzQT-.js +0 -1
- package/dist/components/p-CIcshx6K.js +0 -1
- package/dist/components/p-CKS4r32k.js +0 -1
- package/dist/components/p-COkF_8bh.js +0 -1
- package/dist/components/p-CmHMhHMt.js +0 -1
- package/dist/components/p-Cnt6G6GK.js +0 -1
- package/dist/components/p-CsL9U6eU.js +0 -1
- package/dist/components/p-Cyj1BFxx.js +0 -1
- package/dist/components/p-DQqUzCGR.js +0 -1
- package/dist/components/p-DR46G4-6.js +0 -1
- package/dist/components/p-DcW0iRnZ.js +0 -1
- package/dist/components/p-DebgFlHq.js +0 -1
- package/dist/components/p-Dpf8NWF9.js +0 -1
- package/dist/components/p-DwA-5c8G.js +0 -1
- package/dist/components/p-Dws02cT2.js +0 -8
- package/dist/components/p-E-ZsRS8r.js +0 -1
- package/dist/components/p-K3QNYRhf.js +0 -1
- package/dist/components/p-PQ_EO5-U.js +0 -1
- package/dist/components/p-akEzGmDD.js +0 -1
- package/dist/components/p-bDVBqkn0.js +0 -1
- package/dist/esm/_commonjsHelpers-E-ZsRS8r.js +0 -32
- package/dist/esm-es5/_commonjsHelpers-E-ZsRS8r.js +0 -1
- package/dist/magma-components/p-00e47e49.system.entry.js +0 -14
- package/dist/magma-components/p-0141c597.system.entry.js +0 -15
- package/dist/magma-components/p-021f96f8.entry.js +0 -1
- package/dist/magma-components/p-0255924b.system.entry.js +0 -22
- package/dist/magma-components/p-05014374.entry.js +0 -1
- package/dist/magma-components/p-05f73994.entry.js +0 -1
- package/dist/magma-components/p-0646392d.entry.js +0 -1
- package/dist/magma-components/p-0a904a12.entry.js +0 -1
- package/dist/magma-components/p-106f39c6.entry.js +0 -1
- package/dist/magma-components/p-10ad73e3.system.entry.js +0 -19
- package/dist/magma-components/p-1150ffb8.system.entry.js +0 -10
- package/dist/magma-components/p-12c5ae26.entry.js +0 -1
- package/dist/magma-components/p-13a1d35f.entry.js +0 -1
- package/dist/magma-components/p-15d4846d.entry.js +0 -1
- package/dist/magma-components/p-1673225e.system.entry.js +0 -8
- package/dist/magma-components/p-188f4b1d.system.entry.js +0 -7
- package/dist/magma-components/p-18c8628c.entry.js +0 -1
- package/dist/magma-components/p-1be45c75.entry.js +0 -1
- package/dist/magma-components/p-1e3d89cd.system.entry.js +0 -1
- package/dist/magma-components/p-1e700f0a.entry.js +0 -1
- package/dist/magma-components/p-20e4f7dd.system.entry.js +0 -15
- package/dist/magma-components/p-21865dd2.entry.js +0 -1
- package/dist/magma-components/p-21c46e74.system.entry.js +0 -4
- package/dist/magma-components/p-231b604f.system.entry.js +0 -1
- package/dist/magma-components/p-2507f5cf.entry.js +0 -1
- package/dist/magma-components/p-277444bc.entry.js +0 -1
- package/dist/magma-components/p-283b0548.system.entry.js +0 -102
- package/dist/magma-components/p-2ec0db8e.entry.js +0 -1
- package/dist/magma-components/p-30c3872d.entry.js +0 -1
- package/dist/magma-components/p-322a5452.entry.js +0 -1
- package/dist/magma-components/p-3231a6a3.entry.js +0 -1
- package/dist/magma-components/p-34401d35.entry.js +0 -1
- package/dist/magma-components/p-35aa29c5.entry.js +0 -1
- package/dist/magma-components/p-36a67b51.entry.js +0 -1
- package/dist/magma-components/p-3a1339bb.system.entry.js +0 -4
- package/dist/magma-components/p-3d56e3f4.entry.js +0 -1
- package/dist/magma-components/p-3e0eed90.system.entry.js +0 -12
- package/dist/magma-components/p-3ecade3c.system.entry.js +0 -11
- package/dist/magma-components/p-3eefca33.system.entry.js +0 -16
- package/dist/magma-components/p-436f9b27.system.entry.js +0 -38
- package/dist/magma-components/p-44e2a945.system.entry.js +0 -1
- package/dist/magma-components/p-4658154f.entry.js +0 -1
- package/dist/magma-components/p-474047fa.system.entry.js +0 -10
- package/dist/magma-components/p-474c5d53.system.entry.js +0 -11
- package/dist/magma-components/p-4ac94b84.system.entry.js +0 -32
- package/dist/magma-components/p-4c73f14b.system.entry.js +0 -14
- package/dist/magma-components/p-4dd6a39b.entry.js +0 -1
- package/dist/magma-components/p-4e7f21ac.entry.js +0 -1
- package/dist/magma-components/p-4f14a166.entry.js +0 -1
- package/dist/magma-components/p-50ea11c9.system.entry.js +0 -32
- package/dist/magma-components/p-52793bdb.system.entry.js +0 -1
- package/dist/magma-components/p-5299f709.system.entry.js +0 -26
- package/dist/magma-components/p-58b82b40.system.entry.js +0 -10
- package/dist/magma-components/p-5a7267e8.system.entry.js +0 -4
- package/dist/magma-components/p-5a911e7b.system.entry.js +0 -13
- package/dist/magma-components/p-5ccf493c.system.entry.js +0 -7
- package/dist/magma-components/p-5d119459.entry.js +0 -1
- package/dist/magma-components/p-5fd04ce1.entry.js +0 -1
- package/dist/magma-components/p-60f67c37.entry.js +0 -1
- package/dist/magma-components/p-632bc44c.entry.js +0 -1
- package/dist/magma-components/p-69c21eae.entry.js +0 -1
- package/dist/magma-components/p-6a6326c6.entry.js +0 -1
- package/dist/magma-components/p-6c800411.entry.js +0 -1
- package/dist/magma-components/p-6e03b83a.entry.js +0 -1
- package/dist/magma-components/p-6ed05d99.entry.js +0 -1
- package/dist/magma-components/p-6f74cdf5.system.entry.js +0 -12
- package/dist/magma-components/p-73fde271.system.entry.js +0 -72
- package/dist/magma-components/p-76ecad2f.entry.js +0 -18
- package/dist/magma-components/p-774ce1d2.entry.js +0 -1
- package/dist/magma-components/p-77615947.system.entry.js +0 -1
- package/dist/magma-components/p-7770b989.system.entry.js +0 -1
- package/dist/magma-components/p-7787ebaf.system.entry.js +0 -1
- package/dist/magma-components/p-7927010f.system.entry.js +0 -25
- package/dist/magma-components/p-79421ee1.system.entry.js +0 -11
- package/dist/magma-components/p-7ab15184.entry.js +0 -1
- package/dist/magma-components/p-7afec7ee.entry.js +0 -1
- package/dist/magma-components/p-7e085c82.entry.js +0 -1
- package/dist/magma-components/p-7e7cf986.system.entry.js +0 -7
- package/dist/magma-components/p-809adece.system.entry.js +0 -17
- package/dist/magma-components/p-8183b7ed.entry.js +0 -1
- package/dist/magma-components/p-83394280.system.entry.js +0 -32
- package/dist/magma-components/p-835fc007.entry.js +0 -1
- package/dist/magma-components/p-84645c60.system.entry.js +0 -1
- package/dist/magma-components/p-87026d34.entry.js +0 -1
- package/dist/magma-components/p-87faaa8e.system.entry.js +0 -16
- package/dist/magma-components/p-883c223a.system.entry.js +0 -4
- package/dist/magma-components/p-88f99a4f.system.entry.js +0 -81
- package/dist/magma-components/p-8a3d2259.system.entry.js +0 -17
- package/dist/magma-components/p-8aafbfdf.system.entry.js +0 -49
- package/dist/magma-components/p-8afc9bc4.system.entry.js +0 -2838
- package/dist/magma-components/p-8ca1d30d.system.entry.js +0 -1
- package/dist/magma-components/p-8ccd187a.entry.js +0 -1
- package/dist/magma-components/p-90993b0b.system.entry.js +0 -68
- package/dist/magma-components/p-915c5f06.system.entry.js +0 -47
- package/dist/magma-components/p-91ff1560.system.entry.js +0 -7
- package/dist/magma-components/p-92d9b537.entry.js +0 -1
- package/dist/magma-components/p-932620b6.entry.js +0 -1
- package/dist/magma-components/p-9344a234.entry.js +0 -1
- package/dist/magma-components/p-97f6166e.system.entry.js +0 -28
- package/dist/magma-components/p-9d1cdb42.system.entry.js +0 -15
- package/dist/magma-components/p-9dcfc247.entry.js +0 -1
- package/dist/magma-components/p-9fe14430.system.entry.js +0 -7
- package/dist/magma-components/p-BpVYIPkx.js +0 -1
- package/dist/magma-components/p-CHAGzQT-.js +0 -1
- package/dist/magma-components/p-D7BrzK-C.system.js +0 -90
- package/dist/magma-components/p-DIUTGDX_.system.js +0 -1
- package/dist/magma-components/p-E-ZsRS8r.js +0 -1
- package/dist/magma-components/p-a64bbb36.system.entry.js +0 -40
- package/dist/magma-components/p-a6af4083.system.entry.js +0 -32
- package/dist/magma-components/p-a7e7f2c0.entry.js +0 -1
- package/dist/magma-components/p-aba96089.entry.js +0 -1
- package/dist/magma-components/p-aed8b119.entry.js +0 -1
- package/dist/magma-components/p-b24b5179.entry.js +0 -1
- package/dist/magma-components/p-b295e4ab.system.entry.js +0 -1
- package/dist/magma-components/p-b2c62b6e.system.entry.js +0 -7
- package/dist/magma-components/p-b5559b28.system.entry.js +0 -1
- package/dist/magma-components/p-b897c97d.entry.js +0 -1
- package/dist/magma-components/p-bab4c75e.system.entry.js +0 -45
- package/dist/magma-components/p-bc53c19e.entry.js +0 -8
- package/dist/magma-components/p-bf2fe278.system.entry.js +0 -16
- package/dist/magma-components/p-c0136138.entry.js +0 -1
- package/dist/magma-components/p-c166ec50.system.entry.js +0 -47
- package/dist/magma-components/p-c22887f7.system.entry.js +0 -90
- package/dist/magma-components/p-c28fce23.entry.js +0 -1
- package/dist/magma-components/p-c48bad95.entry.js +0 -1
- package/dist/magma-components/p-cb2c5f1b.entry.js +0 -1
- package/dist/magma-components/p-cc0c6ae7.entry.js +0 -1
- package/dist/magma-components/p-cc2a09f2.system.entry.js +0 -16
- package/dist/magma-components/p-cc9d9458.entry.js +0 -1
- package/dist/magma-components/p-ccb14076.system.entry.js +0 -217
- package/dist/magma-components/p-ccb6898a.system.entry.js +0 -4
- package/dist/magma-components/p-d04ac65d.entry.js +0 -1
- package/dist/magma-components/p-d07d227b.system.entry.js +0 -8
- package/dist/magma-components/p-d1faf129.entry.js +0 -1
- package/dist/magma-components/p-d282a929.entry.js +0 -1
- package/dist/magma-components/p-d2f134ac.entry.js +0 -1
- package/dist/magma-components/p-d47df503.system.entry.js +0 -37
- package/dist/magma-components/p-d9804d2f.entry.js +0 -1
- package/dist/magma-components/p-dc06b29e.entry.js +0 -1
- package/dist/magma-components/p-dc59b764.entry.js +0 -1
- package/dist/magma-components/p-dc7bada4.entry.js +0 -1
- package/dist/magma-components/p-de091be7.system.entry.js +0 -7
- package/dist/magma-components/p-dfe8552c.system.entry.js +0 -11
- package/dist/magma-components/p-e1e69217.system.entry.js +0 -1
- package/dist/magma-components/p-e2ef5996.entry.js +0 -1
- package/dist/magma-components/p-e7751639.entry.js +0 -1
- package/dist/magma-components/p-e887a14c.entry.js +0 -1
- package/dist/magma-components/p-e8cd2b93.system.entry.js +0 -4
- package/dist/magma-components/p-eb681207.system.entry.js +0 -1
- package/dist/magma-components/p-ec9cc7b9.entry.js +0 -1
- package/dist/magma-components/p-eca99a0a.system.entry.js +0 -1
- package/dist/magma-components/p-ecd3c27f.entry.js +0 -1
- package/dist/magma-components/p-ef3424e3.entry.js +0 -1
- package/dist/magma-components/p-f654eafe.entry.js +0 -1
- package/dist/magma-components/p-f8eb19b3.entry.js +0 -1
- package/dist/magma-components/p-f8feee93.system.entry.js +0 -4
- package/dist/magma-components/p-ffa1a0b4.system.entry.js +0 -1
- package/dist/types/dictionary/icon.d.ts +0 -4
- package/dist/types/type/icon.d.ts +0 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,o,i,n){function a(t){return t instanceof i?t:new i((function(o){o(t)}))}return new(i||(i=Promise))((function(i,e){function r(t){try{d(n.next(t))}catch(t){e(t)}}function s(t){try{d(n["throw"](t))}catch(t){e(t)}}function d(t){t.done?i(t.value):a(t.value).then(r,s)}d((n=n.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var i={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},n,a,e,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=s(0),r["throw"]=s(1),r["return"]=s(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(o){return d([t,o])}}function d(s){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(i=0)),i)try{if(n=1,a&&(e=s[0]&2?a["return"]:s[0]?a["throw"]||((e=a["return"])&&e.call(a),0):a.next)&&!(e=e.call(a,s[1])).done)return e;if(a=0,e)s=[s[0]&2,e.value];switch(s[0]){case 0:case 1:e=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(e=i.trys,e=e.length>0&&e[e.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!e||s[1]>e[0]&&s[1]<e[3])){i.label=s[1];break}if(s[0]===6&&i.label<e[1]){i.label=e[1];e=s;break}if(e&&i.label<e[2]){i.label=e[2];i.ops.push(s);break}if(e[2])i.ops.pop();i.trys.pop();continue}s=o.call(t,i)}catch(t){s=[6,t];a=0}finally{n=e=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-DaONbL_w.system.js","./p-Qrub-hmK.system.js","./p-RJ5ZA1kY.system.js","./p-_X0N_X__.system.js","./p-hVpoPUxI.system.js","./p-C61qxZLH.system.js","./p-BTF_aRDG.system.js"],(function(t){"use strict";var o,i,n,a,e,r,s,d,l,m,c;return{setters:[function(t){o=t.r;i=t.d;n=t.h;a=t.e;e=t.g},function(t){r=t.c},function(t){s=t.h},function(t){d=t.c},function(t){l=t.p},function(t){m=t.m},function(t){c=t.L}],execute:function(){var h="Κλείσιμο";var f={close:h};var p="Close";var u={close:p};var w="Cerrar";var v={close:w};var g="Chiudi";var b={close:g};var y=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-modal-custom-closed-transform:rotateX(10deg) rotateY(0) scale(1.25) translateY(10%);--mds-modal-custom-window-distance:calc(var(--spacing,.0025rem)*600);--mds-modal-overlay-color:var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0));--mds-modal-overlay-opacity:var(--magma-overlay-opacity,.5);--mds-modal-transition-duration:.5s;--mds-modal-transition-timing-funciton:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));--mds-modal-window-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-modal-window-distance:0;--mds-modal-window-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-overflow:auto;--mds-modal-window-radius:0;--mds-modal-window-shadow:var(--shadow-2xl,0 25px 50px -12px #00000040);--mds-modal-window-max-width:33%;--mds-modal-window-min-width:400px;--mds-modal-z-index:var(--magma-modal-z-index,3000);--private-modal-transition-duration:var(--mds-modal-transition-duration,.5s);--private-modal-width:calc(100vw - var(--private-modal-window-close-margin));--private-modal-custom-opened-transform:translate(0);--private-modal-opened-transform:none;--private-modal-transition-window-transform:translate(0);--private-modal-window-close-margin:calc(var(--spacing,.0025rem)*2000);display:contents}.dialog{align-items:center;background-color:#0000;border:0;box-sizing:border-box;color:inherit;display:none;fill:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));height:auto;inset:0;justify-content:center;margin:0;max-height:none;max-width:none;overflow:hidden;padding:0;perspective:600px;position:fixed;transition-behavior:allow-discrete;transition-duration:var(--private-modal-transition-duration);transition-property:overlay,display;transition-timing-function:var(--mds-modal-transition-timing-funciton);width:auto;z-index:var(--mds-modal-z-index,1000)}.dialog[open]{display:flex}.dialog::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/0);transition-behavior:allow-discrete;transition-duration:var(--private-modal-transition-duration);transition-property:background-color,overlay,display;transition-timing-function:var(--mds-modal-transition-timing-funciton)}:host([hide-backdrop]) .dialog{pointer-events:none}.action-close{--mds-button-color:rgb(var(--magma-on-backdrop,252 252 252));opacity:0;pointer-events:none;position:absolute;transition-duration:var(--private-modal-transition-duration);transition-property:background-color,bottom,color,fill,opacity,top,transform;transition-timing-function:var(--mds-modal-transition-timing-function)}.action-close::part(icon){height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}:host([position=top-left][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=top][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(0) scale(.5) translateY(-80%)}:host([position=top-right][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([position=left][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) rotate(0) scale(.5) translate(-100%)}:host([position=center][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) scale(.5) translateY(40%)}:host([position=right][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(-22deg) rotate(0) scale(.5) translate(100%)}:host([position=bottom-left][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=bottom][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(0) scale(.5) translateY(80%)}:host([position=bottom-right][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([animation=custom]){--private-modal-opened-transform:var(--private-modal-custom-opened-transform);--private-modal-transition-window-transform:var(--mds-modal-custom-closed-transform,rotateX(10deg) rotateY(0) scale(1.25) translate(0,10%))}:host([position=top-left][animation=slide]){--private-modal-transition-window-transform:translate(-50%,-100%)}:host([position=top][animation=slide]){--private-modal-transition-window-transform:translateY(-100%)}:host([position=top-right][animation=slide]){--private-modal-transition-window-transform:translate(50%,-100%)}:host([position=left][animation=slide]){--private-modal-transition-window-transform:translate(-100%)}:host([position=center][animation=slide]){--private-modal-transition-window-transform:translateY(25%)}:host([position=right][animation=slide]){--private-modal-transition-window-transform:translate(100%)}:host([position=bottom-left][animation=slide]){--private-modal-transition-window-transform:translate(-50%,100%)}:host([position=bottom][animation=slide]){--private-modal-transition-window-transform:translateY(50%)}:host([position=bottom-right][animation=slide]){--private-modal-transition-window-transform:translate(50%,100%)}.dialog[open]::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/var(--mds-modal-overlay-opacity,var(--magma-overlay-opacity,.5)))}@starting-style{.dialog[open]::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/0)}}:host ::slotted([slot=window]){margin:var(--mds-modal-custom-window-distance,calc(var(--spacing,.0025rem)*600))}.window{background-color:var(--mds-modal-window-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--mds-modal-window-radius,0);box-shadow:var(--mds-modal-window-shadow);box-sizing:border-box;display:grid;gap:0;grid-template-columns:repeat(1,minmax(0,100%));height:var(--mds-modal-window-height);margin:var(--mds-modal-window-distance,0);max-height:var(--mds-modal-window-max-height);max-width:var(--private-modal-width);min-width:var(--mds-modal-window-min-width,400px);overflow:var(--mds-modal-window-overflow,auto);position:relative;width:100%}.window-content--empty{display:none}.window-content-wrapper{max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);overflow:hidden}.window-footer,.window-header{box-sizing:border-box;position:absolute}.window-header{inset:0 0 auto}.window-footer{inset:auto 0 0}.dialog .window,.dialog ::slotted([slot=window]){opacity:0;transform:var(--private-modal-transition-window-transform);transition-duration:var(--private-modal-transition-duration);transition-property:transform,opacity;transition-timing-function:var(--mds-modal-transition-timing-funciton)}.dialog[open] .window,.dialog[open] ::slotted([slot=window]){opacity:1;pointer-events:auto;transform:var(--private-modal-opened-transform)}@starting-style{.dialog[open] .window,.dialog[open] ::slotted([slot=window]){opacity:0;transform:var(--private-modal-transition-window-transform)}.window-content-wrapper{overflow:hidden}}:host([position=top-left]) .dialog,:host([position=top-right]) .dialog,:host([position=top]) .dialog{align-items:flex-start}:host([position=center]) .dialog,:host([position=left]) .dialog,:host([position=right]) .dialog{align-items:center}:host([position=bottom-left]) .dialog,:host([position=bottom-right]) .dialog,:host([position=bottom]) .dialog{align-items:flex-end}:host([position=bottom-left]) .dialog,:host([position=left]) .dialog,:host([position=top-left]) .dialog{justify-content:flex-start}:host([position=bottom]) .dialog,:host([position=center]) .dialog,:host([position=top]) .dialog{justify-content:center}:host([position=bottom-right]) .dialog,:host([position=right]) .dialog,:host([position=top-right]) .dialog{justify-content:flex-end}:host([position=top]){--mds-modal-window-height:auto;align-items:flex-start;justify-content:center}:host([position=top]) .window{--mds-modal-window-max-width:100vw;--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--mds-modal-window-height:100%;--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2)}:host([position=top-left]){align-items:flex-start;justify-content:flex-start}:host([position=top-right]){align-items:flex-start;justify-content:flex-end}:host([position=left]){align-items:center;justify-content:flex-start}:host([position=left]) .action-close{right:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=left][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=left]:not([opened])) .action-close{transform:translate(-120%)rotate(-45deg)}:host([position=center]){align-items:center;justify-content:center}:host([position=right]){align-items:center;justify-content:flex-end}:host([position=right]) .action-close{left:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=right]:not([opened])) .action-close{transform:translate(120%)rotate(45deg)}:host([position=right][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=bottom-left]){align-items:flex-end;justify-content:flex-start}:host([position=bottom]){--mds-modal-window-height:auto;align-items:flex-end;justify-content:center}:host([position=bottom-right]){align-items:flex-end;justify-content:flex-end}: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-modal-transition-duration:0s}:host([pref-contrast=more]){--mds-modal-window-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .action-close{--mds-button-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@media (max-width:480px){:host{--mds-modal-window-min-width:0px}:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--private-modal-width:100vw}:host([position=left]),:host([position=right]){--private-modal-width:calc(100% - var(--private-modal-window-close-margin))}}@media not all and (max-width:480px){:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--private-modal-width:var(--mds-modal-window-max-width,33%)}}@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-modal-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-modal-window-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .action-close{--mds-button-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}'};var x=t("mds_modal",/** @class */function(){function t(t){var n=this;o(this,t);this.openEvent=i(this,"mdsModalOpen",7);this.showEvent=i(this,"mdsModalShow",7);this.closeEvent=i(this,"mdsModalClose",7);this.hideEvent=i(this,"mdsModalHide",7);this.t=new c({el:f,en:u,es:v,it:b});
|
|
2
|
+
// Initialised on purpose: both readers compare it against '' (the strict boolean
|
|
3
|
+
// rules forbid the truthiness check this used to be), and an undeclared field is
|
|
4
|
+
// `undefined`, not ''. See enableOverflow.
|
|
5
|
+
this.bodyOverflow="";this.cssTransitionDuration="500";this.touchMargin=50;this.hasBottom=false;this.hasTop=false;this.hasWindow=false;this.windowHeaderHeight=0;this.windowFooterHeight=0;
|
|
6
|
+
/**
|
|
7
|
+
* Specifies if the modal is opened or not
|
|
8
|
+
*/this.opened=false;
|
|
9
|
+
/**
|
|
10
|
+
* Hides the modal backdrop
|
|
11
|
+
*/this.hideBackdrop=false;
|
|
12
|
+
/**
|
|
13
|
+
* Specifies the animation position of the modal window
|
|
14
|
+
*/this.position="center";
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the animation style of the modal window
|
|
17
|
+
*/this.animation="slide";
|
|
18
|
+
/**
|
|
19
|
+
* Specifies if the component prevents the body from scrolling when modal window is opened
|
|
20
|
+
*/this.overflow="auto";
|
|
21
|
+
/**
|
|
22
|
+
* Specifies if the component can be closed with close button, or also if the backdrop background is cliccked.
|
|
23
|
+
* If `strict` is selected only the close button can dismiss the component via UI.
|
|
24
|
+
* If `relaxed` is selected the component can be dismissed also by cliccking the backdrop area.
|
|
25
|
+
*/this.interaction="relaxed";this.updateCSSCustomProps=function(){var t;if(typeof window==="undefined")return;var o=window.getComputedStyle(n.host);n.cssTransitionDuration=(t=o.getPropertyValue("--mds-modal-transition-duration"))!==null&&t!==void 0?t:"500"};this.stopIntroAnimationWindow=function(){n.setContentOverflow("auto");n.showEvent.emit();clearTimeout(n.animationDelayTimeout)};this.stopOutroAnimationWindow=function(){n.hideEvent.emit();clearTimeout(n.animationDelayTimeout)};this.disableOverflow=function(){if(typeof document!=="undefined"){if(document.body.style.overflow!==""){n.bodyOverflow=document.body.style.overflow}document.body.style.overflow="hidden"}};this.enableOverflow=function(){if(typeof document!=="undefined"){if(n.bodyOverflow!==""){document.body.style.overflow=n.bodyOverflow}else{document.body.style.removeProperty("overflow")}}};
|
|
26
|
+
// Freeze the content scroll container (overflow:hidden) for the whole slide,
|
|
27
|
+
// re-enabling it only once the window's transform transition has finished. A
|
|
28
|
+
// live overflow:auto with overflowing content janks the transform. Applied
|
|
29
|
+
// inline on the element on purpose: toggling it via a host attribute + CSS
|
|
30
|
+
// selector triggers a shadow-wide style recalc at the settle frame, which is
|
|
31
|
+
// what caused the visible jump.
|
|
32
|
+
this.setContentOverflow=function(t){if(n.windowContentWrapper){n.windowContentWrapper.style.overflow=t}};this.handleWindowTransitionEnd=function(t){if(t.propertyName!=="transform"){return}if(n.opened){n.stopIntroAnimationWindow()}else{n.stopOutroAnimationWindow()}};this.animateOpenWindow=function(){n.setContentOverflow("hidden");clearTimeout(n.animationDelayTimeout);
|
|
33
|
+
// Fallback only: `handleWindowTransitionEnd` is the primary settle. The
|
|
34
|
+
// buffer keeps this from firing before the transition actually ends.
|
|
35
|
+
n.animationDelayTimeout=setTimeout(n.stopIntroAnimationWindow.bind(n),d(n.cssTransitionDuration)+100)};this.animateCloseWindow=function(){n.setContentOverflow("hidden");clearTimeout(n.animationDelayTimeout);n.animationDelayTimeout=setTimeout(n.stopOutroAnimationWindow.bind(n),d(n.cssTransitionDuration)+100)};this.setTouchStart=function(t){n.touchStartX=t.touches[0].clientX;n.touchStartY=t.touches[0].clientY};this.setTouchEnd=function(t){var o=t.changedTouches[0].clientX;var i=t.changedTouches[0].clientY;var a=n.touchStartX-o;var e=n.touchStartY-i;
|
|
36
|
+
// if is NOT a diagonal swipe
|
|
37
|
+
if(Math.abs(a)>Math.abs(e)){if(n.position==="right"&&a>0)return;if(n.position==="left"&&a<0)return;if(Math.abs(a)>Math.abs(n.touchMargin)){n.opened=undefined}}};this.addMobileEvents=function(){n.windowElement.addEventListener("touchstart",n.setTouchStart);n.windowElement.addEventListener("touchend",n.setTouchEnd)};this.updateSlots=function(){n.hasBottom=s(n.host,"bottom");n.hasTop=s(n.host,"top");n.hasWindow=s(n.host,"window");
|
|
38
|
+
// the slotted window is NOT given a role: the `<dialog>` below is the dialog already,
|
|
39
|
+
// opened with showModal(), and a second one inside it reads as a second window
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Measures the header and the footer to pad the content: the states change
|
|
43
|
+
* only when a measure differs, so the update pass settles after one render.
|
|
44
|
+
*/this.updateWindowPaddings=function(){var t,o,i,a;var e=(t=n.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".window-header");var r=(o=n.host.shadowRoot)===null||o===void 0?void 0:o.querySelector(".window-footer");var s=(i=e===null||e===void 0?void 0:e.offsetHeight)!==null&&i!==void 0?i:0;var d=(a=r===null||r===void 0?void 0:r.offsetHeight)!==null&&a!==void 0?a:0;if(s!==n.windowHeaderHeight)n.windowHeaderHeight=s;if(d!==n.windowFooterHeight)n.windowFooterHeight=d};this.showDialog=function(){if(!n.dialogEl||n.dialogEl.open){return}
|
|
45
|
+
// `showModal()` promotes the dialog to the top layer, traps focus and inerts
|
|
46
|
+
// the page. `show()` keeps it non-modal so the page behind stays interactive,
|
|
47
|
+
// preserving the legacy `hideBackdrop` click-through behaviour.
|
|
48
|
+
if(!n.hideBackdrop){n.dialogEl.showModal()}else{n.dialogEl.show()}
|
|
49
|
+
// Measure here, not only in the lifecycle hooks: until this call the dialog is
|
|
50
|
+
// `display: none`, so a header and a footer measure 0. A modal that mounts
|
|
51
|
+
// already open never renders again on its own, so that 0 would stay and the
|
|
52
|
+
// content would sit under both bars.
|
|
53
|
+
n.updateWindowPaddings()};this.closeDialog=function(){var t;if((t=n.dialogEl)===null||t===void 0?void 0:t.open){n.dialogEl.close()}};this.handleBackdropClick=function(t){if(n.interaction==="strict"){return}
|
|
54
|
+
// A click whose target is the dialog itself (not its window contents) is a
|
|
55
|
+
// click on the backdrop area.
|
|
56
|
+
if(t.target===n.dialogEl){n.opened=undefined}};this.handleCancel=function(t){
|
|
57
|
+
// Take over the native Esc dismissal so `strict` can veto it (and, later, so
|
|
58
|
+
// the outro animation can play).
|
|
59
|
+
t.preventDefault();if(n.interaction==="strict"){return}n.opened=undefined}}t.prototype.componentWillLoad=function(){this.updateSlots();if(this.overflow==="auto"&&this.opened){this.disableOverflow()}};t.prototype.componentDidLoad=function(){var t,o;this.windowElement=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".window");this.windowContentWrapper=(o=this.host.shadowRoot)===null||o===void 0?void 0:o.querySelector(".window-content-wrapper");this.updateWindowPaddings();if(this.windowElement!=null){this.addMobileEvents();this.windowElement.addEventListener("transitionend",this.handleWindowTransitionEnd)}this.updateCSSCustomProps();
|
|
60
|
+
// The `opened` watcher does not fire for the initial value, so open the
|
|
61
|
+
// native dialog here when the component mounts already open.
|
|
62
|
+
if(this.opened){this.showDialog();this.animateOpenWindow();this.openEvent.emit()}};t.prototype.componentDidUpdate=function(){
|
|
63
|
+
// the header and the footer are hidden while their slots are empty: refresh
|
|
64
|
+
// the paddings of the content once a late `top` or `bottom` child shows them
|
|
65
|
+
this.updateWindowPaddings()};t.prototype.disconnectedCallback=function(){this.enableOverflow();clearTimeout(this.animationDelayTimeout);if(this.windowElement){this.windowElement.removeEventListener("touchstart",this.setTouchStart);this.windowElement.removeEventListener("touchend",this.setTouchEnd);this.windowElement.removeEventListener("transitionend",this.handleWindowTransitionEnd)}this.enableOverflow()};t.prototype.handleOpenProp=function(t,o){if(t){if(this.overflow==="auto"){this.disableOverflow()}this.showDialog();this.animateOpenWindow();this.openEvent.emit();return}if(!o){return}this.opened=undefined;this.closeDialog();if(this.overflow==="auto"){this.enableOverflow()}this.animateCloseWindow();this.closeEvent.emit()};t.prototype.handleHideBackdropProp=function(t){if(t===false){this.hideBackdrop=undefined}};
|
|
66
|
+
/**
|
|
67
|
+
* Closes the modal.
|
|
68
|
+
*/t.prototype.close=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.opened=undefined;return[2/*return*/]}))}))};t.prototype.render=function(){var t=this;return n(a,{key:"d9d1290316d18c043531ed170a6bfb024a02fbed","pref-animation":l.state.animation,"pref-contrast":l.state.contrast,"pref-mode":l.state.mode,"pref-theme-scheme":l.state["theme-scheme"]},n("dialog",{key:"8e27b147ca74f3cc603ea0d8a550054d9f93252d","aria-label":this.accessibleName,class:"dialog",part:"dialog",ref:function(o){return t.dialogEl=o},onClick:function(o){t.handleBackdropClick(o)},onCancel:function(o){t.handleCancel(o)}},n("slot",{key:"7c37d4ccc3569761136f8b68f90b1b14ef0cc7e8",name:"window",onSlotchange:this.updateSlots}),!this.hasWindow&&n("div",{key:"2d2d7866c320ded7d18e64482ab03cfdcde49d3a",class:"window",part:"window"},n("div",{key:"ca9e44fd2ffaa527e7b2b7cda27433fe0cec6c0b",class:r("window-header",!this.hasTop&&"window-content--empty")},n("slot",{key:"f07fda315ec1ff1d75856ce69cb1858325993d70",name:"top",onSlotchange:this.updateSlots})),n("div",{key:"a82e9e3b0d63a6d47613e4df659d89d1b8dd7d25",class:"window-content-wrapper"},n("div",{key:"b9f90dd12051d1d45942b175e63e3996d5355d30",class:"window-content",style:{paddingTop:"".concat(this.windowHeaderHeight,"px"),paddingBottom:"".concat(this.windowFooterHeight,"px")}},n("slot",{key:"7873f246acd6614d7de30c9fb57506ed5933991a"}))),n("div",{key:"09e2f16e529928ba45b91f9121599cec6f20f45d",class:r("window-footer",!this.hasBottom&&"window-content--empty")},n("slot",{key:"7fddd7d51ba0caad24d9d5f0955e16ae1403927e",name:"bottom",onSlotchange:this.updateSlots}))),!this.hasWindow&&n("mds-button",{key:"7b05643acf6e307d8e3934fdc20096438c02004a","aria-label":this.t.get("close"),class:"action-close",icon:m,variant:"light",tone:"text",size:"xl",onClick:function(){t.opened=undefined},part:"action-close"})))};Object.defineProperty(t.prototype,"host",{get:function(){return e(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{opened:[{handleOpenProp:0}],hideBackdrop:[{handleHideBackdropProp:0}]}},enumerable:false,configurable:true});return t}());x.style=y()}}}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,i,a){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function s(e){try{c(a["throw"](e))}catch(e){r(e)}}function c(e){e.done?i(e.value):n(e.value).then(o,s)}c((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,n,r,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["return"]=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(a)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(a=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;n=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(s[0]===6&&i.label<r[1]){i.label=r[1];r=s;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(s);break}if(r[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];n=0}finally{a=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-DaONbL_w.system.js","./p-BTF_aRDG.system.js","./p-hVpoPUxI.system.js"],(function(e){"use strict";var t,i,a,n,r,o;return{setters:[function(e){t=e.r;i=e.h;a=e.e;n=e.g},function(e){r=e.L},function(e){o=e.p}],execute:function(){var s="Ενέργεια";var c="Επιλογή όλων των γραμμών";var l="Αποεπιλογή όλων των γραμμών";var d={actions:s,selectAllRows:c,selectNoneRows:l};var f="Action";var u="Select all rows";var h="Deselect all rows";var b={actions:f,selectAllRows:u,selectNoneRows:h};var m="Acción";var v="Seleccionar todas las filas";var p="Deseleccionar todas las filas";var y={actions:m,selectAllRows:v,selectNoneRows:p};var w="Azione";var k="Seleziona tutte le righe";var g="Deseleziona tutte le righe";var x={actions:w,selectAllRows:k,selectNoneRows:g};var _=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-input-switch,mds-table-cell,mds-table-header-cell):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-table-header-transition-duration:var(--duration-200,.2s);--private-table-header-transition-duration:var(--mds-table-header-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));border-bottom:var(--private-cell-border-width) solid var(--private-cell-border-color);display:table-row;overflow:hidden;transition-duration:var(--private-table-header-transition-duration);transition-property:border-color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.actions{text-align:right}.selection{vertical-align:middle}.checkbox-wrapper{display:flex}: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-table-header-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-table-header-transition-duration:0s}}'};var R=e("mds_table_header",/** @class */function(){function e(e){var i=this;t(this,e);this.selectAll=false;this.hasActions=false;this.indeterminate=false;this.hasSelection=false;this.t=new r({el:d,en:b,es:y,it:x});this.handleSelectAllChange=function(e){var t,a;if(i.indeterminate){i.selectAll=true}else{i.selectAll=(t=e.detail.checked)!==null&&t!==void 0?t:false}i.indeterminate=false;(a=i.table)===null||a===void 0?void 0:a.selectAll(i.selectAll)}}
|
|
2
|
+
/**
|
|
3
|
+
* Updates the header's select-all state from the number of selected rows.
|
|
4
|
+
* @param selectedItems the number of currently selected rows
|
|
5
|
+
* @param totalItems the total number of selectable rows
|
|
6
|
+
*/e.prototype.setSelection=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,a;return __generator(this,(function(n){this.indeterminate=e!==0&&e!==t;
|
|
7
|
+
// the reference used to be looked up only on the indeterminate branch, so the first
|
|
8
|
+
// call that was NOT indeterminate - select all, or unselect the last row - threw on an
|
|
9
|
+
// undefined checkbox; and a header that is not selectable renders none at all
|
|
10
|
+
(i=this.checkboxEl)!==null&&i!==void 0?i:this.checkboxEl=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelector(".checkbox");if(!this.checkboxEl){return[2/*return*/]}
|
|
11
|
+
// totalItems 0 would otherwise read as "all of them are selected"
|
|
12
|
+
this.checkboxEl.checked=t>0&&e===t;return[2/*return*/]}))}))};e.prototype.componentWillLoad=function(){var e;this.table=this.host.closest("mds-table");
|
|
13
|
+
// standalone header (or SSR of the subtree alone): no surrounding table
|
|
14
|
+
this.hasActions=((e=this.table)===null||e===void 0?void 0:e.querySelector('mds-table-row > [slot="action"]'))!=null};e.prototype.render=function(){return i(a,{key:"cd1f0d8a5aefa3044da766c6e8f4cb40ae880057",role:"row","pref-animation":o.state.animation},this.selectable&&i("mds-table-cell",{key:"0d87e775dba458bda2fd78396e5c4f66cd665c7f",class:"selection",role:"columnheader"},i("div",{key:"ba85a1a8fad0c5fa7801581c22d888f86c99674a",class:"checkbox-wrapper"},i("mds-input-switch",{key:"b3516c6593a57fda8ceb55c77a11325a3f8d2f4c",class:"checkbox",title:this.t.get(this.selectAll?"selectNoneRows":"selectAllRows"),type:"checkbox",onMdsInputSwitchChange:this.handleSelectAllChange,indeterminate:this.indeterminate}))),i("slot",{key:"de4abfa026bfcce02ed997d5a7e3a60d3ed11d9c"}),this.hasActions&&i("mds-table-header-cell",{key:"4baee2478076ad6f0278746dbc4d9c41e0e1c194",part:"actions",class:"actions",label:this.t.get("actions")}))};Object.defineProperty(e.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());R.style=_()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,d as r,h as a,e as t,g as s}from"./p-BxPbQB28.js";import{c as i}from"./p-ChV9xqsO.js";import{K as n}from"./p-KRu9I7dw.js";import{L as o}from"./p-Kv1yahtR.js";import{p}from"./p-7-TP6wnI.js";var d={badgeDone:"Ολοκληρώθηκε",badgeCurrent:"Καθημερινή",badgeQueued:"Σε αναμονή",step:"Βήμα {{ index }}"},m={badgeDone:"Done",badgeCurrent:"Current",badgeQueued:"Queued",step:"Step {{ index }}"},c={badgeDone:"Completado",badgeCurrent:"En curso",badgeQueued:"En cola",step:"Paso {{ index }}"},b={badgeDone:"Completato",badgeCurrent:"In corso",badgeQueued:"In coda",step:"Step {{ index }}"};const u=class{constructor(t){e(this,t),this.doneEvent=r(this,"mdsStepperBarItemDone",7),this.km=new n,this.t=new o({el:d,en:m,es:c,it:b}),this.iconChecked=this.icon,this.done=!1,this.current=!1,this.typography="h6",this.showBadge=()=>this.isDone?a("mds-badge",{class:"badge",variant:"success",tone:"weak",typography:"option"},this.t.get("badgeDone")):this.isCurrent?a("mds-badge",{class:"badge",variant:"info",tone:"weak",typography:"option"},this.t.get("badgeCurrent")):a("mds-badge",{class:"badge",variant:"dark",tone:"weak",typography:"option"},this.t.get("badgeQueued"))}componentWillLoad(){this.isCurrent=this.current,this.isDone=this.done;const e=this.host.parentElement;e&&(this.index=Array.from(e.children).filter((e=>e.tagName===this.host.tagName)).indexOf(this.host))}componentDidLoad(){this.km.addElement(this.host),this.km.attachClickBehavior()}disconnectedCallback(){this.km.detachClickBehavior()}selectedHandler(e){this.isDone=e}currentHandler(e){this.isCurrent=e}render(){return a(t,{key:"12dc4ba9dbbe002327b5529070e1964af09b7c60","pref-animation":p.state.animation},a("div",{key:"0ac0651ba779da9d1bd54abbace2e6cb412954bd",class:"header"},a("mds-icon",{key:"8c811dadf67e90faece25997e904f2b75c0cb347",class:"icon",name:i(this.isDone&&!this.isCurrent?this.iconChecked:this.icon)}),a("mds-progress",{key:"a605e454f32b074a62ad4301198f8a499bd196c8","aria-hidden":"true",class:"progress",progress:this.isDone?1:0})),a("div",{key:"e4ee9389e788dcc1a2b9cbe6865735f74334c0df",class:"infos"},this.step&&a("mds-text",{key:"2148817cc5c119a6fd627458a945fcc2eeea3167",class:"step",typography:"option"},this.t.get("step",{index:this.index+1})),this.label&&a("mds-text",{key:"6ab16ea2f7d6ea9d8ba30ffce12303606cb29adc",class:"text",typography:this.typography},this.label),this.badge&&a("div",{key:"2ba2e78044bd2c2318c79f087c544a7e8be13d72",part:"badge"},this.showBadge())))}get host(){return s(this)}static get watchers(){return{done:[{selectedHandler:0}],current:[{currentHandler:0}]}}};u.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{--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);align-items:flex-start;border-radius:var(--radius-xl,20px);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));align-items:center;border-radius:var(--radius-md,12px);display:flex;gap:var(--mds-stepper-bar-item-header-gap);transition-duration:var(--private-stepper-bar-item-transition-duration);transition-property:outline,outline-offset;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));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(--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(--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}}';export{u as mds_stepper_bar_item}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,d as i,h as s,e as h,g as e}from"./p-BxPbQB28.js";const
|
|
1
|
+
import{r as t,d as i,h as s,e as h,g as e}from"./p-BxPbQB28.js";const o=class{constructor(s){t(this,s),this.changeEvent=i(this,"mdsAccordionTimerChange",7),this.currentDuration=0,this.time=0,this.duration=1e4,this.clearIntervals=()=>{"undefined"!=typeof window&&window.clearInterval(this.timeChecker),this.timeChecker=0},this.remainingTime=()=>{const t=this.selectedItemRemainingTime-((new Date).getTime()-this.timeStarted);return t>=0?t:0},this.progress=()=>Math.abs(this.remainingTime()/this.currentDuration-1),this.addTimeListener=()=>{"undefined"!=typeof window&&(this.timeChecker=window.setInterval((()=>{const t=this.progress();void 0!==this.selectedItem&&(this.selectedItem.progress=t),1===t&&(this.selectedItem.progress=0,this.startNext())}),100))},this.beginningTime=()=>(this.timeStarted=(new Date).getTime(),this.timeStarted),this.setSelectedItem=t=>{this.children.forEach(((i,s)=>{var h;s===t?(i.selected=!0,this.currentDuration=null!==(h=i.duration)&&void 0!==h?h:this.duration,this.selectedItem=i,this.changeEvent.emit({index:s})):i.selected=!1}))},this.startNext=()=>{this.setSelectedItem(this.selectedItem.uuid+1>this.children.length-1?0:this.selectedItem.uuid+1),this.startTimer()},this.startTimer=()=>{this.clearIntervals(),this.time=this.beginningTime(),this.selectedItemRemainingTime=this.currentDuration,this.addTimeListener()},this.playTimer=()=>{this.beginningTime(),this.addTimeListener()},this.pauseTimer=()=>{this.clearIntervals(),this.selectedItemRemainingTime=this.remainingTime()},this.stopTimer=()=>{this.clearIntervals()}}componentDidLoad(){this.children=this.element.querySelectorAll("mds-accordion-timer-item"),this.children.forEach(((t,i)=>{var s;t.uuid=i,t.selected&&(this.currentDuration=null!==(s=t.duration)&&void 0!==s?s:this.duration,this.selectedItem=t)})),void 0!==this.selectedItem&&this.startTimer(),this.paused&&this.pauseTimer()}disconnectedCallback(){this.stopTimer(),this.clearIntervals()}onClickSelect(t){this.clearIntervals(),null!=this.selectedItem&&(this.selectedItem.progress=0),this.setSelectedItem(t.detail.uuid),this.startTimer(),this.pauseTimer()}onSelect(t){this.clearIntervals(),this.paused=!1,null!=this.selectedItem&&(this.selectedItem.progress=0),this.setSelectedItem(t.detail.uuid),this.startTimer()}onMouseEnterSelect(){this.paused||this.pauseTimer()}onMouseLeaveSelect(){this.paused||0===this.timeChecker&&this.playTimer()}handlePaused(t){t?this.pauseTimer():this.playTimer()}render(){return s(h,{key:"6801e67ac8d8235b3c8610787fcddc6223123284"},s("slot",{key:"d9c3bebad4f570777a2d64a4ccfad242b22fd1e0"}))}get element(){return e(this)}static get watchers(){return{paused:[{handlePaused:0}]}}};o.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-accordion-timer-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-accordion-timer-progress-bar-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-accordion-timer-progress-bar-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-accordion-timer-progress-bar-thickness:calc(var(--spacing,.0025rem)*100);--mds-accordion-timer-duration:.5s;display:block}";export{o as mds_accordion_timer}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,d as a,h as e,e as i,g as s}from"./p-BxPbQB28.js";import{s as r}from"./p-CSCy6TMW.js";import{s as n}from"./p-wI0alRSO.js";import{m as o}from"./p-BVQMG7KJ.js";import{D as d}from"./p-BJtA1qmE.js";import{c as h}from"./p-ChV9xqsO.js";import{L as l}from"./p-Kv1yahtR.js";import{p as c}from"./p-7-TP6wnI.js";var m={endDate:"Ημερομηνία λήξης",from:"Από",openCalendar:"Άνοιγμα ημερολογίου",startDate:"Ημερομηνία έναρξης",to:"έως"},p={endDate:"End date",from:"From",openCalendar:"Open calendar",startDate:"Start date",to:"to"},g={endDate:"Fecha de fin",from:"De",openCalendar:"Abrir el calendario",startDate:"Fecha de inicio",to:"a"},u={endDate:"Data di fine",from:"Dal",openCalendar:"Apri il calendario",startDate:"Data di inizio",to:"al"};const v=class{constructor(e){t(this,e),this.valueChanged=a(this,"mdsInputDateRangeValueChange",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.calendarKey=0,this.internalStartDate="",this.internalEndDate="",this.visibleCalendarDate="",this.hasPreselection=!1,this.formDisabled=!1,this.t=new l({el:m,en:p,es:g,it:u}),this.startDate="",this.endDate="",this.min=null,this.max=null,this.delay=500,this.size="lg",this.hideToday=!1,this.dualCalendar=!1,this.disabled=!1,this.lastEmittedStartDate=null,this.lastEmittedEndDate=null,this.initialStartDate="",this.initialEndDate="",this.hoveredCalendarDate=null,this.syncingInputSlots=new Set,this.handleFocusOut=t=>{if(!this.host.contains(t.relatedTarget)){const t=d.fromISO(this.internalStartDate).isValid,a=d.fromISO(this.internalEndDate).isValid;t&&a&&(this.validateDateRange(),this.syncFormValue(),this.checkPreselections(),this.emitValueChanged())}},this.focusInput=t=>{t.focusInput()},this.focusDateInput=t=>{t.target===this.host&&this.focusStartDateInput(t)},this.focusStartDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="start"]'))},this.focusEndDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="end"]'))},this.nameSlottedFields=()=>{[["start",this.t.get("startDate")],["end",this.t.get("endDate")]].forEach((([t,a])=>{var e;const i=this.host.querySelector(`[slot="${t}"]`);null!==i&&r(i,"aria-label",""!==(null!==(e=this.accessibleName)&&void 0!==e?e:"")?`${this.accessibleName}, ${a}`:a)}))},this.isDisabled=()=>!!this.disabled||this.formDisabled,this.handleCalendarHover=t=>{if(""===this.internalStartDate||""!==this.internalEndDate)return void this.clearHoverPreview();const a=t.detail.hoverDate;this.hoveredCalendarDate!==a&&(this.hoveredCalendarDate=a,this.syncCalendarsHoverAttributes())},this.handleCalendarChange=t=>{this.clearHoverPreview(),this.internalStartDate=t.detail.startDate,this.updateInputValue("start",this.internalStartDate),void 0!==t.detail.endDate&&""!==t.detail.endDate?(this.internalEndDate=t.detail.endDate,this.updateInputValue("end",this.internalEndDate)):(this.internalEndDate="",this.updateInputValue("end",this.internalEndDate)),this.syncFormValue(),this.syncCalendarsSelectionAttributes(),""!==this.internalStartDate&&""!==this.internalEndDate&&(this.emitValueChanged(),this.closeDropdownAfterSelection())},this.handleCalendarNavigate=t=>{if(!this.dualCalendar)return;const a=this.getCalendars().indexOf(t.target),e=d.fromISO(t.detail.currentDate);e.isValid&&(this.visibleCalendarDate=e.minus({months:1===a?1:0}).startOf("month").toISODate())},this.handleCalendarPreselect=()=>{this.checkPreselections()},this.handleOpenCalendarClick=()=>{this.calendarKey+=1}}getCalendars(){var t,a;return Array.from(null!==(a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelectorAll("mds-calendar"))&&void 0!==a?a:[])}resolveVisibleCalendarDate(t,a){var e;return(null!==(e=[t,a].map((t=>d.fromISO(null!=t?t:""))).filter((t=>t.isValid))[0])&&void 0!==e?e:d.now()).startOf("month").toISODate()}getCalendarViewDate(t=0){const a=d.fromISO(this.visibleCalendarDate),e=d.fromISO(this.internalStartDate);let i=d.now();return a.isValid?i=a:e.isValid&&(i=e),i.startOf("month").plus({months:t}).toISODate()}setVisibleCalendarDate(t){const a=d.fromISO(t);a.isValid&&(this.visibleCalendarDate=a.startOf("month").toISODate())}closeDropdownAfterSelection(){if(0===this.delay)return;const{dropdownRef:t}=this;t&&setTimeout((()=>{t.visible=!1}),this.delay)}syncCalendarsSelectionAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{""!==this.internalStartDate?t.setAttribute("start-date",this.internalStartDate):t.removeAttribute("start-date"),""!==this.internalEndDate?t.setAttribute("end-date",this.internalEndDate):t.removeAttribute("end-date")})),this.syncCalendarsHoverAttributes()}syncCalendarsHoverAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{null!==this.hoveredCalendarDate&&""!==this.hoveredCalendarDate?t.setAttribute("hover-date",this.hoveredCalendarDate):t.removeAttribute("hover-date")}))}clearHoverPreview(){null!==this.hoveredCalendarDate&&(this.hoveredCalendarDate=null,this.syncCalendarsHoverAttributes())}isWithinRange(t){var a,e;const i=d.fromISO(null!==(a=this.min)&&void 0!==a?a:""),s=d.fromISO(null!==(e=this.max)&&void 0!==e?e:"");return!(i.isValid&&t<i||s.isValid&&t>s)}getEmittableDateRangeDetail(){const t=d.fromISO(this.internalStartDate),a=d.fromISO(this.internalEndDate);return t.isValid&&a.isValid&&this.isWithinRange(t)&&this.isWithinRange(a)?{startDate:this.internalStartDate,endDate:this.internalEndDate}:null}emitValueChanged(){const t=this.getEmittableDateRangeDetail();return!(!t||t.startDate===this.lastEmittedStartDate&&t.endDate===this.lastEmittedEndDate||(this.valueChanged.emit(t),this.lastEmittedStartDate=t.startDate,this.lastEmittedEndDate=t.endDate,0))}handleStartDateChange(t){this.syncExternalDate("start",t)}handleEndDateChange(t){this.syncExternalDate("end",t)}handleRangeChange(){this.forwardRange(!0)}handleDisabledChange(){this.forwardDisabled(!0)}forwardRange(t){["start","end"].forEach((a=>{var e,i;const s=this.slottedField(a);null!=s&&((t||""!==(null!==(e=this.min)&&void 0!==e?e:""))&&(s.min=this.min),(t||""!==(null!==(i=this.max)&&void 0!==i?i:""))&&(s.max=this.max))}))}forwardDisabled(t){["start","end"].forEach((a=>{const e=this.slottedField(a);null!=e&&(t||this.disabled)&&(e.disabled=!!this.disabled)}))}slottedField(t){var a;const e=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(`slot[name="${t}"]`);return null==e?void 0:e.assignedElements()[0]}componentWillLoad(){var t,a;if(this.internalStartDate=null!==(t=this.startDate)&&void 0!==t?t:"",this.internalEndDate=null!==(a=this.endDate)&&void 0!==a?a:"",this.initialStartDate=this.internalStartDate,this.initialEndDate=this.internalEndDate,this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.internalStartDate,this.internalEndDate),null!==this.min&&""!==this.min&&null!==this.max&&""!==this.max){const t=d.fromISO(this.min);d.fromISO(this.max)<t&&(this.max=this.min)}this.syncFormValue()}disconnectedCallback(){var t;this.host.removeEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("mdsCalendarHover",this.handleCalendarHover)}async preselect(t){null==this.togglePreselection&&(this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))),this.togglePreselection.forEach((t=>{t.selected=!1})),t.caller.selected=!0,this.clearHoverPreview(),d.fromISO(t.start).isValid&&(this.internalStartDate=t.start,this.setVisibleCalendarDate(this.internalStartDate),this.updateInputValue("start",this.internalStartDate)),void 0!==t.end?d.fromISO(t.end).isValid&&(this.internalEndDate=t.end):this.internalEndDate=t.start,this.validateDateRange(),this.updateInputValue("end",this.internalEndDate),this.syncFormValue();const a=this.getCalendars();return 0!==a.length&&(await Promise.all(a.map(((t,a)=>t.updateCurrentDate(this.getCalendarViewDate(a))))),this.closeDropdownAfterSelection()),this.emitValueChanged(),Promise.resolve()}componentDidLoad(){var t;this.nameSlottedFields(),this.forwardRange(!1),this.forwardDisabled(!1),this.updateInputListeners(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue(),this.host.addEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("mdsCalendarHover",this.handleCalendarHover)}formDisabledCallback(t){this.formDisabled=t,t&&this.dropdownRef&&(this.dropdownRef.visible=!1)}formResetCallback(){this.clearHoverPreview(),this.internalStartDate=this.initialStartDate,this.internalEndDate=this.initialEndDate,this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.initialStartDate,this.initialEndDate),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}syncExternalDate(t,a){const e=null!=a?a:"";if(this.clearHoverPreview(),"start"===t){if(e===this.internalStartDate)return;this.internalStartDate=e,this.setVisibleCalendarDate(this.internalStartDate)}else{if(e===this.internalEndDate)return;this.internalEndDate=e}this.validateDateRange(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}updateInputValue(t,a){const e=this.slottedField(t);null!=e&&(this.syncingInputSlots.add(t),e.setValue(a).finally((()=>{requestAnimationFrame((()=>{this.syncingInputSlots.delete(t)}))})))}updateInputListeners(){var t,a;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="start"]'),i=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector('slot[name="end"]');this.hasPreselection=null!==this.host.querySelector("mds-input-date-range-preselection");const s=null==e?void 0:e.assignedElements()[0];null!=s&&s.addEventListener("mdsInputDateSelect",this.createFocusoutListener("start"));const r=null==i?void 0:i.assignedElements()[0];null!=r&&r.addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}createFocusoutListener(t){return a=>{if(this.syncingInputSlots.has(t))return;const e=a;this.clearHoverPreview(),"start"===t?(this.internalStartDate=e.detail,this.setVisibleCalendarDate(this.internalStartDate)):this.internalEndDate=e.detail,this.syncFormValue()}}validateDateRange(){if(""!==this.internalStartDate&&""!==this.internalEndDate){const t=d.fromISO(this.internalStartDate);d.fromISO(this.internalEndDate)<t&&(this.internalEndDate=this.internalStartDate,this.updateInputValue("end",this.internalEndDate))}}checkPreselections(){const t=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));null!=t&&t.forEach((t=>{t.selected=!!(t.start===this.internalStartDate&&t.end===this.internalEndDate||t.start===this.internalStartDate&&this.internalStartDate===this.internalEndDate&&void 0===t.end)}))}renderCalendarPreselectionPanel(){return this.hasPreselection?e("div",{class:"calendar-preselection-panel"},e("div",{class:h("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},e("slot",{name:"calendar-preselection"}))):null}renderSingleCalendar(){return e("div",{class:"calendar-single"},this.renderCalendarPreselectionPanel(),e("mds-calendar",Object.assign({key:this.calendarKey,hideToday:this.hideToday,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}renderDualCalendars(){return e("div",{class:"calendars"},this.renderCalendarPreselectionPanel(),e("mds-calendar",Object.assign({key:`${this.calendarKey}-start`,hideToday:this.hideToday,hideNextButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})),e("mds-calendar",Object.assign({key:`${this.calendarKey}-end`,hideToday:this.hideToday,hidePreviousButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(1),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}render(){return e(i,{key:"2607e65181be58e82dfdc60e7fa25fe9af0e9bea",onClick:this.focusDateInput,"pref-animation":c.state.animation,"pref-contrast":c.state.contrast,"pref-mode":c.state.mode,"pref-theme-scheme":c.state["theme-scheme"]},e("div",{key:"b2fc51b3add5a1af0b1e8882fb2fe7993be1ff41",class:"inputs"},e("div",{key:"ac0a08547e2604c7809de7fca00c3b8ec49bac20",class:"input-element"},e("mds-text",{key:"75f8a619d3677f08e5a28fe37c5183bc45f85776",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),e("div",{key:"d8635c71cd5c5b92109c458cd7579dedc11fa6ae",class:"input-wrapper"},e("slot",{key:"119740a858bb3a25c965f00e415b6b3c4dbd0c94",name:"start"}))),e("div",{key:"65a0012f4e8fbabc0803b1182fb28a054958f3a8",class:"input-element"},e("mds-text",{key:"ce808ba8829c87fb5656f15f7d29d303cb1afffb",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),e("div",{key:"8b9a77da34a414a0f0f0d601838173c8f62be3f4",class:"input-wrapper"},e("slot",{key:"13987167edc5d7e95dc8d622d695a61e27a007c9",name:"end"})))),e("div",{key:"0f7ef1952df30caa81eb3b77970bd94900ad3313",class:"action-open-calendar-wrapper"},e("mds-button",{key:"7f189dede8d333e290cbd11d067e087556d0df3d","aria-label":this.t.get("openCalendar"),class:"action-open-calendar",size:"sm"===this.size?"sm":void 0,disabled:this.isDisabled(),variant:"dark",tone:"text",icon:o,id:"calendar-dropdown",onClick:this.handleOpenCalendarClick})),e("mds-dropdown",{key:"5122f001b1c854ddb76b19d1ea809374b0517bee",ref:t=>this.dropdownRef=t,target:"#calendar-dropdown","disable-auto-placement":!0,placement:"bottom-end",role:"group"},this.dualCalendar?this.renderDualCalendars():this.renderSingleCalendar()))}syncFormValue(){var t,a,e,i;const s=null!==(a=null===(t=this.internalStartDate)||void 0===t?void 0:t.trim())&&void 0!==a?a:"",r=null!==(i=null===(e=this.internalEndDate)||void 0===e?void 0:e.trim())&&void 0!==i?i:"";n(this.internals,""!==s||""!==r?JSON.stringify({startDate:s,endDate:r}):null)}static get formAssociated(){return!0}get host(){return s(this)}static get watchers(){return{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}],min:[{handleRangeChange:0}],max:[{handleRangeChange:0}],disabled:[{handleDisabledChange:0}]}}};v.style='@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar,mds-dropdown,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{--private-input-date-range-height:3rem;--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*400);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*1200);--mds-input-date-range-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-input-date-range-calendar-width:22rem;--mds-input-date-range-fields-firefox-justify-content:start;--mds-input-date-range-fields-gap:0 calc(var(--spacing,.0025rem)*200);--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-input-date-range-ring:0 0 0 1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1);--mds-input-date-range-shadow:0 1px 3px 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 1px 2px 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);--mds-input-date-range-transition-duration:var(--duration-300,.3s);--private-input-date-range-transition-duration:var(--mds-input-date-range-transition-duration);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:min(var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)),var(--magma-corner-cap,.5) * var(--private-input-date-range-height));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));corner-shape:var(--magma-corner-shape,squircle);container-type:inline-size;cursor:text;display:flex;gap:calc(var(--spacing,.0025rem)*200);overflow:visible;position:relative;--mds-input-date-range-icon-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-date-range-variant-color-rgb:0 0 0}.date-preselection{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.inputs{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-hack,.875rem);font-weight:var(--tw-font-weight,var(--text-size-code-hack--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-hack--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--mds-input-date-range-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:inherit;box-shadow:var(--mds-input-date-range-ring),var(--mds-input-date-range-shadow);box-sizing:border-box;color:inherit;corner-shape:inherit;align-items:center;border:0;display:inline-flex;flex-wrap:wrap;gap:var(--mds-input-date-range-fields-gap,0 calc(var(--spacing,.0025rem)*200));margin:0;min-height:var(--private-input-date-range-height);overflow:hidden;padding-left:var(--private-input-date-range-padding-inline);padding-right:var(--private-input-date-range-calendar-area);text-overflow:ellipsis;transition-duration:var(--private-input-date-range-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:100%}.input-element{align-items:baseline;display:inline-flex}:host(:focus-within) .inputs{--tw-outline-style:none;outline-style:none;transition-duration:var(--default-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--default-transition-timing-function);--mds-input-date-range-ring:0 0 0 3px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/1);--mds-input-date-range-shadow:0 4px 6px 3px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 2px 4px -1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);transition-duration:var(--duration-300,.3s);transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input-wrapper{display:flex;flex-shrink:0}:host ::slotted(mds-input-date){color:inherit}.date-label{margin-left:calc(var(--spacing,.0025rem)*50);margin-right:calc(var(--spacing,.0025rem)*50);min-width:min-content;white-space:nowrap}.date-label:first-child{margin-left:0}.calendars{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}.calendar-preselection-panel{align-content:start;background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-sizing:border-box;display:grid;min-inline-size:max-content;padding:calc(var(--spacing,.0025rem)*400)}.calendar-single{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}:is(.calendar-single,.calendars) mds-calendar{flex:0 0 var(--mds-input-date-range-calendar-width,22rem);inline-size:var(--mds-input-date-range-calendar-width,22rem);max-inline-size:var(--mds-input-date-range-calendar-width,22rem);min-inline-size:var(--mds-input-date-range-calendar-width,22rem)}.action-open-calendar-wrapper{align-items:center;aspect-ratio:1;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0}.action-open-calendar{--mds-button-color:var(--mds-input-date-range-icon-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));align-self:center}mds-dropdown{padding:0}:host(:disabled:not([disabled=false])),:host([disabled]:not([disabled=false])){color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));cursor:default}:host(:disabled:not([disabled=false])) .inputs,:host([disabled]:not([disabled=false])) .inputs{background-color:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([size=md]){--private-input-date-range-height:calc(var(--spacing,.0025rem)*900);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*300);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*1000)}:host([size=sm]){--private-input-date-range-height:calc(var(--spacing,.0025rem)*700);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*200);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*800)}: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-input-date-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([pref-contrast=more]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}@supports ((-moz-appearance:none)){.action-open-calendar{display:none}.inputs{justify-content:var(--mds-input-date-range-fields-firefox-justify-content,start);padding-right:calc(var(--spacing,.0025rem)*400)}}:host(:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-input-date-range-variant-color-rgb:var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))}:host([variant=ai]){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-input-tip-background:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=ai]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-input-date-range-variant-color-rgb:var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245))}:host([variant=info]){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=info]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=success]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=warning]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=error]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}@media (forced-colors:active){:host(:focus-within) .inputs{outline:2px solid #0000;outline-offset:2px}}@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-input-date-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .counter-button:hover{--mds-button-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-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}}';export{v as mds_input_date_range}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,d as i,h as a,e,g as r}from"./p-BxPbQB28.js";import{c as s}from"./p-ChV9xqsO.js";import{m as n}from"./p-DiWN48aq.js";import{m as o}from"./p-Ccz0jCNB.js";import{m as c}from"./p-D17B058a.js";import{m as h}from"./p-CvUz9jjh.js";import{s as d}from"./p-wI0alRSO.js";import{u as l}from"./p-8yWTOQiz.js";import{L as p}from"./p-Kv1yahtR.js";import{h as u}from"./p-CSCy6TMW.js";import{p as m}from"./p-7-TP6wnI.js";var v='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>',g='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"/><path d="M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"/></svg>',b={decrease:"Μείωση",hidePassword:"Απόκρυψη κωδικού",increase:"Αύξηση",showPassword:"Εμφάνιση κωδικού",speechToTextError:"Η φωνητική υπαγόρευση δεν υποστηρίζεται από αυτό το πρόγραμμα περιήγησης",speechToTextOff:"Διακοπή φωνητικής υπαγόρευσης",speechToTextOn:"Έναρξη φωνητικής υπαγόρευσης"},f={decrease:"Decrease",hidePassword:"Hide password",increase:"Increase",showPassword:"Show password",speechToTextError:"Voice dictation is not supported by this browser",speechToTextOff:"Stop voice dictation",speechToTextOn:"Start voice dictation"},x={decrease:"Disminuir",hidePassword:"Ocultar contraseña",increase:"Aumentar",showPassword:"Mostrar contraseña",speechToTextError:"El dictado por voz no es compatible con este navegador",speechToTextOff:"Detener dictado por voz",speechToTextOn:"Iniciar dictado por voz"},w={decrease:"Diminuisci",hidePassword:"Nascondi password",increase:"Aumenta",showPassword:"Visualizza password",speechToTextError:"Dettatura vocale non supportata da questo browser",speechToTextOff:"Ferma dettatura vocale",speechToTextOn:"Inizia dettatura vocale"};const y=()=>null,z=t=>t.length>0?null:{required:""},k=(()=>{try{return RegExp("","v").flags}catch(t){return"u"}})(),C=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,T=t=>""===t||C.test(t)?null:{email:"indirizzo email non valido"},A=t=>{if(""===t)return null;try{return new URL(t),null}catch(t){return{url:"url non valido"}}},M=t=>{if(""===t)return null;const i={piva:"partita iva non valida"};if(!/^\d{11}$/.test(t))return i;const a=t.split("").map(Number);return(10-a.slice(0,10).reduce(((t,i,a)=>{if(a%2==0)return t+i;const e=2*i;return t+(e>9?e-9:e)}),0)%10)%10===a[10]?null:i},L=t=>{if(""===t)return null;const i={cc:"numero di carta non valido"};if(!/^\d+(?:[ -]\d+)*$/.test(t))return i;const a=t.replace(/[ -]/g,"");return a.length<13||a.length>19?i:a.split("").reverse().map(Number).reduce(((t,i,a)=>{if(a%2==0)return t+i;const e=2*i;return t+(e>9?e-9:e)}),0)%10==0?null:i},N=t=>{if(""===t)return null;if(Number.isNaN(t.slice(0,-1))||10!==t.length&&13!==t.length)return{"isbn-error":"formato isbn non correto"};const i=t.split("").map((t=>"X"===t?10:Number(t)));let a=0;return a=10===t.length?i.reduce(((t,i,a)=>t+(10-a)*i),0)%11:i.reduce(((t,i,a)=>t+i*(a%2==0?1:3)),0)%10,0===a?null:{"isbn-error":"codice isbn non valido"}};class V{constructor(){this._validators=[],this._errors=null,this.isValid=!0}addValidator(t){Array.isArray(t)?this._validators.push(...t):this._validators.push(t)}_hasValidator(t,i){return Array.isArray(t)?t.includes(i):t===i}hasValidator(t){return t?this._hasValidator(this._validators,t):this._validators.length>0}removeValidator(t){this._validators=this._validators.filter((i=>!this._hasValidator(t,i)))}check(t){const i=this._validators.map((i=>i(t))).reduce(((t,i)=>Object.assign(Object.assign({},t),i)),y);return 0===Object.keys(i).length?null:i}validate(t){this._errors=this.check(t),this.isValid=!this._errors}get errors(){return this._errors}}class P{}P.CF_Regex=/^(?:[A-Z][AEIOU][AEIOUX]|[AEIOU]X{2}|[B-DF-HJ-NP-TV-Z]{2}[A-Z]){2}(?:[\dLMNP-V]{2}(?:[A-EHLMPR-T](?:[04LQ][1-9MNP-V]|[15MR][\dLMNP-V]|[26NS][0-8LMNP-U])|[DHPS][37PT][0L]|[ACELMRT][37PT][01LM]|[AC-EHLMPR-T][26NS][9V])|(?:[02468LNQSU][048LQU]|[13579MPRTV][26NS])B[26NS][9V])(?:[A-MZ][1-9MNP-V][\dLMNP-V]{2}|[A-M][0L](?:[1-9MNP-V][\dLMNP-V]|[0L][1-9MNP-V]))[A-Z]$/i,P.CF_MASK="A{6}(99|AA)A(99|AA)A(999|AAA)A",P.CC_MASK="9999-9999-9999-9999";class I{constructor(t){this.validator=new V,this.pattern=t}mask(t){if(!this.pattern)throw new Error("no pattern found, set pattern before mask")}isValid(t){return this.validator.validate(t),this.validator.isValid}}function R(t){let i;switch(t){case"tel":default:i=new I("");break;case"email":i=new I(""),i.validator.addValidator(T);break;case"url":i=new I(""),i.validator.addValidator(A);break;case"cc":i=new I(P.CC_MASK),i.validator.addValidator(L);break;case"cf":i=new I(P.CF_MASK),i.validator.addValidator((t=>""===t||P.CF_Regex.test(t)?null:{"cf-regex":"Codice fiscale inserito non corretto"})),i.validator.addValidator((t=>""===t||16===t.length?null:{"cf-length":"Codice fiscale deve essere lungo 16 caratteri"}));break;case"isbn":i=new I,i.validator.addValidator(N);break;case"piva":i=new I(""),i.validator.addValidator(M)}return i}const O=["cf-length","cf-regex","isbn-error"],S=class{constructor(a){t(this,a),this.changeEvent=i(this,"mdsInputChange",7),this.keyDownEvent=i(this,"mdsInputKeydown",7),this.blurEvent=i(this,"mdsInputBlur",7),this.focusEvent=i(this,"mdsInputFocus",7),this.speechEvent=i(this,"mdsInputSpeechEnd",7),this.validationEvent=i(this,"mdsInputValidation",7),a.$hostElement$["s-ei"]?this.internals=a.$hostElement$["s-ei"]:(this.internals=a.$hostElement$.attachInternals(),a.$hostElement$["s-ei"]=this.internals),this.defaultValue="",this.inputValidation=R("text"),this.customValidators=[],this.validated=!1,this.speechToTextLabelKey="speechToTextOn",this.speechToTextIcon=g,this.hasFocus=!1,this.isRecording=!1,this.countVariant="count-empty",this.isPasswordVisible=!1,this.t=new p({el:b,en:f,es:x,it:w}),this.formDisabled=!1,this.autocomplete="off",this.autofocus=!1,this.await=!1,this.controlsLayout="vertical",this.controlsIcon="arrow",this.disabled=!1,this.readonly=!1,this.required=!1,this.variant="primary",this.size="lg",this.type="text",this.typography="detail",this.value="",this.isDisabled=()=>!!this.disabled||this.formDisabled,this.canEdit=()=>!this.isDisabled()&&!this.readonly,this.countMaxLength=()=>{var t,i,a;if(void 0===this.maxlength||0===this.maxlength||Number.isNaN(this.maxlength))return;if(void 0===this.value)return;this.currentLengthLabel=`${null!==(i=null===(t=this.value)||void 0===t?void 0:t.length)&&void 0!==i?i:0} / ${this.maxlength}`;const e=Math.round(100*this.value.length/this.maxlength);this.countVariant=(null===(a=this.value)||void 0===a?void 0:a.length)!==this.maxlength?e>=100?"count-full":e>=75?"count-almost-full":e>=50?"count-almost":e>=25?"count-incomplete":"count-empty":"count-full"},this.onInput=t=>{const i=t.target;i&&(this.value=i.value,d(this.internals,this.value))},this.onKeyDown=t=>{this.keyDownEvent.emit(t)},this.onBlur=()=>{this.hasFocus=!1,this.validateInput(),this.blurEvent.emit()},this.onFocus=t=>{const i=t.target;this.hasFocus=!0,this.focusEvent.emit(),this.readonly&&setTimeout((()=>{i.select()}),10)},this.stepUp=()=>{this.nativeInput&&this.canEdit()&&(this.nativeInput.stepUp(),this.value=this.nativeInput.value)},this.stepDown=()=>{this.nativeInput&&this.canEdit()&&(this.nativeInput.stepDown(),this.value=this.nativeInput.value)},this.toggleTextRecognition=()=>{if(this.isRecording||this.canEdit()){if(this.isRecording=!this.isRecording,!this.isRecording)return this.speechToTextLabelKey="speechToTextOn",this.speechToTextIcon=g,void this.stopRecognition();this.speechToTextLabelKey="speechToTextOff",this.speechToTextIcon=h,this.startRecognition()}},this.handlePasswordToggleClick=()=>{this.isPasswordVisible=!this.isPasswordVisible},this.onSpeechRecognitionError=()=>{console.error("SpeechRecognition API may not work properly on Chrome based browsers."),this.speechButton.classList.remove("mic-toggle-button--recording"),this.speechButton.classList.add("toggle-button--error"),this.isRecording=!1,this.speechToTextLabelKey="speechToTextError",this.speechToTextIcon='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10.8 4.9c0-.66.54-1.2 1.2-1.2s1.2.54 1.2 1.2l-.01 3.91L15 10.6V5c0-1.66-1.34-3-3-3c-1.54 0-2.79 1.16-2.96 2.65l1.76 1.76V4.9zM19 11h-1.7c0 .58-.1 1.13-.27 1.64l1.27 1.27c.44-.88.7-1.87.7-2.91zM4.41 2.86L3 4.27l6 6V11c0 1.66 1.34 3 3 3c.23 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52c-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28a7.13 7.13 0 0 0 2.55-.9l4.2 4.2l1.41-1.41L4.41 2.86z"/></svg>'},this.startRecognition=()=>{var t,i,a;null==this.speechButton&&(this.speechButton=null===(i=null===(t=this.el)||void 0===t?void 0:t.shadowRoot)||void 0===i?void 0:i.querySelector(".mic-toggle-button"));const e=null!==(a=window.SpeechRecognition)&&void 0!==a?a:window.webkitSpeechRecognition;if(!e)return void this.onSpeechRecognitionError();this.value="",this.recognition=new e,this.recognition.continuous=!0,this.recognition.lang=navigator.language||"it-IT",this.recognition.interimResults=!0,this.recognition.maxAlternatives=1;let r="",s=0;this.recognition.onresult=t=>{if(!this.canEdit())return void(this.isRecording&&this.toggleTextRecognition());const i=t.results[s];if(i.isFinal)return r+=i[0].transcript,this.value=r,void(s+=1);this.value=r+i[0].transcript},this.recognition.onerror=t=>{console.error("SpeechRecognition API error:",t.error),this.onSpeechRecognitionError()},this.recognition.start()},this.stopRecognition=()=>{this.recognition&&(this.recognition.stop(),this.speechEvent.emit())}}formDisabledCallback(t){this.formDisabled=t}formResetCallback(){const t=this.validated;this.validated=!1,this.isValid=!(this.required&&""===this.defaultValue),this.value=this.defaultValue,t&&(this.variant="primary")}connectedCallback(){this.datalistId=`datalist-${u()}`}componentWillLoad(){var t,i,a;if(this.defaultValue=null!==(t=this.value)&&void 0!==t?t:"",this.el.hasAttribute("tabindex")){const t=this.el.getAttribute("tabindex");this.tabindex=null!==t?parseInt(t):void 0,this.el.removeAttribute("tabindex")}d(this.internals,null!==(i=this.value)&&void 0!==i?i:null),this.maxLengthChanged(this.maxlength),this.buildValidation(),this.isValid=!(this.required&&""===(null!==(a=this.value)&&void 0!==a?a:""))}componentDidLoad(){var t,i;this.autofocus&&(null===(t=this.nativeInput)||void 0===t||t.focus()),this.variantChanged(null!==(i=this.variant)&&void 0!==i?i:"primary")}componentDidRender(){this.updateFormValidity()}buildValidation(){var t,i;const a=R(null!==(t=this.type)&&void 0!==t?t:"text"),{validator:e}=a,r=this.numericBound(this.max),s=this.numericBound(this.min);var n;this.required&&e.addValidator(z),void 0!==r&&e.addValidator((t=>i=>{if(""===i||null===t)return null;const a=parseFloat(i);return!isNaN(a)&&a>t?{max:`valore massimo ${t}`}:null})(r)),void 0!==s&&e.addValidator((t=>i=>{if(""===i||null===t)return null;const a=parseFloat(i);return!isNaN(a)&&a<t?{min:`valore minimo ${t}`}:null})(s)),void 0===this.maxlength||0===this.maxlength||Number.isNaN(this.maxlength)||e.addValidator((n=this.maxlength,t=>""===t||null===n?null:t.length>n?{minLenght:`La lunghezza massima accettata è ${n}`}:null)),void 0===this.minlength||0===this.minlength||Number.isNaN(this.minlength)||e.addValidator((t=>i=>""===i||null===t?null:i.length<t?{minLenght:`La lunghezza minima accettata è ${t}`}:null)(this.minlength));const o=this.patternApplies()?(t=>{let i;try{i=new RegExp(`^(?:${t})$`,k)}catch(t){return null}return t=>""===t||i.test(t)?null:{pattern:"formato non valido"}})(null!==(i=this.pattern)&&void 0!==i?i:""):null;o&&e.addValidator(o),e.addValidator(this.customValidators),this.inputValidation=a}patternApplies(){var t,i;return""!==(null!==(t=this.pattern)&&void 0!==t?t:"")&&!["date","number","textarea","time"].includes(null!==(i=this.type)&&void 0!==i?i:"text")}numericBound(t){if(null==t||""===t)return;const i=Number(t);return Number.isNaN(i)?void 0:i}updateFormValidity(){var t;const i=null!==(t=this.value)&&void 0!==t?t:"",a=this.inputValidation.validator.check(i),e=a?((t,i,a)=>{const[e]=Object.keys(t);switch(e){case"required":return{rule:"required"};case"max":return{rule:"max",context:{max:a.max}};case"min":return{rule:"min",context:{min:a.min}};case"minLenght":return void 0!==a.maxlength&&i.length>a.maxlength?{rule:"maxlength",context:{maxlength:a.maxlength}}:{rule:"minlength",context:{minlength:a.minlength}};case"pattern":return{rule:"pattern"};case"email":return{rule:"email"};case"url":return{rule:"url"};case"piva":return{rule:"vatNumber"};case"cc":return{rule:"cardNumber"};default:return{rule:"invalid",message:O.includes(e)?void 0:t[e]}}})(a,i,{max:this.numericBound(this.max),maxlength:this.maxlength,min:this.numericBound(this.min),minlength:this.minlength}):void 0;l(this.internals,e,this.nativeInput)}invalidHandler(){this.validateInput()}validationRulesChanged(){var t;this.buildValidation(),this.updateFormValidity(),this.validated?this.inputValidation.validator.hasValidator()?this.validateInput():(this.validated=!1,this.isValid=!0,this.variant="primary"):this.isValid=!(this.required&&""===(null!==(t=this.value)&&void 0!==t?t:""))}valueChanged(){var t;this.changeEvent.emit({value:this.value}),d(this.internals,null!==(t=this.value)&&void 0!==t?t:null),this.updateFormValidity(),void 0!==this.maxlength&&this.countMaxLength(),""!==this.value&&(this.isValid||this.validateInput())}variantChanged(t){"ai"===t&&void 0===this.icon&&(this.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M10 11H8V8h2zM16 11h-2V8h2z"/>\n <path fill-rule="evenodd" d="M21.544 10.436a3 3 0 0 1 0 3.128l-3.667 6A3 3 0 0 1 15.317 21H8.683a3 3 0 0 1-2.56-1.436l-3.666-6a3 3 0 0 1 0-3.128l3.667-6A3 3 0 0 1 8.683 3h6.635a3 3 0 0 1 2.56 1.436zM4.162 11.479a1 1 0 0 0 0 1.043l3.668 6a1 1 0 0 0 .853.478h6.634a1 1 0 0 0 .853-.479l3.667-6a1 1 0 0 0 0-1.042l-3.667-6A1 1 0 0 0 15.317 5H8.683a1 1 0 0 0-.853.479z" clip-rule="evenodd"/>\n <path d="M16.707 14.707C15.477 15.937 13.698 16.5 12 16.5s-3.477-.563-4.707-1.793l1.414-1.414c.77.77 1.991 1.207 3.293 1.207s2.523-.437 3.293-1.207z"/>\n</svg>\n')}maxLengthChanged(t){void 0!==t&&(t<=0?this.maxlength=void 0:this.countMaxLength())}async addValidator(t){return this.customValidators.push(t),this.inputValidation.validator.addValidator(t),this.updateFormValidity(),Promise.resolve()}async removeValidator(t){this.customValidators=this.customValidators.filter((i=>i!==t)),this.inputValidation.validator.removeValidator(t),this.updateFormValidity()}async hasValidator(t){return this.inputValidation.validator.hasValidator(t)}async getErrors(){return Promise.resolve(this.inputValidation.validator.errors)}validateInput(){var t,i;return this.inputValidation.validator.hasValidator()&&(this.validated=!0,this.isValid=this.inputValidation.isValid(null!==(t=this.value)&&void 0!==t?t:""),this.variant=""!==(null!==(i=this.value)&&void 0!==i?i:"")||this.required?this.isValid?"success":"error":"primary",this.validationEvent.emit(this.isValid)),this.isValid}disabledChanged(t){t&&d(this.internals,null)}async setFocus(){this.nativeInput&&this.nativeInput.focus()}getInputElement(){return Promise.resolve(this.nativeInput)}buttonSize(){return"sm"===this.size||"md"===this.size?"sm":void 0}render(){var t,i,r;return a(e,{key:"db8eb03875d46ea1b74639c6e885e68a1e87645a","pref-animation":m.state.animation,"pref-contrast":m.state.contrast,"pref-mode":m.state.mode,"pref-theme-scheme":m.state["theme-scheme"]},"number"===this.type&&"horizontal"===this.controlsLayout&&a("mds-button",{key:"79edd4ce13f85705854a5dc16d10d10179dd6dcb",class:"counter-button counter-button--horizontal counter-button--decrease",icon:"arrow"===this.controlsIcon?n:c,disabled:!this.canEdit(),onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),variant:"dark",tone:"text",part:"counter-button-decrease"}),"textarea"===this.type?a("textarea",{"aria-label":this.accessibleName,class:s("input",(null!==(t=this.icon)&&void 0!==t?t:this.await)&&"has-icon",this.mic&&"has-right-icon"),autoFocus:this.autofocus,disabled:this.isDisabled(),maxLength:this.maxlength,minLength:this.minlength,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.onInput,onKeyDown:this.onKeyDown,part:"field",placeholder:this.placeholder,readOnly:this.readonly,ref:t=>this.nativeInput=t,required:this.required,tabIndex:this.tabindex,value:this.value}):a("input",{"aria-label":this.accessibleName,class:s("input",(null!==(i=this.icon)&&void 0!==i?i:this.await)&&"has-icon",this.mic&&"has-right-icon"),autoComplete:this.autocomplete,autoFocus:this.autofocus,disabled:this.isDisabled(),max:this.max,maxLength:this.maxlength,min:this.min,minLength:this.minlength,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.onInput,onKeyDown:this.onKeyDown,pattern:this.pattern,list:this.datalistId,part:"field",placeholder:this.placeholder,readOnly:this.readonly,ref:t=>this.nativeInput=t,required:this.required,step:this.step,tabIndex:this.tabindex,type:"password"===this.type&&this.isPasswordVisible?"text":this.type,value:this.value}),"number"===this.type&&"vertical"===this.controlsLayout&&a("div",{key:"18b7cb038105f97ccd157386fe26da85a878122f",class:"counter counter--vertical"},a("mds-button",{key:"690c83c066e014e85ac2b18cd8002f73beb40b40",class:"counter-button",icon:"arrow"===this.controlsIcon?o:v,disabled:!this.canEdit(),onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),variant:"dark",size:"sm",tone:"text",part:"counter-button-increase"}),a("mds-button",{key:"6f6a391459cc5bd3101862cc3a1f0fdd717abb7b",class:"counter-button",icon:"arrow"===this.controlsIcon?n:c,disabled:!this.canEdit(),onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),variant:"dark",size:"sm",tone:"text",part:"counter-button-decrease"})),"number"===this.type&&"horizontal"===this.controlsLayout&&a("mds-button",{key:"aadec76b3ad7e8ac2cafda828edc779b944f3da4",class:"counter-button counter-button--horizontal counter-button--increase",variant:"dark",tone:"text",icon:"arrow"===this.controlsIcon?o:v,disabled:!this.canEdit(),onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),"password"===this.type&&a("mds-button",{key:"7053cb558a6d167f562d55622df978b13a92b3a9",class:"password-toggle-button",size:this.buttonSize(),variant:"dark",tone:"text",icon:this.isPasswordVisible?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 7c2.76 0 5 2.24 5 5c0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75c-1.73-4.39-6-7.5-11-7.5c-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28l.46.46A11.804 11.804 0 0 0 1 12c1.73 4.39 6 7.5 11 7.5c1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22L21 20.73L3.27 3L2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65c0 1.66 1.34 3 3 3c.22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53c-2.76 0-5-2.24-5-5c0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15l.02-.16c0-1.66-1.34-3-3-3l-.17.01z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5s-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3s3-1.34 3-3s-1.34-3-3-3z"/></svg>',disabled:this.isDisabled(),onClick:this.handlePasswordToggleClick,tabindex:"0",title:this.t.get(this.isPasswordVisible?"hidePassword":"showPassword"),part:"password-toggle-button"}),"password"===this.type&&!this.isPasswordVisible&&(null===(r=this.value)||void 0===r?void 0:r.length)>0&&a("div",{key:"8cb8516d89aed2b4b3cd8de0bad8ae85c6daabed",class:"password-mask"},a("div",{key:"168ecf366efc996bfce7ceb280a742224f575e21",class:"password-mask-items",part:"password-mask-items"},Array.from({length:this.value.length}).map(((t,i)=>a("div",{key:i,class:"password-mask-item",part:"password-mask-item"}))))),this.mic&&a("mds-button",{key:"df4da9c8096b299e8e503efbfd2de66a4a0f8177",class:s("mic-toggle-button",this.isRecording&&"mic-toggle-button--recording"),size:this.buttonSize(),icon:this.speechToTextIcon,disabled:!this.canEdit(),onClick:this.toggleTextRecognition,tabindex:"0",title:this.t.get(this.speechToTextLabelKey),variant:"dark",tone:"text",part:"mic-toggle-button"}),a("mds-input-tip",{key:"c3fccf1f47ee3a490e96a69b8b41d299ac196f29",position:"top",active:this.hasFocus,part:"tip-top"},this.isDisabled()&&a("mds-input-tip-item",{key:"62a0a9283928f2b71e809c68448d6bede7844a97",expanded:!0,variant:"disabled"}),this.readonly&&a("mds-input-tip-item",{key:"b396e4ed2ffbb2cd73204f81b2969c6b3917b0ed",expanded:!0,variant:"readonly"}),this.required&&a("mds-input-tip-item",{key:"7e0c5e453c6cf5c1ff53c3551617b8afe55f0671",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),a("mds-input-tip",{key:"6598be9176967f583edfe7dceb65b19f05266fac",position:"bottom",active:this.hasFocus,part:"tip-bottom"},this.tip&&a("mds-input-tip-item",{key:"559612feb86c1d012e94452c8e3cbaf2c059e817",expanded:!0,variant:"text"},this.tip),this.maxlength&&a("mds-input-tip-item",{key:"c00735973f6362d539d24abcb2e999731a5c6808",part:"tip-count",expanded:!0,variant:this.countVariant},this.currentLengthLabel)),this.datalist&&a("datalist",{key:"2222597fdbb97c26874360df7d02f9c0f913c1f5",id:this.datalistId,class:"datalist"},this.datalist.map(((t,i)=>a("option",{key:i,value:t})))),this.icon&&!this.await&&a("mds-icon",{key:"7f481fc7b3d165e931a6995405514242bd232277",class:s("icon",this.variant),name:this.icon}),a("mds-spinner",{key:"d1004e501bf1ffa8a041d0ea5dbc5d91da854adf",running:this.await,class:s("await",this.variant)}))}static get formAssociated(){return!0}get el(){return r(this)}static get watchers(){return{max:[{validationRulesChanged:0}],maxlength:[{validationRulesChanged:0},{maxLengthChanged:0}],min:[{validationRulesChanged:0}],minlength:[{validationRulesChanged:0}],pattern:[{validationRulesChanged:0}],required:[{validationRulesChanged:0}],type:[{validationRulesChanged:0}],value:[{valueChanged:0}],variant:[{variantChanged:0}],disabled:[{disabledChanged:0}]}}};S.style='@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-icon,mds-input-tip,mds-input-tip-item,mds-spinner):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-input-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-input-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-input-placeholder-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-placeholder-focus-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-input-placeholder-hover-color:var(--mds-input-placeholder-default-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-input-ring:0 0 0 1px rgb(var(--mds-input-variant-color-rgb,0 0 0)/.1);--mds-input-shadow:0 1px 3px 0 rgb(var(--mds-input-variant-color-rgb,0 0 0)/.1),0 1px 2px 0 rgb(var(--mds-input-variant-color-rgb,0 0 0)/.06);--mds-input-textarea-field-sizing:content;--mds-input-textarea-resize:none;--mds-input-textarea-max-height:calc(var(--spacing,.0025rem)*6400);--mds-input-textarea-min-height:calc(var(--spacing,.0025rem)*2400);--mds-input-tip-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*100);--mds-input-tip-horizontal-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-vertical-offset:calc(var(--spacing,.0025rem)*100);--mds-input-variant-color-rgb:var(--magma-accent-fg,var(--variant-primary-03,7 76 204));--mds-input-border-radius:min(var(--magma-radius-xl,var(--radius-squircle-xl,36px)),var(--magma-corner-cap,.5) * var(--private-input-height));--mds-input-transition-duration:var(--duration-300,.3s);--mds-input-controls-border:2px solid rgb(var(--magma-border-muted,var(--border-neutral-muted,219 219 219)));--mds-input-controls-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--private-input-transition-duration:var(--mds-input-transition-duration);--private-input-height:3rem;--private-input-padding-block:calc(var(--spacing,.0025rem)*300);--private-input-padding-inline:calc(var(--spacing,.0025rem)*400);--private-input-icon-size:24px;--private-input-icon-offset-block:calc(var(--spacing,.0025rem)*300);--private-input-icon-offset-inline:calc(var(--spacing,.0025rem)*300);--private-input-control-size:calc(var(--spacing,.0025rem)*1200);--private-input-counter-width:calc(var(--spacing,.0025rem)*700);--private-input-counter-height:calc(var(--spacing,.0025rem)*600);--private-input-toggle-offset:calc(var(--spacing,.0025rem)*150);--private-input-toggle-padding:calc(var(--spacing,.0025rem)*1000);--private-input-toggle-area:calc(var(--spacing,.0025rem)*1200);border-radius:var(--mds-input-border-radius);corner-shape:var(--magma-corner-shape,squircle);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));gap:calc(var(--spacing,.0025rem)*200);line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;container-type:inline-size;display:flex;position:relative;--mds-input-icon-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-variant-color-rgb:0 0 0}:host([typography=detail]) .input{font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=snippet]) .input{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.input{font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--mds-input-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:inherit;box-shadow:var(--mds-input-ring),var(--mds-input-shadow);box-sizing:border-box;color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));corner-shape:inherit;border:0;margin:0;max-width:100%;min-height:var(--private-input-height);overflow:hidden;padding:var(--private-input-padding-block) var(--private-input-padding-inline);text-overflow:ellipsis;transition-duration:var(--private-input-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:100%}.input::placeholder{color:var(--mds-input-placeholder-default-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));transition-duration:var(--duration-300,.3s);transition-property:color;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input:hover::placeholder{color:var(--mds-input-placeholder-hover-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:focus::placeholder{color:var(--mds-input-placeholder-focus-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input::-webkit-inner-spin-button,.input::-webkit-outer-spin-button{appearance:none;display:none;margin:0}:host([type=textarea]){--mds-input-border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px))}:host textarea.input,:host([typography]) textarea.input{border-radius:var(--mds-input-border-radius);field-sizing:var(--mds-input-textarea-field-sizing,content);max-height:var(--mds-input-textarea-max-height,calc(var(--spacing,.0025rem)*6400));min-height:var(--mds-input-textarea-min-height,calc(var(--spacing,.0025rem)*2400));overflow:auto;resize:var(--mds-input-textarea-resize,none)}@container style(--mds-input-textarea-resize:none){:host textarea.input,:host([typography]) textarea.input{border-bottom-right-radius:0}}.input:focus{--tw-outline-style:none;outline-style:none;--mds-input-ring:0 0 0 3px rgb(var(--mds-input-variant-color-rgb,0 0 0)/1);--mds-input-shadow:0 4px 6px 3px rgb(var(--mds-input-variant-color-rgb,0 0 0)/.1),0 2px 4px -1px rgb(var(--mds-input-variant-color-rgb,0 0 0)/.06)}.input:disabled{background-color:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}.input:disabled,.input:disabled::placeholder{color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)))}.input.has-icon{padding-left:calc(var(--private-input-icon-offset-inline) + var(--private-input-icon-size) + var(--spacing,.0025rem)*200)}.input.has-right-icon{padding-right:calc(var(--private-input-icon-offset-inline) + var(--private-input-icon-size) + var(--spacing,.0025rem)*200)}.await,.icon{fill:var(--mds-input-icon-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));left:var(--private-input-icon-offset-inline);position:absolute;top:var(--private-input-icon-offset-block)}.await{color:var(--mds-input-icon-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));height:var(--private-input-icon-size);width:var(--private-input-icon-size)}.counter{border-left:var(--mds-input-controls-border);display:flex;flex-direction:column;gap:0;position:absolute;right:0}.counter-button{aspect-ratio:unset;border:0;border-radius:var(--mds-input-border-radius);fill:var(--mds-input-controls-color);height:var(--private-input-counter-height);min-height:0;width:var(--private-input-counter-width)}.counter .counter-button:first-child{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mds-input-border-radius)}.counter .counter-button:last-child{border-bottom-left-radius:0;border-bottom-right-radius:var(--mds-input-border-radius);border-top-left-radius:0;border-top-right-radius:0}.counter-button--horizontal{bottom:0;height:var(--private-input-control-size);position:absolute;top:0;width:var(--private-input-control-size)}.counter-button--decrease{border-bottom-right-radius:0;border-right:var(--mds-input-controls-border);border-top-right-radius:0;left:0}.counter-button--increase{border-bottom-left-radius:0;border-left:var(--mds-input-controls-border);border-top-left-radius:0;right:0}.mic-toggle-button,.password-toggle-button{fill:var(--mds-input-controls-color);position:absolute;right:var(--private-input-toggle-offset);top:var(--private-input-toggle-offset)}.toggle-button--error{cursor:help;fill:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)))}.mic-toggle-button--recording{animation:var(--animate-pulse,pulse 2s cubic-bezier(.4,0,.6,1) infinite)}:host([type=number]) .input{-moz-appearance:textfield;padding-right:calc(var(--private-input-counter-width) + var(--spacing,.0025rem)*100)}:host([type=number][controls-layout=horizontal]) .input{padding-left:calc(var(--private-input-control-size) + var(--spacing,.0025rem)*200);padding-right:calc(var(--private-input-control-size) + var(--spacing,.0025rem)*200);text-align:center}:host([type=number][controls-layout=horizontal][icon]) .input{padding-left:calc(var(--private-input-control-size) + var(--private-input-icon-offset-inline)*2 + var(--private-input-icon-size));text-align:left}:host([type=number][controls-layout=horizontal]) .icon{left:calc(var(--private-input-control-size) + var(--private-input-icon-offset-inline))}:host([type=password]) .input{padding-right:var(--private-input-toggle-padding)}:host([type=password]) .input[type=text]:not(:placeholder-shown){font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([type=cf]) .input{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:uppercase}mds-input-tip{--mds-input-tip-horizontal-offset:inherit;--mds-input-tip-horizontal-offset-focused:inherit;--mds-input-tip-vertical-offset:inherit;--mds-input-tip-background:inherit}:host([size=md]){--private-input-height:calc(var(--spacing,.0025rem)*900);--private-input-padding-block:calc(var(--spacing,.0025rem)*150);--private-input-padding-inline:calc(var(--spacing,.0025rem)*300);--private-input-icon-offset-block:calc(var(--spacing,.0025rem)*150);--private-input-icon-offset-inline:calc(var(--spacing,.0025rem)*200);--private-input-control-size:calc(var(--spacing,.0025rem)*900);--private-input-counter-width:calc(var(--spacing,.0025rem)*600);--private-input-counter-height:calc(var(--spacing,.0025rem)*450);--private-input-toggle-offset:calc(var(--spacing,.0025rem)*100);--private-input-toggle-padding:calc(var(--spacing,.0025rem)*900);--private-input-toggle-area:calc(var(--spacing,.0025rem)*900)}:host([size=sm]){--private-input-height:calc(var(--spacing,.0025rem)*700);--private-input-padding-block:calc(var(--spacing,.0025rem)*50);--private-input-padding-inline:calc(var(--spacing,.0025rem)*200);--private-input-icon-size:calc(var(--spacing,.0025rem)*400);--private-input-icon-offset-block:calc(var(--spacing,.0025rem)*150);--private-input-icon-offset-inline:calc(var(--spacing,.0025rem)*200);--private-input-control-size:calc(var(--spacing,.0025rem)*700);--private-input-counter-width:calc(var(--spacing,.0025rem)*500);--private-input-counter-height:calc(var(--spacing,.0025rem)*350);--private-input-toggle-offset:0;--private-input-toggle-padding:calc(var(--spacing,.0025rem)*800);--private-input-toggle-area:calc(var(--spacing,.0025rem)*800)}:host([size=sm]) .icon{height:var(--private-input-icon-size);width:var(--private-input-icon-size)}:host(:focus){--mds-input-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-input-variant-color-rgb:var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))}:host([variant=ai]){--mds-input-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-input-tip-background:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-input-variant-color-rgb:0 0 0}:host([variant=ai]:focus){--mds-input-icon-color:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-input-variant-color-rgb:var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245))}:host([variant=info]){--mds-input-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-variant-color-rgb:0 0 0}:host([variant=info]:focus){--mds-input-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-variant-color-rgb:0 0 0}:host([variant=success]:focus){--mds-input-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-variant-color-rgb:0 0 0}:host([variant=warning]:focus){--mds-input-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-variant-color-rgb:0 0 0}:host([variant=error]:focus){--mds-input-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}: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-input-transition-duration:0s}:host([pref-contrast=more]){--mds-input-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}.password-mask{background-color:var(--mds-input-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-bottom-left-radius:inherit;border-bottom-right-radius:0;border-top-left-radius:inherit;corner-shape:inherit;align-items:center;border-top-right-radius:0;bottom:0;display:flex;gap:calc(var(--spacing,.0025rem)*50);height:100%;justify-content:start;left:0;overflow:hidden;padding-left:calc(var(--private-input-padding-inline) + var(--spacing,.0025rem)*100);pointer-events:none;position:absolute;right:var(--private-input-toggle-area);top:0}.password-mask:before{background-image:linear-gradient(to right,#0000,var(--mds-input-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)))));bottom:0;content:"";display:inline-flex;position:absolute;right:0;top:0;width:calc(var(--spacing,.0025rem)*600)}.password-mask-items{background-color:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))/0);display:inline-flex;gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*100)}.password-mask-item,.password-mask-items{border-radius:var(--radius-full,1000px);transition-duration:var(--duration-300,.3s);transition-property:background-color;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.password-mask-item{background-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));height:calc(var(--spacing,.0025rem)*200);width:calc(var(--spacing,.0025rem)*200)}:host(:focus-within) .password-mask-items{background-color:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}@keyframes pulse{50%{opacity:.5}}@media (forced-colors:active){.input:focus{outline:2px solid #0000;outline-offset:2px}}@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-input-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}}';export{S as mds_input}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
System.register(["./p-DaONbL_w.system.js","./p-CmqQGcAO.system.js","./p-Cwb0_qSC.system.js","./p-BTF_aRDG.system.js","./p-hVpoPUxI.system.js"],(function(r){"use strict";var a,e,o,t,n,s,i;return{setters:[function(r){a=r.r;e=r.h;o=r.e},function(r){t=r.m},function(r){n=r.m},function(r){s=r.L},function(r){i=r.p}],execute:function(){var d='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>';var m='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M1 21h22L12 2L1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>';
|
|
2
|
+
/**
|
|
3
|
+
* The header icon of each variant, picked for its meaning: `cancel` (an X in a circle)
|
|
4
|
+
* pairs with the tick of `do`, and stays apart from the exclamation mark of `warn`.
|
|
5
|
+
*/var c={do:n,dont:t,info:d,warn:m};var g="Δεν επιτρέπεται";var v="Πληροφορία";var h="Προειδοποίηση";var u={do:"Επιτρέπεται",dont:g,info:v,warn:h};var p="Not allowed";var l="Information";var f="Warning";var b={do:"Allowed",dont:p,info:l,warn:f};var w="No permitido";var y="Información";var x="Advertencia";var k={do:"Permitido",dont:w,info:y,warn:x};var z="Non consentito";var j="Informazione";var C="Attenzione";var A={do:"Consentito",dont:z,info:j,warn:C};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-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-usage-border-color:rgb(var(--magma-info-border-strong,var(--border-info-strong,18 154 196)));--mds-usage-header-background:var(--mds-usage-border-color,rgb(var(--magma-info-border-strong,var(--border-info-strong,18 154 196))));--mds-usage-header-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-usage-transition-duration:var(--duration-200,.2s);--private-usage-transition-duration:var(--mds-usage-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));border-color:var(--mds-usage-border-color,rgb(var(--magma-info-border-strong,var(--border-info-strong,18 154 196))));border-radius:var(--radius-lg,16px);border-style:solid;border-width:calc(var(--spacing,.0025rem)*50);display:grid;gap:calc(var(--spacing,.0025rem)*200);grid-auto-rows:min-content;grid-template-columns:minmax(0,100%);padding:calc(var(--spacing,.0025rem)*400);padding-top:0;position:relative;transition-duration:var(--private-usage-transition-duration);transition-property:background-color,box-shadow,color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));width:100%}.label{color:var(--mds-usage-header-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}mds-icon{fill:var(--mds-usage-header-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));height:calc(var(--spacing,.0025rem)*400);width:calc(var(--spacing,.0025rem)*400)}.header{align-items:center;background-color:var(--mds-usage-header-background,rgb(var(--magma-info-border-strong,var(--border-info-strong,18 154 196))));border-bottom-left-radius:var(--radius-xs,8px);border-bottom-right-radius:var(--radius-xs,8px);display:inline-flex;gap:calc(var(--spacing,.0025rem)*200);height:calc(var(--spacing,.0025rem)*600);justify-self:start;padding-left:calc(var(--spacing,.0025rem)*200);padding-right:calc(var(--spacing,.0025rem)*200)}: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-usage-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([variant=do]){--mds-usage-border-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-usage-header-color:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=info]){--mds-usage-border-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-usage-header-color:rgb(var(--magma-info-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=dont]){--mds-usage-border-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-usage-header-color:rgb(var(--magma-danger-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=warn]){--mds-usage-border-color:rgb(var(--magma-warning-wash-strong,var(--status-warning-08,255 205 57)));--mds-usage-header-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)))}@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-usage-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}}'};var N=r("mds_usage",/** @class */function(){function r(r){a(this,r);this.t=new s({el:u,en:b,es:k,it:A});
|
|
6
|
+
/**
|
|
7
|
+
* Specifies the guidance category of the content, which drives colors, header label and icon
|
|
8
|
+
*/this.variant="info"}r.prototype.render=function(){var r,a;
|
|
9
|
+
// an unknown variant gets the info icon, as it gets the info styling
|
|
10
|
+
var t=this.icon||((r=c[this.variant])!==null&&r!==void 0?r:c.info);return e(o,{key:"d78cb6b360d5cadaeea0628e62020c4b314eb2e2","pref-animation":i.state.animation,"pref-contrast":i.state.contrast,"pref-mode":i.state.mode,"pref-theme-scheme":i.state["theme-scheme"]},e("div",{key:"028ed50c32cd3ce93d44c0717b5eef2c826debce",class:"header",part:"header"},e("mds-icon",{key:"cc390e27385578c5af9c0f94dfe27db828ae78aa",name:t,part:"icon"}),e("mds-text",{key:"9c33b5d00f6c5732ad0b02bdcfdb5bd3330987c5",typography:"label",class:"label",part:"label"},(a=this.alias)!==null&&a!==void 0?a:this.t.get(this.variant))),e("div",{key:"4750f81da895eca405eafef2a63b4baf62fbb6dd",class:"content",role:this.variant==="do"||this.variant==="info"?"insertion":"deletion"},e("slot",{key:"44980b858a03517cc015cefb547eff330d54f494"})))};return r}());N.style=I()}}}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
System.register(["./p-DaONbL_w.system.js","./p-hVpoPUxI.system.js"],(function(t){"use strict";var r,e,n,a,o,i;return{setters:[function(t){r=t.r;e=t.d;n=t.h;a=t.e;o=t.g},function(t){i=t.p}],execute:function(){var c=function(){return"@layer reset,vendor,theme,base,components,utilities;: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-accordion-border-color:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-accordion-border-width:2px;--mds-accordion-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-accordion-description-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-accordion-duration:.3s;--mds-accordion-padding-selected:calc(var(--spacing,.0025rem)*400) 0 calc(var(--spacing,.0025rem)*800) 0;--mds-accordion-padding-unselected:calc(var(--spacing,.0025rem)*400) 0;display:grid}:host([pref-contrast=more]){--mds-accordion-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-accordion-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}"};var s=t("mds_accordion",/** @class */function(){function t(t){var n=this;r(this,t);this.changedEvent=e(this,"mdsAccordionChange",7);
|
|
2
|
+
/**
|
|
3
|
+
* Choose if multiple siblings can be selected simultaneously
|
|
4
|
+
*/this.multiple=false;
|
|
5
|
+
/**
|
|
6
|
+
* Prevents the user from closing the currently open item, forcing at least one panel to stay expanded
|
|
7
|
+
*/this.disableClose=false;this.queryItems=function(){return n.element.querySelectorAll("mds-accordion-item")};this.selectMultipleItems=function(){var t=n.queryItems();var r=[];t.forEach((function(t,e){if(t.selected){r.push(e)}}));n.changedEvent.emit({children:t,selected:r.toString()})};this.changedChildrenHandler=function(t){var r=n.queryItems();if(n.multiple){if(n.disableClose&&!t.detail.selected){var e=!Array.from(r).some((function(r){return r.id!==t.detail.id&&r.selected}));if(e){var a=Array.from(r).find((function(r){return r.id===t.detail.id}));if(a){a.selected=true}}}n.selectMultipleItems();return}r.forEach((function(e,a){e.selected="item-".concat(a)===t.detail.id&&(t.detail.selected||n.disableClose);if(e.selected){n.changedEvent.emit({children:r,selected:a.toString()})}}))}}t.prototype.componentWillLoad=function(){var t=this.queryItems();t.forEach((function(t,r){return t.id="item-".concat(r)}))};t.prototype.selectedEventHandler=function(t){this.changedChildrenHandler(t)};t.prototype.unselectedEventHandler=function(t){this.changedChildrenHandler(t)};t.prototype.render=function(){return n(a,{key:"0b0479fbc00c3c8c6114cb63f9dbdca72fe82b04","pref-contrast":i.state.contrast,"pref-mode":i.state.mode,"pref-theme-scheme":i.state["theme-scheme"]},n("slot",{key:"535ab500b25c6fa820b6f2c351866c13b8248d04"}))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());s.style=c()}}}));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
System.register(["./p-DaONbL_w.system.js","./p-D-RexH7B.system.js","./p-hVpoPUxI.system.js"],(function(t){"use strict";var o,a,r,e,i,n,d;return{setters:[function(t){o=t.r;a=t.d;r=t.h;e=t.e;i=t.g},function(t){n=t.m},function(t){d=t.p}],execute:function(){var c=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-font-weight:initial}}}@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,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-accordion-item-border-color:var(--mds-accordion-border-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196))));--mds-accordion-item-border-width:var(--mds-accordion-border-width,2px);--mds-accordion-item-color:var(--mds-accordion-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--mds-accordion-item-description-color:var(--mds-accordion-description-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));--mds-accordion-item-duration:var(--mds-accordion-duration,.3s);--private-accordion-item-duration:var(--mds-accordion-item-duration,.3s);--mds-accordion-item-transition-duration:var(--duration-500,.5s);--private-accordion-item-transition-duration:var(--mds-accordion-item-transition-duration);--mds-accordion-item-padding-selected:var(--mds-accordion-padding-selected,calc(var(--spacing,.0025rem)*400) 0 calc(var(--spacing,.0025rem)*800) 0);--mds-accordion-item-padding-unselected:var(--mds-accordion-padding-unselected,calc(var(--spacing,.0025rem)*400) 0 calc(var(--spacing,.0025rem)*400) 0);border-bottom:var(--mds-accordion-item-border-width,2px) solid #0000;border-top:var(--mds-accordion-item-border-width,2px) solid #0000;color:var(--mds-accordion-item-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));display:grid;fill:var(--mds-accordion-item-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));margin-top:calc(var(--mds-accordion-item-border-width,2px)*-1);padding:var(--mds-accordion-item-padding-unselected,calc(var(--spacing,.0025rem)*400) 0 calc(var(--spacing,.0025rem)*400) 0);position:relative;transition-duration:var(--private-accordion-item-transition-duration);transition-property:background-color,border-color,color,fill,margin,padding;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}:host(:first-child){margin-top:0}.action{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:#0000;border:0;border-radius:var(--radius-md,12px);color:var(--mds-accordion-item-description-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));cursor:pointer;display:grid;gap:calc(var(--spacing,.0025rem)*400);grid-auto-columns:min-content;grid-template-columns:auto 24px;outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));padding:0;text-align:left;transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out}.action:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.icon-button{--tw-font-weight:var(--font-weight-normal,400);display:block;font-weight:var(--font-weight-normal,400)}.content{display:grid;gap:calc(var(--spacing,.0025rem)*400);grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;transition-duration:var(--private-accordion-item-duration);transition-property:grid-template-rows,opacity,padding;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.content-expander{display:grid;grid-template-columns:minmax(0,100%);min-height:0;transition-duration:var(--private-accordion-item-duration);transition-property:opacity,padding;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.icon{display:flex;fill:var(--mds-accordion-item-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));transform:rotate(0);transition-duration:var(--private-accordion-item-transition-duration);transition-property:transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.icon svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}:host([selected]:not([selected=false])){border-bottom:var(--mds-accordion-item-border-width,2px) solid var(--mds-accordion-item-border-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196))));border-top:var(--mds-accordion-item-border-width,2px) solid var(--mds-accordion-item-border-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196))));padding:var(--mds-accordion-item-padding-selected,calc(var(--spacing,.0025rem)*400) 0 calc(var(--spacing,.0025rem)*800) 0)}:host([selected]:not([selected=false]):first-child){border-top-color:#0000;margin-top:0}:host([selected]:not([selected=false]):last-child){border-bottom-color:#0000;margin-bottom:0}:host([selected]:not([selected=false])) .content{grid-template-rows:1fr;opacity:1;padding-top:calc(var(--spacing,.0025rem)*400)}:host([selected]:not([selected=false])) .icon{transform:rotate(90deg)}: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-accordion-item-duration:0s;--private-accordion-item-transition-duration:0s}:host([pref-contrast=more]){--mds-accordion-item-color:var(--mds-accordion-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))))}@property --tw-font-weight{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-accordion-item-duration:0s;--private-accordion-item-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-accordion-item-color:var(--mds-accordion-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))))}}'};var s=t("mds_accordion_item",/** @class */function(){function t(t){var r=this;o(this,t);this.selectedEvent=a(this,"mdsAccordionItemSelect",7);this.unselectedEvent=a(this,"mdsAccordionItemUnselect",7);this.changedEvent=a(this,"mdsAccordionItemChange",7);
|
|
2
|
+
/**
|
|
3
|
+
* Specifies the typography of the element
|
|
4
|
+
*/this.typography="h5";this.toggle=function(){r.selected=!r.selected;r.changedEvent.emit({id:r.element.id,selected:r.selected});if(r.selected){r.selectedEvent.emit({id:r.element.id,selected:r.selected});return}r.unselectedEvent.emit({id:r.element.id,selected:r.selected})}}t.prototype.render=function(){return r(e,{key:"710440cb721331dd74000c27a684ccaa3aae196b","pref-animation":d.state.animation,"pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},r("button",{key:"fc25af94260cff803ef6be625671a39ccdde8e0a","aria-controls":"content","aria-expanded":this.selected?"true":"false",class:"action",id:"action",onClick:this.toggle,role:"button",tabindex:"0"},r("mds-text",{key:"eac2e32db27ed1c57f92da2c997dec21f692a983",typography:this.typography,part:"label"},this.label),r("mds-text",{key:"1d55fd6ad2756611a95a212a76f0909ead30c41c","aria-hidden":"true",class:"icon-button",typography:this.typography,part:"icon"},r("i",{key:"27370e925ec0ef08fd37647055b92cb11cd9c565",class:"icon",innerHTML:n}))),r("div",{key:"a4b7feca597eb7ba10569f3d1192d024de5331ee",class:"content",id:"content"},r("div",{key:"2642ce83ac26e6244c15a0db83d21389fdd0a36e","aria-labelledby":"action",class:"content-expander",part:"content",role:"region"},r("slot",{key:"1a238dc71cf2bff5a3af1f20b63afda9f321cdc4"}))))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());s.style=c()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,d as a,h as s,e as r,g as e}from"./p-BxPbQB28.js";import{b as i}from"./p-C0o_l0td.js";import{s as o,h as n}from"./p-CSCy6TMW.js";import{c as d}from"./p-ChV9xqsO.js";import{c as l}from"./p-D8eZRaSQ.js";import{p as h}from"./p-7-TP6wnI.js";const b=class{constructor(s){t(this,s),this.changedEvent=a(this,"mdsTabChange",7),this.currentItemIndex=-1,this.tabItems=[],this.contentItems=[],this.sliderWidth=-1,this.sliderHeight=-1,this.sliderOffsetX=-1,this.sliderOffsetY=-1,this.sliderSlides=!1,this.overflowLeft=!1,this.overflowRight=!1,this.navigation=!1,this.hasContent=!1,this.direction="horizontal",this.animation="slide",this.queryContentItems=()=>i(this.element,"content"),this.updateContentItems=()=>{this.contentItems=this.queryContentItems(),this.hasContent=this.contentItems.length>0,this.contentItems.forEach(((t,a)=>{o(t,"role","tabpanel"),o(t,"aria-labelledby",this.tabItems[a].id)})),this.selectContentItem()},this.setTabsItems=()=>{this.tabItems=Array.from(this.element.querySelectorAll("mds-tab-item")),this.currentItemIndex=-1,this.navigation=this.tabItems.length>0&&this.tabItems.every((t=>{var a;return""!==(null!==(a=t.href)&&void 0!==a?a:"")})),this.tabItems.forEach((t=>{t.size=this.size,t.direction=this.direction,t.animation=this.animation})),this.tabItems.forEach(((t,a)=>{""===t.id&&o(t,"id",n("mds-tab-item")),t.selected&&(this.currentItemIndex=a,this.currentItemEl=this.tabItems[this.currentItemIndex])}))},this.updateTabItems=()=>{this.setTabsItems(),this.overflow&&this.updateOverflowState(),this.updateSliderPosition(),this.scrollTabs(this.currentItemIndex)},this.unsetOverflowCheck=()=>{this.tabs.removeEventListener("scroll",this.updateOverflowState),this.observer.unobserve(this.tabsContainer)},this.initOverflowCheck=()=>{this.tabs.addEventListener("scroll",this.updateOverflowState),this.observer=new ResizeObserver((()=>{this.overflow&&this.updateOverflowState(),this.updateSliderPosition()})),this.observer.observe(this.tabsContainer),this.updateOverflowState()},this.updateOverflowState=()=>{if(null==this.tabs||null==this.tabsContainer)return;const t=this.tabsContainer.offsetWidth,a=this.tabs.scrollWidth,{scrollLeft:s}=this.tabs;this.overflowLeft=s>0,this.overflowRight=Math.ceil(s+t)<a-1},this.updateSliderPosition=(t=!1)=>{"slide"===this.animation&&this.currentItemIndex>=0?self.requestAnimationFrame((()=>{this.currentItemEl.offsetWidth&&(this.sliderSlides=t,this.sliderWidth=this.currentItemEl.offsetWidth,this.sliderHeight=this.currentItemEl.offsetHeight,this.sliderOffsetX=this.currentItemEl.offsetLeft-this.tabsContainer.offsetLeft,this.sliderOffsetY=this.currentItemEl.offsetTop-this.tabsContainer.offsetTop+this.currentItemEl.offsetHeight-this.sliderHeight)})):(this.sliderHeight=-1,this.sliderOffsetX=-1,this.sliderOffsetY=-1,this.sliderWidth=-1)},this.scrollTabs=t=>{if(t<0||t>=this.tabItems.length)return;const a=this.tabItems[t];setTimeout((()=>{this.tabs.scrollLeft=a.offsetLeft-this.tabs.offsetLeft-this.tabs.offsetWidth/2+a.offsetWidth/2,this.updateOverflowState()}),l(this.cssSlideDelayDuration))},this.selectContentItem=()=>{this.contentItems.forEach(((t,a)=>{t.setAttribute("mds-tab-content-hidden",""),a===this.currentItemIndex&&t.removeAttribute("mds-tab-content-hidden")}))},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const t=window.getComputedStyle(this.element);this.cssSlideDelayDuration=t.getPropertyValue("--mds-tab-slide-delay")}}componentWillLoad(){this.setTabsItems(),this.hasContent=this.queryContentItems().length>0}disconnectedCallback(){this.unsetOverflowCheck()}componentDidLoad(){var t,a,s,r;this.updateCSSCustomProps(),this.tabs=null===(t=this.element.shadowRoot)||void 0===t?void 0:t.querySelector(".tabs"),this.tabsContainer=null===(a=this.element.shadowRoot)||void 0===a?void 0:a.querySelector(".tabs-wrapper"),null===(r=null===(s=this.element.shadowRoot)||void 0===s?void 0:s.querySelector("slot"))||void 0===r||r.addEventListener("slotchange",this.updateTabItems.bind(this)),this.updateContentItems(),this.initOverflowCheck(),this.updateSliderPosition(),this.currentItemIndex>0&&this.scrollTabs(this.currentItemIndex)}changeEventHandler(t){this.tabItems.forEach(((a,s)=>{var r;if(a.id!==t.detail.target.id)a.selected=void 0;else{this.changedEvent.emit({id:s,value:a.value}),this.currentItemIndex=s,this.currentItemEl=this.tabItems[this.currentItemIndex],this.scrollTabs(s),a.selected=!0;const t=null===(r=this.tabItems[this.currentItemIndex].shadowRoot)||void 0===r?void 0:r.querySelector("mds-button");setTimeout((()=>{t.focus()}),0)}})),this.selectContentItem(),this.updateSliderPosition(!0)}focusEventHandler(t){this.tabItems.forEach(((a,s)=>{a.id===t.detail.target.id&&this.scrollTabs(s)}))}handleAnimationChange(t){this.tabItems.forEach((a=>{a.animation=t})),this.updateSliderPosition()}handleDirectionChange(t){this.tabItems.forEach((a=>{a.direction=t}))}handleScrollbarChange(t){!1===t&&(this.scrollbar=void 0)}handleFillChange(t){!1===t&&(this.fill=void 0)}handleOverflowChange(t){t?this.initOverflowCheck():this.unsetOverflowCheck()}handleSizeChange(t){this.tabItems.forEach((a=>{a.size=t}))}render(){return s(r,{key:"cd4099108ea07ad5e23f6ff1d85d473f9b3aa908","pref-animation":h.state.animation,"pref-contrast":h.state.contrast,"pref-mode":h.state.mode,"pref-theme-scheme":h.state["theme-scheme"]},s("div",{key:"4cb36490dc47b012362aef2a8715e73818e4dc10",class:d("tabs-wrapper",this.fill&&"tabs-wrapper--fill",!this.hasContent&&"tabs-wrapper--no-content")},this.overflow&&s("div",{key:"3383208dc4594679b38bc66b21dfac2579c37369",class:d("tabs-wrapper-overflow-left",this.overflowLeft&&"tabs-wrapper-overflow-left--show")}),this.overflow&&s("div",{key:"9920ee4a75aaf6d05427ee10eb690c5b2258e6e5",class:d("tabs-wrapper-overflow-right",this.overflowRight&&"tabs-wrapper-overflow-right--show")}),s("div",{key:"76c292c9b65df4933411da50ea7c016a156c78c9",class:"tabs",part:"tabs",role:this.navigation?void 0:"tablist"},s("slot",{key:"5a5dda062820ec7d3c9323bf4f5c329d958a0889"}),"slide"===this.animation&&s("div",{key:"ee5cef90a082056a6fa7a607fd745591a5305b9d",class:d("slider",!this.sliderSlides&&"slider--still"),part:"slider",style:{"--mds-tab-slider-width":`${this.sliderWidth}px`,"--mds-tab-slider-height":`${this.sliderHeight}px`,"--mds-tab-slider-offset-x":`${this.sliderOffsetX}px`,"--mds-tab-slider-offset-y":`${this.sliderOffsetY}px`}}))),s("div",{key:"2151d66bddf1eb9297b6714801267489405f55ee",class:d("contents",!this.hasContent&&"contents--empty"),part:"contents"},s("slot",{key:"f0efc24b4e891ed38a05bb9972c71ca0dfcd6758",name:"content",onSlotchange:this.updateContentItems})))}get element(){return e(this)}static get watchers(){return{animation:[{handleAnimationChange:0}],direction:[{handleDirectionChange:0}],scrollbar:[{handleScrollbarChange:0}],fill:[{handleFillChange:0}],overflow:[{handleOverflowChange:0}],size:[{handleSizeChange:0}]}}};b.style='@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:#0000;--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-hover-shadow:#0000;--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-selected-background:#0000;--mds-tab-item-selected-shadow:#0000;--mds-tab-item-default-background:#0000;--mds-tab-item-default-shadow:#0000}.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}}';const m=class{constructor(s){t(this,s),this.selectedEvent=a(this,"mdsTabItemSelect",7),this.focusedEvent=a(this,"mdsTabItemFocus",7),this.iconPosition="left",this.type="submit",this.size="md",this.isLink=()=>{var t;return""!==(null!==(t=this.href)&&void 0!==t?t:"")},this.toggle=t=>{this.disabled||this.isLink()&&(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)||(this.isSelected=!this.isSelected,this.isSelected&&this.selectedEvent.emit({target:this.element,value:this.value}))},this.focus=()=>{this.focusedEvent.emit({target:this.element,value:this.value})}}validateActive(t){this.isSelected!==t&&(this.isSelected=t,this.isSelected&&this.selectedEvent.emit({target:this.element,value:this.value}))}componentWillLoad(){this.hasText=""!==this.element.innerHTML}render(){var t;return s(r,{key:"35dfa8daba22b46e4d6ccc25c636a43e66fef55b","pref-contrast":h.state.contrast,"pref-mode":h.state.mode,"pref-theme-scheme":h.state["theme-scheme"]},s("mds-button",{key:"22d833d4bc3bfa18e54739983c557472d5c11b7f",class:d("button",this.selected?"selected":""),await:this.await,disabled:null!==(t=this.disabled)&&void 0!==t?t:void 0,href:this.href,icon:this.icon,iconPosition:this.iconPosition,onKeyDown:this.focus,onClick:this.toggle,part:"button",role:this.isLink()?"link":"tab","aria-current":this.isLink()&&this.selected?"true":void 0,"aria-expanded":void 0===this.expanded?void 0:`${this.expanded}`,label:this.label,size:this.size,title:this.element.title||void 0,type:this.type}))}get element(){return e(this)}static get watchers(){return{selected:[{validateActive:0}]}}};m.style="@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}.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;flex-grow:1}.button:hover{--mds-button-background:var(--mds-tab-item-hover-background);--mds-button-color:var(--mds-tab-item-hover-color)}.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))}}";export{b as mds_tab,m as mds_tab_item}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
System.register(["./p-DaONbL_w.system.js","./p-CYRMc5KW.system.js","./p-TXBtE7G5.system.js","./p-Y11niGnP.system.js","./p-BTF_aRDG.system.js","./p-hVpoPUxI.system.js"],(function(t){"use strict";var i,r,a,e,s,n,o,c,l;return{setters:[function(t){i=t.r;r=t.d;a=t.h;e=t.e;s=t.g},function(t){n=t.s},function(t){o=t.m},function(t){c=t.m},function(t){l=t.L},null],execute:function(){var h="Φόρτωση εικόνας";var d={clickToLoad:h};var m="Load image";var u={clickToLoad:m};var g="Cargar imagen";var v={clickToLoad:g};var f="Carica immagine";var b={clickToLoad:f};var p=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,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-img-background:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-img-color:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-img-icon-color:rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218)));--mds-img-error-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-img-error-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-img-error-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));display:flex;height:auto;object-fit:contain;overflow:hidden;position:relative;width:100%}img{height:inherit;object-fit:inherit;width:inherit}.alt-text-container{align-items:center;background-color:var(--mds-img-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));color:var(--mds-img-color,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));display:flex;flex-direction:column;gap:calc(var(--spacing,.0025rem)*600);justify-content:center;padding:calc(var(--spacing,.0025rem)*600);text-align:center}.alt-text-container--absolute{cursor:pointer;inset:0;position:absolute}.alt-text-container--error{--mds-img-background:var(--mds-img-error-background,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))));--mds-img-color:var(--mds-img-error-color,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))));--mds-img-icon-color:var(--mds-img-error-icon-color,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))));cursor:not-allowed}.alt-text-container--default-aspect-ratio{cursor:pointer;width:100%}.click-to-load{pointer-events:none}.icon{fill:var(--mds-img-icon-color,rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218))));width:calc(var(--spacing,.0025rem)*900)}"};var x=t("mds_img",/** @class */function(){function t(t){var a=this;i(this,t);this.loadErrorEvent=r(this,"mdsImgLoadError",7);this.loadSuccessEvent=r(this,"mdsImgLoadSuccess",7);this.imageConsumptionLoaded=false;this.imageError=false;this.consumptionMode="high";this.t=new l({el:d,en:u,es:v,it:b});
|
|
2
|
+
/**
|
|
3
|
+
* Specifies an alternate text for an image
|
|
4
|
+
*/this.alt="";
|
|
5
|
+
/**
|
|
6
|
+
* Allow images from third-party sites that allow
|
|
7
|
+
* cross-origin access to be used with canvas
|
|
8
|
+
*/this.crossorigin="use-credentials";
|
|
9
|
+
/**
|
|
10
|
+
* Specifies whether a browser should load an image immediately
|
|
11
|
+
* or to defer loading of images until some conditions are met.
|
|
12
|
+
*/this.loading="lazy";
|
|
13
|
+
/**
|
|
14
|
+
* Specifies which referrer information to use when fetching an image.
|
|
15
|
+
*/this.referrerpolicy="no-referrer-when-downgrade";this.onSuccess=function(t){a.image=t.target;a.loadSuccessEvent.emit({image:a.image})};this.onError=function(t){a.image=t.target;a.loadErrorEvent.emit({image:a.image});a.imageError=true};this.formatConsumptionData=function(t){var i={};t.split(",").forEach((function(t){var r=t.trim().replace(/[ ]{2,}/g," ").split(" ");if(r[1].toLocaleLowerCase()==="low"){i.low=r[0]}if(r[1].toLocaleLowerCase()==="medium"){i.medium=r[0]}if(r[1].toLocaleLowerCase()==="high"){i.high=r[0]}}));return i};this.autoAltName=function(){if(a.src!==undefined&&a.src!==""){var t=a.src.lastIndexOf("/")+1;return a.src.substring(t)}return""};this.setAriaAttributes=function(){n(a.host,"aria-label",a.alt)};this.handleConsumptionLoadClick=function(){a.imageConsumptionLoaded=true}}t.prototype.srcsetConsumptionHandler=function(t){this.srcsetConsumptionData=this.formatConsumptionData(t)};t.prototype.srcHandler=function(){this.imageError=false};t.prototype.componentWillLoad=function(){var t,i;this.consumptionMode=(t=localStorage.getItem("mdsPrefConsumption"))!==null&&t!==void 0?t:"high";if(this.srcsetConsumption!=null&&this.srcsetConsumption!==""){this.srcsetConsumptionData=this.formatConsumptionData(this.srcsetConsumption)}this.image=this.host.querySelector("img");if(((i=this.alt)!==null&&i!==void 0?i:"")===""){this.alt=this.autoAltName()}};t.prototype.componentDidLoad=function(){this.setAriaAttributes()};t.prototype.render=function(){var t,i;if(this.imageError){return a(e,{"aria-label":this.alt,role:"img"},a("div",{class:"contrast-area-50"}),a("div",{class:"alt-text-container alt-text-container--error alt-text-container--default-aspect-ratio"},a("mds-icon",{class:"icon",name:c}),a("mds-text",{class:"alt-text","aria-hidden":"true",typography:"h6"},a("i",null,this.alt))))}if(this.srcsetConsumptionData){if(this.consumptionMode==="low"){return a(e,{"aria-label":this.alt,role:"img",onClick:this.handleConsumptionLoadClick},a("div",{class:"contrast-area-50"}),!this.imageConsumptionLoaded?a("div",{"aria-hidden":"true",class:"alt-text-container alt-text-container--default-aspect-ratio"},a("mds-icon",{class:"icon",name:o}),a("mds-text",{class:"alt-text",typography:"h6"},a("i",null,this.alt)),a("mds-button",{"aria-hidden":"true",role:"none",class:"click-to-load",tabIndex:-1,variant:"light",tone:"outline",label:this.t.get("clickToLoad")})):a("img",{alt:this.alt,"aria-hidden":"true",height:this.height,loading:this.loading,onError:this.onError,onLoad:this.onSuccess,part:"media",sizes:this.sizes,src:(t=this.srcsetConsumptionData[this.consumptionMode])!==null&&t!==void 0?t:this.src,srcset:this.srcset,width:this.width}))}return a(e,{"aria-label":this.alt,role:"img"},a("div",{class:"contrast-area-50"}),a("img",{alt:this.alt,"aria-hidden":"true",height:this.height,loading:this.loading,onError:this.onError,onLoad:this.onSuccess,part:"media",sizes:this.sizes,src:(i=this.srcsetConsumptionData[this.consumptionMode])!==null&&i!==void 0?i:this.src,srcset:this.srcset,width:this.width}))}return a(e,{"aria-label":this.alt,role:"img"},a("div",{class:"contrast-area-50"}),a("img",{alt:this.alt,"aria-hidden":"true",height:this.height,loading:this.loading,onError:this.onError,onLoad:this.onSuccess,part:"media",sizes:this.sizes,src:this.src,srcset:this.srcset,width:this.width}))};Object.defineProperty(t.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{srcsetConsumption:[{srcsetConsumptionHandler:0}],src:[{srcHandler:0}]}},enumerable:false,configurable:true});return t}());x.style=p()}}}));
|