@maggioli-design-system/magma 2.4.0 → 2.5.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 +1 -1
- package/CHANGELOG.md +36 -0
- package/agents/assets.md +10 -0
- package/agents/components.md +2 -1
- package/agents/conventions.md +5 -0
- package/dist/cjs/{floating-controller-BxER7sig.js → floating-controller-DaFymQCT.js} +2 -2
- package/dist/cjs/{index-B_qgSpWL.js → index-BQNHYWJg.js} +5 -1
- package/dist/cjs/{index-B5DKRaVO.js → index-CWTZb9W2.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -63
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{locale-D9XY8LN9.js → locale-Os4wg65H.js} +1 -1
- package/dist/cjs/magma-components.cjs.js +2 -2
- package/dist/cjs/mds-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +2 -2
- package/dist/cjs/mds-accordion.cjs.entry.js +3 -3
- package/dist/cjs/mds-author.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 +2 -2
- package/dist/cjs/mds-banner_3.cjs.entry.js +6 -6
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +8 -7
- package/dist/cjs/mds-calendar_2.cjs.entry.js +4 -4
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +3 -3
- package/dist/cjs/mds-details.cjs.entry.js +3 -3
- package/dist/cjs/mds-dropdown.cjs.entry.js +5 -5
- package/dist/cjs/mds-emoji.cjs.entry.js +38 -8
- package/dist/cjs/mds-entity.cjs.entry.js +4 -4
- package/dist/cjs/mds-file-preview.cjs.entry.js +4 -4
- package/dist/cjs/mds-file.cjs.entry.js +3 -3
- package/dist/cjs/mds-filter-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-filter.cjs.entry.js +4 -4
- package/dist/cjs/mds-header-bar.cjs.entry.js +4 -4
- package/dist/cjs/mds-header.cjs.entry.js +3 -3
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +5 -5
- package/dist/cjs/mds-hr.cjs.entry.js +2 -2
- package/dist/cjs/mds-img.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +4 -4
- package/dist/cjs/mds-input-date.cjs.entry.js +5 -5
- package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-otp.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-range.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-select.cjs.entry.js +5 -5
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +7 -7
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-upload.cjs.entry.js +4 -4
- package/dist/cjs/mds-input.cjs.entry.js +5 -5
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +4 -4
- package/dist/cjs/mds-keyboard.cjs.entry.js +4 -4
- package/dist/cjs/mds-kpi-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
- package/dist/cjs/mds-label.cjs.entry.js +3 -3
- package/dist/cjs/mds-link.cjs.entry.js +147 -0
- package/dist/cjs/mds-list-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-list.cjs.entry.js +2 -2
- package/dist/cjs/mds-mention.cjs.entry.js +4 -4
- package/dist/cjs/mds-modal.cjs.entry.js +8 -8
- package/dist/cjs/mds-note.cjs.entry.js +5 -5
- package/dist/cjs/mds-notification.cjs.entry.js +4 -4
- package/dist/cjs/mds-paginator-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-paginator.cjs.entry.js +5 -5
- package/dist/cjs/mds-policy-ai.cjs.entry.js +4 -4
- package/dist/cjs/mds-pref-animation.cjs.entry.js +4 -4
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +4 -4
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +4 -4
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-pref-language.cjs.entry.js +4 -4
- package/dist/cjs/mds-pref-mode.cjs.entry.js +6 -6
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-pref-theme.cjs.entry.js +4 -4
- package/dist/cjs/mds-pref.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-features.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-list.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table.cjs.entry.js +2 -2
- package/dist/cjs/mds-progress_2.cjs.entry.js +5 -5
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +6 -6
- package/dist/cjs/mds-push-notification.cjs.entry.js +6 -6
- package/dist/cjs/mds-quote.cjs.entry.js +3 -3
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-radial-menu.cjs.entry.js +7 -7
- package/dist/cjs/mds-separator.cjs.entry.js +3 -3
- package/dist/cjs/mds-status-bar.cjs.entry.js +4 -4
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +5 -5
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-tab-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-tab_2.cjs.entry.js +7 -7
- package/dist/cjs/mds-table-body.cjs.entry.js +3 -3
- package/dist/cjs/mds-table-footer.cjs.entry.js +3 -3
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +3 -3
- package/dist/cjs/mds-table-header.cjs.entry.js +4 -4
- package/dist/cjs/mds-table-row.cjs.entry.js +6 -6
- package/dist/cjs/mds-table.cjs.entry.js +5 -5
- package/dist/cjs/mds-text.cjs.entry.js +3 -3
- package/dist/cjs/mds-toast-region.cjs.entry.js +2 -2
- package/dist/cjs/mds-toast.cjs.entry.js +6 -6
- package/dist/cjs/mds-tooltip.cjs.entry.js +6 -6
- package/dist/cjs/mds-tree-item.cjs.entry.js +6 -6
- package/dist/cjs/mds-tree.cjs.entry.js +3 -3
- package/dist/cjs/mds-url-view.cjs.entry.js +4 -4
- package/dist/cjs/mds-usage.cjs.entry.js +4 -4
- package/dist/cjs/mds-video-wall.cjs.entry.js +3 -3
- package/dist/cjs/mds-zero.cjs.entry.js +4 -4
- package/dist/cjs/navigation-5yeOyO6F.js +64 -0
- package/dist/cjs/{preference-C8BcoA3M.js → preference-CQQ3eb9W.js} +1 -1
- package/dist/cjs/{unit-Cm341q1R.js → unit-JdmHaLT3.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/common/unit.js +1 -1
- 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 +2 -2
- 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 +9 -9
- 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 +1 -1
- 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 +2 -2
- package/dist/collection/components/mds-author/AGENTS.md +1 -1
- package/dist/collection/components/mds-author/documentation.json +1 -1
- package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar/documentation.json +1 -1
- 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-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +1 -1
- 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-banner/AGENTS.md +1 -1
- package/dist/collection/components/mds-banner/documentation.json +1 -1
- package/dist/collection/components/mds-banner/mds-banner.css +3 -3
- 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 +1 -1
- 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-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 +1 -1
- package/dist/collection/components/mds-button/AGENTS.md +1 -1
- package/dist/collection/components/mds-button/antipattern.md +16 -0
- package/dist/collection/components/mds-button/documentation.json +2 -2
- package/dist/collection/components/mds-button/mds-button.css +4 -2
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +1 -1
- package/dist/collection/components/mds-button-dropdown/documentation.json +1 -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 +1 -1
- package/dist/collection/components/mds-calendar/documentation.json +1 -1
- package/dist/collection/components/mds-calendar/mds-calendar.css +8 -8
- 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-card/AGENTS.md +2 -1
- package/dist/collection/components/mds-card/documentation.json +2 -2
- package/dist/collection/components/mds-card/mds-card.css +9 -5
- 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 +1 -1
- 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 +2 -2
- package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
- package/dist/collection/components/mds-dropdown/documentation.json +1 -1
- package/dist/collection/components/mds-dropdown/mds-dropdown.css +23 -23
- package/dist/collection/components/mds-emoji/AGENTS.md +2 -2
- package/dist/collection/components/mds-emoji/documentation.json +2 -2
- package/dist/collection/components/mds-emoji/mds-emoji.css +11 -5
- package/dist/collection/components/mds-emoji/mds-emoji.js +34 -4
- package/dist/collection/components/mds-entity/AGENTS.md +3 -2
- package/dist/collection/components/mds-entity/documentation.json +11 -3
- package/dist/collection/components/mds-entity/mds-entity.css +1 -1
- package/dist/collection/components/mds-entity/mds-entity.js +2 -1
- package/dist/collection/components/mds-entity/pattern.md +10 -0
- package/dist/collection/components/mds-file/AGENTS.md +1 -1
- package/dist/collection/components/mds-file/documentation.json +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 +2 -2
- package/dist/collection/components/mds-filter/AGENTS.md +1 -1
- package/dist/collection/components/mds-filter/documentation.json +1 -1
- package/dist/collection/components/mds-filter/mds-filter.css +1 -1
- package/dist/collection/components/mds-filter-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-filter-item/documentation.json +1 -1
- 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 +4 -4
- package/dist/collection/components/mds-header-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-header-bar/documentation.json +1 -1
- package/dist/collection/components/mds-header-bar/mds-header-bar.css +1 -1
- package/dist/collection/components/mds-help/AGENTS.md +1 -1
- package/dist/collection/components/mds-help/documentation.json +1 -1
- package/dist/collection/components/mds-help/mds-help.css +7 -5
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +1 -1
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +1 -1
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +2 -2
- 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-icon/AGENTS.md +2 -2
- package/dist/collection/components/mds-icon/documentation.json +5 -1
- 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-input/AGENTS.md +1 -1
- package/dist/collection/components/mds-input/documentation.json +1 -1
- package/dist/collection/components/mds-input/mds-input.css +8 -8
- package/dist/collection/components/mds-input-date/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date/documentation.json +1 -1
- package/dist/collection/components/mds-input-date/mds-input-date.css +6 -6
- package/dist/collection/components/mds-input-date-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range/documentation.json +1 -1
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +11 -11
- 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-field/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-field/documentation.json +1 -1
- 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-select/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-select/documentation.json +1 -1
- package/dist/collection/components/mds-input-select/mds-input-select.css +5 -5
- package/dist/collection/components/mds-input-switch/AGENTS.md +3 -3
- package/dist/collection/components/mds-input-switch/documentation.json +3 -3
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +12 -10
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +4 -4
- 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-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
- 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 +2 -2
- 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 +5 -5
- 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 -2
- 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/mds-kpi.css +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-label/AGENTS.md +1 -1
- package/dist/collection/components/mds-label/documentation.json +1 -1
- package/dist/collection/components/mds-link/AGENTS.md +81 -0
- package/dist/collection/components/mds-link/antipattern.md +96 -0
- package/dist/collection/components/mds-link/documentation.json +407 -0
- package/dist/collection/components/mds-link/mds-link.css +301 -0
- package/dist/collection/components/mds-link/mds-link.js +335 -0
- package/dist/collection/components/mds-link/meta/dictionary.js +3 -0
- package/dist/collection/components/mds-link/meta/types.js +1 -0
- package/dist/collection/components/mds-link/pattern.md +100 -0
- package/dist/collection/components/mds-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-list/documentation.json +1 -1
- package/dist/collection/components/mds-list/mds-list.js +1 -1
- package/dist/collection/components/mds-list-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-list-item/documentation.json +1 -1
- package/dist/collection/components/mds-list-item/mds-list-item.css +4 -4
- package/dist/collection/components/mds-list-item/mds-list-item.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/mds-modal/AGENTS.md +1 -1
- package/dist/collection/components/mds-modal/documentation.json +1 -1
- package/dist/collection/components/mds-modal/mds-modal.css +5 -5
- package/dist/collection/components/mds-modal/mds-modal.js +3 -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-note/mds-note.js +1 -1
- package/dist/collection/components/mds-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-notification/documentation.json +1 -1
- package/dist/collection/components/mds-notification/mds-notification.css +22 -22
- package/dist/collection/components/mds-notification/mds-notification.js +1 -1
- 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 +1 -1
- package/dist/collection/components/mds-paginator/mds-paginator.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/mds-pref/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref/documentation.json +1 -1
- package/dist/collection/components/mds-pref/mds-pref.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/mds-pref-language/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-language/documentation.json +1 -1
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +1 -1
- 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-language-item/mds-pref-language-item.js +1 -1
- package/dist/collection/components/mds-pref-mode/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-mode/documentation.json +1 -1
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +2 -2
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +1 -1
- package/dist/collection/components/mds-pref-theme/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-theme/documentation.json +1 -1
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +1 -1
- 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.js +1 -1
- 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.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.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.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.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.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 +2 -0
- 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.css +4 -4
- 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 +2 -2
- 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.js +1 -1
- package/dist/collection/components/mds-radial-menu/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-menu/documentation.json +1 -1
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +8 -6
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +1 -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.css +2 -2
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
- package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +1 -1
- 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.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 +6 -0
- 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 +3 -3
- 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.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 +4 -2
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
- package/dist/collection/components/mds-tab/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab/documentation.json +1 -1
- package/dist/collection/components/mds-tab/mds-tab.css +9 -7
- package/dist/collection/components/mds-tab/mds-tab.js +2 -2
- 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.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 +2 -2
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +1 -1
- package/dist/collection/components/mds-tab-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-item/documentation.json +1 -1
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +1 -1
- package/dist/collection/components/mds-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-table/documentation.json +1 -1
- package/dist/collection/components/mds-table/mds-table.css +1 -1
- package/dist/collection/components/mds-table/mds-table.js +1 -1
- 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.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 +1 -1
- package/dist/collection/components/mds-table-header-cell/documentation.json +1 -1
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +1 -1
- 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 +1 -1
- package/dist/collection/components/mds-table-row/mds-table-row.js +2 -2
- package/dist/collection/components/mds-text/AGENTS.md +2 -2
- package/dist/collection/components/mds-text/antipattern.md +1 -1
- package/dist/collection/components/mds-text/documentation.json +4 -4
- package/dist/collection/components/mds-text/mds-text.js +1 -1
- package/dist/collection/components/mds-text/pattern.md +10 -0
- 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 +2 -2
- package/dist/collection/components/mds-toast/mds-toast.js +1 -1
- package/dist/collection/components/mds-toast-region/AGENTS.md +1 -1
- package/dist/collection/components/mds-toast-region/documentation.json +1 -1
- package/dist/collection/components/mds-toast-region/mds-toast-region.js +1 -1
- package/dist/collection/components/mds-tooltip/AGENTS.md +1 -1
- package/dist/collection/components/mds-tooltip/documentation.json +1 -1
- package/dist/collection/components/mds-tooltip/mds-tooltip.css +25 -25
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +1 -1
- 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 +1 -1
- 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.css +8 -6
- 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.js +1 -1
- package/dist/collection/components/mds-usage/AGENTS.md +1 -1
- package/dist/collection/components/mds-usage/documentation.json +1 -1
- package/dist/collection/components/mds-usage/mds-usage.js +1 -1
- 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.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 +2 -2
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-author.js +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-badge.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button-group.js +1 -1
- package/dist/components/mds-button.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-card-content.js +1 -1
- package/dist/components/mds-card-footer.js +1 -1
- package/dist/components/mds-card-header.js +1 -1
- package/dist/components/mds-card-media.js +1 -1
- package/dist/components/mds-card.js +1 -1
- package/dist/components/mds-chip.js +1 -1
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown.js +1 -1
- package/dist/components/mds-emoji.js +3 -3
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +1 -1
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-tip.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-link.d.ts +11 -0
- package/dist/components/mds-link.js +1 -0
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme-item.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features-row.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-header.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-price-table-list.js +1 -1
- package/dist/components/mds-price-table.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-separator.js +1 -1
- package/dist/components/mds-spinner.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-bar.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-tab.js +1 -1
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast-region.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-B0AnE3sA.js +1 -0
- package/dist/{magma-components/p-BmT_DEV2.js → components/p-B8x-d2fx.js} +2 -2
- package/dist/components/{p-Didp833Z.js → p-BU3bsIX2.js} +1 -1
- package/dist/components/{p-NlPseOAv.js → p-BbK4qeM7.js} +1 -1
- package/dist/components/p-BbTcXgbr.js +1 -0
- package/dist/components/p-BwJQB6rG.js +1 -0
- package/dist/components/p-Bz1eiKqd.js +1 -0
- package/dist/components/p-C1CTahjH.js +1 -0
- package/dist/components/{p-BLiWCyrD.js → p-C4XdTZQ-.js} +1 -1
- package/dist/components/p-C99SMdU_.js +1 -0
- package/dist/components/{p-BFisF7aN.js → p-CHHEp_7y.js} +1 -1
- package/dist/components/{p-DSxDXNWp.js → p-CLe_N2_H.js} +1 -1
- package/dist/components/{p-DezdwzYQ.js → p-CNF3u0Li.js} +1 -1
- package/dist/components/p-CNZ8_QvE.js +8 -0
- package/dist/components/{p-DaptTdaU.js → p-CSxW5f2f.js} +1 -1
- package/dist/components/{p-BlnEiKN4.js → p-CVRN4LDc.js} +1 -1
- package/dist/components/p-CWk1SCJg.js +1 -0
- package/dist/components/{p-sM-eFjwq.js → p-Cd8id3Br.js} +1 -1
- package/dist/components/p-CfQETwAK.js +1 -0
- package/dist/components/p-ClPv-Ljc.js +1 -0
- package/dist/components/{p-cIZniMh0.js → p-Cmn1DJAB.js} +1 -1
- package/dist/components/{p-fhAmrBfl.js → p-D-DdDIb9.js} +1 -1
- package/dist/components/{p-D4JiVIoh.js → p-D2d9eOLi.js} +1 -1
- package/dist/components/p-D8wd-EZX.js +1 -0
- package/dist/components/{p-B1bYa-o0.js → p-DCrdKrky.js} +1 -1
- package/dist/components/{p-D_0rjNZp.js → p-DF3PrYBI.js} +1 -1
- package/dist/components/p-DNeEn8Rr.js +1 -0
- package/dist/components/{p-Bg5E4Wnq.js → p-DiUUZ7ZA.js} +1 -1
- package/dist/components/{p-DACnmwad.js → p-DkUdrGHq.js} +1 -1
- package/dist/components/{p-BL220gRU.js → p-Dm-OUwDe.js} +1 -1
- package/dist/components/p-DnySYX0L.js +1 -0
- package/dist/components/{p-B2p5a1Y8.js → p-TZJN-ygm.js} +1 -1
- package/dist/components/{p-B6B6q5kP.js → p-ZuubAcA3.js} +1 -1
- package/dist/{magma-components/p-ZaZnuNvg.js → components/p-jasGzfhE.js} +1 -1
- package/dist/components/p-nsbhb0lz.js +1 -0
- package/dist/components/{p-JPhOaOXe.js → p-s1CktmPS.js} +1 -1
- package/dist/components/{p-NOw8-OrM.js → p-uqwixjju.js} +1 -1
- package/dist/documentation.json +431 -11
- package/dist/esm/{floating-controller-BV0E_Juq.js → floating-controller-BVlbYYkf.js} +2 -2
- package/dist/esm/{index-CPRkNQdE.js → index-CvLLN-QH.js} +5 -1
- package/dist/esm/{index-DI_6NAg0.js → index-D2_gI0qp.js} +1 -1
- package/dist/esm/index.js +3 -63
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-DfpXg7qZ.js → locale-BQmO6K_S.js} +1 -1
- package/dist/esm/magma-components.js +3 -3
- package/dist/esm/mds-accordion-item.entry.js +3 -3
- package/dist/esm/mds-accordion-timer-item.entry.js +3 -3
- package/dist/esm/mds-accordion-timer.entry.js +2 -2
- package/dist/esm/mds-accordion.entry.js +3 -3
- package/dist/esm/mds-author.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 +2 -2
- package/dist/esm/mds-banner_3.entry.js +6 -6
- package/dist/esm/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm/mds-bibliography.entry.js +1 -1
- package/dist/esm/mds-breadcrumb-item.entry.js +2 -2
- package/dist/esm/mds-breadcrumb.entry.js +3 -3
- package/dist/esm/mds-button-dropdown.entry.js +3 -3
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +6 -5
- package/dist/esm/mds-calendar_2.entry.js +4 -4
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +3 -3
- package/dist/esm/mds-details.entry.js +3 -3
- package/dist/esm/mds-dropdown.entry.js +5 -5
- package/dist/esm/mds-emoji.entry.js +38 -8
- package/dist/esm/mds-entity.entry.js +4 -4
- package/dist/esm/mds-file-preview.entry.js +4 -4
- package/dist/esm/mds-file.entry.js +3 -3
- package/dist/esm/mds-filter-item.entry.js +3 -3
- package/dist/esm/mds-filter.entry.js +4 -4
- package/dist/esm/mds-header-bar.entry.js +4 -4
- package/dist/esm/mds-header.entry.js +3 -3
- package/dist/esm/mds-horizontal-scroll.entry.js +5 -5
- package/dist/esm/mds-hr.entry.js +2 -2
- package/dist/esm/mds-img.entry.js +3 -3
- package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +4 -4
- package/dist/esm/mds-input-date.entry.js +5 -5
- package/dist/esm/mds-input-field.entry.js +1 -1
- package/dist/esm/mds-input-otp.entry.js +3 -3
- package/dist/esm/mds-input-range.entry.js +2 -2
- package/dist/esm/mds-input-select.entry.js +5 -5
- package/dist/esm/mds-input-switch_2.entry.js +7 -7
- package/dist/esm/mds-input-tip_2.entry.js +3 -3
- package/dist/esm/mds-input-upload.entry.js +4 -4
- package/dist/esm/mds-input.entry.js +5 -5
- package/dist/esm/mds-keyboard-key.entry.js +4 -4
- package/dist/esm/mds-keyboard.entry.js +4 -4
- package/dist/esm/mds-kpi-item.entry.js +2 -2
- package/dist/esm/mds-kpi.entry.js +2 -2
- package/dist/esm/mds-label.entry.js +3 -3
- package/dist/esm/mds-link.entry.js +145 -0
- package/dist/esm/mds-list-item.entry.js +3 -3
- package/dist/esm/mds-list.entry.js +2 -2
- package/dist/esm/mds-mention.entry.js +4 -4
- package/dist/esm/mds-modal.entry.js +8 -8
- package/dist/esm/mds-note.entry.js +5 -5
- package/dist/esm/mds-notification.entry.js +4 -4
- package/dist/esm/mds-paginator-item.entry.js +3 -3
- package/dist/esm/mds-paginator.entry.js +5 -5
- package/dist/esm/mds-policy-ai.entry.js +4 -4
- package/dist/esm/mds-pref-animation.entry.js +4 -4
- package/dist/esm/mds-pref-consumption.entry.js +4 -4
- package/dist/esm/mds-pref-contrast.entry.js +4 -4
- package/dist/esm/mds-pref-language-item.entry.js +4 -4
- package/dist/esm/mds-pref-language.entry.js +4 -4
- package/dist/esm/mds-pref-mode.entry.js +6 -6
- package/dist/esm/mds-pref-theme-item.entry.js +2 -2
- package/dist/esm/mds-pref-theme.entry.js +4 -4
- package/dist/esm/mds-pref.entry.js +4 -4
- package/dist/esm/mds-price-table-features-cell.entry.js +3 -3
- package/dist/esm/mds-price-table-features-row.entry.js +3 -3
- package/dist/esm/mds-price-table-features.entry.js +3 -3
- package/dist/esm/mds-price-table-header.entry.js +2 -2
- package/dist/esm/mds-price-table-list-item.entry.js +2 -2
- package/dist/esm/mds-price-table-list.entry.js +3 -3
- package/dist/esm/mds-price-table.entry.js +2 -2
- package/dist/esm/mds-progress_2.entry.js +5 -5
- package/dist/esm/mds-push-notification-item.entry.js +6 -6
- package/dist/esm/mds-push-notification.entry.js +6 -6
- package/dist/esm/mds-quote.entry.js +3 -3
- package/dist/esm/mds-radial-menu-item.entry.js +3 -3
- package/dist/esm/mds-radial-menu.entry.js +7 -7
- package/dist/esm/mds-separator.entry.js +3 -3
- package/dist/esm/mds-status-bar.entry.js +4 -4
- package/dist/esm/mds-stepper-bar-item.entry.js +5 -5
- package/dist/esm/mds-stepper-bar.entry.js +2 -2
- package/dist/esm/mds-tab-bar-item.entry.js +4 -4
- package/dist/esm/mds-tab-bar.entry.js +3 -3
- package/dist/esm/mds-tab_2.entry.js +7 -7
- package/dist/esm/mds-table-body.entry.js +3 -3
- package/dist/esm/mds-table-footer.entry.js +3 -3
- package/dist/esm/mds-table-header-cell.entry.js +3 -3
- package/dist/esm/mds-table-header.entry.js +4 -4
- package/dist/esm/mds-table-row.entry.js +6 -6
- package/dist/esm/mds-table.entry.js +5 -5
- package/dist/esm/mds-text.entry.js +3 -3
- package/dist/esm/mds-toast-region.entry.js +2 -2
- package/dist/esm/mds-toast.entry.js +6 -6
- package/dist/esm/mds-tooltip.entry.js +6 -6
- package/dist/esm/mds-tree-item.entry.js +6 -6
- package/dist/esm/mds-tree.entry.js +3 -3
- package/dist/esm/mds-url-view.entry.js +4 -4
- package/dist/esm/mds-usage.entry.js +4 -4
- package/dist/esm/mds-video-wall.entry.js +3 -3
- package/dist/esm/mds-zero.entry.js +4 -4
- package/dist/esm/navigation-Bz1eiKqd.js +62 -0
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{preference-Ch1zJnqq.js → preference-C5XjgGCb.js} +1 -1
- package/dist/esm/{unit-D8eZRaSQ.js → unit-CWk1SCJg.js} +1 -1
- package/dist/esm-es5/{floating-controller-BV0E_Juq.js → floating-controller-BVlbYYkf.js} +1 -1
- package/dist/esm-es5/{index-CPRkNQdE.js → index-CvLLN-QH.js} +4 -2
- package/dist/esm-es5/{index-DI_6NAg0.js → index-D2_gI0qp.js} +1 -1
- package/dist/esm-es5/index.js +20 -37
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{locale-DfpXg7qZ.js → locale-BQmO6K_S.js} +1 -1
- package/dist/esm-es5/magma-components.js +2 -2
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +2 -2
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +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-benchmark-bar.entry.js +1 -1
- package/dist/esm-es5/mds-bibliography.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
- package/dist/esm-es5/mds-button-dropdown.entry.js +1 -1
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +2 -2
- package/dist/esm-es5/mds-calendar_2.entry.js +1 -1
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +1 -1
- package/dist/esm-es5/mds-details.entry.js +1 -1
- package/dist/esm-es5/mds-dropdown.entry.js +15 -15
- package/dist/esm-es5/mds-emoji.entry.js +271 -251
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +10 -10
- package/dist/esm-es5/mds-file.entry.js +1 -1
- package/dist/esm-es5/mds-filter-item.entry.js +1 -1
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-header-bar.entry.js +1 -1
- package/dist/esm-es5/mds-header.entry.js +1 -1
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +2 -2
- 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 +15 -15
- package/dist/esm-es5/mds-input-date.entry.js +1 -1
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-otp.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-select.entry.js +1 -1
- package/dist/esm-es5/mds-input-switch_2.entry.js +3 -3
- package/dist/esm-es5/mds-input-tip_2.entry.js +1 -1
- package/dist/esm-es5/mds-input-upload.entry.js +1 -1
- package/dist/esm-es5/mds-input.entry.js +2 -2
- package/dist/esm-es5/mds-keyboard-key.entry.js +1 -1
- package/dist/esm-es5/mds-keyboard.entry.js +1 -1
- package/dist/esm-es5/mds-kpi-item.entry.js +1 -1
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +1 -1
- package/dist/esm-es5/mds-link.entry.js +39 -0
- package/dist/esm-es5/mds-list-item.entry.js +2 -2
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +2 -2
- package/dist/esm-es5/mds-modal.entry.js +3 -3
- package/dist/esm-es5/mds-note.entry.js +2 -2
- package/dist/esm-es5/mds-notification.entry.js +8 -8
- package/dist/esm-es5/mds-paginator-item.entry.js +2 -2
- package/dist/esm-es5/mds-paginator.entry.js +2 -2
- package/dist/esm-es5/mds-policy-ai.entry.js +2 -2
- package/dist/esm-es5/mds-pref-animation.entry.js +2 -2
- 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-item.entry.js +2 -2
- package/dist/esm-es5/mds-pref-language.entry.js +2 -2
- package/dist/esm-es5/mds-pref-mode.entry.js +2 -2
- package/dist/esm-es5/mds-pref-theme-item.entry.js +3 -3
- package/dist/esm-es5/mds-pref-theme.entry.js +2 -2
- package/dist/esm-es5/mds-pref.entry.js +2 -2
- 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 +2 -2
- 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 +4 -4
- 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 +2 -2
- package/dist/esm-es5/mds-stepper-bar.entry.js +2 -2
- package/dist/esm-es5/mds-tab-bar-item.entry.js +2 -2
- package/dist/esm-es5/mds-tab-bar.entry.js +2 -2
- package/dist/esm-es5/mds-tab_2.entry.js +3 -3
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +2 -2
- package/dist/esm-es5/mds-table-header-cell.entry.js +2 -2
- package/dist/esm-es5/mds-table-header.entry.js +2 -2
- package/dist/esm-es5/mds-table-row.entry.js +2 -2
- package/dist/esm-es5/mds-table.entry.js +2 -2
- package/dist/esm-es5/mds-text.entry.js +2 -2
- package/dist/esm-es5/mds-toast-region.entry.js +3 -3
- package/dist/esm-es5/mds-toast.entry.js +2 -2
- package/dist/esm-es5/mds-tooltip.entry.js +3 -3
- package/dist/esm-es5/mds-tree-item.entry.js +2 -2
- package/dist/esm-es5/mds-tree.entry.js +2 -2
- package/dist/esm-es5/mds-url-view.entry.js +2 -2
- package/dist/esm-es5/mds-usage.entry.js +2 -2
- 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/navigation-Bz1eiKqd.js +17 -0
- package/dist/esm-es5/{preference-Ch1zJnqq.js → preference-C5XjgGCb.js} +4 -4
- package/dist/esm-es5/unit-CWk1SCJg.js +1 -0
- package/dist/hydrate/index.js +496 -304
- package/dist/hydrate/index.mjs +496 -304
- package/dist/magma-components/index.esm.js +1 -1
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/magma-components.js +1 -1
- package/dist/magma-components/{p-028f3717.entry.js → p-000c315c.entry.js} +1 -1
- package/dist/magma-components/{p-4fdda209.system.entry.js → p-0033cb92.system.entry.js} +2 -2
- package/dist/magma-components/{p-2a2b7c43.entry.js → p-0148cf0a.entry.js} +1 -1
- package/dist/magma-components/{p-6c91b00d.system.entry.js → p-02298ed0.system.entry.js} +2 -2
- package/dist/magma-components/p-02fe26b4.system.entry.js +35 -0
- package/dist/magma-components/p-05ed801b.system.entry.js +14 -0
- package/dist/magma-components/{p-a1ca2441.system.entry.js → p-0679c988.system.entry.js} +1 -1
- package/dist/magma-components/{p-3bb26611.entry.js → p-068e30a5.entry.js} +1 -1
- package/dist/magma-components/{p-1f9ebc0d.entry.js → p-06ccc40d.entry.js} +1 -1
- package/dist/magma-components/{p-926ef760.entry.js → p-06fde29d.entry.js} +1 -1
- package/dist/magma-components/{p-176e6d9d.system.entry.js → p-08370fc2.system.entry.js} +1 -1
- package/dist/magma-components/{p-e032e77f.system.entry.js → p-083dceb8.system.entry.js} +1 -1
- package/dist/magma-components/{p-a136e6fe.system.entry.js → p-09a7b578.system.entry.js} +1 -1
- package/dist/magma-components/{p-e6ed6e12.entry.js → p-09f621ea.entry.js} +1 -1
- package/dist/magma-components/p-0a8e8525.entry.js +1 -0
- package/dist/magma-components/p-0b3e4a97.system.entry.js +39 -0
- package/dist/magma-components/p-0d32e196.system.entry.js +81 -0
- package/dist/magma-components/{p-0f47fd37.system.entry.js → p-0e887379.system.entry.js} +2 -2
- package/dist/magma-components/p-0eb3558a.entry.js +1 -0
- package/dist/magma-components/p-104ba54e.system.entry.js +13 -0
- package/dist/magma-components/{p-8d8c9c90.entry.js → p-15ffdcf6.entry.js} +1 -1
- package/dist/magma-components/{p-3ac09ace.entry.js → p-1908f808.entry.js} +1 -1
- package/dist/magma-components/{p-c4286fb7.system.entry.js → p-1d2220f0.system.entry.js} +1 -1
- package/dist/magma-components/{p-eebf450c.system.entry.js → p-1e18fcc5.system.entry.js} +2 -2
- package/dist/magma-components/{p-36ad5759.system.entry.js → p-1eee93c8.system.entry.js} +1 -1
- package/dist/magma-components/p-1f623b75.entry.js +1 -0
- package/dist/magma-components/{p-a1443292.entry.js → p-1faa4f71.entry.js} +1 -1
- package/dist/magma-components/{p-af704402.system.entry.js → p-21547758.system.entry.js} +1 -1
- package/dist/magma-components/{p-0dd4b006.entry.js → p-221c2f0d.entry.js} +1 -1
- package/dist/magma-components/{p-0727d8f9.entry.js → p-23722401.entry.js} +1 -1
- package/dist/magma-components/p-23c057a9.entry.js +1 -0
- package/dist/magma-components/p-23fabd66.system.entry.js +1 -0
- package/dist/magma-components/{p-a40443ca.system.entry.js → p-2431fbfa.system.entry.js} +1 -1
- package/dist/magma-components/{p-3fb98529.system.entry.js → p-244676d3.system.entry.js} +1 -1
- package/dist/magma-components/{p-cc0cb701.entry.js → p-254ee71d.entry.js} +1 -1
- package/dist/magma-components/{p-a2ec6eac.entry.js → p-25a6e977.entry.js} +1 -1
- package/dist/magma-components/p-26451eb6.entry.js +1 -0
- package/dist/magma-components/p-26b9f2b7.system.entry.js +80 -0
- package/dist/magma-components/{p-2362b91a.entry.js → p-278c362d.entry.js} +1 -1
- package/dist/magma-components/{p-3725c2c1.entry.js → p-287601bb.entry.js} +1 -1
- package/dist/magma-components/{p-b62bbd07.entry.js → p-29162c98.entry.js} +1 -1
- package/dist/magma-components/{p-166c0190.entry.js → p-29450db3.entry.js} +1 -1
- package/dist/magma-components/{p-916a26e4.entry.js → p-295d8fab.entry.js} +1 -1
- package/dist/magma-components/p-29ab84bf.system.entry.js +41 -0
- package/dist/magma-components/p-2a964578.entry.js +1 -0
- package/dist/magma-components/{p-a7bad4e8.entry.js → p-2aac4003.entry.js} +1 -1
- package/dist/magma-components/p-2c845743.system.entry.js +1 -0
- package/dist/magma-components/{p-be32b7a9.system.entry.js → p-2cbd532a.system.entry.js} +1 -1
- package/dist/magma-components/{p-e471decd.system.entry.js → p-2cdf450c.system.entry.js} +1 -1
- package/dist/magma-components/{p-3ba5ddae.entry.js → p-2d3b5eb5.entry.js} +1 -1
- package/dist/magma-components/{p-5219eba6.system.entry.js → p-2e48f88d.system.entry.js} +2 -2
- package/dist/magma-components/{p-8f5f2dfe.system.entry.js → p-2eb4efcd.system.entry.js} +2 -2
- package/dist/magma-components/{p-c89c2e30.entry.js → p-30be5c39.entry.js} +1 -1
- package/dist/magma-components/{p-62e65f3b.entry.js → p-335244bb.entry.js} +1 -1
- package/dist/magma-components/{p-e49818c4.entry.js → p-336f56a4.entry.js} +1 -1
- package/dist/magma-components/p-34c2daa9.system.entry.js +25 -0
- package/dist/magma-components/p-357724ab.entry.js +1 -0
- package/dist/magma-components/{p-911dc847.entry.js → p-358aa5e7.entry.js} +1 -1
- package/dist/magma-components/p-377d0661.entry.js +1 -0
- package/dist/magma-components/{p-23bf1afa.system.entry.js → p-396d95a1.system.entry.js} +2 -2
- package/dist/magma-components/{p-e5ab1f4f.entry.js → p-3abaa053.entry.js} +1 -1
- package/dist/magma-components/{p-0c9bdfff.system.entry.js → p-3beea731.system.entry.js} +1 -1
- package/dist/magma-components/{p-a61623f9.system.entry.js → p-3d162e99.system.entry.js} +2 -2
- package/dist/magma-components/p-3d95e688.system.entry.js +111 -0
- package/dist/magma-components/{p-721b625a.system.entry.js → p-3dc81ab9.system.entry.js} +9 -9
- package/dist/magma-components/{p-6bc4114c.system.entry.js → p-3df07021.system.entry.js} +1 -1
- package/dist/magma-components/p-3fb46ab9.system.entry.js +1 -0
- package/dist/magma-components/{p-4a051ef5.system.entry.js → p-3fd8ff0e.system.entry.js} +2 -2
- package/dist/magma-components/{p-f43379ef.entry.js → p-41a0f896.entry.js} +1 -1
- package/dist/magma-components/{p-4d079b1a.system.entry.js → p-41a28f2a.system.entry.js} +3 -3
- package/dist/magma-components/p-42e50f25.system.entry.js +55 -0
- package/dist/magma-components/{p-95328cc7.system.entry.js → p-458eb34c.system.entry.js} +2 -2
- package/dist/magma-components/p-464e6431.entry.js +1 -0
- package/dist/magma-components/p-471227f2.system.entry.js +27 -0
- package/dist/magma-components/{p-8e08ae08.system.entry.js → p-47717251.system.entry.js} +3 -3
- package/dist/magma-components/p-4776ac1f.entry.js +1 -0
- package/dist/magma-components/{p-b919ce62.entry.js → p-4792ff7f.entry.js} +1 -1
- package/dist/magma-components/p-481897a7.entry.js +1 -0
- package/dist/magma-components/{p-72cc4977.system.entry.js → p-4bc3335f.system.entry.js} +1 -1
- package/dist/magma-components/{p-b58363e2.system.entry.js → p-4bc47ff0.system.entry.js} +2 -2
- package/dist/magma-components/{p-648ec03b.system.entry.js → p-4c6da1db.system.entry.js} +5 -5
- package/dist/magma-components/{p-5b21eb78.entry.js → p-4cabfdbc.entry.js} +1 -1
- package/dist/magma-components/{p-f30cdd34.system.entry.js → p-4d485e1f.system.entry.js} +1 -1
- package/dist/magma-components/{p-da532544.system.entry.js → p-52d905fe.system.entry.js} +1 -1
- package/dist/magma-components/{p-23ce0824.entry.js → p-5435f2a9.entry.js} +1 -1
- package/dist/magma-components/{p-29d4605e.system.entry.js → p-5533b60d.system.entry.js} +4 -4
- package/dist/magma-components/p-55746791.entry.js +1 -0
- package/dist/magma-components/{p-37b801d0.system.entry.js → p-577ae081.system.entry.js} +2 -2
- package/dist/magma-components/{p-52d5d104.system.entry.js → p-57839384.system.entry.js} +2 -2
- package/dist/magma-components/p-5c4e41d3.system.entry.js +54 -0
- package/dist/magma-components/p-5cfa0dce.entry.js +1 -0
- package/dist/magma-components/{p-9bdca8b4.entry.js → p-5da14e81.entry.js} +1 -1
- package/dist/magma-components/{p-f7af41fb.system.entry.js → p-5ef0fb69.system.entry.js} +2 -2
- package/dist/magma-components/{p-a4f46de1.system.entry.js → p-5f8db04c.system.entry.js} +2 -2
- package/dist/magma-components/p-617370e7.system.entry.js +98 -0
- package/dist/magma-components/{p-0bcf3bb6.entry.js → p-62fc9695.entry.js} +1 -1
- package/dist/magma-components/{p-d9551916.system.entry.js → p-632ad925.system.entry.js} +22 -22
- package/dist/magma-components/{p-4ea00c22.entry.js → p-63b10a6e.entry.js} +1 -1
- package/dist/magma-components/{p-b40ef7ab.system.entry.js → p-642925b7.system.entry.js} +2 -2
- package/dist/magma-components/{p-32bfb09c.entry.js → p-6436178a.entry.js} +1 -1
- package/dist/magma-components/p-644e64a0.entry.js +1 -0
- package/dist/magma-components/p-6560b426.system.entry.js +4 -0
- package/dist/magma-components/p-656b00df.system.entry.js +34 -0
- package/dist/magma-components/{p-f88c202e.entry.js → p-67eb3881.entry.js} +1 -1
- package/dist/magma-components/p-69abd1d1.entry.js +1 -0
- package/dist/magma-components/{p-5ea3be82.system.entry.js → p-6a2d67d1.system.entry.js} +2 -2
- package/dist/magma-components/p-6e32bf99.entry.js +1 -0
- package/dist/magma-components/{p-7497b39d.system.entry.js → p-6f81c9ef.system.entry.js} +2 -2
- package/dist/magma-components/p-70d38284.entry.js +1 -0
- package/dist/magma-components/{p-1f5cd2b5.entry.js → p-71cbc840.entry.js} +1 -1
- package/dist/magma-components/{p-4582aa3e.system.entry.js → p-729c89f9.system.entry.js} +1 -1
- package/dist/magma-components/p-72ad419d.system.entry.js +10 -0
- package/dist/magma-components/p-73833405.entry.js +18 -0
- package/dist/magma-components/{p-aa8653b1.system.entry.js → p-74f515c3.system.entry.js} +2 -2
- package/dist/magma-components/{p-f3763382.entry.js → p-762a6b7b.entry.js} +1 -1
- package/dist/magma-components/p-772c18f4.entry.js +1 -0
- package/dist/magma-components/p-77939a25.system.entry.js +20 -0
- package/dist/magma-components/{p-88ac5d50.entry.js → p-791a6a6f.entry.js} +1 -1
- package/dist/magma-components/{p-11feeebf.system.entry.js → p-7961c335.system.entry.js} +1 -1
- package/dist/magma-components/{p-3871807a.entry.js → p-7bf46d43.entry.js} +1 -1
- package/dist/magma-components/p-7c217aa5.entry.js +1 -0
- package/dist/magma-components/{p-2abfc393.entry.js → p-7ec1ea2e.entry.js} +1 -1
- package/dist/magma-components/{p-db75bf05.system.entry.js → p-7fde3025.system.entry.js} +3 -3
- package/dist/magma-components/{p-38a9e862.entry.js → p-808b9277.entry.js} +1 -1
- package/dist/magma-components/{p-11e50140.system.entry.js → p-80eea067.system.entry.js} +2 -2
- package/dist/magma-components/p-8173ed07.entry.js +8 -0
- package/dist/magma-components/{p-8059aa67.system.entry.js → p-81e02997.system.entry.js} +3 -3
- package/dist/magma-components/{p-47f7366c.entry.js → p-8258733b.entry.js} +1 -1
- package/dist/magma-components/{p-f5a08dca.system.entry.js → p-8279056b.system.entry.js} +2 -2
- package/dist/magma-components/{p-d8d87750.system.entry.js → p-835d79e5.system.entry.js} +1 -1
- package/dist/magma-components/{p-288f3cfe.entry.js → p-837d31b8.entry.js} +1 -1
- package/dist/magma-components/{p-342770d2.system.entry.js → p-84777b38.system.entry.js} +2 -2
- package/dist/magma-components/{p-88be542e.system.entry.js → p-84ed22ea.system.entry.js} +2 -2
- package/dist/magma-components/{p-dfbecf72.system.entry.js → p-860bce85.system.entry.js} +3 -3
- package/dist/magma-components/p-8645533a.entry.js +1 -0
- package/dist/magma-components/{p-7d548a19.entry.js → p-8680f63e.entry.js} +1 -1
- package/dist/magma-components/{p-f9b5a5ec.entry.js → p-86cf87fb.entry.js} +1 -1
- package/dist/magma-components/{p-007968a8.system.entry.js → p-8740403e.system.entry.js} +3 -3
- package/dist/magma-components/p-87ce9d6c.entry.js +1 -0
- package/dist/magma-components/{p-20469b7a.system.entry.js → p-880f3eac.system.entry.js} +1 -1
- package/dist/magma-components/{p-fcaa81b3.entry.js → p-89d4b6e9.entry.js} +1 -1
- package/dist/magma-components/{p-5d9b1fe5.entry.js → p-8a76097f.entry.js} +1 -1
- package/dist/magma-components/{p-e8b9d639.entry.js → p-8a9544aa.entry.js} +1 -1
- package/dist/magma-components/{p-1fe66383.system.entry.js → p-8ab9ff37.system.entry.js} +1 -1
- package/dist/magma-components/p-8d6470fb.system.entry.js +13 -0
- package/dist/magma-components/p-8f63f1a1.system.entry.js +35 -0
- package/dist/magma-components/{p-3093af30.system.entry.js → p-8f7daab1.system.entry.js} +1 -1
- package/dist/magma-components/{p-cc109576.entry.js → p-919f9dce.entry.js} +1 -1
- package/dist/magma-components/p-9250ec26.system.entry.js +7 -0
- package/dist/magma-components/{p-547f657e.system.entry.js → p-94289f3d.system.entry.js} +5 -5
- package/dist/magma-components/{p-b514bd3a.system.entry.js → p-95478664.system.entry.js} +1 -1
- package/dist/magma-components/p-96bb36b9.entry.js +1 -0
- package/dist/magma-components/{p-ecb87d38.entry.js → p-9745dc51.entry.js} +1 -1
- package/dist/magma-components/p-984dd850.entry.js +1 -0
- package/dist/magma-components/{p-8b081ba9.entry.js → p-9855b517.entry.js} +1 -1
- package/dist/magma-components/{p-2f3c6105.entry.js → p-9a3ddc91.entry.js} +1 -1
- package/dist/magma-components/{p-9e7d02e5.entry.js → p-9f8ce68f.entry.js} +1 -1
- package/dist/magma-components/p-9fc385aa.entry.js +1 -0
- package/dist/magma-components/p-B-nayZ3E.system.js +1 -0
- package/dist/magma-components/p-B8zYiZQY.system.js +5 -0
- package/dist/magma-components/{p-CmzGV0XD.system.js → p-BZP13mns.system.js} +1 -1
- package/dist/magma-components/p-BoDvZoCN.system.js +18 -0
- package/dist/magma-components/p-Bz1eiKqd.js +1 -0
- package/dist/{components/p-Dleapw-k.js → magma-components/p-CLhuNxYQ.js} +1 -1
- package/dist/magma-components/p-CWk1SCJg.js +1 -0
- package/dist/magma-components/{p-5vJawLPw.system.js → p-CZuIEo2v.system.js} +1 -1
- package/dist/magma-components/{p-CPRkNQdE.js → p-CvLLN-QH.js} +1 -1
- package/dist/magma-components/{p-LUd56iG_.system.js → p-DXAjcaHM.system.js} +1 -1
- package/dist/magma-components/{p-C1ailvfu.system.js → p-OOCOFWC0.system.js} +18 -18
- package/dist/{components/p-B9dgiq4u.js → magma-components/p-Raj-urIN.js} +1 -1
- package/dist/magma-components/{p-zQY2FlcD.js → p-U5iXN1wy.js} +1 -1
- package/dist/magma-components/p-VOjLCGlK.system.js +90 -0
- package/dist/magma-components/p-a70fb4fb.system.entry.js +105 -0
- package/dist/magma-components/{p-1809e47d.system.entry.js → p-a76a9f92.system.entry.js} +153 -133
- package/dist/magma-components/p-a7c01334.entry.js +1 -0
- package/dist/magma-components/p-a8e1ce2f.entry.js +1 -0
- package/dist/magma-components/{p-d0c0c195.entry.js → p-a9ba496d.entry.js} +1 -1
- package/dist/magma-components/{p-ef4d07ba.entry.js → p-ab00b7b9.entry.js} +1 -1
- package/dist/magma-components/p-ab4b617d.entry.js +1 -0
- package/dist/magma-components/p-ae3bf24c.system.entry.js +12 -0
- package/dist/magma-components/{p-495a70e2.entry.js → p-b23bee0c.entry.js} +1 -1
- package/dist/magma-components/p-b476435f.entry.js +1 -0
- package/dist/magma-components/p-b5789a7c.entry.js +1 -0
- package/dist/magma-components/{p-bc30508b.entry.js → p-b738d3c1.entry.js} +1 -1
- package/dist/magma-components/{p-ff4276d3.system.entry.js → p-bd97e368.system.entry.js} +1 -1
- package/dist/magma-components/p-bf0cb77d.system.entry.js +29 -0
- package/dist/magma-components/{p-6b2fff4b.system.entry.js → p-c3a3caae.system.entry.js} +1 -1
- package/dist/magma-components/{p-890bae38.system.entry.js → p-c3c487aa.system.entry.js} +1 -1
- package/dist/magma-components/{p-a47a9f11.system.entry.js → p-c50e20cf.system.entry.js} +1 -1
- package/dist/magma-components/p-c6819aad.entry.js +1 -0
- package/dist/magma-components/p-ca1969c5.entry.js +1 -0
- package/dist/magma-components/p-cbb80188.entry.js +1 -0
- package/dist/magma-components/{p-cc88c963.system.entry.js → p-cc9659e1.system.entry.js} +1 -1
- package/dist/magma-components/{p-da6cf595.system.entry.js → p-ccc40c6a.system.entry.js} +2 -2
- package/dist/magma-components/p-cf6f54e5.system.entry.js +9 -0
- package/dist/magma-components/p-d0a93a14.system.entry.js +22 -0
- package/dist/magma-components/{p-dbf69d54.system.entry.js → p-d0bfdb44.system.entry.js} +2 -2
- package/dist/magma-components/p-d37fe692.system.entry.js +10 -0
- package/dist/magma-components/{p-c1d8a25e.entry.js → p-d3d74616.entry.js} +1 -1
- package/dist/magma-components/{p-da9afc4b.system.entry.js → p-d48c40ab.system.entry.js} +2 -2
- package/dist/magma-components/{p-b728638c.system.entry.js → p-d561062f.system.entry.js} +4 -4
- package/dist/magma-components/p-d6b38d8a.entry.js +1 -0
- package/dist/magma-components/p-d8ae0f02.system.entry.js +15 -0
- package/dist/magma-components/{p-25576b51.system.entry.js → p-d92ccce5.system.entry.js} +2 -2
- package/dist/magma-components/{p-a2d10402.system.entry.js → p-d980c3d2.system.entry.js} +1 -1
- package/dist/magma-components/p-da24a265.entry.js +1 -0
- package/dist/magma-components/p-dbd34e3b.entry.js +1 -0
- package/dist/magma-components/{p-21fe0fef.system.entry.js → p-dc1a5826.system.entry.js} +1 -1
- package/dist/magma-components/p-e1383302.entry.js +1 -0
- package/dist/magma-components/{p-95486c6a.system.entry.js → p-e39518b4.system.entry.js} +2 -2
- package/dist/magma-components/{p-b509fb36.entry.js → p-e3a65644.entry.js} +1 -1
- package/dist/magma-components/{p-1a5411a8.entry.js → p-e5950aee.entry.js} +1 -1
- package/dist/magma-components/{p-3a88fc9b.system.entry.js → p-e5d41024.system.entry.js} +1 -1
- package/dist/magma-components/{p-14b40c21.entry.js → p-e5eb2390.entry.js} +1 -1
- package/dist/magma-components/{p-8ba250d6.system.entry.js → p-edf003f1.system.entry.js} +1 -1
- package/dist/magma-components/p-f1aafe07.entry.js +1 -0
- package/dist/magma-components/{p-69b37755.system.entry.js → p-f2f992c2.system.entry.js} +2 -2
- package/dist/magma-components/{p-1287fb51.entry.js → p-f35608b2.entry.js} +1 -1
- package/dist/magma-components/{p-b940888d.entry.js → p-f4d80d9a.entry.js} +1 -1
- package/dist/magma-components/{p-fd53a51c.entry.js → p-f588cf9e.entry.js} +1 -1
- package/dist/magma-components/{p-a53f6a94.system.entry.js → p-f66675f5.system.entry.js} +2 -2
- package/dist/magma-components/{p-4225484c.entry.js → p-f670ed20.entry.js} +1 -1
- package/dist/magma-components/{p-96f973e3.entry.js → p-f7147d05.entry.js} +1 -1
- package/dist/magma-components/{p-4f24ccf3.entry.js → p-f78c1699.entry.js} +1 -1
- package/dist/magma-components/{p-f48843b7.system.entry.js → p-f82c2b7e.system.entry.js} +1 -1
- package/dist/magma-components/{p-ce2ef293.system.entry.js → p-f889d413.system.entry.js} +7 -7
- package/dist/magma-components/{p-70a911e8.entry.js → p-fac6f123.entry.js} +1 -1
- package/dist/magma-components/{p-90fe332f.entry.js → p-fc2d1134.entry.js} +1 -1
- package/dist/magma-components/{p-C25F_FlB.js → p-iX3kcwYg.js} +1 -1
- package/dist/magma-components/{p-D8596ytD.system.js → p-mGgjNqBm.system.js} +6 -6
- package/dist/stats.json +3560 -2714
- package/dist/types/components/mds-emoji/mds-emoji.d.ts +2 -0
- package/dist/types/components/mds-entity/mds-entity.d.ts +1 -0
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +3 -3
- package/dist/types/components/mds-link/mds-link.d.ts +71 -0
- package/dist/types/components/mds-link/meta/dictionary.d.ts +3 -0
- package/dist/types/components/mds-link/meta/types.d.ts +3 -0
- package/dist/types/components.d.ts +103 -4
- package/package.json +11 -10
- package/dist/components/p-2gaGDQwL.js +0 -1
- package/dist/components/p-AFBkzOrP.js +0 -1
- package/dist/components/p-BN5kmfLJ.js +0 -8
- package/dist/components/p-BUr3NqxM.js +0 -1
- package/dist/components/p-BjFCjSw6.js +0 -1
- package/dist/components/p-CIWWmisz.js +0 -1
- package/dist/components/p-CJyTL7Mj.js +0 -1
- package/dist/components/p-CylHulxe.js +0 -1
- package/dist/components/p-D3_jgpKd.js +0 -1
- package/dist/components/p-D8eZRaSQ.js +0 -1
- package/dist/components/p-DGGk8PS_.js +0 -1
- package/dist/components/p-DYpfVn7a.js +0 -1
- package/dist/components/p-wHQGpA62.js +0 -1
- package/dist/esm-es5/unit-D8eZRaSQ.js +0 -1
- package/dist/magma-components/p-0b5fe949.entry.js +0 -1
- package/dist/magma-components/p-0b7a884e.system.entry.js +0 -29
- package/dist/magma-components/p-12a2f8e2.system.entry.js +0 -13
- package/dist/magma-components/p-1989c0b4.entry.js +0 -8
- package/dist/magma-components/p-20608f69.system.entry.js +0 -35
- package/dist/magma-components/p-2061e567.entry.js +0 -1
- package/dist/magma-components/p-21c2d7bd.entry.js +0 -1
- package/dist/magma-components/p-2294945a.system.entry.js +0 -34
- package/dist/magma-components/p-2aab3752.entry.js +0 -1
- package/dist/magma-components/p-2c4d2717.entry.js +0 -1
- package/dist/magma-components/p-2d7d9e4f.entry.js +0 -1
- package/dist/magma-components/p-3b36319a.entry.js +0 -1
- package/dist/magma-components/p-3e1b21bd.entry.js +0 -1
- package/dist/magma-components/p-3eaeb263.system.entry.js +0 -25
- package/dist/magma-components/p-4116e328.system.entry.js +0 -1
- package/dist/magma-components/p-4191bf22.entry.js +0 -1
- package/dist/magma-components/p-4260da67.system.entry.js +0 -12
- package/dist/magma-components/p-43338a07.entry.js +0 -1
- package/dist/magma-components/p-4c2dad1e.system.entry.js +0 -81
- package/dist/magma-components/p-505fb7d4.entry.js +0 -1
- package/dist/magma-components/p-51a869ee.entry.js +0 -1
- package/dist/magma-components/p-52a85b97.system.entry.js +0 -9
- package/dist/magma-components/p-53bcfdbb.entry.js +0 -1
- package/dist/magma-components/p-5439125d.system.entry.js +0 -10
- package/dist/magma-components/p-5a2deba5.entry.js +0 -1
- package/dist/magma-components/p-6b01ef3b.entry.js +0 -1
- package/dist/magma-components/p-6da68fd5.entry.js +0 -1
- package/dist/magma-components/p-6ebbcd7b.system.entry.js +0 -14
- package/dist/magma-components/p-70f5536c.system.entry.js +0 -15
- package/dist/magma-components/p-765ff9a3.system.entry.js +0 -98
- package/dist/magma-components/p-7a568cbf.entry.js +0 -1
- package/dist/magma-components/p-7f776dff.entry.js +0 -1
- package/dist/magma-components/p-811272a9.entry.js +0 -1
- package/dist/magma-components/p-87b15008.entry.js +0 -1
- package/dist/magma-components/p-8a4a2b5a.entry.js +0 -1
- package/dist/magma-components/p-93d8b236.system.entry.js +0 -10
- package/dist/magma-components/p-972ff8a9.entry.js +0 -18
- package/dist/magma-components/p-9a28bd8d.system.entry.js +0 -20
- package/dist/magma-components/p-9caf411a.system.entry.js +0 -13
- package/dist/magma-components/p-9e4e1a86.system.entry.js +0 -111
- package/dist/magma-components/p-BHS0WXNt.system.js +0 -107
- package/dist/magma-components/p-D8eZRaSQ.js +0 -1
- package/dist/magma-components/p-QYez4sql.system.js +0 -5
- package/dist/magma-components/p-_X0N_X__.system.js +0 -1
- package/dist/magma-components/p-a08d20c2.system.entry.js +0 -1
- package/dist/magma-components/p-a51f849a.entry.js +0 -1
- package/dist/magma-components/p-a6fe6b4c.system.entry.js +0 -1
- package/dist/magma-components/p-a8593847.entry.js +0 -1
- package/dist/magma-components/p-ac4109e3.entry.js +0 -1
- package/dist/magma-components/p-b36d54e1.system.entry.js +0 -41
- package/dist/magma-components/p-b48fc62e.entry.js +0 -1
- package/dist/magma-components/p-b6b7dc40.entry.js +0 -1
- package/dist/magma-components/p-b9e0b31d.entry.js +0 -1
- package/dist/magma-components/p-bba4c7eb.entry.js +0 -1
- package/dist/magma-components/p-be741e35.entry.js +0 -1
- package/dist/magma-components/p-c3622315.entry.js +0 -1
- package/dist/magma-components/p-c6db7a0f.system.entry.js +0 -22
- package/dist/magma-components/p-ca8e0927.system.entry.js +0 -7
- package/dist/magma-components/p-d0f257d9.system.entry.js +0 -80
- package/dist/magma-components/p-d3678561.system.entry.js +0 -35
- package/dist/magma-components/p-daf9c8ca.system.entry.js +0 -4
- package/dist/magma-components/p-dba5a6da.entry.js +0 -1
- package/dist/magma-components/p-dbb82d72.system.entry.js +0 -54
- package/dist/magma-components/p-dc3ef031.system.entry.js +0 -27
- package/dist/magma-components/p-dd8fb2f8.system.entry.js +0 -105
- package/dist/magma-components/p-e15a874b.entry.js +0 -1
- package/dist/magma-components/p-e954b5c5.entry.js +0 -1
- package/dist/magma-components/p-eba7cfb3.entry.js +0 -1
- package/dist/magma-components/p-f28e048b.system.entry.js +0 -55
- package/dist/magma-components/p-f454c06b.entry.js +0 -1
- package/dist/magma-components/p-f7f6881a.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,d as a,h as o,e as s,g as r}from"./p-CPRkNQdE.js";import{c as i}from"./p-D8eZRaSQ.js";import{p as e}from"./p-C25F_FlB.js";import{L as n}from"./p-BmT_DEV2.js";import{h as d}from"./p-AEckDMXh.js";import{c}from"./p-ChV9xqsO.js";var h={hide:"Απόκρυψη"},m={hide:"Hide"},l={hide:"Ocultar"},v={hide:"Nascondi"};const p=class{constructor(o){t(this,o),this.closedEvent=a(this,"mdsToastClose",7),this.cssDismissAnimationDuration=300,this.countdownStart=0,this.pointerInside=!1,this.focusInside=!1,this.closeReason="hide",this.t=new n({el:h,en:m,es:l,it:v}),this.stacked=!1,this.duration=5e3,this.variant="light",this.tone="strong",this.position="bottom-center",this.hasDuration=()=>{var t;const a=null!==(t=this.duration)&&void 0!==t?t:0;return 0!==a&&!Number.isNaN(a)},this.stopCountdown=()=>{window.clearTimeout(this.dismissTimer),this.dismissTimer=void 0},this.runCountdown=()=>{void 0!==this.remaining&&void 0===this.dismissTimer&&(this.pointerInside||this.focusInside||(this.countdownStart=Date.now(),this.dismissTimer=window.setTimeout((()=>{this.dismissTimer=void 0,this.remaining=void 0,this.hide("timeout")}),this.remaining)))},this.holdCountdown=()=>{void 0!==this.dismissTimer&&void 0!==this.remaining&&(this.stopCountdown(),this.remaining=Math.max(0,this.remaining-(Date.now()-this.countdownStart)))},this.reloadTimeListeners=t=>{"undefined"!=typeof window&&(this.stopCountdown(),this.remaining=t&&this.hasDuration()?this.duration:void 0,this.runCountdown())},this.hide=t=>{this.closeReason=t,this.visible=!1},this.onCloseClick=()=>{this.hide("close")},this.onPointerEnter=()=>{this.pointerInside=!0,this.holdCountdown()},this.onPointerLeave=()=>{this.pointerInside=!1,this.runCountdown()},this.onFocusIn=()=>{this.focusInside=!0,this.holdCountdown()},this.onFocusOut=()=>{this.focusInside=!1,this.runCountdown()},this.closeButtonVariant=()=>{switch(this.variant){case"light":return"dark";case"error":case"info":case"success":case"warning":return this.variant;default:return"light"}},this.onActionSlotChange=()=>{this.hasActions=d(this.hostElement,"action")}}updateCSSCustomProps(){if("undefined"==typeof window)return;const t=window.getComputedStyle(this.hostElement);this.cssDismissAnimationDuration=i(t.getPropertyValue("--private-toast-transition-duration"),0)}connectedCallback(){this.stacked=null!==this.hostElement.closest("mds-toast-region")}disconnectedCallback(){window.clearTimeout(this.dismissTimer),window.clearTimeout(this.closeTimer),this.dismissTimer=void 0,this.closeTimer=void 0}componentWillLoad(){this.hasText=""!==this.hostElement.innerHTML,this.hasActions=d(this.hostElement,"action"),this.reloadTimeListeners(!!this.visible)}componentDidLoad(){this.updateCSSCustomProps()}visibleChanged(t,a){this.updateCSSCustomProps();const o=this.closeReason;if(this.closeReason="hide",t||(this.pointerInside=!1,this.focusInside=!1),this.reloadTimeListeners(t),t)return window.clearTimeout(this.closeTimer),void(this.closeTimer=void 0);a&&(window.clearTimeout(this.closeTimer),this.closeTimer=window.setTimeout((()=>{this.closeTimer=void 0,this.closedEvent.emit({reason:o})}),this.cssDismissAnimationDuration))}durationChanged(){this.reloadTimeListeners(!!this.visible)}render(){var t;return o(s,{key:"54d6d4cb0813dd1d58fc32d57c044e4f3c0888b7",role:this.stacked?void 0:"status",stacked:this.stacked,"pref-animation":e.state.animation,"pref-contrast":e.state.contrast,"pref-mode":e.state.mode,"pref-theme-scheme":e.state["theme-scheme"]},o("div",{key:"acf4944a4ceca7b96f2eac57ccfe78b2d267dfa9",class:c("dialog",this.position&&`to-${this.position}`,this.visible&&"dialog--visible"),onFocusin:this.onFocusIn,onFocusout:this.onFocusOut,onPointerEnter:this.onPointerEnter,onPointerLeave:this.onPointerLeave},o("slot",{key:"b26ca83def0e4bf35c85ac7ece1b04c46ed2664f",name:"icon"}),this.hasText&&o("mds-text",{key:"c97189fd1bff2693686184e006c6282d0f67ac09",typography:"caption"},o("slot",{key:"b1964597f7b88df8f5bf2fddf3673eb033f45ce0"})),o("div",{key:"d6ab6634153b14b4f00d546d3dda91918505d7a9",class:c("actions",!this.hasActions&&"actions--hidden")},o("slot",{key:"087fb1d4d1e8e122db02061f91489ba87193457e",name:"action",onSlotchange:this.onActionSlotChange})),this.deletable&&o("mds-button",{key:"668d30646ab454eab30f8b34fa09aa2a7338a2dd","aria-label":this.t.get("hide"),class:"hide",icon:(null===(t=this.position)||void 0===t?void 0:t.startsWith("top"))?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8l-8 8z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8l8-8z"/></svg>',onClick:this.onCloseClick,size:"sm",tone:"text",type:"button",variant:this.closeButtonVariant()})))}get hostElement(){return r(this)}static get watchers(){return{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}}};p.style='@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-toast-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-duration:.3s;--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-xl,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a);--mds-toast-width:auto;--private-toast-transition-duration:var(--mds-toast-duration,.3s);--private-toast-transition-duration-intro:var(--duration-500,.5s);--private-toast-transition-duration-icon:var(--duration-200,.2s);color:var(--mds-toast-color,rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))));display:flex;left:0;pointer-events:none;position:fixed;right:0;z-index:var(--magma-modal-z-index,3000)}.dialog{--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));background-color:var(--mds-toast-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));box-shadow:var(--mds-toast-shadow);transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));corner-shape:var(--magma-corner-shape,squircle);align-items:center;display:inline-flex;gap:calc(var(--spacing,.0025rem)*400);margin-inline:calc(var(--spacing,.0025rem)*400);max-width:100%;padding:calc(var(--spacing,.0025rem)*400);pointer-events:none;transition-duration:var(--private-toast-transition-duration);transition-property:box-shadow,background-color,color,transform,visibility;visibility:hidden;width:var(--mds-toast-width,auto)}:host([visible]:not([visible=false])) .dialog{pointer-events:auto;visibility:visible}:host([position^=top]){top:0}:host([position=top-left]){justify-content:flex-start}:host([position=top-center]){justify-content:center}:host([position=top-right]){justify-content:flex-end}:host([position^=bottom]){bottom:0}:host([position=bottom-left]){justify-content:flex-start}:host([position=bottom-center]){justify-content:center}:host([position=bottom-right]){justify-content:flex-end}.actions{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}.hide{flex-shrink:0}::slotted([slot=icon]){--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));fill:var(--mds-toast-icon-color,rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))));flex-shrink:0;transition-duration:var(--private-toast-transition-duration-icon);transition-property:fill;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}:host([variant=dark]),:host([variant=dark][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)))}:host([variant=dark][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)))}:host([variant=error]),:host([variant=error][tone=strong]){--mds-toast-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-toast-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error][tone=weak]){--mds-toast-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-toast-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=info]),:host([variant=info][tone=strong]){--mds-toast-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-toast-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info][tone=weak]){--mds-toast-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-toast-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=light]),:host([variant=light][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-toast-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([variant=light][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-toast-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}:host([variant=success]),:host([variant=success][tone=strong]){--mds-toast-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-toast-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success][tone=weak]){--mds-toast-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-toast-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning]),:host([variant=warning][tone=strong]){--mds-toast-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-toast-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning][tone=weak]){--mds-toast-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-toast-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}.to-top-center,.to-top-left,.to-top-right{transform:translateY(calc(-100% - var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,.3s));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-top-center.dialog--visible,.to-top-left.dialog--visible,.to-top-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.to-bottom-center,.to-bottom-left,.to-bottom-right{transform:translateY(calc(100% + var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,.3s));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-bottom-center.dialog--visible,.to-bottom-left.dialog--visible,.to-bottom-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400*-1));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}:host([stacked]){inset:auto;position:relative;transition-behavior:allow-discrete;transition-duration:var(--private-toast-transition-duration);transition-property:display;z-index:auto}:host([stacked]:not([visible])),:host([stacked][visible=false]){display:none}:host([stacked]) .dialog:not(.dialog--visible){opacity:0;transform:none}@starting-style{:host([stacked]) .dialog--visible{opacity:0;transform:none}}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}:host([pref-contrast=more]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}}';export{p as mds_toast}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,d as t,h as r,e as i,g as o}from"./p-CPRkNQdE.js";import{c as a}from"./p-ChV9xqsO.js";import{h as n}from"./p-AEckDMXh.js";import{L as d}from"./p-BmT_DEV2.js";import{c as s}from"./p-D8eZRaSQ.js";import"./p-C25F_FlB.js";var l={expand:"Ανάπτυξη {{ label }}",collapse:"Σύμπτυξη {{ label }}"},c={expand:"Expand {{ label }}",collapse:"Collapse {{ label }}"},g={expand:"Expandir {{ label }}",collapse:"Contraer {{ label }}"},m={expand:"Espandi {{ label }}",collapse:"Contrai {{ label }}"};const h=class{constructor(r){e(this,r),this.expandEvent=t(this,"mdsTreeItemExpand",7),this.collapsedEvent=t(this,"mdsTreeItemCollapse",7),this.hasActions=!1,this.hasChildren=!1,this.t=new d({el:l,en:c,es:g,it:m}),this.truncate="word",this.checkChildrenTransitionEnd=()=>{this.childrenElement.classList.contains("children--expanded")||this.childrenElement.classList.add("children--hidden")},this.updateToggleIcon=()=>{this.currentToggleIcon="folder"!==this.toggle?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"/></svg>':this.expanded?'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-folder-open" viewBox="0 0 24 24"><path d="M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19A2,2 0 0,1 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z" /></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/></svg>'},this.onClick=()=>{!this.async||this.expanded?this.updateToggle():this.idle()},this.idle=()=>{this.await=!0,this.expandEvent.emit({element:this.host})},this.updateToggle=()=>{this.expanded=!this.expanded,this.updateToggleIcon()},this.updateCssCustomProperty=()=>{const e=window.getComputedStyle(this.host);this.cssToggleChildrenDuration=e.getPropertyValue("--mds-tree-item-transition-duration")},this.resolveActions=()=>{var e;const t=this.host.closest("mds-tree-item[actions], mds-tree[actions]");this.resolvedActions=null!==(e=null==t?void 0:t.getAttribute("actions"))&&void 0!==e?e:"auto"},this.expandedState=()=>this.hasChildren||this.async?String(!!this.expanded):void 0,this.onActionSlotChange=()=>{this.hasActions=n(this.host,"action")},this.updateHasChildren=()=>{this.hasChildren=!!this.host.querySelector("mds-tree-item")}}handleIconChange(){this.updateToggleIcon()}handleExpandedChange(e){var t;this.updateToggleIcon(),e?null===(t=this.childrenElement)||void 0===t||t.classList.remove("children--hidden"):(this.updateCssCustomProperty(),this.toggleChildrenTimer=setTimeout((()=>{clearTimeout(this.toggleChildrenTimer),this.collapsedEvent.emit({element:this.host})}),s(this.cssToggleChildrenDuration,0)))}async expand(){this.expanded=!0,this.await=!1,this.updateToggleIcon()}handleActionsChange(){this.resolveActions()}async refreshActions(){this.resolveActions()}componentWillLoad(){this.updateToggleIcon(),this.resolveActions(),this.hasActions=n(this.host,"action"),this.updateHasChildren()}componentDidLoad(){var e;this.updateCssCustomProperty(),this.childrenElement=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".children"),this.childrenElement.addEventListener("transitionend",this.checkChildrenTransitionEnd)}disconnectedCallback(){this.childrenElement.removeEventListener("transitionend",this.checkChildrenTransitionEnd)}render(){return r(i,{key:"735098e78ac200244db7f011e0d60f5111324af1","resolved-actions":this.resolvedActions,role:"listitem"},r("div",{key:"c416d0e4ced03af6ea187fe85dd99edd1634f7de",class:a("header",this.hasChildren&&"header--has-children")},r("div",{key:"07952207361f352ad77724a181d1177a61aedfe7",class:"tree-node"},r("div",{key:"a6a3b6cfadd34471fcc0236e37653008b53a3c6b",class:"tree-branch"}),r("div",{key:"ed2ace03fa2e4d94994d35c66d7083a02ddd85b3",class:"tree-dot"})),r("div",{key:"3f5dd3c32641cd32157e1ad9ca61b9653719e991",class:"toggle-icon"},r("mds-button",{key:"a24fe48961109b728eafecf0fd1a95debfd6dc1c","aria-expanded":this.expandedState(),await:this.await,onClick:this.onClick,icon:this.await?void 0:this.currentToggleIcon,title:this.t.get(this.expanded?"collapse":"expand",{label:this.label}),variant:"dark",tone:"text",size:"sm"})),r("div",{key:"2508c264bb305a850f5de7f5338a93d2b7256812",class:"title"},r("mds-button",{key:"a700b659554c64c9d1ac43de263630d403b923e2","aria-expanded":this.expandedState(),class:a("label-action",this.await&&"label-action--await"),disabled:this.await,icon:this.icon,onClick:this.onClick,variant:"dark",tone:"text",truncate:this.truncate,label:this.label}),r("div",{key:"875dc79ae0953f8f2ad24c1680fbf2f31e6b5392",class:a("actions-container",this.hasActions&&"actions-container--has-actions"),part:"actions-container"},r("div",{key:"a27e94d38d41a1ce1146fd1f3f9cd4ade4ce7e3b",class:"actions",part:"actions-list"},r("slot",{key:"384a111728b3fb61d6444c34d53781e9d5898135",name:"action",onSlotchange:this.onActionSlotChange}))))),r("div",{key:"2303bbbd30f35902771fdb9c877e205698c1ea64",class:a("children",this.hasChildren&&"children--has-children",this.expanded&&"children--expanded"),role:this.hasChildren?"list":void 0},r("slot",{key:"03b549736e3f0dfcfdd72cd9793c0fb475c8b409",onSlotchange:this.updateHasChildren})))}get host(){return o(this)}static get watchers(){return{toggle:[{handleIconChange:0}],expanded:[{handleExpandedChange:0}],actions:[{handleActionsChange:0}]}}};h.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}@container style(--mds-tree-branch-use-rounded-border:true){:host{--mds-tree-branch-border-radius:var(--private-tree-item-branch-border-radius)}}@container style(--mds-tree-branch-use-rounded-border:false){:host{--mds-tree-branch-border-radius:0px}}:host{--mds-tree-item-actions-border-radius:var(--mds-tree-actions-border-radius);--mds-tree-item-actions-gap:var(--mds-tree-actions-gap);--mds-tree-item-branch-border-color:var(--mds-tree-branch-border-color);--mds-tree-item-branch-border-radius:var(--mds-tree-branch-border-radius,var(--private-tree-item-branch-border-radius));--mds-tree-item-branch-border-size:var(--mds-tree-branch-border-size);--mds-tree-item-branch-dot-default-color:var(--mds-tree-branch-dot-default-color);--mds-tree-item-branch-dot-expanded-color:var(--mds-tree-branch-dot-expanded-color);--mds-tree-item-label-default-background:var(--mds-tree-label-default-background);--mds-tree-item-label-hover-background:var(--mds-tree-label-hover-background);--mds-tree-item-label-icon-default-color:var(--mds-tree-label-icon-default-color);--mds-tree-item-label-icon-hover-color:var(--mds-tree-label-icon-hover-color);--mds-tree-item-line-clamp:var(--mds-tree-line-clamp);--mds-tree-item-toggle-gap:var(--mds-tree-toggle-gap,calc(var(--spacing,.0025rem)*100));--mds-tree-item-toggle-icon-async-background:var(--mds-tree-toggle-icon-async-background);--mds-tree-item-toggle-icon-async-color:var(--mds-tree-toggle-icon-async-color);--mds-tree-item-toggle-icon-chevron-default-background:var(--mds-tree-toggle-icon-chevron-default-background);--mds-tree-item-toggle-icon-chevron-default-color:var(--mds-tree-toggle-icon-chevron-default-color);--mds-tree-item-toggle-icon-chevron-expanded-background:var(--mds-tree-toggle-icon-chevron-expanded-background,var(--mds-tree-item-toggle-icon-chevron-default-background));--mds-tree-item-toggle-icon-chevron-expanded-color:var(--mds-tree-toggle-icon-chevron-expanded-color,var(--mds-tree-item-toggle-icon-chevron-default-color));--mds-tree-item-toggle-icon-folder-default-background:var(--mds-tree-toggle-icon-folder-default-background);--mds-tree-item-toggle-icon-folder-default-color:var(--mds-tree-toggle-icon-folder-default-color);--mds-tree-item-toggle-icon-folder-expanded-background:var(--mds-tree-item-toggle-icon-folder-default-background);--mds-tree-item-toggle-icon-folder-expanded-color:var(--mds-tree-toggle-icon-folder-expanded-color,var(--mds-tree-item-toggle-icon-folder-default-color));--mds-tree-item-toggle-icon-position-right-default-background:var(--mds-tree-toggle-icon-position-right-default-background);--mds-tree-item-toggle-icon-position-right-default-color:var(--mds-tree-toggle-icon-position-right-default-color);--mds-tree-item-toggle-icon-position-right-expanded-background:var(--mds-tree-toggle-icon-position-right-expanded-background);--mds-tree-item-toggle-icon-position-right-expanded-color:var(--mds-tree-toggle-icon-position-right-expanded-color);--mds-tree-item-toggle-size:var(--mds-tree-toggle-size);--mds-tree-item-transition-duration:var(--mds-tree-transition-duration);--mds-tree-item-transition-timing-function:var(--mds-tree-transition-timing-function);--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-chevron-default-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-chevron-default-color);--header-gap:var(--mds-tree-item-toggle-gap);--private-tree-item-branch-border-radius:min(var(--magma-radius-lg,var(--radius-squircle-lg,28px)),var(--magma-corner-cap,.5) * var(--mds-tree-item-toggle-size));display:grid;transition-duration:var(--mds-tree-item-transition-duration);transition-timing-function:var(--mds-tree-item-transition-timing-function)}.header{--offset:calc(var(--mds-tree-item-toggle-size) + var(--header-gap));align-items:flex-start;gap:var(--header-gap);position:relative;z-index:1}.header,.title{display:flex;min-width:0}.title{align-items:stretch;flex-grow:1;gap:calc(var(--spacing,.0025rem)*200);justify-content:space-between}.label-action{--mds-button-line-clamp:var(--mds-tree-item-line-clamp);--padding:calc(var(--spacing,.0025rem)*100);background-color:var(--mds-tree-item-label-default-background);border-radius:min(var(--magma-radius-lg,var(--radius-squircle-lg,28px)),var(--magma-corner-cap,.5) * calc(var(--spacing,.0025rem)*900));fill:var(--mds-tree-item-label-icon-default-color);flex-grow:1;justify-content:flex-start;margin-left:calc(var(--padding)*-1);padding-left:var(--padding);padding-right:var(--padding)}.label-action:hover{background-color:var(--mds-tree-item-label-hover-background);fill:var(--mds-tree-item-label-icon-hover-color)}.actions-container{--duration-300:.3s;--ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));border-radius:var(--mds-tree-item-actions-border-radius);corner-shape:var(--magma-corner-shape,squircle);interpolate-size:allow-keywords;align-items:center;display:none;justify-content:flex-start;min-width:0;overflow:hidden;transition-behavior:allow-discrete;transition-duration:var(--duration-300,.3s);transition-property:min-width,width,overflow;transition-timing-function:var(--ease);width:0}.actions-container--has-actions{display:flex}.actions{border-radius:var(--mds-tree-item-actions-border-radius);corner-shape:var(--magma-corner-shape,squircle);align-items:center;display:inline-flex;flex-shrink:0;gap:var(--mds-tree-item-actions-gap);pointer-events:none;transform:scale(0);transition-duration:var(--duration-300,.3s);transition-property:transform;transition-timing-function:var(--ease)}.header:focus-within .actions,.header:hover .actions,:host([resolved-actions=visible]) .actions-container{pointer-events:auto}.header:focus-within .actions-container,.header:hover .actions-container,:host([resolved-actions=visible]) .actions-container{animation:toggleOverflow var(--duration-300,.3s) forwards;min-width:fit-content;width:fit-content}.header:focus-within .actions,.header:hover .actions,:host([resolved-actions=visible]) .actions{transform:scale(1)}.children{--mds-tree-item-children-padding-left:calc(var(--mds-tree-item-toggle-size)/2 - var(--mds-tree-item-branch-border-size)/2);interpolate-size:allow-keywords;display:flex;flex-direction:column;height:0;overflow:clip;padding-left:var(--mds-tree-item-children-padding-left);position:relative;transform:translateY(calc(var(--mds-tree-item-toggle-size)/2*-1));transition-duration:var(--mds-tree-item-transition-duration);transition-property:height,transform,visibility;transition-timing-function:var(--mds-tree-item-transition-timing-function);visibility:hidden;z-index:0}.children--expanded{animation:toggleOverflow var(--mds-tree-item-transition-duration) forwards;animation-timing-function:var(--mds-tree-item-transition-timing-function);display:flex;height:auto;transform:translateY(0);visibility:inherit}.children--empty,.children--hidden{display:none}@keyframes toggleOverflow{99.99%{overflow:hidden}to{overflow:visible}}@keyframes toggleDisplay{99.99%{display:flex}to{display:none}}.tree-node{--middle-pos-x:calc(50% - var(--mds-tree-item-branch-border-size)/2);align-items:center;box-sizing:border-box;display:inline-flex;flex-shrink:0;height:var(--mds-tree-item-toggle-size);justify-content:center;pointer-events:none;position:relative;width:var(--mds-tree-item-toggle-size);z-index:0}.tree-branch{--pos-y:calc(calc(var(--mds-tree-item-toggle-size) / 2 + var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)))) * -1);--tree-height:calc(var(--mds-tree-item-toggle-size) + var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px))) + var(--mds-tree-item-branch-border-size) / 2);--tree-width:calc(var(--mds-tree-item-toggle-size)/2);border-color:var(--mds-tree-item-branch-border-color);border-radius:0 0 0 var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)));border-style:solid;border-width:0 0 var(--mds-tree-item-branch-border-size) var(--mds-tree-item-branch-border-size);box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);display:flex;height:var(--tree-height);inset:0;position:absolute;transform:translateY(var(--pos-y));width:calc(var(--mds-tree-item-toggle-size)/2);z-index:1}:host(:first-child) .tree-branch{--pos-y:calc(var(--mds-tree-item-toggle-size)/2*-1);--tree-height:calc(var(--mds-tree-item-toggle-size) + var(--mds-tree-item-branch-border-size)/2)}.tree-dot{--size:calc(var(--spacing,.0025rem)*300 + var(--mds-tree-item-branch-border-size)*2);background-color:var(--mds-tree-item-branch-border-color);border-radius:var(--size);display:none;height:var(--size);position:relative;width:var(--size)}.header--has-children .tree-dot{display:inline-flex}.header:not(.header--has-children) .tree-node .tree-branch{width:calc(var(--mds-tree-item-toggle-size) - var(--header-gap))}:host(:not(:last-child)) .header--has-children .tree-node:after{--size:calc(calc(var(--mds-tree-item-toggle-size) / 2) + var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px))));--pos-y:calc(var(--size)/2);border-color:var(--mds-tree-item-branch-border-color);border-radius:0 0 0 var(--mds-tree-item-branch-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)));border-style:solid;border-width:0 0 var(--mds-tree-item-branch-border-size) var(--mds-tree-item-branch-border-size);box-sizing:border-box;content:"";corner-shape:var(--magma-corner-shape,squircle);display:flex;height:var(--size);inset:0;position:absolute;transform:translateY(var(--pos-y));width:var(--mds-tree-item-branch-border-size);z-index:1}:host(:not(:last-child)) .children--has-children:before{border-left:var(--mds-tree-item-branch-border-size) solid var(--mds-tree-item-branch-border-color);content:"";display:flex;height:calc(100% + var(--mds-tree-item-toggle-size));left:0;position:absolute;top:calc(var(--mds-tree-item-toggle-size)*-1)}.tree-dot:after{--pos-y:calc(var(--size)/2);background-color:var(--mds-tree-item-branch-border-color);box-sizing:border-box;content:"";display:inline-flex;height:calc(var(--size)/2);inset:0 50% 0 0;position:absolute;transform:translate(calc(var(--pos-y) - var(--mds-tree-item-branch-border-size)/2),var(--pos-y));transition-duration:var(--mds-tree-item-transition-duration);transition-property:height;transition-timing-function:var(--mds-tree-item-transition-timing-function);width:var(--mds-tree-item-branch-border-size);z-index:1}:host([expanded]) .tree-dot:after{height:calc(var(--size) + var(--mds-tree-item-branch-border-size))}:host([depth="0"]) .children--has-children .tree-branch,:host([depth="0"]) .children--has-children:before,:host([depth="0"]) .header--has-children .tree-node:after,:host([depth="0"]) .tree-node .tree-branch,:host([depth="0"]) .tree-node:before{display:none}.toggle-icon{align-items:center;align-self:center;display:inline-flex;flex-shrink:0;height:var(--mds-tree-item-toggle-size);justify-content:center;margin-left:calc(var(--offset)*-1);position:relative;transform:rotate(0);transition-duration:var(--mds-tree-item-transition-duration);transition-property:transform;transition-timing-function:var(--mds-tree-item-transition-timing-function);width:var(--mds-tree-item-toggle-size);z-index:1}.toggle-icon mds-button{--size:calc(var(--spacing,.0025rem)*600);align-self:center;background-color:var(--mds-tree-item-icon-background-color);border:0;border-radius:var(--mds-tree-item-toggle-size);color:var(--mds-tree-item-icon-color);fill:var(--mds-tree-item-icon-color);height:var(--size);min-height:var(--size);min-width:var(--size);overflow:hidden;width:var(--size)}.toggle-icon mds-button[await]{background-color:var(--mds-tree-item-toggle-icon-async-background);color:var(--mds-tree-item-toggle-icon-async-color)}:host([toggle=chevron]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-chevron-default-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-chevron-default-color)}:host([expanded][toggle=chevron]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-chevron-expanded-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-chevron-expanded-color)}:host([toggle=folder][toggle-position=left]) .toggle-icon mds-button{box-shadow:0 calc(var(--spacing,.0025rem)*25) 0 0 var(--mds-tree-item-branch-border-color)}:host([toggle=folder]) .toggle-icon mds-button{--size:auto;border-radius:var(--magma-radius-3xs,var(--radius-squircle-3xs,6px));padding:calc(var(--spacing,.0025rem)*25) calc(var(--spacing,.0025rem)*50)}:host([toggle=folder]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-folder-default-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-folder-default-color)}:host([toggle=folder][expanded]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-folder-expanded-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-folder-expanded-color)}:host([toggle-position=right]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-position-right-default-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-position-right-default-color);background-color:#0000;order:1}:host([expanded][toggle-position=right]) .toggle-icon{--mds-tree-item-icon-background-color:var(--mds-tree-item-toggle-icon-position-right-expanded-background);--mds-tree-item-icon-color:var(--mds-tree-item-toggle-icon-position-right-expanded-color)}:host([expanded][toggle-position=left][toggle=chevron]) .toggle-icon{transform:rotate(90deg)}.header:not(.header--has-children) .toggle-icon{display:none}:host([toggle-position=left]) .toggle-icon{order:0}:host([toggle-position=right]) .header--has-children .title{margin-right:var(--offset)}:host([toggle-position=left][toggle=chevron][expanded]) .toggle-icon{transform:rotate(90deg)}:host([toggle-position=left][toggle=chevron]:not([expanded])) .toggle-icon{transform:rotate(0)}:host([toggle=chevron][toggle-position=right]) .toggle-icon{transform:rotate(90deg)}:host([toggle=chevron][expanded][toggle-position=right]) .toggle-icon{transform:rotate(270deg)}:host([toggle=chevron][toggle-position=right]) .toggle-icon--dot,:host([toggle=folder][toggle-position=right]) .toggle-icon--dot{transform:rotate(0)scale(.825)}:host([toggle=chevron][toggle-position=right]) .toggle-icon,:host([toggle=folder][toggle-position=right]) .toggle-icon{background-color:#0000;fill:var(--mds-tree-item-branch-dot-default-color)}:host([toggle=chevron][expanded][toggle-position=right]) .toggle-icon,:host([toggle=folder][expanded][toggle-position=right]) .toggle-icon{background-color:#0000;fill:var(--mds-tree-item-branch-dot-expanded-color)}:host([appearance=none]) .header{--offset:0;gap:0}:host([appearance=none]) .tree-dot,:host([appearance=none]) .tree-node,:host([appearance=none]:not(:last-child)) .children--has-children:before{display:none}:host([appearance=none]) .label-action{--padding:calc(var(--spacing,.0025rem)*200);margin-left:0;padding-left:var(--padding);padding-right:var(--padding)}:host([appearance=none][toggle-position=left]) .children{padding-left:calc(var(--header-gap)*2 + var(--mds-tree-item-branch-border-size) + var(--mds-tree-item-children-padding-left)*2)}:host([appearance=none][toggle-position=right]) .children{padding-left:var(--mds-tree-item-children-padding-left)}';export{h as mds_tree_item}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i,e as s,g as a}from"./p-CPRkNQdE.js";import{p as o}from"./p-C25F_FlB.js";import{r as n,s as e,h as r,a as d}from"./p-Cvhn9asj.js";import{o as c,s as m,c as h,b as f}from"./p-BaFfIZGB.js";const l=class{constructor(i){t(this,i),this.describing=!1,this.value=0,this.dismissed=!1,this.strategy="fixed",this.placement="right-start",this.updatePosition=()=>{const t=new Array,i="disabled"===this.strategy?"absolute":"fixed";t.push(c(0)),t.push(m({padding:0})),h(this.caller,this.host,{middleware:t,placement:this.placement,strategy:i}).then((({x:t,y:i})=>{Object.assign(this.host.style,{left:`${t}px`,top:`${i}px`})}))},this.clean=t=>{var i;if(0===(null!=t?t:0)||isNaN(t))return"";const s=null!==(i=this.max)&&void 0!==i?i:0;return 0!==s&&!Number.isNaN(s)&&t>s?`+${Number(s).toLocaleString()}`:Number(t).toLocaleString()},this.describeCaller=t=>{const i=this.host.id;this.describedCaller&&this.describedCaller!==t&&i&&n(this.describedCaller,"aria-describedby",i);const s=void 0!==t&&!this.dismissed&&""!==this.clean(this.value)&&t.getRootNode()===this.host.getRootNode();if(this.describing=s,!s)return t&&i&&n(t,"aria-describedby",i),void(this.describedCaller=void 0);const a=e(this.host,"id",r("mds-notification"));d(t,"aria-describedby",a),this.describedCaller=t},this.startAutoUpdate=()=>{var t;"disabled"!==this.strategy&&""!==(null!==(t=this.target)&&void 0!==t?t:"")&&this.caller&&(this.cleanupAutoUpdate||void 0!==this.autoUpdateTimer||(this.autoUpdateTimer=setTimeout((()=>{this.autoUpdateTimer=void 0,this.cleanupAutoUpdate=f(this.caller,this.host,this.updatePosition)}),100)))},this.stopAutoUpdate=()=>{var t;clearTimeout(this.autoUpdateTimer),this.autoUpdateTimer=void 0,null===(t=this.cleanupAutoUpdate)||void 0===t||t.call(this),this.cleanupAutoUpdate=void 0}}componentDidRender(){var t;if(""===(null!==(t=this.target)&&void 0!==t?t:""))return void(this.strategy="disabled");const i=document.querySelector(this.target);if(null==i)return console.warn(`mds-notification: no valid target found: ${this.target}`),void(this.strategy="disabled");this.caller=i,this.describeCaller(i)}componentDidLoad(){"disabled"!==this.strategy&&this.startAutoUpdate()}connectedCallback(){this.startAutoUpdate()}disconnectedCallback(){this.stopAutoUpdate(),this.describeCaller(void 0)}strategyHandler(t){"disabled"===t&&this.stopAutoUpdate()}render(){return i(s,{key:"a9e2d0a288c4b30a84389cf94fdad02e9795481d","aria-hidden":this.describing?"true":void 0,"pref-animation":o.state.animation},i("mds-text",{key:"3ad8f42e7772e356011f9763c0f99d2e0f0809ce",typography:"caption",class:"dot"},this.clean(this.value)))}get host(){return a(this)}static get watchers(){return{strategy:[{strategyHandler:0}]}}};l.style='@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-notification-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-dot-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-notification-dot-padding:6px;--mds-notification-min-width:var(--mds-notification-size,20px);--mds-notification-ring-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-ring-size:2px;--mds-notification-size:20px;--mds-notification-transition-duration:.2s;--private-notification-transition-duration:var(--mds-notification-transition-duration,.2s);--mds-notification-dot-transition-duration:var(--duration-300,.3s);--private-notification-dot-transition-duration:var(--mds-notification-dot-transition-duration);--mds-notification-transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));--mds-notification-translate-offset-x:-1.75;--mds-notification-translate-offset-y:-2;--mds-notification-translate:translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)));align-items:center;border-radius:var(--magma-radius-full,var(--radius-full,1000px));bottom:100%;color:var(--mds-notification-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));display:inline-flex;height:var(--mds-notification-size,20px);justify-content:flex-end;min-width:max-content;pointer-events:none;width:var(--mds-notification-size,20px);z-index:10}:host([strategy=absolute]),:host([strategy=fixed]){opacity:0;right:100%;transform:var(--mds-notification-translate,translate(-11.42857px,-10px)) scale(0);transform-origin:calc(100% - var(--mds-notification-size,20px)/2) 50%;transition-duration:var(--private-notification-transition-duration);transition-property:color,height,opacity,transform,width;transition-timing-function:var(--mds-notification-transition-timing-function)}:host([strategy=absolute]){position:absolute}:host([strategy=fixed]){position:fixed}.dot{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-notification-dot-background,rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));box-shadow:0 0 0 var(--mds-notification-ring-size,2px) var(--mds-notification-ring-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));box-sizing:border-box;display:inline-flex;justify-content:center;line-height:var(--mds-notification-size,20px);min-height:var(--mds-notification-size,20px);min-width:var(--mds-notification-min-width,20px);padding-left:var(--mds-notification-dot-padding,6px);padding-right:var(--mds-notification-dot-padding,6px);position:static;transition-duration:var(--private-notification-dot-transition-duration);transition-property:background-color,color,box-shadow;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));white-space:nowrap}:host([strategy=absolute]) .dot,:host([strategy=fixed]) .dot{position:absolute}.spacer{box-sizing:border-box;display:inline-flex;height:var(--mds-notification-size,20px);width:var(--mds-notification-min-width,20px)}:host([dismissed]:not([dismissed=false])[strategy=absolute]),:host([dismissed]:not([dismissed=false])[strategy=fixed]){--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));opacity:1;transform:var(--mds-notification-translate,translate(-11.42857px,-10px)) scale(0);transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}:host([strategy=absolute]:not([dismissed])),:host([strategy=absolute][dismissed=false]),:host([strategy=fixed]:not([dismissed])),:host([strategy=fixed][dismissed=false]){--tw-ease:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));opacity:1;transform:var(--mds-notification-translate,translate(-11.42857px,-10px)) scale(1);transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1))}:host(:not([target])),:host([strategy=disabled]){opacity:1;position:static;transform:scale(1);transform-origin:unset;transition-duration:0s}:host(:not([target])) .dot,:host([strategy=disabled]) .dot{position:static}:host([dismissed]:not([dismissed=false]):not([target])),:host([dismissed]:not([dismissed=false])[strategy=disabled]){display:none}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-notification-transition-duration:0s;--private-notification-dot-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-notification-transition-duration:0s;--private-notification-dot-transition-duration:0s}}';export{l as mds_notification}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,d as a,h as s,e as r,g as e}from"./p-CPRkNQdE.js";import{b as i}from"./p-AEckDMXh.js";import{s as o,h as n}from"./p-Cvhn9asj.js";import{c as d}from"./p-ChV9xqsO.js";import{c as l}from"./p-D8eZRaSQ.js";import{p as h}from"./p-C25F_FlB.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.length>this.tabItems.length&&console.warn(`mds-tab: ${this.contentItems.length} content panels for ${this.tabItems.length} mds-tab-item, the panels past the last item are never shown`),this.contentItems.forEach(((t,a)=>{o(t,"role","tabpanel"),a<this.tabItems.length&&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:"780966a4389bc21db5a6236aad4e2af6b2d3192b","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:"2f75159dd2f2d3157942333d6fbe38d50db7eefc",class:d("tabs-wrapper",this.fill&&"tabs-wrapper--fill",!this.hasContent&&"tabs-wrapper--no-content")},this.overflow&&s("div",{key:"fed97d11b8ecaad311ba6d2786f9b943746db74d",class:d("tabs-wrapper-overflow-left",this.overflowLeft&&"tabs-wrapper-overflow-left--show")}),this.overflow&&s("div",{key:"e3820235416a017c11a709512f88b04a4e3011c4",class:d("tabs-wrapper-overflow-right",this.overflowRight&&"tabs-wrapper-overflow-right--show")}),s("div",{key:"e5e2dbfd2794f24e70ca7f6a3b16945abd65edd0",class:"tabs",part:"tabs",role:this.navigation?void 0:"tablist"},s("slot",{key:"d918fa0ba194bffdc4f563e17450cc3c4b6704ca"}),"slide"===this.animation&&s("div",{key:"49e15a844be7dd7632191e9f7f1b508be34a2f62",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:"5906706f684aeb6f0be7dd1abea27746d71716cf",class:d("contents",!this.hasContent&&"contents--empty"),part:"contents"},s("slot",{key:"088916022b6a8cbc4ab595202aadbfac4bd16d4d",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:none;--mds-tab-item-hover-background:#0000;--mds-tab-item-hover-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-radius:min(calc(var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px))) - var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200))),var(--magma-corner-cap,.5) * var(--private-tab-item-height));--mds-tab-item-selected-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-selected-shadow:var(--shadow-sm,0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a);--mds-tab-scroll-behavior:smooth;--mds-tab-scroll-scrollbar-margin:0;--mds-tab-scroll-scrollbar-radius:0;--mds-tab-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-tab-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3);--mds-tab-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-tab-slide-delay:.125s;--mds-tab-tabs-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-tab-tabs-gap:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-overflow-shadow-size:calc(var(--spacing,.0025rem)*600);--mds-tab-tabs-overflow-shadow:0 0 var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem)*600)) -2px #00000060;--mds-tab-tabs-padding:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-radius:min(var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)),var(--magma-corner-cap,.5) * var(--private-tab-item-height) + var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem)*200)));--mds-tab-tabs-wrapper-margin:0;--mds-tab-tabs-wrapper-outline-opacity:.7;--mds-tab-tabs-wrapper-shadow-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));--mds-tab-tabs-wrapper-shadow:0 0 0 2px var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-transition-duration:.5s;--private-tab-transition-duration:var(--mds-tab-transition-duration,.5s);--private-tab-item-height:calc(var(--spacing,.0025rem)*900);--mds-tab-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-tab-corner-shape:var(--magma-corner-shape,squircle);border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));corner-shape:var(--mds-tab-corner-shape,round);display:grid;gap:0 calc(var(--spacing,.0025rem)*600);grid-template-rows:min-content auto;position:relative}:host([size=sm]){--private-tab-item-height:calc(var(--spacing,.0025rem)*700)}:host([animation=slide]) ::slotted(mds-tab-item){--mds-tab-item-hover-background:#0000;--mds-tab-item-hover-shadow:none;--mds-tab-item-selected-background:#0000;--mds-tab-item-selected-shadow:#0000;--mds-tab-item-default-background:#0000;--mds-tab-item-default-shadow:none}.tabs{align-items:flex-start;background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));box-sizing:border-box;display:flex;gap:var(--mds-tab-tabs-gap,calc(var(--spacing,.0025rem)*200));overflow:auto;padding:var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem)*200));scroll-behavior:var(--mds-tab-scroll-behavior);scroll-snap-type:x mandatory;transition-duration:var(--private-tab-transition-duration);transition-property:background-color;transition-timing-function:var(--mds-tab-transition-timing-function);z-index:0}.tabs,.tabs-wrapper{border-radius:inherit;corner-shape:inherit;position:relative}.tabs-wrapper{display:grid;flex-shrink:0;margin:var(--mds-tab-tabs-wrapper-margin,0);max-width:max-content;overflow:hidden}.tabs-wrapper--fill{max-width:100%}.tabs-wrapper:after{border-radius:inherit;corner-shape:inherit;border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));box-shadow:var(--mds-tab-tabs-wrapper-shadow);content:"";inset:0;opacity:var(--mds-tab-tabs-wrapper-outline-opacity,.7);pointer-events:none;position:absolute;transition-duration:var(--private-tab-transition-duration);transition-duration:var(--mds-tab-transition-duration,.5s);transition-property:box-shadow,opacity;transition-timing-function:var(--mds-tab-transition-timing-function);z-index:1}.contents{--mds-tab-contents-height:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;align-items:stretch;box-sizing:border-box;display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*600);height:var(--mds-tab-contents-height);overflow:auto hidden;position:relative;scroll-behavior:var(--mds-tab-scroll-behavior);scroll-snap-type:x mandatory;scrollbar-width:none;transition-duration:var(--private-tab-transition-duration);transition-property:height;transition-timing-function:var(--mds-tab-transition-timing-function)}.contents::-webkit-scrollbar{display:none}.contents--empty{display:none}::slotted([slot=content]){flex-basis:0;flex-grow:1;min-width:100%;scroll-snap-align:start;width:100%}::slotted([slot=content][mds-tab-content-hidden]){display:none!important}.slider{--mds-tab-slider-offset-x:0;--mds-tab-slider-offset-y:0;--mds-tab-slider-width:0;--mds-tab-slider-height:0;background-color:var(--mds-tab-item-selected-background);border-radius:var(--mds-tab-item-radius);box-shadow:var(--mds-tab-item-selected-shadow);corner-shape:var(--mds-tab-corner-shape);height:var(--mds-tab-slider-height);inset:0 auto auto 0;pointer-events:none;position:absolute;transform:translate(var(--mds-tab-slider-offset-x),var(--mds-tab-slider-offset-y));transition-duration:var(--mds-tab-transition-duration,.5s);transition-property:background-color,box-shadow,transform,width;transition-timing-function:var(--mds-tab-transition-timing-function);width:var(--mds-tab-slider-width);will-change:height,transform,width;z-index:-1}.slider--still{transition-property:background-color,box-shadow}::slotted(mds-tab-item){position:relative;z-index:1}:host([direction=vertical]){--mds-tab-tabs-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));grid-template-columns:var(--mds-tab-direction-vertical-columns,auto auto);grid-template-rows:1fr}:host([direction=vertical]) .tabs{align-self:start;flex-direction:column}:host([direction=vertical]) .tabs-wrapper{align-self:start;max-width:none}:host([direction=vertical][fill]) :is(.tabs,.tabs-wrapper){align-self:auto}:host([direction=vertical]) .tabs-wrapper--no-content{grid-column:1/-1}:host([direction=vertical])::slotted(mds-tab-item){width:100%}:host(:not([scrollbar])) .tabs{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([scrollbar])) .tabs::-webkit-scrollbar{display:none}:host([scrollbar]) .tabs::-webkit-scrollbar{height:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([scrollbar]) .tabs::-webkit-scrollbar-track{background-color:var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-tab-scroll-scrollbar-radius,0);margin-block:var(--mds-tab-scroll-scrollbar-margin,0);margin-inline:var(--mds-tab-scroll-scrollbar-margin,0)}:host([scrollbar]) .tabs::-webkit-scrollbar-thumb{background-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3));border-radius:var(--mds-tab-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.tabs{scrollbar-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3)) var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));scrollbar-width:thin}}.tabs-wrapper-overflow-left,.tabs-wrapper-overflow-right{--size:calc(var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200)) * 2);--offset-outside:calc(var(--size) + var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem) * 600)));background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));border-radius:100%;box-shadow:var(--mds-tab-tabs-overflow-shadow);content:"";display:inline-flex;height:auto;pointer-events:none;position:absolute;transition-duration:.5s;transition-property:transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:var(--size);z-index:2}.tabs-wrapper-overflow-left{inset:0 auto 0 0;transform:translateX(calc(var(--offset-outside)*-1))}.tabs-wrapper-overflow-right{inset:0 0 0 auto;transform:translateX(var(--offset-outside))}.tabs-wrapper-overflow-left--show{transform:translate(-100%)}.tabs-wrapper-overflow-right--show{transform:translate(100%)}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-tab-item-selected-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([pref-contrast=more]){--mds-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-tab-tabs-wrapper-outline-opacity:.3}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-tab-transition-duration:0s}@media (prefers-reduced-motion:reduce){:host{--mds-tab-scroll-behavior:auto}:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-tab-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-tab-item-selected-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-tab-tabs-wrapper-outline-opacity:.3}}';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:"cb3a7e892230ac67077ccd09a09fecbace72eb79","pref-contrast":h.state.contrast,"pref-mode":h.state.mode,"pref-theme-scheme":h.state["theme-scheme"]},s("mds-button",{key:"453e7166703965d64de05e1a9900eb9f235bd9e5",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;--mds-tab-item-hover-shadow:none}.button{--mds-button-background:var(--mds-tab-item-default-background);--mds-button-color:var(--mds-tab-item-default-color);--mds-button-radius:var(--mds-tab-item-radius);--mds-button-border-default-opacity:0;--mds-button-corner-shape:var(--mds-tab-item-corner-shape,var(--magma-corner-shape,squircle));aspect-ratio:auto;box-shadow:var(--mds-tab-item-default-shadow,none);flex-grow:1}.button:hover{--mds-button-background:var(--mds-tab-item-hover-background);--mds-button-color:var(--mds-tab-item-hover-color);box-shadow:var(--mds-tab-item-hover-shadow,var(--mds-tab-item-default-shadow,none))}.button.selected,.button.selected:hover{--mds-button-background:var(--mds-tab-item-selected-background);--mds-button-color:var(--mds-tab-item-selected-color);box-shadow:var(--mds-tab-item-selected-shadow);pointer-events:none}:host([disabled]){pointer-events:none}:host([direction=vertical]){width:100%}:host([direction=vertical]) .button{justify-content:start}:host([pref-contrast=more]){--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-selected-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-selected-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}}";export{b as mds_tab,m as mds_tab_item}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a,e as t}from"./p-CPRkNQdE.js";import{p as s}from"./p-C25F_FlB.js";const r=class{constructor(a){e(this,a),this.typography="h3",this.tag="h3"}render(){return a(t,{key:"cfb336faa76b4ab2a68b2d8ca9dc75edfe55aeb6","pref-contrast":s.state.contrast},a("mds-text",{key:"117265de0b62d6e7bfcc6126eb7712a93bba5153",class:"open-quote",tag:"div",typography:this.typography},a("span",{key:"7a8dc8cf4e993d66cfb006bf6208e21ea08e4098"},a("i",{key:"82d9b40c020e8f35a3bc1ba54c2494b5ba5f4991"},"❝ "))),a("div",{key:"87584eea395128b4d65437b575cefb66c9a93891",class:"quote"},a("mds-text",{key:"d630290e2eb5408ed612b3268b92355bcc49da47",tag:this.tag,typography:this.typography},a("i",{key:"6f26b293a426f5ab93873cb46a8abee7c52429fb"},a("slot",{key:"a09ce2ef7bfaa42a21be184d3aa2fc4994509d3a"}),a("span",{key:"c0d0181b85d0d033f0ef00522792675379b42ac1"}," ❞"))),a("slot",{key:"00f4fcf39ffd58d65a7bca5be6ddf04695b0a0fe",name:"author"})))}};r.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:inline-flex}.open-quote{flex-shrink:0}.quote{display:grid;gap:calc(var(--spacing,.0025rem)*400);-webkit-user-select:all;user-select:all}span{-webkit-user-select:none;user-select:none}:host([pref-contrast=more]){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]){color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}";export{r as mds_quote}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
System.register(["./p-CmzGV0XD.system.js","./p-Qrub-hmK.system.js","./p-D9J8lbUv.system.js","./p-C1ailvfu.system.js","./p-D8596ytD.system.js"],(function(e){"use strict";var r,a,t,s,i,n,o,p,d;return{setters:[function(e){r=e.r;a=e.d;t=e.h;s=e.e;i=e.g},function(e){n=e.c},function(e){o=e.K},function(e){p=e.L},function(e){d=e.p}],execute:function(){var m="Ολοκληρώθηκε";var c="Καθημερινή";var u="Σε αναμονή";var b="Βήμα {{ index }}";var g={badgeDone:m,badgeCurrent:c,badgeQueued:u,step:b};var v="Done";var l="Current";var h="Queued";var f="Step {{ index }}";var y={badgeDone:v,badgeCurrent:l,badgeQueued:h,step:f};var x="Completado";var k="En curso";var w="En cola";var C="Paso {{ index }}";var D={badgeDone:x,badgeCurrent:k,badgeQueued:w,step:C};var z="Completato";var j="In corso";var Q="In coda";var q="Step {{ index }}";var S={badgeDone:z,badgeCurrent:j,badgeQueued:Q,step:q};var I=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-badge,mds-icon,mds-progress,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-stepper-bar-item-header-gap:var(--mds-stepper-bar-gap,calc(var(--spacing,.0025rem)*50));--mds-stepper-bar-item-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-stepper-bar-item-duration:.25s;--private-stepper-bar-item-duaration:var(--mds-stepper-bar-item-duration,.25s);--mds-stepper-bar-item-transition-duration:var(--duration-200,.2s);--private-stepper-bar-item-transition-duration:var(--mds-stepper-bar-item-transition-duration);--mds-stepper-bar-item-icon-background-done:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-stepper-bar-item-icon-background-current:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-progress-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));--mds-stepper-bar-item-icon-color-done:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-stepper-bar-item-icon-color-current:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-stepper-bar-item-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-stepper-bar-item-min-width:180px;--mds-stepper-bar-item-progress-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-stepper-bar-item-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-stepper-bar-item-progress-thickness:calc(var(--spacing,.0025rem)*200);border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));corner-shape:var(--magma-corner-shape,squircle);align-items:flex-start;display:grid;flex:1 0 0;flex-direction:column;gap:calc(var(--spacing,.0025rem)*400);min-width:var(--mds-stepper-bar-item-min-width,180px);position:relative;scroll-snap-align:center;transition-duration:var(--private-stepper-bar-item-duaration);transition-property:outline,outline-offset,background-color}:host(:last-of-type){flex-basis:calc(var(--spacing,.0025rem)*100)}:host(:last-of-type) .progress{display:none}:host([done]) .icon{--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-icon-background-done,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))));--mds-stepper-bar-item-icon-color:var(--mds-stepper-bar-item-icon-color-done,rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255))));transition-delay:0s}:host([current]) .icon{--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-icon-background-current,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-stepper-bar-item-icon-color:var(--mds-stepper-bar-item-icon-color-current,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));transition-delay:calc(var(--private-stepper-bar-item-duaration)/2)}.header{--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));border-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));corner-shape:var(--magma-corner-shape,squircle);align-items:center;display:flex;gap:var(--mds-stepper-bar-item-header-gap);transition-duration:var(--private-stepper-bar-item-transition-duration);transition-property:outline,outline-offset;width:100%}.icon{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:var(--mds-stepper-bar-item-icon-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:flex;fill:var(--mds-stepper-bar-item-icon-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));flex-shrink:0;padding:calc(var(--spacing,.0025rem)*200);position:relative;transition-duration:var(--private-stepper-bar-item-duaration);transition-property:background-color,fill;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.progress{--mds-progress-background:var(--mds-stepper-bar-item-progress-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));--mds-progress-color:var(--mds-stepper-bar-item-progress-color,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))));--mds-progress-thickness:var(--mds-stepper-bar-item-progress-thickness,calc(var(--spacing,.0025rem)*200));--mds-progress-radius:0;flex-grow:1}.infos{display:grid;gap:calc(var(--spacing,.0025rem)*100);padding-left:calc(var(--spacing,.0025rem)*100)}.text{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));color:var(--mds-stepper-bar-item-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));pointer-events:none;transition-duration:var(--private-stepper-bar-item-duaration);transition-property:color;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.badge,.step{border-radius:var(--magma-radius-full,var(--radius-full,1000px));pointer-events:none}.step{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-stepper-bar-item-duaration:0s;--private-stepper-bar-item-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-stepper-bar-item-duaration:0s;--private-stepper-bar-item-transition-duration:0s}}'};var _=e("mds_stepper_bar_item",/** @class */function(){function e(e){var s=this;r(this,e);this.doneEvent=a(this,"mdsStepperBarItemDone",7);this.km=new o;this.t=new p({el:g,en:y,es:D,it:S});
|
|
2
|
-
/**
|
|
3
|
-
* Specifies the icon displayed of the component when is checked
|
|
4
|
-
*/this.iconChecked=this.icon;
|
|
5
|
-
/**
|
|
6
|
-
* Specifies if the component is checked or not
|
|
7
|
-
*/this.done=false;
|
|
8
|
-
/**
|
|
9
|
-
* Specifies if the component is the current or not
|
|
10
|
-
*/this.current=false;
|
|
11
|
-
/**
|
|
12
|
-
* Specifies the typography of the element
|
|
13
|
-
*/this.typography="h6";
|
|
14
|
-
// a step already done can be gone back to: the item is a button then
|
|
15
|
-
this.isReachable=function(){return!!s.isDone&&!s.isCurrent};
|
|
16
|
-
/**
|
|
17
|
-
* Asks to go back to this step, with its value: the event was declared and never emitted. The
|
|
18
|
-
* stepper bar is driven by its `itemsDone`, so the page answers by setting it.
|
|
19
|
-
*/this.handleClick=function(){var e;if(!s.isReachable())return;s.doneEvent.emit({value:(e=s.value)!==null&&e!==void 0?e:""})};this.showBadge=function(){if(s.isDone){return t("mds-badge",{class:"badge",variant:"success",tone:"weak",typography:"option"},s.t.get("badgeDone"))}if(s.isCurrent){return t("mds-badge",{class:"badge",variant:"info",tone:"weak",typography:"option"},s.t.get("badgeCurrent"))}return t("mds-badge",{class:"badge",variant:"dark",tone:"weak",typography:"option"},s.t.get("badgeQueued"))}}e.prototype.componentWillLoad=function(){var e=this;this.isCurrent=this.current;this.isDone=this.done;var r=this.host.parentElement;
|
|
20
|
-
// childNodes counts the whitespace between the tags, so formatted markup made
|
|
21
|
-
// the step numbers come out doubled: 2, 4, 6, 8 for four steps.
|
|
22
|
-
if(r){this.index=Array.from(r.children).filter((function(r){return r.tagName===e.host.tagName})).indexOf(this.host)}};e.prototype.componentDidLoad=function(){this.km.addElement(this.host);this.km.attachClickBehavior()};e.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};e.prototype.selectedHandler=function(e){this.isDone=e};e.prototype.currentHandler=function(e){this.isCurrent=e};e.prototype.render=function(){return t(s,{key:"96f3ba81d51ac9335f61574612b848b69580a730",onClick:this.handleClick,"pref-animation":d.state.animation,role:this.isReachable()?"button":undefined,tabindex:this.isReachable()?"0":undefined},t("div",{key:"70ea3a0a5af55cf8e1451694de28361069991284",class:"header"},t("mds-icon",{key:"ee7d41226329ca7ab1bdd93b64364bcd11dede7b",class:"icon",name:n(this.isDone&&!this.isCurrent?this.iconChecked:this.icon)}),t("mds-progress",{key:"738ff976e1e4c762ba99a73f1faae43b842924d3","aria-hidden":"true",class:"progress",progress:this.isDone?1:0})),t("div",{key:"166f99a8c1d794fc9e634fb91e52c5b34889b52c",class:"infos"},this.step&&t("mds-text",{key:"14033c16170834d1ec903e40a854b95e220625c8",class:"step",typography:"option"},this.t.get("step",{index:this.index+1})),this.label&&t("mds-text",{key:"ec73be5b3bfcd6c4e5c7d93640b33ce754e0f14a",class:"text",typography:this.typography},this.label),this.badge&&t("div",{key:"ff9817a4e5abd7694370d3755533a8b5b0fd14aa",part:"badge"},this.showBadge())))};Object.defineProperty(e.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{done:[{selectedHandler:0}],current:[{currentHandler:0}]}},enumerable:false,configurable:true});return e}());_.style=I()}}}));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
System.register(["./p-CmzGV0XD.system.js"],(function(t){"use strict";var i,a,r;return{setters:[function(t){i=t.r;a=t.h;r=t.e}],execute:function(){var e='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10"/>\n</svg>\n';var n=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-list-item-icon-margin:0 calc(var(--spacing,.0025rem)*200) 0 0;align-items:flex-start;display:flex;justify-content:flex-start;width:100%}.icon{fill:currentColor;height:calc(var(--spacing,.0025rem)*600);margin:var(--mds-list-item-icon-margin,0 calc(var(--spacing,.0025rem)*200) 0 0);width:calc(var(--spacing,.0025rem)*600)}:host([typography=paragraph]){--mds-list-item-icon-margin:.25rem calc(var(--spacing,.0025rem)*200) 0 0}:host([typography=caption]){--mds-list-item-icon-margin:-.125rem calc(var(--spacing,.0025rem)*200) 0 0}:host([typography=label]),:host([typography=tip]){--mds-list-item-icon-margin:-.25rem calc(var(--spacing,.0025rem)*200) 0 0}:host([typography=option]){--mds-list-item-icon-margin:-.5rem calc(var(--spacing,.0025rem)*200) 0 0}"};var s=t("mds_list_item",/** @class */function(){function t(t){i(this,t);
|
|
2
|
-
/**
|
|
3
|
-
* Specifies the typography of the element
|
|
4
|
-
*/this.typography="detail";
|
|
5
|
-
/**
|
|
6
|
-
* Specifies the variant for `typography`
|
|
7
|
-
*/this.variant="info"}t.prototype.render=function(){var t;return a(r,{key:"e8b358da2cc4621d883f5f1175905d0691ed4454",role:"listitem"},a("mds-icon",{key:"9ca63553709a5702840c71861e4403efb81e4847","aria-hidden":"true",class:"icon",name:(t=this.icon)!==null&&t!==void 0?t:e,part:"icon"}),a("mds-text",{key:"1a20c4b3110c7027bdc42c1cbfdd690140d7c172",tag:"span",typography:this.typography,variant:this.variant,part:"text"},a("slot",{key:"5cb71d6870644790c1bb7dfe251a0d857fcf4058"})))};return t}());s.style=n()}}}));
|
|
@@ -1,80 +0,0 @@
|
|
|
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-CmzGV0XD.system.js","./p-Qrub-hmK.system.js","./p-BeNKMPXR.system.js","./p-_X0N_X__.system.js","./p-D8596ytD.system.js","./p-C61qxZLH.system.js","./p-C1ailvfu.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-function:var(--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:clip;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-function);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-function)}: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-function)}.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";
|
|
6
|
-
// set by the `opened` watcher, consumed by the render that follows it (#803)
|
|
7
|
-
this.openAfterRender=false;this.touchMargin=50;this.hasBottom=false;this.hasTop=false;this.hasWindow=false;this.windowHeaderHeight=0;this.windowFooterHeight=0;
|
|
8
|
-
/**
|
|
9
|
-
* Specifies if the modal is opened or not
|
|
10
|
-
*/this.opened=false;
|
|
11
|
-
/**
|
|
12
|
-
* Hides the modal backdrop
|
|
13
|
-
*/this.hideBackdrop=false;
|
|
14
|
-
/**
|
|
15
|
-
* Specifies the animation position of the modal window
|
|
16
|
-
*/this.position="center";
|
|
17
|
-
/**
|
|
18
|
-
* Specifies the animation style of the modal window
|
|
19
|
-
*/this.animation="slide";
|
|
20
|
-
/**
|
|
21
|
-
* Specifies if the component prevents the body from scrolling when modal window is opened
|
|
22
|
-
*/this.overflow="auto";
|
|
23
|
-
/**
|
|
24
|
-
* Specifies if the component can be closed with close button, or also if the backdrop background is cliccked.
|
|
25
|
-
* If `strict` is selected only the close button can dismiss the component via UI.
|
|
26
|
-
* If `relaxed` is selected the component can be dismissed also by cliccking the backdrop area.
|
|
27
|
-
*/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")}}};
|
|
28
|
-
// Freeze the content scroll container (overflow:hidden) for the whole slide,
|
|
29
|
-
// re-enabling it only once the window's transform transition has finished. A
|
|
30
|
-
// live overflow:auto with overflowing content janks the transform. Applied
|
|
31
|
-
// inline on the element on purpose: toggling it via a host attribute + CSS
|
|
32
|
-
// selector triggers a shadow-wide style recalc at the settle frame, which is
|
|
33
|
-
// what caused the visible jump.
|
|
34
|
-
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);
|
|
35
|
-
// Fallback only: `handleWindowTransitionEnd` is the primary settle. The
|
|
36
|
-
// buffer keeps this from firing before the transition actually ends.
|
|
37
|
-
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};
|
|
38
|
-
// a swipe is one more way to dismiss the modal: `strict` vetoes it, as it does Esc and the
|
|
39
|
-
// backdrop
|
|
40
|
-
this.setTouchEnd=function(t){if(n.interaction==="strict")return;var o=t.changedTouches[0].clientX;var i=t.changedTouches[0].clientY;var a=n.touchStartX-o;var e=n.touchStartY-i;
|
|
41
|
-
// if is NOT a diagonal swipe
|
|
42
|
-
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");
|
|
43
|
-
// the slotted window is NOT given a role: the `<dialog>` below is the dialog already,
|
|
44
|
-
// opened with showModal(), and a second one inside it reads as a second window
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Measures the header and the footer to pad the content: the states change
|
|
48
|
-
* only when a measure differs, so the update pass settles after one render.
|
|
49
|
-
*/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}
|
|
50
|
-
// `showModal()` promotes the dialog to the top layer, traps focus and inerts
|
|
51
|
-
// the page. `show()` keeps it non-modal so the page behind stays interactive,
|
|
52
|
-
// preserving the legacy `hideBackdrop` click-through behaviour.
|
|
53
|
-
if(!n.hideBackdrop){n.dialogEl.showModal()}else{n.dialogEl.show()}
|
|
54
|
-
// Measure here, not only in the lifecycle hooks: until this call the dialog is
|
|
55
|
-
// `display: none`, so a header and a footer measure 0. A modal that mounts
|
|
56
|
-
// already open never renders again on its own, so that 0 would stay and the
|
|
57
|
-
// content would sit under both bars.
|
|
58
|
-
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}
|
|
59
|
-
// A click whose target is the dialog itself (not its window contents) is a
|
|
60
|
-
// click on the backdrop area.
|
|
61
|
-
if(t.target===n.dialogEl){n.opened=undefined}};this.handleCancel=function(t){
|
|
62
|
-
// Take over the native Esc dismissal so `strict` can veto it (and, later, so
|
|
63
|
-
// the outro animation can play).
|
|
64
|
-
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();
|
|
65
|
-
// The `opened` watcher does not fire for the initial value, so open the
|
|
66
|
-
// native dialog here when the component mounts already open.
|
|
67
|
-
if(this.opened){this.showDialog();this.animateOpenWindow();this.openEvent.emit()}};t.prototype.componentDidUpdate=function(){if(this.openAfterRender){this.openAfterRender=false;this.showDialog();this.animateOpenWindow();this.openEvent.emit()}
|
|
68
|
-
// the header and the footer are hidden while their slots are empty: refresh
|
|
69
|
-
// the paddings of the content once a late `top` or `bottom` child shows them
|
|
70
|
-
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()}
|
|
71
|
-
// The dialog is shown by the render that follows, in componentDidUpdate, not here. The
|
|
72
|
-
// entry starts from the transform the CSS keys on `:host([position])` and
|
|
73
|
-
// `:host([animation])`, attributes that only that render reflects: a `position` set in the
|
|
74
|
-
// same task as `opened`, as a framework wrapper sets its props, was still the old one
|
|
75
|
-
// when showModal() resolved the starting style, and the window slid in from the old
|
|
76
|
-
// place, already inside the page (#803).
|
|
77
|
-
this.openAfterRender=true;return}this.openAfterRender=false;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}};
|
|
78
|
-
/**
|
|
79
|
-
* Closes the modal.
|
|
80
|
-
*/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:"130854f62fac138b6591a2ec4c1705ca05ca8b70","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:"7084dc11565c61097496422c4486a67f8762b207","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:"2e4f92244d7b44818e41c4fef3e74a6cf7bb4f26",name:"window",onSlotchange:this.updateSlots}),!this.hasWindow&&n("div",{key:"0324ceeefcf87b8556f566b64c07d61d8b6c1998",class:"window",part:"window"},n("div",{key:"cf265fba1368260edc2fde502f73b9e62f611e1a",class:r("window-header",!this.hasTop&&"window-content--empty")},n("slot",{key:"6fac90e8dc333bd542aedb90fc3f9acaa90c1c20",name:"top",onSlotchange:this.updateSlots})),n("div",{key:"5c5757b36ad8b91ee0fdeae786a0563c81021d27",class:"window-content-wrapper"},n("div",{key:"31fef2b38cdeb2aa139641fa0ced9dd91705e004",class:"window-content",style:{paddingTop:"".concat(this.windowHeaderHeight,"px"),paddingBottom:"".concat(this.windowFooterHeight,"px")}},n("slot",{key:"ada016f6844b9f6dd87e74fde3f2e79de5f94f2c"}))),n("div",{key:"a44d2269acb2029442a4c6163039e93289445fcf",class:r("window-footer",!this.hasBottom&&"window-content--empty")},n("slot",{key:"311e1e5c11cb387f40cbd417de0ffa0d5a9dc01f",name:"bottom",onSlotchange:this.updateSlots}))),!this.hasWindow&&n("mds-button",{key:"05f78ff75554f0ce42415f7ad2f73b5f142482ad","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()}}}));
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
System.register(["./p-CmzGV0XD.system.js","./p-D8596ytD.system.js","./p-sm_-_oFY.system.js","./p-nFkaC8l_.system.js"],(function(t){"use strict";var i,n,a,o,e,s,r,d,f,c,u,m,l;return{setters:[function(t){i=t.r;n=t.h;a=t.e;o=t.g},function(t){e=t.p},function(t){s=t.r;r=t.s;d=t.h;f=t.a},function(t){c=t.o;u=t.s;m=t.c;l=t.b}],execute:function(){var h=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-notification-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-dot-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-notification-dot-padding:6px;--mds-notification-min-width:var(--mds-notification-size,20px);--mds-notification-ring-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-ring-size:2px;--mds-notification-size:20px;--mds-notification-transition-duration:.2s;--private-notification-transition-duration:var(--mds-notification-transition-duration,.2s);--mds-notification-dot-transition-duration:var(--duration-300,.3s);--private-notification-dot-transition-duration:var(--mds-notification-dot-transition-duration);--mds-notification-transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));--mds-notification-translate-offset-x:-1.75;--mds-notification-translate-offset-y:-2;--mds-notification-translate:translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)));align-items:center;border-radius:var(--magma-radius-full,var(--radius-full,1000px));bottom:100%;color:var(--mds-notification-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));display:inline-flex;height:var(--mds-notification-size,20px);justify-content:flex-end;min-width:max-content;pointer-events:none;width:var(--mds-notification-size,20px);z-index:10}:host([strategy=absolute]),:host([strategy=fixed]){opacity:0;right:100%;transform:var(--mds-notification-translate,translate(-11.42857px,-10px)) scale(0);transform-origin:calc(100% - var(--mds-notification-size,20px)/2) 50%;transition-duration:var(--private-notification-transition-duration);transition-property:color,height,opacity,transform,width;transition-timing-function:var(--mds-notification-transition-timing-function)}:host([strategy=absolute]){position:absolute}:host([strategy=fixed]){position:fixed}.dot{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-notification-dot-background,rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));box-shadow:0 0 0 var(--mds-notification-ring-size,2px) var(--mds-notification-ring-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));box-sizing:border-box;display:inline-flex;justify-content:center;line-height:var(--mds-notification-size,20px);min-height:var(--mds-notification-size,20px);min-width:var(--mds-notification-min-width,20px);padding-left:var(--mds-notification-dot-padding,6px);padding-right:var(--mds-notification-dot-padding,6px);position:static;transition-duration:var(--private-notification-dot-transition-duration);transition-property:background-color,color,box-shadow;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));white-space:nowrap}:host([strategy=absolute]) .dot,:host([strategy=fixed]) .dot{position:absolute}.spacer{box-sizing:border-box;display:inline-flex;height:var(--mds-notification-size,20px);width:var(--mds-notification-min-width,20px)}:host([dismissed]:not([dismissed=false])[strategy=absolute]),:host([dismissed]:not([dismissed=false])[strategy=fixed]){--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));opacity:1;transform:var(--mds-notification-translate,translate(-11.42857px,-10px)) scale(0);transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}:host([strategy=absolute]:not([dismissed])),:host([strategy=absolute][dismissed=false]),:host([strategy=fixed]:not([dismissed])),:host([strategy=fixed][dismissed=false]){--tw-ease:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));opacity:1;transform:var(--mds-notification-translate,translate(-11.42857px,-10px)) scale(1);transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1))}:host(:not([target])),:host([strategy=disabled]){opacity:1;position:static;transform:scale(1);transform-origin:unset;transition-duration:0s}:host(:not([target])) .dot,:host([strategy=disabled]) .dot{position:static}:host([dismissed]:not([dismissed=false]):not([target])),:host([dismissed]:not([dismissed=false])[strategy=disabled]){display:none}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-notification-transition-duration:0s;--private-notification-dot-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-notification-transition-duration:0s;--private-notification-dot-transition-duration:0s}}'};var p=t("mds_notification",/** @class */function(){function t(t){var n=this;i(this,t);this.describing=false;
|
|
2
|
-
/**
|
|
3
|
-
* Specifies the number of notifications to display. At 0 the badge shows no number, as an
|
|
4
|
-
* empty dot: it is not hidden, `dismissed` takes it off its target
|
|
5
|
-
*/this.value=0;
|
|
6
|
-
/**
|
|
7
|
-
* Specifies if the notification is dismissed
|
|
8
|
-
*/this.dismissed=false;
|
|
9
|
-
/**
|
|
10
|
-
* Specifies the position strategy of the notification
|
|
11
|
-
*/this.strategy="fixed";this.placement="right-start";this.updatePosition=function(){var t=new Array;var i=n.strategy==="disabled"?"absolute":"fixed";t.push(c(0));t.push(u({padding:0}));m(n.caller,n.host,{middleware:t,placement:n.placement,strategy:i}).then((function(t){var i=t.x,a=t.y;Object.assign(n.host.style,{left:"".concat(i,"px"),top:"".concat(a,"px")})}))};this.clean=function(t){var i;
|
|
12
|
-
// a removed attribute leaves null, which counts as no value and no maximum
|
|
13
|
-
if((t!==null&&t!==void 0?t:0)===0||isNaN(t))return"";var a=(i=n.max)!==null&&i!==void 0?i:0;if(a!==0&&!Number.isNaN(a)&&t>a){return"+".concat(Number(a).toLocaleString())}return Number(t).toLocaleString()};
|
|
14
|
-
/**
|
|
15
|
-
* The count reaches a screen reader through the element it sits on, as a description of it
|
|
16
|
-
* ("Messages, button, 3"): the badge itself is then hidden, or it would be read again wherever
|
|
17
|
-
* it sits in the page. A dismissed badge, a plain dot and a caller in another tree (an IDREF
|
|
18
|
-
* does not cross a shadow boundary) describe nothing. Ids already in the caller's
|
|
19
|
-
* `aria-describedby`, a tooltip's among them, stay. Without a target the count is plain text,
|
|
20
|
-
* read with whatever contains it: the name of the mds-button it sits in.
|
|
21
|
-
*/this.describeCaller=function(t){var i=n.host.id;if(n.describedCaller&&n.describedCaller!==t&&i){s(n.describedCaller,"aria-describedby",i)}var a=t!==undefined&&!n.dismissed&&n.clean(n.value)!==""&&t.getRootNode()===n.host.getRootNode();
|
|
22
|
-
// the state is set once, to its final value: a render runs after every change of it, and
|
|
23
|
-
// this runs after every render
|
|
24
|
-
n.describing=a;if(!a){if(t&&i)s(t,"aria-describedby",i);n.describedCaller=undefined;return}var o=r(n.host,"id",d("mds-notification"));f(t,"aria-describedby",o);n.describedCaller=t};
|
|
25
|
-
/**
|
|
26
|
-
* floating-ui keeps the badge on its target through listeners on the scroll parents and an
|
|
27
|
-
* observer of their size: they are started once, after a short wait for the target's layout,
|
|
28
|
-
* and stopped with the function autoUpdate returns. That function used to be replaced by an
|
|
29
|
-
* empty one instead of being called, so every badge ever removed kept its listeners.
|
|
30
|
-
*/this.startAutoUpdate=function(){var t;if(n.strategy==="disabled"||((t=n.target)!==null&&t!==void 0?t:"")===""||!n.caller)return;if(n.cleanupAutoUpdate||n.autoUpdateTimer!==undefined)return;n.autoUpdateTimer=setTimeout((function(){n.autoUpdateTimer=undefined;n.cleanupAutoUpdate=l(n.caller,n.host,n.updatePosition)}),100)};this.stopAutoUpdate=function(){var t;clearTimeout(n.autoUpdateTimer);n.autoUpdateTimer=undefined;(t=n.cleanupAutoUpdate)===null||t===void 0?void 0:t.call(n);n.cleanupAutoUpdate=undefined}}t.prototype.componentDidRender=function(){var t;if(((t=this.target)!==null&&t!==void 0?t:"")===""){this.strategy="disabled";return}var i=document.querySelector(this.target);if(i==null){
|
|
31
|
-
// the target may legitimately be absent (e.g. during SSR the document
|
|
32
|
-
// only contains the component subtree being serialized)
|
|
33
|
-
console.warn("mds-notification: no valid target found: ".concat(this.target));this.strategy="disabled";return}this.caller=i;this.describeCaller(i)};t.prototype.componentDidLoad=function(){if(this.strategy==="disabled"){return}this.startAutoUpdate()};
|
|
34
|
-
// a badge moved in the page is disconnected and connected again, without loading again
|
|
35
|
-
t.prototype.connectedCallback=function(){this.startAutoUpdate()};t.prototype.disconnectedCallback=function(){this.stopAutoUpdate();this.describeCaller(undefined)};t.prototype.strategyHandler=function(t){if(t==="disabled"){this.stopAutoUpdate()}};t.prototype.render=function(){return n(a,{key:"a9e2d0a288c4b30a84389cf94fdad02e9795481d","aria-hidden":this.describing?"true":undefined,"pref-animation":e.state.animation},n("mds-text",{key:"3ad8f42e7772e356011f9763c0f99d2e0f0809ce",typography:"caption",class:"dot"},this.clean(this.value)))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{strategy:[{strategyHandler:0}]}},enumerable:false,configurable:true});return t}());p.style=h()}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
System.register(["./p-CmzGV0XD.system.js","./p-D-RexH7B.system.js","./p-D8596ytD.system.js"],(function(t){"use strict";var a,r,o,e,i,n,d;return{setters:[function(t){a=t.r;r=t.d;o=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));border-radius:min(var(--magma-radius-md,var(--radius-squircle-md,20px)),var(--magma-corner-cap,.5) * calc(var(--spacing,.0025rem)*600));color:var(--mds-accordion-item-description-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;corner-shape:var(--magma-corner-shape,squircle);background-color:#0000;border:0;cursor:pointer;display:grid;gap:calc(var(--spacing,.0025rem)*400);grid-auto-columns:min-content;grid-template-columns:auto 24px;padding:0;text-align:left}.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 o=this;a(this,t);this.selectedEvent=r(this,"mdsAccordionItemSelect",7);this.unselectedEvent=r(this,"mdsAccordionItemUnselect",7);this.changedEvent=r(this,"mdsAccordionItemChange",7);
|
|
2
|
-
/**
|
|
3
|
-
* Specifies the typography of the element
|
|
4
|
-
*/this.typography="h5";this.toggle=function(){o.selected=!o.selected;o.changedEvent.emit({id:o.element.id,selected:o.selected});if(o.selected){o.selectedEvent.emit({id:o.element.id,selected:o.selected});return}o.unselectedEvent.emit({id:o.element.id,selected:o.selected})}}t.prototype.render=function(){return o(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"]},o("button",{key:"fc25af94260cff803ef6be625671a39ccdde8e0a","aria-controls":"content","aria-expanded":this.selected?"true":"false",class:"action",id:"action",onClick:this.toggle,role:"button",tabindex:"0"},o("mds-text",{key:"eac2e32db27ed1c57f92da2c997dec21f692a983",typography:this.typography,part:"label"},this.label),o("mds-text",{key:"1d55fd6ad2756611a95a212a76f0909ead30c41c","aria-hidden":"true",class:"icon-button",typography:this.typography,part:"icon"},o("i",{key:"27370e925ec0ef08fd37647055b92cb11cd9c565",class:"icon",innerHTML:n}))),o("div",{key:"a4b7feca597eb7ba10569f3d1192d024de5331ee",class:"content",id:"content"},o("div",{key:"2642ce83ac26e6244c15a0db83d21389fdd0a36e","aria-labelledby":"action",class:"content-expander",part:"content",role:"region"},o("slot",{key:"1a238dc71cf2bff5a3af1f20b63afda9f321cdc4"}))))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());s.style=c()}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,h as a,e,g as n}from"./p-CPRkNQdE.js";import{b as s}from"./p-AEckDMXh.js";import{m as t}from"./p-J-ikDhyq.js";import{c as d}from"./p-ChV9xqsO.js";import{B as r}from"./p-ZaZnuNvg.js";import{L as m}from"./p-BmT_DEV2.js";import"./p-BaFfIZGB.js";import"./p-D8eZRaSQ.js";import"./p-Cvhn9asj.js";import"./p-C25F_FlB.js";var o={closeMenu:"Κλείσιμο μενού",openMenu:"Άνοιγμα μενού"},l={closeMenu:"Close menu",openMenu:"Open menu"},u={closeMenu:"Cerrar el menú",openMenu:"Abrir el menú"},c={closeMenu:"Chiudi il menu",openMenu:"Apri il menu"};const h=class{constructor(a){i(this,a),this.t=new m({el:o,en:l,es:u,it:c}),this.backdropController=new r("mds-radial-menu-backdrop"),this.direction="clockwise",this.backdrop=!1,this.interaction="click",this.variant="dark",this.tone="strong",this.size="lg",this.toggleMenu=()=>{this.opened=!0!==this.opened||void 0},this.setItemSize=()=>{var i;null===(i=this.items)||void 0===i||i.forEach((i=>{i.size=this.size}))},this.setItemIndex=()=>{this.items.forEach(((i,a)=>{i.style.setProperty("--mds-radial-menu-item-index",a.toString())}))},this.writeGeometry=(i,a,e)=>{"number"==typeof a&&Number.isFinite(a)?this.hostElement.style.setProperty(i,`${a}${e}`):this.hostElement.style.removeProperty(i)},this.updateItems=()=>{this.items=s(this.hostElement,"item"),this.setItemSize(),this.setItemIndex(),this.hostElement.style.setProperty("--mds-radial-menu-nth-siblings",(this.items.length-1).toString())},this.handleOutsideClick=i=>{i.composedPath().includes(this.hostElement)||(this.opened=void 0)},this.handleEscape=i=>{var a,e;if("Escape"!==i.key)return;const n=this.hostElement.matches(":focus-within");this.opened=void 0,n&&"click"===this.interaction&&(null===(e=null===(a=this.hostElement.shadowRoot)||void 0===a?void 0:a.querySelector(".menu-button"))||void 0===e||e.focus())},this.listenOutside=i=>{"undefined"!=typeof document&&(document.removeEventListener("click",this.handleOutsideClick),document.removeEventListener("keydown",this.handleEscape),i&&(document.addEventListener("click",this.handleOutsideClick),document.addEventListener("keydown",this.handleEscape)))},this.toggleRightClickMenu=i=>{i.preventDefault(),this.hostElement.style.top=i.clientY-this.hostElement.offsetHeight/2+"px",this.hostElement.style.left=i.clientX-this.hostElement.offsetWidth/2+"px",this.toggleMenu()},this.handleBackdrop=()=>{this.backdrop&&this.opened?this.backdropController.attachBackdrop():this.backdropController.detachBackdrop()}}componentWillLoad(){var i;this.icon=null!==(i=this.icon)&&void 0!==i?i:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2z"/></svg>',this.onAngleStartChange(this.angleStart),this.onAngleEndChange(this.angleEnd),this.onRadiusChange(this.radius),this.onSizeChange()}componentDidLoad(){this.updateItems(),this.onOpenedChange(this.opened),this.onInteractionChange(this.interaction)}disconnectedCallback(){"undefined"!=typeof document&&(document.removeEventListener("contextmenu",this.toggleRightClickMenu),this.listenOutside(!1))}onDiscChanged(i){!1===i&&(this.disc=void 0)}backdropChanged(i){!1===i&&(this.backdrop=void 0),this.handleBackdrop()}onInteractionChange(i){"undefined"!=typeof document&&("rightclick"!==i?document.removeEventListener("contextmenu",this.toggleRightClickMenu):document.addEventListener("contextmenu",this.toggleRightClickMenu))}onAngleStartChange(i){this.writeGeometry("--mds-radial-menu-angle-start",i,"deg")}onAngleEndChange(i){this.writeGeometry("--mds-radial-menu-angle-end",i,"deg")}onRadiusChange(i){this.writeGeometry("--mds-radial-menu-radius",i,"rem")}onSizeChange(){this.setItemSize()}onOpenedChange(i){!1===i&&(this.opened=void 0),this.handleBackdrop(),this.listenOutside(!!i)}render(){return a(e,{key:"c5a582982c21659ccfd9bd98087618684cd63f9e"},a("mds-button",{key:"e0e1ebac3cbbc01309ac5d00f1be700de5684d7d","aria-label":this.t.get(this.opened?"closeMenu":"openMenu"),class:d("menu-button","click"!==this.interaction&&"menu-button--hidden"),icon:this.opened?t:this.icon,tone:this.tone,variant:this.variant,size:this.size,onClick:this.toggleMenu}),a("div",{key:"d1ab37944bcbb3e1a29864505dce944f57664e8e",class:"radial-menu",part:"radial-menu"},a("slot",{key:"257fd5627010baeea6f7ffef7df9b1fc5d213bba",name:"item",onSlotchange:this.updateItems})),a("div",{key:"053a8e63406762eacc41f8f46340e9f3f86625c5",class:"disc"}))}get hostElement(){return n(this)}static get watchers(){return{disc:[{onDiscChanged:0}],backdrop:[{backdropChanged:0}],interaction:[{onInteractionChange:0}],angleStart:[{onAngleStartChange:0}],angleEnd:[{onAngleEndChange:0}],radius:[{onRadiusChange:0}],size:[{onSizeChange:0}],opened:[{onOpenedChange:0}]}}};h.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-radial-menu-angle-start:0deg;--mds-radial-menu-angle-end:360deg;--mds-radial-menu-context-menu-z-index:var(--magma-context-menu-z-index,8000);--mds-radial-menu-delay:10ms;--mds-radial-menu-direction:-1;--mds-radial-menu-disc-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))/.5);--mds-radial-menu-disc-filter:blur(8px);--mds-radial-menu-disc-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-radial-menu-disc-size:calc(var(--mds-radial-menu-radius,5rem)*2);--mds-radial-menu-radius:5rem;--mds-radial-menu-transition-duration:.5s;--mds-radial-menu-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-radial-menu-nth-siblings:0;--mds-radial-menu-disc-delay:0s;--mds-radial-menu-disc-scale:0;--mds-radial-menu-radius-current:0;--private-radial-menu-sweep:calc(var(--mds-radial-menu-angle-end,360deg) - var(--mds-radial-menu-angle-start,0deg));--mds-radial-menu-is-full-circle:cos(clamp(0deg,max(var(--private-radial-menu-sweep) - 360deg,360deg - var(--private-radial-menu-sweep)) * 1000,90deg));--mds-radial-menu-is-start-greater-than-end:sin(clamp(-90deg,var(--private-radial-menu-sweep) * 1000,90deg));display:inline-flex;position:relative;transition-duration:var(--mds-radial-menu-transition-duration);transition-property:top,left;transition-timing-function:var(--mds-radial-menu-transition-timing-function);z-index:var(--magma-dropdown-z-index,5000)}:host([direction=clockwise]){--mds-radial-menu-direction:calc(var(--mds-radial-menu-is-start-greater-than-end)*-1)}:host([direction=counterclockwise]){--mds-radial-menu-direction:calc(var(--mds-radial-menu-is-start-greater-than-end)*1)}.menu-button{border-radius:100%;position:relative;transform:scale(1);transition-duration:var(--mds-radial-menu-transition-duration);transition-timing-function:var(--mds-radial-menu-transition-timing-function);z-index:2}:host(:not([opened])) .menu-button--hidden{transform:scale(0)}.radial-menu{inset:0;pointer-events:none;position:absolute;transition-delay:calc((var(--mds-radial-menu-nth-siblings)*2)*var(--mds-radial-menu-delay,10ms));transition-property:z-index;z-index:3}:host(:not([opened])) .radial-menu{transition-delay:0s;z-index:1}:host(:not([opened])){--mds-radial-menu-radius-current:0}:host([opened]){--mds-radial-menu-radius-current:var(--mds-radial-menu-radius,5rem)}:host([opened]) ::slotted(mds-radial-menu-item){pointer-events:auto;transform:scale(1)}::slotted(mds-radial-menu-item){--mds-radial-menu-item-offset-per-child:calc((var(--mds-radial-menu-angle-end,360deg) - var(--mds-radial-menu-angle-start,0deg))/(var(--mds-radial-menu-nth-siblings) + var(--mds-radial-menu-is-full-circle)));--mds-radial-menu-item-angle-offset:calc(var(--mds-radial-menu-direction,-1)*var(--mds-radial-menu-item-index)*var(--mds-radial-menu-item-offset-per-child));--mds-radial-menu-item-delay:calc((var(--mds-radial-menu-item-index) + 1)*var(--mds-radial-menu-delay,10ms));--mds-radial-menu-item-translate:calc(cos((var(--mds-radial-menu-angle-start,0deg) + var(--mds-radial-menu-item-angle-offset))) * var(--mds-radial-menu-radius-current)) calc(sin((var(--mds-radial-menu-angle-start,0deg) + var(--mds-radial-menu-item-angle-offset))) * var(--mds-radial-menu-radius-current) * -1)}.disc{--size:calc(var(--mds-radial-menu-disc-size,calc(5rem * 2)) + var(--mds-radial-menu-radius,5rem));-webkit-backdrop-filter:var(--mds-radial-menu-disc-filter);backdrop-filter:var(--mds-radial-menu-disc-filter);background-color:var(--mds-radial-menu-disc-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))/.5));border-radius:100%;box-shadow:var(--mds-radial-menu-disc-shadow);display:inline-flex;height:var(--size);inset:50%;position:absolute;transform:translate(-50%,-50%) scale(var(--mds-radial-menu-disc-scale));transition-delay:var(--mds-radial-menu-disc-delay);transition-duration:var(--mds-radial-menu-transition-duration);transition-property:height,transform,width;transition-timing-function:var(--mds-radial-menu-transition-timing-function);width:var(--size);z-index:0}:host(:not([opened][disc])){--mds-radial-menu-disc-scale:0;--mds-radial-menu-disc-delay:calc((var(--mds-radial-menu-nth-siblings) + 1)*var(--mds-radial-menu-delay,10ms))}:host([opened][disc]){--mds-radial-menu-disc-scale:1;--mds-radial-menu-disc-delay:0s}:host([interaction=rightclick]){position:fixed;z-index:var(--mds-radial-menu-context-menu-z-index,var(--magma-context-menu-z-index,8000))}";export{h as mds_radial_menu}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
System.register(["./p-CmzGV0XD.system.js","./p-_X0N_X__.system.js","./p-D8596ytD.system.js","./p-C1ailvfu.system.js","./p-BeNKMPXR.system.js","./p-Qrub-hmK.system.js"],(function(t){"use strict";var a,o,r,s,i,e,n,d,c,u;return{setters:[function(t){a=t.r;o=t.d;r=t.h;s=t.e;i=t.g},function(t){e=t.c},function(t){n=t.p},function(t){d=t.L},function(t){c=t.h},function(t){u=t.c}],execute:function(){var m='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8l8-8z"/></svg>';var l='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8l-8 8z"/></svg>';var h="Απόκρυψη";var v={hide:h};var f="Hide";var p={hide:f};var g="Ocultar";var b={hide:g};var x="Nascondi";var w={hide:x};var y=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-toast-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-duration:.3s;--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-xl,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a);--mds-toast-width:auto;--private-toast-transition-duration:var(--mds-toast-duration,.3s);--private-toast-transition-duration-intro:var(--duration-500,.5s);--private-toast-transition-duration-icon:var(--duration-200,.2s);color:var(--mds-toast-color,rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))));display:flex;left:0;pointer-events:none;position:fixed;right:0;z-index:var(--magma-modal-z-index,3000)}.dialog{--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));background-color:var(--mds-toast-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));box-shadow:var(--mds-toast-shadow);transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));corner-shape:var(--magma-corner-shape,squircle);align-items:center;display:inline-flex;gap:calc(var(--spacing,.0025rem)*400);margin-inline:calc(var(--spacing,.0025rem)*400);max-width:100%;padding:calc(var(--spacing,.0025rem)*400);pointer-events:none;transition-duration:var(--private-toast-transition-duration);transition-property:box-shadow,background-color,color,transform,visibility;visibility:hidden;width:var(--mds-toast-width,auto)}:host([visible]:not([visible=false])) .dialog{pointer-events:auto;visibility:visible}:host([position^=top]){top:0}:host([position=top-left]){justify-content:flex-start}:host([position=top-center]){justify-content:center}:host([position=top-right]){justify-content:flex-end}:host([position^=bottom]){bottom:0}:host([position=bottom-left]){justify-content:flex-start}:host([position=bottom-center]){justify-content:center}:host([position=bottom-right]){justify-content:flex-end}.actions{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}.hide{flex-shrink:0}::slotted([slot=icon]){--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));fill:var(--mds-toast-icon-color,rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))));flex-shrink:0;transition-duration:var(--private-toast-transition-duration-icon);transition-property:fill;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}:host([variant=dark]),:host([variant=dark][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)))}:host([variant=dark][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)))}:host([variant=error]),:host([variant=error][tone=strong]){--mds-toast-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-toast-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error][tone=weak]){--mds-toast-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-toast-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=info]),:host([variant=info][tone=strong]){--mds-toast-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-toast-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info][tone=weak]){--mds-toast-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-toast-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=light]),:host([variant=light][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-toast-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([variant=light][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-toast-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}:host([variant=success]),:host([variant=success][tone=strong]){--mds-toast-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-toast-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success][tone=weak]){--mds-toast-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-toast-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning]),:host([variant=warning][tone=strong]){--mds-toast-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-toast-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning][tone=weak]){--mds-toast-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-toast-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}.to-top-center,.to-top-left,.to-top-right{transform:translateY(calc(-100% - var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,.3s));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-top-center.dialog--visible,.to-top-left.dialog--visible,.to-top-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.to-bottom-center,.to-bottom-left,.to-bottom-right{transform:translateY(calc(100% + var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,.3s));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-bottom-center.dialog--visible,.to-bottom-left.dialog--visible,.to-bottom-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400*-1));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}:host([stacked]){inset:auto;position:relative;transition-behavior:allow-discrete;transition-duration:var(--private-toast-transition-duration);transition-property:display;z-index:auto}:host([stacked]:not([visible])),:host([stacked][visible=false]){display:none}:host([stacked]) .dialog:not(.dialog--visible){opacity:0;transform:none}@starting-style{:host([stacked]) .dialog--visible{opacity:0;transform:none}}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}:host([pref-contrast=more]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}}'};var k=t("mds_toast",/** @class */function(){function t(t){var r=this;a(this,t);this.closedEvent=o(this,"mdsToastClose",7);this.cssDismissAnimationDuration=300;// hardcoded from CSS :-(
|
|
2
|
-
this.countdownStart=0;this.pointerInside=false;this.focusInside=false;
|
|
3
|
-
// who hid the toast, read by the close that follows: the application, unless the timer or
|
|
4
|
-
// the hide button say otherwise
|
|
5
|
-
this.closeReason="hide";this.t=new d({el:v,en:p,es:b,it:w});
|
|
6
|
-
// inside an mds-toast-region, which places the toast and announces it
|
|
7
|
-
this.stacked=false;
|
|
8
|
-
/**
|
|
9
|
-
* If set, specifies the visibility duration in milliseconds of the element inside the viewport, when the time is up the visible property will be set to false. The countdown waits while the pointer is over the toast or the focus is inside it. If the duration is set to 0 the toast stays until it is hidden: give it `deletable` so the person can hide it too.
|
|
10
|
-
*/this.duration=5e3;
|
|
11
|
-
/**
|
|
12
|
-
* Sets the theme variant colours
|
|
13
|
-
*/this.variant="light";
|
|
14
|
-
/**
|
|
15
|
-
* Sets the tone of the color variant
|
|
16
|
-
*/this.tone="strong";
|
|
17
|
-
/**
|
|
18
|
-
* Sets position of toast
|
|
19
|
-
*/this.position="bottom-center";
|
|
20
|
-
// a removed attribute leaves null, which counts as no duration, like 0
|
|
21
|
-
this.hasDuration=function(){var t;var a=(t=r.duration)!==null&&t!==void 0?t:0;return a!==0&&!Number.isNaN(a)};this.stopCountdown=function(){window.clearTimeout(r.dismissTimer);r.dismissTimer=undefined};this.runCountdown=function(){if(r.remaining===undefined||r.dismissTimer!==undefined){return}if(r.pointerInside||r.focusInside){return}r.countdownStart=Date.now();r.dismissTimer=window.setTimeout((function(){r.dismissTimer=undefined;r.remaining=undefined;r.hide("timeout")}),r.remaining)};
|
|
22
|
-
// the time spent counting is gone, the rest waits for the pointer and the focus to leave
|
|
23
|
-
this.holdCountdown=function(){if(r.dismissTimer===undefined||r.remaining===undefined){return}r.stopCountdown();r.remaining=Math.max(0,r.remaining-(Date.now()-r.countdownStart))};
|
|
24
|
-
/**
|
|
25
|
-
* While the toast is visible with a duration, one countdown hides it when the time is up, and
|
|
26
|
-
* mdsToastClose follows once the exit animation is over. The countdown is one-shot: it was an
|
|
27
|
-
* interval that nobody stopped, so a dismissed toast emitted mdsToastClose again every
|
|
28
|
-
* `duration`. Hiding the toast, showing it again or changing the duration starts from scratch.
|
|
29
|
-
* The countdown waits while the pointer is over the toast or the focus is inside it, so its
|
|
30
|
-
* action is not taken away while the person is reaching it (WCAG 2.2.1).
|
|
31
|
-
*/this.reloadTimeListeners=function(t){if(typeof window==="undefined")return;r.stopCountdown();r.remaining=t&&r.hasDuration()?r.duration:undefined;r.runCountdown()};this.hide=function(t){r.closeReason=t;r.visible=false};this.onCloseClick=function(){r.hide("close")};this.onPointerEnter=function(){r.pointerInside=true;r.holdCountdown()};this.onPointerLeave=function(){r.pointerInside=false;r.runCountdown()};this.onFocusIn=function(){r.focusInside=true;r.holdCountdown()};
|
|
32
|
-
// the focus moving from one control of the toast to another sends the focusin of the next one
|
|
33
|
-
// right after: the countdown goes on and stops again in the same task
|
|
34
|
-
this.onFocusOut=function(){r.focusInside=false;r.runCountdown()};
|
|
35
|
-
// the hide button takes the colour of the text of the toast: the variants without a style of
|
|
36
|
-
// their own are drawn as dark
|
|
37
|
-
this.closeButtonVariant=function(){switch(r.variant){case"light":return"dark";case"error":case"info":case"success":case"warning":return r.variant;default:return"light"}};this.onActionSlotChange=function(){r.hasActions=c(r.hostElement,"action")}}
|
|
38
|
-
// mdsToastClose waits for the exit transition, so it reads the duration the transition really
|
|
39
|
-
// has: --mds-toast-duration, or 0s when the motion preference removes it. An invalid value
|
|
40
|
-
// leaves the transition at 0s too
|
|
41
|
-
t.prototype.updateCSSCustomProps=function(){if(typeof window==="undefined")return;var t=window.getComputedStyle(this.hostElement);this.cssDismissAnimationDuration=e(t.getPropertyValue("--private-toast-transition-duration"),0)};t.prototype.connectedCallback=function(){this.stacked=this.hostElement.closest("mds-toast-region")!==null};t.prototype.disconnectedCallback=function(){window.clearTimeout(this.dismissTimer);window.clearTimeout(this.closeTimer);this.dismissTimer=undefined;this.closeTimer=undefined};t.prototype.componentWillLoad=function(){this.hasText=this.hostElement.innerHTML!=="";this.hasActions=c(this.hostElement,"action");this.reloadTimeListeners(!!this.visible)};t.prototype.componentDidLoad=function(){this.updateCSSCustomProps()};t.prototype.visibleChanged=function(t,a){var o=this;
|
|
42
|
-
// read again when the toast hides: the preference or the property may have changed since load
|
|
43
|
-
this.updateCSSCustomProps();var r=this.closeReason;this.closeReason="hide";if(!t){
|
|
44
|
-
// a hidden toast leaves the pointer and the focus behind without telling: the boundary
|
|
45
|
-
// events come only when the pointer moves, and a control that turns hidden loses the
|
|
46
|
-
// focus silently. The next showing starts its countdown from a clean state
|
|
47
|
-
this.pointerInside=false;this.focusInside=false}this.reloadTimeListeners(t);if(t){
|
|
48
|
-
// shown again before the close of the last showing: that close is no longer true
|
|
49
|
-
window.clearTimeout(this.closeTimer);this.closeTimer=undefined;return}if(!a){return}window.clearTimeout(this.closeTimer);this.closeTimer=window.setTimeout((function(){o.closeTimer=undefined;o.closedEvent.emit({reason:r})}),this.cssDismissAnimationDuration)};t.prototype.durationChanged=function(){this.reloadTimeListeners(!!this.visible)};t.prototype.render=function(){var t;
|
|
50
|
-
// a status region: the message is announced when the toast shows it, without moving the
|
|
51
|
-
// focus. The host is the region and stays in the page, so the content that appears inside
|
|
52
|
-
// it is what a screen reader reads out. Inside an mds-toast-region the region is the live
|
|
53
|
-
// region, already in the page before any toast: a toast of its own would nest a second one
|
|
54
|
-
return r(s,{key:"54d6d4cb0813dd1d58fc32d57c044e4f3c0888b7",role:this.stacked?undefined:"status",stacked:this.stacked,"pref-animation":n.state.animation,"pref-contrast":n.state.contrast,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},r("div",{key:"acf4944a4ceca7b96f2eac57ccfe78b2d267dfa9",class:u("dialog",this.position&&"to-".concat(this.position),this.visible&&"dialog--visible"),onFocusin:this.onFocusIn,onFocusout:this.onFocusOut,onPointerEnter:this.onPointerEnter,onPointerLeave:this.onPointerLeave},r("slot",{key:"b26ca83def0e4bf35c85ac7ece1b04c46ed2664f",name:"icon"}),this.hasText&&r("mds-text",{key:"c97189fd1bff2693686184e006c6282d0f67ac09",typography:"caption"},r("slot",{key:"b1964597f7b88df8f5bf2fddf3673eb033f45ce0"})),r("div",{key:"d6ab6634153b14b4f00d546d3dda91918505d7a9",class:u("actions",!this.hasActions&&"actions--hidden")},r("slot",{key:"087fb1d4d1e8e122db02061f91489ba87193457e",name:"action",onSlotchange:this.onActionSlotChange})),this.deletable&&r("mds-button",{key:"668d30646ab454eab30f8b34fa09aa2a7338a2dd","aria-label":this.t.get("hide"),class:"hide",icon:((t=this.position)===null||t===void 0?void 0:t.startsWith("top"))?l:m,onClick:this.onCloseClick,size:"sm",tone:"text",type:"button",variant:this.closeButtonVariant()})))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}},enumerable:false,configurable:true});return t}());k.style=y()}}}));
|