@maggioli-design-system/magma 2.11.0 → 2.12.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 -2
- package/CHANGELOG.md +38 -0
- package/README.md +9 -6
- package/agents/color.md +1 -0
- package/agents/mcp.md +5 -5
- package/agents/patterns/actions.md +4 -3
- package/agents/patterns/app-shell.md +70 -22
- package/agents/patterns/density.md +4 -3
- package/agents/patterns/previews/app-shell/back-office.dark.webp +0 -0
- package/agents/patterns/previews/app-shell/back-office.html +2 -2
- package/agents/patterns/previews/app-shell/back-office.light.webp +0 -0
- package/agents/patterns/previews/app-shell/many-sections.html +1 -1
- package/agents/patterns/previews/app-shell/public-service.dark.webp +0 -0
- package/agents/patterns/previews/app-shell/public-service.html +2 -2
- package/agents/patterns/previews/app-shell/public-service.light.webp +0 -0
- package/agents/patterns/previews/app-shell/section-menus.dark.webp +0 -0
- package/agents/patterns/previews/app-shell/section-menus.html +68 -0
- package/agents/patterns/previews/app-shell/section-menus.light.webp +0 -0
- package/agents/patterns/previews/empty-state/not-found.dark.webp +0 -0
- package/agents/patterns/previews/empty-state/not-found.html +2 -2
- package/agents/patterns/previews/empty-state/not-found.light.webp +0 -0
- package/agents/patterns/previews/item-list/queue-of-a-desk.dark.webp +0 -0
- package/agents/patterns/previews/item-list/queue-of-a-desk.light.webp +0 -0
- package/agents/patterns/previews/item-list/requests-of-an-office.dark.webp +0 -0
- package/agents/patterns/previews/item-list/requests-of-an-office.light.webp +0 -0
- package/agents/patterns/previews/list-with-filters/act-on-many.dark.webp +0 -0
- package/agents/patterns/previews/list-with-filters/act-on-many.html +2 -2
- package/agents/patterns/previews/list-with-filters/act-on-many.light.webp +0 -0
- package/agents/patterns/previews/list-with-filters/find-and-open.dark.webp +0 -0
- package/agents/patterns/previews/list-with-filters/find-and-open.html +2 -2
- package/agents/patterns/previews/list-with-filters/find-and-open.light.webp +0 -0
- package/agents/patterns/previews/list-with-filters/show-new-items.dark.webp +0 -0
- package/agents/patterns/previews/list-with-filters/show-new-items.html +2 -2
- package/agents/patterns/previews/list-with-filters/show-new-items.light.webp +0 -0
- package/agents/patterns/previews/loading/first-load.dark.webp +0 -0
- package/agents/patterns/previews/loading/first-load.light.webp +0 -0
- package/agents/patterns/previews/loading/keep-while-reloading.dark.webp +0 -0
- package/agents/patterns/previews/loading/keep-while-reloading.light.webp +0 -0
- package/agents/patterns/previews/loading/long-load-measured.dark.webp +0 -0
- package/agents/patterns/previews/loading/long-load-measured.light.webp +0 -0
- package/agents/patterns/previews/loading/long-load.dark.webp +0 -0
- package/agents/patterns/previews/loading/long-load.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-failed-elsewhere.light.webp +0 -0
- package/agents/patterns/previews/message-placement/app-failed.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/app-failed.html +2 -2
- package/agents/patterns/previews/message-placement/app-failed.light.webp +0 -0
- package/agents/patterns/previews/record-detail/ask-for-words.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/ask-for-words.html +2 -2
- package/agents/patterns/previews/record-detail/ask-for-words.light.webp +0 -0
- package/agents/patterns/previews/record-detail/edit-data.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/edit-data.html +2 -2
- package/agents/patterns/previews/record-detail/edit-data.light.webp +0 -0
- package/agents/patterns/previews/record-detail/read-the-data.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/read-the-data.html +2 -2
- package/agents/patterns/previews/record-detail/read-the-data.light.webp +0 -0
- package/agents/patterns/previews/record-detail/record-changed.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/record-changed.html +2 -2
- package/agents/patterns/previews/record-detail/record-changed.light.webp +0 -0
- package/agents/patterns/previews/record-detail/run-at-once.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/run-at-once.html +2 -2
- package/agents/patterns/previews/record-detail/run-at-once.light.webp +0 -0
- package/agents/patterns/previews/record-detail/work-on-it.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/work-on-it.html +2 -2
- package/agents/patterns/previews/record-detail/work-on-it.light.webp +0 -0
- package/agents/patterns/previews/surfaces/band.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/band.html +2 -2
- package/agents/patterns/previews/surfaces/band.light.webp +0 -0
- package/agents/patterns/previews/surfaces/canvas.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/canvas.html +2 -2
- package/agents/patterns/previews/surfaces/canvas.light.webp +0 -0
- package/agents/patterns/previews/titles/page.dark.webp +0 -0
- package/agents/patterns/previews/widths/page.dark.webp +0 -0
- package/agents/patterns/previews/widths/page.html +2 -2
- package/agents/patterns/previews/widths/page.light.webp +0 -0
- package/agents/patterns/rhythm.md +2 -1
- package/agents/patterns/surfaces.md +4 -3
- package/agents/patterns/titles.md +4 -3
- package/agents/patterns/widths.md +4 -3
- package/agents/patterns.md +8 -7
- package/agents/theming.md +7 -0
- package/dist/cjs/{aria-CzO5Rp1y.js → aria-r1anAHBr.js} +12 -0
- package/dist/cjs/{floating-controller-DaFymQCT.js → floating-controller-B4YhrWm8.js} +1 -1
- package/dist/cjs/{index-Bg68W-da.js → index-Csgx951d.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-CaR39iYg.js → locale-DgMC52AD.js} +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/mds-badge.cjs.entry.js +2 -2
- package/dist/cjs/mds-banner_3.cjs.entry.js +5 -5
- package/dist/cjs/mds-book.cjs.entry.js +2 -2
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +6 -4
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +78 -16
- package/dist/cjs/mds-calendar_2.cjs.entry.js +8 -8
- 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 +2 -2
- package/dist/cjs/mds-details.cjs.entry.js +2 -2
- package/dist/cjs/mds-dropdown.cjs.entry.js +6 -6
- package/dist/cjs/mds-emoji.cjs.entry.js +2 -2
- package/dist/cjs/mds-entity.cjs.entry.js +2 -2
- package/dist/cjs/mds-file-preview.cjs.entry.js +5 -5
- package/dist/cjs/mds-file.cjs.entry.js +5 -5
- package/dist/cjs/mds-filter-item.cjs.entry.js +5 -5
- package/dist/cjs/mds-filter.cjs.entry.js +4 -4
- package/dist/cjs/mds-header-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-header.cjs.entry.js +3 -3
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +3 -3
- package/dist/cjs/mds-hr.cjs.entry.js +2 -2
- package/dist/cjs/mds-img.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +4 -4
- package/dist/cjs/mds-input-date.cjs.entry.js +6 -6
- package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-otp.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-range.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-select.cjs.entry.js +6 -6
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +6 -6
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +5 -5
- package/dist/cjs/mds-input-upload.cjs.entry.js +7 -7
- package/dist/cjs/mds-input.cjs.entry.js +8 -8
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +3 -3
- package/dist/cjs/mds-keyboard.cjs.entry.js +4 -4
- package/dist/cjs/mds-kpi-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-kpi.cjs.entry.js +1 -1
- package/dist/cjs/mds-label.cjs.entry.js +3 -3
- package/dist/cjs/mds-link.cjs.entry.js +5 -5
- 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 +3 -3
- package/dist/cjs/mds-modal.cjs.entry.js +34 -15
- package/dist/cjs/mds-note.cjs.entry.js +4 -4
- package/dist/cjs/mds-notification.cjs.entry.js +3 -3
- package/dist/cjs/mds-paginator-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-paginator.cjs.entry.js +4 -4
- package/dist/cjs/mds-policy-ai.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-animation.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-language.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-mode.cjs.entry.js +22 -13
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-theme.cjs.entry.js +31 -8
- package/dist/cjs/mds-pref.cjs.entry.js +3 -25
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-features.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-progress_2.cjs.entry.js +4 -4
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-push-notification.cjs.entry.js +4 -4
- package/dist/cjs/mds-quote.cjs.entry.js +2 -2
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu.cjs.entry.js +5 -5
- package/dist/cjs/mds-separator.cjs.entry.js +2 -2
- package/dist/cjs/mds-status-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-tab-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-tab_2.cjs.entry.js +6 -6
- package/dist/cjs/mds-table-body.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-header.cjs.entry.js +3 -3
- package/dist/cjs/mds-table-row.cjs.entry.js +4 -4
- package/dist/cjs/mds-table.cjs.entry.js +4 -4
- package/dist/cjs/mds-text.cjs.entry.js +2 -2
- package/dist/cjs/mds-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/mds-toast.cjs.entry.js +3 -3
- package/dist/cjs/mds-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/mds-tree-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-tree.cjs.entry.js +1 -1
- package/dist/cjs/mds-url-view.cjs.entry.js +4 -4
- package/dist/cjs/mds-usage.cjs.entry.js +4 -4
- package/dist/cjs/mds-video-wall.cjs.entry.js +2 -2
- package/dist/cjs/mds-zero.cjs.entry.js +3 -3
- package/dist/cjs/{preference-CQQ3eb9W.js → preference-DhNxLZ4R.js} +20 -0
- package/dist/collection/common/aria.js +12 -1
- package/dist/collection/common/preference.js +19 -1
- package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-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 +2 -2
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack/documentation.json +2 -2
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +2 -2
- package/dist/collection/components/mds-badge/AGENTS.md +1 -1
- package/dist/collection/components/mds-badge/documentation.json +1 -1
- package/dist/collection/components/mds-badge/mds-badge.css +15 -10
- package/dist/collection/components/mds-banner/AGENTS.md +1 -1
- package/dist/collection/components/mds-banner/documentation.json +2 -2
- package/dist/collection/components/mds-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-book/AGENTS.md +1 -1
- package/dist/collection/components/mds-book/documentation.json +1 -1
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb/documentation.json +2 -2
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +2 -2
- package/dist/collection/components/mds-button/AGENTS.md +9 -4
- package/dist/collection/components/mds-button/documentation.json +100 -7
- package/dist/collection/components/mds-button/examples.md +73 -0
- package/dist/collection/components/mds-button/mds-button.css +122 -14
- package/dist/collection/components/mds-button/mds-button.js +139 -13
- package/dist/collection/components/mds-button/mistakes.md +35 -0
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +7 -2
- package/dist/collection/components/mds-button-dropdown/documentation.json +97 -4
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +69 -3
- 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 +2 -2
- package/dist/collection/components/mds-calendar/mds-calendar.js +5 -5
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-calendar-cell/documentation.json +2 -2
- 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 +2 -2
- package/dist/collection/components/mds-chip/mds-chip.css +3 -2
- package/dist/collection/components/mds-chip/mds-chip.js +1 -1
- package/dist/collection/components/mds-details/AGENTS.md +1 -1
- package/dist/collection/components/mds-details/documentation.json +1 -1
- package/dist/collection/components/mds-details/mds-details.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.css +12 -14
- 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 +2 -2
- 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.css +3 -2
- 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 +2 -2
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +3 -2
- 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.css +3 -2
- 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.css +3 -2
- 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 +2 -2
- package/dist/collection/components/mds-header/mds-header.css +3 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/collection/components/mds-input/AGENTS.md +1 -1
- package/dist/collection/components/mds-input/documentation.json +2 -2
- package/dist/collection/components/mds-input/mds-input.css +16 -8
- package/dist/collection/components/mds-input/mds-input.js +3 -3
- package/dist/collection/components/mds-input-date/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date/documentation.json +2 -2
- package/dist/collection/components/mds-input-date/mds-input-date.css +3 -2
- 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 +2 -2
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +3 -2
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +2 -2
- 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 +2 -2
- 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.css +3 -2
- 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.css +15 -11
- 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.css +3 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/collection/components/mds-keyboard/mds-keyboard.css +3 -2
- 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.css +9 -6
- 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 +2 -2
- package/dist/collection/components/mds-label/mds-label.css +3 -2
- package/dist/collection/components/mds-link/AGENTS.md +1 -1
- package/dist/collection/components/mds-link/documentation.json +1 -1
- package/dist/collection/components/mds-link/mds-link.js +3 -3
- 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 +2 -2
- package/dist/collection/components/mds-mention/mds-mention.js +1 -1
- package/dist/collection/components/mds-modal/AGENTS.md +3 -3
- package/dist/collection/components/mds-modal/documentation.json +4 -4
- package/dist/collection/components/mds-modal/mds-modal.css +3 -2
- package/dist/collection/components/mds-modal/mds-modal.js +32 -13
- package/dist/collection/components/mds-note/AGENTS.md +1 -1
- package/dist/collection/components/mds-note/documentation.json +2 -2
- package/dist/collection/components/mds-note/mds-note.css +3 -2
- 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.css +3 -2
- 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 +2 -2
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +1 -1
- package/dist/collection/components/mds-pref/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref/documentation.json +4 -9
- package/dist/collection/components/mds-pref/examples.md +1 -1
- package/dist/collection/components/mds-pref/mds-pref.js +1 -29
- package/dist/collection/components/mds-pref/mistakes.md +1 -1
- package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +1 -1
- package/dist/collection/components/mds-pref-mode/AGENTS.md +3 -2
- package/dist/collection/components/mds-pref-mode/documentation.json +5 -5
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +2 -1
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +20 -11
- package/dist/collection/components/mds-pref-mode/mistakes.md +1 -1
- package/dist/collection/components/mds-pref-theme/AGENTS.md +6 -5
- package/dist/collection/components/mds-pref-theme/documentation.json +7 -7
- package/dist/collection/components/mds-pref-theme/examples.md +1 -1
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +32 -9
- package/dist/collection/components/mds-pref-theme/mistakes.md +1 -1
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +2 -2
- package/dist/collection/components/mds-pref-theme-item/documentation.json +3 -3
- 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.css +3 -2
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +1 -1
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-row/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +3 -2
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +1 -1
- package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-header/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
- package/dist/collection/components/mds-price-table-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +3 -2
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +1 -1
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list-item/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
- package/dist/collection/components/mds-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-progress/documentation.json +1 -1
- package/dist/collection/components/mds-progress/mds-progress.css +3 -2
- 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 +2 -2
- package/dist/collection/components/mds-push-notification/mds-push-notification.css +3 -2
- 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 +2 -2
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +2 -2
- package/dist/collection/components/mds-quote/AGENTS.md +1 -1
- package/dist/collection/components/mds-quote/documentation.json +1 -1
- package/dist/collection/components/mds-quote/mds-quote.js +1 -1
- package/dist/collection/components/mds-radial-menu/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-menu/documentation.json +2 -2
- 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 +2 -2
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
- package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.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 +2 -2
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +3 -2
- 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 +1 -1
- package/dist/collection/components/mds-tab/documentation.json +1 -1
- package/dist/collection/components/mds-tab/mds-tab.css +3 -2
- package/dist/collection/components/mds-tab/mds-tab.js +2 -2
- package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +3 -2
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +1 -1
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar-item/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +3 -2
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +1 -1
- package/dist/collection/components/mds-tab-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-item/documentation.json +2 -2
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +1 -1
- package/dist/collection/components/mds-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-table/documentation.json +1 -1
- package/dist/collection/components/mds-table/mds-table.css +6 -4
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/collection/components/mds-toast/mds-toast.js +1 -1
- package/dist/collection/components/mds-toast-region/AGENTS.md +1 -1
- package/dist/collection/components/mds-toast-region/documentation.json +1 -1
- package/dist/collection/components/mds-toast-region/mds-toast-region.js +1 -1
- package/dist/collection/components/mds-tooltip/AGENTS.md +1 -1
- package/dist/collection/components/mds-tooltip/documentation.json +1 -1
- package/dist/collection/components/mds-tooltip/mds-tooltip.css +4 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/collection/components/mds-url-view/mds-url-view.css +3 -2
- 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.css +3 -2
- package/dist/collection/components/mds-usage/mds-usage.js +1 -1
- package/dist/collection/components/mds-video-wall/AGENTS.md +1 -1
- package/dist/collection/components/mds-video-wall/documentation.json +1 -1
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +1 -1
- package/dist/collection/components/mds-zero/AGENTS.md +1 -1
- package/dist/collection/components/mds-zero/documentation.json +1 -1
- package/dist/collection/components/mds-zero/mds-zero.css +3 -2
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/collection/type/button.js +3 -0
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion.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-book.js +1 -1
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button-group.js +1 -1
- package/dist/components/mds-button.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-card-content.js +1 -1
- package/dist/components/mds-card-footer.js +1 -1
- package/dist/components/mds-card-header.js +1 -1
- package/dist/components/mds-card-media.js +1 -1
- package/dist/components/mds-card.js +1 -1
- package/dist/components/mds-chip.js +1 -1
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown.js +1 -1
- package/dist/components/mds-emoji.js +3 -3
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +1 -1
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-tip.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-link.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme-item.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features-row.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-header.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-price-table-list.js +1 -1
- package/dist/components/mds-price-table.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-separator.js +1 -1
- package/dist/components/mds-spinner.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-bar.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-tab.js +1 -1
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast-region.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-3rr6yzu-.js +1 -0
- package/dist/components/{p-DvDB_L_5.js → p-BBZyH3mn.js} +1 -1
- package/dist/components/{p-C7rDjrH4.js → p-BBrPpCNK.js} +1 -1
- package/dist/components/p-BE05D6Pe.js +1 -0
- package/dist/components/{p-ikNX7XDH.js → p-BI1ShBQG.js} +1 -1
- package/dist/components/p-BQSO-HFx.js +1 -0
- package/dist/components/{p-CVRN4LDc.js → p-Bbrei_yQ.js} +1 -1
- package/dist/components/{p-DhpcFZrc.js → p-BpND63Kl.js} +1 -1
- package/dist/components/{p-DqdlT4UG.js → p-BuhoBOYR.js} +1 -1
- package/dist/components/p-Bw-eI2ca.js +1 -0
- package/dist/components/{p-DTtmr_Y9.js → p-BwwiliWt.js} +1 -1
- package/dist/components/{p-COkn4Vtq.js → p-C6LU1s8K.js} +1 -1
- package/dist/components/{p-Br6-kva-.js → p-CWOW2Vna.js} +1 -1
- package/dist/components/{p-B6AFku7a.js → p-CZX6N7ce.js} +1 -1
- package/dist/components/{p-BFDRt7-n.js → p-CZwKeFQT.js} +1 -1
- package/dist/components/{p-CKnbQQUb.js → p-ClvoVgmw.js} +1 -1
- package/dist/{magma-components/p-CLhuNxYQ.js → components/p-CpuUmvdl.js} +1 -1
- package/dist/components/{p-C_Pc94vn.js → p-CrOv4KdL.js} +1 -1
- package/dist/components/{p-CZjwSwe5.js → p-CvbuCEYD.js} +2 -2
- package/dist/components/{p-D8CloC8I.js → p-DN1yF-xO.js} +1 -1
- package/dist/components/{p-4LbHmDXv.js → p-DUgCzZw9.js} +1 -1
- package/dist/components/{p-DJd8f8dz.js → p-DWOg4-dH.js} +1 -1
- package/dist/components/{p-FsctOap9.js → p-DZ4_zLTp.js} +1 -1
- package/dist/components/{p-gLo3t_qO.js → p-Do7IoDLD.js} +2 -2
- package/dist/components/{p-BiW6luA5.js → p-DrtIqOQn.js} +1 -1
- package/dist/components/p-DwKxtKwS.js +1 -0
- package/dist/components/{p-DOdUioZq.js → p-F0qhFsF0.js} +1 -1
- package/dist/components/p-J48g0t65.js +1 -0
- package/dist/components/{p-BaynxVRZ.js → p-NNPsVjnj.js} +1 -1
- package/dist/components/{p-CP5Qw9_T.js → p-UfaGafRS.js} +1 -1
- package/dist/components/{p-DdzJfsw7.js → p-Vgo7t88R.js} +1 -1
- package/dist/components/{p-D_RIY063.js → p-j5Hnbfv9.js} +1 -1
- package/dist/components/{p-DW6ie49j.js → p-k_Ly95Tj.js} +1 -1
- package/dist/components/{p-DlglisEn.js → p-lXKBo6V3.js} +1 -1
- package/dist/components/{p-DGhzWuCS.js → p-oFHbHRLX.js} +1 -1
- package/dist/documentation.json +263 -77
- package/dist/esm/{aria-Cvhn9asj.js → aria-DwKxtKwS.js} +12 -1
- package/dist/esm/{floating-controller-BVlbYYkf.js → floating-controller-xixU_s1w.js} +1 -1
- package/dist/esm/{index-BJVvHlvf.js → index-DEL0bLpb.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-B6cOkl4I.js → locale-DhP1Ge2o.js} +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm/mds-accordion.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +1 -1
- package/dist/esm/mds-badge.entry.js +2 -2
- package/dist/esm/mds-banner_3.entry.js +5 -5
- package/dist/esm/mds-book.entry.js +2 -2
- package/dist/esm/mds-breadcrumb.entry.js +2 -2
- package/dist/esm/mds-button-dropdown.entry.js +6 -4
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +78 -16
- package/dist/esm/mds-calendar_2.entry.js +8 -8
- 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 +2 -2
- package/dist/esm/mds-details.entry.js +2 -2
- package/dist/esm/mds-dropdown.entry.js +6 -6
- package/dist/esm/mds-emoji.entry.js +2 -2
- package/dist/esm/mds-entity.entry.js +2 -2
- package/dist/esm/mds-file-preview.entry.js +5 -5
- package/dist/esm/mds-file.entry.js +5 -5
- package/dist/esm/mds-filter-item.entry.js +5 -5
- package/dist/esm/mds-filter.entry.js +4 -4
- package/dist/esm/mds-header-bar.entry.js +3 -3
- package/dist/esm/mds-header.entry.js +3 -3
- package/dist/esm/mds-horizontal-scroll.entry.js +3 -3
- package/dist/esm/mds-hr.entry.js +2 -2
- package/dist/esm/mds-img.entry.js +2 -2
- package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +4 -4
- package/dist/esm/mds-input-date.entry.js +6 -6
- package/dist/esm/mds-input-field.entry.js +1 -1
- package/dist/esm/mds-input-otp.entry.js +3 -3
- package/dist/esm/mds-input-range.entry.js +3 -3
- package/dist/esm/mds-input-select.entry.js +6 -6
- package/dist/esm/mds-input-switch_2.entry.js +6 -6
- package/dist/esm/mds-input-tip_2.entry.js +5 -5
- package/dist/esm/mds-input-upload.entry.js +7 -7
- package/dist/esm/mds-input.entry.js +8 -8
- package/dist/esm/mds-keyboard-key.entry.js +3 -3
- package/dist/esm/mds-keyboard.entry.js +4 -4
- package/dist/esm/mds-kpi-item.entry.js +3 -3
- package/dist/esm/mds-kpi.entry.js +1 -1
- package/dist/esm/mds-label.entry.js +3 -3
- package/dist/esm/mds-link.entry.js +5 -5
- 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 +3 -3
- package/dist/esm/mds-modal.entry.js +34 -15
- package/dist/esm/mds-note.entry.js +4 -4
- package/dist/esm/mds-notification.entry.js +3 -3
- package/dist/esm/mds-paginator-item.entry.js +2 -2
- package/dist/esm/mds-paginator.entry.js +4 -4
- package/dist/esm/mds-policy-ai.entry.js +3 -3
- package/dist/esm/mds-pref-animation.entry.js +3 -3
- package/dist/esm/mds-pref-consumption.entry.js +3 -3
- package/dist/esm/mds-pref-contrast.entry.js +3 -3
- package/dist/esm/mds-pref-language-item.entry.js +3 -3
- package/dist/esm/mds-pref-language.entry.js +3 -3
- package/dist/esm/mds-pref-mode.entry.js +22 -13
- package/dist/esm/mds-pref-theme-item.entry.js +1 -1
- package/dist/esm/mds-pref-theme.entry.js +31 -8
- package/dist/esm/mds-pref.entry.js +3 -25
- package/dist/esm/mds-price-table-features-cell.entry.js +3 -3
- package/dist/esm/mds-price-table-features-row.entry.js +3 -3
- package/dist/esm/mds-price-table-features.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/mds-price-table.entry.js +1 -1
- package/dist/esm/mds-progress_2.entry.js +4 -4
- package/dist/esm/mds-push-notification-item.entry.js +4 -4
- package/dist/esm/mds-push-notification.entry.js +4 -4
- package/dist/esm/mds-quote.entry.js +2 -2
- package/dist/esm/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm/mds-radial-menu.entry.js +5 -5
- package/dist/esm/mds-separator.entry.js +2 -2
- package/dist/esm/mds-status-bar.entry.js +3 -3
- package/dist/esm/mds-stepper-bar-item.entry.js +3 -3
- package/dist/esm/mds-stepper-bar.entry.js +1 -1
- package/dist/esm/mds-tab-bar-item.entry.js +4 -4
- package/dist/esm/mds-tab-bar.entry.js +3 -3
- package/dist/esm/mds-tab_2.entry.js +6 -6
- package/dist/esm/mds-table-body.entry.js +2 -2
- package/dist/esm/mds-table-footer.entry.js +2 -2
- package/dist/esm/mds-table-header-cell.entry.js +2 -2
- package/dist/esm/mds-table-header.entry.js +3 -3
- package/dist/esm/mds-table-row.entry.js +4 -4
- package/dist/esm/mds-table.entry.js +4 -4
- package/dist/esm/mds-text.entry.js +2 -2
- package/dist/esm/mds-toast-region.entry.js +1 -1
- package/dist/esm/mds-toast.entry.js +3 -3
- package/dist/esm/mds-tooltip.entry.js +5 -5
- package/dist/esm/mds-tree-item.entry.js +3 -3
- package/dist/esm/mds-tree.entry.js +1 -1
- package/dist/esm/mds-url-view.entry.js +4 -4
- package/dist/esm/mds-usage.entry.js +4 -4
- package/dist/esm/mds-video-wall.entry.js +2 -2
- package/dist/esm/mds-zero.entry.js +3 -3
- package/dist/esm/{preference-C5XjgGCb.js → preference-C8foBO86.js} +19 -1
- package/dist/esm-es5/aria-DwKxtKwS.js +12 -0
- package/dist/esm-es5/{floating-controller-BVlbYYkf.js → floating-controller-xixU_s1w.js} +1 -1
- package/dist/esm-es5/{index-BJVvHlvf.js → index-DEL0bLpb.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{locale-B6cOkl4I.js → locale-DhP1Ge2o.js} +18 -18
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +2 -2
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +4 -4
- package/dist/esm-es5/mds-book.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
- package/dist/esm-es5/mds-button-dropdown.entry.js +6 -4
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +39 -17
- package/dist/esm-es5/mds-calendar_2.entry.js +4 -4
- 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 +2 -2
- package/dist/esm-es5/mds-details.entry.js +2 -2
- package/dist/esm-es5/mds-dropdown.entry.js +13 -13
- package/dist/esm-es5/mds-emoji.entry.js +2 -2
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +7 -7
- package/dist/esm-es5/mds-file.entry.js +3 -3
- package/dist/esm-es5/mds-filter-item.entry.js +2 -2
- package/dist/esm-es5/mds-filter.entry.js +2 -2
- package/dist/esm-es5/mds-header-bar.entry.js +2 -2
- package/dist/esm-es5/mds-header.entry.js +2 -2
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +2 -2
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +3 -3
- package/dist/esm-es5/mds-input-date-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-date.entry.js +3 -3
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-otp.entry.js +2 -2
- package/dist/esm-es5/mds-input-range.entry.js +2 -2
- package/dist/esm-es5/mds-input-select.entry.js +10 -10
- package/dist/esm-es5/mds-input-switch_2.entry.js +2 -2
- package/dist/esm-es5/mds-input-tip_2.entry.js +3 -3
- package/dist/esm-es5/mds-input-upload.entry.js +2 -2
- package/dist/esm-es5/mds-input.entry.js +3 -3
- package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
- package/dist/esm-es5/mds-keyboard.entry.js +2 -2
- package/dist/esm-es5/mds-kpi-item.entry.js +3 -3
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +1 -1
- package/dist/esm-es5/mds-link.entry.js +2 -2
- 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 +2 -2
- package/dist/esm-es5/mds-modal.entry.js +23 -11
- package/dist/esm-es5/mds-note.entry.js +2 -2
- package/dist/esm-es5/mds-notification.entry.js +2 -2
- package/dist/esm-es5/mds-paginator-item.entry.js +2 -2
- package/dist/esm-es5/mds-paginator.entry.js +3 -3
- package/dist/esm-es5/mds-policy-ai.entry.js +2 -2
- package/dist/esm-es5/mds-pref-animation.entry.js +2 -2
- package/dist/esm-es5/mds-pref-consumption.entry.js +2 -2
- package/dist/esm-es5/mds-pref-contrast.entry.js +3 -3
- package/dist/esm-es5/mds-pref-language-item.entry.js +2 -2
- package/dist/esm-es5/mds-pref-language.entry.js +2 -2
- package/dist/esm-es5/mds-pref-mode.entry.js +13 -3
- package/dist/esm-es5/mds-pref-theme-item.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme.entry.js +19 -6
- package/dist/esm-es5/mds-pref.entry.js +4 -12
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +2 -2
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list.entry.js +2 -2
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +3 -3
- package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification.entry.js +6 -6
- package/dist/esm-es5/mds-quote.entry.js +2 -2
- package/dist/esm-es5/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu.entry.js +4 -4
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +3 -3
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +2 -2
- package/dist/esm-es5/mds-stepper-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar-item.entry.js +2 -2
- package/dist/esm-es5/mds-tab-bar.entry.js +2 -2
- package/dist/esm-es5/mds-tab_2.entry.js +3 -3
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +2 -2
- package/dist/esm-es5/mds-table-header-cell.entry.js +2 -2
- package/dist/esm-es5/mds-table-header.entry.js +2 -2
- package/dist/esm-es5/mds-table-row.entry.js +2 -2
- package/dist/esm-es5/mds-table.entry.js +2 -2
- package/dist/esm-es5/mds-text.entry.js +2 -2
- package/dist/esm-es5/mds-toast-region.entry.js +1 -1
- package/dist/esm-es5/mds-toast.entry.js +2 -2
- package/dist/esm-es5/mds-tooltip.entry.js +2 -2
- package/dist/esm-es5/mds-tree-item.entry.js +2 -2
- package/dist/esm-es5/mds-tree.entry.js +1 -1
- package/dist/esm-es5/mds-url-view.entry.js +2 -2
- package/dist/esm-es5/mds-usage.entry.js +3 -3
- package/dist/esm-es5/mds-video-wall.entry.js +2 -2
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/esm-es5/{preference-C5XjgGCb.js → preference-C8foBO86.js} +14 -4
- package/dist/hydrate/index.js +343 -216
- package/dist/hydrate/index.mjs +343 -216
- package/dist/lint/core/patterns.d.ts +26 -16
- package/dist/lint/core/patterns.js +55 -38
- package/dist/lint/mcp/tools.json +7 -7
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-0384db44.system.entry.js → p-00d2ef14.system.entry.js} +5 -5
- package/dist/magma-components/{p-ff65fc97.entry.js → p-02aed12a.entry.js} +1 -1
- package/dist/magma-components/{p-7c055074.entry.js → p-08f7a84b.entry.js} +1 -1
- package/dist/magma-components/{p-8239e526.system.entry.js → p-09a7c1de.system.entry.js} +1 -1
- package/dist/magma-components/{p-18244fd7.system.entry.js → p-0da5c696.system.entry.js} +3 -3
- package/dist/magma-components/{p-5575f198.entry.js → p-0df067b4.entry.js} +1 -1
- package/dist/magma-components/{p-b6412ddd.system.entry.js → p-0e1d239b.system.entry.js} +1 -1
- package/dist/magma-components/{p-ac161cb5.entry.js → p-0f4c2de6.entry.js} +1 -1
- package/dist/magma-components/{p-0c8f22dc.system.entry.js → p-11456781.system.entry.js} +2 -2
- package/dist/magma-components/{p-a2e3a545.entry.js → p-14de26d5.entry.js} +1 -1
- package/dist/magma-components/p-163eccbd.entry.js +1 -0
- package/dist/magma-components/{p-844bce77.entry.js → p-167ba07a.entry.js} +1 -1
- package/dist/magma-components/{p-f4fc9f29.system.entry.js → p-16bbff4e.system.entry.js} +1 -1
- package/dist/magma-components/{p-e059aaa9.entry.js → p-17249b74.entry.js} +1 -1
- package/dist/magma-components/{p-95ddc950.system.entry.js → p-188a55ac.system.entry.js} +3 -3
- package/dist/magma-components/{p-c9bd81c5.system.entry.js → p-1a53d9d0.system.entry.js} +7 -7
- package/dist/magma-components/{p-27254fbd.entry.js → p-1cc379d6.entry.js} +1 -1
- package/dist/magma-components/{p-ae9735e4.system.entry.js → p-1dc0d59c.system.entry.js} +2 -2
- package/dist/magma-components/{p-384d93dc.system.entry.js → p-1e24aafa.system.entry.js} +1 -1
- package/dist/magma-components/p-223efc32.entry.js +1 -0
- package/dist/magma-components/{p-1467ded5.system.entry.js → p-2454e4cd.system.entry.js} +2 -2
- package/dist/magma-components/{p-18b27217.entry.js → p-24a69c45.entry.js} +1 -1
- package/dist/magma-components/{p-fae9612b.system.entry.js → p-24fb2c5c.system.entry.js} +2 -2
- package/dist/magma-components/{p-ef1bdd44.entry.js → p-259d9380.entry.js} +1 -1
- package/dist/magma-components/{p-4fc0e294.entry.js → p-26b08e33.entry.js} +1 -1
- package/dist/magma-components/{p-c35ea44d.system.entry.js → p-27a32865.system.entry.js} +2 -2
- package/dist/magma-components/{p-299dab17.entry.js → p-2940499f.entry.js} +1 -1
- package/dist/magma-components/{p-6129954d.system.entry.js → p-2a5167e3.system.entry.js} +1 -1
- package/dist/magma-components/{p-ad13ade5.system.entry.js → p-2e825656.system.entry.js} +3 -3
- package/dist/magma-components/{p-308a4ae5.system.entry.js → p-2f4a7253.system.entry.js} +1 -1
- package/dist/magma-components/{p-29dd6d94.entry.js → p-2ffa4d4a.entry.js} +1 -1
- package/dist/magma-components/{p-d360e4c5.entry.js → p-32b3ad6f.entry.js} +1 -1
- package/dist/magma-components/{p-5686da49.system.entry.js → p-33129e0c.system.entry.js} +3 -3
- package/dist/magma-components/{p-9c2b67fc.system.entry.js → p-372fa5d4.system.entry.js} +3 -3
- package/dist/magma-components/p-380adee8.system.entry.js +5 -0
- package/dist/magma-components/{p-b0749f83.system.entry.js → p-390d0672.system.entry.js} +3 -3
- package/dist/magma-components/p-397c0686.entry.js +1 -0
- package/dist/magma-components/{p-e0049e96.system.entry.js → p-3a836de8.system.entry.js} +1 -1
- package/dist/magma-components/{p-fff26731.system.entry.js → p-3ba14295.system.entry.js} +2 -2
- package/dist/magma-components/{p-741f8f45.system.entry.js → p-3bf4f012.system.entry.js} +2 -2
- package/dist/magma-components/{p-5d56a7cd.system.entry.js → p-3c911608.system.entry.js} +3 -3
- package/dist/magma-components/{p-aac622ef.system.entry.js → p-3cf8ed46.system.entry.js} +1 -1
- package/dist/magma-components/{p-61e11cd0.system.entry.js → p-3ddae677.system.entry.js} +3 -3
- package/dist/magma-components/{p-2d2cdf0d.entry.js → p-3de37b32.entry.js} +1 -1
- package/dist/magma-components/{p-90d50492.system.entry.js → p-3f17a06f.system.entry.js} +2 -2
- package/dist/magma-components/{p-4f0153cd.entry.js → p-40c59c18.entry.js} +1 -1
- package/dist/magma-components/p-411fca2f.system.entry.js +14 -0
- package/dist/magma-components/{p-7f418ae1.entry.js → p-43c307f5.entry.js} +1 -1
- package/dist/magma-components/{p-14122f2d.entry.js → p-440d7942.entry.js} +1 -1
- package/dist/magma-components/{p-6a994dc1.entry.js → p-4541c233.entry.js} +1 -1
- package/dist/magma-components/{p-c915fba5.system.entry.js → p-45c26a24.system.entry.js} +1 -1
- package/dist/magma-components/{p-948ecde4.entry.js → p-4612bc78.entry.js} +2 -2
- package/dist/magma-components/{p-be2ca282.entry.js → p-4718a71d.entry.js} +1 -1
- package/dist/magma-components/{p-8a8cad6c.system.entry.js → p-48a1871f.system.entry.js} +1 -1
- package/dist/magma-components/{p-7ee31f2e.entry.js → p-4a1f7eb5.entry.js} +1 -1
- package/dist/magma-components/{p-adab176e.system.entry.js → p-4a2ed30e.system.entry.js} +2 -2
- package/dist/magma-components/{p-efe27253.system.entry.js → p-4a9ed4f7.system.entry.js} +1 -1
- package/dist/magma-components/{p-2d199db0.system.entry.js → p-4c3b3913.system.entry.js} +2 -2
- package/dist/magma-components/p-4c955367.entry.js +1 -0
- package/dist/magma-components/p-4ebb0a9e.entry.js +1 -0
- package/dist/magma-components/{p-02b106c2.entry.js → p-4f80bf37.entry.js} +1 -1
- package/dist/magma-components/{p-a65ce11a.system.entry.js → p-527569a3.system.entry.js} +2 -2
- package/dist/magma-components/{p-0d42ac4a.entry.js → p-52cc5a93.entry.js} +1 -1
- package/dist/magma-components/{p-3139988c.system.entry.js → p-54abba52.system.entry.js} +1 -1
- package/dist/magma-components/{p-4fd0fdb8.system.entry.js → p-555ba0e0.system.entry.js} +2 -2
- package/dist/magma-components/{p-5c8f408e.entry.js → p-56cf1cab.entry.js} +1 -1
- package/dist/magma-components/{p-bba4f1f0.system.entry.js → p-5794053b.system.entry.js} +10 -10
- package/dist/magma-components/{p-57ee6e32.entry.js → p-5a754d7b.entry.js} +1 -1
- package/dist/magma-components/{p-f09f3fe1.system.entry.js → p-5c6fdabd.system.entry.js} +3 -3
- package/dist/magma-components/{p-c683cd13.entry.js → p-5ca6063a.entry.js} +1 -1
- package/dist/magma-components/{p-ac099ed6.entry.js → p-5cb581df.entry.js} +1 -1
- package/dist/magma-components/{p-445198a1.entry.js → p-5d825728.entry.js} +1 -1
- package/dist/magma-components/{p-60b21db7.entry.js → p-5dfca9f0.entry.js} +1 -1
- package/dist/magma-components/{p-f181c679.system.entry.js → p-5f20592f.system.entry.js} +1 -1
- package/dist/magma-components/p-5f38e95b.entry.js +1 -0
- package/dist/magma-components/p-5f4bec31.entry.js +1 -0
- package/dist/magma-components/p-627f5956.entry.js +1 -0
- package/dist/magma-components/{p-a9caed77.entry.js → p-6336d979.entry.js} +1 -1
- package/dist/magma-components/{p-7837856f.entry.js → p-6352c2ea.entry.js} +1 -1
- package/dist/magma-components/{p-10d52280.entry.js → p-64884d84.entry.js} +1 -1
- package/dist/magma-components/{p-98e167e8.system.entry.js → p-64f86e46.system.entry.js} +2 -2
- package/dist/magma-components/{p-9a0f8eb1.entry.js → p-65ea6fc9.entry.js} +1 -1
- package/dist/magma-components/{p-cf42d6ea.system.entry.js → p-66f7f9b1.system.entry.js} +3 -3
- package/dist/magma-components/{p-13cfc01a.entry.js → p-68b0d45a.entry.js} +1 -1
- package/dist/magma-components/{p-b61546fd.entry.js → p-6a4d44e2.entry.js} +1 -1
- package/dist/magma-components/p-6a90caf5.system.entry.js +1 -0
- package/dist/magma-components/{p-dfab370b.entry.js → p-6c4f2de0.entry.js} +1 -1
- package/dist/magma-components/{p-12be0f43.system.entry.js → p-6f90c2c9.system.entry.js} +2 -2
- package/dist/magma-components/p-70faf379.entry.js +1 -0
- package/dist/magma-components/{p-e7f717ab.entry.js → p-71d03e56.entry.js} +1 -1
- package/dist/magma-components/{p-b30b487c.system.entry.js → p-720e9291.system.entry.js} +3 -3
- package/dist/magma-components/{p-bc054ffa.system.entry.js → p-724b7fff.system.entry.js} +2 -2
- package/dist/magma-components/{p-6896786e.entry.js → p-73dc7c66.entry.js} +1 -1
- package/dist/magma-components/{p-34421ef2.system.entry.js → p-7476cf76.system.entry.js} +3 -3
- package/dist/magma-components/{p-0fc41e34.system.entry.js → p-7701a318.system.entry.js} +1 -1
- package/dist/magma-components/{p-85bf9c93.entry.js → p-77707706.entry.js} +1 -1
- package/dist/magma-components/{p-c9553777.entry.js → p-78d00f88.entry.js} +1 -1
- package/dist/magma-components/{p-4f48c171.system.entry.js → p-79085c46.system.entry.js} +1 -1
- package/dist/magma-components/{p-ccffdf0b.system.entry.js → p-793072e1.system.entry.js} +23 -11
- package/dist/magma-components/{p-b2763352.entry.js → p-79392a0a.entry.js} +1 -1
- package/dist/magma-components/{p-7ff5552f.entry.js → p-7a33ab3c.entry.js} +1 -1
- package/dist/magma-components/{p-625de2e6.system.entry.js → p-7a4e8bc0.system.entry.js} +4 -4
- package/dist/magma-components/p-7a73fd19.system.entry.js +127 -0
- package/dist/magma-components/p-7b552dbe.entry.js +1 -0
- package/dist/magma-components/{p-84aac233.entry.js → p-7c13ccb0.entry.js} +1 -1
- package/dist/magma-components/{p-d81fcbde.system.entry.js → p-7e0a8194.system.entry.js} +5 -5
- package/dist/magma-components/{p-45b19935.system.entry.js → p-7fbdf896.system.entry.js} +3 -3
- package/dist/magma-components/{p-35c170ba.system.entry.js → p-804f4794.system.entry.js} +2 -2
- package/dist/magma-components/{p-6c73689a.system.entry.js → p-840c19ee.system.entry.js} +4 -4
- package/dist/magma-components/p-848d1b42.system.entry.js +30 -0
- package/dist/magma-components/{p-81212e34.entry.js → p-86494ea9.entry.js} +1 -1
- package/dist/magma-components/p-8915347f.entry.js +1 -0
- package/dist/magma-components/{p-f493fdc3.entry.js → p-8c20ac0c.entry.js} +1 -1
- package/dist/magma-components/{p-f22b8091.entry.js → p-90c60c48.entry.js} +1 -1
- package/dist/magma-components/{p-60d6e60f.entry.js → p-90e20ad3.entry.js} +1 -1
- package/dist/magma-components/{p-797c64f4.system.entry.js → p-9228db0b.system.entry.js} +13 -3
- package/dist/magma-components/p-94548d43.entry.js +1 -0
- package/dist/magma-components/{p-9c784173.entry.js → p-95020326.entry.js} +1 -1
- package/dist/magma-components/{p-8feba226.entry.js → p-970f45df.entry.js} +1 -1
- package/dist/magma-components/{p-9303fb16.system.entry.js → p-97a501cd.system.entry.js} +2 -2
- package/dist/magma-components/{p-9e07535e.system.entry.js → p-98cc6473.system.entry.js} +26 -13
- package/dist/magma-components/p-99d2ace2.system.entry.js +5 -0
- package/dist/magma-components/{p-627c2780.entry.js → p-9aba3769.entry.js} +1 -1
- package/dist/magma-components/{p-6d009b42.system.entry.js → p-9b0b65f0.system.entry.js} +2 -2
- package/dist/magma-components/{p-f40e3918.system.entry.js → p-9b0d7f7d.system.entry.js} +2 -2
- package/dist/magma-components/{p-5d1cba9c.system.entry.js → p-9b8d15a8.system.entry.js} +1 -1
- package/dist/magma-components/{p-5931fdfc.system.entry.js → p-9e94f4a3.system.entry.js} +4 -4
- package/dist/magma-components/{p-3b578659.system.entry.js → p-9f0100f2.system.entry.js} +2 -2
- package/dist/magma-components/p-B8zYiZQY.system.js +1 -1
- package/dist/magma-components/{p-CuHZXISO.system.js → p-BHdlb7Fr.system.js} +19 -19
- package/dist/magma-components/p-BXVzhErg.system.js +12 -0
- package/dist/magma-components/{p-OafT80hV.js → p-CATyfc78.js} +2 -2
- package/dist/magma-components/{p-CZuIEo2v.system.js → p-Cbabyppz.system.js} +1 -1
- package/dist/magma-components/{p-Dx_cCOTw.js → p-CxzVgcYv.js} +1 -1
- package/dist/magma-components/{p-CxTugGM9.system.js → p-D3J9KZKy.system.js} +1 -1
- package/dist/magma-components/{p-mGgjNqBm.system.js → p-DOisMne4.system.js} +17 -7
- package/dist/magma-components/p-DwKxtKwS.js +1 -0
- package/dist/{components/p-jasGzfhE.js → magma-components/p-Dx7iOdVP.js} +1 -1
- package/dist/magma-components/{p-iX3kcwYg.js → p-DxR4rGsw.js} +1 -1
- package/dist/magma-components/{p-ecc2893d.system.entry.js → p-a112a0e2.system.entry.js} +1 -1
- package/dist/magma-components/{p-86f11a5a.entry.js → p-a2767235.entry.js} +1 -1
- package/dist/magma-components/{p-c0286dc3.system.entry.js → p-a2c3b294.system.entry.js} +6 -6
- package/dist/magma-components/{p-4669334a.system.entry.js → p-a2d4d849.system.entry.js} +2 -2
- package/dist/magma-components/{p-cfbf3a76.system.entry.js → p-a48c73b1.system.entry.js} +2 -2
- package/dist/magma-components/{p-4e8c5b68.entry.js → p-a4f53c83.entry.js} +1 -1
- package/dist/magma-components/{p-e92327a2.entry.js → p-a58e8a5c.entry.js} +1 -1
- package/dist/magma-components/{p-1a20f239.system.entry.js → p-a5ca10ae.system.entry.js} +1 -1
- package/dist/magma-components/{p-46a928c3.entry.js → p-a9a872e1.entry.js} +1 -1
- package/dist/magma-components/{p-0a0dfdf4.system.entry.js → p-a9ab9eb0.system.entry.js} +2 -2
- package/dist/magma-components/{p-72971cf7.system.entry.js → p-ab1c3fb0.system.entry.js} +1 -1
- package/dist/magma-components/{p-074d7b75.entry.js → p-ab445c2b.entry.js} +1 -1
- package/dist/magma-components/{p-45a3e7eb.entry.js → p-abe32d5b.entry.js} +1 -1
- package/dist/magma-components/{p-2e68180d.system.entry.js → p-af56e3e4.system.entry.js} +2 -2
- package/dist/magma-components/{p-ed4fd7a4.entry.js → p-b1238d48.entry.js} +1 -1
- package/dist/magma-components/{p-4748378e.system.entry.js → p-b129b127.system.entry.js} +14 -14
- package/dist/magma-components/{p-e79eb427.system.entry.js → p-b1cd3acf.system.entry.js} +2 -2
- package/dist/magma-components/{p-5aa8f150.entry.js → p-b705b805.entry.js} +1 -1
- package/dist/magma-components/{p-2111aa67.system.entry.js → p-b7d18d7a.system.entry.js} +1 -1
- package/dist/magma-components/{p-3be9b384.system.entry.js → p-b871ad36.system.entry.js} +10 -10
- package/dist/magma-components/{p-f7426a75.entry.js → p-ba871d9c.entry.js} +1 -1
- package/dist/magma-components/{p-5a8fa2d0.entry.js → p-ba95bf93.entry.js} +1 -1
- package/dist/magma-components/{p-3af8a86a.system.entry.js → p-bc054fa3.system.entry.js} +3 -3
- package/dist/magma-components/{p-05455645.system.entry.js → p-bcc6c358.system.entry.js} +2 -2
- package/dist/magma-components/{p-7c3a7521.entry.js → p-bd489df9.entry.js} +1 -1
- package/dist/magma-components/{p-60acbc5f.system.entry.js → p-c0295a0e.system.entry.js} +2 -2
- package/dist/magma-components/p-c06d8b5a.entry.js +1 -0
- package/dist/magma-components/p-c131d726.entry.js +1 -0
- package/dist/magma-components/{p-198ea5d8.entry.js → p-c49676e6.entry.js} +1 -1
- package/dist/magma-components/{p-2a445b98.system.entry.js → p-c4c1ef48.system.entry.js} +78 -78
- package/dist/magma-components/{p-87831da2.system.entry.js → p-c54f2089.system.entry.js} +1 -1
- package/dist/magma-components/{p-8b8cd213.system.entry.js → p-c691f27e.system.entry.js} +3 -3
- package/dist/magma-components/p-c8414ee6.entry.js +1 -0
- package/dist/magma-components/{p-9ef64212.entry.js → p-c8c918d2.entry.js} +3 -3
- package/dist/magma-components/{p-85376ff5.entry.js → p-c91cb63a.entry.js} +1 -1
- package/dist/magma-components/{p-9f55fa7a.system.entry.js → p-c94e7973.system.entry.js} +2 -2
- package/dist/magma-components/{p-387fa36d.system.entry.js → p-c9baa3fb.system.entry.js} +1 -1
- package/dist/magma-components/{p-b781c932.system.entry.js → p-ca4e8601.system.entry.js} +1 -1
- package/dist/magma-components/{p-445bc62a.system.entry.js → p-ca5427d4.system.entry.js} +1 -1
- package/dist/magma-components/{p-4646cdc0.system.entry.js → p-caca78ff.system.entry.js} +2 -2
- package/dist/magma-components/{p-d85f3e5e.system.entry.js → p-caf478ff.system.entry.js} +2 -2
- package/dist/magma-components/{p-b8f4938a.entry.js → p-cb06839f.entry.js} +1 -1
- package/dist/magma-components/{p-d29c959d.entry.js → p-ce42734f.entry.js} +1 -1
- package/dist/magma-components/{p-8aa4cd10.entry.js → p-d1e4a032.entry.js} +1 -1
- package/dist/magma-components/{p-cd6dd836.entry.js → p-d25a47fa.entry.js} +1 -1
- package/dist/magma-components/{p-0d3da482.system.entry.js → p-d29b32b4.system.entry.js} +1 -1
- package/dist/magma-components/{p-1f746ad1.system.entry.js → p-d2ba5851.system.entry.js} +9 -9
- package/dist/magma-components/{p-d50d4023.entry.js → p-d365c6b6.entry.js} +1 -1
- package/dist/magma-components/{p-7a920b70.entry.js → p-d3b06151.entry.js} +1 -1
- package/dist/magma-components/{p-4cd21f19.entry.js → p-d45f65e0.entry.js} +1 -1
- package/dist/magma-components/{p-fdedc0ba.entry.js → p-d51ec950.entry.js} +1 -1
- package/dist/magma-components/{p-4606d11f.entry.js → p-d760c1fa.entry.js} +1 -1
- package/dist/magma-components/p-d785d7ee.entry.js +1 -0
- package/dist/magma-components/{p-08da465d.entry.js → p-d9092133.entry.js} +1 -1
- package/dist/magma-components/{p-03fb86a6.system.entry.js → p-dd348171.system.entry.js} +2 -2
- package/dist/magma-components/{p-dcb5f965.entry.js → p-de423b11.entry.js} +1 -1
- package/dist/magma-components/{p-97217527.system.entry.js → p-df78b7ac.system.entry.js} +1 -1
- package/dist/magma-components/{p-fba648e0.entry.js → p-e39b5e12.entry.js} +1 -1
- package/dist/magma-components/{p-99bfa07e.system.entry.js → p-eac943e5.system.entry.js} +1 -1
- package/dist/magma-components/{p-9ef0d4e5.system.entry.js → p-eb220deb.system.entry.js} +2 -2
- package/dist/magma-components/{p-fd81c4ef.system.entry.js → p-eca42fe8.system.entry.js} +2 -2
- package/dist/magma-components/{p-56a25ec6.entry.js → p-ecda3e45.entry.js} +1 -1
- package/dist/magma-components/{p-b523fabe.system.entry.js → p-f0909679.system.entry.js} +2 -2
- package/dist/magma-components/{p-8bf8e032.entry.js → p-f2649031.entry.js} +1 -1
- package/dist/magma-components/{p-30f95d10.entry.js → p-f51ed098.entry.js} +1 -1
- package/dist/magma-components/{p-11210b60.system.entry.js → p-f5bd5b64.system.entry.js} +3 -3
- package/dist/magma-components/p-f6358241.system.entry.js +19 -0
- package/dist/magma-components/{p-b0850daa.entry.js → p-f9f3ad86.entry.js} +1 -1
- package/dist/magma-components/{p-a3d09996.entry.js → p-fb4b648a.entry.js} +1 -1
- package/dist/magma-components/{p-81d2582a.entry.js → p-fd4588c5.entry.js} +1 -1
- package/dist/magma-components/{p-3b494de7.entry.js → p-fdd17ee6.entry.js} +1 -1
- package/dist/magma-components/p-fe51c0cb.system.entry.js +10 -0
- package/dist/magma-components/{p-a3156523.system.entry.js → p-ff6cf4f8.system.entry.js} +3 -3
- package/dist/magma-components/{p-4da1c089.entry.js → p-ff76c614.entry.js} +1 -1
- package/dist/{lint/mcp → mcp}/checks.js +4 -4
- package/dist/{lint/mcp → mcp}/components.js +4 -6
- package/dist/{lint/mcp → mcp}/guides.js +11 -9
- package/dist/{lint/mcp → mcp}/icons.js +21 -0
- package/dist/mcp/package.json +3 -0
- package/dist/{lint/mcp → mcp}/patterns.js +8 -9
- package/dist/{lint/mcp → mcp}/protocol.js +1 -1
- package/dist/{lint/mcp → mcp}/render.js +61 -33
- package/dist/{lint/mcp → mcp}/server.js +4 -4
- package/dist/{lint/mcp → mcp}/tokens.js +1 -2
- package/dist/mcp/tools.json +1374 -0
- package/dist/stats.json +2304 -2021
- package/dist/types/common/aria.d.ts +8 -1
- package/dist/types/common/preference.d.ts +13 -1
- package/dist/types/components/mds-button/mds-button.d.ts +50 -4
- package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +22 -2
- package/dist/types/components/mds-modal/mds-modal.d.ts +8 -1
- package/dist/types/components/mds-pref/mds-pref.d.ts +0 -9
- package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +16 -5
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +14 -1
- package/dist/types/components.d.ts +67 -13
- package/dist/types/type/button.d.ts +2 -0
- package/package.json +12 -11
- package/dist/components/p-BwT0RJip.js +0 -1
- package/dist/components/p-COUgBzJ4.js +0 -1
- package/dist/components/p-Cvhn9asj.js +0 -1
- package/dist/components/p-G7Udw5H5.js +0 -1
- package/dist/components/p-Ic8cYsgt.js +0 -1
- package/dist/components/p-l0KS6hTQ.js +0 -1
- package/dist/esm-es5/aria-Cvhn9asj.js +0 -6
- package/dist/lint/mcp/checks.d.ts +0 -29
- package/dist/lint/mcp/cli.d.ts +0 -2
- package/dist/lint/mcp/color.d.ts +0 -12
- package/dist/lint/mcp/components.d.ts +0 -5
- package/dist/lint/mcp/context.d.ts +0 -45
- package/dist/lint/mcp/guides.d.ts +0 -3
- package/dist/lint/mcp/icons.d.ts +0 -9
- package/dist/lint/mcp/patterns.d.ts +0 -75
- package/dist/lint/mcp/protocol.d.ts +0 -77
- package/dist/lint/mcp/render-page.d.ts +0 -40
- package/dist/lint/mcp/render.d.ts +0 -130
- package/dist/lint/mcp/server.d.ts +0 -39
- package/dist/lint/mcp/tokens.d.ts +0 -37
- package/dist/magma-components/p-06691ab3.system.entry.js +0 -27
- package/dist/magma-components/p-1d8485de.system.entry.js +0 -28
- package/dist/magma-components/p-21345ecc.entry.js +0 -1
- package/dist/magma-components/p-25dcbf22.entry.js +0 -1
- package/dist/magma-components/p-37881115.system.entry.js +0 -14
- package/dist/magma-components/p-4e5b8618.system.entry.js +0 -1
- package/dist/magma-components/p-69319301.system.entry.js +0 -10
- package/dist/magma-components/p-7b06b2f2.entry.js +0 -1
- package/dist/magma-components/p-7d61f442.entry.js +0 -1
- package/dist/magma-components/p-97c6e10a.entry.js +0 -1
- package/dist/magma-components/p-9e2b1a29.entry.js +0 -1
- package/dist/magma-components/p-9ed54db1.entry.js +0 -1
- package/dist/magma-components/p-Cvhn9asj.js +0 -1
- package/dist/magma-components/p-a8206d9c.entry.js +0 -1
- package/dist/magma-components/p-b464668b.system.entry.js +0 -105
- package/dist/magma-components/p-b85f56d7.entry.js +0 -1
- package/dist/magma-components/p-c7dc17f8.entry.js +0 -1
- package/dist/magma-components/p-d43e2a9a.entry.js +0 -1
- package/dist/magma-components/p-ddfb4da3.entry.js +0 -1
- package/dist/magma-components/p-e428490d.system.entry.js +0 -5
- package/dist/magma-components/p-f045b018.entry.js +0 -1
- package/dist/magma-components/p-f5d9f625.entry.js +0 -1
- package/dist/magma-components/p-fa387b74.system.entry.js +0 -5
- package/dist/magma-components/p-fbf563c8.entry.js +0 -1
- package/dist/magma-components/p-ff82edad.entry.js +0 -1
- package/dist/magma-components/p-sm_-_oFY.system.js +0 -6
- /package/dist/{lint/mcp → mcp}/cli.js +0 -0
- /package/dist/{lint/mcp → mcp}/color.js +0 -0
- /package/dist/{lint/mcp → mcp}/context.js +0 -0
- /package/dist/{lint/mcp → mcp}/icon.svg +0 -0
- /package/dist/{lint/mcp → mcp}/render-page.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,d as a,h as t,e as r,g as n}from"./p-CvLLN-QH.js";import{D as i}from"./p-DbyXf6dF.js";import{p as l}from"./p-iX3kcwYg.js";import{s}from"./p-CACEYk42.js";import{h as o}from"./p-AEckDMXh.js";import{c}from"./p-ChV9xqsO.js";import{L as d}from"./p-OafT80hV.js";var h={nextMonth:"Επόμενος μήνας",nextYears:"Επόμενα έτη",previousMonth:"Προηγούμενος μήνας",previousYears:"Προηγούμενα έτη"},u={nextMonth:"Next month",nextYears:"Next years",previousMonth:"Previous month",previousYears:"Previous years"},m={nextMonth:"Mes siguiente",nextYears:"Años siguientes",previousMonth:"Mes anterior",previousYears:"Años anteriores"},v={nextMonth:"Mese successivo",nextYears:"Anni successivi",previousMonth:"Mese precedente",previousYears:"Anni precedenti"};const b=class{constructor(t){e(this,t),this.datesEmitter=a(this,"mdsCalendarChange",7),this.navigationEmitter=a(this,"mdsCalendarNavigate",7),this.hoverEmitter=a(this,"mdsCalendarHover",7),this.checkPreselectionsEmitter=a(this,"mdsCalendarPreselect",7),this.t=new d({el:h,en:u,es:m,it:v}),this.hasPreselection=!1,this.currentDate=i.now(),this.weekDaysinMonth=[],this.weekdays=[],this.startDateIdentifier=null,this.endDateIdentifier=null,this.isFirstClick=!0,this.currentView="calendar",this.selectedYear=this.currentDate.year,this.singlePicker=!1,this.hidePreviousButton=!1,this.hideNextButton=!1,this.disableMonthYearSelection=!1,this.hidePreselection=!1,this.hideToday=!1,this.viewDate=null,this.hoverDate=null,this.startDate=null,this.endDate=null,this.min=null,this.max=null,this.internalStartDate=this.startDate,this.internalEndDate=this.endDate,this.internalHoverDate=null,this.currentMonth="",this.currentYear="",this.updatePreselection=()=>{this.hasPreselection=o(this.host,"preselection")||null!==this.host.querySelector(".date-preselection--has-preselection")},this.handleMouseOver=e=>{const a=e.target;if(!a.matches("mds-calendar-cell")||this.singlePicker||null===this.internalStartDate||""===this.internalStartDate||null!==this.internalEndDate&&""!==this.internalEndDate)return;const t=a.getAttribute("date");null!==t&&""!==t&&(t!==this.internalHoverDate&&(this.internalHoverDate=t,requestAnimationFrame((()=>this.setDates()))),this.hoverEmitter.emit({hoverDate:t}))},this.handleMouseLeave=()=>{const e=null!==this.internalHoverDate;this.internalHoverDate=null,this.singlePicker||null===this.internalStartDate||""===this.internalStartDate||null!==this.internalEndDate&&""!==this.internalEndDate||(e&&requestAnimationFrame((()=>this.setDates())),null!==this.hoverDate&&""!==this.hoverDate&&this.hoverEmitter.emit({hoverDate:null}))},this.handleMonthActionClick=e=>{e.stopPropagation(),this.disableMonthYearSelection?e.preventDefault():(this.currentView="months"===this.currentView?"calendar":"months",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))})))},this.handleYearActionClick=e=>{e.stopPropagation(),this.disableMonthYearSelection?e.preventDefault():(this.currentView="years"===this.currentView?"calendar":"years",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))})))},this.handlePrev=e=>{"calendar"===this.currentView?(e.stopPropagation(),this.changeMonth(-1)):"years"===this.currentView?(e.stopPropagation(),this.selectedYear-=10):e.stopPropagation()},this.handleNext=e=>{"calendar"===this.currentView?(e.stopPropagation(),this.changeMonth(1)):"years"===this.currentView?(e.stopPropagation(),this.selectedYear+=10):e.stopPropagation()},this.handleCellClick=e=>a=>{a.stopPropagation();const t=a.currentTarget;this.singlePicker?this.handleSingleSelection(t,e):this.handleRange(t,e)},this.handleMonthSelect=e=>a=>{a.stopPropagation(),this.currentDate=this.currentDate.set({month:e}),this.currentMonth=this.currentDate.toFormat("MMMM"),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))},this.handleYearSelect=e=>a=>{a.stopPropagation(),this.currentDate=this.currentDate.set({year:e}),this.currentYear=e.toString(),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}}handleStartDate(e){const a=this.parseDateProp(e,"start-date");null!==a?(this.internalStartDate=a,this.startDateTime=i.fromISO(a),this.startDateIdentifier=this.startDateTime.toISODate(),null!==this.internalEndDate&&""!==this.internalEndDate?this.orderRange():this.singlePicker||(this.isFirstClick=!1),this.updateDates()):(this.internalStartDate=null,this.startDateIdentifier=null,this.startDateTime=null,this.isFirstClick=!0,this.updateDates())}handleEndDate(e){if(this.singlePicker)return console.warn("singlePicker is enabled, endDate cannot be set"),void(this.internalEndDate=null);const a=this.parseDateProp(e,"end-date");null!==a?(this.internalEndDate=a,this.endDateTime=i.fromISO(a),this.endDateIdentifier=this.endDateTime.toISODate(),null!==this.internalStartDate&&""!==this.internalStartDate&&this.orderRange(),this.updateDates()):(this.internalEndDate=null,this.endDateIdentifier=null,this.endDateTime=null,this.updateDates())}handleViewDate(e){if(null!==e&&""!==e){const a=i.fromISO(e.toString());a.isValid&&(this.currentDate=a,this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))})))}}handleHoverDate(){requestAnimationFrame((()=>this.setDates()))}orderRange(){if(null===this.internalStartDate||null===this.internalEndDate)return;const e=i.fromISO(this.internalStartDate),a=i.fromISO(this.internalEndDate);e<=a||(console.warn("mds-calendar: startDate is after endDate, swapping values"),[this.internalStartDate,this.internalEndDate]=[this.internalEndDate,this.internalStartDate],this.startDateTime=a,this.endDateTime=e,this.startDateIdentifier=a.toISODate(),this.endDateIdentifier=e.toISODate())}parseDateProp(e,a){if(null===e||""===e)return null;const t=s(e.toString());return null!==t&&i.fromISO(t).isValid?t:(console.warn(`mds-calendar: ignoring the invalid ${a} "${e}"`),null)}componentWillLoad(){if(this.internalStartDate=this.parseDateProp(this.internalStartDate,"start-date"),this.internalEndDate=this.parseDateProp(this.internalEndDate,"end-date"),this.singlePicker&&null!==this.internalEndDate&&(console.warn("singlePicker is enabled, endDate cannot be set"),this.internalEndDate=null),this.orderRange(),null!==this.viewDate&&""!==this.viewDate){const e=i.fromISO(this.viewDate.toString());e.isValid&&(this.currentDate=e)}else null!==this.internalStartDate&&(this.startDateTime=i.fromISO(this.internalStartDate),this.currentDate=this.startDateTime);null!==this.internalEndDate&&(this.endDateTime=i.fromISO(this.internalEndDate)),this.updateCalendar()}componentDidLoad(){var e,a,t;this.updatePreselection(),null===(a=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===a||a.addEventListener("mouseover",this.handleMouseOver),null===(t=this.host)||void 0===t||t.addEventListener("mouseleave",this.handleMouseLeave),this.setDates()}disconnectedCallback(){var e,a,t;null===(a=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===a||a.removeEventListener("mouseover",this.handleMouseOver),null===(t=this.host)||void 0===t||t.removeEventListener("mouseleave",this.handleMouseLeave)}async updateCurrentDate(e){return this.currentDate=i.fromISO(e),await this.updateCalendar(),await new Promise((e=>{requestAnimationFrame((()=>{this.setDates(),e()}))})),Promise.resolve()}resolveHoverDate(){return null!==this.hoverDate&&""!==this.hoverDate?this.hoverDate:this.internalHoverDate}updateDates(){this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}async updateCalendar(){try{const e=this.currentDate.startOf("week");this.weekdays=Array.from({length:7}).map(((a,t)=>e.setLocale(l.state.language).plus({days:t}).toFormat("ccc"))),this.calculateWeekDaysInMonth(),this.currentMonth=this.currentDate.setLocale(l.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)}}setDates(){const e=this.host;if(null==e)return;const{shadowRoot:a}=e;if(!a)return;const t=a.querySelectorAll("mds-calendar-cell[selection], mds-calendar-cell[preview]");if(this.singlePicker)this.setSingleSelection(t,a);else{const e=this.resolveHoverDate();null===e||null!==this.internalEndDate&&""!==this.internalEndDate?this.setRangeSelection(t,a):this.setHoverSelection(t,a,e)}}clearSelectionState(e){e.forEach((e=>{e.removeAttribute("selection"),e.removeAttribute("preview")}))}setRangeSelection(e,a){if(this.clearSelectionState(e),null===this.internalStartDate||""===this.internalStartDate)return;if(this.startDateTime=i.fromISO(this.internalStartDate.toString()),null===this.internalEndDate||""===this.internalEndDate)return this.startDateIdentifier=this.startDateTime.toISODate(),this.isFirstClick=!1,void a.querySelectorAll("mds-calendar-cell").forEach((e=>{e.getAttribute("date")===this.startDateTime.toFormat("yyyy-MM-dd")&&(e.setAttribute("selection","single"),e.setAttribute("preview","true"))}));this.endDateTime=i.fromISO(this.internalEndDate.toString()),this.startDateIdentifier=this.startDateTime.toISODate(),this.endDateIdentifier=this.endDateTime.toISODate();const t=a.querySelectorAll("mds-calendar-cell");if(null!=t){let e;for(let a=0;a<t.length;a++){const r=t[a].getAttribute("date");if(null!==r&&""!==r){const n=i.fromISO(r);n.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")&&t[a].setAttribute("selection","start"),n.toFormat("yyyy-MM-dd")===this.endDateTime.toFormat("yyyy-MM-dd")&&(this.startDateTime.equals(this.endDateTime)?t[a].setAttribute("selection","single"):t[a].setAttribute("selection","end")),e=n>this.startDateTime&&n<this.endDateTime,e&&t[a].setAttribute("selection","middle")}}}}setHoverSelection(e,a,t){if(this.clearSelectionState(e),null===this.internalStartDate||""===this.internalStartDate)return void this.setRangeSelection(e,a);const r=i.fromISO(this.internalStartDate),n=i.fromISO(t);if(!r.isValid||!n.isValid)return void this.setRangeSelection(e,a);const l=r<=n;Array.from(a.querySelectorAll("mds-calendar-cell")).forEach((e=>{const a=e.getAttribute("date");if(null===a||""===a)return;const t=i.fromISO(a);if(!t.isValid)return;if(!(l?t>=r&&t<=n:t>=n&&t<=r))return;e.setAttribute("preview","true");let s="middle";r.equals(n)&&t.equals(r)?s="single":t.equals(r)?s=l?"start":"end":t.equals(n)&&(s=l?"end":"start"),e.setAttribute("selection",s)}))}setSingleSelection(e,a){if(this.clearSelectionState(e),null===this.internalStartDate||""===this.internalStartDate)return;this.startDateTime=i.fromISO(this.internalStartDate.toString());const t=a.querySelectorAll("mds-calendar-cell");if(null!=t)for(let e=0;e<t.length;e++){const a=t[e].getAttribute("date");null!==a&&""!==a&&i.fromISO(a).toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")&&t[e].setAttribute("selection","single")}}changeMonth(e){this.currentDate=this.currentDate.plus({months:e}),this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))})),this.navigationEmitter.emit({currentDate:this.currentDate.toISODate(),delta:e})}calculateWeekDaysInMonth(){const e=this.currentDate.startOf("month"),a=this.currentDate.endOf("month"),t=[];for(let a=e.minus({days:e.weekday-1});a<e;a=a.plus({days:1}))t.push({date:a,isCurrentMonth:!1});for(let r=e;r<=a;r=r.plus({days:1}))t.push({date:r,isCurrentMonth:!0});const r=7-a.weekday,n=a.plus({days:1});for(let e=n;e<n.plus({days:r});e=e.plus({days:1}))t.push({date:e,isCurrentMonth:!1});this.weekDaysinMonth=t}handleRange(e,a){if(!this.singlePicker&&(null===this.endDate||""===this.endDate)&&(null===this.internalEndDate||""===this.internalEndDate)&&this.isFirstClick){const e=this.parseDateProp(this.startDate||this.host.getAttribute("start-date"),"start-date");null!==e&&(this.internalStartDate=e,this.startDateTime=i.fromISO(e),this.startDateIdentifier=this.startDateTime.toISODate(),this.isFirstClick=!1)}if(null!==this.startDateIdentifier&&""!==this.startDateIdentifier&&null!==this.endDateIdentifier&&""!==this.endDateIdentifier&&(()=>{this.internalStartDate=null,this.internalEndDate=null,this.startDateIdentifier=null,this.startDateTime=null,this.endDateIdentifier=null,this.endDateTime=null,this.isFirstClick=!0;const e=this.host;requestAnimationFrame((()=>{var a;null===(a=null==e?void 0:e.shadowRoot)||void 0===a||a.querySelectorAll("mds-calendar-cell[selection]").forEach((e=>{e.removeAttribute("selection"),e.removeAttribute("preview")}))}))})(),this.isFirstClick){this.startDateIdentifier=a.toISODate(),this.startDateTime=a,this.internalStartDate=this.startDateTime.toISO().split("T")[0],this.isFirstClick=!1;const t=this.host;return requestAnimationFrame((()=>{var e;null===(e=null==t?void 0:t.shadowRoot)||void 0===e||e.querySelectorAll("mds-calendar-cell[selection]").forEach((e=>{e.removeAttribute("selection")}))})),requestAnimationFrame((()=>{e.setAttribute("selection","single"),e.setAttribute("preview","true")})),void this.datesEmitter.emit({startDate:this.internalStartDate})}null!==this.startDateIdentifier&&""!==this.startDateIdentifier&&i.fromISO(this.startDateIdentifier)<i.fromISO(e.getAttribute("date"))?(this.endDateIdentifier=e.getAttribute("date"),this.endDateTime=a,this.internalEndDate=this.endDateTime.toISO().split("T")[0]):(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]),requestAnimationFrame((()=>this.setDates())),null!==this.internalStartDate&&""!==this.internalStartDate&&null!==this.internalEndDate&&""!==this.internalEndDate&&(this.datesEmitter.emit({startDate:this.internalStartDate,endDate:this.internalEndDate}),this.checkPreselectionsEmitter.emit())}handleSingleSelection(e,a){var t;const r=this.host;null===(t=null==r?void 0:r.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar-cell[selection]").forEach((e=>{e.removeAttribute("selection")})),this.startDateIdentifier=e.getAttribute("date"),this.startDateTime=a,this.internalStartDate=this.startDateTime.toISO().split("T")[0],this.isFirstClick=!1,e.setAttribute("selection","single"),null!==this.internalStartDate&&""!==this.internalStartDate&&this.datesEmitter.emit({startDate:this.internalStartDate})}isDateDisabled(e){return null!==this.min&&""!==this.min&&e<i.fromISO(this.min)||null!==this.max&&""!==this.max&&e>i.fromISO(this.max)||void 0}render(){return t(r,{key:"5ece6c00dd42e09020407a839a354c3076565a2f"},t("div",{key:"49f671efc9d432d9c4eb4d28f0c6b33b9873422d",class:c("calendar-preselection",this.hasPreselection&&!this.hidePreselection&&"calendar-preselection--has-preselection")},t("slot",{key:"c2a4f2f42dd5e56a5f8f91666d89cae614f56186",name:"preselection",onSlotchange:this.updatePreselection})),t("div",{key:"b6e9ad5d16530969414894ef8b2725d029bc3dff",class:"calendar-view"},t("nav",{key:"d1fb5573c5b47ce8ed9cb47f4ce728b89f87fd5e"},!this.hidePreviousButton&&t("mds-button",{key:"1e65631d9cb3757ee22a6b333828199bcf356d87","aria-label":this.t.get("years"===this.currentView?"previousYears":"previousMonth"),class:"action-back",disabled:"months"===this.currentView,icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.77 3.77L16 2L6 12l10 10l1.77-1.77L9.54 12z"/></svg>',variant:"dark",tone:"text",onClick:this.handlePrev}),t("div",{key:"01a1fc7f777d8dfa4ebac2ef9ed4a46bf7eb67b4",class:"select-month-or-year"},("calendar"===this.currentView||"months"===this.currentView)&&t("mds-button",{key:"c6fe68177bf27cb74a29d687df79a83403d48cb0",class:"action-month",truncate:"none",variant:"dark",tone:"text",label:this.currentMonth,onClick:this.handleMonthActionClick}),("calendar"===this.currentView||"years"===this.currentView)&&t("mds-button",{key:"4370a3e90fa6ecc64f3e6948690627f4271669b2",class:"action-year",truncate:"none",variant:"dark",tone:"text",label:this.currentYear,onClick:this.handleYearActionClick})),!this.hideNextButton&&t("mds-button",{key:"4cea0bf61baf52db367566835856d675a15cbc66","aria-label":this.t.get("years"===this.currentView?"nextYears":"nextMonth"),class:"action-forward",disabled:"months"===this.currentView,icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6.23 20.23L8 22l10-10L8 2L6.23 3.77L14.46 12z"/></svg>',variant:"dark",tone:"text",onClick:this.handleNext})),"calendar"===this.currentView&&t("section",{key:"23bd1514cd3390ea62c773f0d93ef21002163827",class:"month-view"},t("header",{key:"4d87c57be1eb6f653889775a037947b4e54100fb",class:"month-view__days-names"},this.weekdays.map((e=>t("mds-button",{class:"week-day-name",variant:"dark",tone:"text",label:e})))),t("div",{key:"dc486f4388d2c4052ee05150e9b5eab4c56d26e9",class:"month-view__cells"},this.weekDaysinMonth.map(((e,a)=>t("mds-calendar-cell",{key:a,today:!this.hideToday&&i.now().toFormat("yyyy-MM-dd")===e.date.toFormat("yyyy-MM-dd"),date:e.date.toFormat("yyyy-MM-dd"),month:e.isCurrentMonth?"current":"other",disabled:this.isDateDisabled(e.date),onClick:this.handleCellClick(e.date),title:e.date.setLocale(l.state.language).toFormat("cccc d LLLL").replace(/^./,(e=>e.toUpperCase())),label:e.date.toFormat("dd")}))))),"months"===this.currentView&&t("section",{key:"f48bd4d763824ae2becb1f377e51ae9c71454301",class:"month-selection"},t("header",{key:"34cd5dd481b16891bb7987f2b2a5a145636658ea",class:"month-view__month-names"},Array.from({length:12}).map(((e,a)=>{const r=i.local().set({month:a+1}).setLocale(l.state.language).toFormat("MMMM");return t("mds-button",{class:"action",variant:"dark",tone:"text",label:r,onClick:this.handleMonthSelect(a+1)})})))),"years"===this.currentView&&t("section",{key:"f9df821453277ca1e20fe56bb8533768b68e62b0",class:"year-selection"},t("header",{key:"4aa693be77a139bfd8bedf79b0516b17763937ce",class:"month-view__years"},Array.from({length:12}).map(((e,a)=>{const r=this.selectedYear+a;return t("mds-button",{class:"action",variant:"dark",tone:"text",label:`${r}`,onClick:this.handleYearSelect(r)})}))))))}get host(){return n(this)}static get watchers(){return{startDate:[{handleStartDate:0}],endDate:[{handleEndDate:0}],viewDate:[{handleViewDate:0}],hoverDate:[{handleHoverDate:0}]}}};b.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar-cell):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-calendar-day-number-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-calendar-cell-gap:calc(var(--spacing,.0025rem)*50);--mds-calendar-cell-other-month-visibility:visible;--mds-calendar-border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));--mds-calendar-background:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));--mds-calendar-padding:calc(var(--spacing,.0025rem)*400);--mds-calendar-select-month-or-year-height:calc(var(--spacing,.0025rem)*900);--mds-calendar-select-month-or-year-width:calc(var(--spacing,.0025rem)*5600);--mds-calendar-max-width:calc(var(--spacing,.0025rem)*12000);background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));border-radius:var(--mds-calendar-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)));corner-shape:var(--magma-corner-shape,squircle);cursor:auto;display:inline-flex;inline-size:100%;max-width:var(--mds-calendar-max-width,calc(var(--spacing,.0025rem)*12000));min-width:min-content;overflow:hidden}.calendar-view{background-color:var(--mds-calendar-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));border-radius:inherit;box-sizing:border-box;corner-shape:inherit;display:grid;flex:auto;width:100%}.calendar-preselection,.calendar-view{padding:var(--mds-calendar-padding,calc(var(--spacing,.0025rem)*400))}.calendar-preselection{display:none;gap:calc(var(--spacing,.0025rem)*50);grid-auto-rows:min-content}.calendar-preselection--has-preselection{display:grid}nav{display:flex;gap:calc(var(--spacing,.0025rem)*200);justify-content:space-between;min-width:0}.action{justify-content:left;min-width:min-content;padding-left:calc(var(--spacing,.0025rem)*200);padding-right:calc(var(--spacing,.0025rem)*200)}.action-back,.action-forward{flex-shrink:0}.select-month-or-year{background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));border-radius:min(var(--mds-calendar-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px))),var(--magma-corner-cap,.5) * var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900)));box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;display:flex;flex:0 0 var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));justify-content:flex-start;max-block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));max-height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));max-inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));min-block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));min-height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));min-inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));overflow:hidden}.action-month,.action-year{--mds-button-radius:0;align-self:stretch;block-size:100%;box-sizing:border-box;cursor:default;height:100%;max-block-size:100%;max-height:100%;min-block-size:0;min-height:0;padding-left:calc(var(--spacing,.0025rem)*200);padding-right:calc(var(--spacing,.0025rem)*200)}.action-month{flex:auto;min-width:0}.action-year{flex:0 0 calc(var(--spacing,.0025rem)*1800)}.action-month::part(label),.action-year::part(label){overflow:visible;text-overflow:clip;white-space:nowrap}.week-day-name{align-items:center;block-size:calc(var(--spacing,.0025rem)*1200);inline-size:100%;min-height:auto;padding:0}.month-view__cells,.month-view__days-names{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(7,minmax(1px,100%));min-width:0}.month-view{display:grid}.month-view__month-names,.month-view__years{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(3,minmax(1px,100%));min-width:0}";const p=class{constructor(a){e(this,a),this.month="current",this.orientation="horizontal",this.preview=!1,this.disabled=void 0,this.today=void 0}render(){return t(r,{key:"a393822aa73f1d6094e8b0faa05ebe863ce20749"},t("div",{key:"c80b08e7bf127713f261c35b0807d21fae450950",class:"inner-dot"}),t("div",{key:"571f5470a1465c2541bb1328ad6a3b1600af64bb",class:"area-background"}),t("mds-button",{key:"d303799a03cd311d4dcb7aaf0141838d7f99cde7",class:"action",variant:"dark",tone:"text",disabled:this.disabled,label:this.label}))}};p.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--private-calendar-cell-background:var(--mds-calendar-cell-background,#0000);--private-calendar-cell-boundaries-padding:var(--mds-calendar-cell-boundaries-padding,calc(var(--spacing,.0025rem)*100));--private-calendar-cell-color:var(--mds-calendar-cell-color,var(--mds-calendar-day-number-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));--private-calendar-cell-other-month-background:var(--mds-calendar-cell-other-month-background,#0000);--private-calendar-cell-other-month-color:var(--mds-calendar-cell-other-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-disabled-background:var(--mds-calendar-cell-disabled-background,#0000);--private-calendar-cell-disabled-color:var(--mds-calendar-cell-disabled-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-weekend-background:var(--mds-calendar-cell-weekend-background,#0000);--private-calendar-cell-weekend-color:var(--mds-calendar-cell-weekend-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));--private-calendar-cell-selection-boundaries-border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,var(--magma-radius-full,var(--radius-full,1000px)));--private-calendar-cell-selection-week-boundaries-border-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,var(--magma-radius-full,var(--radius-full,1000px)));--private-calendar-cell-preselection-today-background:var(--mds-calendar-cell-preselection-today-background,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));--private-calendar-cell-preselection-today-color:var(--mds-calendar-cell-preselection-today-color,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));--private-calendar-cell-preselection-current-month-background:var(--mds-calendar-cell-preselection-current-month-background,rgb(var(--magma-accent-surface-hover,var(--variant-primary-08,204 212 226))));--private-calendar-cell-preselection-current-month-color:var(--mds-calendar-cell-preselection-current-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-current-month-boundaries-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-current-month-boundaries-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--private-calendar-cell-preselection-other-month-background:var(--mds-calendar-cell-preselection-other-month-background,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));--private-calendar-cell-preselection-other-month-color:var(--mds-calendar-cell-preselection-other-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-other-month-boundaries-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-other-month-boundaries-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));--private-calendar-cell-selection-current-month-background:var(--mds-calendar-cell-selection-current-month-background,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--private-calendar-cell-selection-current-month-color:var(--mds-calendar-cell-selection-current-month-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--private-calendar-cell-selection-current-month-boundaries-background:var(--mds-calendar-cell-selection-current-month-boundaries-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));--private-calendar-cell-selection-current-month-boundaries-color:var(--mds-calendar-cell-selection-current-month-boundaries-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--private-calendar-cell-selection-current-month-weekend-background:var(--mds-calendar-cell-selection-current-month-weekend-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--private-calendar-cell-selection-current-month-weekend-color:var(--mds-calendar-cell-selection-current-month-weekend-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--private-calendar-cell-selection-current-month-weekend-boundaries-background:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--private-calendar-cell-selection-current-month-weekend-boundaries-color:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--private-calendar-cell-selection-other-month-background:var(--mds-calendar-cell-selection-other-month-background,rgb(var(--magma-accent-surface-hover,var(--variant-primary-08,204 212 226))));--private-calendar-cell-selection-other-month-color:var(--mds-calendar-cell-selection-other-month-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));--private-calendar-cell-selection-other-month-boundaries-background:var(--mds-calendar-cell-selection-other-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--private-calendar-cell-selection-other-month-boundaries-color:var(--mds-calendar-cell-selection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));align-items:center;aspect-ratio:1;display:flex;justify-content:center;padding:var(--private-calendar-cell-boundaries-padding);position:relative}:host([month=other]){visibility:var(--mds-calendar-cell-other-month-visibility,hidden)}.inner-dot{aspect-ratio:1;background-color:var(--private-calendar-cell-inner-background);border-radius:var(--private-calendar-cell-selection-boundaries-border-radius);display:flex;min-height:0;min-width:0;width:100%;z-index:1}.area-background{background-color:var(--private-calendar-cell-background);inset:0;position:absolute;z-index:0}.action,.area-background{color:var(--private-calendar-cell-color)}.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]:not(:where([selection=none]))[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(--private-calendar-cell-selection-boundaries-border-radius);border-top-left-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-left:0}:host([selection=end][orientation=horizontal]) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-right:0}:host([selection]:not(:where([selection=none]))[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(--private-calendar-cell-selection-boundaries-border-radius) var(--private-calendar-cell-selection-boundaries-border-radius) 0 0;margin-top:0}:host([selection=end][orientation=vertical]) .area-background{border-radius:0 0 var(--private-calendar-cell-selection-boundaries-border-radius) var(--private-calendar-cell-selection-boundaries-border-radius);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(--private-calendar-cell-selection-week-boundaries-border-radius);border-top-left-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius)}:host(:nth-child(7n)) .area-background,:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius)}:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius)}:host([selection]:not(:where([selection=none]))[orientation=horizontal]:nth-child(7n-6)) .area-background{margin-left:0}:host([selection]:not(:where([selection=none]))[orientation=horizontal]:nth-child(7n)) .area-background{margin-right:0}:host([selection=single][orientation=horizontal]) .area-background{border-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-left:0;margin-right:0}:host(:nth-child(7n)),:host(:nth-child(7n-1)){--private-calendar-cell-color:var(--private-calendar-cell-weekend-color);--private-calendar-cell-background:var(--private-calendar-cell-weekend-background)}:host([month=other]:not([selection]:not(:where([selection=none])))){--private-calendar-cell-color:var(--private-calendar-cell-other-month-color);--private-calendar-cell-background:var(--private-calendar-cell-other-month-background)}:host([disabled]){--private-calendar-cell-color:var(--private-calendar-cell-disabled-color);--private-calendar-cell-background:var(--private-calendar-cell-disabled-background);cursor:auto;pointer-events:none}:host(:not([selection]:not(:where([selection=none])))[today]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-today-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-today-color)}:host([selection]:not(:where([selection=none]))[month=current]){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-color)}:host([selection]:not(:where([selection=none]))[month=current]:nth-child(7n)),:host([selection]:not(:where([selection=none]))[month=current]:nth-child(7n-1)){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-weekend-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-weekend-color)}: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)){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-weekend-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-weekend-boundaries-color)}:host([selection]:not(:where([selection=none]))[month=other]){--private-calendar-cell-background:var(--private-calendar-cell-selection-other-month-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-other-month-color)}:host([selection=end][month=current]),:host([selection=start][month=current]){--private-calendar-cell-inner-background:var(--private-calendar-cell-selection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-boundaries-color)}:host([selection=end][month=other]),:host([selection=start][month=other]){--private-calendar-cell-inner-background:var(--private-calendar-cell-selection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-other-month-boundaries-color)}:host([selection]:not(:where([selection=none]))[month=current][preview]:not([preview=false])){--private-calendar-cell-background:var(--private-calendar-cell-preselection-current-month-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-color)}:host([selection]:not(:where([selection=none]))[month=other][preview]:not([preview=false])){--private-calendar-cell-background:var(--private-calendar-cell-preselection-other-month-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-color)}:host([selection=end][month=current][preview]:not([preview=false])),:host([selection=start][month=current][preview]:not([preview=false])){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-boundaries-color)}:host([selection=end][month=other][preview]:not([preview=false])),:host([selection=start][month=other][preview]:not([preview=false])){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-boundaries-color)}:host([selection=single][month=current]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-boundaries-color)}:host([selection=single][month=other]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-boundaries-color)}";export{b as mds_calendar,p as mds_calendar_cell}
|
|
1
|
+
import{r as e,d as a,h as t,e as r,g as n}from"./p-CvLLN-QH.js";import{D as i}from"./p-DbyXf6dF.js";import{p as l}from"./p-DxR4rGsw.js";import{s}from"./p-CACEYk42.js";import{h as o}from"./p-AEckDMXh.js";import{c}from"./p-ChV9xqsO.js";import{L as d}from"./p-CATyfc78.js";var h={nextMonth:"Επόμενος μήνας",nextYears:"Επόμενα έτη",previousMonth:"Προηγούμενος μήνας",previousYears:"Προηγούμενα έτη"},u={nextMonth:"Next month",nextYears:"Next years",previousMonth:"Previous month",previousYears:"Previous years"},m={nextMonth:"Mes siguiente",nextYears:"Años siguientes",previousMonth:"Mes anterior",previousYears:"Años anteriores"},v={nextMonth:"Mese successivo",nextYears:"Anni successivi",previousMonth:"Mese precedente",previousYears:"Anni precedenti"};const b=class{constructor(t){e(this,t),this.datesEmitter=a(this,"mdsCalendarChange",7),this.navigationEmitter=a(this,"mdsCalendarNavigate",7),this.hoverEmitter=a(this,"mdsCalendarHover",7),this.checkPreselectionsEmitter=a(this,"mdsCalendarPreselect",7),this.t=new d({el:h,en:u,es:m,it:v}),this.hasPreselection=!1,this.currentDate=i.now(),this.weekDaysinMonth=[],this.weekdays=[],this.startDateIdentifier=null,this.endDateIdentifier=null,this.isFirstClick=!0,this.currentView="calendar",this.selectedYear=this.currentDate.year,this.singlePicker=!1,this.hidePreviousButton=!1,this.hideNextButton=!1,this.disableMonthYearSelection=!1,this.hidePreselection=!1,this.hideToday=!1,this.viewDate=null,this.hoverDate=null,this.startDate=null,this.endDate=null,this.min=null,this.max=null,this.internalStartDate=this.startDate,this.internalEndDate=this.endDate,this.internalHoverDate=null,this.currentMonth="",this.currentYear="",this.updatePreselection=()=>{this.hasPreselection=o(this.host,"preselection")||null!==this.host.querySelector(".date-preselection--has-preselection")},this.handleMouseOver=e=>{const a=e.target;if(!a.matches("mds-calendar-cell")||this.singlePicker||null===this.internalStartDate||""===this.internalStartDate||null!==this.internalEndDate&&""!==this.internalEndDate)return;const t=a.getAttribute("date");null!==t&&""!==t&&(t!==this.internalHoverDate&&(this.internalHoverDate=t,requestAnimationFrame((()=>this.setDates()))),this.hoverEmitter.emit({hoverDate:t}))},this.handleMouseLeave=()=>{const e=null!==this.internalHoverDate;this.internalHoverDate=null,this.singlePicker||null===this.internalStartDate||""===this.internalStartDate||null!==this.internalEndDate&&""!==this.internalEndDate||(e&&requestAnimationFrame((()=>this.setDates())),null!==this.hoverDate&&""!==this.hoverDate&&this.hoverEmitter.emit({hoverDate:null}))},this.handleMonthActionClick=e=>{e.stopPropagation(),this.disableMonthYearSelection?e.preventDefault():(this.currentView="months"===this.currentView?"calendar":"months",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))})))},this.handleYearActionClick=e=>{e.stopPropagation(),this.disableMonthYearSelection?e.preventDefault():(this.currentView="years"===this.currentView?"calendar":"years",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))})))},this.handlePrev=e=>{"calendar"===this.currentView?(e.stopPropagation(),this.changeMonth(-1)):"years"===this.currentView?(e.stopPropagation(),this.selectedYear-=10):e.stopPropagation()},this.handleNext=e=>{"calendar"===this.currentView?(e.stopPropagation(),this.changeMonth(1)):"years"===this.currentView?(e.stopPropagation(),this.selectedYear+=10):e.stopPropagation()},this.handleCellClick=e=>a=>{a.stopPropagation();const t=a.currentTarget;this.singlePicker?this.handleSingleSelection(t,e):this.handleRange(t,e)},this.handleMonthSelect=e=>a=>{a.stopPropagation(),this.currentDate=this.currentDate.set({month:e}),this.currentMonth=this.currentDate.toFormat("MMMM"),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))},this.handleYearSelect=e=>a=>{a.stopPropagation(),this.currentDate=this.currentDate.set({year:e}),this.currentYear=e.toString(),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}}handleStartDate(e){const a=this.parseDateProp(e,"start-date");null!==a?(this.internalStartDate=a,this.startDateTime=i.fromISO(a),this.startDateIdentifier=this.startDateTime.toISODate(),null!==this.internalEndDate&&""!==this.internalEndDate?this.orderRange():this.singlePicker||(this.isFirstClick=!1),this.updateDates()):(this.internalStartDate=null,this.startDateIdentifier=null,this.startDateTime=null,this.isFirstClick=!0,this.updateDates())}handleEndDate(e){if(this.singlePicker)return console.warn("singlePicker is enabled, endDate cannot be set"),void(this.internalEndDate=null);const a=this.parseDateProp(e,"end-date");null!==a?(this.internalEndDate=a,this.endDateTime=i.fromISO(a),this.endDateIdentifier=this.endDateTime.toISODate(),null!==this.internalStartDate&&""!==this.internalStartDate&&this.orderRange(),this.updateDates()):(this.internalEndDate=null,this.endDateIdentifier=null,this.endDateTime=null,this.updateDates())}handleViewDate(e){if(null!==e&&""!==e){const a=i.fromISO(e.toString());a.isValid&&(this.currentDate=a,this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))})))}}handleHoverDate(){requestAnimationFrame((()=>this.setDates()))}orderRange(){if(null===this.internalStartDate||null===this.internalEndDate)return;const e=i.fromISO(this.internalStartDate),a=i.fromISO(this.internalEndDate);e<=a||(console.warn("mds-calendar: startDate is after endDate, swapping values"),[this.internalStartDate,this.internalEndDate]=[this.internalEndDate,this.internalStartDate],this.startDateTime=a,this.endDateTime=e,this.startDateIdentifier=a.toISODate(),this.endDateIdentifier=e.toISODate())}parseDateProp(e,a){if(null===e||""===e)return null;const t=s(e.toString());return null!==t&&i.fromISO(t).isValid?t:(console.warn(`mds-calendar: ignoring the invalid ${a} "${e}"`),null)}componentWillLoad(){if(this.internalStartDate=this.parseDateProp(this.internalStartDate,"start-date"),this.internalEndDate=this.parseDateProp(this.internalEndDate,"end-date"),this.singlePicker&&null!==this.internalEndDate&&(console.warn("singlePicker is enabled, endDate cannot be set"),this.internalEndDate=null),this.orderRange(),null!==this.viewDate&&""!==this.viewDate){const e=i.fromISO(this.viewDate.toString());e.isValid&&(this.currentDate=e)}else null!==this.internalStartDate&&(this.startDateTime=i.fromISO(this.internalStartDate),this.currentDate=this.startDateTime);null!==this.internalEndDate&&(this.endDateTime=i.fromISO(this.internalEndDate)),this.updateCalendar()}componentDidLoad(){var e,a,t;this.updatePreselection(),null===(a=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===a||a.addEventListener("mouseover",this.handleMouseOver),null===(t=this.host)||void 0===t||t.addEventListener("mouseleave",this.handleMouseLeave),this.setDates()}disconnectedCallback(){var e,a,t;null===(a=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===a||a.removeEventListener("mouseover",this.handleMouseOver),null===(t=this.host)||void 0===t||t.removeEventListener("mouseleave",this.handleMouseLeave)}async updateCurrentDate(e){return this.currentDate=i.fromISO(e),await this.updateCalendar(),await new Promise((e=>{requestAnimationFrame((()=>{this.setDates(),e()}))})),Promise.resolve()}resolveHoverDate(){return null!==this.hoverDate&&""!==this.hoverDate?this.hoverDate:this.internalHoverDate}updateDates(){this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}async updateCalendar(){try{const e=this.currentDate.startOf("week");this.weekdays=Array.from({length:7}).map(((a,t)=>e.setLocale(l.state.language).plus({days:t}).toFormat("ccc"))),this.calculateWeekDaysInMonth(),this.currentMonth=this.currentDate.setLocale(l.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)}}setDates(){const e=this.host;if(null==e)return;const{shadowRoot:a}=e;if(!a)return;const t=a.querySelectorAll("mds-calendar-cell[selection], mds-calendar-cell[preview]");if(this.singlePicker)this.setSingleSelection(t,a);else{const e=this.resolveHoverDate();null===e||null!==this.internalEndDate&&""!==this.internalEndDate?this.setRangeSelection(t,a):this.setHoverSelection(t,a,e)}}clearSelectionState(e){e.forEach((e=>{e.removeAttribute("selection"),e.removeAttribute("preview")}))}setRangeSelection(e,a){if(this.clearSelectionState(e),null===this.internalStartDate||""===this.internalStartDate)return;if(this.startDateTime=i.fromISO(this.internalStartDate.toString()),null===this.internalEndDate||""===this.internalEndDate)return this.startDateIdentifier=this.startDateTime.toISODate(),this.isFirstClick=!1,void a.querySelectorAll("mds-calendar-cell").forEach((e=>{e.getAttribute("date")===this.startDateTime.toFormat("yyyy-MM-dd")&&(e.setAttribute("selection","single"),e.setAttribute("preview","true"))}));this.endDateTime=i.fromISO(this.internalEndDate.toString()),this.startDateIdentifier=this.startDateTime.toISODate(),this.endDateIdentifier=this.endDateTime.toISODate();const t=a.querySelectorAll("mds-calendar-cell");if(null!=t){let e;for(let a=0;a<t.length;a++){const r=t[a].getAttribute("date");if(null!==r&&""!==r){const n=i.fromISO(r);n.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")&&t[a].setAttribute("selection","start"),n.toFormat("yyyy-MM-dd")===this.endDateTime.toFormat("yyyy-MM-dd")&&(this.startDateTime.equals(this.endDateTime)?t[a].setAttribute("selection","single"):t[a].setAttribute("selection","end")),e=n>this.startDateTime&&n<this.endDateTime,e&&t[a].setAttribute("selection","middle")}}}}setHoverSelection(e,a,t){if(this.clearSelectionState(e),null===this.internalStartDate||""===this.internalStartDate)return void this.setRangeSelection(e,a);const r=i.fromISO(this.internalStartDate),n=i.fromISO(t);if(!r.isValid||!n.isValid)return void this.setRangeSelection(e,a);const l=r<=n;Array.from(a.querySelectorAll("mds-calendar-cell")).forEach((e=>{const a=e.getAttribute("date");if(null===a||""===a)return;const t=i.fromISO(a);if(!t.isValid)return;if(!(l?t>=r&&t<=n:t>=n&&t<=r))return;e.setAttribute("preview","true");let s="middle";r.equals(n)&&t.equals(r)?s="single":t.equals(r)?s=l?"start":"end":t.equals(n)&&(s=l?"end":"start"),e.setAttribute("selection",s)}))}setSingleSelection(e,a){if(this.clearSelectionState(e),null===this.internalStartDate||""===this.internalStartDate)return;this.startDateTime=i.fromISO(this.internalStartDate.toString());const t=a.querySelectorAll("mds-calendar-cell");if(null!=t)for(let e=0;e<t.length;e++){const a=t[e].getAttribute("date");null!==a&&""!==a&&i.fromISO(a).toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")&&t[e].setAttribute("selection","single")}}changeMonth(e){this.currentDate=this.currentDate.plus({months:e}),this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))})),this.navigationEmitter.emit({currentDate:this.currentDate.toISODate(),delta:e})}calculateWeekDaysInMonth(){const e=this.currentDate.startOf("month"),a=this.currentDate.endOf("month"),t=[];for(let a=e.minus({days:e.weekday-1});a<e;a=a.plus({days:1}))t.push({date:a,isCurrentMonth:!1});for(let r=e;r<=a;r=r.plus({days:1}))t.push({date:r,isCurrentMonth:!0});const r=7-a.weekday,n=a.plus({days:1});for(let e=n;e<n.plus({days:r});e=e.plus({days:1}))t.push({date:e,isCurrentMonth:!1});this.weekDaysinMonth=t}handleRange(e,a){if(!this.singlePicker&&(null===this.endDate||""===this.endDate)&&(null===this.internalEndDate||""===this.internalEndDate)&&this.isFirstClick){const e=this.parseDateProp(this.startDate||this.host.getAttribute("start-date"),"start-date");null!==e&&(this.internalStartDate=e,this.startDateTime=i.fromISO(e),this.startDateIdentifier=this.startDateTime.toISODate(),this.isFirstClick=!1)}if(null!==this.startDateIdentifier&&""!==this.startDateIdentifier&&null!==this.endDateIdentifier&&""!==this.endDateIdentifier&&(()=>{this.internalStartDate=null,this.internalEndDate=null,this.startDateIdentifier=null,this.startDateTime=null,this.endDateIdentifier=null,this.endDateTime=null,this.isFirstClick=!0;const e=this.host;requestAnimationFrame((()=>{var a;null===(a=null==e?void 0:e.shadowRoot)||void 0===a||a.querySelectorAll("mds-calendar-cell[selection]").forEach((e=>{e.removeAttribute("selection"),e.removeAttribute("preview")}))}))})(),this.isFirstClick){this.startDateIdentifier=a.toISODate(),this.startDateTime=a,this.internalStartDate=this.startDateTime.toISO().split("T")[0],this.isFirstClick=!1;const t=this.host;return requestAnimationFrame((()=>{var e;null===(e=null==t?void 0:t.shadowRoot)||void 0===e||e.querySelectorAll("mds-calendar-cell[selection]").forEach((e=>{e.removeAttribute("selection")}))})),requestAnimationFrame((()=>{e.setAttribute("selection","single"),e.setAttribute("preview","true")})),void this.datesEmitter.emit({startDate:this.internalStartDate})}null!==this.startDateIdentifier&&""!==this.startDateIdentifier&&i.fromISO(this.startDateIdentifier)<i.fromISO(e.getAttribute("date"))?(this.endDateIdentifier=e.getAttribute("date"),this.endDateTime=a,this.internalEndDate=this.endDateTime.toISO().split("T")[0]):(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]),requestAnimationFrame((()=>this.setDates())),null!==this.internalStartDate&&""!==this.internalStartDate&&null!==this.internalEndDate&&""!==this.internalEndDate&&(this.datesEmitter.emit({startDate:this.internalStartDate,endDate:this.internalEndDate}),this.checkPreselectionsEmitter.emit())}handleSingleSelection(e,a){var t;const r=this.host;null===(t=null==r?void 0:r.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar-cell[selection]").forEach((e=>{e.removeAttribute("selection")})),this.startDateIdentifier=e.getAttribute("date"),this.startDateTime=a,this.internalStartDate=this.startDateTime.toISO().split("T")[0],this.isFirstClick=!1,e.setAttribute("selection","single"),null!==this.internalStartDate&&""!==this.internalStartDate&&this.datesEmitter.emit({startDate:this.internalStartDate})}isDateDisabled(e){return null!==this.min&&""!==this.min&&e<i.fromISO(this.min)||null!==this.max&&""!==this.max&&e>i.fromISO(this.max)||void 0}render(){return t(r,{key:"7d364657953704cd8258a82b5e1719e767a083b9"},t("div",{key:"2835c4fce7b3f64b852aab31f5c272edb82f44da",class:c("calendar-preselection",this.hasPreselection&&!this.hidePreselection&&"calendar-preselection--has-preselection")},t("slot",{key:"cc5f37ca21c7da2af7235586d05fb72b0c42abf2",name:"preselection",onSlotchange:this.updatePreselection})),t("div",{key:"8dcaf0e0246f882a0a3ffa0edd95e8e7a3ef3a89",class:"calendar-view"},t("nav",{key:"c67cfa25cbae478fa2e0e2e28edfb941cba53d55"},!this.hidePreviousButton&&t("mds-button",{key:"82c8ae04096b358e3bfc9704d4ad829ef3b8d5ad","aria-label":this.t.get("years"===this.currentView?"previousYears":"previousMonth"),class:"action-back",disabled:"months"===this.currentView,icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.77 3.77L16 2L6 12l10 10l1.77-1.77L9.54 12z"/></svg>',variant:"dark",tone:"text",onClick:this.handlePrev}),t("div",{key:"0409951f53f9e5c028c7e8267f04b2a456df2111",class:"select-month-or-year"},("calendar"===this.currentView||"months"===this.currentView)&&t("mds-button",{key:"2f7afe0273e28d2f4ebfabc71024e37b96ad8e5f",class:"action-month",truncate:"none",variant:"dark",tone:"text",label:this.currentMonth,onClick:this.handleMonthActionClick}),("calendar"===this.currentView||"years"===this.currentView)&&t("mds-button",{key:"3a233fb788358b65b1c59a5ede0b38b9b1ab8fc8",class:"action-year",truncate:"none",variant:"dark",tone:"text",label:this.currentYear,onClick:this.handleYearActionClick})),!this.hideNextButton&&t("mds-button",{key:"a7597ce596f7c6d39faa821895db02c1b9d345ba","aria-label":this.t.get("years"===this.currentView?"nextYears":"nextMonth"),class:"action-forward",disabled:"months"===this.currentView,icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6.23 20.23L8 22l10-10L8 2L6.23 3.77L14.46 12z"/></svg>',variant:"dark",tone:"text",onClick:this.handleNext})),"calendar"===this.currentView&&t("section",{key:"94c96f546d3e4f31b16e0fea9dedc583ce99dab3",class:"month-view"},t("header",{key:"1f25122100daaa1b27cf8b458519da726c4ea5a3",class:"month-view__days-names"},this.weekdays.map((e=>t("mds-button",{class:"week-day-name",variant:"dark",tone:"text",label:e})))),t("div",{key:"d8992b68d6219ff53540cc662c6f90f44b0d2520",class:"month-view__cells"},this.weekDaysinMonth.map(((e,a)=>t("mds-calendar-cell",{key:a,today:!this.hideToday&&i.now().toFormat("yyyy-MM-dd")===e.date.toFormat("yyyy-MM-dd"),date:e.date.toFormat("yyyy-MM-dd"),month:e.isCurrentMonth?"current":"other",disabled:this.isDateDisabled(e.date),onClick:this.handleCellClick(e.date),title:e.date.setLocale(l.state.language).toFormat("cccc d LLLL").replace(/^./,(e=>e.toUpperCase())),label:e.date.toFormat("dd")}))))),"months"===this.currentView&&t("section",{key:"240b9a51a80acf35c531727fe0a964b545f847e7",class:"month-selection"},t("header",{key:"765d49c4f4c27a5cb254625cc598d7a43b22cdde",class:"month-view__month-names"},Array.from({length:12}).map(((e,a)=>{const r=i.local().set({month:a+1}).setLocale(l.state.language).toFormat("MMMM");return t("mds-button",{class:"action",variant:"dark",tone:"text",label:r,onClick:this.handleMonthSelect(a+1)})})))),"years"===this.currentView&&t("section",{key:"f15302a959313e70f7a956985356b7dbc4db60f5",class:"year-selection"},t("header",{key:"1a090fb50734801ace2815129c436dd9920eea43",class:"month-view__years"},Array.from({length:12}).map(((e,a)=>{const r=this.selectedYear+a;return t("mds-button",{class:"action",variant:"dark",tone:"text",label:`${r}`,onClick:this.handleYearSelect(r)})}))))))}get host(){return n(this)}static get watchers(){return{startDate:[{handleStartDate:0}],endDate:[{handleEndDate:0}],viewDate:[{handleViewDate:0}],hoverDate:[{handleHoverDate:0}]}}};b.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar-cell):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-calendar-day-number-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-calendar-cell-gap:calc(var(--spacing,.0025rem)*50);--mds-calendar-cell-other-month-visibility:visible;--mds-calendar-border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));--mds-calendar-background:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));--mds-calendar-padding:calc(var(--spacing,.0025rem)*400);--mds-calendar-select-month-or-year-height:calc(var(--spacing,.0025rem)*900);--mds-calendar-select-month-or-year-width:calc(var(--spacing,.0025rem)*5600);--mds-calendar-max-width:calc(var(--spacing,.0025rem)*12000);background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));border-radius:var(--mds-calendar-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)));corner-shape:var(--magma-corner-shape,squircle);cursor:auto;display:inline-flex;inline-size:100%;max-width:var(--mds-calendar-max-width,calc(var(--spacing,.0025rem)*12000));min-width:min-content;overflow:hidden}.calendar-view{background-color:var(--mds-calendar-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));border-radius:inherit;box-sizing:border-box;corner-shape:inherit;display:grid;flex:auto;width:100%}.calendar-preselection,.calendar-view{padding:var(--mds-calendar-padding,calc(var(--spacing,.0025rem)*400))}.calendar-preselection{display:none;gap:calc(var(--spacing,.0025rem)*50);grid-auto-rows:min-content}.calendar-preselection--has-preselection{display:grid}nav{display:flex;gap:calc(var(--spacing,.0025rem)*200);justify-content:space-between;min-width:0}.action{justify-content:left;min-width:min-content;padding-left:calc(var(--spacing,.0025rem)*200);padding-right:calc(var(--spacing,.0025rem)*200)}.action-back,.action-forward{flex-shrink:0}.select-month-or-year{background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));border-radius:min(var(--mds-calendar-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px))),var(--magma-corner-cap,.5) * var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900)));box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;display:flex;flex:0 0 var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));justify-content:flex-start;max-block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));max-height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));max-inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));min-block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));min-height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));min-inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));overflow:hidden}.action-month,.action-year{--mds-button-radius:0;align-self:stretch;block-size:100%;box-sizing:border-box;cursor:default;height:100%;max-block-size:100%;max-height:100%;min-block-size:0;min-height:0;padding-left:calc(var(--spacing,.0025rem)*200);padding-right:calc(var(--spacing,.0025rem)*200)}.action-month{flex:auto;min-width:0}.action-year{flex:0 0 calc(var(--spacing,.0025rem)*1800)}.action-month::part(label),.action-year::part(label){overflow:visible;text-overflow:clip;white-space:nowrap}.week-day-name{align-items:center;block-size:calc(var(--spacing,.0025rem)*1200);inline-size:100%;min-height:auto;padding:0}.month-view__cells,.month-view__days-names{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(7,minmax(1px,100%));min-width:0}.month-view{display:grid}.month-view__month-names,.month-view__years{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(3,minmax(1px,100%));min-width:0}";const p=class{constructor(a){e(this,a),this.month="current",this.orientation="horizontal",this.preview=!1,this.disabled=void 0,this.today=void 0}render(){return t(r,{key:"9c19030367078a5eccc316b5d53926a0758491c8"},t("div",{key:"2de6eb5cc31346cb53712cf2dd5a1d0aad886bc0",class:"inner-dot"}),t("div",{key:"47c6370d028c21c127a5158dcfee340153ace542",class:"area-background"}),t("mds-button",{key:"2197b967617bf0b4517a2417c8722b2d21e57f5e",class:"action",variant:"dark",tone:"text",disabled:this.disabled,label:this.label}))}};p.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--private-calendar-cell-background:var(--mds-calendar-cell-background,#0000);--private-calendar-cell-boundaries-padding:var(--mds-calendar-cell-boundaries-padding,calc(var(--spacing,.0025rem)*100));--private-calendar-cell-color:var(--mds-calendar-cell-color,var(--mds-calendar-day-number-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));--private-calendar-cell-other-month-background:var(--mds-calendar-cell-other-month-background,#0000);--private-calendar-cell-other-month-color:var(--mds-calendar-cell-other-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-disabled-background:var(--mds-calendar-cell-disabled-background,#0000);--private-calendar-cell-disabled-color:var(--mds-calendar-cell-disabled-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-weekend-background:var(--mds-calendar-cell-weekend-background,#0000);--private-calendar-cell-weekend-color:var(--mds-calendar-cell-weekend-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));--private-calendar-cell-selection-boundaries-border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,var(--magma-radius-full,var(--radius-full,1000px)));--private-calendar-cell-selection-week-boundaries-border-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,var(--magma-radius-full,var(--radius-full,1000px)));--private-calendar-cell-preselection-today-background:var(--mds-calendar-cell-preselection-today-background,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));--private-calendar-cell-preselection-today-color:var(--mds-calendar-cell-preselection-today-color,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));--private-calendar-cell-preselection-current-month-background:var(--mds-calendar-cell-preselection-current-month-background,rgb(var(--magma-accent-surface-hover,var(--variant-primary-08,204 212 226))));--private-calendar-cell-preselection-current-month-color:var(--mds-calendar-cell-preselection-current-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-current-month-boundaries-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-current-month-boundaries-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--private-calendar-cell-preselection-other-month-background:var(--mds-calendar-cell-preselection-other-month-background,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));--private-calendar-cell-preselection-other-month-color:var(--mds-calendar-cell-preselection-other-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-other-month-boundaries-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-other-month-boundaries-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));--private-calendar-cell-selection-current-month-background:var(--mds-calendar-cell-selection-current-month-background,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--private-calendar-cell-selection-current-month-color:var(--mds-calendar-cell-selection-current-month-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--private-calendar-cell-selection-current-month-boundaries-background:var(--mds-calendar-cell-selection-current-month-boundaries-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));--private-calendar-cell-selection-current-month-boundaries-color:var(--mds-calendar-cell-selection-current-month-boundaries-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--private-calendar-cell-selection-current-month-weekend-background:var(--mds-calendar-cell-selection-current-month-weekend-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--private-calendar-cell-selection-current-month-weekend-color:var(--mds-calendar-cell-selection-current-month-weekend-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--private-calendar-cell-selection-current-month-weekend-boundaries-background:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--private-calendar-cell-selection-current-month-weekend-boundaries-color:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--private-calendar-cell-selection-other-month-background:var(--mds-calendar-cell-selection-other-month-background,rgb(var(--magma-accent-surface-hover,var(--variant-primary-08,204 212 226))));--private-calendar-cell-selection-other-month-color:var(--mds-calendar-cell-selection-other-month-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));--private-calendar-cell-selection-other-month-boundaries-background:var(--mds-calendar-cell-selection-other-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--private-calendar-cell-selection-other-month-boundaries-color:var(--mds-calendar-cell-selection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));align-items:center;aspect-ratio:1;display:flex;justify-content:center;padding:var(--private-calendar-cell-boundaries-padding);position:relative}:host([month=other]){visibility:var(--mds-calendar-cell-other-month-visibility,hidden)}.inner-dot{aspect-ratio:1;background-color:var(--private-calendar-cell-inner-background);border-radius:var(--private-calendar-cell-selection-boundaries-border-radius);display:flex;min-height:0;min-width:0;width:100%;z-index:1}.area-background{background-color:var(--private-calendar-cell-background);inset:0;position:absolute;z-index:0}.action,.area-background{color:var(--private-calendar-cell-color)}.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]:not(:where([selection=none]))[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(--private-calendar-cell-selection-boundaries-border-radius);border-top-left-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-left:0}:host([selection=end][orientation=horizontal]) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-right:0}:host([selection]:not(:where([selection=none]))[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(--private-calendar-cell-selection-boundaries-border-radius) var(--private-calendar-cell-selection-boundaries-border-radius) 0 0;margin-top:0}:host([selection=end][orientation=vertical]) .area-background{border-radius:0 0 var(--private-calendar-cell-selection-boundaries-border-radius) var(--private-calendar-cell-selection-boundaries-border-radius);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(--private-calendar-cell-selection-week-boundaries-border-radius);border-top-left-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius)}:host(:nth-child(7n)) .area-background,:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius)}:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius)}:host([selection]:not(:where([selection=none]))[orientation=horizontal]:nth-child(7n-6)) .area-background{margin-left:0}:host([selection]:not(:where([selection=none]))[orientation=horizontal]:nth-child(7n)) .area-background{margin-right:0}:host([selection=single][orientation=horizontal]) .area-background{border-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-left:0;margin-right:0}:host(:nth-child(7n)),:host(:nth-child(7n-1)){--private-calendar-cell-color:var(--private-calendar-cell-weekend-color);--private-calendar-cell-background:var(--private-calendar-cell-weekend-background)}:host([month=other]:not([selection]:not(:where([selection=none])))){--private-calendar-cell-color:var(--private-calendar-cell-other-month-color);--private-calendar-cell-background:var(--private-calendar-cell-other-month-background)}:host([disabled]){--private-calendar-cell-color:var(--private-calendar-cell-disabled-color);--private-calendar-cell-background:var(--private-calendar-cell-disabled-background);cursor:auto;pointer-events:none}:host(:not([selection]:not(:where([selection=none])))[today]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-today-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-today-color)}:host([selection]:not(:where([selection=none]))[month=current]){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-color)}:host([selection]:not(:where([selection=none]))[month=current]:nth-child(7n)),:host([selection]:not(:where([selection=none]))[month=current]:nth-child(7n-1)){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-weekend-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-weekend-color)}: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)){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-weekend-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-weekend-boundaries-color)}:host([selection]:not(:where([selection=none]))[month=other]){--private-calendar-cell-background:var(--private-calendar-cell-selection-other-month-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-other-month-color)}:host([selection=end][month=current]),:host([selection=start][month=current]){--private-calendar-cell-inner-background:var(--private-calendar-cell-selection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-boundaries-color)}:host([selection=end][month=other]),:host([selection=start][month=other]){--private-calendar-cell-inner-background:var(--private-calendar-cell-selection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-other-month-boundaries-color)}:host([selection]:not(:where([selection=none]))[month=current][preview]:not([preview=false])){--private-calendar-cell-background:var(--private-calendar-cell-preselection-current-month-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-color)}:host([selection]:not(:where([selection=none]))[month=other][preview]:not([preview=false])){--private-calendar-cell-background:var(--private-calendar-cell-preselection-other-month-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-color)}:host([selection=end][month=current][preview]:not([preview=false])),:host([selection=start][month=current][preview]:not([preview=false])){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-boundaries-color)}:host([selection=end][month=other][preview]:not([preview=false])),:host([selection=start][month=other][preview]:not([preview=false])){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-boundaries-color)}:host([selection=single][month=current]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-boundaries-color)}:host([selection=single][month=other]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-boundaries-color)}";export{b as mds_calendar,p as mds_calendar_cell}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["./p-BZP13mns.system.js","./p-
|
|
1
|
+
System.register(["./p-BZP13mns.system.js","./p-BHdlb7Fr.system.js","./p-DOisMne4.system.js"],(function(t){"use strict";var e,i,s,a,o,n;return{setters:[function(t){e=t.r;i=t.d;s=t.h;a=t.e},function(t){o=t.L},function(t){n=t.p}],execute:function(){var r='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M13.314 12.492c-.943-.837-4.99-3.526-8.385-5.563 2.037 3.395 4.726 7.442 5.563 8.384q.045.052.094.101a2 2 0 1 0 2.728-2.922"/>\n <path d="M2 14c0 1.893.526 3.663 1.44 5.173.326.538.93.827 1.558.827h14.004c.629 0 1.232-.29 1.558-.827A9.95 9.95 0 0 0 22 14c0-5.523-4.477-10-10-10a9.95 9.95 0 0 0-5.416 1.592c.64.39 1.292.795 1.937 1.202A8 8 0 0 1 18.93 18H5.07A7.96 7.96 0 0 1 4 14c0-1.247.285-2.427.794-3.48-.407-.644-.812-1.297-1.202-1.936A9.95 9.95 0 0 0 2 14"/>\n</svg>\n';var m='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M9.885 4.224C5.378 5.194 2 9.203 2 14c0 1.893.526 3.663 1.44 5.173.326.538.93.827 1.558.827h14.004c.629 0 1.232-.29 1.558-.827A9.95 9.95 0 0 0 22 14c0-4.797-3.378-8.805-7.885-9.776.177.728.352 1.476.52 2.22A8.003 8.003 0 0 1 18.93 18H5.07A8.003 8.003 0 0 1 9.365 6.444a137 137 0 0 1 .52-2.22"/>\n <path d="M13.995 13.862C13.921 12.605 12.96 7.842 12 4c-.96 3.841-1.92 8.605-1.995 9.862a2 2 0 1 0 3.99 0"/>\n</svg>\n';var c='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M13.508 15.314c.837-.943 3.526-4.99 5.563-8.385-3.395 2.037-7.443 4.726-8.385 5.563q-.051.045-.1.094a2 2 0 1 0 2.922 2.728"/>\n <path d="M3.44 19.173A9.95 9.95 0 0 1 2 14C2 8.477 6.477 4 12 4c1.996 0 3.855.585 5.416 1.592-.64.39-1.292.795-1.937 1.202A8 8 0 0 0 5.07 18h13.86A7.96 7.96 0 0 0 20 14a8 8 0 0 0-.794-3.48c.407-.644.813-1.297 1.202-1.936A9.95 9.95 0 0 1 22 14a9.95 9.95 0 0 1-1.44 5.173c-.326.538-.93.827-1.558.827H4.998c-.629 0-1.232-.29-1.558-.827"/>\n</svg>\n';var d="Υψηλή";var l="Χαμηλή";var u="Μεσαία";var h="Κατανάλωση";var f={consumptionHigh:d,consumptionLow:l,consumptionMedium:u,label:h};var v="High";var g="Low";var p="Medium";var b="Consumption";var w={consumptionHigh:v,consumptionLow:g,consumptionMedium:p,label:b};var x="Alto";var y="Bajo";var M="Medio";var A="Consumo";var C={consumptionHigh:x,consumptionLow:y,consumptionMedium:M,label:A};var k="Alto";var H="Basso";var B="Medio";var j="Consumo";var L={consumptionHigh:k,consumptionLow:H,consumptionMedium:B,label:j};var S=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--high{--mds-tab-item-selected-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)))}.item--medium{--mds-tab-item-selected-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)))}.item--low{--mds-tab-item-selected-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}:host([pref-contrast=more]) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-contrast=more]) .item--high{--mds-tab-item-default-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([pref-contrast=more]) .item--medium{--mds-tab-item-default-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([pref-contrast=more]) .item--low{--mds-tab-item-default-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item--high{--mds-tab-item-default-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item--medium{--mds-tab-item-default-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item--low{--mds-tab-item-default-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}}"};var O=t("mds_pref_consumption",/** @class */function(){function t(t){var s=this;e(this,t);this.prefChangeEvent=i(this,"mdsPrefChange",7);this.localStorageAlias="mdsPrefConsumption";this.customPropertyAlias="--magma-pref-consumption";this.defaultMode="high";this.syncingFromStore=false;this.t=new o({el:f,en:w,es:C,it:L});this.consumption={high:{selector:"pref-consumption-high",label:"consumptionHigh"},medium:{selector:"pref-consumption-medium",label:"consumptionMedium"},low:{selector:"pref-consumption-low",label:"consumptionLow"}};this.isMode=function(t){return t!=null&&{}.hasOwnProperty.call(s.consumption,t)};this.warnInvalidMode=function(t){console.warn('mds-pref-consumption: ignoring the invalid mode "'.concat(t,'", use one of: ').concat(Object.keys(s.consumption).join(", ")))};
|
|
2
2
|
/**
|
|
3
3
|
* Follows a consumption applied elsewhere (another instance, or a writer of the
|
|
4
4
|
* `<html>` classes) without applying it again: no event, no storage write.
|
|
@@ -14,4 +14,4 @@ System.register(["./p-BZP13mns.system.js","./p-CuHZXISO.system.js","./p-mGgjNqBm
|
|
|
14
14
|
t.prototype.componentWillLoad=function(){var t;if(this.mode!=null&&!this.isMode(this.mode))this.warnInvalidMode(this.mode);var e=localStorage.getItem(this.localStorageAlias);if(e!==null&&!this.isMode(e))localStorage.removeItem(this.localStorageAlias);this.setConsumption((t=[this.mode,e].find(this.isMode))!==null&&t!==void 0?t:this.defaultMode)};t.prototype.connectedCallback=function(){this.unsubscribeStore=n.onChange("consumption",this.syncConsumption)};t.prototype.disconnectedCallback=function(){var t;(t=this.unsubscribeStore)===null||t===void 0?void 0:t.call(this)};t.prototype.modeChanged=function(t){if(this.syncingFromStore){return}
|
|
15
15
|
// a mode outside the union, or the attribute removed, is not applied: the instance goes back
|
|
16
16
|
// to the consumption of the page
|
|
17
|
-
if(!this.isMode(t)){if(t!=null)this.warnInvalidMode(t);this.syncConsumption(n.state.consumption);return}this.setConsumption(t)};t.prototype.render=function(){var t;return s(a,{key:"
|
|
17
|
+
if(!this.isMode(t)){if(t!=null)this.warnInvalidMode(t);this.syncConsumption(n.state.consumption);return}this.setConsumption(t)};t.prototype.render=function(){var t;return s(a,{key:"d554271caf8161092b43ced20e6f30b38a947f17","pref-contrast":n.state.contrast},s("mds-text",{key:"e80e405e28844afca6560729d4ce6023c2163aa3",class:"info",typography:"caption"},s("b",{key:"16d3b3e84b94ca9f90409ebfad5a53ab44586a87"},this.t.get("label"))," ",this.t.get(this.consumption[(t=this.mode)!==null&&t!==void 0?t:this.defaultMode].label)),s("mds-tab",{key:"c008307883d102a87ddf5ffc13649e7c79cb21b0",fill:true,size:this.size},s("mds-tab-item",{key:"ed618ec9611b99ba465b834ddce9089e42bc9fd1",selected:this.mode==="low",onClick:this.handleModeClick("low"),class:"item item--low",icon:r,title:this.t.get(this.consumption.low.label)}),s("mds-tab-item",{key:"885664c061f95ac286a30e543783315f4730c91e",selected:this.mode==="medium",onClick:this.handleModeClick("medium"),class:"item item--medium",icon:m,title:this.t.get(this.consumption.medium.label)}),s("mds-tab-item",{key:"0dd67985ca90cf301c73e834d0f08766e43bf3e8",selected:this.mode==="high",onClick:this.handleModeClick("high"),class:"item item--high",icon:c,title:this.t.get(this.consumption.high.label)})))};Object.defineProperty(t,"watchers",{get:function(){return{mode:[{modeChanged:0}]}},enumerable:false,configurable:true});return t}());O.style=S()}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,h as t,e as r,g as s}from"./p-CvLLN-QH.js";import{m as e}from"./p-CvUz9jjh.js";import{m as i}from"./p-J-ikDhyq.js";import{L as o}from"./p-OafT80hV.js";import{p as d}from"./p-iX3kcwYg.js";import{k as n}from"./p-C4ckbXOl.js";var m={testKeyCombination:"Κάντε κλικ για να δοκιμάσετε τον συνδυασμό πληκτρολογώντας στο πληκτρολόγιο",testPassed:"Ο συνδυασμός είναι σωστός",wrongKeysCombination:"Ο συνδυασμός που πληκτρολογήσατε δεν φαίνεται να είναι σωστός. Δοκιμάστε ξανά."},l={testKeyCombination:"Click to test the combination by typing on the keyboard",testPassed:"The combination is correct",wrongKeysCombination:"The combination you entered does not seem to be correct. Please try again."},c={testKeyCombination:"Haz clic para probar la combinación escribiendo en el teclado",testPassed:"La combinación es correcta",wrongKeysCombination:"La combinación que introdujiste no parece ser correcta. Inténtalo de nuevo."},h={testKeyCombination:"Clicca per provare la combinazione digitando da tastiera",testPassed:"La combinazione è corretta",wrongKeysCombination:"La combinazione che hai digitato non sembra essere corretta, riprova."};const b=class{constructor(t){a(this,t),this.errors=new Set,this.keyEls=[],this.testInit=!1,this.pressedKeys=new Set,this.keyCombination=new Set,this.t=new o({el:m,en:l,es:c,it:h}),this.testPassed=void 0,this.initKeyboardTest=()=>{var a,t;this.testInit||(this.testInit=!0,this.updateElements(),this.shortcutsEl=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".shortcuts"),this.buttonTrigger=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".combination-checker"),this.buttonTrigger.removeAttribute("title"))},this.separateKeys=()=>{this.filteredNodes.forEach(((a,t)=>{if(t<this.filteredNodes.length-1){const t=document.createElement("mds-text");t.typography="detail",t.innerHTML="<b>+</b>",a.after(t)}}))},this.updateElements=()=>{this.filteredNodes.forEach((a=>{var t;const r=null!==(t=a.name)&&void 0!==t?t:"";""!==r&&(this.keyEls.push(a),this.keyCombination.add(this.keyCodes(r.toLowerCase()).toString()))}))},this.checkTest=()=>!0===this.testPassed?"pass":!1===this.testPassed?"fail":void 0,this.checkKeyboardShortcut=a=>{this.pressedKeys.has(a.code)&&(this.stopKeyboardShortcutTest(),this.testPassed=this.areEquivalent(this.keyCombination,this.pressedKeys),this.test=this.checkTest(),this.keyEls.forEach((a=>{a.removeAttribute("pressed")})))},this.keyCodes=a=>n[a.toLowerCase()].keyCodes,this.hasKeyCode=(a,t)=>n[a.toLowerCase()].keyCodes.includes(t),this.areEquivalent=(a,t)=>{const r=Array.from(a),s=Array.from(t);let e=!0;if(r.length!==s.length)return this.errors.add("wrongKeysCombination"),!1;const i=[...s];return e=r.every((a=>{const t=a.split(","),r=i.findIndex((a=>t.includes(a)));return-1!==r&&(i.splice(r,1),!0)})),e||this.errors.add("wrongKeysCombination"),e},this.addKeyboardShortcut=a=>{if("undefined"==typeof document)return;a.stopPropagation(),a.preventDefault();const{code:t}=a;this.pressedKeys.add(t),this.keyEls.forEach((a=>{this.hasKeyCode(a.name,t)&&(a.pressed=!0)}))},this.startKeyboardShortcutTest=()=>{this.pressedKeys.clear(),this.testPassed=void 0,this.test=this.testPassed,this.buttonTrigger.blur(),this.buttonTrigger.await=!0,this.buttonTrigger.removeAttribute("tabindex"),this.shortcutsEl.setAttribute("tabindex","0"),this.shortcutsEl.focus(),this.shortcutsEl.addEventListener("blur",this.stopKeyboardShortcutTest),this.shortcutsEl.addEventListener("keydown",this.addKeyboardShortcut),this.shortcutsEl.addEventListener("keyup",this.checkKeyboardShortcut)},this.stopKeyboardShortcutTest=()=>{this.buttonTrigger.await=!1,this.buttonTrigger.setAttribute("tabindex","0"),this.shortcutsEl.removeAttribute("tabindex"),this.shortcutsEl.removeEventListener("blur",this.stopKeyboardShortcutTest),this.shortcutsEl.removeEventListener("keydown",this.addKeyboardShortcut),this.shortcutsEl.removeEventListener("keyup",this.checkKeyboardShortcut)},this.getButtonIcon=()=>"pass"===this.test?e:"fail"===this.test?i:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"/></svg>'}disconnectedCallback(){this.testInit&&this.stopKeyboardShortcutTest()}handleTryProperty(a){a&&this.initKeyboardTest()}componentDidLoad(){var a,t;this.nodes=null===(t=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelectorAll("slot")[0])||void 0===t?void 0:t.assignedNodes(),this.filteredNodes=this.nodes.filter((a=>1===a.nodeType)),this.separateKeys(),this.try&&this.initKeyboardTest()}render(){return t(r,{key:"25a7d04a835806f1bbabdb6c2a61ffdc9ccb7b65","pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},t("div",{key:"89196a5a2a00de82d57b3c8f211aef5dc2bc18de",class:"shortcuts"},t("slot",{key:"4cc3d37cabf7c4352e692fb7a7e79026f1519e2d"})),this.try&&t("mds-button",{key:"1e0f8a0b3f203c0e11af250692e49f94c7e8b94b",icon:this.getButtonIcon(),"aria-label":this.t.get("testKeyCombination"),class:"combination-checker",variant:"dark",tone:"text",onClick:this.startKeyboardShortcutTest}),this.try&&t("mds-tooltip",{key:"d79df1ffafab7735c7ac6d396a04e66f3459bfe5",target:".combination-checker"},void 0===this.testPassed&&this.t.get("testKeyCombination"),!0===this.testPassed&&this.t.get("testPassed"),!1===this.testPassed&&t("div",{key:"557179739e725d988c894b3ec4c8634d8450be35",class:"errors"},[...this.errors].map((a=>t("mds-text",{typography:"tip"},this.t.get(a)))))))}get host(){return s(this)}static get watchers(){return{try:[{handleTryProperty:0}]}}};b.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-text,mds-tooltip):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-keyboard-background-default:var(--mds-keyboard-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));--mds-keyboard-background-fail:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-keyboard-background-pass:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-keyboard-background:var(--private-keyboard-tray);--mds-keyboard-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-keyboard-fill-fail:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-keyboard-fill-pass:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-keyboard-illumination-dark-opacity:.05;--mds-keyboard-illumination-dark-size:calc(var(--spacing,.0025rem)*150);--mds-keyboard-illumination-dark:0 calc(var(--mds-keyboard-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) * -1) 0 0 rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/var(--mds-keyboard-illumination-dark-opacity,.05)) inset;--mds-keyboard-illumination-light-opacity:.075;--mds-keyboard-illumination-light-size:calc(var(--spacing,.0025rem)*25);--mds-keyboard-illumination-light:0 var(--mds-keyboard-illumination-light-size,calc(var(--spacing,.0025rem)*25)) 0 0 rgb(255 255 255/var(--mds-keyboard-illumination-light-opacity,.075)) inset;--mds-keyboard-illumination-shadow:0 0 1px 0 rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/0);--mds-keyboard-key-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-keyboard-key-illumination-dark-opacity:.075;--mds-keyboard-key-illumination-light-opacity:.5;--mds-keyboard-key-illumination-shadow:var(--shadow-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-keyboard-padding:calc(var(--spacing,.0025rem)*200);--mds-keyboard-spinner-duration:var(--duration-1000,1s);--private-keyboard-tray:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));background-color:var(--mds-keyboard-background-default,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));box-shadow:var(--mds-keyboard-illumination-light),var(--mds-keyboard-illumination-dark),var(--mds-keyboard-illumination-shadow);color:var(--mds-keyboard-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));corner-shape:var(--magma-corner-shape,squircle);align-items:center;align-self:flex-start;display:inline-flex;gap:calc(var(--spacing,.0025rem)*200);justify-self:flex-start;padding:calc(var(--mds-keyboard-illumination-light-size,calc(var(--spacing,.0025rem) * 25)) + var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200))) var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200)) calc(var(--mds-keyboard-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) + var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200))) var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200));transition-duration:var(--duration-200,.2s);transition-property:background-color;transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));-webkit-user-select:none;user-select:none}.errors{display:grid}.errors,.shortcuts{gap:calc(var(--spacing,.0025rem)*100)}.shortcuts{align-items:center;display:inline-flex;outline:0}:host(:focus-within){--mds-keyboard-background:var(--private-keyboard-tray)}@supports (color:color-mix(in lab,red,red)){:host(:focus-within){--mds-keyboard-background:color-mix(in oklab,var(--private-keyboard-tray) 88%,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))))}}mds-tooltip{--mds-tooltip-delay:0}.combination-checker{--mds-button-await-duration:var(--mds-keyboard-spinner-duration,var(--duration-1000,1s));border-radius:var(--magma-radius-full,var(--radius-full,1000px))}::slotted(mds-keyboard-key){align-self:flex-end}:host([test=pass]){--mds-keyboard-background-default:var(--mds-keyboard-background-pass,rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205))))}:host([test=fail]){--mds-keyboard-background-default:var(--mds-keyboard-background-fail,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))))}:host([test=pass]) .combination-checker{background-color:var(--mds-keyboard-background-pass,rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205))));fill:var(--mds-keyboard-fill-pass,rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0))))}:host([test=fail]) .combination-checker{background-color:var(--mds-keyboard-background-fail,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))));fill:var(--mds-keyboard-fill-fail,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))))}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--private-keyboard-tray:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-keyboard-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-keyboard-illumination-dark-opacity:.5;--mds-keyboard-illumination-light-opacity:.15;--mds-keyboard-illumination-shadow:0 0 calc(var(--spacing,.0025rem)*75) 0 #ffffff80;--mds-keyboard-key-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-keyboard-key-illumination-dark-opacity:.5;--mds-keyboard-key-illumination-light-opacity:.15;--mds-keyboard-key-illumination-shadow:0 0 1px 0 #ffffff80}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--private-keyboard-tray:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-keyboard-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-keyboard-illumination-dark-opacity:.5;--mds-keyboard-illumination-light-opacity:.15;--mds-keyboard-illumination-shadow:0 0 calc(var(--spacing,.0025rem)*75) 0 #ffffff80;--mds-keyboard-key-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-keyboard-key-illumination-dark-opacity:.5;--mds-keyboard-key-illumination-light-opacity:.15;--mds-keyboard-key-illumination-shadow:0 0 1px 0 #ffffff80}}";export{b as mds_keyboard}
|
|
1
|
+
import{r as a,h as t,e as r,g as e}from"./p-CvLLN-QH.js";import{m as s}from"./p-CvUz9jjh.js";import{m as i}from"./p-J-ikDhyq.js";import{L as o}from"./p-CATyfc78.js";import{p as d}from"./p-DxR4rGsw.js";import{k as n}from"./p-C4ckbXOl.js";var m={testKeyCombination:"Κάντε κλικ για να δοκιμάσετε τον συνδυασμό πληκτρολογώντας στο πληκτρολόγιο",testPassed:"Ο συνδυασμός είναι σωστός",wrongKeysCombination:"Ο συνδυασμός που πληκτρολογήσατε δεν φαίνεται να είναι σωστός. Δοκιμάστε ξανά."},l={testKeyCombination:"Click to test the combination by typing on the keyboard",testPassed:"The combination is correct",wrongKeysCombination:"The combination you entered does not seem to be correct. Please try again."},c={testKeyCombination:"Haz clic para probar la combinación escribiendo en el teclado",testPassed:"La combinación es correcta",wrongKeysCombination:"La combinación que introdujiste no parece ser correcta. Inténtalo de nuevo."},h={testKeyCombination:"Clicca per provare la combinazione digitando da tastiera",testPassed:"La combinazione è corretta",wrongKeysCombination:"La combinazione che hai digitato non sembra essere corretta, riprova."};const b=class{constructor(t){a(this,t),this.errors=new Set,this.keyEls=[],this.testInit=!1,this.pressedKeys=new Set,this.keyCombination=new Set,this.t=new o({el:m,en:l,es:c,it:h}),this.testPassed=void 0,this.initKeyboardTest=()=>{var a,t;this.testInit||(this.testInit=!0,this.updateElements(),this.shortcutsEl=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".shortcuts"),this.buttonTrigger=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".combination-checker"),this.buttonTrigger.removeAttribute("title"))},this.separateKeys=()=>{this.filteredNodes.forEach(((a,t)=>{if(t<this.filteredNodes.length-1){const t=document.createElement("mds-text");t.typography="detail",t.innerHTML="<b>+</b>",a.after(t)}}))},this.updateElements=()=>{this.filteredNodes.forEach((a=>{var t;const r=null!==(t=a.name)&&void 0!==t?t:"";""!==r&&(this.keyEls.push(a),this.keyCombination.add(this.keyCodes(r.toLowerCase()).toString()))}))},this.checkTest=()=>!0===this.testPassed?"pass":!1===this.testPassed?"fail":void 0,this.checkKeyboardShortcut=a=>{this.pressedKeys.has(a.code)&&(this.stopKeyboardShortcutTest(),this.testPassed=this.areEquivalent(this.keyCombination,this.pressedKeys),this.test=this.checkTest(),this.keyEls.forEach((a=>{a.removeAttribute("pressed")})))},this.keyCodes=a=>n[a.toLowerCase()].keyCodes,this.hasKeyCode=(a,t)=>n[a.toLowerCase()].keyCodes.includes(t),this.areEquivalent=(a,t)=>{const r=Array.from(a),e=Array.from(t);let s=!0;if(r.length!==e.length)return this.errors.add("wrongKeysCombination"),!1;const i=[...e];return s=r.every((a=>{const t=a.split(","),r=i.findIndex((a=>t.includes(a)));return-1!==r&&(i.splice(r,1),!0)})),s||this.errors.add("wrongKeysCombination"),s},this.addKeyboardShortcut=a=>{if("undefined"==typeof document)return;a.stopPropagation(),a.preventDefault();const{code:t}=a;this.pressedKeys.add(t),this.keyEls.forEach((a=>{this.hasKeyCode(a.name,t)&&(a.pressed=!0)}))},this.startKeyboardShortcutTest=()=>{this.pressedKeys.clear(),this.testPassed=void 0,this.test=this.testPassed,this.buttonTrigger.blur(),this.buttonTrigger.await=!0,this.buttonTrigger.removeAttribute("tabindex"),this.shortcutsEl.setAttribute("tabindex","0"),this.shortcutsEl.focus(),this.shortcutsEl.addEventListener("blur",this.stopKeyboardShortcutTest),this.shortcutsEl.addEventListener("keydown",this.addKeyboardShortcut),this.shortcutsEl.addEventListener("keyup",this.checkKeyboardShortcut)},this.stopKeyboardShortcutTest=()=>{this.buttonTrigger.await=!1,this.buttonTrigger.setAttribute("tabindex","0"),this.shortcutsEl.removeAttribute("tabindex"),this.shortcutsEl.removeEventListener("blur",this.stopKeyboardShortcutTest),this.shortcutsEl.removeEventListener("keydown",this.addKeyboardShortcut),this.shortcutsEl.removeEventListener("keyup",this.checkKeyboardShortcut)},this.getButtonIcon=()=>"pass"===this.test?s:"fail"===this.test?i:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"/></svg>'}disconnectedCallback(){this.testInit&&this.stopKeyboardShortcutTest()}handleTryProperty(a){a&&this.initKeyboardTest()}componentDidLoad(){var a,t;this.nodes=null===(t=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelectorAll("slot")[0])||void 0===t?void 0:t.assignedNodes(),this.filteredNodes=this.nodes.filter((a=>1===a.nodeType)),this.separateKeys(),this.try&&this.initKeyboardTest()}render(){return t(r,{key:"ef1ec2d6381c46cb215a326a5de5389baddb0377","pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},t("div",{key:"78b636c3beacb1ab9a45c4eea042e7bf52a26842",class:"shortcuts"},t("slot",{key:"f9d1793fbe90b27b1c5d9a196c3537fd63944a45"})),this.try&&t("mds-button",{key:"a6ac86cf10114b110b9d0fc4a04ebbe302adceab",icon:this.getButtonIcon(),"aria-label":this.t.get("testKeyCombination"),class:"combination-checker",variant:"dark",tone:"text",onClick:this.startKeyboardShortcutTest}),this.try&&t("mds-tooltip",{key:"8abaab5c9b01433eaffe5094f5a412e54369a38e",target:".combination-checker"},void 0===this.testPassed&&this.t.get("testKeyCombination"),!0===this.testPassed&&this.t.get("testPassed"),!1===this.testPassed&&t("div",{key:"82a4b6ca0141669f2a1db78d0e5f3444d5152613",class:"errors"},[...this.errors].map((a=>t("mds-text",{typography:"tip"},this.t.get(a)))))))}get host(){return e(this)}static get watchers(){return{try:[{handleTryProperty:0}]}}};b.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-text,mds-tooltip):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-keyboard-background-default:var(--mds-keyboard-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));--mds-keyboard-background-fail:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-keyboard-background-pass:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-keyboard-background:var(--private-keyboard-tray);--mds-keyboard-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-keyboard-fill-fail:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-keyboard-fill-pass:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-keyboard-illumination-dark-opacity:.05;--mds-keyboard-illumination-dark-size:calc(var(--spacing,.0025rem)*150);--mds-keyboard-illumination-dark:0 calc(var(--mds-keyboard-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) * -1) 0 0 rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/var(--mds-keyboard-illumination-dark-opacity,.05)) inset;--mds-keyboard-illumination-light-opacity:.075;--mds-keyboard-illumination-light-size:calc(var(--spacing,.0025rem)*25);--mds-keyboard-illumination-light:0 var(--mds-keyboard-illumination-light-size,calc(var(--spacing,.0025rem)*25)) 0 0 rgb(255 255 255/var(--mds-keyboard-illumination-light-opacity,.075)) inset;--mds-keyboard-illumination-shadow:0 0 1px 0 rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/0);--mds-keyboard-key-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-keyboard-key-illumination-dark-opacity:.075;--mds-keyboard-key-illumination-light-opacity:.5;--mds-keyboard-key-illumination-shadow:var(--shadow-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-keyboard-padding:calc(var(--spacing,.0025rem)*200);--mds-keyboard-spinner-duration:var(--duration-1000,1s);--private-keyboard-tray:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));background-color:var(--mds-keyboard-background-default,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));box-shadow:var(--mds-keyboard-illumination-light),var(--mds-keyboard-illumination-dark),var(--mds-keyboard-illumination-shadow);color:var(--mds-keyboard-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));corner-shape:var(--magma-corner-shape,squircle);align-items:center;align-self:flex-start;display:inline-flex;gap:calc(var(--spacing,.0025rem)*200);justify-self:flex-start;padding:calc(var(--mds-keyboard-illumination-light-size,calc(var(--spacing,.0025rem) * 25)) + var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200))) var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200)) calc(var(--mds-keyboard-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) + var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200))) var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200));transition-duration:var(--duration-200,.2s);transition-property:background-color;transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));-webkit-user-select:none;user-select:none}.errors{display:grid}.errors,.shortcuts{gap:calc(var(--spacing,.0025rem)*100)}.shortcuts{align-items:center;display:inline-flex;outline:0}:host(:focus-within){--mds-keyboard-background:var(--private-keyboard-tray)}@supports (color:color-mix(in lab,red,red)){:host(:focus-within){--mds-keyboard-background:color-mix(in oklab,var(--private-keyboard-tray) 88%,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))))}}mds-tooltip{--mds-tooltip-delay:0}.combination-checker{--mds-button-await-duration:var(--mds-keyboard-spinner-duration,var(--duration-1000,1s));border-radius:var(--magma-radius-full,var(--radius-full,1000px))}::slotted(mds-keyboard-key){align-self:flex-end}:host([test=pass]){--mds-keyboard-background-default:var(--mds-keyboard-background-pass,rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205))))}:host([test=fail]){--mds-keyboard-background-default:var(--mds-keyboard-background-fail,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))))}:host([test=pass]) .combination-checker{background-color:var(--mds-keyboard-background-pass,rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205))));fill:var(--mds-keyboard-fill-pass,rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0))))}:host([test=fail]) .combination-checker{background-color:var(--mds-keyboard-background-fail,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))));fill:var(--mds-keyboard-fill-fail,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))))}:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark]){--private-keyboard-tray:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-keyboard-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-keyboard-illumination-dark-opacity:.5;--mds-keyboard-illumination-light-opacity:.15;--mds-keyboard-illumination-shadow:0 0 calc(var(--spacing,.0025rem)*75) 0 #ffffff80;--mds-keyboard-key-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-keyboard-key-illumination-dark-opacity:.5;--mds-keyboard-key-illumination-light-opacity:.15;--mds-keyboard-key-illumination-shadow:0 0 1px 0 #ffffff80}@media (prefers-color-scheme:dark){:host(:not([pref-mode]):not([pref-theme-scheme=light])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--private-keyboard-tray:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-keyboard-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-keyboard-illumination-dark-opacity:.5;--mds-keyboard-illumination-light-opacity:.15;--mds-keyboard-illumination-shadow:0 0 calc(var(--spacing,.0025rem)*75) 0 #ffffff80;--mds-keyboard-key-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-keyboard-key-illumination-dark-opacity:.5;--mds-keyboard-key-illumination-light-opacity:.15;--mds-keyboard-key-illumination-shadow:0 0 1px 0 #ffffff80}}";export{b as mds_keyboard}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["./p-BZP13mns.system.js","./p-
|
|
1
|
+
System.register(["./p-BZP13mns.system.js","./p-DOisMne4.system.js"],(function(t){"use strict";var r,e,n,a,o,i;return{setters:[function(t){r=t.r;e=t.d;n=t.h;a=t.e;o=t.g},function(t){i=t.p}],execute:function(){var c=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-accordion-border-color:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-accordion-border-width:calc(var(--spacing,.0025rem)*50);--mds-accordion-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-accordion-description-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-accordion-duration:var(--duration-300,.3s);--mds-accordion-padding-selected:calc(var(--spacing,.0025rem)*400) 0 calc(var(--spacing,.0025rem)*800) 0;--mds-accordion-padding-unselected:calc(var(--spacing,.0025rem)*400) 0;display:grid}:host([pref-contrast=more]){--mds-accordion-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-accordion-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}"};var s=t("mds_accordion",/** @class */function(){function t(t){var n=this;r(this,t);this.changedEvent=e(this,"mdsAccordionChange",7);
|
|
2
2
|
/**
|
|
3
3
|
* Choose if multiple siblings can be selected simultaneously
|
|
4
4
|
*/this.multiple=false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["./p-BZP13mns.system.js","./p-
|
|
1
|
+
System.register(["./p-BZP13mns.system.js","./p-DOisMne4.system.js","./p-BXVzhErg.system.js","./p-nFkaC8l_.system.js"],(function(i){"use strict";var t,a,n,o,r,s,e,c,d,m,f,u,l,v;return{setters:[function(i){t=i.r;a=i.h;n=i.e;o=i.g},function(i){r=i.a;s=i.p},function(i){e=i.r;c=i.s;d=i.h;m=i.a},function(i){f=i.o;u=i.s;l=i.c;v=i.b}],execute:function(){var g=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-notification-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-dot-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-notification-dot-padding:calc(var(--spacing,.0025rem)*150);--mds-notification-min-width:var(--mds-notification-size,calc(var(--spacing,.0025rem)*500));--mds-notification-ring-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-ring-size:calc(var(--spacing,.0025rem)*50);--mds-notification-size:calc(var(--spacing,.0025rem)*500);--mds-notification-transition-duration:var(--duration-200,.2s);--private-notification-transition-duration:var(--mds-notification-transition-duration,var(--duration-200,.2s));--mds-notification-dot-transition-duration:var(--duration-300,.3s);--private-notification-dot-transition-duration:var(--mds-notification-dot-transition-duration);--mds-notification-transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));--mds-notification-pulse-duration:var(--duration-1000,1s);--private-notification-pulse-duration:var(--mds-notification-pulse-duration);--mds-notification-pulse-spread:calc(var(--spacing,.0025rem)*200);--mds-notification-translate-offset-x:-1.75;--mds-notification-translate-offset-y:-2;--mds-notification-translate:translate(calc(var(--mds-notification-size,calc(var(--spacing,.0025rem) * 500)) / var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,calc(var(--spacing,.0025rem) * 500)) / var(--mds-notification-translate-offset-y,-2)));align-items:center;border-radius:var(--magma-radius-full,var(--radius-full,1000px));bottom:100%;color:var(--mds-notification-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));display:inline-flex;height:var(--mds-notification-size,calc(var(--spacing,.0025rem)*500));justify-content:flex-end;min-width:max-content;pointer-events:none;width:var(--mds-notification-size,calc(var(--spacing,.0025rem)*500));z-index:10}:host([strategy=absolute]),:host([strategy=fixed]){opacity:0;right:100%;transform:var(--mds-notification-translate,translate(calc(var(--spacing,.0025rem)*500/-1.75),calc(var(--spacing,.0025rem)*500/-2))) scale(0);transform-origin:calc(100% - calc(var(--mds-notification-size,calc(var(--spacing,.0025rem) * 500)) / 2)) 50%;transition-duration:var(--private-notification-transition-duration);transition-property:color,height,opacity,transform,width;transition-timing-function:var(--mds-notification-transition-timing-function)}:host([strategy=absolute]){position:absolute}:host([strategy=fixed]){position:fixed}.dot{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-notification-dot-background,rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));box-shadow:0 0 0 var(--mds-notification-ring-size,calc(var(--spacing,.0025rem)*50)) var(--mds-notification-ring-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));box-sizing:border-box;display:inline-flex;justify-content:center;line-height:var(--mds-notification-size,calc(var(--spacing,.0025rem)*500));min-height:var(--mds-notification-size,calc(var(--spacing,.0025rem)*500));min-width:var(--mds-notification-min-width,calc(var(--spacing,.0025rem)*500));padding-left:var(--mds-notification-dot-padding,calc(var(--spacing,.0025rem)*150));padding-right:var(--mds-notification-dot-padding,calc(var(--spacing,.0025rem)*150));position:static;transition-duration:var(--private-notification-dot-transition-duration);transition-property:background-color,color,box-shadow;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));white-space:nowrap}:host([strategy=absolute]) .dot,:host([strategy=fixed]) .dot{position:absolute}.pulse{animation-duration:var(--private-notification-pulse-duration);animation-iteration-count:3;animation-name:notification-pulse;animation-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1))}@keyframes notification-pulse{0%{box-shadow:0 0 0 var(--mds-notification-ring-size,calc(var(--spacing,.0025rem)*50)) var(--mds-notification-ring-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))),0 0 0 var(--mds-notification-ring-size,calc(var(--spacing,.0025rem)*50)) var(--mds-notification-dot-background,rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65))))}to{box-shadow:0 0 0 var(--mds-notification-ring-size,calc(var(--spacing,.0025rem) * 50)) var(--mds-notification-ring-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))),0 0 0 calc(var(--mds-notification-ring-size,calc(var(--spacing,.0025rem) * 50)) + var(--mds-notification-pulse-spread)) #0000}}.spacer{box-sizing:border-box;display:inline-flex;height:var(--mds-notification-size,calc(var(--spacing,.0025rem)*500));width:var(--mds-notification-min-width,calc(var(--spacing,.0025rem)*500))}:host([dismissed]:not([dismissed=false])[strategy=absolute]),:host([dismissed]:not([dismissed=false])[strategy=fixed]){--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));opacity:1;transform:var(--mds-notification-translate,translate(calc(var(--spacing,.0025rem)*500/-1.75),calc(var(--spacing,.0025rem)*500/-2))) scale(0);transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}:host([strategy=absolute]:not([dismissed])),:host([strategy=absolute][dismissed=false]),:host([strategy=fixed]:not([dismissed])),:host([strategy=fixed][dismissed=false]){--tw-ease:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));opacity:1;transform:var(--mds-notification-translate,translate(calc(var(--spacing,.0025rem)*500/-1.75),calc(var(--spacing,.0025rem)*500/-2))) scale(1);transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1))}:host(:not([target])),:host([strategy=disabled]){opacity:1;position:static;transform:scale(1);transform-origin:unset;transition-duration:0s}:host(:not([target])) .dot,:host([strategy=disabled]) .dot{position:static}:host([dismissed]:not([dismissed=false]):not([target])),:host([dismissed]:not([dismissed=false])[strategy=disabled]){display:none}:host([variant=error]){--mds-notification-color:rgb(var(--magma-danger-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-dot-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)))}:host([variant=info]){--mds-notification-color:rgb(var(--magma-info-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-dot-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)))}:host([variant=success]){--mds-notification-color:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-dot-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}:host([variant=warning]){--mds-notification-color:rgb(var(--magma-warning-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-dot-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-notification-transition-duration:0s;--private-notification-dot-transition-duration:0s;--private-notification-pulse-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-notification-transition-duration:0s;--private-notification-dot-transition-duration:0s;--private-notification-pulse-duration:0s}}'};var p=i("mds_notification",/** @class */function(){function i(i){var a=this;t(this,i);this.describing=false;this.pulsing=false;
|
|
2
2
|
/**
|
|
3
3
|
* Specifies the number of notifications to display. At 0 the badge shows no number, as an
|
|
4
4
|
* empty dot: it is not hidden, `dismissed` takes it off its target
|
|
@@ -58,4 +58,4 @@ this.pulsing=false};
|
|
|
58
58
|
* pref-animation sheet ends one that is playing when the preference changes.
|
|
59
59
|
*/i.prototype.valueHandler=function(i,t){
|
|
60
60
|
// a removed attribute leaves null, which counts as no value
|
|
61
|
-
if(!this.pulse||this.pulsing||!((i!==null&&i!==void 0?i:0)>(t!==null&&t!==void 0?t:0)))return;if(r())return;this.pulsing=true};i.prototype.strategyHandler=function(i){if(i==="disabled"){this.stopAutoUpdate()}};i.prototype.render=function(){return a(n,{key:"
|
|
61
|
+
if(!this.pulse||this.pulsing||!((i!==null&&i!==void 0?i:0)>(t!==null&&t!==void 0?t:0)))return;if(r())return;this.pulsing=true};i.prototype.strategyHandler=function(i){if(i==="disabled"){this.stopAutoUpdate()}};i.prototype.render=function(){return a(n,{key:"2804812b6d016ab36d22d5272d26ec8b9f51cffe","aria-hidden":this.describing?"true":undefined,"pref-animation":s.state.animation},a("mds-text",{key:"9c882c379f588a86eebc12e763ec08cb4a15faaa",typography:"caption",class:{dot:true,pulse:this.pulse&&this.pulsing}},this.clean(this.value)))};Object.defineProperty(i.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(i,"watchers",{get:function(){return{value:[{valueHandler:0}],strategy:[{strategyHandler:0}]}},enumerable:false,configurable:true});return i}());p.style=g()}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as r,e as a,g as t}from"./p-CvLLN-QH.js";import{q as o,o as i}from"./p-AEckDMXh.js";const s=class{constructor(r){e(this,r),this.elements=[],this.childrenElements=[],this.syncedItems=new WeakSet,this.appearance="depth",this.toggle="chevron",this.togglePosition="left",this.truncate="word",this.actions="auto",this.updateChildrenExpanded=e=>{this.childrenElements.forEach((r=>{r.async||(r.expanded=e)}))},this.updateChildrenToggle=e=>{this.childrenElements.forEach((r=>{r.toggle=e}))},this.updateChildrenTogglePosition=e=>{this.childrenElements.forEach((r=>{r.togglePosition=e}))},this.updateChildrenAppearance=e=>{this.childrenElements.forEach((r=>{r.appearance=e}))},this.updateChildrenTruncate=e=>{this.childrenElements.forEach((r=>{r.truncate=e}))},this.updateElements=()=>{var e,r,a;this.elements=null!==(a=null===(r=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector("slot"))||void 0===r?void 0:r.assignedElements())&&void 0!==a?a:[],this.updateZIndex()},this.updateZIndex=()=>{this.elements.forEach(((e,r)=>{e.style.zIndex=""+(this.elements.length-r)}))},this.syncItems=()=>{this.childrenElements=Array.from(this.host.querySelectorAll("mds-tree-item")),this.childrenElements.forEach((e=>{this.syncedItems.has(e)||(this.syncedItems.add(e),e.truncate=this.truncate,e.toggle=this.toggle,e.togglePosition=this.togglePosition,e.appearance=this.appearance,void 0===this.expanded||e.async||(e.expanded=this.expanded))})),o(this.host,"mds-tree-item").forEach((e=>{e.depth=0}))}}handleExpandedChange(e){this.updateChildrenExpanded(e)}handleToggleChange(e){this.updateChildrenToggle(e)}handleTogglePositionChange(e){this.updateChildrenTogglePosition(e)}handleAppearanceChange(e){this.updateChildrenAppearance(e)}handleActionsChange(){this.childrenElements.forEach((e=>{e.refreshActions()}))}handleTruncateChange(e){this.updateChildrenTruncate(e)}componentWillLoad(){this.syncItems(),i(this.host,this.syncItems)}render(){var e;return r(a,{key:"
|
|
1
|
+
import{r as e,h as r,e as a,g as t}from"./p-CvLLN-QH.js";import{q as o,o as i}from"./p-AEckDMXh.js";const s=class{constructor(r){e(this,r),this.elements=[],this.childrenElements=[],this.syncedItems=new WeakSet,this.appearance="depth",this.toggle="chevron",this.togglePosition="left",this.truncate="word",this.actions="auto",this.updateChildrenExpanded=e=>{this.childrenElements.forEach((r=>{r.async||(r.expanded=e)}))},this.updateChildrenToggle=e=>{this.childrenElements.forEach((r=>{r.toggle=e}))},this.updateChildrenTogglePosition=e=>{this.childrenElements.forEach((r=>{r.togglePosition=e}))},this.updateChildrenAppearance=e=>{this.childrenElements.forEach((r=>{r.appearance=e}))},this.updateChildrenTruncate=e=>{this.childrenElements.forEach((r=>{r.truncate=e}))},this.updateElements=()=>{var e,r,a;this.elements=null!==(a=null===(r=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector("slot"))||void 0===r?void 0:r.assignedElements())&&void 0!==a?a:[],this.updateZIndex()},this.updateZIndex=()=>{this.elements.forEach(((e,r)=>{e.style.zIndex=""+(this.elements.length-r)}))},this.syncItems=()=>{this.childrenElements=Array.from(this.host.querySelectorAll("mds-tree-item")),this.childrenElements.forEach((e=>{this.syncedItems.has(e)||(this.syncedItems.add(e),e.truncate=this.truncate,e.toggle=this.toggle,e.togglePosition=this.togglePosition,e.appearance=this.appearance,void 0===this.expanded||e.async||(e.expanded=this.expanded))})),o(this.host,"mds-tree-item").forEach((e=>{e.depth=0}))}}handleExpandedChange(e){this.updateChildrenExpanded(e)}handleToggleChange(e){this.updateChildrenToggle(e)}handleTogglePositionChange(e){this.updateChildrenTogglePosition(e)}handleAppearanceChange(e){this.updateChildrenAppearance(e)}handleActionsChange(){this.childrenElements.forEach((e=>{e.refreshActions()}))}handleTruncateChange(e){this.updateChildrenTruncate(e)}componentWillLoad(){this.syncItems(),i(this.host,this.syncItems)}render(){var e;return r(a,{key:"5420bff186dad2fead21d4fa1104f1661db07240","aria-label":""!==(null!==(e=this.label)&&void 0!==e?e:"")?this.label:void 0,role:"list"},r("slot",{key:"c6e5a19d2b0f1be4b927868c84244845d65ec622",onSlotchange:this.updateElements}))}get host(){return t(this)}static get watchers(){return{expanded:[{handleExpandedChange:0}],toggle:[{handleToggleChange:0}],togglePosition:[{handleTogglePositionChange:0}],appearance:[{handleAppearanceChange:0}],actions:[{handleActionsChange:0}],truncate:[{handleTruncateChange:0}]}}};s.style='@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-tree-item:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tree-actions-border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));--mds-tree-actions-gap:calc(var(--spacing,.0025rem)*50);--mds-tree-label-default-background:#0000;--mds-tree-label-hover-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-tree-label-icon-default-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-tree-label-icon-hover-color:var(--mds-tree-label-icon-default-color);--mds-tree-line-clamp:2;--mds-tree-branch-border-color:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-tree-branch-use-rounded-border:true;--mds-tree-branch-border-size:calc(var(--spacing,.0025rem)*50);--mds-tree-branch-dot-default-color:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-tree-branch-dot-expanded-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-tree-toggle-gap:calc(var(--spacing,.0025rem)*100);--mds-tree-toggle-icon-async-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-tree-toggle-icon-async-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-tree-toggle-icon-chevron-default-background:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-tree-toggle-icon-chevron-default-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-tree-toggle-icon-chevron-expanded-background:var(--mds-tree-toggle-icon-chevron-default-background);--mds-tree-toggle-icon-chevron-expanded-color:var(--mds-tree-toggle-icon-chevron-default-color);--mds-tree-toggle-icon-folder-default-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-tree-toggle-icon-folder-default-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-tree-toggle-icon-folder-expanded-color:var(--mds-tree-toggle-icon-folder-default-color);--mds-tree-toggle-icon-position-right-default-background:#0000;--mds-tree-toggle-icon-position-right-default-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-tree-toggle-icon-position-right-expanded-background:#0000;--mds-tree-toggle-icon-position-right-expanded-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-tree-transition-duration:var(--duration-300,.3s);--mds-tree-transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));--mds-tree-toggle-border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));--mds-tree-toggle-size:calc(var(--spacing,.0025rem)*900);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));border-radius:var(--magma-radius-sm,var(--radius-squircle-sm,16px));transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));corner-shape:var(--magma-corner-shape,squircle);display:grid;padding:calc(var(--spacing,.0025rem)*50);transition-duration:var(--duration-200,.2s);transition-property:background-color}@property --tw-ease{syntax:"*";inherits:false}';export{s as mds_tree}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(i,
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,i,n,e){function r(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(e.next(t))}catch(t){o(t)}}function s(t){try{c(e["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):r(t.value).then(a,s)}c((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,r,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(i){return c([t,i])}}function c(s){if(e)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(e=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=i.call(t,n)}catch(t){s=[6,t];r=0}finally{e=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-BZP13mns.system.js","./p-B-nayZ3E.system.js","./p-BHdlb7Fr.system.js","./p-DOisMne4.system.js"],(function(t){"use strict";var i,n,e,r,o,a,s,c,u;return{setters:[function(t){i=t.r;n=t.d;e=t.h;r=t.e;o=t.g},function(t){a=t.a;s=t.c},function(t){c=t.L},function(t){u=t.p}],execute:function(){var f="Εκκαθάριση ειδοποιήσεων";var d={clearNotifications:f};var m="Clear notifications";var h={clearNotifications:m};var l="Borrar notificaciones";var p={clearNotifications:l};var v="Cancella notifiche";var b={clearNotifications:v};var g=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-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-push-notification-fadeout-delay:0s;--mds-push-notification-gap:calc(var(--spacing,.0025rem)*200);--mds-push-notification-items-intro-delay:var(--duration-300,.3s);--mds-push-notification-items-outro-delay:0s;--mds-push-notification-items-duration:var(--duration-300,.3s);--mds-push-notification-items-gap:var(--mds-push-notification-gap,calc(var(--spacing,.0025rem)*200));--mds-push-notification-items-timing-function:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));--mds-push-notification-background:linear-gradient(to right,rgb(var(--magma-surface-sunken,var(--surface-neutral-sunken,232 232 232))/0) 0%,rgb(var(--magma-surface-sunken,var(--surface-neutral-sunken,232 232 232))/.85) 100%);-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none;--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));background:var(--mds-push-notification-background);bottom:0;box-sizing:initial!important;display:flex;flex-direction:column;gap:calc(var(--spacing,.0025rem)*200);max-width:calc(var(--spacing,.0025rem)*9000);min-width:calc(var(--spacing,.0025rem)*7200);overflow-x:hidden;padding:calc(var(--spacing,.0025rem)*400);padding-left:calc(var(--spacing,.0025rem)*2400);position:fixed;right:0;top:0;transform:translate(100%);transition-delay:var(--mds-push-notification-fadeout-delay,0s);transition-duration:var(--duration-500,.5s);transition-property:transform;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));z-index:var(--magma-notification-z-index,2000)}:host::-webkit-scrollbar{display:none}.notifications{display:flex;flex-direction:column-reverse;gap:var(--mds-push-notification-items-gap)}.notifications ::slotted(mds-push-notification-item){--mds-push-notification-item-duration:var(--mds-push-notification-items-duration,var(--duration-300,.3s));--mds-push-notification-item-timing-function:var(--mds-push-notification-items-timing-function);position:absolute;transform:translate(calc(100% + calc(var(--mds-push-notification-gap,calc(var(--spacing,.0025rem) * 200)) + var(--mds-push-notification-gap,calc(var(--spacing,.0025rem) * 200)))));visibility:hidden}:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark]){--mds-push-notification-background:linear-gradient(to right,rgb(var(--magma-backdrop-color,0 0 0)/0) 0%,rgb(var(--magma-backdrop-color,0 0 0)/.5) 20%,rgb(var(--magma-backdrop-color,0 0 0)/.85) 100%)}:host([visible]){transform:translate(0);transition-delay:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:host(:not([pref-mode]):not([pref-theme-scheme=light])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-push-notification-background:linear-gradient(to right,rgb(var(--magma-backdrop-color,0 0 0)/0) 0%,rgb(var(--magma-backdrop-color,0 0 0)/.5) 20%,rgb(var(--magma-backdrop-color,0 0 0)/.85) 100%)}}'};var y=t("mds_push_notification",/** @class */function(){function t(t){var e=this;i(this,t);this.changedEvent=n(this,"mdsPushNotificationChange",7);this.shownEvent=n(this,"mdsPushNotificationShow",7);this.hiddenEvent=n(this,"mdsPushNotificationHide",7);this.t=new c({el:d,en:h,es:p,it:b});
|
|
2
2
|
/**
|
|
3
3
|
* Specifies when the stack shows: with `auto` whenever notifications are added, with `manual`
|
|
4
4
|
* only through `visible` or `show()`. In both, removing the last notification hides it; a
|
|
@@ -14,33 +14,33 @@ var __awaiter=this&&this.__awaiter||function(i,t,n,e){function r(i){return i ins
|
|
|
14
14
|
* Animation for open notification
|
|
15
15
|
* @param element HTMLElement that need to be opened
|
|
16
16
|
* @returns
|
|
17
|
-
*/this.introItem=function(
|
|
17
|
+
*/this.introItem=function(t){
|
|
18
18
|
// no reason why I must duplicata marginBottom negative to prevent flickering
|
|
19
|
-
|
|
19
|
+
t.style.marginBottom="-".concat(t.offsetHeight+a(e.cssItemsGap),"px");return new Promise((function(i){setTimeout((function(){t.style.marginBottom="-".concat(t.offsetHeight+a(e.cssItemsGap),"px");setTimeout((function(){t.style.visibility="visible";t.style.position="relative";t.style.transform="translate(0, 0)";t.style.marginBottom="0px";i()}),s(e.cssItemsIntroDuration))}),15);// hope to find a better solution not based on 15ms of delay, not very robust
|
|
20
20
|
}))};
|
|
21
21
|
/**
|
|
22
22
|
* Animation for close notification
|
|
23
23
|
* @param element HTMLElement that need to be removed
|
|
24
24
|
* @returns
|
|
25
|
-
*/this.outroItem=function(
|
|
25
|
+
*/this.outroItem=function(t){
|
|
26
26
|
// the elements: the nodes counted the whitespace between indented items too, so the stack
|
|
27
27
|
// never hid once its last item was closed
|
|
28
28
|
if(e.slotNotifications.assignedElements().length<=1)e.hide();
|
|
29
29
|
// no reason why I must duplicate marginBottom negative to prevent flickering
|
|
30
|
-
|
|
30
|
+
t.style.marginBottom="0px";return new Promise((function(i){setTimeout((function(){t.style.marginBottom="0px";setTimeout((function(){t.addEventListener("transitionend",(function(){
|
|
31
31
|
// element.removeEventListener('transitionend')
|
|
32
|
-
|
|
32
|
+
t.remove()}));t.style.removeProperty("transform");t.style.marginBottom="-".concat(t.offsetHeight+a(e.cssItemsGap),"px");i()}),s(e.cssItemsOutroDuration))}),15);// hope to find a better solution not based on 15ms of delay, not very robust
|
|
33
33
|
}))};
|
|
34
34
|
/**
|
|
35
35
|
* manages the opening of notifications when they are added to the slot
|
|
36
|
-
*/this.handleSlotChange=function(){var
|
|
36
|
+
*/this.handleSlotChange=function(){var t=e.slotNotifications.assignedElements().map((function(t){return t})).filter((function(t){return t.style.visibility===""}));if(t.length===0)return;t.forEach((function(t){return __awaiter(e,void 0,void 0,(function(){var i=this;return __generator(this,(function(n){switch(n.label){case 0:t.addEventListener("mdsPushNotificationItemClose",(function(){return i.outroItem(t)}));return[4/*yield*/,this.introItem(t)];case 1:n.sent();return[2/*return*/]}}))}))}));if(e.behavior==="auto")e.show()};this.updateCSSCustomProps=function(){var t,i,n;var r=window.getComputedStyle(e.host);e.cssItemsGap=(t=r.getPropertyValue("--mds-push-notification-items-gap"))!==null&&t!==void 0?t:"0.5rem";e.cssItemsIntroDuration=(i=r.getPropertyValue("--mds-push-notification-items-intro-delay"))!==null&&i!==void 0?i:"200ms";e.cssItemsOutroDuration=(n=r.getPropertyValue("--mds-push-notification-items-outro-delay"))!==null&&n!==void 0?n:"0ms"};this.clear=function(){e.slotNotifications.assignedElements().forEach((function(t){return e.outroItem(t)}));e.hide()}}
|
|
37
37
|
/**
|
|
38
38
|
* Shows the notification container.
|
|
39
|
-
*/
|
|
39
|
+
*/t.prototype.show=function(){this.visible=true;return Promise.resolve()};
|
|
40
40
|
/**
|
|
41
41
|
* Hides the notification container.
|
|
42
|
-
*/
|
|
42
|
+
*/t.prototype.hide=function(){this.visible=undefined;return Promise.resolve()};
|
|
43
43
|
/**
|
|
44
44
|
* Removes the given notification item(s) from the stack.
|
|
45
45
|
* @param notification the notification item or items to remove
|
|
46
|
-
*/
|
|
46
|
+
*/t.prototype.removeNotification=function(t){if(Array.isArray(t)){t.forEach(this.outroItem)}else{this.outroItem(t)}return Promise.resolve()};t.prototype.componentDidLoad=function(){this.updateCSSCustomProps();this.slotNotifications.addEventListener("slotchange",this.handleSlotChange);this.handleSlotChange()};t.prototype.visibleChanged=function(t){if(t){this.changedEvent.emit({visible:true});this.shownEvent.emit();return}if(t===undefined){this.changedEvent.emit({visible:false});this.hiddenEvent.emit();return}this.visible=undefined};t.prototype.render=function(){var t=this;return e(r,{key:"36f61efc8071d0aecefdc63a1197ee36ad7239d9","pref-mode":u.state.mode,"pref-theme-scheme":u.state["theme-scheme"]},e("mds-button",{key:"b23e5ff4e6f57523922d65630e94f8236bc6ec0f",variant:"dark",onClick:this.clear,label:this.t.get("clearNotifications")}),e("div",{key:"2e1a804d01b5e4b2a312842f8bc6b87a778588ba",class:"notifications",part:"notifications"},e("slot",{key:"183e615bda0f59fe044b42a6e63883d695ca4d3a",ref:function(i){return t.slotNotifications=i}})))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{visible:[{visibleChanged:0}]}},enumerable:false,configurable:true});return t}());y.style=g()}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,e as s,g as e}from"./p-CvLLN-QH.js";const o=t=>{var i;const s=null!==(i=t.duration)&&void 0!==i?i:0;return 0!==s&&!Number.isNaN(s)},a=class{constructor(i){t(this,i),this.shown=[],this.position="bottom-center",this.max=3,this.limit=()=>Number.isInteger(this.max)&&this.max>0?this.max:3,this.toasts=()=>Array.from(this.host.querySelectorAll("mds-toast")),this.update=()=>{const t=this.toasts();t.forEach((t=>{t.position!==this.position&&(t.position=this.position)}));const i=t.filter((t=>!!t.visible));this.shown=this.shown.filter((t=>i.includes(t)));const s=i.filter((t=>!this.shown.includes(t)));if(this.shown.push(...s),0===s.length)return;let e=this.shown.length-this.limit();for(const t of this.shown.filter((t=>!s.includes(t)))){if(e<=0)break;o(t)&&(t.visible=!1,e-=1)}this.shown=this.shown.filter((t=>t.visible))},this.observe=()=>{var t;"undefined"!=typeof MutationObserver&&(null===(t=this.observer)||void 0===t||t.disconnect(),this.observer=new MutationObserver(this.update),this.observer.observe(this.host,{attributeFilter:["visible"],childList:!0,subtree:!0}))},this.checkMax=t=>{null==t||Number.isInteger(t)&&t>0||console.warn(`mds-toast-region: ignoring the invalid max "${t}", using 3`)}}connectedCallback(){this.observe()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.observer=void 0}componentWillLoad(){this.checkMax(this.max)}componentDidLoad(){this.update()}positionChanged(){this.update()}maxChanged(t){this.checkMax(t),this.update()}render(){return i(s,{key:"
|
|
1
|
+
import{r as t,h as i,e as s,g as e}from"./p-CvLLN-QH.js";const o=t=>{var i;const s=null!==(i=t.duration)&&void 0!==i?i:0;return 0!==s&&!Number.isNaN(s)},a=class{constructor(i){t(this,i),this.shown=[],this.position="bottom-center",this.max=3,this.limit=()=>Number.isInteger(this.max)&&this.max>0?this.max:3,this.toasts=()=>Array.from(this.host.querySelectorAll("mds-toast")),this.update=()=>{const t=this.toasts();t.forEach((t=>{t.position!==this.position&&(t.position=this.position)}));const i=t.filter((t=>!!t.visible));this.shown=this.shown.filter((t=>i.includes(t)));const s=i.filter((t=>!this.shown.includes(t)));if(this.shown.push(...s),0===s.length)return;let e=this.shown.length-this.limit();for(const t of this.shown.filter((t=>!s.includes(t)))){if(e<=0)break;o(t)&&(t.visible=!1,e-=1)}this.shown=this.shown.filter((t=>t.visible))},this.observe=()=>{var t;"undefined"!=typeof MutationObserver&&(null===(t=this.observer)||void 0===t||t.disconnect(),this.observer=new MutationObserver(this.update),this.observer.observe(this.host,{attributeFilter:["visible"],childList:!0,subtree:!0}))},this.checkMax=t=>{null==t||Number.isInteger(t)&&t>0||console.warn(`mds-toast-region: ignoring the invalid max "${t}", using 3`)}}connectedCallback(){this.observe()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.observer=void 0}componentWillLoad(){this.checkMax(this.max)}componentDidLoad(){this.update()}positionChanged(){this.update()}maxChanged(t){this.checkMax(t),this.update()}render(){return i(s,{key:"9b73ad557a2366e83eacb641feb429395b830021",role:"status","aria-live":"polite","aria-atomic":"false"},i("slot",{key:"8fd14f1db8ae93a23cb1540975e93f400ec0d7a9"}))}get host(){return e(this)}static get watchers(){return{position:[{positionChanged:0}],max:[{maxChanged:0}]}}};a.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-toast-region-gap:calc(var(--spacing,.0025rem)*200);bottom:0;display:flex;flex-direction:column;gap:var(--mds-toast-region-gap,calc(var(--spacing,.0025rem)*200));left:0;pointer-events:none;position:fixed;right:0;z-index:var(--magma-modal-z-index,3000)}:host([position^=top]){bottom:auto;flex-direction:column-reverse;top:0}";export{a as mds_toast_region}
|