@maggioli-design-system/magma 2.1.0 → 2.2.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 +2 -1
- package/agents/install.md +17 -0
- package/agents/reporting.md +118 -0
- package/dist/cjs/index.cjs.js +62 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-banner_3.cjs.entry.js +3 -3
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +76 -24
- package/dist/cjs/mds-calendar_2.cjs.entry.js +5 -5
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +1 -1
- package/dist/cjs/mds-details.cjs.entry.js +1 -1
- package/dist/cjs/mds-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/mds-emoji.cjs.entry.js +1 -1
- package/dist/cjs/mds-entity.cjs.entry.js +1 -1
- package/dist/cjs/mds-file-preview.cjs.entry.js +2 -2
- package/dist/cjs/mds-file.cjs.entry.js +1 -1
- package/dist/cjs/mds-filter-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-filter.cjs.entry.js +1 -1
- package/dist/cjs/mds-header-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/mds-hr.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-otp.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-select.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-upload.cjs.entry.js +5 -5
- package/dist/cjs/mds-input.cjs.entry.js +2 -2
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +1 -1
- package/dist/cjs/mds-keyboard.cjs.entry.js +1 -1
- package/dist/cjs/mds-kpi-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-kpi.cjs.entry.js +1 -1
- package/dist/cjs/mds-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-list.cjs.entry.js +1 -1
- package/dist/cjs/mds-mention.cjs.entry.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +3 -3
- package/dist/cjs/mds-note.cjs.entry.js +1 -1
- package/dist/cjs/mds-notification.cjs.entry.js +1 -1
- package/dist/cjs/mds-paginator-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-paginator.cjs.entry.js +1 -1
- package/dist/cjs/mds-policy-ai.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-animation.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-language.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-mode.cjs.entry.js +2 -2
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-theme.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-progress_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-push-notification.cjs.entry.js +1 -1
- package/dist/cjs/mds-quote.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu.cjs.entry.js +1 -1
- package/dist/cjs/mds-separator.cjs.entry.js +1 -1
- package/dist/cjs/mds-status-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab_2.cjs.entry.js +27 -5
- package/dist/cjs/mds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-row.cjs.entry.js +21 -15
- package/dist/cjs/mds-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-text.cjs.entry.js +1 -1
- package/dist/cjs/mds-toast.cjs.entry.js +1 -1
- package/dist/cjs/mds-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/mds-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-tree.cjs.entry.js +1 -1
- package/dist/cjs/mds-url-view.cjs.entry.js +1 -1
- package/dist/cjs/mds-usage.cjs.entry.js +1 -1
- package/dist/cjs/mds-video-wall.cjs.entry.js +1 -1
- package/dist/cjs/mds-zero.cjs.entry.js +1 -1
- package/dist/collection/common/navigation.js +60 -0
- package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-item/documentation.json +1 -1
- 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-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +1 -1
- 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-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-button/AGENTS.md +5 -5
- package/dist/collection/components/mds-button/antipattern.md +19 -1
- package/dist/collection/components/mds-button/documentation.json +5 -5
- package/dist/collection/components/mds-button/mds-button.css +13 -0
- package/dist/collection/components/mds-button/mds-button.js +75 -22
- package/dist/collection/components/mds-button/pattern.md +27 -1
- 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-dropdown/mds-button-dropdown.js +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-button-group/mds-button-group.js +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.js +4 -4
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-calendar-cell/documentation.json +1 -1
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +1 -1
- package/dist/collection/components/mds-card/AGENTS.md +1 -1
- package/dist/collection/components/mds-card/documentation.json +1 -1
- package/dist/collection/components/mds-card/mds-card.js +1 -1
- 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-content/mds-card-content.js +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-footer/mds-card-footer.js +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-header/mds-card-header.js +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-card-media/mds-card-media.js +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.js +2 -2
- 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.js +1 -1
- 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.js +2 -2
- package/dist/collection/components/mds-emoji/AGENTS.md +1 -1
- package/dist/collection/components/mds-emoji/documentation.json +1 -1
- package/dist/collection/components/mds-emoji/mds-emoji.js +1 -1
- package/dist/collection/components/mds-entity/AGENTS.md +1 -1
- package/dist/collection/components/mds-entity/documentation.json +1 -1
- package/dist/collection/components/mds-entity/mds-entity.js +1 -1
- 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/mds-file.js +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.js +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.js +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-filter-item/mds-filter-item.js +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.js +1 -1
- 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.js +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.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/mds-hr/AGENTS.md +1 -1
- package/dist/collection/components/mds-hr/documentation.json +1 -1
- package/dist/collection/components/mds-hr/mds-hr.js +1 -1
- package/dist/collection/components/mds-icon/AGENTS.md +1 -1
- package/dist/collection/components/mds-icon/documentation.json +1 -1
- package/dist/collection/components/mds-icon/mds-icon.js +1 -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.js +2 -2
- 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.js +2 -2
- 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-preselection/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.js +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-field/mds-input-field.js +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-otp/mds-input-otp.js +1 -1
- package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-range/documentation.json +1 -1
- package/dist/collection/components/mds-input-range/mds-input-range.js +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.js +2 -2
- package/dist/collection/components/mds-input-switch/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-switch/documentation.json +1 -1
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +1 -1
- package/dist/collection/components/mds-input-tip/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +1 -1
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +2 -2
- 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.js +5 -5
- 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.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi/documentation.json +1 -1
- package/dist/collection/components/mds-kpi/mds-kpi.js +1 -1
- package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi-item/documentation.json +1 -1
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +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-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.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.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.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.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.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.js +2 -2
- 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.js +1 -1
- package/dist/collection/components/mds-push-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification/documentation.json +1 -1
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +1 -1
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification-item/documentation.json +1 -1
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.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.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.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.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.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.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.js +1 -1
- package/dist/collection/components/mds-tab/AGENTS.md +5 -4
- package/dist/collection/components/mds-tab/antipattern.md +27 -0
- package/dist/collection/components/mds-tab/documentation.json +6 -6
- package/dist/collection/components/mds-tab/mds-tab.css +10 -1
- package/dist/collection/components/mds-tab/mds-tab.js +18 -4
- package/dist/collection/components/mds-tab/pattern.md +33 -1
- package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.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.js +1 -1
- package/dist/collection/components/mds-tab-item/AGENTS.md +5 -4
- package/dist/collection/components/mds-tab-item/antipattern.md +22 -1
- package/dist/collection/components/mds-tab-item/documentation.json +5 -5
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +15 -3
- package/dist/collection/components/mds-tab-item/pattern.md +25 -7
- 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.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.js +22 -16
- package/dist/collection/components/mds-text/AGENTS.md +1 -1
- package/dist/collection/components/mds-text/documentation.json +1 -1
- package/dist/collection/components/mds-text/mds-text.js +1 -1
- 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.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.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.js +1 -1
- package/dist/collection/components/mds-tree-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree-item/documentation.json +1 -1
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +1 -1
- package/dist/collection/components/mds-url-view/AGENTS.md +1 -1
- package/dist/collection/components/mds-url-view/documentation.json +1 -1
- package/dist/collection/components/mds-url-view/mds-url-view.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.js +1 -1
- package/dist/collection/index.js +11 -4
- 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-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 +1 -1
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +3 -3
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-tip.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme-item.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features-row.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-header.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-price-table-list.js +1 -1
- package/dist/components/mds-price-table.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-separator.js +1 -1
- package/dist/components/mds-spinner.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-bar.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-tab.js +1 -1
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast.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-Dpf8NWF9.js → p-B3Z2Goa-.js} +1 -1
- package/dist/components/p-B3dWp2vS.js +1 -0
- package/dist/components/p-B6FOPjps.js +1 -0
- package/dist/components/{p-CIcshx6K.js → p-B7CR1EtF.js} +1 -1
- package/dist/components/{p-C3Sn8bRc.js → p-BBPQjm8h.js} +1 -1
- package/dist/components/{p-CsL9U6eU.js → p-BCiJ4PRD.js} +1 -1
- package/dist/components/p-BHJDW5JC.js +1 -0
- package/dist/components/p-BSs0SO-j.js +1 -0
- package/dist/components/{p-DR46G4-6.js → p-BY6Qu1V4.js} +1 -1
- package/dist/components/{p-CmHMhHMt.js → p-BhmePCyA.js} +1 -1
- package/dist/components/{p-DwA-5c8G.js → p-BpGzrg1C.js} +1 -1
- package/dist/components/{p-DmPLOktp.js → p-Bv2IVRzI.js} +1 -1
- package/dist/components/{p-CGkSDkOY.js → p-C-J9fW51.js} +1 -1
- package/dist/components/{p-BW24ByN-.js → p-C7EyV0z3.js} +1 -1
- package/dist/components/{p-akEzGmDD.js → p-CAa2kI72.js} +1 -1
- package/dist/components/{p-BVw5aqzn.js → p-CBV19-8O.js} +1 -1
- package/dist/components/{p-B05zwjTY.js → p-CCv9tBZK.js} +1 -1
- package/dist/components/{p-Cyj1BFxx.js → p-CDf607TB.js} +1 -1
- package/dist/components/{p-x_c_51aL.js → p-CEMAGNly.js} +1 -1
- package/dist/components/{p-BWpSxp3h.js → p-CGYDZBMv.js} +1 -1
- package/dist/components/{p-DebgFlHq.js → p-CHAvkoj3.js} +1 -1
- package/dist/components/{p-BzvYQBdf.js → p-CMFUEkte.js} +1 -1
- package/dist/components/p-CR2GGKXK.js +1 -0
- package/dist/components/{p-1aH7xiMs.js → p-Cb5kuO7B.js} +1 -1
- package/dist/components/{p-BOu_NOgd.js → p-CiNNzAa3.js} +1 -1
- package/dist/components/{p-BXPIlPIF.js → p-DGDdPv_Y.js} +1 -1
- package/dist/components/{p-Cnt6G6GK.js → p-D_wD-Pyk.js} +1 -1
- package/dist/components/{p-K3QNYRhf.js → p-HR2JwDjG.js} +1 -1
- package/dist/components/{p-Dws02cT2.js → p-LE7qQIFR.js} +2 -2
- package/dist/components/{p-bDVBqkn0.js → p-vgIKH234.js} +1 -1
- package/dist/documentation.json +14 -14
- package/dist/esm/index.js +62 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-banner_3.entry.js +3 -3
- package/dist/esm/mds-button-dropdown.entry.js +1 -1
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +77 -25
- package/dist/esm/mds-calendar_2.entry.js +5 -5
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +1 -1
- package/dist/esm/mds-details.entry.js +1 -1
- package/dist/esm/mds-dropdown.entry.js +2 -2
- package/dist/esm/mds-emoji.entry.js +1 -1
- package/dist/esm/mds-entity.entry.js +1 -1
- package/dist/esm/mds-file-preview.entry.js +2 -2
- package/dist/esm/mds-file.entry.js +1 -1
- package/dist/esm/mds-filter-item.entry.js +1 -1
- package/dist/esm/mds-filter.entry.js +1 -1
- package/dist/esm/mds-header-bar.entry.js +1 -1
- package/dist/esm/mds-header.entry.js +1 -1
- package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm/mds-hr.entry.js +1 -1
- package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm/mds-input-date.entry.js +2 -2
- package/dist/esm/mds-input-field.entry.js +1 -1
- package/dist/esm/mds-input-otp.entry.js +1 -1
- package/dist/esm/mds-input-range.entry.js +1 -1
- package/dist/esm/mds-input-select.entry.js +2 -2
- package/dist/esm/mds-input-switch_2.entry.js +2 -2
- package/dist/esm/mds-input-tip_2.entry.js +3 -3
- package/dist/esm/mds-input-upload.entry.js +5 -5
- package/dist/esm/mds-input.entry.js +2 -2
- package/dist/esm/mds-keyboard-key.entry.js +1 -1
- package/dist/esm/mds-keyboard.entry.js +1 -1
- package/dist/esm/mds-kpi-item.entry.js +1 -1
- package/dist/esm/mds-kpi.entry.js +1 -1
- package/dist/esm/mds-list-item.entry.js +1 -1
- package/dist/esm/mds-list.entry.js +1 -1
- package/dist/esm/mds-mention.entry.js +1 -1
- package/dist/esm/mds-modal.entry.js +3 -3
- package/dist/esm/mds-note.entry.js +1 -1
- package/dist/esm/mds-notification.entry.js +1 -1
- package/dist/esm/mds-paginator-item.entry.js +1 -1
- package/dist/esm/mds-paginator.entry.js +1 -1
- package/dist/esm/mds-policy-ai.entry.js +1 -1
- package/dist/esm/mds-pref-animation.entry.js +1 -1
- package/dist/esm/mds-pref-consumption.entry.js +1 -1
- package/dist/esm/mds-pref-contrast.entry.js +1 -1
- package/dist/esm/mds-pref-language-item.entry.js +1 -1
- package/dist/esm/mds-pref-language.entry.js +1 -1
- package/dist/esm/mds-pref-mode.entry.js +2 -2
- package/dist/esm/mds-pref-theme-item.entry.js +1 -1
- package/dist/esm/mds-pref-theme.entry.js +1 -1
- package/dist/esm/mds-pref.entry.js +1 -1
- package/dist/esm/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm/mds-price-table-features.entry.js +1 -1
- package/dist/esm/mds-price-table-header.entry.js +1 -1
- package/dist/esm/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm/mds-price-table-list.entry.js +1 -1
- package/dist/esm/mds-price-table.entry.js +1 -1
- package/dist/esm/mds-progress_2.entry.js +2 -2
- package/dist/esm/mds-push-notification-item.entry.js +2 -2
- package/dist/esm/mds-push-notification.entry.js +1 -1
- package/dist/esm/mds-quote.entry.js +1 -1
- package/dist/esm/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm/mds-radial-menu.entry.js +1 -1
- package/dist/esm/mds-separator.entry.js +1 -1
- package/dist/esm/mds-status-bar.entry.js +1 -1
- package/dist/esm/mds-stepper-bar-item.entry.js +1 -1
- package/dist/esm/mds-stepper-bar.entry.js +1 -1
- package/dist/esm/mds-tab-bar-item.entry.js +1 -1
- package/dist/esm/mds-tab-bar.entry.js +1 -1
- package/dist/esm/mds-tab_2.entry.js +27 -5
- package/dist/esm/mds-table-body.entry.js +1 -1
- package/dist/esm/mds-table-footer.entry.js +1 -1
- package/dist/esm/mds-table-header-cell.entry.js +1 -1
- package/dist/esm/mds-table-header.entry.js +1 -1
- package/dist/esm/mds-table-row.entry.js +22 -16
- package/dist/esm/mds-table.entry.js +1 -1
- package/dist/esm/mds-text.entry.js +1 -1
- package/dist/esm/mds-toast.entry.js +1 -1
- package/dist/esm/mds-tooltip.entry.js +1 -1
- package/dist/esm/mds-tree-item.entry.js +1 -1
- package/dist/esm/mds-tree.entry.js +1 -1
- package/dist/esm/mds-url-view.entry.js +1 -1
- package/dist/esm/mds-usage.entry.js +1 -1
- package/dist/esm/mds-video-wall.entry.js +1 -1
- package/dist/esm/mds-zero.entry.js +1 -1
- package/dist/esm-es5/index.js +37 -20
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +3 -3
- 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 +28 -6
- package/dist/esm-es5/mds-calendar_2.entry.js +2 -2
- 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 +1 -1
- package/dist/esm-es5/mds-emoji.entry.js +1 -1
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +1 -1
- 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 +4 -4
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm-es5/mds-input-date.entry.js +2 -2
- 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 +1 -1
- package/dist/esm-es5/mds-input-tip_2.entry.js +2 -2
- package/dist/esm-es5/mds-input-upload.entry.js +1 -1
- package/dist/esm-es5/mds-input.entry.js +1 -1
- 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-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-note.entry.js +1 -1
- package/dist/esm-es5/mds-notification.entry.js +1 -1
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +1 -1
- package/dist/esm-es5/mds-policy-ai.entry.js +1 -1
- package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
- package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
- package/dist/esm-es5/mds-pref-contrast.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language-item.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language.entry.js +1 -1
- package/dist/esm-es5/mds-pref-mode.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme-item.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme.entry.js +1 -1
- package/dist/esm-es5/mds-pref.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification.entry.js +1 -1
- package/dist/esm-es5/mds-quote.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu.entry.js +1 -1
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar.entry.js +2 -2
- package/dist/esm-es5/mds-tab-bar-item.entry.js +3 -3
- package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab_2.entry.js +15 -4
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +1 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
- package/dist/esm-es5/mds-table-header.entry.js +4 -4
- package/dist/esm-es5/mds-table-row.entry.js +12 -4
- package/dist/esm-es5/mds-table.entry.js +2 -2
- package/dist/esm-es5/mds-text.entry.js +1 -1
- package/dist/esm-es5/mds-toast.entry.js +1 -1
- package/dist/esm-es5/mds-tooltip.entry.js +1 -1
- package/dist/esm-es5/mds-tree-item.entry.js +1 -1
- package/dist/esm-es5/mds-tree.entry.js +1 -1
- package/dist/esm-es5/mds-url-view.entry.js +1 -1
- package/dist/esm-es5/mds-usage.entry.js +1 -1
- package/dist/esm-es5/mds-video-wall.entry.js +1 -1
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/hydrate/index.js +300 -155
- package/dist/hydrate/index.mjs +300 -155
- package/dist/magma-components/index.esm.js +1 -1
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-2723caa7.system.entry.js → p-019e8a95.system.entry.js} +2 -2
- package/dist/magma-components/{p-835fc007.entry.js → p-01dd1f55.entry.js} +1 -1
- package/dist/magma-components/{p-a64bbb36.system.entry.js → p-02119624.system.entry.js} +3 -3
- package/dist/magma-components/{p-d2f134ac.entry.js → p-02fc7592.entry.js} +1 -1
- package/dist/magma-components/{p-b295e4ab.system.entry.js → p-03cd0069.system.entry.js} +1 -1
- package/dist/magma-components/p-05fbca60.system.entry.js +37 -0
- package/dist/magma-components/{p-b431ca8a.entry.js → p-06d9af89.entry.js} +1 -1
- package/dist/magma-components/p-07e4701d.entry.js +1 -0
- package/dist/magma-components/{p-bab4c75e.system.entry.js → p-081a19b1.system.entry.js} +5 -5
- package/dist/magma-components/p-09d0b6a8.entry.js +1 -0
- package/dist/magma-components/{p-d282a929.entry.js → p-0b300de7.entry.js} +1 -1
- package/dist/magma-components/{p-0a551e86.entry.js → p-0d3c3de9.entry.js} +1 -1
- package/dist/magma-components/{p-3d56e3f4.entry.js → p-115a5e47.entry.js} +1 -1
- package/dist/magma-components/p-1314d80e.entry.js +1 -0
- package/dist/magma-components/{p-8aafbfdf.system.entry.js → p-133a6ffd.system.entry.js} +1 -1
- package/dist/magma-components/{p-0a904a12.entry.js → p-13db55de.entry.js} +1 -1
- package/dist/magma-components/{p-2c44c961.system.entry.js → p-1a2731ec.system.entry.js} +4 -4
- package/dist/magma-components/{p-5a911e7b.system.entry.js → p-1a602906.system.entry.js} +2 -2
- package/dist/magma-components/{p-ec9cc7b9.entry.js → p-1c975156.entry.js} +1 -1
- package/dist/magma-components/{p-3e0eed90.system.entry.js → p-1d154234.system.entry.js} +3 -3
- package/dist/magma-components/{p-d9804d2f.entry.js → p-1d9d7666.entry.js} +1 -1
- package/dist/magma-components/{p-ccb14076.system.entry.js → p-1ddaaa6d.system.entry.js} +1 -1
- package/dist/magma-components/{p-7afec7ee.entry.js → p-21aa0a74.entry.js} +1 -1
- package/dist/magma-components/{p-106f39c6.entry.js → p-2399b7e8.entry.js} +1 -1
- package/dist/magma-components/{p-92d9b537.entry.js → p-25407d89.entry.js} +1 -1
- package/dist/magma-components/{p-91ff1560.system.entry.js → p-27547a7a.system.entry.js} +2 -2
- package/dist/magma-components/{p-03c2060d.entry.js → p-289a874e.entry.js} +1 -1
- package/dist/magma-components/{p-77615947.system.entry.js → p-2be3bd23.system.entry.js} +1 -1
- package/dist/magma-components/{p-4dd6a39b.entry.js → p-2c586431.entry.js} +1 -1
- package/dist/magma-components/{p-832883c4.entry.js → p-2d324edc.entry.js} +1 -1
- package/dist/magma-components/{p-5c94e0c2.system.entry.js → p-2da2cdf3.system.entry.js} +2 -2
- package/dist/magma-components/{p-dcc3be64.system.entry.js → p-2e01e057.system.entry.js} +2 -2
- package/dist/magma-components/{p-2ec0db8e.entry.js → p-2e9b80e8.entry.js} +1 -1
- package/dist/magma-components/{p-493fb2f4.system.entry.js → p-32361702.system.entry.js} +1 -1
- package/dist/magma-components/{p-a7e7f2c0.entry.js → p-3448d0ce.entry.js} +1 -1
- package/dist/magma-components/{p-e1e69217.system.entry.js → p-367cee40.system.entry.js} +1 -1
- package/dist/magma-components/{p-f5bb8c0c.entry.js → p-3a1a6945.entry.js} +1 -1
- package/dist/magma-components/{p-915c5f06.system.entry.js → p-3a8870e4.system.entry.js} +1 -1
- package/dist/magma-components/{p-0255924b.system.entry.js → p-3b68fbcd.system.entry.js} +2 -2
- package/dist/magma-components/p-3f05ec8a.entry.js +1 -0
- package/dist/magma-components/{p-c22887f7.system.entry.js → p-4073c5f2.system.entry.js} +4 -4
- package/dist/magma-components/p-40bd2e6d.entry.js +1 -0
- package/dist/magma-components/{p-883c223a.system.entry.js → p-423597db.system.entry.js} +2 -2
- package/dist/magma-components/{p-58b82b40.system.entry.js → p-443c2a29.system.entry.js} +2 -2
- package/dist/magma-components/{p-52793bdb.system.entry.js → p-45a91f1c.system.entry.js} +1 -1
- package/dist/magma-components/{p-e887a14c.entry.js → p-487af9d3.entry.js} +1 -1
- package/dist/magma-components/{p-4658154f.entry.js → p-4909070e.entry.js} +1 -1
- package/dist/magma-components/{p-00e47e49.system.entry.js → p-4d966161.system.entry.js} +3 -3
- package/dist/magma-components/p-4ddf891e.system.entry.js +69 -0
- package/dist/magma-components/{p-dc59b764.entry.js → p-4e15cde7.entry.js} +1 -1
- package/dist/magma-components/{p-44e2a945.system.entry.js → p-4ffec31a.system.entry.js} +1 -1
- package/dist/magma-components/{p-ccb6898a.system.entry.js → p-50b266e9.system.entry.js} +1 -1
- package/dist/magma-components/{p-5a7267e8.system.entry.js → p-5165b09f.system.entry.js} +2 -2
- package/dist/magma-components/{p-7927010f.system.entry.js → p-544cc9c7.system.entry.js} +1 -1
- package/dist/magma-components/p-562bb482.system.entry.js +16 -0
- package/dist/magma-components/p-5ae5ec95.entry.js +1 -0
- package/dist/magma-components/{p-79421ee1.system.entry.js → p-5d2d8ffe.system.entry.js} +1 -1
- package/dist/magma-components/{p-4ac94b84.system.entry.js → p-5e180f53.system.entry.js} +1 -1
- package/dist/magma-components/{p-837fbbf7.system.entry.js → p-61ff1d85.system.entry.js} +1 -1
- package/dist/magma-components/{p-283b0548.system.entry.js → p-62b17608.system.entry.js} +2 -2
- package/dist/magma-components/{p-ecd3c27f.entry.js → p-63e7c98f.entry.js} +1 -1
- package/dist/magma-components/{p-bc53c19e.entry.js → p-6474c850.entry.js} +1 -1
- package/dist/magma-components/{p-20e4f7dd.system.entry.js → p-660657ac.system.entry.js} +3 -3
- package/dist/magma-components/{p-18c8628c.entry.js → p-66237a64.entry.js} +1 -1
- package/dist/magma-components/{p-0646392d.entry.js → p-6702e489.entry.js} +1 -1
- package/dist/magma-components/p-694ed534.entry.js +1 -0
- package/dist/magma-components/{p-88f99a4f.system.entry.js → p-6b446fd9.system.entry.js} +2 -2
- package/dist/magma-components/{p-10ad73e3.system.entry.js → p-6c414bc2.system.entry.js} +1 -1
- package/dist/magma-components/{p-6f74cdf5.system.entry.js → p-6cbd8a6d.system.entry.js} +3 -3
- package/dist/magma-components/{p-b24b5179.entry.js → p-6d0dc1fd.entry.js} +1 -1
- package/dist/magma-components/{p-1be45c75.entry.js → p-6f2471b1.entry.js} +1 -1
- package/dist/magma-components/{p-188f4b1d.system.entry.js → p-6fa03aab.system.entry.js} +1 -1
- package/dist/magma-components/{p-774ce1d2.entry.js → p-70141ccd.entry.js} +1 -1
- package/dist/magma-components/{p-8afc9bc4.system.entry.js → p-707d8626.system.entry.js} +1 -1
- package/dist/magma-components/{p-5fd04ce1.entry.js → p-71dafc3f.entry.js} +1 -1
- package/dist/magma-components/{p-ffa1a0b4.system.entry.js → p-726209f4.system.entry.js} +1 -1
- package/dist/magma-components/{p-a6af4083.system.entry.js → p-745ee76b.system.entry.js} +2 -2
- package/dist/magma-components/{p-d47df503.system.entry.js → p-761415b3.system.entry.js} +1 -1
- package/dist/magma-components/{p-dd58f9ee.entry.js → p-771720b7.entry.js} +1 -1
- package/dist/magma-components/{p-1e700f0a.entry.js → p-7a7c308b.entry.js} +1 -1
- package/dist/magma-components/{p-439c9ce3.system.entry.js → p-7bea6c05.system.entry.js} +1 -1
- package/dist/magma-components/{p-64f78149.system.entry.js → p-7c940015.system.entry.js} +1 -1
- package/dist/magma-components/{p-474c5d53.system.entry.js → p-7ca990d4.system.entry.js} +2 -2
- package/dist/magma-components/{p-de091be7.system.entry.js → p-7d6ca97d.system.entry.js} +1 -1
- package/dist/magma-components/{p-7e7cf986.system.entry.js → p-8097dfc8.system.entry.js} +1 -1
- package/dist/magma-components/{p-8183b7ed.entry.js → p-843ab1b4.entry.js} +1 -1
- package/dist/magma-components/{p-9dcfc247.entry.js → p-8765dc11.entry.js} +1 -1
- package/dist/magma-components/{p-218d8254.system.entry.js → p-876a5fb9.system.entry.js} +1 -1
- package/dist/magma-components/{p-aba96089.entry.js → p-8a838a1a.entry.js} +1 -1
- package/dist/magma-components/{p-35aa29c5.entry.js → p-8bcb2a5f.entry.js} +1 -1
- package/dist/magma-components/p-8c93550d.entry.js +1 -0
- package/dist/magma-components/{p-ac81f63a.system.entry.js → p-91451e37.system.entry.js} +1 -1
- package/dist/magma-components/{p-1e3d89cd.system.entry.js → p-91c8960a.system.entry.js} +1 -1
- package/dist/magma-components/{p-1673225e.system.entry.js → p-939da879.system.entry.js} +1 -1
- package/dist/magma-components/{p-15d4846d.entry.js → p-97bde480.entry.js} +1 -1
- package/dist/magma-components/{p-5d119459.entry.js → p-97d02403.entry.js} +1 -1
- package/dist/magma-components/{p-05014374.entry.js → p-983f3e40.entry.js} +1 -1
- package/dist/magma-components/{p-dfe8552c.system.entry.js → p-99227c78.system.entry.js} +1 -1
- package/dist/magma-components/{p-eb681207.system.entry.js → p-9a583f6b.system.entry.js} +1 -1
- package/dist/magma-components/{p-84645c60.system.entry.js → p-9a86e0ce.system.entry.js} +1 -1
- package/dist/magma-components/{p-6c800411.entry.js → p-9e5982b6.entry.js} +1 -1
- package/dist/magma-components/{p-021f96f8.entry.js → p-9eef2f79.entry.js} +1 -1
- package/dist/magma-components/{p-12c5ae26.entry.js → p-9fe7035a.entry.js} +1 -1
- package/dist/magma-components/p-CKfEQ187.system.js +107 -0
- package/dist/magma-components/p-ZDRIVCAt.system.js +1 -1
- package/dist/magma-components/{p-e2ef5996.entry.js → p-a0972ec9.entry.js} +1 -1
- package/dist/magma-components/{p-c34d9e61.system.entry.js → p-a0d9e01f.system.entry.js} +1 -1
- package/dist/magma-components/{p-632bc44c.entry.js → p-a1851e6f.entry.js} +1 -1
- package/dist/magma-components/{p-e213640b.entry.js → p-a1b5bd58.entry.js} +1 -1
- package/dist/magma-components/{p-83394280.system.entry.js → p-a2d9549d.system.entry.js} +1 -1
- package/dist/magma-components/{p-05f73994.entry.js → p-a5a13b20.entry.js} +1 -1
- package/dist/magma-components/{p-7e085c82.entry.js → p-a6a71c77.entry.js} +1 -1
- package/dist/magma-components/{p-c28fce23.entry.js → p-a96312c1.entry.js} +1 -1
- package/dist/magma-components/{p-eaff7300.entry.js → p-a9e4efa3.entry.js} +1 -1
- package/dist/magma-components/{p-ef3424e3.entry.js → p-aa0bd826.entry.js} +1 -1
- package/dist/magma-components/{p-231b604f.system.entry.js → p-aa74169f.system.entry.js} +1 -1
- package/dist/magma-components/{p-90993b0b.system.entry.js → p-ab4ffbd4.system.entry.js} +1 -1
- package/dist/magma-components/{p-a4a83a63.entry.js → p-ad09a06b.entry.js} +1 -1
- package/dist/magma-components/{p-34401d35.entry.js → p-ad9cb1f5.entry.js} +1 -1
- package/dist/magma-components/{p-c0136138.entry.js → p-afbef2fc.entry.js} +1 -1
- package/dist/magma-components/{p-3eefca33.system.entry.js → p-b183d698.system.entry.js} +2 -2
- package/dist/magma-components/{p-2507f5cf.entry.js → p-b49196da.entry.js} +1 -1
- package/dist/magma-components/{p-d1faf129.entry.js → p-b77a2832.entry.js} +1 -1
- package/dist/magma-components/{p-4c73f14b.system.entry.js → p-b925c109.system.entry.js} +2 -2
- package/dist/magma-components/{p-73fde271.system.entry.js → p-b9e3281a.system.entry.js} +5 -5
- package/dist/magma-components/p-bb0538b6.entry.js +1 -0
- package/dist/magma-components/{p-c48bad95.entry.js → p-bb055583.entry.js} +1 -1
- package/dist/magma-components/{p-7770b989.system.entry.js → p-bc6a41a9.system.entry.js} +1 -1
- package/dist/magma-components/{p-4cb88b06.system.entry.js → p-bd9324f3.system.entry.js} +1 -1
- package/dist/magma-components/{p-57762bae.entry.js → p-c48e3460.entry.js} +1 -1
- package/dist/magma-components/{p-d04ac65d.entry.js → p-c4beed1b.entry.js} +1 -1
- package/dist/magma-components/{p-7ab15184.entry.js → p-c4ccb710.entry.js} +1 -1
- package/dist/magma-components/{p-436f9b27.system.entry.js → p-c4e4ba90.system.entry.js} +7 -7
- package/dist/magma-components/{p-13a1d35f.entry.js → p-c573e136.entry.js} +1 -1
- package/dist/magma-components/{p-5f1132b8.entry.js → p-c5ad848f.entry.js} +1 -1
- package/dist/magma-components/{p-cc0c6ae7.entry.js → p-c6841b21.entry.js} +1 -1
- package/dist/magma-components/{p-21865dd2.entry.js → p-c89a44b2.entry.js} +1 -1
- package/dist/magma-components/{p-69c21eae.entry.js → p-c94575de.entry.js} +1 -1
- package/dist/magma-components/{p-3a1339bb.system.entry.js → p-cabe9133.system.entry.js} +2 -2
- package/dist/magma-components/p-cb571b55.system.entry.js +1 -0
- package/dist/magma-components/{p-8a3d2259.system.entry.js → p-cbc0f01f.system.entry.js} +2 -2
- package/dist/magma-components/{p-86f4b6eb.system.entry.js → p-cc1ee10a.system.entry.js} +1 -1
- package/dist/magma-components/{p-cc9d9458.entry.js → p-cd1dc29a.entry.js} +1 -1
- package/dist/magma-components/{p-4211ce6c.system.entry.js → p-cd5cf28b.system.entry.js} +1 -1
- package/dist/magma-components/{p-277444bc.entry.js → p-cd952369.entry.js} +1 -1
- package/dist/magma-components/{p-6e03b83a.entry.js → p-d35aebe5.entry.js} +1 -1
- package/dist/magma-components/{p-b626c69f.system.entry.js → p-d5e53364.system.entry.js} +1 -1
- package/dist/magma-components/{p-93d39066.entry.js → p-d74fa7af.entry.js} +1 -1
- package/dist/magma-components/{p-577db922.entry.js → p-d7515aae.entry.js} +1 -1
- package/dist/magma-components/{p-b2c62b6e.system.entry.js → p-d7a94afb.system.entry.js} +1 -1
- package/dist/magma-components/{p-6c18c40e.system.entry.js → p-d93c9a11.system.entry.js} +1 -1
- package/dist/magma-components/{p-314abfba.entry.js → p-d9fbbf3f.entry.js} +1 -1
- package/dist/magma-components/{p-88287207.system.entry.js → p-db492cf5.system.entry.js} +2 -2
- package/dist/magma-components/{p-a462aadd.entry.js → p-dc399372.entry.js} +1 -1
- package/dist/magma-components/{p-e8ed096b.entry.js → p-dcf841d5.entry.js} +1 -1
- package/dist/magma-components/{p-97f6166e.system.entry.js → p-dfb4a965.system.entry.js} +1 -1
- package/dist/magma-components/{p-b5559b28.system.entry.js → p-e1a91e9e.system.entry.js} +1 -1
- package/dist/magma-components/{p-474047fa.system.entry.js → p-e5438280.system.entry.js} +1 -1
- package/dist/magma-components/{p-6a6326c6.entry.js → p-e95f2a48.entry.js} +1 -1
- package/dist/magma-components/{p-7787ebaf.system.entry.js → p-eb113725.system.entry.js} +1 -1
- package/dist/magma-components/{p-36a67b51.entry.js → p-ec5eccbb.entry.js} +1 -1
- package/dist/magma-components/{p-cc2a09f2.system.entry.js → p-eea815ca.system.entry.js} +1 -1
- package/dist/magma-components/{p-f733ae92.system.entry.js → p-ef4cd904.system.entry.js} +2 -2
- package/dist/magma-components/{p-0141c597.system.entry.js → p-eff1fd6c.system.entry.js} +2 -2
- package/dist/magma-components/{p-faa1f22c.entry.js → p-eff38775.entry.js} +1 -1
- package/dist/magma-components/{p-9344a234.entry.js → p-f01874a8.entry.js} +1 -1
- package/dist/magma-components/p-f05d7005.entry.js +1 -0
- package/dist/magma-components/{p-f29a059d.system.entry.js → p-f0c67a70.system.entry.js} +2 -2
- package/dist/magma-components/{p-e7751639.entry.js → p-f215496c.entry.js} +1 -1
- package/dist/magma-components/{p-8d53bd61.system.entry.js → p-f28cfb33.system.entry.js} +2 -2
- package/dist/magma-components/{p-6fdb3fe7.system.entry.js → p-f3dbebdd.system.entry.js} +1 -1
- package/dist/magma-components/{p-0a38e4ce.system.entry.js → p-f65e29e0.system.entry.js} +1 -1
- package/dist/magma-components/{p-74b51db8.entry.js → p-f830793e.entry.js} +1 -1
- package/dist/magma-components/{p-5ccf493c.system.entry.js → p-f835c307.system.entry.js} +1 -1
- package/dist/magma-components/{p-50ea11c9.system.entry.js → p-f89c3a01.system.entry.js} +1 -1
- package/dist/magma-components/{p-ee1e7f07.system.entry.js → p-f8da21a1.system.entry.js} +1 -1
- package/dist/magma-components/{p-bf2fe278.system.entry.js → p-f97b4ff4.system.entry.js} +2 -2
- package/dist/magma-components/{p-2f520704.entry.js → p-fc8f8a0c.entry.js} +1 -1
- package/dist/magma-components/{p-76ecad2f.entry.js → p-fcaa5967.entry.js} +3 -3
- package/dist/magma-components/{p-6ff8be3e.system.entry.js → p-ff970859.system.entry.js} +1 -1
- package/dist/stats.json +797 -772
- package/dist/types/common/navigation.d.ts +32 -0
- package/dist/types/components/mds-button/mds-button.d.ts +23 -2
- package/dist/types/components/mds-tab/mds-tab.d.ts +6 -1
- package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +6 -1
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -2
- package/dist/types/components.d.ts +4 -4
- package/dist/types/index.d.ts +12 -4
- package/package.json +6 -6
- package/dist/components/p-CKS4r32k.js +0 -1
- package/dist/components/p-COkF_8bh.js +0 -1
- package/dist/components/p-DQqUzCGR.js +0 -1
- package/dist/components/p-DcW0iRnZ.js +0 -1
- package/dist/components/p-PQ_EO5-U.js +0 -1
- package/dist/magma-components/p-322a5452.entry.js +0 -1
- package/dist/magma-components/p-35ee2d77.entry.js +0 -1
- package/dist/magma-components/p-4e7f21ac.entry.js +0 -1
- package/dist/magma-components/p-514d0fcb.entry.js +0 -1
- package/dist/magma-components/p-5299f709.system.entry.js +0 -26
- package/dist/magma-components/p-60f67c37.entry.js +0 -1
- package/dist/magma-components/p-789c1b93.system.entry.js +0 -1
- package/dist/magma-components/p-8ccd187a.entry.js +0 -1
- package/dist/magma-components/p-D7BrzK-C.system.js +0 -90
- package/dist/magma-components/p-a41e52f7.entry.js +0 -1
- package/dist/magma-components/p-b897c97d.entry.js +0 -1
- package/dist/magma-components/p-c166ec50.system.entry.js +0 -47
- package/dist/magma-components/p-d07d227b.system.entry.js +0 -8
- package/dist/magma-components/p-d5bd6bef.entry.js +0 -1
- package/dist/magma-components/p-f654eafe.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,a,r,e){function n(t){return t instanceof r?t:new r((function(a){a(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{m(e.next(t))}catch(t){o(t)}}function i(t){try{m(e["throw"](t))}catch(t){o(t)}}function m(t){t.done?r(t.value):n(t.value).then(s,i)}m((e=e.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,n,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=i(0),s["throw"]=i(1),s["return"]=i(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(t){return function(a){return m([t,a])}}function m(i){if(e)throw new TypeError("Generator is already executing.");while(s&&(s=0,i[0]&&(r=0)),r)try{if(e=1,n&&(o=i[0]&2?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;if(n=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:r.label++;return{value:i[1],done:false};case 5:r.label++;n=i[1];i=[0];continue;case 7:i=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){r.label=i[1];break}if(i[0]===6&&r.label<o[1]){r.label=o[1];o=i;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(i);break}if(o[2])r.ops.pop();r.trys.pop();continue}i=a.call(t,r)}catch(t){i=[6,t];n=0}finally{e=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{K as KeyboardManager}from"./keyboard-manager-KRu9I7dw.js";import{u as unslugName,s as setAttributeIfEmpty}from"./aria-CSCy6TMW.js";import{r as readSlottedLabel,s as sanitizeLabel}from"./slot-C0o_l0td.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";import{r as requestSubmitAs}from"./form-wI0alRSO.js";import{IconsSetService}from"./index.js";var buttonSizeTypographyVariant={sm:"action",md:"action",lg:"h6",xl:"h5"};var BASE64_SVG_ICON="data:image/svg+xml;base64,";var MARKUP_SVG_ICON="<svg ";var isIconFormatIsBase64=function(t){if(!t){return false}return t.startsWith(BASE64_SVG_ICON)};var isIconFormatIsSVG=function(t){if(!t){return false}return t.startsWith(MARKUP_SVG_ICON)};var mdiApple='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-apple" viewBox="0 0 24 24"><path d="M18.71,19.5C17.88,20.74 17,21.95 15.66,21.97C14.32,22 13.89,21.18 12.37,21.18C10.84,21.18 10.37,21.95 9.1,22C7.79,22.05 6.8,20.68 5.96,19.47C4.25,17 2.94,12.45 4.7,9.39C5.57,7.87 7.13,6.91 8.82,6.88C10.1,6.86 11.32,7.75 12.11,7.75C12.89,7.75 14.37,6.68 15.92,6.84C16.57,6.87 18.39,7.1 19.56,8.82C19.47,8.88 17.39,10.1 17.41,12.63C17.44,15.65 20.06,16.66 20.09,16.67C20.06,16.74 19.67,18.11 18.71,19.5M13,3.5C13.73,2.67 14.94,2.04 15.94,2C16.07,3.17 15.6,4.35 14.9,5.19C14.21,6.04 13.07,6.7 11.95,6.61C11.8,5.46 12.36,4.26 13,3.5Z" /></svg>';var logoGoogle='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" xmlnsXlink="http://www.w3.org/1999/xlink"><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"></path><path fill="none" d="M0 0h48v48H0z"></path></svg>\n';var mdsButtonCss=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-icon,mds-spinner,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-button-await-duration:.725s;--mds-button-transition-duration:var(--duration-300,.3s);--private-button-transition-duration:var(--mds-button-transition-duration);--mds-button-background:rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));--mds-button-border-color-rgb:var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163)));--mds-button-border-hover-opacity:.75;--mds-button-border-high-contrast-hover-width:3px;--mds-button-border-high-contrast-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-tone-outline-hover-width:3px;--mds-button-border-tone-outline-opacity:.3;--mds-button-border-tone-strong-hover-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-tone-weak-hover-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-default-opacity:0;--mds-button-border-opacity:0;--mds-button-border-width:calc(var(--spacing,.0025rem)*50);--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-button-gap:calc(var(--spacing,.0025rem)*200);--mds-button-line-clamp:1;--mds-button-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:var(--mds-button-background,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));border-radius:var(--mds-button-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));-webkit-box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0));box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0));box-sizing:border-box;color:var(--mds-button-color,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));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(--mds-button-corner-shape,var(--magma-corner-shape,squircle));align-items:center;align-self:flex-start;cursor:pointer;display:inline-flex;fill:currentColor;gap:var(--mds-button-gap,calc(var(--spacing,.0025rem)*200));justify-content:center;justify-self:flex-start;min-height:calc(var(--spacing,.0025rem)*900);min-width:calc(var(--spacing,.0025rem)*900);padding:0 calc(var(--spacing,.0025rem)*400);position:relative;-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);transition-property:background-color,border-color,box-shadow,color,outline,outline-offset,transform;-webkit-transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));-webkit-user-select:none;user-select:none}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running;z-index:10}.text{--mds-text-line-clamp:var(--mds-button-line-clamp,1)}.text:first-letter{text-transform:uppercase}.icon{align-items:center;display:inline-flex;fill:inherit;flex-shrink:0;justify-content:center;pointer-events:none;transition-property:fill;-webkit-transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955));transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955))}.await,.icon{-webkit-transition-duration:var(--private-button-transition-duration);transition-duration:var(--private-button-transition-duration)}.await{display:none;margin-right:calc(calc(-1 * var(--mds-button-gap,calc(var(--spacing,.0025rem) * 200))) - calc(var(--spacing,.0025rem) * 600));transform:scale(0);transition-behavior:allow-discrete;transition-property:display,margin-right,opacity,transform,width;-webkit-transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955));transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955))}.await,.spinner{height:calc(var(--spacing,.0025rem)*600);width:calc(var(--spacing,.0025rem)*600)}.spinner{--mds-spinner-duration:var(--mds-button-await-duration,.725s);color:currentColor}:is(:host(:not([await])),:host([await=false])) .spinner{-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);-webkit-transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94))}:host([await]:not([await=false])) .await{display:flex;margin-right:0;opacity:1;transform:scale(1)}@starting-style{:host([await]:not([await=false])) .await{margin-right:calc(calc(-1 * var(--mds-button-gap,calc(var(--spacing,.0025rem) * 200))) - calc(var(--spacing,.0025rem) * 600));opacity:0;transform:scale(0)}}:host([await]:not([await=false])){pointer-events:none}:host([icon]:not([label])[await]:not([await=false])) .icon{display:none}:host(:disabled:not([disabled=false])),:host([disabled]:not([disabled=false])){opacity:.5;pointer-events:none}:host([size=sm]){--mds-button-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));min-height:calc(var(--spacing,.0025rem)*700);min-width:calc(var(--spacing,.0025rem)*700);padding:0 calc(var(--spacing,.0025rem)*300)}:host([size=sm]) .icon{height:calc(var(--spacing,.0025rem)*400);width:calc(var(--spacing,.0025rem)*400)}:host([size=sm]) .text{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}:host([size=sm]):host([await]:not([await=false])) .await{transform:scale(.75)}:host([size=md]){min-height:calc(var(--spacing,.0025rem)*900);min-width:calc(var(--spacing,.0025rem)*900);padding-left:calc(var(--spacing,.0025rem)*400);padding-right:calc(var(--spacing,.0025rem)*400)}:host([size=md]):host([icon][icon-position=left]){padding-left:calc(var(--spacing,.0025rem)*300)}:host([size=md]):host([icon][icon-position=right]){padding-right:calc(var(--spacing,.0025rem)*300)}:host([size=lg]){min-height:calc(var(--spacing,.0025rem)*1200);min-width:calc(var(--spacing,.0025rem)*1200);padding-left:calc(var(--spacing,.0025rem)*500);padding-right:calc(var(--spacing,.0025rem)*500)}:host([size=lg]):host([icon][icon-position=left]){padding-left:calc(var(--spacing,.0025rem)*400)}:host([size=lg]):host([icon][icon-position=right]){padding-right:calc(var(--spacing,.0025rem)*400)}:host([size=xl]){min-height:calc(var(--spacing,.0025rem)*1300);min-width:calc(var(--spacing,.0025rem)*1300);padding-left:calc(var(--spacing,.0025rem)*600);padding-right:calc(var(--spacing,.0025rem)*600)}:host([size=xl]) .icon{height:calc(var(--spacing,.0025rem)*800);width:calc(var(--spacing,.0025rem)*800)}:host([size][icon][icon-position]:not([label])){aspect-ratio:1;padding:0}:host(:not([label])) .text,:host([label=""]) .text{display:none}:host([variant=primary]){--mds-button-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=primary]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-button-border-color-rgb:var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))}:host([variant=primary]):host([tone=weak]){--mds-button-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-button-border-color-rgb:var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));fill:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=primary]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226))));--mds-button-border-color-rgb:var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226)))}:host([variant=primary]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=primary]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=primary]):host([tone=text]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=primary]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))))}:host([variant=primary]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=secondary]){--mds-button-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=secondary]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-button-border-color-rgb:var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))}:host([variant=secondary]):host([tone=weak]){--mds-button-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-button-border-color-rgb:var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));fill:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=secondary]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226))));--mds-button-border-color-rgb:var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226)))}:host([variant=secondary]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=secondary]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=secondary]):host([tone=text]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=secondary]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))))}:host([variant=secondary]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=ai]){--mds-button-background:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=ai]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))));--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242)))}:host([variant=ai]):host([tone=weak]){--mds-button-background:rgb(var(--magma-accent-ai-surface,var(--magma-tint-accent-ai-surface,var(--variant-ai-09,229 218 253))));--mds-button-border-color-rgb:var(--magma-accent-ai-surface,var(--magma-tint-accent-ai-surface,var(--variant-ai-09,229 218 253)));--mds-button-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))));fill:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))))}:host([variant=ai]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-accent-ai-surface-hover,var(--magma-tint-accent-ai-surface-hover,var(--variant-ai-08,219 205 252))));--mds-button-border-color-rgb:var(--magma-accent-ai-surface-hover,var(--magma-tint-accent-ai-surface-hover,var(--variant-ai-08,219 205 252)))}:host([variant=ai]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-button-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))))}:host([variant=ai]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-button-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))))}:host([variant=ai]):host([tone=text]){--mds-button-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))))}:host([variant=ai]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-button-background:rgb(var(--magma-accent-ai-surface-subtle,var(--magma-tint-accent-ai-surface-subtle,var(--variant-ai-10,240 234 254))))}:host([variant=ai]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))))}:host([variant=info]){--mds-button-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-button-border-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164));--mds-button-color:rgb(var(--magma-info-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=info]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-info-emphasis-hover,var(--status-info-03,0 94 137)));--mds-button-border-color-rgb:var(--magma-info-emphasis-hover,var(--status-info-03,0 94 137))}:host([variant=info]):host([tone=weak]){--mds-button-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-button-border-color-rgb:var(--magma-info-wash-base,var(--status-info-09,193 230 246));--mds-button-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)));fill:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)))}:host([variant=info]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-info-wash-strong,var(--status-info-08,168 219 242)));--mds-button-border-color-rgb:var(--magma-info-wash-strong,var(--status-info-08,168 219 242));--mds-button-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164));--mds-button-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)))}:host([variant=info]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164));--mds-button-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)))}:host([variant=info]):host([tone=text]){--mds-button-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)))}:host([variant=info]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)));--mds-button-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)))}:host([variant=info]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=success]){--mds-button-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-button-border-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57));--mds-button-color:rgb(var(--magma-success-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=success]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-success-emphasis-hover,var(--status-success-03,0 102 32)));--mds-button-border-color-rgb:var(--magma-success-emphasis-hover,var(--status-success-03,0 102 32))}:host([variant=success]):host([tone=weak]){--mds-button-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-button-border-color-rgb:var(--magma-success-wash-base,var(--status-success-09,191 233 205));--mds-button-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)));fill:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)))}:host([variant=success]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-success-wash-strong,var(--status-success-08,165 225 186)));--mds-button-border-color-rgb:var(--magma-success-wash-strong,var(--status-success-08,165 225 186));--mds-button-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57));--mds-button-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)))}:host([variant=success]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57));--mds-button-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)))}:host([variant=success]):host([tone=text]){--mds-button-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)))}:host([variant=success]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-button-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)))}:host([variant=success]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning]){--mds-button-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-button-border-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0));--mds-button-color:rgb(var(--magma-warning-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=warning]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-warning-emphasis-hover,var(--status-warning-03,113 85 0)));--mds-button-border-color-rgb:var(--magma-warning-emphasis-hover,var(--status-warning-03,113 85 0))}:host([variant=warning]):host([tone=weak]){--mds-button-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-button-border-color-rgb:var(--magma-warning-wash-base,var(--status-warning-09,255 220 117));--mds-button-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)));fill:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)))}:host([variant=warning]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-warning-wash-strong,var(--status-warning-08,255 205 57)));--mds-button-border-color-rgb:var(--magma-warning-wash-strong,var(--status-warning-08,255 205 57));--mds-button-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0));--mds-button-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)))}:host([variant=warning]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0));--mds-button-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)))}:host([variant=warning]):host([tone=text]){--mds-button-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)))}:host([variant=warning]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)));--mds-button-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)))}:host([variant=warning]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=error]){--mds-button-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-button-border-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65));--mds-button-color:rgb(var(--magma-danger-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=error]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-danger-emphasis-hover,var(--status-error-03,165 33 40)));--mds-button-border-color-rgb:var(--magma-danger-emphasis-hover,var(--status-error-03,165 33 40))}:host([variant=error]):host([tone=weak]){--mds-button-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-button-border-color-rgb:var(--magma-danger-wash-base,var(--status-error-09,255 214 211));--mds-button-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)));fill:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)))}:host([variant=error]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-danger-wash-strong,var(--status-error-08,254 198 194)));--mds-button-border-color-rgb:var(--magma-danger-wash-strong,var(--status-error-08,254 198 194));--mds-button-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65));--mds-button-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)))}:host([variant=error]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65));--mds-button-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)))}:host([variant=error]):host([tone=text]){--mds-button-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)))}:host([variant=error]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-button-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)))}:host([variant=error]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=light]){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255);--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=light]):host([tone=strong]:hover){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255)}:host([variant=light]):host([tone=weak]){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255);--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));fill:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=light]):host([tone=weak]:hover){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255);--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=light]):host([tone=outline]),:host([variant=light]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=light]):host([tone=text]){--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=light]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-button-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))))}:host([variant=light]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=dark]){--mds-button-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)));--mds-button-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=dark]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))));--mds-button-border-color-rgb:var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73)))}:host([variant=dark]):host([tone=weak]){--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-button-border-color-rgb:var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)));--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));fill:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-button-border-color-rgb:var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140)));--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)));--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=dark]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)));--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=text]){--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-button-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))}:host([variant=dark]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=google]),:host([variant=google][tone]){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-hover-opacity:.5;--mds-button-border-hover-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-opacity:.2;--mds-button-border-width:calc(var(--spacing,.0025rem)*25);--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-button-border-color-rgb:var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)));-webkit-box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0));box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0))}:host([variant=google]:hover),:host([variant=google][tone]:hover){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-width:var(--mds-button-border-hover-width);--mds-button-border-opacity:var(--mds-button-border-hover-opacity,.75)}:host([variant=apple]) .icon{transform:translateY(-5%)}:host([variant=apple]),:host([variant=apple][tone]){--mds-button-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-button-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-button-border-width:0;--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))}:host([variant=apple]:hover),:host([variant=apple][tone]:hover){--mds-button-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-button-border-opacity:1}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google]),:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google][tone]){--mds-button-border-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-opacity:.3}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google]:hover),:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google][tone]:hover){--mds-button-border-opacity:.5}:host([tone=outline]),:host([tone=text]){--mds-button-background:#0000}:host([tone=box]),:host([tone=strong]),:host([tone=weak]){--mds-button-border-default-opacity:1;--mds-button-border-width:0;--mds-button-border-opacity:var(--mds-button-border-default-opacity,0)}:host([tone=strong]:hover),:host([tone=strong][active]){--mds-button-border-width:var(--mds-button-border-tone-strong-hover-width,calc(var(--spacing,.0025rem)*50))}:host([tone=weak]:hover),:host([tone=weak][active]){--mds-button-border-width:var(--mds-button-border-tone-weak-hover-width,calc(var(--spacing,.0025rem)*50))}:host([tone=outline]){--mds-button-border-opacity:var(--mds-button-border-tone-outline-opacity)}:host([tone=outline]:hover),:host([tone=outline][active]){--mds-button-background:#0000;--mds-button-border-width:var(--mds-button-border-tone-outline-hover-width,3px);--mds-button-border-opacity:var(--mds-button-border-hover-opacity,.75)}:host([tone=box]){-webkit-box-shadow:var(--shadow-box-solid-strong,#0006 0 2px 4px,#0000004d 0 7px 13px -3px,#00000059 0 -3px 0 inset,#ffffff1a 0 -8px 10px inset,#ffffff26 0 -4px 0 inset);box-shadow:var(--shadow-box-solid-strong,#0006 0 2px 4px,#0000004d 0 7px 13px -3px,#00000059 0 -3px 0 inset,#ffffff1a 0 -8px 10px inset,#ffffff26 0 -4px 0 inset);transition-property:background-color,border-color,box-shadow,color,outline,filter,outline-offset,transform}:host([tone=box]):host(:hover){filter:brightness(1.1)}: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-button-transition-duration:0s}@property --tw-font-weight{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google]),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google][tone]){--mds-button-border-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-opacity:.3}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google]:hover),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google][tone]:hover){--mds-button-border-opacity:.5}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-button-transition-duration:0s}}'};var MdsButton=/** @class */function(){function t(t){var a=this;registerInstance(this,t);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.km=new KeyboardManager;
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,a,r,e){function n(t){return t instanceof r?t:new r((function(a){a(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{m(e.next(t))}catch(t){o(t)}}function i(t){try{m(e["throw"](t))}catch(t){o(t)}}function m(t){t.done?r(t.value):n(t.value).then(s,i)}m((e=e.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,n,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=i(0),s["throw"]=i(1),s["return"]=i(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(t){return function(a){return m([t,a])}}function m(i){if(e)throw new TypeError("Generator is already executing.");while(s&&(s=0,i[0]&&(r=0)),r)try{if(e=1,n&&(o=i[0]&2?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;if(n=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:r.label++;return{value:i[1],done:false};case 5:r.label++;n=i[1];i=[0];continue;case 7:i=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){r.label=i[1];break}if(i[0]===6&&r.label<o[1]){r.label=o[1];o=i;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(i);break}if(o[2])r.ops.pop();r.trys.pop();continue}i=a.call(t,r)}catch(t){i=[6,t];n=0}finally{e=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{K as KeyboardManager}from"./keyboard-manager-KRu9I7dw.js";import{u as unslugName,s as setAttributeIfEmpty}from"./aria-CSCy6TMW.js";import{r as readSlottedLabel,s as sanitizeLabel}from"./slot-C0o_l0td.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";import{r as requestSubmitAs}from"./form-wI0alRSO.js";import{NavigationService,IconsSetService}from"./index.js";var buttonSizeTypographyVariant={sm:"action",md:"action",lg:"h6",xl:"h5"};var BASE64_SVG_ICON="data:image/svg+xml;base64,";var MARKUP_SVG_ICON="<svg ";var isIconFormatIsBase64=function(t){if(!t){return false}return t.startsWith(BASE64_SVG_ICON)};var isIconFormatIsSVG=function(t){if(!t){return false}return t.startsWith(MARKUP_SVG_ICON)};var mdiApple='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-apple" viewBox="0 0 24 24"><path d="M18.71,19.5C17.88,20.74 17,21.95 15.66,21.97C14.32,22 13.89,21.18 12.37,21.18C10.84,21.18 10.37,21.95 9.1,22C7.79,22.05 6.8,20.68 5.96,19.47C4.25,17 2.94,12.45 4.7,9.39C5.57,7.87 7.13,6.91 8.82,6.88C10.1,6.86 11.32,7.75 12.11,7.75C12.89,7.75 14.37,6.68 15.92,6.84C16.57,6.87 18.39,7.1 19.56,8.82C19.47,8.88 17.39,10.1 17.41,12.63C17.44,15.65 20.06,16.66 20.09,16.67C20.06,16.74 19.67,18.11 18.71,19.5M13,3.5C13.73,2.67 14.94,2.04 15.94,2C16.07,3.17 15.6,4.35 14.9,5.19C14.21,6.04 13.07,6.7 11.95,6.61C11.8,5.46 12.36,4.26 13,3.5Z" /></svg>';var logoGoogle='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" xmlnsXlink="http://www.w3.org/1999/xlink"><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"></path><path fill="none" d="M0 0h48v48H0z"></path></svg>\n';var mdsButtonCss=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-icon,mds-spinner,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-button-await-duration:.725s;--mds-button-transition-duration:var(--duration-300,.3s);--private-button-transition-duration:var(--mds-button-transition-duration);--mds-button-background:rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));--mds-button-border-color-rgb:var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163)));--mds-button-border-hover-opacity:.75;--mds-button-border-high-contrast-hover-width:3px;--mds-button-border-high-contrast-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-tone-outline-hover-width:3px;--mds-button-border-tone-outline-opacity:.3;--mds-button-border-tone-strong-hover-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-tone-weak-hover-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-default-opacity:0;--mds-button-border-opacity:0;--mds-button-border-width:calc(var(--spacing,.0025rem)*50);--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-button-gap:calc(var(--spacing,.0025rem)*200);--mds-button-line-clamp:1;--mds-button-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:var(--mds-button-background,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));border-radius:var(--mds-button-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));-webkit-box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0));box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0));box-sizing:border-box;color:var(--mds-button-color,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));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(--mds-button-corner-shape,var(--magma-corner-shape,squircle));align-items:center;align-self:flex-start;cursor:pointer;display:inline-flex;fill:currentColor;gap:var(--mds-button-gap,calc(var(--spacing,.0025rem)*200));justify-content:center;justify-self:flex-start;min-height:calc(var(--spacing,.0025rem)*900);min-width:calc(var(--spacing,.0025rem)*900);padding:0 calc(var(--spacing,.0025rem)*400);position:relative;-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);transition-property:background-color,border-color,box-shadow,color,outline,outline-offset,transform;-webkit-transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));-webkit-user-select:none;user-select:none}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running;z-index:10}.link{border-radius:inherit;corner-shape:inherit;inset:0;outline:none;position:absolute;z-index:1}.text{--mds-text-line-clamp:var(--mds-button-line-clamp,1)}.text:first-letter{text-transform:uppercase}.icon{align-items:center;display:inline-flex;fill:inherit;flex-shrink:0;justify-content:center;pointer-events:none;transition-property:fill;-webkit-transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955));transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955))}.await,.icon{-webkit-transition-duration:var(--private-button-transition-duration);transition-duration:var(--private-button-transition-duration)}.await{display:none;margin-right:calc(calc(-1 * var(--mds-button-gap,calc(var(--spacing,.0025rem) * 200))) - calc(var(--spacing,.0025rem) * 600));transform:scale(0);transition-behavior:allow-discrete;transition-property:display,margin-right,opacity,transform,width;-webkit-transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955));transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955))}.await,.spinner{height:calc(var(--spacing,.0025rem)*600);width:calc(var(--spacing,.0025rem)*600)}.spinner{--mds-spinner-duration:var(--mds-button-await-duration,.725s);color:currentColor}:is(:host(:not([await])),:host([await=false])) .spinner{-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);-webkit-transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94))}:host([await]:not([await=false])) .await{display:flex;margin-right:0;opacity:1;transform:scale(1)}@starting-style{:host([await]:not([await=false])) .await{margin-right:calc(calc(-1 * var(--mds-button-gap,calc(var(--spacing,.0025rem) * 200))) - calc(var(--spacing,.0025rem) * 600));opacity:0;transform:scale(0)}}:host([await]:not([await=false])){pointer-events:none}:host([icon]:not([label])[await]:not([await=false])) .icon{display:none}:host(:disabled:not([disabled=false])),:host([disabled]:not([disabled=false])){opacity:.5;pointer-events:none}:host([size=sm]){--mds-button-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));min-height:calc(var(--spacing,.0025rem)*700);min-width:calc(var(--spacing,.0025rem)*700);padding:0 calc(var(--spacing,.0025rem)*300)}:host([size=sm]) .icon{height:calc(var(--spacing,.0025rem)*400);width:calc(var(--spacing,.0025rem)*400)}:host([size=sm]) .text{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}:host([size=sm]):host([await]:not([await=false])) .await{transform:scale(.75)}:host([size=md]){min-height:calc(var(--spacing,.0025rem)*900);min-width:calc(var(--spacing,.0025rem)*900);padding-left:calc(var(--spacing,.0025rem)*400);padding-right:calc(var(--spacing,.0025rem)*400)}:host([size=md]):host([icon][icon-position=left]){padding-left:calc(var(--spacing,.0025rem)*300)}:host([size=md]):host([icon][icon-position=right]){padding-right:calc(var(--spacing,.0025rem)*300)}:host([size=lg]){min-height:calc(var(--spacing,.0025rem)*1200);min-width:calc(var(--spacing,.0025rem)*1200);padding-left:calc(var(--spacing,.0025rem)*500);padding-right:calc(var(--spacing,.0025rem)*500)}:host([size=lg]):host([icon][icon-position=left]){padding-left:calc(var(--spacing,.0025rem)*400)}:host([size=lg]):host([icon][icon-position=right]){padding-right:calc(var(--spacing,.0025rem)*400)}:host([size=xl]){min-height:calc(var(--spacing,.0025rem)*1300);min-width:calc(var(--spacing,.0025rem)*1300);padding-left:calc(var(--spacing,.0025rem)*600);padding-right:calc(var(--spacing,.0025rem)*600)}:host([size=xl]) .icon{height:calc(var(--spacing,.0025rem)*800);width:calc(var(--spacing,.0025rem)*800)}:host([size][icon][icon-position]:not([label])){aspect-ratio:1;padding:0}:host(:not([label])) .text,:host([label=""]) .text{display:none}:host([variant=primary]){--mds-button-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=primary]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-button-border-color-rgb:var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))}:host([variant=primary]):host([tone=weak]){--mds-button-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-button-border-color-rgb:var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));fill:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=primary]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226))));--mds-button-border-color-rgb:var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226)))}:host([variant=primary]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=primary]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=primary]):host([tone=text]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=primary]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))))}:host([variant=primary]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=secondary]){--mds-button-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=secondary]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-button-border-color-rgb:var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))}:host([variant=secondary]):host([tone=weak]){--mds-button-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-button-border-color-rgb:var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));fill:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=secondary]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226))));--mds-button-border-color-rgb:var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226)))}:host([variant=secondary]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))))}:host([variant=secondary]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=secondary]):host([tone=text]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=secondary]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-button-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))))}:host([variant=secondary]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([variant=ai]){--mds-button-background:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=ai]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))));--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242)))}:host([variant=ai]):host([tone=weak]){--mds-button-background:rgb(var(--magma-accent-ai-surface,var(--magma-tint-accent-ai-surface,var(--variant-ai-09,229 218 253))));--mds-button-border-color-rgb:var(--magma-accent-ai-surface,var(--magma-tint-accent-ai-surface,var(--variant-ai-09,229 218 253)));--mds-button-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))));fill:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))))}:host([variant=ai]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-accent-ai-surface-hover,var(--magma-tint-accent-ai-surface-hover,var(--variant-ai-08,219 205 252))));--mds-button-border-color-rgb:var(--magma-accent-ai-surface-hover,var(--magma-tint-accent-ai-surface-hover,var(--variant-ai-08,219 205 252)))}:host([variant=ai]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-button-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--magma-tint-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242))))}:host([variant=ai]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-button-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))))}:host([variant=ai]):host([tone=text]){--mds-button-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))))}:host([variant=ai]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-button-background:rgb(var(--magma-accent-ai-surface-subtle,var(--magma-tint-accent-ai-surface-subtle,var(--variant-ai-10,240 234 254))))}:host([variant=ai]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))))}:host([variant=info]){--mds-button-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-button-border-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164));--mds-button-color:rgb(var(--magma-info-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=info]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-info-emphasis-hover,var(--status-info-03,0 94 137)));--mds-button-border-color-rgb:var(--magma-info-emphasis-hover,var(--status-info-03,0 94 137))}:host([variant=info]):host([tone=weak]){--mds-button-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-button-border-color-rgb:var(--magma-info-wash-base,var(--status-info-09,193 230 246));--mds-button-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)));fill:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)))}:host([variant=info]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-info-wash-strong,var(--status-info-08,168 219 242)));--mds-button-border-color-rgb:var(--magma-info-wash-strong,var(--status-info-08,168 219 242));--mds-button-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164));--mds-button-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)))}:host([variant=info]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164));--mds-button-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)))}:host([variant=info]):host([tone=text]){--mds-button-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)))}:host([variant=info]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)));--mds-button-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)))}:host([variant=info]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=success]){--mds-button-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-button-border-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57));--mds-button-color:rgb(var(--magma-success-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=success]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-success-emphasis-hover,var(--status-success-03,0 102 32)));--mds-button-border-color-rgb:var(--magma-success-emphasis-hover,var(--status-success-03,0 102 32))}:host([variant=success]):host([tone=weak]){--mds-button-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-button-border-color-rgb:var(--magma-success-wash-base,var(--status-success-09,191 233 205));--mds-button-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)));fill:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)))}:host([variant=success]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-success-wash-strong,var(--status-success-08,165 225 186)));--mds-button-border-color-rgb:var(--magma-success-wash-strong,var(--status-success-08,165 225 186));--mds-button-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57));--mds-button-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)))}:host([variant=success]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57));--mds-button-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)))}:host([variant=success]):host([tone=text]){--mds-button-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)))}:host([variant=success]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-button-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)))}:host([variant=success]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning]){--mds-button-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-button-border-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0));--mds-button-color:rgb(var(--magma-warning-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=warning]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-warning-emphasis-hover,var(--status-warning-03,113 85 0)));--mds-button-border-color-rgb:var(--magma-warning-emphasis-hover,var(--status-warning-03,113 85 0))}:host([variant=warning]):host([tone=weak]){--mds-button-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-button-border-color-rgb:var(--magma-warning-wash-base,var(--status-warning-09,255 220 117));--mds-button-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)));fill:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)))}:host([variant=warning]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-warning-wash-strong,var(--status-warning-08,255 205 57)));--mds-button-border-color-rgb:var(--magma-warning-wash-strong,var(--status-warning-08,255 205 57));--mds-button-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0));--mds-button-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)))}:host([variant=warning]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0));--mds-button-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)))}:host([variant=warning]):host([tone=text]){--mds-button-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)))}:host([variant=warning]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)));--mds-button-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)))}:host([variant=warning]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=error]){--mds-button-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-button-border-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65));--mds-button-color:rgb(var(--magma-danger-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=error]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-danger-emphasis-hover,var(--status-error-03,165 33 40)));--mds-button-border-color-rgb:var(--magma-danger-emphasis-hover,var(--status-error-03,165 33 40))}:host([variant=error]):host([tone=weak]){--mds-button-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-button-border-color-rgb:var(--magma-danger-wash-base,var(--status-error-09,255 214 211));--mds-button-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)));fill:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)))}:host([variant=error]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-danger-wash-strong,var(--status-error-08,254 198 194)));--mds-button-border-color-rgb:var(--magma-danger-wash-strong,var(--status-error-08,254 198 194));--mds-button-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65));--mds-button-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)))}:host([variant=error]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65));--mds-button-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)))}:host([variant=error]):host([tone=text]){--mds-button-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)))}:host([variant=error]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-button-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)))}:host([variant=error]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=light]){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255);--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=light]):host([tone=strong]:hover){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255)}:host([variant=light]):host([tone=weak]){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255);--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));fill:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=light]):host([tone=weak]:hover){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-color-rgb:var(--tone-neutral-seed,255 255 255);--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=light]):host([tone=outline]),:host([variant=light]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=light]):host([tone=text]){--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=light]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-button-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))))}:host([variant=light]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=dark]){--mds-button-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)));--mds-button-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=dark]):host([tone=strong]:hover){--mds-button-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))));--mds-button-border-color-rgb:var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73)))}:host([variant=dark]):host([tone=weak]){--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-button-border-color-rgb:var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)));--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));fill:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=weak]:hover){--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-button-border-color-rgb:var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140)));--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=outline]){--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)));--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=dark]):host([tone=outline]:hover){--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)));--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=text]){--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=dark]):host([tone=text]:hover){--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-button-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))}:host([variant=dark]):host([tone=text][active]){--mds-button-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([variant=google]),:host([variant=google][tone]){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-hover-opacity:.5;--mds-button-border-hover-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-opacity:.2;--mds-button-border-width:calc(var(--spacing,.0025rem)*25);--mds-button-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-button-border-color-rgb:var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)));-webkit-box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0));box-shadow:0 0 0 var(--mds-button-border-width,calc(var(--spacing,.0025rem)*50)) rgb(var(--mds-button-border-color-rgb,var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))/var(--mds-button-border-opacity,0))}:host([variant=google]:hover),:host([variant=google][tone]:hover){--mds-button-background:rgb(var(--tone-neutral-seed,255 255 255));--mds-button-border-width:var(--mds-button-border-hover-width);--mds-button-border-opacity:var(--mds-button-border-hover-opacity,.75)}:host([variant=apple]) .icon{transform:translateY(-5%)}:host([variant=apple]),:host([variant=apple][tone]){--mds-button-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-button-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-button-border-width:0;--mds-button-border-color-rgb:var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))}:host([variant=apple]:hover),:host([variant=apple][tone]:hover){--mds-button-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-button-border-opacity:1}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google]),:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google][tone]){--mds-button-border-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-opacity:.3}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google]:hover),:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=google][tone]:hover){--mds-button-border-opacity:.5}:host([tone=outline]),:host([tone=text]){--mds-button-background:#0000}:host([tone=box]),:host([tone=strong]),:host([tone=weak]){--mds-button-border-default-opacity:1;--mds-button-border-width:0;--mds-button-border-opacity:var(--mds-button-border-default-opacity,0)}:host([tone=strong]:hover),:host([tone=strong][active]){--mds-button-border-width:var(--mds-button-border-tone-strong-hover-width,calc(var(--spacing,.0025rem)*50))}:host([tone=weak]:hover),:host([tone=weak][active]){--mds-button-border-width:var(--mds-button-border-tone-weak-hover-width,calc(var(--spacing,.0025rem)*50))}:host([tone=outline]){--mds-button-border-opacity:var(--mds-button-border-tone-outline-opacity)}:host([tone=outline]:hover),:host([tone=outline][active]){--mds-button-background:#0000;--mds-button-border-width:var(--mds-button-border-tone-outline-hover-width,3px);--mds-button-border-opacity:var(--mds-button-border-hover-opacity,.75)}:host([tone=box]){-webkit-box-shadow:var(--shadow-box-solid-strong,#0006 0 2px 4px,#0000004d 0 7px 13px -3px,#00000059 0 -3px 0 inset,#ffffff1a 0 -8px 10px inset,#ffffff26 0 -4px 0 inset);box-shadow:var(--shadow-box-solid-strong,#0006 0 2px 4px,#0000004d 0 7px 13px -3px,#00000059 0 -3px 0 inset,#ffffff1a 0 -8px 10px inset,#ffffff26 0 -4px 0 inset);transition-property:background-color,border-color,box-shadow,color,outline,filter,outline-offset,transform}:host([tone=box]):host(:hover){filter:brightness(1.1)}: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-button-transition-duration:0s}@property --tw-font-weight{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google]),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google][tone]){--mds-button-border-width:calc(var(--spacing,.0025rem)*50);--mds-button-border-opacity:.3}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google]:hover),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=google][tone]:hover){--mds-button-border-opacity:.5}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-button-transition-duration:0s}}'};var MdsButton=/** @class */function(){function t(t){var a=this;registerInstance(this,t);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.km=new KeyboardManager;
|
|
2
2
|
/**
|
|
3
3
|
* Specifies if the text is animated when it is rendered
|
|
4
4
|
*/this.animation="none";
|
|
@@ -22,7 +22,23 @@ var __awaiter=this&&this.__awaiter||function(t,a,r,e){function n(t){return t ins
|
|
|
22
22
|
*/this.target="self";
|
|
23
23
|
/**
|
|
24
24
|
* Specifies if the text shoud be truncated or should behave as a normal text
|
|
25
|
-
*/this.truncate="word";this.handleRequestSubmitForm=function(t){t.preventDefault();if(a.internals.form)requestSubmitAs(a.internals.form,a.name,a.value)};this.handleReset=function(t){var r;t.preventDefault();(r=a.internals.form)===null||r===void 0?void 0:r.reset()};this.mouseDown=function(){a.active=true};this.mouseUp=function(){a.active=false};this.
|
|
25
|
+
*/this.truncate="word";this.handleRequestSubmitForm=function(t){t.preventDefault();if(a.internals.form)requestSubmitAs(a.internals.form,a.name,a.value)};this.handleReset=function(t){var r;t.preventDefault();(r=a.internals.form)===null||r===void 0?void 0:r.reset()};this.mouseDown=function(){a.active=true};this.mouseUp=function(){a.active=false};this.isLink=function(){var t;return((t=a.href)!==null&&t!==void 0?t:"")!==""};
|
|
26
|
+
// a link the browser opens in a new tab or window: asked by the button, or by the user
|
|
27
|
+
this.opensElsewhere=function(t){return a.target==="blank"||t.ctrlKey||t.metaKey||t.shiftKey};
|
|
28
|
+
/**
|
|
29
|
+
* A click on the anchor is the browser's to follow, unless the router registered with
|
|
30
|
+
* `NavigationService` takes it over: then the navigation is cancelled here, before the page
|
|
31
|
+
* loads, and the router renders the route.
|
|
32
|
+
*
|
|
33
|
+
* A click that did not land on the anchor comes from the keyboard, a script or an assistive
|
|
34
|
+
* technology: the host follows the link as the anchor would, once every listener on the page
|
|
35
|
+
* had its say. The timeout is what lets a listener added after this one, or delegated to the
|
|
36
|
+
* document by a framework, cancel the navigation: a microtask could run between two listeners.
|
|
37
|
+
*/this.handleLinkClick=function(t){var r;if(!a.isLink()||a.disabled||a.await)return;var e=(r=a.href)!==null&&r!==void 0?r:"";if(a.anchor&&t.composedPath().includes(a.anchor)){if(a.opensElsewhere(t)||!NavigationService.canHandle(e,t))return;t.preventDefault();a.route(e,t);return}setTimeout((function(){if(!t.defaultPrevented)a.follow(t)}))};this.follow=function(t){var r;if(typeof window==="undefined")return;var e=(r=a.href)!==null&&r!==void 0?r:"";if(a.opensElsewhere(t)){window.open(e,"_blank");return}if(NavigationService.canHandle(e,t)){a.route(e,t);return}window.location.assign(e)};
|
|
38
|
+
// the registered router renders the route; a link it declines is loaded as the browser would
|
|
39
|
+
this.route=function(t,a){if(!NavigationService.handle(t,a))window.location.assign(t)};
|
|
40
|
+
// the host is the only tab stop: a click still focuses the anchor, which hands the focus back
|
|
41
|
+
this.focusHost=function(){a.host.focus()};this.onSlotChangeHandler=function(){var t;
|
|
26
42
|
/* this should be removed in the future once slotted text is no longer used, use the label property instead */if(((t=a.label)!==null&&t!==void 0?t:"")!=="")return;a.label=readSlottedLabel(a.host)}}t.prototype.disabledChanged=function(t){if(t){this.km.attachClickBehavior();return}this.km.detachClickBehavior();
|
|
27
43
|
/**
|
|
28
44
|
* When the component is disabled="false" it won't work with onClick events
|
|
@@ -30,8 +46,14 @@ var __awaiter=this&&this.__awaiter||function(t,a,r,e){function n(t){return t ins
|
|
|
30
46
|
* https://github.com/ionic-team/stencil/issues/5461
|
|
31
47
|
*/this.disabled=undefined};t.prototype.labelChanged=function(t){this.label=sanitizeLabel(t)};t.prototype.awaitChanged=function(t){this.host.setAttribute("aria-busy",(!!t).toString());if(t){this.km.attachClickBehavior();return}this.km.detachClickBehavior()};t.prototype.handleTypeChange=function(t){
|
|
32
48
|
// If not participating we don't do anything
|
|
33
|
-
if(!this.internals.form)return;if(t==="submit"){this.host.removeEventListener("click",this.handleReset);this.host.addEventListener("click",this.handleRequestSubmitForm)}else if(t==="reset"){this.host.removeEventListener("click",this.handleRequestSubmitForm);this.host.addEventListener("click",this.handleReset)}else{this.host.removeEventListener("click",this.handleRequestSubmitForm);this.host.removeEventListener("click",this.handleReset)}};
|
|
34
|
-
|
|
49
|
+
if(!this.internals.form)return;if(t==="submit"){this.host.removeEventListener("click",this.handleReset);this.host.addEventListener("click",this.handleRequestSubmitForm)}else if(t==="reset"){this.host.removeEventListener("click",this.handleRequestSubmitForm);this.host.addEventListener("click",this.handleReset)}else{this.host.removeEventListener("click",this.handleRequestSubmitForm);this.host.removeEventListener("click",this.handleReset)}};
|
|
50
|
+
// the role tells the assistive technology what the host is; one set by the caller
|
|
51
|
+
// (mds-tab-item names its button a tab) is theirs and stays
|
|
52
|
+
t.prototype.handleHrefChange=function(){var t;var a=this.host.getAttribute("role");if(a===null||a==="button"||a==="link"){this.host.setAttribute("role",this.isLink()?"link":"button")}this.handleTypeChange(this.isLink()?"link":(t=this.type)!==null&&t!==void 0?t:"")};t.prototype.handleVariantChange=function(t){if(t==="google"){this.icon=logoGoogle;return}if(t==="apple"){this.icon=mdiApple;return}};t.prototype.componentWillLoad=function(){this.handleVariantChange(this.variant);if(this.isLink())return;if(this.internals.form){if(this.type==="submit"){this.host.addEventListener("click",this.handleRequestSubmitForm)}else if(this.type==="reset"){this.host.addEventListener("click",this.handleReset)}}};t.prototype.componentDidLoad=function(){var t;this.km.addElement(this.host);if(!this.await){this.km.attachClickBehavior()}this.host.setAttribute("aria-busy",this.await?"true":"false");if(this.autoFocus){this.host.focus()}if(isIconFormatIsBase64(this.icon)){return}if(isIconFormatIsSVG(this.icon)){return}if(this.label===""){this.label=undefined}if(((t=this.label)!==null&&t!==void 0?t:"")===""&&this.icon!=null&&this.icon!==""){var a=unslugName(this.icon);if(!this.host.hasAttribute("aria-label")){setAttributeIfEmpty(this.host,"title",a)}if(!this.host.hasAttribute("title")){setAttributeIfEmpty(this.host,"aria-label",a)}}setAttributeIfEmpty(this.host,"role",this.isLink()?"link":"button")};t.prototype.handleAwaitChange=function(t){if(t===false){this.await=undefined;this.km.detachClickBehavior();return}this.km.attachClickBehavior()};t.prototype.connectedCallback=function(){if(!this.disabled)this.host.removeAttribute("disabled")};t.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};t.prototype.render=function(){var t=this;var a;this.typography=(a=buttonSizeTypographyVariant[this.size])!==null&&a!==void 0?a:buttonSizeTypographyVariant.md;return h(Host,{key:"10a34bcfd7dab93716396ed8a3b3f13192cffea3",onClick:this.handleLinkClick,onMouseDown:this.mouseDown,onMouseUp:this.mouseUp,onMouseOut:this.mouseUp,tabindex:"0","pref-animation":preferenceStore.state.animation,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},this.isLink()&&
|
|
53
|
+
// the link under the pointer, over the whole button: the host keeps the focus, the
|
|
54
|
+
// role and the name, so the anchor is out of the tab order and hidden from the
|
|
55
|
+
// assistive technology
|
|
56
|
+
h("a",{key:"a34fb61fd7860d7d24be936824f1d4f2dc7f246e","aria-hidden":"true",class:"link",href:this.href,onFocus:this.focusHost,ref:function(a){return t.anchor=a},tabindex:"-1",target:this.target==="blank"?"_blank":undefined}),h("div",{key:"e551d9e831c62fbc449f1bab19cce2216fa58e90",class:"await"},h("mds-spinner",{key:"c2c37adb259d435b2ccbe26c46524e07e5b958a5",class:"spinner",running:this.await})),this.icon&&this.iconPosition==="left"&&h("mds-icon",{key:"e4c410d632a98f4660c33e97490391623c74bf12","aria-hidden":"true",class:"icon",name:this.icon,part:"icon"}),h("mds-text",{key:"28f23056bbcdba2decaa6e1e8f38d6cb93fa9088",class:"text",part:"label",tag:"span",typography:this.typography,truncate:this.truncate,animation:this.animation,text:this.label},this.label||h("slot",{key:"753363db487d6a31a7a26590bed082322cd49c4f",onSlotchange:this.onSlotChangeHandler})),h("slot",{key:"f8ae298fbdedb9f3669b2c13005300b1107b9d84",name:"notification"}),this.icon&&this.iconPosition==="right"&&h("mds-icon",{key:"4e52d3ea0280497a0eefc0a2486f94e17ecf9824","aria-hidden":"true",class:"icon",name:this.icon,part:"icon"}))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:[{disabledChanged:0}],label:[{labelChanged:0}],await:[{awaitChanged:0},{handleAwaitChange:0}],type:[{handleTypeChange:0}],href:[{handleHrefChange:0}],variant:[{handleVariantChange:0}]}},enumerable:false,configurable:true});return t}();MdsButton.style=mdsButtonCss();var mdsIconCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{align-items:center;aspect-ratio:var(--aspect-square,1/1);display:inline-flex;justify-content:center;width:calc(var(--spacing,.0025rem)*600)}.icon{align-items:center;display:inline-flex;font-style:normal;justify-content:center;width:100%}.icon svg{height:auto;width:100%}"};var MdsIcon=/** @class */function(){function t(t){var a=this;registerInstance(this,t);
|
|
35
57
|
// Each update supersedes the ones still loading: only the latest one sets the svg
|
|
36
58
|
this.lastUpdate=0;this.wasDisconnected=false;this.onSvgPathUpdate=function(){a.updateIcon()};this.convertBase64ToSvg=function(){var t=a.name.replace(BASE64_SVG_ICON,"").replace(/=/i,"");return atob(t)}}t.prototype.connectedCallback=function(){IconsSetService.registerListener(this.onSvgPathUpdate);
|
|
37
59
|
// the svg path may have changed while the icon was out of the page
|
|
@@ -41,7 +63,7 @@ if(this.wasDisconnected){this.wasDisconnected=false;this.updateIcon()}};t.protot
|
|
|
41
63
|
* @param svgPath path to the directory of svg files
|
|
42
64
|
*/t.prototype.setSvgPath=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){IconsSetService.setSvgPath(t);return[2/*return*/,Promise.resolve()]}))}))};t.prototype.updateIcon=function(){return __awaiter(this,void 0,void 0,(function(){var t,a,r;return __generator(this,(function(e){switch(e.label){case 0:a=++this.lastUpdate;
|
|
43
65
|
// `name` is undefined (or null) at runtime when the attribute is missing or removed
|
|
44
|
-
if(((t=this.name)!==null&&t!==void 0?t:"")===""){this.svgHTML="";return[2/*return*/,Promise.resolve()]}if(isIconFormatIsBase64(this.name)){this.svgHTML=this.convertBase64ToSvg();return[2/*return*/,Promise.resolve()]}if(isIconFormatIsSVG(this.name)){this.svgHTML=this.name;return[2/*return*/,Promise.resolve()]}return[4/*yield*/,IconsSetService.fetchSvg(this.name)];case 1:r=e.sent();if(a===this.lastUpdate){this.svgHTML=r}return[2/*return*/]}}))}))};t.prototype.render=function(){return h(Host,{key:"
|
|
66
|
+
if(((t=this.name)!==null&&t!==void 0?t:"")===""){this.svgHTML="";return[2/*return*/,Promise.resolve()]}if(isIconFormatIsBase64(this.name)){this.svgHTML=this.convertBase64ToSvg();return[2/*return*/,Promise.resolve()]}if(isIconFormatIsSVG(this.name)){this.svgHTML=this.name;return[2/*return*/,Promise.resolve()]}return[4/*yield*/,IconsSetService.fetchSvg(this.name)];case 1:r=e.sent();if(a===this.lastUpdate){this.svgHTML=r}return[2/*return*/]}}))}))};t.prototype.render=function(){return h(Host,{key:"2a77f179b2600ca971f3a9911665fd3293059520"},this.svgHTML&&h("i",{key:"7fc8525343e0f1c40e36f994cee12e5e8cba93ea","aria-hidden":"true",class:"icon",part:"svg",innerHTML:this.svgHTML}))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{name:[{updateIcon:0}]}},enumerable:false,configurable:true});return t}();MdsIcon.style=mdsIconCss();var awaitIcon='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path opacity="0.25" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-width="4"/>\n <path opacity="0.75" d="M10 2.2002C5.43552 3.12674 2 7.16224 2 12.0002C2 13.5118 2.3354 14.9451 2.93585 16.2297" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n</svg>\n';var mdsSpinnerCss=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{--mds-spinner-duration:.725s;--tw-ease:var(--ease-in-out-quart,cubic-bezier(.77,0,.175,1));align-items:center;color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));display:inline-flex;height:calc(var(--spacing,.0025rem)*1200);justify-content:center;opacity:0;overflow:hidden;transform:scale(0);-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:opacity,transform;transition-timing-function:var(--ease-in-out-quart,cubic-bezier(.77,0,.175,1));width:calc(var(--spacing,.0025rem)*1200)}:host([running]){--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));opacity:1;transform:scale(1);-webkit-transition-duration:var(--duration-700,.7s);transition-duration:var(--duration-700,.7s);transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.await-icon{animation:var(--animate-spin,spin 1s linear infinite);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));-webkit-animation-duration:var(--mds-spinner-duration,.725s);animation-duration:var(--mds-spinner-duration,.725s);animation-play-state:paused;aspect-ratio:var(--aspect-square,1/1);display:flex;flex-shrink:0;stroke:currentColor;-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:stroke;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));width:100%}.await-icon svg{width:100%}:host([running]) .await-icon{animation-play-state:running}:host([pref-contrast=more]){color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){:host{--mds-spinner-duration:8s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}}'};var MdsSpinner=/** @class */function(){function t(t){registerInstance(this,t);
|
|
45
67
|
/**
|
|
46
68
|
* Specifies if the animation is running or not, it's required for performance reasons
|
|
47
|
-
*/this.running=false}t.prototype.handleRunning=function(t){if(t===false){this.running=undefined}};t.prototype.render=function(){return h(Host,{key:"
|
|
69
|
+
*/this.running=false}t.prototype.handleRunning=function(t){if(t===false){this.running=undefined}};t.prototype.render=function(){return h(Host,{key:"87759c4a0ec1f2eb7b745da581e6a6fe20c8d28a","pref-contrast":preferenceStore.state.contrast},h("i",{key:"ba687bcea5509ff7fe5beb761e78884c6dd0c701",class:"await-icon",innerHTML:awaitIcon}))};Object.defineProperty(t,"watchers",{get:function(){return{running:[{handleRunning:0}]}},enumerable:false,configurable:true});return t}();MdsSpinner.style=mdsSpinnerCss();export{MdsButton as mds_button,MdsIcon as mds_icon,MdsSpinner as mds_spinner};
|
|
@@ -62,7 +62,7 @@ var __awaiter=this&&this.__awaiter||function(e,a,t,r){function n(e){return e ins
|
|
|
62
62
|
*/e.prototype.resolveHoverDate=function(){if(this.hoverDate!==null&&this.hoverDate!==""){return this.hoverDate}return this.internalHoverDate};e.prototype.updateDates=function(){var e=this;this.updateCalendar().then((function(){requestAnimationFrame((function(){return e.setDates()}))}))};e.prototype.updateCalendar=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){try{e=this.currentDate.startOf("week");this.weekdays=Array.from({length:7}).map((function(a,t){return e.setLocale(preferenceStore.state.language).plus({days:t}).toFormat("ccc")}));this.calculateWeekDaysInMonth();this.currentMonth=this.currentDate.setLocale(preferenceStore.state.language).toFormat("MMMM");this.currentMonthNumber=this.currentDate.month;this.currentYear=this.currentDate.toFormat("yyyy")}catch(e){console.error("Error while updating the calendar:",e)}return[2/*return*/]}))}))};e.prototype.setDates=function(){var e=this.host;if(e==null)return;var a=e.shadowRoot;if(!a)return;var t=a.querySelectorAll("mds-calendar-cell[selection], mds-calendar-cell[preview]");if(!this.singlePicker){var r=this.resolveHoverDate();if(r!==null&&(this.internalEndDate===null||this.internalEndDate==="")){this.setHoverSelection(t,a,r)}else{this.setRangeSelection(t,a)}}else{this.setSingleSelection(t,a)}};e.prototype.clearSelectionState=function(e){e.forEach((function(e){e.removeAttribute("selection");e.removeAttribute("preview")}))};e.prototype.setRangeSelection=function(e,a){var t=this;this.clearSelectionState(e);if(this.internalStartDate===null||this.internalStartDate==="")return;this.startDateTime=DateTime.fromISO(this.internalStartDate.toString());if(this.internalEndDate===null||this.internalEndDate===""){this.startDateIdentifier=this.startDateTime.toISODate();this.isFirstClick=false;var r=a.querySelectorAll("mds-calendar-cell");r.forEach((function(e){if(e.getAttribute("date")===t.startDateTime.toFormat("yyyy-MM-dd")){e.setAttribute("selection","single");e.setAttribute("preview","true")}}));return}this.endDateTime=DateTime.fromISO(this.internalEndDate.toString());this.startDateIdentifier=this.startDateTime.toISODate();this.endDateIdentifier=this.endDateTime.toISODate();var n=a.querySelectorAll("mds-calendar-cell");if(n!=null){var i=void 0;for(var s=0;s<n.length;s++){var l=n[s].getAttribute("date");if(l!==null&&l!==""){var c=DateTime.fromISO(l);if(c.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")){n[s].setAttribute("selection","start")}if(c.toFormat("yyyy-MM-dd")===this.endDateTime.toFormat("yyyy-MM-dd")){if(this.startDateTime.equals(this.endDateTime)){n[s].setAttribute("selection","single")}else{n[s].setAttribute("selection","end")}}i=c>this.startDateTime&&c<this.endDateTime;if(i){n[s].setAttribute("selection","middle")}}}}};e.prototype.setHoverSelection=function(e,a,t){this.clearSelectionState(e);if(this.internalStartDate===null||this.internalStartDate===""){this.setRangeSelection(e,a);return}var r=DateTime.fromISO(this.internalStartDate);var n=DateTime.fromISO(t);if(!r.isValid||!n.isValid){this.setRangeSelection(e,a);return}var i=r<=n;var s=Array.from(a.querySelectorAll("mds-calendar-cell"));s.forEach((function(e){var a=e.getAttribute("date");if(a===null||a==="")return;var t=DateTime.fromISO(a);if(!t.isValid)return;var s=i?t>=r&&t<=n:t>=n&&t<=r;if(!s)return;e.setAttribute("preview","true");var l="middle";if(r.equals(n)&&t.equals(r)){l="single"}else if(t.equals(r)){l=i?"start":"end"}else if(t.equals(n)){l=i?"end":"start"}e.setAttribute("selection",l)}))};e.prototype.setSingleSelection=function(e,a){this.clearSelectionState(e);if(this.internalStartDate===null||this.internalStartDate==="")return;this.startDateTime=DateTime.fromISO(this.internalStartDate.toString());var t=a.querySelectorAll("mds-calendar-cell");if(t!=null){for(var r=0;r<t.length;r++){var n=t[r].getAttribute("date");if(n!==null&&n!==""){var i=DateTime.fromISO(n);if(i.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")){t[r].setAttribute("selection","single")}}}}};e.prototype.changeMonth=function(e){var a=this;this.currentDate=this.currentDate.plus({months:e});this.updateCalendar().then((function(){requestAnimationFrame((function(){return a.setDates()}))}));this.navigationEmitter.emit({currentDate:this.currentDate.toISODate(),delta:e})};e.prototype.calculateWeekDaysInMonth=function(){var e=this.currentDate.startOf("month");var a=this.currentDate.endOf("month");var t=[];var r=e.weekday;var n=r-1;var i=e.minus({days:n});for(var s=i;s<e;s=s.plus({days:1})){t.push({date:s,isCurrentMonth:false})}for(var s=e;s<=a;s=s.plus({days:1})){t.push({date:s,isCurrentMonth:true})}var l=a.weekday;var c=7-l;var d=a.plus({days:1});for(var s=d;s<d.plus({days:c});s=s.plus({days:1})){t.push({date:s,isCurrentMonth:false})}this.weekDaysinMonth=t};e.prototype.handleRange=function(e,a){var t=this;if(!this.singlePicker&&(this.endDate===null||this.endDate==="")&&(this.internalEndDate===null||this.internalEndDate==="")&&this.isFirstClick){var r=this.parseDateProp(this.startDate||this.host.getAttribute("start-date"),"start-date");if(r!==null){this.internalStartDate=r;this.startDateTime=DateTime.fromISO(r);this.startDateIdentifier=this.startDateTime.toISODate();this.isFirstClick=false}}var n=function(){t.internalStartDate=null;t.internalEndDate=null;t.startDateIdentifier=null;t.startDateTime=null;t.endDateIdentifier=null;t.endDateTime=null;t.isFirstClick=true;var e=t.host;requestAnimationFrame((function(){var a;(a=e===null||e===void 0?void 0:e.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("mds-calendar-cell[selection]").forEach((function(e){e.removeAttribute("selection");e.removeAttribute("preview")}))}))};if(this.startDateIdentifier!==null&&this.startDateIdentifier!==""&&this.endDateIdentifier!==null&&this.endDateIdentifier!==""){n()}if(this.isFirstClick){this.startDateIdentifier=a.toISODate();this.startDateTime=a;this.internalStartDate=this.startDateTime.toISO().split("T")[0];this.isFirstClick=false;var i=this.host;requestAnimationFrame((function(){var e;(e=i===null||i===void 0?void 0:i.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("mds-calendar-cell[selection]").forEach((function(e){e.removeAttribute("selection")}))}));requestAnimationFrame((function(){e.setAttribute("selection","single");e.setAttribute("preview","true")}));this.datesEmitter.emit({startDate:this.internalStartDate});return}if(this.startDateIdentifier!==null&&this.startDateIdentifier!==""&&DateTime.fromISO(this.startDateIdentifier)<DateTime.fromISO(e.getAttribute("date"))){this.endDateIdentifier=e.getAttribute("date");this.endDateTime=a;this.internalEndDate=this.endDateTime.toISO().split("T")[0]}else{this.endDateIdentifier=this.startDateIdentifier;this.endDateTime=this.startDateTime;this.internalEndDate=this.internalStartDate;this.startDateIdentifier=e.getAttribute("date");this.startDateTime=a;this.internalStartDate=this.startDateTime.toISO().split("T")[0]}
|
|
63
63
|
// Redraw start, middle and end from the internal dates: a standalone calendar has no parent
|
|
64
64
|
// echoing the range through start-date / end-date, so nothing else would mark the two ends.
|
|
65
|
-
requestAnimationFrame((function(){return t.setDates()}));if(this.internalStartDate!==null&&this.internalStartDate!==""&&this.internalEndDate!==null&&this.internalEndDate!==""){this.datesEmitter.emit({startDate:this.internalStartDate,endDate:this.internalEndDate});this.checkPreselectionsEmitter.emit()}};e.prototype.handleSingleSelection=function(e,a){var t;var r=this.host;(t=r===null||r===void 0?void 0:r.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("mds-calendar-cell[selection]").forEach((function(e){e.removeAttribute("selection")}));this.startDateIdentifier=e.getAttribute("date");this.startDateTime=a;this.internalStartDate=this.startDateTime.toISO().split("T")[0];this.isFirstClick=false;e.setAttribute("selection","single");if(this.internalStartDate!==null&&this.internalStartDate!==""){this.datesEmitter.emit({startDate:this.internalStartDate})}};e.prototype.isDateDisabled=function(e){if(this.min!==null&&this.min!==""&&e<DateTime.fromISO(this.min)){return true}if(this.max!==null&&this.max!==""&&e>DateTime.fromISO(this.max)){return true}return undefined};e.prototype.render=function(){var e=this;return h(Host,{key:"e130859b1f4bf2beb9804e7eb3f19a4e8993cef6"},h("div",{key:"c9a11a0b43304e2842b6877cb7c69a6a4559e38b",class:clsx("calendar-preselection",this.hasPreselection&&!this.hidePreselection&&"calendar-preselection--has-preselection")},h("slot",{key:"5b1fc4244c8d2a251036dc7f56e9aa5a1f1a1da2",name:"preselection"})),h("div",{key:"7a6a8ffd5626ddda3549f2d88531e6dff432635c",class:"calendar-view"},h("nav",{key:"d360afb2a1ff492043fb609022a1c9e779f3dc94"},!this.hidePreviousButton&&h("mds-button",{key:"9b89126a52540a553fe76bffc0b5a26917a0b00f",class:"action-back",icon:miBaselineBackIosNew,variant:"dark",tone:"text",onClick:this.handlePrev}),h("div",{key:"832e15b3fcef6d4540330f08d10c46eb9cf1b7ea",class:"select-month-or-year"},(this.currentView==="calendar"||this.currentView==="months")&&h("mds-button",{key:"247d5f1bdb1fa520848ce4c08ed11d362d286f04",class:"action-month",truncate:"none",variant:"dark",tone:"text",label:this.currentMonth,onClick:this.handleMonthActionClick}),(this.currentView==="calendar"||this.currentView==="years")&&h("mds-button",{key:"70b0cbdaed0415ee9dfe5613149a242451f8590e",class:"action-year",truncate:"none",variant:"dark",tone:"text",label:this.currentYear,onClick:this.handleYearActionClick})),!this.hideNextButton&&h("mds-button",{key:"082d14fb88582b71dca68809b23b7868363bfd50",class:"action-forward",icon:miBaselineForwardIos,variant:"dark",tone:"text",onClick:this.handleNext})),this.currentView==="calendar"&&h("section",{key:"002b9daea4696f17256c0cf60f5f2debf4de2fe5",class:"month-view"},h("header",{key:"a7d8e40c33a1aab088c4a3d70e92505a0e85b609",class:"month-view__days-names"},this.weekdays.map((function(e){return h("mds-button",{class:"week-day-name",variant:"dark",tone:"text",label:e})}))),h("div",{key:"3d7bbcfdcfc7a659f0f4d61dca1dc0db17eb1583",class:"month-view__cells"},this.weekDaysinMonth.map((function(a,t){return h("mds-calendar-cell",{key:t,today:!e.hideToday&&DateTime.now().toFormat("yyyy-MM-dd")===a.date.toFormat("yyyy-MM-dd"),date:a.date.toFormat("yyyy-MM-dd"),month:a.isCurrentMonth?"current":"other",disabled:e.isDateDisabled(a.date),onClick:e.handleCellClick(a.date),title:a.date.setLocale(preferenceStore.state.language).toFormat("cccc d LLLL").replace(/^./,(function(e){return e.toUpperCase()})),label:a.date.toFormat("dd")})})))),this.currentView==="months"&&h("section",{key:"e3772bd173caee39aabd053bd24c173f8c5757a7",class:"month-selection"},h("header",{key:"d0c2a1a77a16dbb18f14f42fef201d15324e9121",class:"month-view__month-names"},Array.from({length:12}).map((function(a,t){var r=DateTime.local().set({month:t+1}).setLocale(preferenceStore.state.language).toFormat("MMMM");return h("mds-button",{class:"action",variant:"dark",tone:"text",label:r,onClick:e.handleMonthSelect(t+1)})})))),this.currentView==="years"&&h("section",{key:"733754e6357c42c446e94584d52ad6c9b390921f",class:"year-selection"},h("header",{key:"a0e8cd41fb73eddc962576cd950adfdd0a9b44fb",class:"month-view__years"},Array.from({length:12}).map((function(a,t){var r=e.selectedYear+t;return h("mds-button",{class:"action",variant:"dark",tone:"text",label:"".concat(r),onClick:e.handleYearSelect(r)})}))))))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{startDate:[{handleStartDate:0}],endDate:[{handleEndDate:0}],viewDate:[{handleViewDate:0}],hoverDate:[{handleHoverDate:0}]}},enumerable:false,configurable:true});return e}();MdsCalendar.style=mdsCalendarCss();var mdsCalendarCellCss=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-calendar-cell-background:#0000;--mds-calendar-cell-boundaries-background:#0000;--mds-calendar-cell-boundaries-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-calendar-cell-boundaries-padding:calc(var(--spacing,.0025rem)*100);--mds-calendar-cell-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-calendar-cell-other-month-background:#0000;--mds-calendar-cell-other-month-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-calendar-cell-disabled-background:#0000;--mds-calendar-cell-disabled-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-calendar-cell-weekend-background:#0000;--mds-calendar-cell-weekend-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-calendar-cell-size:calc(var(--spacing,.0025rem)*1200);--mds-calendar-cell-selection-boundaries-border-radius:var(--radius-full,1000px);--mds-calendar-cell-selection-week-boundaries-border-radius:var(--radius-full,1000px);--mds-calendar-cell-preselection-today-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-calendar-cell-preselection-today-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-calendar-cell-preselection-current-month-background:rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226))));--mds-calendar-cell-preselection-current-month-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-calendar-cell-preselection-current-month-boundaries-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-calendar-cell-preselection-current-month-boundaries-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--mds-calendar-cell-preselection-other-month-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-calendar-cell-preselection-other-month-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-calendar-cell-preselection-other-month-boundaries-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-calendar-cell-preselection-other-month-boundaries-background:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-calendar-cell-selection-current-month-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-calendar-cell-selection-current-month-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-calendar-cell-selection-current-month-boundaries-background:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-calendar-cell-selection-current-month-boundaries-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-calendar-cell-selection-current-month-weekend-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-calendar-cell-selection-current-month-weekend-color:rgb(var(--magma-accent-border,var(--magma-tint-accent-border,var(--variant-primary-06,148 172 218))));--mds-calendar-cell-selection-current-month-weekend-boundaries-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-calendar-cell-selection-current-month-weekend-boundaries-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-calendar-cell-selection-other-month-background:rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226))));--mds-calendar-cell-selection-other-month-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-calendar-cell-selection-other-month-boundaries-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--mds-calendar-cell-selection-other-month-boundaries-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));align-items:center;aspect-ratio:1;display:flex;justify-content:center;padding:var(--mds-calendar-cell-boundaries-padding,calc(var(--spacing,.0025rem)*100));position:relative}:host([month=other]){visibility:var(--mds-calendar-cell-other-month-visibility,hidden)}.inner-dot{aspect-ratio:1;background-color:var(--mds-calendar-cell-inner-background);border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);display:flex;min-height:0;min-width:0;width:100%;z-index:1}.area-background{background-color:var(--mds-calendar-cell-background,#0000);inset:0;position:absolute;z-index:0}.action,.area-background{color:var(--mds-calendar-cell-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))))}.action{align-items:center;background-color:#0000;border-radius:0;display:flex;inset:calc(var(--mds-calendar-cell-gap)*-1);justify-content:center;min-height:0;min-width:0;padding:0;place-self:stretch stretch;position:absolute;width:auto;z-index:2}:host([selection][orientation=horizontal]) .area-background{margin-left:calc(var(--mds-calendar-cell-gap)*-1);margin-right:calc(var(--mds-calendar-cell-gap)*-1)}:host([selection=start][orientation=horizontal]) .area-background{border-bottom-left-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);border-top-left-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);margin-left:0}:host([selection=end][orientation=horizontal]) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);border-top-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);margin-right:0}:host([selection][orientation=vertical]) .area-background{margin-bottom:calc(var(--mds-calendar-cell-gap)*-1);margin-top:calc(var(--mds-calendar-cell-gap)*-1)}:host([selection=start][orientation=vertical]) .area-background{border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px) var(--mds-calendar-cell-selection-boundaries-border-radius,200px) 0 0;margin-top:0}:host([selection=end][orientation=vertical]) .area-background{border-radius:0 0 var(--mds-calendar-cell-selection-boundaries-border-radius,200px) var(--mds-calendar-cell-selection-boundaries-border-radius,200px);margin-bottom:0}:host([orientation=vertical]:not([selection=start],[selection=end])) .area-background{border-radius:0}:host(:nth-child(7n-6)) .area-background,:host([selection=end][orientation=horizontal]:nth-child(7n-6)) .area-background{border-bottom-left-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,200px);border-top-left-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,200px)}:host(:nth-child(7n)) .area-background,:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,200px);border-top-right-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,200px)}:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);border-top-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px)}:host([selection][orientation=horizontal]:nth-child(7n-6)) .area-background{margin-left:0}:host([selection][orientation=horizontal]:nth-child(7n)) .area-background{margin-right:0}:host([selection=single][orientation=horizontal]) .area-background{border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);margin-left:0;margin-right:0}:host(:nth-child(7n)),:host(:nth-child(7n-1)){--mds-calendar-cell-color:var(--mds-calendar-cell-weekend-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));--mds-calendar-cell-background:var(--mds-calendar-cell-weekend-background,#0000)}:host([month=other]:not([selection])){--mds-calendar-cell-color:var(--mds-calendar-cell-other-month-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))));--mds-calendar-cell-background:var(--mds-calendar-cell-other-month-background,#0000)}:host([disabled]){--mds-calendar-cell-color:var(--mds-calendar-cell-disabled-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))));--mds-calendar-cell-background:var(--mds-calendar-cell-disabled-background,#0000);cursor:auto;pointer-events:none}:host(:not([selection])[today]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-today-background,rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-today-color,rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204)))))}:host([selection][month=current]){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-background,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-color,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))))}:host([selection][month=current]:nth-child(7n)),:host([selection][month=current]:nth-child(7n-1)){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-weekend-background,rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))));--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-weekend-color,rgb(var(--magma-accent-border,var(--magma-tint-accent-border,var(--variant-primary-06,148 172 218)))))}:host([selection=end][month=current]:nth-child(7n)),:host([selection=end][month=current]:nth-child(7n-1)),:host([selection=start][month=current]:nth-child(7n)),:host([selection=start][month=current]:nth-child(7n-1)){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-background,rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))));--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))))}:host([selection][month=other]){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-other-month-background,rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226)))));--mds-calendar-cell-color:var(--mds-calendar-cell-selection-other-month-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))))}:host([selection=end][month=current]),:host([selection=start][month=current]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-selection-current-month-boundaries-background,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-boundaries-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))))}:host([selection=end][month=other]),:host([selection=start][month=other]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-selection-other-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240)))));--mds-calendar-cell-color:var(--mds-calendar-cell-selection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}:host([selection][month=current][preview]:not([preview=false])){--mds-calendar-cell-background:var(--mds-calendar-cell-preselection-current-month-background,rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}:host([selection][month=other][preview]:not([preview=false])){--mds-calendar-cell-background:var(--mds-calendar-cell-preselection-other-month-background,rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}:host([selection=end][month=current][preview]:not([preview=false])),:host([selection=start][month=current][preview]:not([preview=false])){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}:host([selection=end][month=other][preview]:not([preview=false])),:host([selection=start][month=other][preview]:not([preview=false])){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}:host([selection=single][month=current]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}:host([selection=single][month=other]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}"};var MdsCalendarCell=/** @class */function(){function e(e){registerInstance(this,e);
|
|
65
|
+
requestAnimationFrame((function(){return t.setDates()}));if(this.internalStartDate!==null&&this.internalStartDate!==""&&this.internalEndDate!==null&&this.internalEndDate!==""){this.datesEmitter.emit({startDate:this.internalStartDate,endDate:this.internalEndDate});this.checkPreselectionsEmitter.emit()}};e.prototype.handleSingleSelection=function(e,a){var t;var r=this.host;(t=r===null||r===void 0?void 0:r.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("mds-calendar-cell[selection]").forEach((function(e){e.removeAttribute("selection")}));this.startDateIdentifier=e.getAttribute("date");this.startDateTime=a;this.internalStartDate=this.startDateTime.toISO().split("T")[0];this.isFirstClick=false;e.setAttribute("selection","single");if(this.internalStartDate!==null&&this.internalStartDate!==""){this.datesEmitter.emit({startDate:this.internalStartDate})}};e.prototype.isDateDisabled=function(e){if(this.min!==null&&this.min!==""&&e<DateTime.fromISO(this.min)){return true}if(this.max!==null&&this.max!==""&&e>DateTime.fromISO(this.max)){return true}return undefined};e.prototype.render=function(){var e=this;return h(Host,{key:"0e1b73688c5c431dd309205bdb10532b1333e838"},h("div",{key:"c90c9c6d8edfd9222d9967f22e18846c1a99b2bb",class:clsx("calendar-preselection",this.hasPreselection&&!this.hidePreselection&&"calendar-preselection--has-preselection")},h("slot",{key:"4991c7e1a3bd0412760d4d23978052895db706e5",name:"preselection"})),h("div",{key:"cfc6119113ee8915f52022cc77a3dc3a5a6c4f58",class:"calendar-view"},h("nav",{key:"5299d5c3e02ba9dbece40cda041bed3ee0512916"},!this.hidePreviousButton&&h("mds-button",{key:"ba19e6908d23d40121420846dd5d88c6f169b919",class:"action-back",icon:miBaselineBackIosNew,variant:"dark",tone:"text",onClick:this.handlePrev}),h("div",{key:"195ee2766a159a61e1e84758c47f5fe9d283fd56",class:"select-month-or-year"},(this.currentView==="calendar"||this.currentView==="months")&&h("mds-button",{key:"6bab8d2f45c2ca99e2136e2ed18b0e70f06dfb49",class:"action-month",truncate:"none",variant:"dark",tone:"text",label:this.currentMonth,onClick:this.handleMonthActionClick}),(this.currentView==="calendar"||this.currentView==="years")&&h("mds-button",{key:"29e01349237df24148eb1c963db8824757267bd5",class:"action-year",truncate:"none",variant:"dark",tone:"text",label:this.currentYear,onClick:this.handleYearActionClick})),!this.hideNextButton&&h("mds-button",{key:"2bd92f2706f829fa547c2b4534b942c7d6bfe411",class:"action-forward",icon:miBaselineForwardIos,variant:"dark",tone:"text",onClick:this.handleNext})),this.currentView==="calendar"&&h("section",{key:"f532e9ffca64af0e755c4eccda7811eeeaa94606",class:"month-view"},h("header",{key:"d3ef7e069ba07fb4cb7e12a5df522cd16f97b545",class:"month-view__days-names"},this.weekdays.map((function(e){return h("mds-button",{class:"week-day-name",variant:"dark",tone:"text",label:e})}))),h("div",{key:"c364906ed8deb299b39382f98df52135f5b0fd38",class:"month-view__cells"},this.weekDaysinMonth.map((function(a,t){return h("mds-calendar-cell",{key:t,today:!e.hideToday&&DateTime.now().toFormat("yyyy-MM-dd")===a.date.toFormat("yyyy-MM-dd"),date:a.date.toFormat("yyyy-MM-dd"),month:a.isCurrentMonth?"current":"other",disabled:e.isDateDisabled(a.date),onClick:e.handleCellClick(a.date),title:a.date.setLocale(preferenceStore.state.language).toFormat("cccc d LLLL").replace(/^./,(function(e){return e.toUpperCase()})),label:a.date.toFormat("dd")})})))),this.currentView==="months"&&h("section",{key:"38810ce12897e53aa661e0c48f68cb8072854123",class:"month-selection"},h("header",{key:"d840009228adbabaae94116c8a01fde42637b9d6",class:"month-view__month-names"},Array.from({length:12}).map((function(a,t){var r=DateTime.local().set({month:t+1}).setLocale(preferenceStore.state.language).toFormat("MMMM");return h("mds-button",{class:"action",variant:"dark",tone:"text",label:r,onClick:e.handleMonthSelect(t+1)})})))),this.currentView==="years"&&h("section",{key:"7732d814d09d1d8b1e0e18dc98477ad036d20537",class:"year-selection"},h("header",{key:"c813ff8735b908398ed6398bc99633c290d2edb6",class:"month-view__years"},Array.from({length:12}).map((function(a,t){var r=e.selectedYear+t;return h("mds-button",{class:"action",variant:"dark",tone:"text",label:"".concat(r),onClick:e.handleYearSelect(r)})}))))))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{startDate:[{handleStartDate:0}],endDate:[{handleEndDate:0}],viewDate:[{handleViewDate:0}],hoverDate:[{handleHoverDate:0}]}},enumerable:false,configurable:true});return e}();MdsCalendar.style=mdsCalendarCss();var mdsCalendarCellCss=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-calendar-cell-background:#0000;--mds-calendar-cell-boundaries-background:#0000;--mds-calendar-cell-boundaries-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-calendar-cell-boundaries-padding:calc(var(--spacing,.0025rem)*100);--mds-calendar-cell-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-calendar-cell-other-month-background:#0000;--mds-calendar-cell-other-month-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-calendar-cell-disabled-background:#0000;--mds-calendar-cell-disabled-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-calendar-cell-weekend-background:#0000;--mds-calendar-cell-weekend-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-calendar-cell-size:calc(var(--spacing,.0025rem)*1200);--mds-calendar-cell-selection-boundaries-border-radius:var(--radius-full,1000px);--mds-calendar-cell-selection-week-boundaries-border-radius:var(--radius-full,1000px);--mds-calendar-cell-preselection-today-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-calendar-cell-preselection-today-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-calendar-cell-preselection-current-month-background:rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226))));--mds-calendar-cell-preselection-current-month-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-calendar-cell-preselection-current-month-boundaries-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-calendar-cell-preselection-current-month-boundaries-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--mds-calendar-cell-preselection-other-month-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-calendar-cell-preselection-other-month-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-calendar-cell-preselection-other-month-boundaries-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-calendar-cell-preselection-other-month-boundaries-background:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-calendar-cell-selection-current-month-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-calendar-cell-selection-current-month-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-calendar-cell-selection-current-month-boundaries-background:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-calendar-cell-selection-current-month-boundaries-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-calendar-cell-selection-current-month-weekend-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-calendar-cell-selection-current-month-weekend-color:rgb(var(--magma-accent-border,var(--magma-tint-accent-border,var(--variant-primary-06,148 172 218))));--mds-calendar-cell-selection-current-month-weekend-boundaries-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-calendar-cell-selection-current-month-weekend-boundaries-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-calendar-cell-selection-other-month-background:rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226))));--mds-calendar-cell-selection-other-month-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-calendar-cell-selection-other-month-boundaries-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--mds-calendar-cell-selection-other-month-boundaries-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));align-items:center;aspect-ratio:1;display:flex;justify-content:center;padding:var(--mds-calendar-cell-boundaries-padding,calc(var(--spacing,.0025rem)*100));position:relative}:host([month=other]){visibility:var(--mds-calendar-cell-other-month-visibility,hidden)}.inner-dot{aspect-ratio:1;background-color:var(--mds-calendar-cell-inner-background);border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);display:flex;min-height:0;min-width:0;width:100%;z-index:1}.area-background{background-color:var(--mds-calendar-cell-background,#0000);inset:0;position:absolute;z-index:0}.action,.area-background{color:var(--mds-calendar-cell-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))))}.action{align-items:center;background-color:#0000;border-radius:0;display:flex;inset:calc(var(--mds-calendar-cell-gap)*-1);justify-content:center;min-height:0;min-width:0;padding:0;place-self:stretch stretch;position:absolute;width:auto;z-index:2}:host([selection][orientation=horizontal]) .area-background{margin-left:calc(var(--mds-calendar-cell-gap)*-1);margin-right:calc(var(--mds-calendar-cell-gap)*-1)}:host([selection=start][orientation=horizontal]) .area-background{border-bottom-left-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);border-top-left-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);margin-left:0}:host([selection=end][orientation=horizontal]) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);border-top-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);margin-right:0}:host([selection][orientation=vertical]) .area-background{margin-bottom:calc(var(--mds-calendar-cell-gap)*-1);margin-top:calc(var(--mds-calendar-cell-gap)*-1)}:host([selection=start][orientation=vertical]) .area-background{border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px) var(--mds-calendar-cell-selection-boundaries-border-radius,200px) 0 0;margin-top:0}:host([selection=end][orientation=vertical]) .area-background{border-radius:0 0 var(--mds-calendar-cell-selection-boundaries-border-radius,200px) var(--mds-calendar-cell-selection-boundaries-border-radius,200px);margin-bottom:0}:host([orientation=vertical]:not([selection=start],[selection=end])) .area-background{border-radius:0}:host(:nth-child(7n-6)) .area-background,:host([selection=end][orientation=horizontal]:nth-child(7n-6)) .area-background{border-bottom-left-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,200px);border-top-left-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,200px)}:host(:nth-child(7n)) .area-background,:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,200px);border-top-right-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,200px)}:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);border-top-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px)}:host([selection][orientation=horizontal]:nth-child(7n-6)) .area-background{margin-left:0}:host([selection][orientation=horizontal]:nth-child(7n)) .area-background{margin-right:0}:host([selection=single][orientation=horizontal]) .area-background{border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,200px);margin-left:0;margin-right:0}:host(:nth-child(7n)),:host(:nth-child(7n-1)){--mds-calendar-cell-color:var(--mds-calendar-cell-weekend-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));--mds-calendar-cell-background:var(--mds-calendar-cell-weekend-background,#0000)}:host([month=other]:not([selection])){--mds-calendar-cell-color:var(--mds-calendar-cell-other-month-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))));--mds-calendar-cell-background:var(--mds-calendar-cell-other-month-background,#0000)}:host([disabled]){--mds-calendar-cell-color:var(--mds-calendar-cell-disabled-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))));--mds-calendar-cell-background:var(--mds-calendar-cell-disabled-background,#0000);cursor:auto;pointer-events:none}:host(:not([selection])[today]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-today-background,rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-today-color,rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204)))))}:host([selection][month=current]){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-background,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-color,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))))}:host([selection][month=current]:nth-child(7n)),:host([selection][month=current]:nth-child(7n-1)){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-weekend-background,rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))));--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-weekend-color,rgb(var(--magma-accent-border,var(--magma-tint-accent-border,var(--variant-primary-06,148 172 218)))))}:host([selection=end][month=current]:nth-child(7n)),:host([selection=end][month=current]:nth-child(7n-1)),:host([selection=start][month=current]:nth-child(7n)),:host([selection=start][month=current]:nth-child(7n-1)){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-background,rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))));--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))))}:host([selection][month=other]){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-other-month-background,rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226)))));--mds-calendar-cell-color:var(--mds-calendar-cell-selection-other-month-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))))}:host([selection=end][month=current]),:host([selection=start][month=current]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-selection-current-month-boundaries-background,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-boundaries-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))))}:host([selection=end][month=other]),:host([selection=start][month=other]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-selection-other-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240)))));--mds-calendar-cell-color:var(--mds-calendar-cell-selection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}:host([selection][month=current][preview]:not([preview=false])){--mds-calendar-cell-background:var(--mds-calendar-cell-preselection-current-month-background,rgb(var(--magma-accent-surface-hover,var(--magma-tint-accent-surface-hover,var(--variant-primary-08,204 212 226)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}:host([selection][month=other][preview]:not([preview=false])){--mds-calendar-cell-background:var(--mds-calendar-cell-preselection-other-month-background,rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}:host([selection=end][month=current][preview]:not([preview=false])),:host([selection=start][month=current][preview]:not([preview=false])){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}:host([selection=end][month=other][preview]:not([preview=false])),:host([selection=start][month=other][preview]:not([preview=false])){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}:host([selection=single][month=current]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}:host([selection=single][month=other]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}"};var MdsCalendarCell=/** @class */function(){function e(e){registerInstance(this,e);
|
|
66
66
|
/**
|
|
67
67
|
* Specifies if the current month or a weekend
|
|
68
68
|
*/this.month="current";
|
|
@@ -78,4 +78,4 @@ requestAnimationFrame((function(){return t.setDates()}));if(this.internalStartDa
|
|
|
78
78
|
*/this.disabled=undefined;
|
|
79
79
|
/**
|
|
80
80
|
* Specifies if the cell is today
|
|
81
|
-
*/this.today=undefined}e.prototype.render=function(){return h(Host,{key:"
|
|
81
|
+
*/this.today=undefined}e.prototype.render=function(){return h(Host,{key:"12b007d92609ffed0e0a51ee2232475130f40dde"},h("div",{key:"0faa7516774e96b79d677c94b0d2d49837ce8c30",class:"inner-dot"}),h("div",{key:"3007ffc396b7f6a6d1ca79c7fbf1cf50ae601044",class:"area-background"}),h("mds-button",{key:"153be126aab6e325130d3fc62c2243baf7aee7cb",class:"action",variant:"dark",tone:"text",disabled:this.disabled,label:this.label}))};return e}();MdsCalendarCell.style=mdsCalendarCellCss();export{MdsCalendar as mds_calendar,MdsCalendarCell as mds_calendar_cell};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,e as Host}from"./index-BxPbQB28.js";var mdsCardContentCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{background-color:var(--mds-card-background);display:grid;gap:calc(var(--spacing,.0025rem)*400);grid-template-columns:repeat(auto-fit,minmax(1px,100%));min-width:0;padding:calc(var(--spacing,.0025rem)*400)}"};var MdsCardContent=/** @class */function(){function t(t){registerInstance(this,t)}t.prototype.render=function(){return h(Host,{key:"
|
|
1
|
+
import{r as registerInstance,h,e as Host}from"./index-BxPbQB28.js";var mdsCardContentCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{background-color:var(--mds-card-background);display:grid;gap:calc(var(--spacing,.0025rem)*400);grid-template-columns:repeat(auto-fit,minmax(1px,100%));min-width:0;padding:calc(var(--spacing,.0025rem)*400)}"};var MdsCardContent=/** @class */function(){function t(t){registerInstance(this,t)}t.prototype.render=function(){return h(Host,{key:"017516f166ace490d0c2bee3f2cbba89af6a1cf0",slot:"content"},h("slot",{key:"d66e00f7d93cb19be23e223fa4b182b2188a880e"}))};return t}();MdsCardContent.style=mdsCardContentCss();export{MdsCardContent as mds_card_content};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,e as Host}from"./index-BxPbQB28.js";var mdsCardFooterCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{align-items:center;background-color:var(--mds-card-background);display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*400);justify-content:flex-end;min-width:0;padding:calc(var(--spacing,.0025rem)*400)}"};var MdsCardFooter=/** @class */function(){function r(r){registerInstance(this,r)}r.prototype.render=function(){return h(Host,{key:"
|
|
1
|
+
import{r as registerInstance,h,e as Host}from"./index-BxPbQB28.js";var mdsCardFooterCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{align-items:center;background-color:var(--mds-card-background);display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*400);justify-content:flex-end;min-width:0;padding:calc(var(--spacing,.0025rem)*400)}"};var MdsCardFooter=/** @class */function(){function r(r){registerInstance(this,r)}r.prototype.render=function(){return h(Host,{key:"b0307dc07679da23466df61739b9819f8d232f0a",slot:"footer"},h("slot",{key:"fd24418758303f5e63537fc6b54a8d9ef4a04201"}))};return r}();MdsCardFooter.style=mdsCardFooterCss();export{MdsCardFooter as mds_card_footer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{h as hasChildWithSlot}from"./slot-C0o_l0td.js";import{c as clsx}from"./clsx-ChV9xqsO.js";var mdsCardHeaderCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{align-items:center;background-color:var(--mds-card-background);display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*400);justify-content:space-between;min-width:0;padding:calc(var(--spacing,.0025rem)*400)}.actions--hidden{display:none}"};var MdsCardHeader=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.onActionSlotChange=function(){t.hasActions=hasChildWithSlot(t.hostElement,"action")}}e.prototype.componentWillLoad=function(){this.hasActions=hasChildWithSlot(this.hostElement,"action")};e.prototype.render=function(){return h(Host,{key:"
|
|
1
|
+
import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{h as hasChildWithSlot}from"./slot-C0o_l0td.js";import{c as clsx}from"./clsx-ChV9xqsO.js";var mdsCardHeaderCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{align-items:center;background-color:var(--mds-card-background);display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*400);justify-content:space-between;min-width:0;padding:calc(var(--spacing,.0025rem)*400)}.actions--hidden{display:none}"};var MdsCardHeader=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.onActionSlotChange=function(){t.hasActions=hasChildWithSlot(t.hostElement,"action")}}e.prototype.componentWillLoad=function(){this.hasActions=hasChildWithSlot(this.hostElement,"action")};e.prototype.render=function(){return h(Host,{key:"34f82475ed90227e7c06b153bd024a1c744c276b",slot:"header"},h("slot",{key:"0c32b469a184b8c641e08dfdeb786f346f3b14a9"}),h("div",{key:"022d73764e88be466f4ad569be128a00723c6980",class:clsx("actions",!this.hasActions&&"actions--hidden")},h("slot",{key:"7235c45967fbd557ee2649f8c35e7e283c932262",name:"action",onSlotchange:this.onActionSlotChange})))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsCardHeader.style=mdsCardHeaderCss();export{MdsCardHeader as mds_card_header};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,e as Host}from"./index-BxPbQB28.js";var mdsCardMediaCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{background-color:var(--mds-card-background);display:grid;min-width:0;position:relative}.content{align-items:flex-end;display:flex;gap:calc(var(--spacing,.0025rem)*200);inset:0;justify-content:center;padding:calc(var(--spacing,.0025rem)*400);position:absolute}.img{-o-object-fit:contain;object-fit:contain}"};var MdsCardMedia=/** @class */function(){function
|
|
1
|
+
import{r as registerInstance,h,e as Host}from"./index-BxPbQB28.js";var mdsCardMediaCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{background-color:var(--mds-card-background);display:grid;min-width:0;position:relative}.content{align-items:flex-end;display:flex;gap:calc(var(--spacing,.0025rem)*200);inset:0;justify-content:center;padding:calc(var(--spacing,.0025rem)*400);position:absolute}.img{-o-object-fit:contain;object-fit:contain}"};var MdsCardMedia=/** @class */function(){function a(a){registerInstance(this,a)}a.prototype.render=function(){return h(Host,{key:"45d54d45b07a9723fcee327fed5d6ef2fe8b739d",slot:"media"},h("div",{key:"826bc9dd4ac1aae4ac3ad6fe00b741a17a5ec9d2",class:"content",part:"content"},h("slot",{key:"9fa54849445b6594eca43c2a506c2e64df124ca8",name:"content"})),h("slot",{key:"6af043f162a93dc4314bd89fd18297a187f49226"}))};return a}();MdsCardMedia.style=mdsCardMediaCss();export{MdsCardMedia as mds_card_media};
|
|
@@ -4,4 +4,4 @@ import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.j
|
|
|
4
4
|
*/this.disableAutoGrid=false}t.prototype.componentWillLoad=function(){this.layout=Array.from(this.host.children).map((function(t){return(t.getAttribute("slot")!=null?t.getAttribute("slot")!=="":// if no custom slot find mds-card-{component}
|
|
5
5
|
t.tagName.startsWith("MDS-CARD-"))?// replace mds-card-header with header (for all mds-card-{component})
|
|
6
6
|
t.tagName.toLocaleLowerCase().replace("mds-card-",""):// if find other tag do nothing
|
|
7
|
-
""})).sort().reduce((function(t,e){return t+e.charAt(0)}),"")};t.prototype.render=function(){return h(Host,{key:"
|
|
7
|
+
""})).sort().reduce((function(t,e){return t+e.charAt(0)}),"")};t.prototype.render=function(){return h(Host,{key:"31eaa183eb0cb5bc9a007f69efe3b0f852b6ef7d","pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"0f3c4c537f04a1d2ca179479d9b3cea416fe6d25",class:clsx("layout",this.layout&&"layout--".concat(this.layout),this.disableAutoGrid?"layout--disabled":""),part:"layout"},h("slot",{key:"f1940bfd01e4cc0c977cb0dc2b1769e20a6cbdfd",name:"media"}),h("slot",{key:"09b1e2cdbeff759ee3ce63dae5536a54251c43f5",name:"header"}),h("slot",{key:"9ad5ac00277e9fefc07d00d49c82072bf433e9db",name:"content"}),h("slot",{key:"8cf768e1c45773e1fc8b54a34bb8859b228ed1fd",name:"footer"})))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();MdsCard.style=mdsCardCss();export{MdsCard as mds_card};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{h as hasChildWithSlot}from"./slot-C0o_l0td.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{m as miBaselineKeyboardArrowRight}from"./keyboard-arrow-right-DFyAGAnn.js";import{K as KeyboardManager}from"./keyboard-manager-KRu9I7dw.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsDetailsCss=function(){return"@layer reset,vendor,theme,base,components,utilities;@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))){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-details-duration:.3s;--private-details-duration:var(--mds-details-duration,.3s);--mds-details-icon-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-details-helper-icon-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));align-items:flex-start;display:flex;gap:calc(var(--spacing,.0025rem)*200)}.content{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));display:grid;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}.content:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.details{display:grid;gap:calc(var(--spacing,.0025rem)*400);grid-template-rows:0fr;opacity:0;overflow:hidden;padding-top:0;pointer-events:none;-webkit-transition-duration:var(--private-details-duration);transition-duration:var(--private-details-duration);transition-property:grid-template-rows,opacity,padding,-ms-grid-rows}.content-expander{display:grid;gap:calc(var(--spacing,.0025rem)*500);min-height:0}.details.opened{grid-template-rows:1fr;opacity:1;overflow:visible;padding-top:calc(var(--spacing,.0025rem)*300);pointer-events:auto}.header{align-items:center;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:var(--radius-xs,8px);display:inline-flex;gap:calc(var(--spacing,.0025rem)*200);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}.header:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.icon{cursor:pointer;fill:var(--mds-details-icon-color,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))))}.icon--hidden{display:none}.helper-icon,.title{cursor:pointer}.helper-icon{display:flex;fill:var(--mds-details-helper-icon-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));flex-shrink:0;rotate:0deg;-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:rotate;-webkit-transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.helper-icon svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}.helper-icon.opened{rotate:90deg}.actions{display:flex;gap:calc(var(--spacing,.0025rem)*400)}: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-details-duration:0s}:host([pref-contrast=more]){--mds-details-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))))}@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-details-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-details-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))))}}"};var MdsDetails=/** @class */function(){function a(a){var t=this;registerInstance(this,a);this.changedEvent=createEvent(this,"mdsDetailsChange",7);this.hasIcon=true;this.km=new KeyboardManager;
|
|
2
2
|
/**
|
|
3
3
|
* Specifies if the component is opened
|
|
4
|
-
*/this.opened=false;this.toggle=function(){t.isOpened=!t.isOpened;t.changedEvent.emit(t.isOpened)};this.checkIcon=function(){t.hasIcon=hasChildWithSlot(t.host,"icon")};this.onSlotChangeHandler=function(){t.checkIcon()}}a.prototype.validateOpened=function(a){this.isOpened=a};a.prototype.componentWillLoad=function(){this.isOpened=this.opened;this.checkIcon()};a.prototype.componentDidLoad=function(){var a;var t=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelector(".header");this.km.addElement(t);this.km.attachClickBehavior()};a.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};a.prototype.render=function(){return h(Host,{key:"
|
|
4
|
+
*/this.opened=false;this.toggle=function(){t.isOpened=!t.isOpened;t.changedEvent.emit(t.isOpened)};this.checkIcon=function(){t.hasIcon=hasChildWithSlot(t.host,"icon")};this.onSlotChangeHandler=function(){t.checkIcon()}}a.prototype.validateOpened=function(a){this.isOpened=a};a.prototype.componentWillLoad=function(){this.isOpened=this.opened;this.checkIcon()};a.prototype.componentDidLoad=function(){var a;var t=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelector(".header");this.km.addElement(t);this.km.attachClickBehavior()};a.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};a.prototype.render=function(){return h(Host,{key:"3a875435aae154931410535e4d1e9045bf30cd91","pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast},h("div",{key:"432d547901620cd57ffcff313fbce05a94240ea1",class:clsx("icon",this.hasIcon?"":"icon--hidden"),onClick:this.toggle},h("slot",{key:"f5f50a9c2f2533c5003339449fcc7ec82694c4eb",name:"icon",onSlotchange:this.onSlotChangeHandler})),h("div",{key:"768988b92347da9a372aecd2c0a3829b004762da",class:"content"},h("div",{key:"7a93c41ac2079c6ce543f343ceb212e7e41190fd",class:"header",part:"header",role:"button","aria-expanded":this.isOpened?"true":"false",tabindex:"0",onClick:this.toggle},h("div",{key:"080bdc82cff5a5b4d70c918fb191eec0ef148243",class:"title",part:"title"},h("slot",{key:"35e4e6809f2d5f4d9d6a9cf64f4facbe7b05fdf4",name:"title"})),h("i",{key:"beb447bde01c624915ec083690cf59bfa2351d1a",class:clsx("helper-icon",this.isOpened&&"opened"),innerHTML:miBaselineKeyboardArrowRight})),h("div",{key:"85cc149f5111d7b394c213def2fc6bbc66d272a0",class:clsx("details",this.isOpened&&"opened")},h("div",{key:"30590821834ceafc900fd2e646573803e1cfb5c3",class:"content-expander",part:"content"},h("slot",{key:"88c485edcfb354f060045ebc5ce209fa615a7054"}),h("div",{key:"e66882f8191300f4c9e973f881c75a04651181a9",class:"actions"},h("slot",{key:"dc36dfddad7ac2b0e2b59491fe5157c84a7b1a19",name:"action"}))))))};Object.defineProperty(a.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{opened:[{validateOpened:0}]}},enumerable:false,configurable:true});return a}();MdsDetails.style=mdsDetailsCss();export{MdsDetails as mds_details};
|
|
@@ -99,4 +99,4 @@ this.host.addEventListener("keydown",this.onPanelKeydown);
|
|
|
99
99
|
// The watcher does not fire for the initial value, so a dropdown that mounts
|
|
100
100
|
// with `visible` set was never positioned at all: no left, no top, no origin,
|
|
101
101
|
// parked at the top left corner of the page.
|
|
102
|
-
if(this.visible){this.visibleChanged(true)}};a.prototype.disconnectedCallback=function(){this.floatingController.dismiss();this.backdropController.detachBackdrop();this.km.detachEscapeBehavior()};a.prototype.render=function(){return h(Host,{key:"
|
|
102
|
+
if(this.visible){this.visibleChanged(true)}};a.prototype.disconnectedCallback=function(){this.floatingController.dismiss();this.backdropController.detachBackdrop();this.km.detachEscapeBehavior()};a.prototype.render=function(){return h(Host,{key:"46e09e22fcbc884a36a6f5356819c2a3b436cd79",style:{zIndex:"".concat(this.zIndex)},"pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"ed3e86870a594d20a22698fb0fb756425bbda4d8",class:"arrow",innerHTML:arrowSvg}),h("slot",{key:"829ff27e7d860a7340a5208365b7de33a880dbfe"}))};Object.defineProperty(a.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{hideArrow:[{hideArrowChanged:0}],arrowPadding:[{arrowPaddingChanged:0}],disableAutoPlacement:[{disableAutoPlacementChanged:0}],backdrop:[{backdropChanged:0}],flip:[{flipChanged:0}],offset:[{offsetChanged:0}],placement:[{placementChanged:0}],disableShift:[{disableShiftChanged:0}],shiftPadding:[{shiftPaddingChanged:0}],strategy:[{strategyChanged:0}],target:[{targetChanged:0}],visible:[{visibleChanged:0}]}},enumerable:false,configurable:true});return a}();MdsDropdown.style=mdsDropdownCss();export{MdsDropdown as mds_dropdown};
|
|
@@ -910,4 +910,4 @@ this.scheduleBlink();return[2/*return*/,Promise.resolve()]}))}))};
|
|
|
910
910
|
// attributeChangedCallback is a no-op because the value did not change.
|
|
911
911
|
if(this.host.getAttribute("name")!==e)this.host.setAttribute("name",e);this.updateSvgDictionary(e)};e.prototype.svgPartState=function(e,t){var i,r,n,s;var o=(r=(i=this.host.shadowRoot)===null||i===void 0?void 0:i.firstElementChild)===null||r===void 0?void 0:r.querySelectorAll("[id^='".concat(e,"-']"));if(!o||o.length===0)return null;if((t===undefined||t==="")&&o){o===null||o===void 0?void 0:o.forEach((function(e){
|
|
912
912
|
// const currentState = el.id.split('-')[1]
|
|
913
|
-
e.style.visibility="hidden";if(e.id.split("-")[1]==="default")e.style.visibility="visible"}));return o}var a=(s=(n=this.host.shadowRoot)===null||n===void 0?void 0:n.firstElementChild)===null||s===void 0?void 0:s.querySelector("[id='".concat(e,"-default']"));o===null||o===void 0?void 0:o.forEach((function(e){e.style.visibility="hidden";if(e.id.split("-")[1]===t){a=e}}));if(!a)return null;a.style.visibility="visible";return a};e.prototype.render=function(){return h(Host,{key:"
|
|
913
|
+
e.style.visibility="hidden";if(e.id.split("-")[1]==="default")e.style.visibility="visible"}));return o}var a=(s=(n=this.host.shadowRoot)===null||n===void 0?void 0:n.firstElementChild)===null||s===void 0?void 0:s.querySelector("[id='".concat(e,"-default']"));o===null||o===void 0?void 0:o.forEach((function(e){e.style.visibility="hidden";if(e.id.split("-")[1]===t){a=e}}));if(!a)return null;a.style.visibility="visible";return a};e.prototype.render=function(){return h(Host,{key:"d5c2b10613e8cb0cc091c6cb9b598225562605fe"})};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:[{checkNameChanged:0}]}},enumerable:false,configurable:true});return e}();MdsEmoji.style=mdsEmojiCss();export{MdsEmoji as mds_emoji};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{h as hasChildWithSlot}from"./slot-C0o_l0td.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsEntityCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-avatar,mds-spinner):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-entity-background:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-entity-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-entity-detail-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-entity-icon-background:rgb(var(--label-blue-09,216 222 254));--mds-entity-icon-radius:var(--radius-md,12px);--mds-entity-icon-color:rgb(var(--label-blue-04,63 94 248));align-items:stretch;background-color:var(--mds-entity-background,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));border-radius:var(--radius-lg,16px);-webkit-box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:var(--mds-entity-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));display:flex;gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*200)}.delete,.preview,.spinner{border-radius:var(--radius-md,12px);flex-shrink:0;width:calc(var(--spacing,.0025rem)*1100)}.preview{--mds-avatar-radius:var(--mds-entity-icon-radius,var(--radius-md,12px))}.preview:not([variant]){--mds-avatar-color:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)));--mds-avatar-background-color:var(--mds-entity-icon-background,rgb(var(--label-blue-09,216 222 254)))}.preview,.spinner{align-items:center;aspect-ratio:var(--aspect-square,1/1);display:inline-flex;justify-content:center}.spinner{background-color:#0000;display:none;fill:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)))}:host([await]:not([await=false])) .spinner{display:inline-flex}mds-spinner{height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}.infos{display:flex;flex-direction:column;flex-grow:1;gap:0;justify-content:center;min-width:0;white-space:nowrap}.details{align-items:baseline;color:var(--mds-entity-detail-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));display:flex;gap:calc(var(--spacing,.0025rem)*100)}.details--hidden{display:none}.actions{align-items:center;display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}::slotted([slot=action]){aspect-ratio:var(--aspect-square,1/1);height:auto;width:calc(var(--spacing,.0025rem)*1100)}::slotted(*){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title{display:flex;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([pref-contrast=more]){--mds-entity-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-entity-icon-background:rgb(var(--label-blue-08,200 210 253));--mds-entity-icon-color:rgb(var(--label-blue-03,11 51 246))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-entity-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-entity-icon-background:rgb(var(--label-blue-08,200 210 253));--mds-entity-icon-color:rgb(var(--label-blue-03,11 51 246))}}"};var MdsEntity=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.onSlotChange=function(){t.hasDetails=hasChildWithSlot(t.hostElement,"detail");t.hasActions=hasChildWithSlot(t.hostElement,"action")}}e.prototype.checkAvatar=function(){var e=false;if(this.src!==undefined){e=true}if(this.icon!==undefined){e=true}if(this.initials!==undefined){e=true}if(this.await){return false}return e};e.prototype.componentWillLoad=function(){this.onSlotChange()};e.prototype.render=function(){return h(Host,{key:"
|
|
1
|
+
import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{h as hasChildWithSlot}from"./slot-C0o_l0td.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsEntityCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-avatar,mds-spinner):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-entity-background:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-entity-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-entity-detail-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-entity-icon-background:rgb(var(--label-blue-09,216 222 254));--mds-entity-icon-radius:var(--radius-md,12px);--mds-entity-icon-color:rgb(var(--label-blue-04,63 94 248));align-items:stretch;background-color:var(--mds-entity-background,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));border-radius:var(--radius-lg,16px);-webkit-box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:var(--mds-entity-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));display:flex;gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*200)}.delete,.preview,.spinner{border-radius:var(--radius-md,12px);flex-shrink:0;width:calc(var(--spacing,.0025rem)*1100)}.preview{--mds-avatar-radius:var(--mds-entity-icon-radius,var(--radius-md,12px))}.preview:not([variant]){--mds-avatar-color:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)));--mds-avatar-background-color:var(--mds-entity-icon-background,rgb(var(--label-blue-09,216 222 254)))}.preview,.spinner{align-items:center;aspect-ratio:var(--aspect-square,1/1);display:inline-flex;justify-content:center}.spinner{background-color:#0000;display:none;fill:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)))}:host([await]:not([await=false])) .spinner{display:inline-flex}mds-spinner{height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}.infos{display:flex;flex-direction:column;flex-grow:1;gap:0;justify-content:center;min-width:0;white-space:nowrap}.details{align-items:baseline;color:var(--mds-entity-detail-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));display:flex;gap:calc(var(--spacing,.0025rem)*100)}.details--hidden{display:none}.actions{align-items:center;display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}::slotted([slot=action]){aspect-ratio:var(--aspect-square,1/1);height:auto;width:calc(var(--spacing,.0025rem)*1100)}::slotted(*){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title{display:flex;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([pref-contrast=more]){--mds-entity-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-entity-icon-background:rgb(var(--label-blue-08,200 210 253));--mds-entity-icon-color:rgb(var(--label-blue-03,11 51 246))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-entity-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-entity-icon-background:rgb(var(--label-blue-08,200 210 253));--mds-entity-icon-color:rgb(var(--label-blue-03,11 51 246))}}"};var MdsEntity=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.onSlotChange=function(){t.hasDetails=hasChildWithSlot(t.hostElement,"detail");t.hasActions=hasChildWithSlot(t.hostElement,"action")}}e.prototype.checkAvatar=function(){var e=false;if(this.src!==undefined){e=true}if(this.icon!==undefined){e=true}if(this.initials!==undefined){e=true}if(this.await){return false}return e};e.prototype.componentWillLoad=function(){this.onSlotChange()};e.prototype.render=function(){return h(Host,{key:"cb3c2be3e506034cbf78fc582883ec70fe4ce52c","pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"c210813741661e3effca7d633acadd8ee7ba0c68",class:"spinner",part:"spinner"},h("mds-spinner",{key:"0f9d434d5ae11f3c21d80652d5cc8658e2b79598",running:true})),this.checkAvatar()&&h("mds-avatar",{key:"51856b623d394a415440040d70e5c70f0361f042",class:"preview",icon:this.icon,initials:this.initials,src:this.src,tone:this.tone,variant:this.variant,part:"avatar"}),h("div",{key:"2dc821793ac9eb240396d9473ec1273f575163bd",class:"infos"},h("slot",{key:"7c5966d531f51e026ca026ce2a8ffe10ad05b1fe"}),h("div",{key:"deb20b1879f70df94a6021017f5a44a293e2f77c",class:clsx("details",!this.hasDetails&&"details--hidden")},h("slot",{key:"6f5a7db95c7d9d5c53c6685e27379fa44022e58b",name:"detail",onSlotchange:this.onSlotChange}))),h("div",{key:"3eedebf789952f6e1ebae3b138e676b1b0a715cc",class:clsx("actions",!this.hasActions&&"actions--hidden")},h("slot",{key:"412bb98abc59738d75516e805bbc082ffcb00797",name:"action",onSlotchange:this.onSlotChange})))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsEntity.style=mdsEntityCss();export{MdsEntity as mds_entity};
|