@maggioli-design-system/magma 2.13.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +50 -0
- package/agents/assets.md +1 -1
- package/agents/install.md +6 -1
- package/agents/mcp.md +14 -5
- package/agents/patterns/app-shell.md +18 -14
- package/agents/patterns/confirm-action.md +138 -15
- package/agents/patterns/empty-state.md +116 -15
- package/agents/patterns/error-recovery.md +151 -19
- package/agents/patterns/item-list.md +12 -11
- package/agents/patterns/labels-and-values.md +1 -0
- package/agents/patterns/list-with-filters.md +99 -9
- package/agents/patterns/loading.md +141 -19
- package/agents/patterns/message-placement.md +355 -39
- package/agents/patterns/page-header.md +7 -6
- package/agents/patterns/previews/actions/banner.dark.webp +0 -0
- package/agents/patterns/previews/actions/banner.light.webp +0 -0
- package/agents/patterns/previews/actions/confirm.dark.webp +0 -0
- package/agents/patterns/previews/actions/confirm.light.webp +0 -0
- package/agents/patterns/previews/actions/danger-zone.dark.webp +0 -0
- package/agents/patterns/previews/actions/danger-zone.light.webp +0 -0
- package/agents/patterns/previews/actions/destructive-in-menu.dark.webp +0 -0
- package/agents/patterns/previews/actions/destructive-in-menu.light.webp +0 -0
- package/agents/patterns/previews/actions/dismiss-message.dark.webp +0 -0
- package/agents/patterns/previews/actions/dismiss.dark.webp +0 -0
- package/agents/patterns/previews/actions/dismiss.light.webp +0 -0
- package/agents/patterns/previews/actions/more-in-menu.dark.webp +0 -0
- package/agents/patterns/previews/actions/more-in-menu.light.webp +0 -0
- package/agents/patterns/previews/actions/part-primary.dark.webp +0 -0
- package/agents/patterns/previews/actions/part-primary.light.webp +0 -0
- package/agents/patterns/previews/actions/primary.dark.webp +0 -0
- package/agents/patterns/previews/actions/primary.light.webp +0 -0
- package/agents/patterns/previews/actions/remove.dark.webp +0 -0
- package/agents/patterns/previews/actions/secondary.dark.webp +0 -0
- package/agents/patterns/previews/actions/secondary.light.webp +0 -0
- package/agents/patterns/previews/actions/stacked.dark.webp +0 -0
- package/agents/patterns/previews/actions/stacked.light.webp +0 -0
- package/agents/patterns/previews/actions/toast.dark.webp +0 -0
- 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/many-sections.dark.webp +0 -0
- package/agents/patterns/previews/app-shell/many-sections.html +2 -2
- 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/section-menus.dark.webp +0 -0
- package/agents/patterns/previews/app-shell/section-menus.html +2 -2
- package/agents/patterns/previews/confirm-action/act-then-undo.dark.webp +0 -0
- package/agents/patterns/previews/confirm-action/act-then-undo.html +1 -1
- package/agents/patterns/previews/confirm-action/ask-before-sending.dark.webp +0 -0
- package/agents/patterns/previews/confirm-action/ask-before-sending.light.webp +0 -0
- package/agents/patterns/previews/confirm-action/ask-first-many.dark.webp +0 -0
- package/agents/patterns/previews/confirm-action/ask-first.dark.webp +0 -0
- package/agents/patterns/previews/confirm-action/make-reversible.dark.webp +0 -0
- package/agents/patterns/previews/confirm-action/make-reversible.html +1 -1
- package/agents/patterns/previews/confirm-action/make-reversible.light.webp +0 -0
- package/agents/patterns/previews/confirm-action/send-as-shown.dark.webp +0 -0
- package/agents/patterns/previews/confirm-action/send-as-shown.html +2 -2
- package/agents/patterns/previews/confirm-action/send-as-shown.light.webp +0 -0
- package/agents/patterns/previews/empty-state/add-the-first.dark.webp +0 -0
- package/agents/patterns/previews/empty-state/add-the-first.html +1 -1
- package/agents/patterns/previews/empty-state/add-the-first.light.webp +0 -0
- package/agents/patterns/previews/empty-state/all-done.dark.webp +0 -0
- package/agents/patterns/previews/empty-state/all-done.html +1 -1
- package/agents/patterns/previews/empty-state/all-done.light.webp +0 -0
- package/agents/patterns/previews/empty-state/clear-filters.dark.webp +0 -0
- package/agents/patterns/previews/empty-state/clear-filters.html +2 -2
- package/agents/patterns/previews/empty-state/clear-filters.light.webp +0 -0
- package/agents/patterns/previews/empty-state/filled-by-others.dark.webp +0 -0
- package/agents/patterns/previews/empty-state/filled-by-others.html +1 -1
- package/agents/patterns/previews/empty-state/filled-by-others.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/empty-state/one-line.dark.webp +0 -0
- package/agents/patterns/previews/empty-state/one-line.html +1 -1
- package/agents/patterns/previews/error-recovery/action-another-way.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/action-another-way.html +3 -3
- package/agents/patterns/previews/error-recovery/action-another-way.light.webp +0 -0
- package/agents/patterns/previews/error-recovery/changed-meanwhile.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/changed-meanwhile.html +4 -4
- package/agents/patterns/previews/error-recovery/changed-meanwhile.light.webp +0 -0
- package/agents/patterns/previews/error-recovery/check-or-repeat.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/check-or-repeat.html +4 -4
- package/agents/patterns/previews/error-recovery/check-or-repeat.light.webp +0 -0
- package/agents/patterns/previews/error-recovery/content-another-way.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/content-another-way.html +1 -1
- package/agents/patterns/previews/error-recovery/partial.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/partial.html +2 -2
- package/agents/patterns/previews/error-recovery/retry-action.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/retry-action.html +4 -4
- package/agents/patterns/previews/error-recovery/retry-action.light.webp +0 -0
- package/agents/patterns/previews/error-recovery/retry-content.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/retry-content.html +2 -2
- package/agents/patterns/previews/error-recovery/sign-in-again.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/sign-in-again.html +4 -4
- package/agents/patterns/previews/item-list/documents-of-a-request.dark.webp +0 -0
- package/agents/patterns/previews/item-list/documents-of-a-request.html +1 -1
- package/agents/patterns/previews/item-list/documents-of-a-request.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/item-list/requests-to-assign.dark.webp +0 -0
- package/agents/patterns/previews/item-list/requests-to-assign.light.webp +0 -0
- package/agents/patterns/previews/labels-and-values/data-of-a-contact.dark.webp +0 -0
- package/agents/patterns/previews/labels-and-values/data-of-a-contact.html +1 -1
- package/agents/patterns/previews/labels-and-values/payment-before-paying.dark.webp +0 -0
- package/agents/patterns/previews/labels-and-values/payment-before-paying.html +2 -2
- package/agents/patterns/previews/labels-and-values/payment-before-paying.light.webp +0 -0
- package/agents/patterns/previews/labels-and-values/what-is-sent.dark.webp +0 -0
- package/agents/patterns/previews/labels-and-values/what-is-sent.html +4 -4
- package/agents/patterns/previews/labels-and-values/what-is-sent.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 +8 -8
- 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 +4 -4
- 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 +7 -7
- package/agents/patterns/previews/list-with-filters/show-new-items.light.webp +0 -0
- package/agents/patterns/previews/loading/await-and-say.dark.webp +0 -0
- package/agents/patterns/previews/loading/await-and-say.html +2 -2
- package/agents/patterns/previews/loading/await-and-say.light.webp +0 -0
- package/agents/patterns/previews/loading/await-the-control.dark.webp +0 -0
- package/agents/patterns/previews/loading/await-the-control.html +3 -3
- package/agents/patterns/previews/loading/await-the-control.light.webp +0 -0
- package/agents/patterns/previews/loading/first-load.dark.webp +0 -0
- package/agents/patterns/previews/loading/first-load.html +1 -1
- 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.html +2 -2
- 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.html +1 -1
- 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.html +1 -1
- package/agents/patterns/previews/loading/long-load.light.webp +0 -0
- package/agents/patterns/previews/loading/progress-in-place.dark.webp +0 -0
- package/agents/patterns/previews/loading/progress-in-place.html +2 -2
- package/agents/patterns/previews/loading/run-in-background.dark.webp +0 -0
- package/agents/patterns/previews/loading/run-in-background.html +2 -2
- package/agents/patterns/previews/loading/run-in-background.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-done-elsewhere.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-done-elsewhere.html +2 -2
- package/agents/patterns/previews/message-placement/action-done-elsewhere.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-done-in-page.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-done-in-page.html +3 -3
- package/agents/patterns/previews/message-placement/action-done-in-page.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-done-in-part.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-done-in-part.html +4 -4
- package/agents/patterns/previews/message-placement/action-done-in-part.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-failed-elsewhere.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-failed-elsewhere.html +3 -3
- package/agents/patterns/previews/message-placement/action-failed-elsewhere.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-failed-in-place.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-failed-in-place.html +2 -2
- package/agents/patterns/previews/message-placement/action-failed-in-place.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-later.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-later.html +2 -2
- package/agents/patterns/previews/message-placement/action-later.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-partial-elsewhere.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-partial-elsewhere.html +3 -3
- package/agents/patterns/previews/message-placement/action-partial-in-place.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-partial-in-place.html +2 -2
- package/agents/patterns/previews/message-placement/action-partial-in-place.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-taken.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-taken.html +1 -1
- package/agents/patterns/previews/message-placement/action-taken.light.webp +0 -0
- package/agents/patterns/previews/message-placement/app-deadline.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/app-deadline.html +1 -1
- package/agents/patterns/previews/message-placement/app-failed.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/app-failed.html +4 -4
- package/agents/patterns/previews/message-placement/app-info.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/app-info.html +1 -1
- package/agents/patterns/previews/message-placement/decision.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/decision.html +3 -3
- package/agents/patterns/previews/message-placement/field-error.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/field-error.html +1 -1
- package/agents/patterns/previews/message-placement/field-error.light.webp +0 -0
- package/agents/patterns/previews/message-placement/field-hint.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/field-valid.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/field-valid.html +3 -3
- package/agents/patterns/previews/message-placement/region-failed.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/region-failed.html +3 -3
- package/agents/patterns/previews/message-placement/region-info.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/region-info.html +2 -2
- package/agents/patterns/previews/page-header/contact-being-edited.dark.webp +0 -0
- package/agents/patterns/previews/page-header/contact-being-edited.html +1 -1
- package/agents/patterns/previews/page-header/contact-being-edited.light.webp +0 -0
- package/agents/patterns/previews/page-header/members-of-a-group.dark.webp +0 -0
- package/agents/patterns/previews/page-header/members-of-a-group.html +1 -1
- package/agents/patterns/previews/page-header/members-of-a-group.light.webp +0 -0
- package/agents/patterns/previews/page-header/own-profile.dark.webp +0 -0
- package/agents/patterns/previews/page-header/own-profile.html +1 -1
- package/agents/patterns/previews/page-header/own-profile.light.webp +0 -0
- package/agents/patterns/previews/page-header/request-from-the-list.dark.webp +0 -0
- package/agents/patterns/previews/page-header/request-from-the-list.html +1 -1
- package/agents/patterns/previews/page-header/request-from-the-list.light.webp +0 -0
- package/agents/patterns/previews/page-header/requests-of-an-office.dark.webp +0 -0
- package/agents/patterns/previews/page-header/requests-of-an-office.html +1 -1
- package/agents/patterns/previews/page-header/requests-of-an-office.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 +3 -3
- 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 +8 -8
- 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 +3 -3
- 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 +8 -8
- 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 +7 -7
- 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/rhythm/between-containers.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/between-fields.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/between-groups.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/between-sections.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/content-actions.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/content-actions.light.webp +0 -0
- package/agents/patterns/previews/rhythm/inline.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/inline.light.webp +0 -0
- package/agents/patterns/previews/rhythm/inset.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/label-control.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/title-content.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/band.dark.webp +0 -0
- 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/card.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/card.light.webp +0 -0
- package/agents/patterns/previews/surfaces/dialog.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/dialog.light.webp +0 -0
- package/agents/patterns/previews/surfaces/edit-actions.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/edit-actions.light.webp +0 -0
- package/agents/patterns/previews/surfaces/intro-band.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/intro-band.light.webp +0 -0
- package/agents/patterns/previews/surfaces/section.dark.webp +0 -0
- package/agents/patterns/previews/titles/dialog.dark.webp +0 -0
- package/agents/patterns/previews/titles/dialog.light.webp +0 -0
- package/agents/patterns/previews/titles/group.dark.webp +0 -0
- package/agents/patterns/previews/titles/page.dark.webp +0 -0
- package/agents/patterns/previews/titles/page.light.webp +0 -0
- package/agents/patterns/previews/titles/part.dark.webp +0 -0
- package/agents/patterns/previews/titles/section.dark.webp +0 -0
- package/agents/patterns/previews/widths/dialog.dark.webp +0 -0
- package/agents/patterns/previews/widths/dialog.light.webp +0 -0
- package/agents/patterns/previews/widths/field.dark.webp +0 -0
- package/agents/patterns/previews/widths/form.dark.webp +0 -0
- package/agents/patterns/previews/widths/form.light.webp +0 -0
- package/agents/patterns/previews/widths/page.dark.webp +0 -0
- package/agents/patterns/previews/widths/page.light.webp +0 -0
- package/agents/patterns/previews/widths/reading.dark.webp +0 -0
- package/agents/patterns/record-detail.md +179 -15
- package/agents/patterns.md +4 -3
- package/agents/reporting.md +5 -1
- package/dist/cjs/{floating-controller-B21tqid0.js → floating-controller-CelMdjyj.js} +1 -1
- package/dist/cjs/{index-B99V_UhC.js → index-CGlQW3pX.js} +16 -6
- package/dist/cjs/{index-CFEj7WVH.js → index-CWkxqm6T.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{locale-6jikg4jE.js → locale-q_KROc3I.js} +10 -2
- package/dist/cjs/magma-components.cjs.js +3 -3
- package/dist/cjs/mds-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion.cjs.entry.js +3 -3
- package/dist/cjs/mds-author.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +3 -3
- package/dist/cjs/mds-badge.cjs.entry.js +3 -3
- package/dist/cjs/mds-banner_3.cjs.entry.js +5 -5
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
- package/dist/cjs/mds-book.cjs.entry.js +8 -8
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +27 -9
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +34 -13
- package/dist/cjs/mds-calendar_2.cjs.entry.js +4 -4
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +2 -2
- package/dist/cjs/mds-details.cjs.entry.js +3 -3
- package/dist/cjs/mds-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/mds-emoji.cjs.entry.js +3 -3
- package/dist/cjs/mds-entity.cjs.entry.js +3 -3
- package/dist/cjs/mds-file-preview.cjs.entry.js +4 -4
- package/dist/cjs/mds-file.cjs.entry.js +4 -4
- package/dist/cjs/mds-filter-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-filter.cjs.entry.js +4 -4
- package/dist/cjs/mds-header-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-header.cjs.entry.js +2 -2
- 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 +13 -8
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-date-range.cjs.entry.js +8 -8
- package/dist/cjs/mds-input-date.cjs.entry.js +5 -5
- package/dist/cjs/mds-input-field.cjs.entry.js +4 -3
- package/dist/cjs/mds-input-otp.cjs.entry.js +4 -4
- package/dist/cjs/mds-input-range-value.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-range.cjs.entry.js +30 -9
- package/dist/cjs/mds-input-select.cjs.entry.js +7 -7
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +6 -6
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +6 -6
- package/dist/cjs/mds-input-upload.cjs.entry.js +9 -9
- package/dist/cjs/mds-input.cjs.entry.js +9 -9
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +4 -4
- package/dist/cjs/mds-keyboard.cjs.entry.js +4 -4
- package/dist/cjs/mds-kpi-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
- package/dist/cjs/mds-label.cjs.entry.js +4 -4
- package/dist/cjs/mds-link.cjs.entry.js +32 -11
- package/dist/cjs/mds-list-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-list.cjs.entry.js +2 -2
- package/dist/cjs/mds-mention.cjs.entry.js +4 -4
- package/dist/cjs/mds-modal.cjs.entry.js +5 -5
- package/dist/cjs/mds-note.cjs.entry.js +5 -5
- package/dist/cjs/mds-notification.cjs.entry.js +3 -3
- package/dist/cjs/mds-paginator-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-paginator.cjs.entry.js +4 -4
- package/dist/cjs/mds-policy-ai.cjs.entry.js +5 -5
- package/dist/cjs/mds-pref-animation.cjs.entry.js +4 -4
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +4 -4
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +4 -4
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-pref-language.cjs.entry.js +4 -4
- package/dist/cjs/mds-pref-mode.cjs.entry.js +5 -5
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-theme.cjs.entry.js +4 -4
- package/dist/cjs/mds-pref.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-features.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-list.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table.cjs.entry.js +2 -2
- package/dist/cjs/mds-progress_2.cjs.entry.js +6 -6
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +6 -6
- package/dist/cjs/mds-push-notification.cjs.entry.js +5 -5
- package/dist/cjs/mds-quote.cjs.entry.js +3 -3
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-radial-menu.cjs.entry.js +5 -5
- package/dist/cjs/mds-separator.cjs.entry.js +4 -4
- package/dist/cjs/mds-status-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +17 -7
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +9 -7
- 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 +5 -5
- package/dist/cjs/mds-table-body.cjs.entry.js +3 -3
- package/dist/cjs/mds-table-footer.cjs.entry.js +3 -3
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +3 -3
- package/dist/cjs/mds-table-header.cjs.entry.js +4 -4
- package/dist/cjs/mds-table-row.cjs.entry.js +5 -5
- package/dist/cjs/mds-table.cjs.entry.js +5 -5
- package/dist/cjs/mds-text.cjs.entry.js +4 -4
- package/dist/cjs/mds-toast-region.cjs.entry.js +2 -2
- package/dist/cjs/mds-toast.cjs.entry.js +4 -4
- package/dist/cjs/mds-tooltip.cjs.entry.js +16 -9
- package/dist/cjs/mds-tree-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-tree.cjs.entry.js +3 -3
- package/dist/cjs/mds-url-view.cjs.entry.js +4 -4
- package/dist/cjs/mds-usage.cjs.entry.js +4 -4
- package/dist/cjs/mds-video-wall.cjs.entry.js +4 -4
- package/dist/cjs/mds-zero.cjs.entry.js +4 -4
- package/dist/cjs/{navigation-Dxea9mKE.js → navigation-B2UAUx-z.js} +14 -0
- package/dist/cjs/{preference-DTUJPGHS.js → preference-C4QmB-PB.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/locale.js +9 -1
- package/dist/collection/common/navigation.js +13 -0
- package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion/documentation.json +2 -2
- package/dist/collection/components/mds-accordion/mds-accordion.css +1 -1
- package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-item/documentation.json +2 -2
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +3 -3
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer/documentation.json +2 -2
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +2 -2
- package/dist/collection/components/mds-author/AGENTS.md +1 -1
- package/dist/collection/components/mds-author/documentation.json +2 -2
- package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar/documentation.json +2 -2
- package/dist/collection/components/mds-avatar/mds-avatar.css +44 -44
- 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 +2 -2
- package/dist/collection/components/mds-badge/mds-badge.css +53 -53
- package/dist/collection/components/mds-banner/AGENTS.md +1 -1
- package/dist/collection/components/mds-banner/documentation.json +2 -2
- package/dist/collection/components/mds-banner/mds-banner.css +13 -13
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-benchmark-bar/documentation.json +2 -2
- package/dist/collection/components/mds-bibliography/AGENTS.md +1 -1
- package/dist/collection/components/mds-bibliography/documentation.json +2 -2
- package/dist/collection/components/mds-book/AGENTS.md +1 -1
- package/dist/collection/components/mds-book/documentation.json +2 -2
- package/dist/collection/components/mds-book/mds-book.css +2 -2
- 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 +3 -1
- package/dist/collection/components/mds-button/documentation.json +33 -4
- package/dist/collection/components/mds-button/examples.md +15 -1
- package/dist/collection/components/mds-button/mds-button.css +16 -16
- package/dist/collection/components/mds-button/mds-button.js +48 -8
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +5 -4
- package/dist/collection/components/mds-button-dropdown/documentation.json +31 -5
- package/dist/collection/components/mds-button-dropdown/examples.md +12 -1
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +6 -6
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +30 -1
- package/dist/collection/components/mds-button-dropdown/mistakes.md +16 -0
- package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
- package/dist/collection/components/mds-button-group/documentation.json +2 -2
- package/dist/collection/components/mds-calendar/AGENTS.md +1 -1
- package/dist/collection/components/mds-calendar/documentation.json +2 -2
- 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.css +12 -12
- package/dist/collection/components/mds-card/AGENTS.md +1 -1
- package/dist/collection/components/mds-card/documentation.json +2 -2
- package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-content/documentation.json +2 -2
- package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-footer/documentation.json +2 -2
- package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-header/documentation.json +2 -2
- package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-media/documentation.json +2 -2
- 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 +103 -103
- package/dist/collection/components/mds-details/AGENTS.md +1 -1
- package/dist/collection/components/mds-details/documentation.json +2 -2
- package/dist/collection/components/mds-details/mds-details.css +4 -4
- package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
- package/dist/collection/components/mds-dropdown/documentation.json +2 -2
- package/dist/collection/components/mds-emoji/AGENTS.md +1 -1
- package/dist/collection/components/mds-emoji/documentation.json +2 -2
- package/dist/collection/components/mds-emoji/mds-emoji.css +5 -5
- package/dist/collection/components/mds-entity/AGENTS.md +1 -1
- package/dist/collection/components/mds-entity/documentation.json +2 -2
- package/dist/collection/components/mds-entity/mds-entity.css +9 -9
- package/dist/collection/components/mds-file/AGENTS.md +1 -1
- package/dist/collection/components/mds-file/documentation.json +2 -2
- package/dist/collection/components/mds-file/mds-file.css +24 -24
- 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 +118 -118
- package/dist/collection/components/mds-filter/AGENTS.md +1 -1
- package/dist/collection/components/mds-filter/documentation.json +2 -2
- package/dist/collection/components/mds-filter/mds-filter.css +4 -4
- package/dist/collection/components/mds-filter-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-filter-item/documentation.json +2 -2
- 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-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-header-bar/documentation.json +2 -2
- package/dist/collection/components/mds-help/AGENTS.md +1 -1
- package/dist/collection/components/mds-help/documentation.json +2 -2
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +1 -1
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +2 -2
- package/dist/collection/components/mds-hr/AGENTS.md +1 -1
- package/dist/collection/components/mds-hr/documentation.json +2 -2
- package/dist/collection/components/mds-icon/AGENTS.md +2 -2
- package/dist/collection/components/mds-icon/documentation.json +6 -2
- package/dist/collection/components/mds-img/AGENTS.md +6 -4
- package/dist/collection/components/mds-img/documentation.json +48 -6
- package/dist/collection/components/mds-img/examples.md +15 -1
- package/dist/collection/components/mds-img/mds-img.css +6 -6
- package/dist/collection/components/mds-img/mds-img.js +37 -6
- package/dist/collection/components/mds-img/meta/storybook.js +7 -0
- package/dist/collection/components/mds-img/meta/types.js +2 -1
- 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 +12 -12
- 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 +9 -9
- 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 +9 -9
- 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.css +6 -6
- package/dist/collection/components/mds-input-field/AGENTS.md +4 -2
- package/dist/collection/components/mds-input-field/documentation.json +33 -5
- package/dist/collection/components/mds-input-field/examples.md +18 -0
- package/dist/collection/components/mds-input-field/mds-input-field.css +39 -2
- package/dist/collection/components/mds-input-field/mds-input-field.js +21 -1
- package/dist/collection/components/mds-input-field/mistakes.md +21 -0
- 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 +3 -1
- package/dist/collection/components/mds-input-range/documentation.json +3 -3
- package/dist/collection/components/mds-input-range/mds-input-range.css +112 -4
- package/dist/collection/components/mds-input-range/mds-input-range.js +35 -5
- package/dist/collection/components/mds-input-range-value/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-range-value/documentation.json +2 -2
- package/dist/collection/components/mds-input-range-value/mds-input-range-value.js +1 -1
- package/dist/collection/components/mds-input-select/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-select/documentation.json +2 -2
- package/dist/collection/components/mds-input-select/mds-input-select.css +7 -7
- 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 +2 -2
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +20 -18
- 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 +2 -2
- 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 +2 -2
- 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.css +1 -1
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +5 -5
- package/dist/collection/components/mds-keyboard/AGENTS.md +1 -1
- package/dist/collection/components/mds-keyboard/documentation.json +2 -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 +2 -2
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -1
- package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi/documentation.json +2 -2
- package/dist/collection/components/mds-kpi/mds-kpi.js +1 -1
- package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi-item/documentation.json +2 -2
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +4 -4
- 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 +158 -158
- package/dist/collection/components/mds-link/AGENTS.md +3 -1
- package/dist/collection/components/mds-link/documentation.json +33 -4
- package/dist/collection/components/mds-link/examples.md +12 -1
- package/dist/collection/components/mds-link/mds-link.css +1 -1
- package/dist/collection/components/mds-link/mds-link.js +47 -7
- package/dist/collection/components/mds-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-list/documentation.json +2 -2
- package/dist/collection/components/mds-list/mds-list.js +1 -1
- package/dist/collection/components/mds-list-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-list-item/documentation.json +2 -2
- 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 +1 -1
- package/dist/collection/components/mds-modal/documentation.json +2 -2
- package/dist/collection/components/mds-modal/mds-modal.js +2 -2
- 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 +136 -136
- 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 +2 -2
- 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 +2 -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 +2 -2
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +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.css +6 -6
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +1 -1
- package/dist/collection/components/mds-pref/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref/documentation.json +2 -2
- package/dist/collection/components/mds-pref/mds-pref.js +1 -1
- package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +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 +1 -1
- package/dist/collection/components/mds-pref-mode/documentation.json +2 -2
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +6 -6
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +1 -1
- package/dist/collection/components/mds-pref-theme/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-theme/documentation.json +2 -2
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +1 -1
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-theme-item/documentation.json +2 -2
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +2 -2
- 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 +2 -2
- package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
- package/dist/collection/components/mds-price-table-features/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features/documentation.json +2 -2
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +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 +2 -2
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +10 -10
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +1 -1
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-row/documentation.json +2 -2
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +1 -1
- package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-header/documentation.json +2 -2
- package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
- package/dist/collection/components/mds-price-table-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list/documentation.json +2 -2
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +3 -3
- 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 +2 -2
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
- package/dist/collection/components/mds-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-progress/documentation.json +2 -2
- package/dist/collection/components/mds-progress/mds-progress.css +13 -13
- 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 +2 -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.css +38 -38
- 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 +2 -2
- 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 +2 -2
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +5 -5
- 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 +2 -2
- package/dist/collection/components/mds-separator/mds-separator.css +2 -2
- package/dist/collection/components/mds-separator/mds-separator.js +1 -1
- package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
- package/dist/collection/components/mds-spinner/documentation.json +2 -2
- package/dist/collection/components/mds-spinner/mds-spinner.css +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.js +1 -1
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +2 -2
- package/dist/collection/components/mds-stepper-bar/documentation.json +3 -3
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +8 -6
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +6 -4
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +30 -4
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +2 -2
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +31 -2
- package/dist/collection/components/mds-tab/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab/documentation.json +2 -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 +2 -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 +2 -2
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +3 -3
- 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 +2 -2
- package/dist/collection/components/mds-table/mds-table.css +7 -7
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/collection/components/mds-text/mds-text.css +5 -5
- 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 +2 -2
- package/dist/collection/components/mds-toast-region/mds-toast-region.js +1 -1
- package/dist/collection/components/mds-tooltip/AGENTS.md +2 -2
- package/dist/collection/components/mds-tooltip/documentation.json +4 -4
- package/dist/collection/components/mds-tooltip/examples.md +1 -1
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +13 -6
- package/dist/collection/components/mds-tree/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree/documentation.json +2 -2
- package/dist/collection/components/mds-tree/mds-tree.css +6 -6
- 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.js +1 -1
- package/dist/collection/components/mds-usage/AGENTS.md +1 -1
- package/dist/collection/components/mds-usage/documentation.json +2 -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 +2 -2
- package/dist/collection/components/mds-video-wall/mds-video-wall.css +2 -2
- 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 +2 -2
- package/dist/collection/components/mds-zero/mds-zero.css +1 -1
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/collection/fixtures/states.js +35 -0
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-author.js +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-badge.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-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-value.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/{magma-components/p-kW8cjKIa.js → components/p-2RxibNiL.js} +1 -1
- package/dist/components/p-8D5tJYCb.js +1 -0
- package/dist/components/p-B0YEia-F.js +1 -0
- package/dist/components/{p-BmlDGlcB.js → p-B3t-yAT6.js} +2 -2
- package/dist/components/p-B410qrmd.js +1 -0
- package/dist/components/{p-G8GFHw3L.js → p-B7AEyQbN.js} +1 -1
- package/dist/components/{p-CSw6DbKp.js → p-B8rSg0wS.js} +1 -1
- package/dist/components/{p-DxNrlomi.js → p-BNDlJl3j.js} +1 -1
- package/dist/components/p-BPnc1LgR.js +1 -0
- package/dist/components/{p-AWCYh8Xe.js → p-BQJgPeCf.js} +1 -1
- package/dist/components/p-BWCuKjFs.js +1 -0
- package/dist/components/{p-BFZN4zJ9.js → p-BZ0wEKOS.js} +1 -1
- package/dist/components/p-BgdT5eTT.js +1 -0
- package/dist/components/p-Bi6fFi_w.js +1 -0
- package/dist/components/{p-CUT9aFzz.js → p-BiOKp8qm.js} +1 -1
- package/dist/components/p-BpgvTr8e.js +8 -0
- package/dist/components/{p-BG1fjwnd.js → p-BvJpPiuN.js} +1 -1
- package/dist/components/{p-D7C-gjL6.js → p-BwGJqBgv.js} +1 -1
- package/dist/components/p-C2bmqdQ1.js +1 -0
- package/dist/components/p-CSEkugVv.js +1 -0
- package/dist/components/{p-BNl6YWNN.js → p-CbHtKU6H.js} +1 -1
- package/dist/components/{p-oHBGZ2Av.js → p-CbyfhFKK.js} +1 -1
- package/dist/components/p-ChCkQpXr.js +3 -0
- package/dist/components/{p-BiJ4xa4V.js → p-CkFk04x6.js} +1 -1
- package/dist/components/{p-WFNxKo1V.js → p-Cu7JR-NZ.js} +1 -1
- package/dist/components/{p-Cjy1i94z.js → p-DP8t5EZu.js} +1 -1
- package/dist/components/{p-B-GgEAg7.js → p-DWvmuGIQ.js} +1 -1
- package/dist/components/p-DXksxnFe.js +1 -0
- package/dist/components/{p-C0m6B_kt.js → p-DnyQyLeI.js} +1 -1
- package/dist/components/{p-DvccsLwr.js → p-DumA_mZd.js} +1 -1
- package/dist/components/p-Pwyk_BKp.js +1 -0
- package/dist/components/{p-Cs8RIbsQ.js → p-Y1ObmZyL.js} +1 -1
- package/dist/components/{p-CDcB9Zdz.js → p-cIfE1RIC.js} +1 -1
- package/dist/components/p-hOV1Raf4.js +1 -0
- package/dist/components/{p-kS9VRIWa.js → p-r1P_e7WG.js} +1 -1
- package/dist/components/{p-aZlZ1XB9.js → p-tI3q9MMi.js} +1 -1
- package/dist/documentation.json +212 -23
- package/dist/esm/{floating-controller-DlFrvBTG.js → floating-controller-ECQfm808.js} +1 -1
- package/dist/esm/{index-CPibDZjX.js → index-BQhu9Pch.js} +16 -6
- package/dist/esm/{index-DWniH_Ge.js → index-CiyNF8so.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-B7Hw4niB.js → locale-Cm8DHVsu.js} +10 -2
- package/dist/esm/magma-components.js +4 -4
- package/dist/esm/mds-accordion-item.entry.js +3 -3
- package/dist/esm/mds-accordion-timer-item.entry.js +2 -2
- package/dist/esm/mds-accordion-timer.entry.js +1 -1
- package/dist/esm/mds-accordion.entry.js +3 -3
- package/dist/esm/mds-author.entry.js +1 -1
- package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm/mds-avatar-stack.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +3 -3
- package/dist/esm/mds-badge.entry.js +3 -3
- package/dist/esm/mds-banner_3.entry.js +5 -5
- package/dist/esm/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm/mds-bibliography.entry.js +1 -1
- package/dist/esm/mds-book.entry.js +8 -8
- package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm/mds-breadcrumb.entry.js +3 -3
- package/dist/esm/mds-button-dropdown.entry.js +27 -9
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +34 -13
- package/dist/esm/mds-calendar_2.entry.js +4 -4
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +2 -2
- package/dist/esm/mds-details.entry.js +3 -3
- package/dist/esm/mds-dropdown.entry.js +3 -3
- package/dist/esm/mds-emoji.entry.js +3 -3
- package/dist/esm/mds-entity.entry.js +3 -3
- package/dist/esm/mds-file-preview.entry.js +4 -4
- package/dist/esm/mds-file.entry.js +4 -4
- package/dist/esm/mds-filter-item.entry.js +3 -3
- package/dist/esm/mds-filter.entry.js +4 -4
- package/dist/esm/mds-header-bar.entry.js +3 -3
- package/dist/esm/mds-header.entry.js +2 -2
- 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 +13 -8
- package/dist/esm/mds-input-date-range-preselection.entry.js +2 -2
- package/dist/esm/mds-input-date-range.entry.js +8 -8
- package/dist/esm/mds-input-date.entry.js +5 -5
- package/dist/esm/mds-input-field.entry.js +4 -3
- package/dist/esm/mds-input-otp.entry.js +4 -4
- package/dist/esm/mds-input-range-value.entry.js +2 -2
- package/dist/esm/mds-input-range.entry.js +30 -9
- package/dist/esm/mds-input-select.entry.js +7 -7
- package/dist/esm/mds-input-switch_2.entry.js +6 -6
- package/dist/esm/mds-input-tip_2.entry.js +6 -6
- package/dist/esm/mds-input-upload.entry.js +9 -9
- package/dist/esm/mds-input.entry.js +9 -9
- package/dist/esm/mds-keyboard-key.entry.js +4 -4
- package/dist/esm/mds-keyboard.entry.js +4 -4
- package/dist/esm/mds-kpi-item.entry.js +4 -4
- package/dist/esm/mds-kpi.entry.js +2 -2
- package/dist/esm/mds-label.entry.js +4 -4
- package/dist/esm/mds-link.entry.js +32 -11
- package/dist/esm/mds-list-item.entry.js +2 -2
- package/dist/esm/mds-list.entry.js +2 -2
- package/dist/esm/mds-mention.entry.js +4 -4
- package/dist/esm/mds-modal.entry.js +5 -5
- package/dist/esm/mds-note.entry.js +5 -5
- package/dist/esm/mds-notification.entry.js +3 -3
- package/dist/esm/mds-paginator-item.entry.js +4 -4
- package/dist/esm/mds-paginator.entry.js +4 -4
- package/dist/esm/mds-policy-ai.entry.js +5 -5
- package/dist/esm/mds-pref-animation.entry.js +4 -4
- package/dist/esm/mds-pref-consumption.entry.js +4 -4
- package/dist/esm/mds-pref-contrast.entry.js +4 -4
- package/dist/esm/mds-pref-language-item.entry.js +4 -4
- package/dist/esm/mds-pref-language.entry.js +4 -4
- package/dist/esm/mds-pref-mode.entry.js +5 -5
- package/dist/esm/mds-pref-theme-item.entry.js +3 -3
- package/dist/esm/mds-pref-theme.entry.js +4 -4
- package/dist/esm/mds-pref.entry.js +4 -4
- package/dist/esm/mds-price-table-features-cell.entry.js +4 -4
- package/dist/esm/mds-price-table-features-row.entry.js +3 -3
- package/dist/esm/mds-price-table-features.entry.js +4 -4
- package/dist/esm/mds-price-table-header.entry.js +2 -2
- package/dist/esm/mds-price-table-list-item.entry.js +2 -2
- package/dist/esm/mds-price-table-list.entry.js +4 -4
- package/dist/esm/mds-price-table.entry.js +2 -2
- package/dist/esm/mds-progress_2.entry.js +6 -6
- package/dist/esm/mds-push-notification-item.entry.js +6 -6
- package/dist/esm/mds-push-notification.entry.js +5 -5
- package/dist/esm/mds-quote.entry.js +3 -3
- package/dist/esm/mds-radial-menu-item.entry.js +2 -2
- package/dist/esm/mds-radial-menu.entry.js +5 -5
- package/dist/esm/mds-separator.entry.js +4 -4
- package/dist/esm/mds-status-bar.entry.js +3 -3
- package/dist/esm/mds-stepper-bar-item.entry.js +17 -7
- package/dist/esm/mds-stepper-bar.entry.js +9 -7
- 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 +5 -5
- package/dist/esm/mds-table-body.entry.js +3 -3
- package/dist/esm/mds-table-footer.entry.js +3 -3
- package/dist/esm/mds-table-header-cell.entry.js +3 -3
- package/dist/esm/mds-table-header.entry.js +4 -4
- package/dist/esm/mds-table-row.entry.js +5 -5
- package/dist/esm/mds-table.entry.js +5 -5
- package/dist/esm/mds-text.entry.js +4 -4
- package/dist/esm/mds-toast-region.entry.js +2 -2
- package/dist/esm/mds-toast.entry.js +4 -4
- package/dist/esm/mds-tooltip.entry.js +16 -9
- package/dist/esm/mds-tree-item.entry.js +4 -4
- package/dist/esm/mds-tree.entry.js +3 -3
- package/dist/esm/mds-url-view.entry.js +4 -4
- package/dist/esm/mds-usage.entry.js +4 -4
- package/dist/esm/mds-video-wall.entry.js +4 -4
- package/dist/esm/mds-zero.entry.js +4 -4
- package/dist/esm/{navigation-To9IeLHs.js → navigation-Pwyk_BKp.js} +14 -1
- package/dist/esm/{preference-CBMLGSf7.js → preference-B_NbXZNw.js} +1 -1
- package/dist/esm-es5/{floating-controller-DlFrvBTG.js → floating-controller-ECQfm808.js} +1 -1
- package/dist/esm-es5/{index-CPibDZjX.js → index-BQhu9Pch.js} +3 -3
- package/dist/esm-es5/{index-DWniH_Ge.js → index-CiyNF8so.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{locale-B7Hw4niB.js → locale-Cm8DHVsu.js} +28 -21
- package/dist/esm-es5/magma-components.js +3 -3
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +1 -1
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +2 -2
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +3 -3
- package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm-es5/mds-bibliography.entry.js +1 -1
- package/dist/esm-es5/mds-book.entry.js +2 -2
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
- package/dist/esm-es5/mds-button-dropdown.entry.js +8 -5
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +19 -9
- package/dist/esm-es5/mds-calendar_2.entry.js +2 -2
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +1 -1
- package/dist/esm-es5/mds-details.entry.js +1 -1
- package/dist/esm-es5/mds-dropdown.entry.js +1 -1
- package/dist/esm-es5/mds-emoji.entry.js +2 -2
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +11 -11
- package/dist/esm-es5/mds-file.entry.js +2 -2
- package/dist/esm-es5/mds-filter-item.entry.js +2 -2
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-header-bar.entry.js +1 -1
- package/dist/esm-es5/mds-header.entry.js +1 -1
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +9 -7
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-date.entry.js +1 -1
- package/dist/esm-es5/mds-input-field.entry.js +7 -7
- package/dist/esm-es5/mds-input-otp.entry.js +2 -2
- package/dist/esm-es5/mds-input-range-value.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +31 -24
- package/dist/esm-es5/mds-input-select.entry.js +2 -2
- package/dist/esm-es5/mds-input-switch_2.entry.js +2 -2
- package/dist/esm-es5/mds-input-tip_2.entry.js +3 -3
- package/dist/esm-es5/mds-input-upload.entry.js +2 -2
- package/dist/esm-es5/mds-input.entry.js +2 -2
- 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 +2 -2
- 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 +16 -7
- package/dist/esm-es5/mds-list-item.entry.js +2 -2
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +2 -2
- package/dist/esm-es5/mds-modal.entry.js +5 -5
- 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 +4 -4
- package/dist/esm-es5/mds-pref-language-item.entry.js +2 -2
- package/dist/esm-es5/mds-pref-language.entry.js +2 -2
- package/dist/esm-es5/mds-pref-mode.entry.js +2 -2
- package/dist/esm-es5/mds-pref-theme-item.entry.js +2 -2
- package/dist/esm-es5/mds-pref-theme.entry.js +2 -2
- package/dist/esm-es5/mds-pref.entry.js +2 -2
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +2 -2
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +2 -2
- package/dist/esm-es5/mds-price-table-list.entry.js +2 -2
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +3 -3
- package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification.entry.js +6 -6
- package/dist/esm-es5/mds-quote.entry.js +2 -2
- package/dist/esm-es5/mds-radial-menu-item.entry.js +2 -2
- package/dist/esm-es5/mds-radial-menu.entry.js +2 -2
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +2 -2
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +6 -2
- package/dist/esm-es5/mds-stepper-bar.entry.js +11 -8
- 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 +3 -3
- 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 +3 -3
- package/dist/esm-es5/mds-toast-region.entry.js +2 -2
- package/dist/esm-es5/mds-toast.entry.js +2 -2
- package/dist/esm-es5/mds-tooltip.entry.js +13 -7
- package/dist/esm-es5/mds-tree-item.entry.js +2 -2
- package/dist/esm-es5/mds-tree.entry.js +2 -2
- package/dist/esm-es5/mds-url-view.entry.js +2 -2
- package/dist/esm-es5/mds-usage.entry.js +2 -2
- package/dist/esm-es5/mds-video-wall.entry.js +2 -2
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/esm-es5/{navigation-To9IeLHs.js → navigation-Pwyk_BKp.js} +10 -1
- package/dist/esm-es5/{preference-CBMLGSf7.js → preference-B_NbXZNw.js} +1 -1
- package/dist/hydrate/index.js +341 -189
- package/dist/hydrate/index.mjs +341 -189
- package/dist/lint/core/data.d.ts +9 -1
- package/dist/lint/core/data.js +6 -2
- package/dist/lint/core/patterns.d.ts +123 -2
- package/dist/lint/core/patterns.js +423 -19
- package/dist/lint/mcp/tools.json +21 -3
- package/dist/magma-components/index.esm.js +1 -1
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/magma-components.js +1 -1
- package/dist/magma-components/{p-e63c1ba4.entry.js → p-04092a3b.entry.js} +1 -1
- package/dist/magma-components/{p-b1fe6261.entry.js → p-0415056d.entry.js} +1 -1
- package/dist/magma-components/{p-37470fef.system.entry.js → p-0464a230.system.entry.js} +3 -3
- package/dist/magma-components/p-05098fa3.entry.js +1 -0
- package/dist/magma-components/{p-825713bc.system.entry.js → p-07141f37.system.entry.js} +2 -2
- package/dist/magma-components/{p-82041de2.entry.js → p-07e0564b.entry.js} +1 -1
- package/dist/magma-components/{p-df70af5f.system.entry.js → p-07e3a6ae.system.entry.js} +34 -34
- package/dist/magma-components/{p-8193fd71.entry.js → p-096464f6.entry.js} +1 -1
- package/dist/magma-components/p-0b9dc520.system.entry.js +9 -0
- package/dist/magma-components/{p-f6f6d914.system.entry.js → p-0ba59e33.system.entry.js} +3 -3
- package/dist/magma-components/{p-d4452e41.entry.js → p-0d7848dc.entry.js} +1 -1
- package/dist/magma-components/{p-b8e5411d.system.entry.js → p-0e67ab54.system.entry.js} +1 -1
- package/dist/magma-components/{p-f01e7a7e.system.entry.js → p-0ec9ef12.system.entry.js} +1 -1
- package/dist/magma-components/p-0ef36f08.entry.js +1 -0
- package/dist/magma-components/{p-0d7370d8.system.entry.js → p-12785058.system.entry.js} +1 -1
- package/dist/magma-components/{p-58bbada6.system.entry.js → p-13498dce.system.entry.js} +1 -1
- package/dist/magma-components/{p-a0389821.entry.js → p-13a777ff.entry.js} +1 -1
- package/dist/magma-components/{p-2a5223df.system.entry.js → p-165b9ee9.system.entry.js} +3 -3
- package/dist/magma-components/p-16c3109f.entry.js +8 -0
- package/dist/magma-components/{p-038fc1db.entry.js → p-1a0773d4.entry.js} +1 -1
- package/dist/magma-components/{p-483480f9.system.entry.js → p-1ab76b57.system.entry.js} +3 -3
- package/dist/magma-components/{p-e4db9ad2.entry.js → p-1e686eb7.entry.js} +1 -1
- package/dist/magma-components/{p-97e55f7e.system.entry.js → p-1e938a6f.system.entry.js} +2 -2
- package/dist/magma-components/{p-ae258eca.system.entry.js → p-1ee28c75.system.entry.js} +2 -2
- package/dist/magma-components/{p-5c0f0517.entry.js → p-1eedb159.entry.js} +1 -1
- package/dist/magma-components/{p-11312b0c.entry.js → p-1efd5b03.entry.js} +1 -1
- package/dist/magma-components/{p-13e94501.entry.js → p-20e9860a.entry.js} +1 -1
- package/dist/magma-components/{p-2dd32b3f.system.entry.js → p-2102e6ed.system.entry.js} +3 -3
- package/dist/magma-components/p-2155889e.entry.js +1 -0
- package/dist/magma-components/{p-f4e8f507.system.entry.js → p-22de70f3.system.entry.js} +2 -2
- package/dist/magma-components/p-257ae152.entry.js +1 -0
- package/dist/magma-components/{p-5d8cb375.system.entry.js → p-26695384.system.entry.js} +1 -1
- package/dist/magma-components/{p-c902d468.entry.js → p-26e737f5.entry.js} +1 -1
- package/dist/magma-components/{p-d0b45a54.entry.js → p-271fa94b.entry.js} +1 -1
- package/dist/magma-components/{p-1934151b.entry.js → p-27c42c5b.entry.js} +1 -1
- package/dist/magma-components/{p-a171c096.system.entry.js → p-29eab5de.system.entry.js} +1 -1
- package/dist/magma-components/{p-082b787b.entry.js → p-2a367163.entry.js} +1 -1
- package/dist/magma-components/{p-b95f648f.system.entry.js → p-2adc8da6.system.entry.js} +2 -2
- package/dist/magma-components/p-2b0bb30a.entry.js +1 -0
- package/dist/magma-components/{p-3341ac50.entry.js → p-2cb3092c.entry.js} +1 -1
- package/dist/magma-components/{p-ca5867f5.system.entry.js → p-2cd10aef.system.entry.js} +9 -9
- package/dist/magma-components/{p-91406af1.system.entry.js → p-2e1620ba.system.entry.js} +5 -5
- package/dist/magma-components/p-2eab8fb0.entry.js +1 -0
- package/dist/magma-components/{p-e009c632.entry.js → p-31503852.entry.js} +1 -1
- package/dist/magma-components/{p-efcd8a1d.entry.js → p-3401be31.entry.js} +1 -1
- package/dist/magma-components/{p-ccb23b6a.entry.js → p-35261a76.entry.js} +1 -1
- package/dist/magma-components/p-3578ec8d.entry.js +1 -0
- package/dist/magma-components/{p-a4aaf1c6.system.entry.js → p-381b00f2.system.entry.js} +3 -3
- package/dist/magma-components/p-38b33f35.entry.js +1 -0
- package/dist/magma-components/{p-47712df6.entry.js → p-3936265d.entry.js} +1 -1
- package/dist/magma-components/{p-2dc9499c.system.entry.js → p-394560df.system.entry.js} +2 -2
- package/dist/magma-components/{p-d0dfa8b5.system.entry.js → p-39866e42.system.entry.js} +2 -2
- package/dist/magma-components/{p-6c6ec154.system.entry.js → p-3b1cb8ea.system.entry.js} +2 -2
- package/dist/magma-components/{p-dd4b04ed.system.entry.js → p-3d1f9f06.system.entry.js} +2 -2
- package/dist/magma-components/p-3f9b9e40.entry.js +1 -0
- package/dist/magma-components/{p-56715bbc.system.entry.js → p-401c7cff.system.entry.js} +2 -2
- package/dist/magma-components/{p-ad12fa89.system.entry.js → p-40dc42b3.system.entry.js} +2 -2
- package/dist/magma-components/{p-bd539dbc.entry.js → p-41740349.entry.js} +1 -1
- package/dist/magma-components/p-479731de.entry.js +1 -0
- package/dist/magma-components/{p-9c0d1025.system.entry.js → p-4822b172.system.entry.js} +1 -1
- package/dist/magma-components/{p-03896fbd.entry.js → p-48db6553.entry.js} +1 -1
- package/dist/magma-components/{p-ada93f68.entry.js → p-49918013.entry.js} +1 -1
- package/dist/magma-components/p-4b5444f1.entry.js +1 -0
- package/dist/magma-components/{p-420c5af4.entry.js → p-4b7249eb.entry.js} +1 -1
- package/dist/magma-components/{p-f0d93b22.system.entry.js → p-4cc6c06d.system.entry.js} +3 -3
- package/dist/magma-components/{p-7e87807d.entry.js → p-4e68ec48.entry.js} +1 -1
- package/dist/magma-components/p-4f0c913b.system.entry.js +23 -0
- package/dist/magma-components/{p-95a29fd2.entry.js → p-4f80b9be.entry.js} +1 -1
- package/dist/magma-components/{p-6471c0a4.system.entry.js → p-54dfb648.system.entry.js} +2 -2
- package/dist/magma-components/p-5519483d.entry.js +1 -0
- package/dist/magma-components/p-56565acb.system.entry.js +10 -0
- package/dist/magma-components/{p-3d60f528.system.entry.js → p-5845ebd7.system.entry.js} +2 -2
- package/dist/magma-components/{p-333c0ae5.entry.js → p-58a75841.entry.js} +1 -1
- package/dist/magma-components/{p-ecf29ffa.entry.js → p-59cf0c3d.entry.js} +1 -1
- package/dist/magma-components/{p-c8430552.system.entry.js → p-5c3a54bf.system.entry.js} +2 -2
- package/dist/magma-components/p-5c82a88a.entry.js +1 -0
- package/dist/magma-components/{p-a9c7fb3f.entry.js → p-5cf09df3.entry.js} +3 -3
- package/dist/magma-components/{p-756cd3dc.entry.js → p-5ec955a7.entry.js} +1 -1
- package/dist/magma-components/{p-16651356.entry.js → p-5f17dc76.entry.js} +1 -1
- package/dist/magma-components/p-5fd09fb5.system.entry.js +29 -0
- package/dist/magma-components/{p-b4856322.entry.js → p-5fe812ee.entry.js} +1 -1
- package/dist/magma-components/{p-03441f69.entry.js → p-618f8dc9.entry.js} +1 -1
- package/dist/magma-components/{p-34183ce3.entry.js → p-61fb9286.entry.js} +1 -1
- package/dist/magma-components/{p-6443e40f.entry.js → p-63a53b4d.entry.js} +1 -1
- package/dist/magma-components/{p-52b73a95.system.entry.js → p-6436bfa8.system.entry.js} +2 -2
- package/dist/magma-components/{p-73f22a7d.entry.js → p-648d77bc.entry.js} +1 -1
- package/dist/magma-components/p-65acd2e8.entry.js +1 -0
- package/dist/magma-components/{p-5b5d57b0.system.entry.js → p-65ed7a0f.system.entry.js} +7 -5
- package/dist/magma-components/p-67e30158.entry.js +1 -0
- package/dist/magma-components/{p-68d83e18.system.entry.js → p-6864cc54.system.entry.js} +1 -1
- package/dist/magma-components/{p-aa601247.system.entry.js → p-69afe21e.system.entry.js} +2 -2
- package/dist/magma-components/{p-1686b36a.entry.js → p-6ac46e2f.entry.js} +1 -1
- package/dist/magma-components/{p-09675899.entry.js → p-6b84c7a7.entry.js} +1 -1
- package/dist/magma-components/p-6ba8b2d6.entry.js +1 -0
- package/dist/magma-components/{p-8928d9b5.system.entry.js → p-6c68fbe9.system.entry.js} +2 -2
- package/dist/magma-components/{p-c67655fa.entry.js → p-6cca1d61.entry.js} +1 -1
- package/dist/magma-components/{p-ea93721d.entry.js → p-6e5b15c5.entry.js} +1 -1
- package/dist/magma-components/{p-303173d5.system.entry.js → p-6e8b3c36.system.entry.js} +3 -3
- package/dist/magma-components/{p-bd4ad8c7.entry.js → p-6f7d6a3e.entry.js} +1 -1
- package/dist/magma-components/{p-06ba1f71.system.entry.js → p-70a065dc.system.entry.js} +2 -2
- package/dist/magma-components/{p-4564e7ad.entry.js → p-70a83504.entry.js} +1 -1
- package/dist/magma-components/p-71d171a8.entry.js +1 -0
- package/dist/magma-components/{p-5c4aed7e.entry.js → p-71f650fe.entry.js} +1 -1
- package/dist/magma-components/{p-7cfa2415.system.entry.js → p-73ddade8.system.entry.js} +1 -1
- package/dist/magma-components/p-73efbc7a.entry.js +1 -0
- package/dist/magma-components/p-76fb49a1.system.entry.js +11 -0
- package/dist/magma-components/{p-6d7e8240.system.entry.js → p-795215a4.system.entry.js} +1 -1
- package/dist/magma-components/{p-1db5ab39.entry.js → p-79f36661.entry.js} +1 -1
- package/dist/magma-components/{p-3ccc1c10.entry.js → p-79f6c73e.entry.js} +1 -1
- package/dist/magma-components/{p-2e5684a0.system.entry.js → p-7cb4260c.system.entry.js} +2 -2
- package/dist/magma-components/{p-a33a235e.entry.js → p-7cec80c9.entry.js} +1 -1
- package/dist/magma-components/{p-d1751ff6.entry.js → p-7e717a2b.entry.js} +1 -1
- package/dist/magma-components/{p-c2a883b0.system.entry.js → p-8329caf9.system.entry.js} +1 -1
- package/dist/magma-components/p-85389823.system.entry.js +82 -0
- package/dist/magma-components/{p-16a7e26a.system.entry.js → p-86050b72.system.entry.js} +1 -1
- package/dist/magma-components/{p-4bb45501.entry.js → p-88a7d026.entry.js} +1 -1
- package/dist/magma-components/p-89d47be8.system.entry.js +7 -0
- package/dist/magma-components/p-89eb7b19.entry.js +1 -0
- package/dist/magma-components/{p-03a2f4e7.system.entry.js → p-8a3626c7.system.entry.js} +1 -1
- package/dist/magma-components/{p-9e3c1c28.system.entry.js → p-8e195423.system.entry.js} +5 -5
- package/dist/magma-components/{p-522968d1.system.entry.js → p-907d8111.system.entry.js} +1 -1
- package/dist/magma-components/{p-e66db408.entry.js → p-907dd338.entry.js} +1 -1
- package/dist/magma-components/p-9282b1eb.system.entry.js +60 -0
- package/dist/magma-components/p-92a8391c.entry.js +1 -0
- package/dist/magma-components/{p-01d6d5a5.system.entry.js → p-94b46388.system.entry.js} +2 -2
- package/dist/magma-components/{p-b7d90310.entry.js → p-95f07748.entry.js} +1 -1
- package/dist/magma-components/p-97d431f3.system.entry.js +1 -0
- package/dist/magma-components/{p-ca0f3549.entry.js → p-98048238.entry.js} +1 -1
- package/dist/magma-components/{p-b47c444e.system.entry.js → p-9905ebcf.system.entry.js} +2 -2
- package/dist/magma-components/{p-aa86018e.system.entry.js → p-990b3146.system.entry.js} +2 -2
- package/dist/magma-components/p-9b10fdcb.system.entry.js +27 -0
- package/dist/magma-components/{p-8e471af5.entry.js → p-9b4daea1.entry.js} +1 -1
- package/dist/magma-components/{p-11543f44.system.entry.js → p-9c617430.system.entry.js} +4 -4
- package/dist/magma-components/p-9f58805c.system.entry.js +13 -0
- package/dist/magma-components/{p-c3cfbc71.system.entry.js → p-9f653320.system.entry.js} +2 -2
- package/dist/magma-components/{p-1d101083.system.entry.js → p-9fa41a55.system.entry.js} +1 -1
- package/dist/magma-components/{p-a9d100e5.system.entry.js → p-9fac94ff.system.entry.js} +3 -3
- package/dist/{components/p-CtEHhdv4.js → magma-components/p-B0SxTwF4.js} +1 -1
- package/dist/magma-components/p-B6OZspN1.system.js +5 -0
- package/dist/magma-components/p-BQhu9Pch.js +3 -0
- package/dist/magma-components/{p-EhfbAdzV.system.js → p-BfmjlcJL.system.js} +3 -3
- package/dist/magma-components/{p-B6f9M1Bj.system.js → p-BhMNGZjh.system.js} +13 -4
- package/dist/magma-components/{p-BAW1DAbr.system.js → p-CJcKfFM1.system.js} +2 -2
- package/dist/magma-components/{p-H8sVzFTL.js → p-CV9cS5S1.js} +1 -1
- package/dist/magma-components/{p-DGfoeZMw.system.js → p-C_jcGVti.system.js} +2 -2
- package/dist/magma-components/{p-BXkIXROP.js → p-DCJuMTY7.js} +1 -1
- package/dist/magma-components/{p-BkfGbFba.js → p-DDMAJPbm.js} +2 -2
- package/dist/magma-components/{p-CyPLJo0p.system.js → p-DJ5-T3cU.system.js} +1 -1
- package/dist/magma-components/{p-CzZWts7L.system.js → p-DQfleYtv.system.js} +23 -16
- package/dist/magma-components/{p-D5Yayq7E.system.js → p-Djd8g56b.system.js} +1 -1
- package/dist/magma-components/p-Pwyk_BKp.js +1 -0
- package/dist/magma-components/{p-98a3802b.system.entry.js → p-a0b8c130.system.entry.js} +1 -1
- package/dist/magma-components/{p-03285704.entry.js → p-a1085d6b.entry.js} +1 -1
- package/dist/magma-components/{p-73a6ee3b.system.entry.js → p-a4dcc327.system.entry.js} +1 -1
- package/dist/magma-components/{p-a190c325.system.entry.js → p-a6e82aa7.system.entry.js} +2 -2
- package/dist/magma-components/p-a738797b.system.entry.js +120 -0
- package/dist/magma-components/{p-0c8dd132.entry.js → p-a754bd25.entry.js} +1 -1
- package/dist/magma-components/p-a77cbe57.system.entry.js +55 -0
- package/dist/magma-components/{p-778a46fa.entry.js → p-a7cc7459.entry.js} +1 -1
- package/dist/magma-components/p-a90c4a11.entry.js +1 -0
- package/dist/magma-components/{p-bca909d9.entry.js → p-aa65dfb2.entry.js} +1 -1
- package/dist/magma-components/p-ad438b7b.system.entry.js +33 -0
- package/dist/magma-components/{p-6de384d0.system.entry.js → p-adecc08e.system.entry.js} +1 -1
- package/dist/magma-components/{p-009e4359.system.entry.js → p-b27af8ba.system.entry.js} +111 -111
- package/dist/magma-components/{p-cc5518b1.entry.js → p-b2b0f738.entry.js} +1 -1
- package/dist/magma-components/{p-913123e6.entry.js → p-b3aca1fa.entry.js} +1 -1
- package/dist/magma-components/{p-d7813f9b.system.entry.js → p-b440fd7b.system.entry.js} +1 -1
- package/dist/magma-components/{p-3d0578a7.entry.js → p-b4afd3c7.entry.js} +1 -1
- package/dist/magma-components/p-b51ed8f6.entry.js +1 -0
- package/dist/magma-components/{p-70cf2c28.entry.js → p-b6239109.entry.js} +1 -1
- package/dist/magma-components/{p-1e5d4854.system.entry.js → p-b7a16ade.system.entry.js} +2 -2
- package/dist/magma-components/p-b98025cb.system.entry.js +34 -0
- package/dist/magma-components/p-ba6bb2f1.entry.js +1 -0
- package/dist/magma-components/p-ba7f5d01.system.entry.js +1 -0
- package/dist/magma-components/{p-c2d9cf4e.system.entry.js → p-bb3dcd13.system.entry.js} +1 -1
- package/dist/magma-components/p-bb7b5f5e.entry.js +1 -0
- package/dist/magma-components/p-bc0fe932.system.entry.js +7 -0
- package/dist/magma-components/p-be4ff85e.entry.js +1 -0
- package/dist/magma-components/{p-e497f0db.entry.js → p-bfdfba19.entry.js} +1 -1
- package/dist/magma-components/{p-af1a93c6.system.entry.js → p-c021e9a3.system.entry.js} +2 -2
- package/dist/magma-components/{p-cfb153b8.entry.js → p-c082daa4.entry.js} +1 -1
- package/dist/magma-components/{p-1784d5fb.entry.js → p-c28c1c09.entry.js} +1 -1
- package/dist/magma-components/{p-275d7968.system.entry.js → p-c31ba98a.system.entry.js} +14 -14
- package/dist/magma-components/p-c4b498d4.entry.js +1 -0
- package/dist/magma-components/{p-e160e4e1.entry.js → p-c5321c72.entry.js} +1 -1
- package/dist/magma-components/{p-ede31d27.system.entry.js → p-c878eef8.system.entry.js} +2 -2
- package/dist/magma-components/{p-555bd3f8.system.entry.js → p-c8822563.system.entry.js} +2 -2
- package/dist/magma-components/p-cc51ab16.system.entry.js +16 -0
- package/dist/magma-components/{p-f2e5a2c7.system.entry.js → p-cd396f69.system.entry.js} +1 -1
- package/dist/magma-components/{p-a00805cd.system.entry.js → p-d05073ed.system.entry.js} +6 -6
- package/dist/magma-components/{p-270e9afa.entry.js → p-d34cc848.entry.js} +1 -1
- package/dist/magma-components/{p-3fb983e9.system.entry.js → p-d4ca0c40.system.entry.js} +1 -1
- package/dist/magma-components/{p-757c3420.entry.js → p-d52948de.entry.js} +1 -1
- package/dist/magma-components/{p-c5b7f820.system.entry.js → p-d579a012.system.entry.js} +1 -1
- package/dist/magma-components/{p-14f60718.system.entry.js → p-d5bef373.system.entry.js} +1 -1
- package/dist/magma-components/{p-b18b0088.system.entry.js → p-d666a86c.system.entry.js} +1 -1
- package/dist/magma-components/{p-f5c82548.system.entry.js → p-d6934fc0.system.entry.js} +1 -1
- package/dist/magma-components/{p-0760e8a4.entry.js → p-d69ddd73.entry.js} +1 -1
- package/dist/magma-components/{p-eb4f76d8.system.entry.js → p-d7c5f9ec.system.entry.js} +7 -7
- package/dist/magma-components/p-d8ac0d1f.system.entry.js +16 -0
- package/dist/magma-components/{p-9be80c34.entry.js → p-d8c068be.entry.js} +1 -1
- package/dist/magma-components/{p-2289423c.system.entry.js → p-d9edc7f8.system.entry.js} +1 -1
- package/dist/magma-components/p-da4915d0.entry.js +1 -0
- package/dist/magma-components/{p-73b0b35f.system.entry.js → p-dc99e9a9.system.entry.js} +2 -2
- package/dist/magma-components/{p-c0c69807.system.entry.js → p-dd621963.system.entry.js} +1 -1
- package/dist/magma-components/{p-11ee7089.system.entry.js → p-dfc31d2e.system.entry.js} +2 -2
- package/dist/magma-components/p-e5b22a99.system.entry.js +48 -0
- package/dist/magma-components/p-e6500bfe.system.entry.js +29 -0
- package/dist/magma-components/{p-62e42a62.entry.js → p-e88a43ac.entry.js} +1 -1
- package/dist/magma-components/{p-3b41f929.entry.js → p-e9f821a0.entry.js} +1 -1
- package/dist/magma-components/{p-ac401f1a.entry.js → p-ec1b38c7.entry.js} +1 -1
- package/dist/magma-components/{p-ee65f0eb.system.entry.js → p-eec2ae5c.system.entry.js} +2 -2
- package/dist/magma-components/{p-78cced59.entry.js → p-efb4357e.entry.js} +1 -1
- package/dist/magma-components/{p-586878a2.system.entry.js → p-f02972ba.system.entry.js} +4 -4
- package/dist/magma-components/{p-ddc31c50.entry.js → p-f07777b0.entry.js} +1 -1
- package/dist/magma-components/{p-478bbfdb.entry.js → p-f0fd6414.entry.js} +1 -1
- package/dist/magma-components/p-f1d263fa.system.entry.js +137 -0
- package/dist/magma-components/{p-cfcb8bb5.entry.js → p-f43ee21d.entry.js} +1 -1
- package/dist/magma-components/{p-e84361ee.system.entry.js → p-f5ea4c19.system.entry.js} +12 -6
- package/dist/magma-components/{p-4e4dd1c1.system.entry.js → p-f6256d26.system.entry.js} +2 -2
- package/dist/magma-components/{p-8aa6524e.entry.js → p-f62ea4bc.entry.js} +1 -1
- package/dist/magma-components/{p-18421a84.entry.js → p-f6638f03.entry.js} +1 -1
- package/dist/magma-components/{p-41829c15.system.entry.js → p-f895695a.system.entry.js} +2 -2
- package/dist/magma-components/{p-a075c069.entry.js → p-fa8482c0.entry.js} +1 -1
- package/dist/magma-components/{p-857e893e.system.entry.js → p-fafb8e7b.system.entry.js} +3 -3
- package/dist/magma-components/{p-d1281855.system.entry.js → p-fb3b659c.system.entry.js} +5 -5
- package/dist/magma-components/{p-1f756317.entry.js → p-fc167181.entry.js} +1 -1
- package/dist/magma-components/{p-33172d6f.system.entry.js → p-fc7b9e5b.system.entry.js} +11 -8
- package/dist/magma-components/p-fc9a8862.entry.js +1 -0
- package/dist/magma-components/{p-9b00051f.system.entry.js → p-fe6100ff.system.entry.js} +1 -1
- package/dist/magma-components/{p-d173ae2f.system.entry.js → p-fe64c49c.system.entry.js} +1 -1
- package/dist/magma-components/{p-f3041712.entry.js → p-fe9a8ca1.entry.js} +1 -1
- package/dist/mcp/checks.js +81 -33
- package/dist/mcp/cli.js +8 -2
- package/dist/mcp/context.js +21 -0
- package/dist/mcp/guides.js +2 -1
- package/dist/mcp/patterns.js +19 -9
- package/dist/mcp/render.js +4 -4
- package/dist/mcp/root.js +63 -0
- package/dist/mcp/tools.json +21 -3
- package/dist/stats.json +2952 -2666
- package/dist/types/common/navigation.d.ts +12 -2
- package/dist/types/components/mds-button/mds-button.d.ts +13 -0
- package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +7 -0
- package/dist/types/components/mds-img/mds-img.d.ts +13 -3
- package/dist/types/components/mds-img/meta/storybook.d.ts +11 -0
- package/dist/types/components/mds-img/meta/types.d.ts +2 -0
- package/dist/types/components/mds-input-field/mds-input-field.d.ts +6 -0
- package/dist/types/components/mds-input-range/mds-input-range.d.ts +9 -0
- package/dist/types/components/mds-keyboard-key/meta/icons.d.ts +1 -1
- package/dist/types/components/mds-link/mds-link.d.ts +13 -0
- package/dist/types/components/mds-stepper-bar/mds-stepper-bar.d.ts +0 -1
- package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +10 -1
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +5 -3
- package/dist/types/components.d.ts +62 -8
- package/dist/types/fixtures/states.d.ts +33 -0
- package/package.json +9 -8
- package/dist/components/p-B3npFzUR.js +0 -1
- package/dist/components/p-BD9VWE7b.js +0 -1
- package/dist/components/p-Bg11_7lt.js +0 -1
- package/dist/components/p-C589Hkfn.js +0 -1
- package/dist/components/p-C878c9Nu.js +0 -1
- package/dist/components/p-CS8s4gRV.js +0 -1
- package/dist/components/p-CfCw1XZP.js +0 -1
- package/dist/components/p-Cs80Zm2b.js +0 -8
- package/dist/components/p-Cty6fegI.js +0 -1
- package/dist/components/p-DKYN6Ikh.js +0 -1
- package/dist/components/p-MjWyZlga.js +0 -1
- package/dist/components/p-To9IeLHs.js +0 -1
- package/dist/components/p-VoGfNJRY.js +0 -1
- package/dist/components/p-g2_CekDc.js +0 -3
- package/dist/magma-components/p-09537867.entry.js +0 -1
- package/dist/magma-components/p-0a914567.entry.js +0 -1
- package/dist/magma-components/p-0e7bb90b.system.entry.js +0 -127
- package/dist/magma-components/p-10a68a4d.system.entry.js +0 -7
- package/dist/magma-components/p-193b58d0.entry.js +0 -1
- package/dist/magma-components/p-19f3b524.system.entry.js +0 -55
- package/dist/magma-components/p-2100343f.entry.js +0 -1
- package/dist/magma-components/p-211b2675.system.entry.js +0 -1
- package/dist/magma-components/p-26aad538.entry.js +0 -1
- package/dist/magma-components/p-28ecae1e.system.entry.js +0 -16
- package/dist/magma-components/p-2aa3e73a.system.entry.js +0 -13
- package/dist/magma-components/p-2c64ec7e.entry.js +0 -1
- package/dist/magma-components/p-35a77756.entry.js +0 -1
- package/dist/magma-components/p-37172440.entry.js +0 -1
- package/dist/magma-components/p-3d45d7a7.entry.js +0 -1
- package/dist/magma-components/p-4082973c.system.entry.js +0 -30
- package/dist/magma-components/p-4242100c.entry.js +0 -1
- package/dist/magma-components/p-430239ca.entry.js +0 -8
- package/dist/magma-components/p-478e6930.entry.js +0 -1
- package/dist/magma-components/p-4e431466.entry.js +0 -1
- package/dist/magma-components/p-533bb401.system.entry.js +0 -60
- package/dist/magma-components/p-6619b3c0.system.entry.js +0 -34
- package/dist/magma-components/p-67fa6fd7.entry.js +0 -1
- package/dist/magma-components/p-6fb17347.system.entry.js +0 -1
- package/dist/magma-components/p-6fdf3b37.entry.js +0 -1
- package/dist/magma-components/p-73596a07.entry.js +0 -1
- package/dist/magma-components/p-73c0b53e.system.entry.js +0 -82
- package/dist/magma-components/p-7caf244b.system.entry.js +0 -7
- package/dist/magma-components/p-851010c6.system.entry.js +0 -25
- package/dist/magma-components/p-8acbf50a.entry.js +0 -1
- package/dist/magma-components/p-96ece2cc.system.entry.js +0 -27
- package/dist/magma-components/p-96f66b8f.entry.js +0 -1
- package/dist/magma-components/p-B7Jp0tqu.system.js +0 -5
- package/dist/magma-components/p-CPibDZjX.js +0 -3
- package/dist/magma-components/p-To9IeLHs.js +0 -1
- package/dist/magma-components/p-a025b35b.entry.js +0 -1
- package/dist/magma-components/p-a02819e3.entry.js +0 -1
- package/dist/magma-components/p-a0764f01.entry.js +0 -1
- package/dist/magma-components/p-ab920e0b.entry.js +0 -1
- package/dist/magma-components/p-ad6b5fc1.system.entry.js +0 -16
- package/dist/magma-components/p-b0406c51.entry.js +0 -1
- package/dist/magma-components/p-ba148b89.system.entry.js +0 -23
- package/dist/magma-components/p-bbbf8b89.system.entry.js +0 -29
- package/dist/magma-components/p-c6cab2cb.entry.js +0 -1
- package/dist/magma-components/p-c6f56934.entry.js +0 -1
- package/dist/magma-components/p-ccb64689.system.entry.js +0 -113
- package/dist/magma-components/p-cf8cfcac.system.entry.js +0 -10
- package/dist/magma-components/p-d32ca6ce.entry.js +0 -1
- package/dist/magma-components/p-d5dec64d.entry.js +0 -1
- package/dist/magma-components/p-ee247029.system.entry.js +0 -9
- package/dist/magma-components/p-f3f1da06.system.entry.js +0 -39
- package/dist/magma-components/p-f9d2316a.entry.js +0 -1
- package/dist/magma-components/p-fe4ae251.entry.js +0 -1
- package/dist/magma-components/p-ffcfa9e3.system.entry.js +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as a,H as e,h as t,c as r,t as s}from"./p-
|
|
1
|
+
import{p as a,H as e,h as t,c as r,t as s}from"./p-ChCkQpXr.js";import{h as i}from"./p-DWIIDHSa.js";import{c as n}from"./p-ChV9xqsO.js";import{p as o}from"./p-BQJgPeCf.js";import{d}from"./p-C2bmqdQ1.js";import{d as c}from"./p-BPnc1LgR.js";import{d as l}from"./p-CbyfhFKK.js";import{d as m}from"./p-B410qrmd.js";import{d as p}from"./p-BwGJqBgv.js";import{d as u}from"./p-tI3q9MMi.js";const b=a(class extends e{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.onSlotChange=()=>{this.hasDetails=i(this.hostElement,"detail"),this.hasActions=i(this.hostElement,"action")}}checkAvatar(){let a=!1;return void 0!==this.src&&(a=!0),void 0!==this.icon&&(a=!0),void 0!==this.initials&&(a=!0),!this.await&&a}componentWillLoad(){this.onSlotChange()}render(){return t(r,{key:"af79d24d3606092459980b769412b35a81496272","pref-contrast":o.state.contrast,"pref-mode":o.state.mode,"pref-theme-scheme":o.state["theme-scheme"]},t("div",{key:"0913f387643b513508f9a9c197952bb81bbe2f7b",class:"spinner",part:"spinner"},t("mds-spinner",{key:"811b45bb856e3315fdf4633538572f1711ded7a3",running:!0})),this.checkAvatar()&&t("mds-avatar",{key:"fe381530d369aeb39118278da082edb1e18b1080",class:"preview",icon:this.icon,initials:this.initials,src:this.src,tone:this.tone,variant:this.variant,part:"avatar"}),t("div",{key:"acef9f6d715d241b4220a7e6eaef617d5c227ac3",class:"infos",part:"infos"},t("slot",{key:"4bb84a4f4263cda963922b6951be18104980686e"}),t("div",{key:"abe2c42927f2afaaaad2950631aa2a991071f4f7",class:n("details",!this.hasDetails&&"details--hidden")},t("slot",{key:"0573f945e4d248b1c05c487020905690e04b01cb",name:"detail",onSlotchange:this.onSlotChange}))),t("div",{key:"fc1ea144ab82e8a46be383f01d88a3f45b471229",class:n("actions",!this.hasActions&&"actions--hidden")},t("slot",{key:"b29ada7cdcf3d8255084e364566189825d91e966",name:"action",onSlotchange:this.onSlotChange})))}get hostElement(){return this}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-avatar,mds-spinner):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-entity-background:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));--mds-entity-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-entity-detail-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-entity-icon-background:rgb(var(--label-blue-09,209 224 254));--mds-entity-icon-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));--mds-entity-icon-color:rgb(var(--label-blue-04,44 96 250));background-color:var(--mds-entity-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:var(--mds-entity-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;display:flex;gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*200)}.delete,.preview,.spinner{border-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));corner-shape:var(--magma-corner-shape,squircle);flex-shrink:0;width:calc(var(--spacing,.0025rem)*1100)}.preview{--mds-avatar-radius:var(--mds-entity-icon-radius,var(--magma-radius-md,var(--radius-squircle-md,20px)))}.preview:not([variant]){--mds-avatar-color:var(--mds-entity-icon-color,rgb(var(--label-blue-04,44 96 250)));--mds-avatar-background-color:var(--mds-entity-icon-background,rgb(var(--label-blue-09,209 224 254)))}.preview,.spinner{align-items:center;aspect-ratio:var(--aspect-square,1/1);display:inline-flex;justify-content:center}.spinner{background-color:#0000;display:none;fill:var(--mds-entity-icon-color,rgb(var(--label-blue-04,44 96 250)))}:host([await]:not([await=false])) .spinner{display:inline-flex}mds-spinner{height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}.infos{display:flex;flex-direction:column;flex-grow:1;gap:calc(var(--spacing,.0025rem)*50);justify-content:center;min-width:0;white-space:nowrap}.details{align-items:baseline;color:var(--mds-entity-detail-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));display:flex;gap:calc(var(--spacing,.0025rem)*100)}.details--hidden{display:none}.actions{align-items:center;display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}::slotted([slot=action]){aspect-ratio:var(--aspect-square,1/1);height:auto;width:calc(var(--spacing,.0025rem)*1100)}::slotted(*){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title{display:flex;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([pref-contrast=more]){--mds-entity-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-entity-icon-background:rgb(var(--label-blue-08,191 212 255));--mds-entity-icon-color:rgb(var(--label-blue-03,15 55 241))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-entity-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-entity-icon-background:rgb(var(--label-blue-08,191 212 255));--mds-entity-icon-color:rgb(var(--label-blue-03,15 55 241))}}"}},[257,"mds-entity",{await:[516],icon:[513],src:[513],initials:[513],tone:[513],variant:[513],hasDetails:[32],hasActions:[32]}]),v=b,f=function(){"undefined"!=typeof customElements&&["mds-entity","mds-avatar","mds-button","mds-icon","mds-img","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-entity":customElements.get(s(a))||customElements.define(s(a),b);break;case"mds-avatar":customElements.get(s(a))||d();break;case"mds-button":customElements.get(s(a))||c();break;case"mds-icon":customElements.get(s(a))||l();break;case"mds-img":customElements.get(s(a))||m();break;case"mds-spinner":customElements.get(s(a))||p();break;case"mds-text":customElements.get(s(a))||u()}}))};export{v as MdsEntity,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as
|
|
1
|
+
import{M as o,d as p}from"./p-BpgvTr8e.js";const r=o,s=p;export{r as MdsFilePreview,s as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as a,d as t,h as o,c as r,t as i,B as s}from"./p-g2_CekDc.js";import{f as n,a as l,b as d,c,g as m,d as h,h as f,e as p}from"./p-DhIGZbIo.js";import{s as v}from"./p-DwKxtKwS.js";import{K as b}from"./p-CGrPq3C4.js";import{L as u}from"./p-BmlDGlcB.js";import{p as g}from"./p-AWCYh8Xe.js";import{d as w}from"./p-DKYN6Ikh.js";import{d as x}from"./p-oHBGZ2Av.js";import{d as y}from"./p-aZlZ1XB9.js";var k={alreadyDownloaded:"Έχετε ήδη κατεβάσει αυτό το αρχείο"},j={alreadyDownloaded:"You have already downloaded this file"},D={alreadyDownloaded:"Ya has descargado este archivo"},L={alreadyDownloaded:"Hai già scaricato questo file"};const q=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.downloadedEvent=t(this,"mdsFileDownload",7),this.t=new u({el:Object.assign(Object.assign({},k),c),en:Object.assign(Object.assign({},j),d),es:Object.assign(Object.assign({},D),l),it:Object.assign(Object.assign({},L),n)}),this.wasDownloaded=!1,this.km=new b,this.hideDownloadedIcon=!1,this.handleOnClick=()=>{var e;const{format:a,description:t}=m(this.filename,this.suffix);this.downloadedEvent.emit({description:null!==(e=this.description)&&void 0!==e?e:this.t.get(t),extension:h(this.filename,this.suffix),filename:this.filename,target:this.host,type:a}),localStorage.setItem(this.downloadedStorageKey(),"downloaded"),this.checkWasDownloaded()},this.downloadedStorageKey=()=>"mdsFile/"+(e=>{let a=2166136261;for(let t=0;t<e.length;t+=1)a^=e.charCodeAt(t),a=Math.imul(a,16777619);return(a>>>0).toString(16).padStart(8,"0")})(this.filename),this.checkWasDownloaded=()=>{s.isBrowser&&(this.wasDownloaded="downloaded"===localStorage.getItem(this.downloadedStorageKey()))},this.getDefaultDescription=()=>m(this.filename,this.suffix).description}componentWillLoad(){this.format=m(this.filename,this.suffix).format,this.checkWasDownloaded()}componentDidLoad(){v(this.host,"role","button"),this.km.addElement(this.host),this.km.attachClickBehavior("element",{space:!0})}connectedCallback(){this.km.attachClickBehavior("element",{space:!0})}disconnectedCallback(){this.km.detachClickBehavior()}handleFilename(e){this.format=m(e,this.suffix).format,this.checkWasDownloaded()}render(){var e,a;return o(r,{key:"8a2d65dcc47b35fabc057dec34beceb38d160dd4",tabindex:"0",onClick:this.handleOnClick,"pref-animation":g.state.animation,"pref-contrast":g.state.contrast,"pref-mode":g.state.mode,"pref-theme-scheme":g.state["theme-scheme"]},o("div",{key:"f5c6b85b4046b12860e1b99024a463686d37cbda",class:"preview"},void 0!==this.preview?o("div",{class:"image-preview",style:{backgroundImage:`url(${this.preview})`}}):o("mds-icon",{class:"icon-preview",name:p(this.filename,this.suffix).icon}),o("div",{key:"9b34aa5d4c5712850589ed1d86e780f689324d06",class:"download-icon"},o("mds-icon",{key:"d772572f6d6b1afb00745e27c97d2b90e6b03f17",name:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4l-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59L7 11l5 5l5-5z"/></svg>'}))),o("div",{key:"ec4bb3ea380b1dac1ac7c4525c825f7857c09460",class:"info"},o("div",{key:"8ebaf33eb2534a0cecc4744c806524c5d1c50362",class:"filename",title:this.filename},o("mds-text",{key:"adf1cc5c5a672033ec84ad525e62bba6a6d34914",truncate:"word",typography:"h6",class:"name"},f(this.filename)),void 0===this.suffix&&h(this.filename,this.suffix)&&o("mds-text",{key:"ae954cdd009f2a9b0a294cba02cbf960a0f28092",typography:"h6",class:"extension"},".",h(this.filename,this.suffix))),o("div",{key:"37df485361d55ca9d29ccce5eb8a556bd2a21d38",class:"detail"},h(this.filename,this.suffix)&&o("mds-badge",{key:"e9eff700439c30ae126456725094262509df32c0",variant:p(this.filename,this.suffix).variant,tone:"weak",class:"suffix"},h(this.filename,this.suffix)),o("mds-text",{key:"3f924fbe83a06de27b98c752b9e697d2016d130d",truncate:"word",typography:"caption",class:"description",title:null!==(e=this.description)&&void 0!==e?e:this.t.get(this.getDefaultDescription())},null!==(a=this.description)&&void 0!==a?a:this.t.get(this.getDefaultDescription())))),this.wasDownloaded&&!this.hideDownloadedIcon&&o("div",{key:"4938955a535ee428ef9fdd086de9cf05df74e7ef",class:"indicator"},o("i",{key:"d7494504e17d9fcd0a73859e7e58122a95aba304",class:"downloaded",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 18h14v2H5v-2zm4.6-2.7L5 10.7l2-1.9l2.6 2.6L17 4l2 2l-9.4 9.3z"/></svg>',title:this.t.get("alreadyDownloaded")})))}get host(){return this}static get watchers(){return{filename:[{handleFilename:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-badge,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-file-transition-duration:var(--duration-200,.2s);--private-file-transition-duration:var(--mds-file-transition-duration);--private-icon-download-offset:10%;animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;cursor:pointer;display:inline-flex;overflow:hidden;transition-duration:var(--private-file-transition-duration);transition-property:box-shadow,outline,outline-offset;transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));width:100%}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:hover){box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px)}:host(:hover) .download-icon{opacity:1;transform:translateY(0)}:host(:hover) :is(.icon-preview,.image-preview){opacity:0;transform:translateY(var(--private-icon-download-offset))}.download-icon{inset:0;opacity:0;position:absolute;transform:translateY(calc(var(--private-icon-download-offset)*-1));transition-duration:inherit;transition-property:opacity,transform;transition-timing-function:inherit}.download-icon,.preview{align-items:center;display:flex;justify-content:center}.preview{background-color:var(--mds-file-preview-icon-background);color:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));fill:var(--mds-file-preview-icon-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));flex-shrink:0;position:relative;transition-duration:inherit;transition-property:color,background-color,fill;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1));width:calc(var(--spacing,.0025rem)*1400)}.image-preview{background-position:50%;background-repeat:no-repeat;background-size:contain;inset:calc(var(--spacing,.0025rem)*300);position:absolute}.icon-preview,.image-preview{transition-duration:inherit;transition-property:opacity,transform;transition-timing-function:inherit}.info{flex-direction:column;flex-grow:1;gap:calc(var(--spacing,.0025rem)*100);height:calc(var(--spacing,.0025rem)*1400);justify-content:center;padding:0 calc(var(--spacing,.0025rem)*300)}.filename,.info{display:flex;min-width:0}.name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.extension{flex-shrink:0}.detail{align-items:baseline;display:flex;gap:calc(var(--spacing,.0025rem)*200);min-width:0}.suffix{flex-shrink:0;pointer-events:none}.description{color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.indicator{align-items:center;display:flex;justify-content:center;padding-right:calc(var(--spacing,.0025rem)*400)}.downloaded{display:flex;fill:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}.downloaded svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}:host([format=archive]),:host([format=executable]){--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236))}:host([format=attachment]){--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([format=audio]),:host([format=video]){--mds-file-preview-icon-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254))}:host([format=code]),:host([format=data]),:host([format=markup]){--mds-file-preview-icon-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186))}:host([format=certificate]),:host([format=document]){--mds-file-preview-icon-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219))}:host([format=email]),:host([format=text]){--mds-file-preview-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254))}:host([format=image]){--mds-file-preview-icon-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221))}:host([format=slide]){--mds-file-preview-icon-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242))}:host([format=spreadsheet]){--mds-file-preview-icon-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178))}:host([format=vector]){--mds-file-preview-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253))}: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-file-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark]){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark])):host(:hover){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-contrast=more]):host(:hover){box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}@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-file-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode]):not([pref-theme-scheme=light])),:host([pref-mode=system]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]):not([pref-theme-scheme=light]))):host(:hover){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host(:hover){box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}}"}},[1,"mds-file",{suffix:[513],description:[1],filename:[1],preview:[1],hideDownloadedIcon:[4,"hide-downloaded-icon"],format:[1537],wasDownloaded:[32]},void 0,{filename:[{handleFilename:0}]}]),z=q,O=function(){"undefined"!=typeof customElements&&["mds-file","mds-badge","mds-icon","mds-text"].forEach((e=>{switch(e){case"mds-file":customElements.get(i(e))||customElements.define(i(e),q);break;case"mds-badge":customElements.get(i(e))||w();break;case"mds-icon":customElements.get(i(e))||x();break;case"mds-text":customElements.get(i(e))||y()}}))};export{z as MdsFile,O as defineCustomElement}
|
|
1
|
+
import{p as e,H as t,d as a,h as o,c as r,t as i,B as s}from"./p-ChCkQpXr.js";import{f as n,a as l,b as d,c,g as m,d as h,h as f,e as p}from"./p-DhIGZbIo.js";import{s as v}from"./p-DwKxtKwS.js";import{K as b}from"./p-CGrPq3C4.js";import{L as u}from"./p-B3t-yAT6.js";import{p as g}from"./p-BQJgPeCf.js";import{d as w}from"./p-8D5tJYCb.js";import{d as x}from"./p-CbyfhFKK.js";import{d as y}from"./p-tI3q9MMi.js";var k={alreadyDownloaded:"Έχετε ήδη κατεβάσει αυτό το αρχείο"},j={alreadyDownloaded:"You have already downloaded this file"},D={alreadyDownloaded:"Ya has descargado este archivo"},C={alreadyDownloaded:"Hai già scaricato questo file"};const q=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.downloadedEvent=a(this,"mdsFileDownload",7),this.t=new u({el:Object.assign(Object.assign({},k),c),en:Object.assign(Object.assign({},j),d),es:Object.assign(Object.assign({},D),l),it:Object.assign(Object.assign({},C),n)}),this.wasDownloaded=!1,this.km=new b,this.hideDownloadedIcon=!1,this.handleOnClick=()=>{var e;const{format:t,description:a}=m(this.filename,this.suffix);this.downloadedEvent.emit({description:null!==(e=this.description)&&void 0!==e?e:this.t.get(a),extension:h(this.filename,this.suffix),filename:this.filename,target:this.host,type:t}),localStorage.setItem(this.downloadedStorageKey(),"downloaded"),this.checkWasDownloaded()},this.downloadedStorageKey=()=>"mdsFile/"+(e=>{let t=2166136261;for(let a=0;a<e.length;a+=1)t^=e.charCodeAt(a),t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")})(this.filename),this.checkWasDownloaded=()=>{s.isBrowser&&(this.wasDownloaded="downloaded"===localStorage.getItem(this.downloadedStorageKey()))},this.getDefaultDescription=()=>m(this.filename,this.suffix).description}componentWillLoad(){this.format=m(this.filename,this.suffix).format,this.checkWasDownloaded()}componentDidLoad(){v(this.host,"role","button"),this.km.addElement(this.host),this.km.attachClickBehavior("element",{space:!0})}connectedCallback(){this.km.attachClickBehavior("element",{space:!0})}disconnectedCallback(){this.km.detachClickBehavior()}handleFilename(e){this.format=m(e,this.suffix).format,this.checkWasDownloaded()}render(){var e,t;return o(r,{key:"8a2d65dcc47b35fabc057dec34beceb38d160dd4",tabindex:"0",onClick:this.handleOnClick,"pref-animation":g.state.animation,"pref-contrast":g.state.contrast,"pref-mode":g.state.mode,"pref-theme-scheme":g.state["theme-scheme"]},o("div",{key:"f5c6b85b4046b12860e1b99024a463686d37cbda",class:"preview"},void 0!==this.preview?o("div",{class:"image-preview",style:{backgroundImage:`url(${this.preview})`}}):o("mds-icon",{class:"icon-preview",name:p(this.filename,this.suffix).icon}),o("div",{key:"9b34aa5d4c5712850589ed1d86e780f689324d06",class:"download-icon"},o("mds-icon",{key:"d772572f6d6b1afb00745e27c97d2b90e6b03f17",name:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4l-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59L7 11l5 5l5-5z"/></svg>'}))),o("div",{key:"ec4bb3ea380b1dac1ac7c4525c825f7857c09460",class:"info"},o("div",{key:"8ebaf33eb2534a0cecc4744c806524c5d1c50362",class:"filename",title:this.filename},o("mds-text",{key:"adf1cc5c5a672033ec84ad525e62bba6a6d34914",truncate:"word",typography:"h6",class:"name"},f(this.filename)),void 0===this.suffix&&h(this.filename,this.suffix)&&o("mds-text",{key:"ae954cdd009f2a9b0a294cba02cbf960a0f28092",typography:"h6",class:"extension"},".",h(this.filename,this.suffix))),o("div",{key:"37df485361d55ca9d29ccce5eb8a556bd2a21d38",class:"detail"},h(this.filename,this.suffix)&&o("mds-badge",{key:"e9eff700439c30ae126456725094262509df32c0",variant:p(this.filename,this.suffix).variant,tone:"weak",class:"suffix"},h(this.filename,this.suffix)),o("mds-text",{key:"3f924fbe83a06de27b98c752b9e697d2016d130d",truncate:"word",typography:"caption",class:"description",title:null!==(e=this.description)&&void 0!==e?e:this.t.get(this.getDefaultDescription())},null!==(t=this.description)&&void 0!==t?t:this.t.get(this.getDefaultDescription())))),this.wasDownloaded&&!this.hideDownloadedIcon&&o("div",{key:"4938955a535ee428ef9fdd086de9cf05df74e7ef",class:"indicator"},o("i",{key:"d7494504e17d9fcd0a73859e7e58122a95aba304",class:"downloaded",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 18h14v2H5v-2zm4.6-2.7L5 10.7l2-1.9l2.6 2.6L17 4l2 2l-9.4 9.3z"/></svg>',title:this.t.get("alreadyDownloaded")})))}get host(){return this}static get watchers(){return{filename:[{handleFilename:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-badge,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-file-transition-duration:var(--duration-200,.2s);--private-file-transition-duration:var(--mds-file-transition-duration);--private-icon-download-offset:10%;animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;cursor:pointer;display:inline-flex;overflow:hidden;transition-duration:var(--private-file-transition-duration);transition-property:box-shadow,outline,outline-offset;transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));width:100%}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:hover){box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px)}:host(:hover) .download-icon{opacity:1;transform:translateY(0)}:host(:hover) :is(.icon-preview,.image-preview){opacity:0;transform:translateY(var(--private-icon-download-offset))}.download-icon{inset:0;opacity:0;position:absolute;transform:translateY(calc(var(--private-icon-download-offset)*-1));transition-duration:inherit;transition-property:opacity,transform;transition-timing-function:inherit}.download-icon,.preview{align-items:center;display:flex;justify-content:center}.preview{background-color:var(--mds-file-preview-icon-background);color:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));fill:var(--mds-file-preview-icon-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));flex-shrink:0;position:relative;transition-duration:inherit;transition-property:color,background-color,fill;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1));width:calc(var(--spacing,.0025rem)*1400)}.image-preview{background-position:50%;background-repeat:no-repeat;background-size:contain;inset:calc(var(--spacing,.0025rem)*300);position:absolute}.icon-preview,.image-preview{transition-duration:inherit;transition-property:opacity,transform;transition-timing-function:inherit}.info{flex-direction:column;flex-grow:1;gap:calc(var(--spacing,.0025rem)*100);height:calc(var(--spacing,.0025rem)*1400);justify-content:center;padding:0 calc(var(--spacing,.0025rem)*300)}.filename,.info{display:flex;min-width:0}.name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.extension{flex-shrink:0}.detail{align-items:baseline;display:flex;gap:calc(var(--spacing,.0025rem)*200);min-width:0}.suffix{flex-shrink:0;pointer-events:none}.description{color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.indicator{align-items:center;display:flex;justify-content:center;padding-right:calc(var(--spacing,.0025rem)*400)}.downloaded{display:flex;fill:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}.downloaded svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}:host([format=archive]),:host([format=executable]){--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,202 51 77));--mds-file-preview-color:rgb(var(--label-amaranth-04,202 51 77));--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,255 232 233))}:host([format=attachment]){--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([format=audio]),:host([format=video]){--mds-file-preview-icon-color:rgb(var(--label-violet-04,128 78 232));--mds-file-preview-color:rgb(var(--label-violet-04,128 78 232));--mds-file-preview-icon-background:rgb(var(--label-violet-10,238 235 255))}:host([format=code]),:host([format=data]),:host([format=markup]){--mds-file-preview-icon-color:rgb(var(--label-yellow-04,140 107 22));--mds-file-preview-color:rgb(var(--label-yellow-04,140 107 22));--mds-file-preview-icon-background:rgb(var(--label-yellow-10,255 235 200))}:host([format=certificate]),:host([format=document]){--mds-file-preview-icon-color:rgb(var(--label-orange-04,181 82 13));--mds-file-preview-color:rgb(var(--label-orange-04,181 82 13));--mds-file-preview-icon-background:rgb(var(--label-orange-10,255 233 222))}:host([format=email]),:host([format=text]){--mds-file-preview-icon-color:rgb(var(--label-blue-04,44 96 250));--mds-file-preview-color:rgb(var(--label-blue-04,44 96 250));--mds-file-preview-icon-background:rgb(var(--label-blue-10,228 238 255))}:host([format=image]){--mds-file-preview-icon-color:rgb(var(--label-green-04,21 128 61));--mds-file-preview-color:rgb(var(--label-green-04,21 128 61));--mds-file-preview-icon-background:rgb(var(--label-green-10,201 248 218))}:host([format=slide]){--mds-file-preview-icon-color:rgb(var(--label-orchid-04,202 34 125));--mds-file-preview-color:rgb(var(--label-orchid-04,202 34 125));--mds-file-preview-icon-background:rgb(var(--label-orchid-10,255 231 240))}:host([format=spreadsheet]){--mds-file-preview-icon-color:rgb(var(--label-lime-04,81 124 12));--mds-file-preview-color:rgb(var(--label-lime-04,81 124 12));--mds-file-preview-icon-background:rgb(var(--label-lime-10,214 249 159))}:host([format=vector]){--mds-file-preview-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253))}: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-file-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark]){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark])):host(:hover){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-contrast=more]):host(:hover){box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}@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-file-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode]):not([pref-theme-scheme=light])),:host([pref-mode=system]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]):not([pref-theme-scheme=light]))):host(:hover){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host(:hover){box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}}"}},[1,"mds-file",{suffix:[513],description:[1],filename:[1],preview:[1],hideDownloadedIcon:[4,"hide-downloaded-icon"],format:[1537],wasDownloaded:[32]},void 0,{filename:[{handleFilename:0}]}]),L=q,z=function(){"undefined"!=typeof customElements&&["mds-file","mds-badge","mds-icon","mds-text"].forEach((e=>{switch(e){case"mds-file":customElements.get(i(e))||customElements.define(i(e),q);break;case"mds-badge":customElements.get(i(e))||w();break;case"mds-icon":customElements.get(i(e))||x();break;case"mds-text":customElements.get(i(e))||y()}}))};export{L as MdsFile,z as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as o,d as
|
|
1
|
+
import{M as o,d as r}from"./p-B8rSg0wS.js";const s=o,p=r;export{s as MdsFilterItem,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,d as r,h as a,c as s,t as i,B as o}from"./p-g2_CekDc.js";import{c as n}from"./p-ChV9xqsO.js";import{p as d}from"./p-AWCYh8Xe.js";import{m}from"./p-J-ikDhyq.js";import{L as l}from"./p-BmlDGlcB.js";import{d as c}from"./p-CSw6DbKp.js";import{d as h}from"./p-oHBGZ2Av.js";import{d as f}from"./p-aZlZ1XB9.js";var p={clearFilters:"Εκκαθάριση φίλτρων"},u={clearFilters:"Clear filters"},v={clearFilters:"Borrar filtros"},b={clearFilters:"Rimuovi i filtri"};const g=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.changedEvent=r(this,"mdsFilterChange",7),this.t=new l({el:p,en:u,es:v,it:b}),this.itemsSelected=0,this.queryItems=()=>this.element.querySelectorAll("mds-filter-item"),this.scrollTabs=()=>{var t;const e=this.queryItems()[this.lastSelectedItem],r=null===(t=this.element.shadowRoot)||void 0===t?void 0:t.querySelector(".items");if(r&&e){const t=r.getBoundingClientRect(),a=e.getBoundingClientRect();r.scrollLeft+=a.left-t.left-(t.width-a.width)/2}},this.checkSelectedItem=()=>{const t=this.queryItems();let e=!1;t.forEach((t=>{t.selected&&(e=!0)})),this.active=e},this.markSiblings=t=>{this.multiple&&t.forEach(((e,r)=>{e.classList.toggle("sibling",r>0&&!0===t[r-1].selected)}))},this.syncSelection=t=>{const e=Array.from(this.queryItems());let r;t.forEach((t=>{("childList"===t.type?Array.from(t.addedNodes):[t.target]).forEach((t=>{const a=t;e.includes(a)&&!0===a.selected&&(r=a)}))})),this.multiple||this.keepOneSelected(e,r),r&&(this.lastSelectedItem=e.indexOf(r),this.scrollTabs()),this.markSiblings(e),this.checkSelectedItem()},this.keepOneSelected=(t,e=t.filter((t=>!0===t.selected)).pop())=>{t.forEach((t=>{!0===t.selected&&t!==e&&(t.selected=!1)}))},this.checkAutoReset=()=>{this.autoReset&&this.resetItems()},this.resetItems=()=>{this.queryItems().forEach((t=>{t.selected=!1,t.classList.remove("sibling")})),this.active=!1},this.handleResetClick=()=>{this.active&&(this.resetItems(),this.changedEvent.emit({children:this.queryItems(),value:this.itemsValues()}))},this.itemsValues=()=>{const t=this.queryItems(),e=[];return t.forEach((t=>{t.selected&&e.push(t.value)})),""+e}}connectedCallback(){var t;null===(t=this.selectionObserver)||void 0===t||t.disconnect(),o.isBrowser&&(this.selectionObserver=new MutationObserver(this.syncSelection),this.selectionObserver.observe(this.element,{attributeFilter:["selected"],childList:!0,subtree:!0}))}disconnectedCallback(){var t;null===(t=this.selectionObserver)||void 0===t||t.disconnect(),this.selectionObserver=void 0}componentWillLoad(){const t=this.queryItems();t.forEach(((t,e)=>{""===t.id&&(t.id="item-"+e)})),this.multiple||this.keepOneSelected(Array.from(t)),this.checkSelectedItem()}activeEventHandler(t){const e=this.queryItems(),r=t.target;if(this.lastSelectedItem=Array.from(e).indexOf(r),this.scrollTabs(),this.multiple)return this.markSiblings(Array.from(e)),this.itemsSelected=Array.from(e).filter((t=>!0===t.selected)).length,this.checkSelectedItem(),this.itemsSelected===e.length&&this.checkAutoReset(),void this.changedEvent.emit({children:e,value:this.itemsValues()});e.forEach((e=>{e.selected=e===r&&t.detail.selected})),this.checkSelectedItem(),this.changedEvent.emit({children:e,value:this.itemsValues()})}render(){return a(s,{key:"7476078ca75251ded8aad3d2cbaa44589138904e","aria-label":this.label,role:"group","pref-animation":d.state.animation,"pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},this.label&&a("mds-text",{key:"e23d784400a5f8800ba117c6bd9f8659a3b30139","aria-hidden":"true",class:"label",typography:"label"},this.label),a("div",{key:"7484e3b954db8e1915d34d068cc104b3d8adc153",class:"items-wrapper"},a("div",{key:"ef5ef90fccf12e0126c933af711c2f7d2bff21e5",class:n("items",this.active&&"active")},a("slot",{key:"2529e9bd47a346d2e83f9d51ed01da5e92f2dbf4"}),this.reset&&a("div",{key:"0b6dd273adb4333065e881287f580cb5f595ef3d",class:n("reset",this.active&&"reset--opened")},a("mds-filter-item",{key:"8d6106f5ccb71522924f7e019e577b5b13796055","aria-hidden":this.active?void 0:"true","aria-label":this.t.get("clearFilters"),selected:this.active,disabled:!this.active,class:n("reset-button",this.active&&"reset-button-opened"),icon:m,onClick:this.handleResetClick})))))}get element(){return this}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-filter-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-gap:calc(var(--spacing,.0025rem)*200);--mds-filter-items-padding:calc(var(--spacing,.0025rem)*200);--mds-filter-items-radius:var(--magma-radius-full,var(--radius-full,1000px));--mds-filter-items-scroll-behavior:smooth;--mds-filter-items-transition-duration:var(--duration-300,.3s);--private-filter-items-transition-duration:var(--mds-filter-items-transition-duration);--mds-filter-label-gap:calc(var(--spacing,.0025rem)*300);--mds-filter-label-padding:0 calc(var(--spacing,.0025rem)*600);--mds-filter-wrapper-shadow-color:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)))) inset;--mds-filter-wrapper-shadow-opacity:.1;display:grid;gap:var(--mds-filter-label-gap,calc(var(--spacing,.0025rem)*300));grid-auto-rows:min-content}.items{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;background-color:var(--mds-filter-items-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-filter-items-radius,var(--magma-radius-full,var(--radius-full,1000px)));display:flex;gap:var(--mds-filter-items-gap,calc(var(--spacing,.0025rem)*200));overflow:auto;padding:var(--mds-filter-items-padding,calc(var(--spacing,.0025rem)*200));position:relative;scroll-behavior:var(--mds-filter-items-scroll-behavior,smooth);scroll-snap-type:x mandatory;scrollbar-width:none;transition-duration:var(--private-filter-items-transition-duration);transition-property:background-color;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.items-wrapper{display:grid;overflow:hidden;position:relative}.items-wrapper:after{border-radius:var(--mds-filter-items-radius,var(--magma-radius-full,var(--radius-full,1000px)));box-shadow:var(--mds-filter-wrapper-shadow);content:"";inset:0;opacity:var(--mds-filter-wrapper-shadow-opacity,.1);pointer-events:none;position:absolute}.items::-webkit-scrollbar{display:none}.label{padding:var(--mds-filter-label-padding,0 calc(var(--spacing,.0025rem)*600))}.active{background-color:var(--mds-filter-items-background-active,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))))}.reset{display:flex;flex-grow:1;justify-content:flex-end;transform-origin:50%}.reset,.reset-button{transform:scale(0);transition-duration:var(--duration-300,.3s);transition-property:transform;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.reset-button-opened,:host([reset]:not([reset=false])) .reset{transform:scale(1)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-filter-items-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .items,:host([pref-theme-scheme=dark]) .items{--mds-filter-items-background-active:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([pref-contrast=more]){--mds-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-wrapper-shadow-opacity:.3;--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)))) inset}@media (prefers-reduced-motion:reduce){:host{--mds-filter-items-scroll-behavior:auto}:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-filter-items-transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]):not([pref-theme-scheme=light]))) .items{--mds-filter-items-background-active:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-wrapper-shadow-opacity:.3;--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)))) inset}}'}},[257,"mds-filter",{autoReset:[516,"auto-reset"],label:[1],multiple:[516],reset:[516],active:[32],itemsSelected:[32]},[[0,"mdsFilterItemSelect","activeEventHandler"]]]),w=g,y=function(){"undefined"!=typeof customElements&&["mds-filter","mds-filter-item","mds-icon","mds-text"].forEach((t=>{switch(t){case"mds-filter":customElements.get(i(t))||customElements.define(i(t),g);break;case"mds-filter-item":customElements.get(i(t))||c();break;case"mds-icon":customElements.get(i(t))||h();break;case"mds-text":customElements.get(i(t))||f()}}))};export{w as MdsFilter,y as defineCustomElement}
|
|
1
|
+
import{p as t,H as e,d as r,h as a,c as s,t as i,B as o}from"./p-ChCkQpXr.js";import{c as n}from"./p-ChV9xqsO.js";import{p as d}from"./p-BQJgPeCf.js";import{m}from"./p-J-ikDhyq.js";import{L as l}from"./p-B3t-yAT6.js";import{d as c}from"./p-B8rSg0wS.js";import{d as h}from"./p-CbyfhFKK.js";import{d as f}from"./p-tI3q9MMi.js";var p={clearFilters:"Εκκαθάριση φίλτρων"},u={clearFilters:"Clear filters"},v={clearFilters:"Borrar filtros"},b={clearFilters:"Rimuovi i filtri"};const g=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.changedEvent=r(this,"mdsFilterChange",7),this.t=new l({el:p,en:u,es:v,it:b}),this.itemsSelected=0,this.queryItems=()=>this.element.querySelectorAll("mds-filter-item"),this.scrollTabs=()=>{var t;const e=this.queryItems()[this.lastSelectedItem],r=null===(t=this.element.shadowRoot)||void 0===t?void 0:t.querySelector(".items");if(r&&e){const t=r.getBoundingClientRect(),a=e.getBoundingClientRect();r.scrollLeft+=a.left-t.left-(t.width-a.width)/2}},this.checkSelectedItem=()=>{const t=this.queryItems();let e=!1;t.forEach((t=>{t.selected&&(e=!0)})),this.active=e},this.markSiblings=t=>{this.multiple&&t.forEach(((e,r)=>{e.classList.toggle("sibling",r>0&&!0===t[r-1].selected)}))},this.syncSelection=t=>{const e=Array.from(this.queryItems());let r;t.forEach((t=>{("childList"===t.type?Array.from(t.addedNodes):[t.target]).forEach((t=>{const a=t;e.includes(a)&&!0===a.selected&&(r=a)}))})),this.multiple||this.keepOneSelected(e,r),r&&(this.lastSelectedItem=e.indexOf(r),this.scrollTabs()),this.markSiblings(e),this.checkSelectedItem()},this.keepOneSelected=(t,e=t.filter((t=>!0===t.selected)).pop())=>{t.forEach((t=>{!0===t.selected&&t!==e&&(t.selected=!1)}))},this.checkAutoReset=()=>{this.autoReset&&this.resetItems()},this.resetItems=()=>{this.queryItems().forEach((t=>{t.selected=!1,t.classList.remove("sibling")})),this.active=!1},this.handleResetClick=()=>{this.active&&(this.resetItems(),this.changedEvent.emit({children:this.queryItems(),value:this.itemsValues()}))},this.itemsValues=()=>{const t=this.queryItems(),e=[];return t.forEach((t=>{t.selected&&e.push(t.value)})),""+e}}connectedCallback(){var t;null===(t=this.selectionObserver)||void 0===t||t.disconnect(),o.isBrowser&&(this.selectionObserver=new MutationObserver(this.syncSelection),this.selectionObserver.observe(this.element,{attributeFilter:["selected"],childList:!0,subtree:!0}))}disconnectedCallback(){var t;null===(t=this.selectionObserver)||void 0===t||t.disconnect(),this.selectionObserver=void 0}componentWillLoad(){const t=this.queryItems();t.forEach(((t,e)=>{""===t.id&&(t.id="item-"+e)})),this.multiple||this.keepOneSelected(Array.from(t)),this.checkSelectedItem()}activeEventHandler(t){const e=this.queryItems(),r=t.target;if(this.lastSelectedItem=Array.from(e).indexOf(r),this.scrollTabs(),this.multiple)return this.markSiblings(Array.from(e)),this.itemsSelected=Array.from(e).filter((t=>!0===t.selected)).length,this.checkSelectedItem(),this.itemsSelected===e.length&&this.checkAutoReset(),void this.changedEvent.emit({children:e,value:this.itemsValues()});e.forEach((e=>{e.selected=e===r&&t.detail.selected})),this.checkSelectedItem(),this.changedEvent.emit({children:e,value:this.itemsValues()})}render(){return a(s,{key:"7476078ca75251ded8aad3d2cbaa44589138904e","aria-label":this.label,role:"group","pref-animation":d.state.animation,"pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},this.label&&a("mds-text",{key:"e23d784400a5f8800ba117c6bd9f8659a3b30139","aria-hidden":"true",class:"label",typography:"label"},this.label),a("div",{key:"7484e3b954db8e1915d34d068cc104b3d8adc153",class:"items-wrapper"},a("div",{key:"ef5ef90fccf12e0126c933af711c2f7d2bff21e5",class:n("items",this.active&&"active")},a("slot",{key:"2529e9bd47a346d2e83f9d51ed01da5e92f2dbf4"}),this.reset&&a("div",{key:"0b6dd273adb4333065e881287f580cb5f595ef3d",class:n("reset",this.active&&"reset--opened")},a("mds-filter-item",{key:"8d6106f5ccb71522924f7e019e577b5b13796055","aria-hidden":this.active?void 0:"true","aria-label":this.t.get("clearFilters"),selected:this.active,disabled:!this.active,class:n("reset-button",this.active&&"reset-button-opened"),icon:m,onClick:this.handleResetClick})))))}get element(){return this}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-filter-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-gap:calc(var(--spacing,.0025rem)*200);--mds-filter-items-padding:calc(var(--spacing,.0025rem)*200);--mds-filter-items-radius:var(--magma-radius-full,var(--radius-full,1000px));--mds-filter-items-scroll-behavior:smooth;--mds-filter-items-transition-duration:var(--duration-300,.3s);--private-filter-items-transition-duration:var(--mds-filter-items-transition-duration);--mds-filter-label-gap:calc(var(--spacing,.0025rem)*300);--mds-filter-label-padding:0 calc(var(--spacing,.0025rem)*600);--mds-filter-wrapper-shadow-color:rgb(var(--magma-border-default,var(--border-neutral-default,183 183 183)));--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,183 183 183)))) inset;--mds-filter-wrapper-shadow-opacity:.1;display:grid;gap:var(--mds-filter-label-gap,calc(var(--spacing,.0025rem)*300));grid-auto-rows:min-content}.items{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;background-color:var(--mds-filter-items-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-filter-items-radius,var(--magma-radius-full,var(--radius-full,1000px)));display:flex;gap:var(--mds-filter-items-gap,calc(var(--spacing,.0025rem)*200));overflow:auto;padding:var(--mds-filter-items-padding,calc(var(--spacing,.0025rem)*200));position:relative;scroll-behavior:var(--mds-filter-items-scroll-behavior,smooth);scroll-snap-type:x mandatory;scrollbar-width:none;transition-duration:var(--private-filter-items-transition-duration);transition-property:background-color;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.items-wrapper{display:grid;overflow:hidden;position:relative}.items-wrapper:after{border-radius:var(--mds-filter-items-radius,var(--magma-radius-full,var(--radius-full,1000px)));box-shadow:var(--mds-filter-wrapper-shadow);content:"";inset:0;opacity:var(--mds-filter-wrapper-shadow-opacity,.1);pointer-events:none;position:absolute}.items::-webkit-scrollbar{display:none}.label{padding:var(--mds-filter-label-padding,0 calc(var(--spacing,.0025rem)*600))}.active{background-color:var(--mds-filter-items-background-active,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))))}.reset{display:flex;flex-grow:1;justify-content:flex-end;transform-origin:50%}.reset,.reset-button{transform:scale(0);transition-duration:var(--duration-300,.3s);transition-property:transform;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.reset-button-opened,:host([reset]:not([reset=false])) .reset{transform:scale(1)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-filter-items-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .items,:host([pref-theme-scheme=dark]) .items{--mds-filter-items-background-active:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([pref-contrast=more]){--mds-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-wrapper-shadow-opacity:.3;--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,183 183 183)))) inset}@media (prefers-reduced-motion:reduce){:host{--mds-filter-items-scroll-behavior:auto}:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-filter-items-transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]):not([pref-theme-scheme=light]))) .items{--mds-filter-items-background-active:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-wrapper-shadow-opacity:.3;--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,183 183 183)))) inset}}'}},[257,"mds-filter",{autoReset:[516,"auto-reset"],label:[1],multiple:[516],reset:[516],active:[32],itemsSelected:[32]},[[0,"mdsFilterItemSelect","activeEventHandler"]]]),w=g,y=function(){"undefined"!=typeof customElements&&["mds-filter","mds-filter-item","mds-icon","mds-text"].forEach((t=>{switch(t){case"mds-filter":customElements.get(i(t))||customElements.define(i(t),g);break;case"mds-filter-item":customElements.get(i(t))||c();break;case"mds-icon":customElements.get(i(t))||h();break;case"mds-text":customElements.get(i(t))||f()}}))};export{w as MdsFilter,y as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as a,H as e,d as t,h as r,c as n,t as s}from"./p-
|
|
1
|
+
import{p as a,H as e,d as t,h as r,c as n,t as s}from"./p-ChCkQpXr.js";import{h as o}from"./p-DWIIDHSa.js";import{c as i}from"./p-ChV9xqsO.js";import{p as d}from"./p-BQJgPeCf.js";import{L as m}from"./p-B3t-yAT6.js";import{d as c}from"./p-BPnc1LgR.js";import{d as p}from"./p-CbyfhFKK.js";import{d as h}from"./p-BwGJqBgv.js";import{d as l}from"./p-tI3q9MMi.js";var u={openMenu:"Άνοιγμα μενού"},f={openMenu:"Open menu"},b={openMenu:"Abrir el menú"},v={openMenu:"Apri il menu"};const g=a(class extends e{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.openedEvent=t(this,"mdsHeaderBarOpen",7),this.t=new m({el:u,en:f,es:b,it:v}),this.menu="mobile",this.nav="desktop",this.onNavSlotChange=()=>{this.hasNav=o(this.host,"nav")},this.open=()=>{this.openedEvent.emit(),this.setOpened(!0)}}componentWillLoad(){this.hasNav=o(this.host,"nav")}async setOpened(a=!0){var e;this.isOpened=a,await(null===(e=this.host.closest("mds-header"))||void 0===e?void 0:e.setOpened(a))}render(){return r(n,{key:"c5af2ec9b78a8968de6c806b7ed90ac03b2e40d3","pref-animation":d.state.animation,"pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},r("div",{key:"5287a2298811330f56597e05f07f5a9d350052a4",class:"content",part:"content"},r("div",{key:"9c7d5a54ec4588e8e4411deea545c729bd4a4fde",class:"logo"},r("slot",{key:"5ef4a0636a88c51fb28633cb81cc40aba937a5a7"})),r("div",{key:"0670ee89a3d546ca30c57998077f64a584aab78c",class:"actions",part:"actions"},r("nav",{key:"8257a362c495fbebfb024b00e2e7b89936305178",class:i("nav",!this.hasNav&&"nav--hidden"),part:"nav"},r("slot",{key:"645cfa6ba246870aaa2daf11c99eaaa6bec738c1",name:"nav",onSlotchange:this.onNavSlotChange})),"none"!==this.menu&&r("mds-button",{key:"8616d238b7b9ed7d147ee3a78321d4ac48995e45","aria-label":this.t.get("openMenu"),class:"menu",variant:"dark",tone:"text",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zm0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zM3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1z"/></svg>',onClick:this.open,part:"hamburger"}))))}get host(){return this}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-header-bar-hamburger-color:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))));--mds-header-bar-transition-duration:var(--duration-500,.5s);--private-header-bar-transition-duration:var(--mds-header-bar-transition-duration);background-color:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));box-shadow:var(--shadow-md-sharp,0 0 1px 1px #0000000f,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f);interpolate-size:allow-keywords;display:flex;justify-content:center;margin-left:auto;margin-right:auto;max-width:100%;padding:calc(var(--spacing,.0025rem)*400) var(--magma-width-page-gutter,24px);position:relative;transition-duration:var(--private-header-bar-transition-duration);transition-property:background-color,border-radius,margin,max-width,transform,width;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:auto;z-index:var(--mds-header-z-index,1000)}.logo{color:inherit;display:flex}.content{align-items:center;display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*400);justify-content:space-between;max-width:var(--magma-width-page,1280px)}.actions{display:flex;gap:calc(var(--spacing,.0025rem)*600)}.nav{display:inline-flex;flex-shrink:0;gap:calc(var(--spacing,.0025rem)*400)}.nav--hidden{display:none}.menu{--mds-button-border-opacity:0;fill:var(--mds-header-bar-hamburger-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));padding:0}.menu::part(icon){width:calc(var(--spacing,.0025rem)*800)}:host([menu=none]) .menu,:host([nav=none]) .nav{display:none}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-header-bar-transition-duration:0s}:host([pref-contrast=more]){--mds-header-bar-hamburger-color:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));box-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}@media not all and (min-width:768px){:host([menu=desktop]) .menu,:host([nav=desktop]) .nav{display:none}}@media (min-width:1024px){:host([menu=mobile]) .menu,:host([nav=mobile]) .nav{display:none}}@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-header-bar-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-header-bar-hamburger-color:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));box-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}}"}},[257,"mds-header-bar",{menu:[513],nav:[513],hasNav:[32],isOpened:[32],setOpened:[64]}]),x=g,y=function(){"undefined"!=typeof customElements&&["mds-header-bar","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-header-bar":customElements.get(s(a))||customElements.define(s(a),g);break;case"mds-button":customElements.get(s(a))||c();break;case"mds-icon":customElements.get(s(a))||p();break;case"mds-spinner":customElements.get(s(a))||h();break;case"mds-text":customElements.get(s(a))||l()}}))};export{x as MdsHeaderBar,y as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as a,d as i,h as t,c as r,t as d}from"./p-g2_CekDc.js";import{b as s}from"./p-DWIIDHSa.js";import{p as n}from"./p-AWCYh8Xe.js";import{d as o}from"./p-Bg11_7lt.js";import{d as h}from"./p-oHBGZ2Av.js";import{d as c}from"./p-BiJ4xa4V.js";import{d as l}from"./p-D7C-gjL6.js";import{d as m}from"./p-aZlZ1XB9.js";const p=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.closedEvent=i(this,"mdsHeaderClose",7),this.visibleEvent=i(this,"mdsHeaderVisibilityChange",7),this.relativeTresholdDown=0,this.relativePosition=0,this.relativeThresholdUp=0,this.sanitizedAppearance=["stripe"],this.appearanceThreshold=300,this.appearance="stripe",this.hideBackdrop=!1,this.menu="mobile",this.nav="desktop",this.threshold=1,this.visibility="visible",this.mobileMenu=()=>s(this.host,"menu"),this.close=()=>{this.isOpened=!1,this.closedEvent.emit({bar:this.headerBar}),this.headerBar.setOpened(!1)},this.getAutoHide=()=>{var e;const a=null!==(e=this.autoHide)&&void 0!==e?e:0;return Number.isNaN(a)?0:a},this.handleVisibility=()=>{const e=this.getAutoHide();if(0!==e){if(window.scrollY<e)return this.visibility="visible",this.relativeThresholdUp=0,this.relativeTresholdDown=0,void(this.relativePosition=0);this.relativeTresholdDown-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=this.relativeTresholdDown),this.relativeThresholdUp-window.scrollY>=this.threshold&&(this.visibility="visible",this.relativeThresholdUp=window.scrollY,this.relativePosition=this.relativeThresholdUp),this.relativePosition<e&&e-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=e),window.scrollY>this.relativeThresholdUp?this.relativeThresholdUp=window.scrollY:this.relativeTresholdDown=window.scrollY+this.threshold}},this.sanitizeAppearance=()=>{var e;const a=null!==(e=this.appearanceSet)&&void 0!==e?e:"";if(""===a)return[this.appearance];return a.match(/\b(\w+)\b/g)||[this.appearance]},this.handleAppearance=()=>{var e,a;this.appearance=window.scrollY>=this.appearanceThreshold?null!==(e=this.sanitizedAppearance[1])&&void 0!==e?e:this.appearance:null!==(a=this.sanitizedAppearance[0])&&void 0!==a?a:this.appearance},this.handleScroll=()=>{"undefined"!=typeof window&&(0!==this.getAutoHide()&&this.handleVisibility(),this.sanitizedAppearance.length>1&&this.handleAppearance())},this.setAppearanceSetData=()=>{this.sanitizedAppearance=this.sanitizeAppearance(),void 0===this.sanitizedAppearance[2]||0===this.sanitizedAppearance[2]||Number.isNaN(this.sanitizedAppearance[2])||(this.appearanceThreshold=this.sanitizedAppearance[2]),this.relativeTresholdDown=this.threshold},this.initScrollListener=()=>{"undefined"!=typeof window&&(this.setAppearanceSetData(),window.addEventListener("scroll",this.handleScroll))},this.barMenu=e=>this.hasMenu?e:"none",this.defineHeaderBar=()=>{this.headerBar=this.host.querySelector("mds-header-bar")}}async setOpened(e=!0){this.isOpened=e}disconnectedCallback(){"undefined"!=typeof window&&window.removeEventListener("scroll",this.handleScroll)}componentWillLoad(){this.hasMenu=null!==this.mobileMenu()}componentDidLoad(){this.defineHeaderBar(),this.onMenuChangedHandler(this.menu),this.onNavChangedHandler(this.nav),this.initScrollListener()}onMenuChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.menu=this.barMenu(e))}onNavChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.nav=e)}onAppearanceSetChangedHandler(){this.setAppearanceSetData()}handleVisibilityChange(e,a){e!==a&&this.visibleEvent.emit({visibility:e})}render(){return t(r,{key:"d8fbb4ca41dcd1be069748bf05bcd93dab81ac1b","pref-consumption":n.state.consumption,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},!this.hideBackdrop&&t("div",{key:"4868b0ddf4a6e0d85b38d17ab08ba1f833173307",class:"backdrop"},t("div",{key:"706788170f01ec2f82c3701719a4ad1ed7a51b5b",class:"backdrop-blur-item"}),t("div",{key:"7691587e6617b3c0fe357d2d2abbb213137ef0e3",class:"backdrop-blur-item"}),t("div",{key:"ac7d973f415c14e61a39e293a86acac615afd5e7",class:"backdrop-blur-item"}),t("div",{key:"5c8dc70ae4df8b9c6ca126be73495bc2de589e05",class:"backdrop-blur-item"}),t("div",{key:"5016daa02618916930cb4de782200bb39e4daa2a",class:"backdrop-blur-item"}),t("div",{key:"0e8031d35f63a35acbf2000cc0f1f46e0d55b5a8",class:"backdrop-blur-item"}),t("div",{key:"5061d7907b2802faace37417783dbb2684c0bc49",class:"backdrop-blur-item"}),t("div",{key:"a42ea0c20b4cbd086b43f274552e9a5635dd84bd",class:"backdrop-blur-item"}),t("div",{key:"e65153ae86194ef3b46d714eac7698304f4a635d",class:"backdrop-blur-item"}),t("div",{key:"ddee6c547addfdf703354faaf0eb4af8470149bf",class:"backdrop-blur-item"})),t("slot",{key:"88550dee3cc0e332b448db0103cbca05b5704f75"}),this.hasMenu&&t("div",{key:"1b706ffe6d254b5d5df400d9db24362894607d12",class:"menu",part:"menu"},t("mds-modal",{key:"0f9dd821d8ae58cbb28881057f8bbf17855c883b",class:"modal",opened:this.isOpened,onMdsModalClose:this.close,position:"right"},t("slot",{key:"1e372b3b7ae666e7281baed64359ed4dc4618925",name:"menu"}))))}get host(){return this}static get watchers(){return{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-modal: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-header-hidden-bar-translate-inline:translateY(-150%);--mds-header-hidden-bar-translate-stripe:translateY(-110%);--mds-header-modal-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-header-backdrop-blur-strength:calc(var(--spacing,.0025rem)*50);--mds-header-backdrop-height:calc(var(--spacing,.0025rem)*1600);--mds-header-backdrop-show:true;--mds-header-z-index:var(--magma-header-z-index,1000);--mds-header-inline-margin-mobile:calc(var(--spacing,.0025rem)*400);--mds-header-inline-margin:calc(var(--spacing,.0025rem)*600);--mds-header-backdrop-background-image:linear-gradient(to top,rgb(var(--magma-backdrop-color,0 0 0)/0),rgb(var(--magma-backdrop-color,0 0 0)/.15));--private-mask-opacity:1;color:var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));display:flow-root;fill:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));pointer-events:none;position:sticky;top:0;z-index:var(--mds-header-z-index)}.backdrop,.menu,::slotted(*){pointer-events:auto}.modal{--mds-modal-close-icon-color:var(--mds-header-modal-icon-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));z-index:var(--mds-header-z-index)}:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin,calc(var(--spacing,.0025rem)*600));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));corner-shape:var(--magma-corner-shape,squircle);margin-bottom:calc(var(--mds-header-inline-margin-current)*-1);margin-top:var(--mds-header-inline-margin-current);max-width:var(--magma-width-page,1280px);width:calc(100% - var(--mds-header-inline-margin-current)*2)}:host([menu=none]) .menu{display:none}:host([visibility=hidden][appearance=stripe]) ::slotted(mds-header-bar){transform:var(--mds-header-hidden-bar-translate-stripe)}:host([visibility=hidden][appearance=inline]) ::slotted(mds-header-bar){transform:var(--mds-header-hidden-bar-translate-inline)}.backdrop{align-items:center;-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,calc(var(--spacing,.0025rem)*250)));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,calc(var(--spacing,.0025rem)*250)));background-image:var(--mds-header-backdrop-background-image);content:"";display:flex;height:var(--mds-header-backdrop-height,calc(var(--spacing,.0025rem)*1600));inset:0;opacity:1;position:fixed;transform:translate(0);transition-duration:var(--duration-200,.2s);transition-property:opacity,transform;width:100%}.backdrop-blur-item{--private-gradient-position:calc(100% - (sibling-count() - sibling-index())*5%);display:none}.backdrop-blur-item:first-child{--private-gradient-position:100%}.backdrop-blur-item:nth-child(2){--private-gradient-position:95%}.backdrop-blur-item:nth-child(3){--private-gradient-position:90%}.backdrop-blur-item:nth-child(4){--private-gradient-position:85%}.backdrop-blur-item:nth-child(5){--private-gradient-position:80%}.backdrop-blur-item:nth-child(6){--private-gradient-position:75%}.backdrop-blur-item:nth-child(7){--private-gradient-position:70%}.backdrop-blur-item:nth-child(8){--private-gradient-position:65%}.backdrop-blur-item:nth-child(9){--private-gradient-position:60%}.backdrop-blur-item:nth-child(10){--private-gradient-position:55%}.backdrop-blur-item:nth-child(11){--private-gradient-position:50%}@supports ((-webkit-mask-image:linear-gradient(rgb(0 0 0/1),transparent)) or (mask-image:linear-gradient(rgb(0 0 0/1),transparent))){.backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background-image:none}.backdrop-blur-item{-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));display:flex;inset:0;-webkit-mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));pointer-events:none;position:absolute}}:host([appearance=inline]) .backdrop{transform:translate(0)}:host([appearance=stripe]) .backdrop,:host([visibility=hidden]) .backdrop{--mds-header-backdrop-blur-strength:0px;transform:translateY(-100%)}@container style(--mds-header-backdrop-show:false){.backdrop{display:none}}:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark]){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-consumption=high]) .backdrop{--mds-header-backdrop-background-image:none}:host([pref-consumption=medium]) .backdrop{--mds-header-backdrop-blur-strength:1px}:host([pref-consumption=low]) .backdrop{--mds-header-backdrop-blur-strength:0px;display:none}@media (max-width:767px){:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin-mobile,calc(var(--spacing,.0025rem)*400))}}@media not all and (min-width:768px){:host([menu=desktop]) .menu{display:none}}@media (min-width:1024px){:host([menu=mobile]) .menu{display:none}}@media (prefers-color-scheme:dark){:host(:not([pref-mode]):not([pref-theme-scheme=light])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}'}},[257,"mds-header",{appearance:[1537],appearanceSet:[513,"appearance-set"],autoHide:[514,"auto-hide"],hideBackdrop:[516,"hide-backdrop"],menu:[513],nav:[513],threshold:[514],visibility:[1537],hasMenu:[32],isOpened:[32],setOpened:[64]},void 0,{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}]),b=p,u=function(){"undefined"!=typeof customElements&&["mds-header","mds-button","mds-icon","mds-modal","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-header":customElements.get(d(e))||customElements.define(d(e),p);break;case"mds-button":customElements.get(d(e))||o();break;case"mds-icon":customElements.get(d(e))||h();break;case"mds-modal":customElements.get(d(e))||c();break;case"mds-spinner":customElements.get(d(e))||l();break;case"mds-text":customElements.get(d(e))||m()}}))};export{b as MdsHeader,u as defineCustomElement}
|
|
1
|
+
import{p as e,H as a,d as i,h as t,c as r,t as d}from"./p-ChCkQpXr.js";import{b as s}from"./p-DWIIDHSa.js";import{p as n}from"./p-BQJgPeCf.js";import{d as o}from"./p-BPnc1LgR.js";import{d as h}from"./p-CbyfhFKK.js";import{d as c}from"./p-CkFk04x6.js";import{d as m}from"./p-BwGJqBgv.js";import{d as l}from"./p-tI3q9MMi.js";const p=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.closedEvent=i(this,"mdsHeaderClose",7),this.visibleEvent=i(this,"mdsHeaderVisibilityChange",7),this.relativeTresholdDown=0,this.relativePosition=0,this.relativeThresholdUp=0,this.sanitizedAppearance=["stripe"],this.appearanceThreshold=300,this.appearance="stripe",this.hideBackdrop=!1,this.menu="mobile",this.nav="desktop",this.threshold=1,this.visibility="visible",this.mobileMenu=()=>s(this.host,"menu"),this.close=()=>{this.isOpened=!1,this.closedEvent.emit({bar:this.headerBar}),this.headerBar.setOpened(!1)},this.getAutoHide=()=>{var e;const a=null!==(e=this.autoHide)&&void 0!==e?e:0;return Number.isNaN(a)?0:a},this.handleVisibility=()=>{const e=this.getAutoHide();if(0!==e){if(window.scrollY<e)return this.visibility="visible",this.relativeThresholdUp=0,this.relativeTresholdDown=0,void(this.relativePosition=0);this.relativeTresholdDown-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=this.relativeTresholdDown),this.relativeThresholdUp-window.scrollY>=this.threshold&&(this.visibility="visible",this.relativeThresholdUp=window.scrollY,this.relativePosition=this.relativeThresholdUp),this.relativePosition<e&&e-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=e),window.scrollY>this.relativeThresholdUp?this.relativeThresholdUp=window.scrollY:this.relativeTresholdDown=window.scrollY+this.threshold}},this.sanitizeAppearance=()=>{var e;const a=null!==(e=this.appearanceSet)&&void 0!==e?e:"";if(""===a)return[this.appearance];return a.match(/\b(\w+)\b/g)||[this.appearance]},this.handleAppearance=()=>{var e,a;this.appearance=window.scrollY>=this.appearanceThreshold?null!==(e=this.sanitizedAppearance[1])&&void 0!==e?e:this.appearance:null!==(a=this.sanitizedAppearance[0])&&void 0!==a?a:this.appearance},this.handleScroll=()=>{"undefined"!=typeof window&&(0!==this.getAutoHide()&&this.handleVisibility(),this.sanitizedAppearance.length>1&&this.handleAppearance())},this.setAppearanceSetData=()=>{this.sanitizedAppearance=this.sanitizeAppearance(),void 0===this.sanitizedAppearance[2]||0===this.sanitizedAppearance[2]||Number.isNaN(this.sanitizedAppearance[2])||(this.appearanceThreshold=this.sanitizedAppearance[2]),this.relativeTresholdDown=this.threshold},this.initScrollListener=()=>{"undefined"!=typeof window&&(this.setAppearanceSetData(),window.addEventListener("scroll",this.handleScroll))},this.barMenu=e=>this.hasMenu?e:"none",this.defineHeaderBar=()=>{this.headerBar=this.host.querySelector("mds-header-bar")}}async setOpened(e=!0){this.isOpened=e}disconnectedCallback(){"undefined"!=typeof window&&window.removeEventListener("scroll",this.handleScroll)}componentWillLoad(){this.hasMenu=null!==this.mobileMenu()}componentDidLoad(){this.defineHeaderBar(),this.onMenuChangedHandler(this.menu),this.onNavChangedHandler(this.nav),this.initScrollListener()}onMenuChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.menu=this.barMenu(e))}onNavChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.nav=e)}onAppearanceSetChangedHandler(){this.setAppearanceSetData()}handleVisibilityChange(e,a){e!==a&&this.visibleEvent.emit({visibility:e})}render(){return t(r,{key:"d8fbb4ca41dcd1be069748bf05bcd93dab81ac1b","pref-consumption":n.state.consumption,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},!this.hideBackdrop&&t("div",{key:"4868b0ddf4a6e0d85b38d17ab08ba1f833173307",class:"backdrop"},t("div",{key:"706788170f01ec2f82c3701719a4ad1ed7a51b5b",class:"backdrop-blur-item"}),t("div",{key:"7691587e6617b3c0fe357d2d2abbb213137ef0e3",class:"backdrop-blur-item"}),t("div",{key:"ac7d973f415c14e61a39e293a86acac615afd5e7",class:"backdrop-blur-item"}),t("div",{key:"5c8dc70ae4df8b9c6ca126be73495bc2de589e05",class:"backdrop-blur-item"}),t("div",{key:"5016daa02618916930cb4de782200bb39e4daa2a",class:"backdrop-blur-item"}),t("div",{key:"0e8031d35f63a35acbf2000cc0f1f46e0d55b5a8",class:"backdrop-blur-item"}),t("div",{key:"5061d7907b2802faace37417783dbb2684c0bc49",class:"backdrop-blur-item"}),t("div",{key:"a42ea0c20b4cbd086b43f274552e9a5635dd84bd",class:"backdrop-blur-item"}),t("div",{key:"e65153ae86194ef3b46d714eac7698304f4a635d",class:"backdrop-blur-item"}),t("div",{key:"ddee6c547addfdf703354faaf0eb4af8470149bf",class:"backdrop-blur-item"})),t("slot",{key:"88550dee3cc0e332b448db0103cbca05b5704f75"}),this.hasMenu&&t("div",{key:"1b706ffe6d254b5d5df400d9db24362894607d12",class:"menu",part:"menu"},t("mds-modal",{key:"0f9dd821d8ae58cbb28881057f8bbf17855c883b",class:"modal",opened:this.isOpened,onMdsModalClose:this.close,position:"right"},t("slot",{key:"1e372b3b7ae666e7281baed64359ed4dc4618925",name:"menu"}))))}get host(){return this}static get watchers(){return{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-modal: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-header-hidden-bar-translate-inline:translateY(-150%);--mds-header-hidden-bar-translate-stripe:translateY(-110%);--mds-header-modal-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-header-backdrop-blur-strength:calc(var(--spacing,.0025rem)*50);--mds-header-backdrop-height:calc(var(--spacing,.0025rem)*1600);--mds-header-backdrop-show:true;--mds-header-z-index:var(--magma-header-z-index,1000);--mds-header-inline-margin-mobile:calc(var(--spacing,.0025rem)*400);--mds-header-inline-margin:calc(var(--spacing,.0025rem)*600);--mds-header-backdrop-background-image:linear-gradient(to top,rgb(var(--magma-backdrop-color,0 0 0)/0),rgb(var(--magma-backdrop-color,0 0 0)/.15));--private-mask-opacity:1;color:var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));display:flow-root;fill:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));pointer-events:none;position:sticky;top:0;z-index:var(--mds-header-z-index)}.backdrop,.menu,::slotted(*){pointer-events:auto}.modal{--mds-modal-close-icon-color:var(--mds-header-modal-icon-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));z-index:var(--mds-header-z-index)}:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin,calc(var(--spacing,.0025rem)*600));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));corner-shape:var(--magma-corner-shape,squircle);margin-bottom:calc(var(--mds-header-inline-margin-current)*-1);margin-top:var(--mds-header-inline-margin-current);max-width:var(--magma-width-page,1280px);width:calc(100% - var(--mds-header-inline-margin-current)*2)}:host([menu=none]) .menu{display:none}:host([visibility=hidden][appearance=stripe]) ::slotted(mds-header-bar){transform:var(--mds-header-hidden-bar-translate-stripe)}:host([visibility=hidden][appearance=inline]) ::slotted(mds-header-bar){transform:var(--mds-header-hidden-bar-translate-inline)}.backdrop{align-items:center;-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,calc(var(--spacing,.0025rem)*250)));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,calc(var(--spacing,.0025rem)*250)));background-image:var(--mds-header-backdrop-background-image);content:"";display:flex;height:var(--mds-header-backdrop-height,calc(var(--spacing,.0025rem)*1600));inset:0;opacity:1;position:fixed;transform:translate(0);transition-duration:var(--duration-200,.2s);transition-property:opacity,transform;width:100%}.backdrop-blur-item{--private-gradient-position:calc(100% - (sibling-count() - sibling-index())*5%);display:none}.backdrop-blur-item:first-child{--private-gradient-position:100%}.backdrop-blur-item:nth-child(2){--private-gradient-position:95%}.backdrop-blur-item:nth-child(3){--private-gradient-position:90%}.backdrop-blur-item:nth-child(4){--private-gradient-position:85%}.backdrop-blur-item:nth-child(5){--private-gradient-position:80%}.backdrop-blur-item:nth-child(6){--private-gradient-position:75%}.backdrop-blur-item:nth-child(7){--private-gradient-position:70%}.backdrop-blur-item:nth-child(8){--private-gradient-position:65%}.backdrop-blur-item:nth-child(9){--private-gradient-position:60%}.backdrop-blur-item:nth-child(10){--private-gradient-position:55%}.backdrop-blur-item:nth-child(11){--private-gradient-position:50%}@supports ((-webkit-mask-image:linear-gradient(rgb(0 0 0/1),transparent)) or (mask-image:linear-gradient(rgb(0 0 0/1),transparent))){.backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background-image:none}.backdrop-blur-item{-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));display:flex;inset:0;-webkit-mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));pointer-events:none;position:absolute}}:host([appearance=inline]) .backdrop{transform:translate(0)}:host([appearance=stripe]) .backdrop,:host([visibility=hidden]) .backdrop{--mds-header-backdrop-blur-strength:0px;transform:translateY(-100%)}@container style(--mds-header-backdrop-show:false){.backdrop{display:none}}:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark]){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-consumption=high]) .backdrop{--mds-header-backdrop-background-image:none}:host([pref-consumption=medium]) .backdrop{--mds-header-backdrop-blur-strength:1px}:host([pref-consumption=low]) .backdrop{--mds-header-backdrop-blur-strength:0px;display:none}@media (max-width:767px){:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin-mobile,calc(var(--spacing,.0025rem)*400))}}@media not all and (min-width:768px){:host([menu=desktop]) .menu{display:none}}@media (min-width:1024px){:host([menu=mobile]) .menu{display:none}}@media (prefers-color-scheme:dark){:host(:not([pref-mode]):not([pref-theme-scheme=light])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}'}},[257,"mds-header",{appearance:[1537],appearanceSet:[513,"appearance-set"],autoHide:[514,"auto-hide"],hideBackdrop:[516,"hide-backdrop"],menu:[513],nav:[513],threshold:[514],visibility:[1537],hasMenu:[32],isOpened:[32],setOpened:[64]},void 0,{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}]),b=p,u=function(){"undefined"!=typeof customElements&&["mds-header","mds-button","mds-icon","mds-modal","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-header":customElements.get(d(e))||customElements.define(d(e),p);break;case"mds-button":customElements.get(d(e))||o();break;case"mds-icon":customElements.get(d(e))||h();break;case"mds-modal":customElements.get(d(e))||c();break;case"mds-spinner":customElements.get(d(e))||m();break;case"mds-text":customElements.get(d(e))||l()}}))};export{b as MdsHeader,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as o,d as s}from"./p-
|
|
1
|
+
import{M as o,d as s}from"./p-CbHtKU6H.js";const t=o,p=s;export{t as MdsHelp,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as a,H as o,h as r,c as s,t}from"./p-g2_CekDc.js";import{m as i}from"./p-DnEUG7st.js";import{m as l}from"./p-Bd0uuNDE.js";import{c as n}from"./p-ChV9xqsO.js";import{a as c}from"./p-CWk1SCJg.js";import{L as e}from"./p-BmlDGlcB.js";import{d}from"./p-Bg11_7lt.js";import{d as h}from"./p-oHBGZ2Av.js";import{d as m}from"./p-D7C-gjL6.js";import{d as v}from"./p-aZlZ1XB9.js";var g={scrollBack:"Κύλιση προς τα πίσω",scrollForward:"Κύλιση προς τα εμπρός"},p={scrollBack:"Scroll back",scrollForward:"Scroll forward"},u={scrollBack:"Desplazar hacia atrás",scrollForward:"Desplazar hacia adelante"},b={scrollBack:"Scorri indietro",scrollForward:"Scorri avanti"};const f=a(class extends o{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.t=new e({el:g,en:p,es:u,it:b}),this.elements=[],this.hasCompatibility=!0,this.showForward=!0,this.showBack=!1,this.controls="desktop",this.navigation="position",this.snap="start",this.updateElements=()=>{var a,o;const r=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector("slot");this.elements=null!==(o=null==r?void 0:r.assignedElements())&&void 0!==o?o:[]},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const a=window.getComputedStyle(this.host);this.scrollGap=c(a.getPropertyValue("--mds-horizontal-scroll-gap"))},this.isInViewport=a=>{if(null==this.contents)return!1;const o=this.spacer.offsetWidth+this.scrollGap,r=a.getBoundingClientRect(),s=this.contents.getBoundingClientRect();return r.top>=0&&r.left>=o&&r.bottom<=s.height&&r.right<=s.width-2*o},this.checkNavigationButtons=()=>{this.showBack=!0,this.showForward=!0,this.elements.forEach(((a,o)=>{0===o&&this.isInViewport(a)&&(this.showBack=!1),this.elements.length-1===o&&this.isInViewport(a)&&(this.showForward=!1)}))},this.moveBack=()=>{let a,o,r=0;this.elements.forEach(((s,t)=>{this.isInViewport(s)&&(a||(r=t,a=s),o=s)})),this.elements.forEach(((s,t)=>{this.isInViewport(s)||t!==r-1||void 0===a||void 0===o||(this.contents.scrollLeft=this.contents.scrollLeft+s.offsetLeft-o.offsetLeft-a.offsetWidth-this.scrollGap)}))},this.moveForward=()=>{let a=!0;this.elements.forEach((o=>{this.isInViewport(o)||o.offsetLeft>this.contents.scrollLeft&&a&&(a=!1,this.lastElementOffsetLeft=o.offsetLeft,this.contents.scrollLeft=this.lastElementOffsetLeft)}))},this.translateNavigationDot=()=>{if(null==this.elements||null==this.contents||null==this.navigationDot||null==this.navigationDots)return void console.error("mds-horizontal-scroll.translateNavigationDot: One of the shadowRoot elements is missing.");const{scrollLeft:a,scrollWidth:o,offsetWidth:r}=this.contents,s=window.getComputedStyle(this.navigationDots);0!==r&&0!==o?this.navigationDot.style.transform=`translateX(${a/(o-r)*(this.navigationDots.offsetWidth-(parseFloat(s.paddingLeft)||0)-(parseFloat(s.paddingRight)||0)-this.navigationDot.offsetWidth)}px)`:console.error("mds-horizontal-scroll.translateNavigationDot: offsetWidth or scrollWidth is 0, impossible to calculate position")},this.updateNavigationDotSize=()=>{if(null==this.contents||null==this.navigationDot||null==this.navigationDots)return void console.error("mds-horizontal-scroll.updateNavigationDotSize: One of the shadowRoot elements is missing.");const{scrollWidth:a,offsetWidth:o}=this.contents,r=this.navigationDots.offsetWidth;this.navigationDot.style.width=a<=o?r+"px":o/a*r+"px"},this.addNavigationDots=()=>{var a,o;this.contents.removeEventListener("scroll",this.translateNavigationDot),this.navigationDot=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".dot"),this.navigationDots=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".dot-navigation"),this.updateNavigationDotSize(),null!=this.navigationDot&&this.contents.addEventListener("scroll",this.translateNavigationDot)}}watchNavigation(a){"position"===a&&this.addNavigationDots()}componentWillLoad(){this.updateCSSCustomProps()}componentDidLoad(){var a,o;this.contents=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".contents"),this.spacer=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".spacer"),"position"===this.navigation&&this.addNavigationDots(),window&&void 0!==window.onscrollend?this.contents.addEventListener("scrollend",this.checkNavigationButtons):void 0!==this.controls&&(this.controls=void 0)}disconnectedCallback(){this.contents.removeEventListener("scrollend",this.checkNavigationButtons),this.contents.removeEventListener("scroll",this.translateNavigationDot)}render(){return r(s,{key:"402f5411e5ea515ee80e4fa597fe27d04c9adec6"},r("div",{key:"0498224d4122a591ffc781ce0023d61d57feace6",class:"contents",part:"content"},r("div",{key:"ca8e490d4370bff80dc78b84957cd31dabd33b88",class:"spacer"}),r("slot",{key:"2d5b8346d142951df61b8d551c4279b23fac2412",onSlotchange:this.updateElements}),r("div",{key:"106609d491a643ae04120918793086d124accc60",class:"spacer"})),r("div",{key:"847a198f9dc1a95c536387702ad4987aee8b2283",class:"dot-navigation"},r("div",{key:"05c9e3a68ea0db7a004160dd735176e0615ad547",class:"dot"})),this.controls&&"none"!==this.controls&&r("mds-button",{key:"37047dd4c6d9cb7859eafbdb17476165c76748a0","aria-label":this.t.get("scrollBack"),onClick:this.moveBack,size:"lg",class:n("navigation navigation--back",!this.showBack&&"navigation--disabled"),icon:i}),this.controls&&"none"!==this.controls&&r("mds-button",{key:"60cd7faec3c85a883e3d8efbdeb9980036407080","aria-label":this.t.get("scrollForward"),onClick:this.moveForward,size:"lg",class:n("navigation navigation--forward",!this.showForward&&"navigation--disabled"),icon:l}))}get host(){return this}static get watchers(){return{navigation:[{watchNavigation:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-horizontal-scroll-behavior:smooth;--mds-horizontal-scroll-dots-gap:calc(var(--spacing,.0025rem)*100);--mds-horizontal-scroll-dot-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-dot-max-width:auto;--mds-horizontal-scroll-dot-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-horizontal-scroll-dot-area-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-horizontal-scroll-contents-padding:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-contents-scroll-padding:0 calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-controls-margin:calc(var(--spacing,.0025rem)*1200);--mds-horizontal-scroll-gap:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-max-width:var(--breakpoint-wide,1280px);--mds-horizontal-scroll-scrollbar-margin:0;--mds-horizontal-scroll-scrollbar-radius:0;--mds-horizontal-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3);--mds-horizontal-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--max-width:var(--mds-horizontal-scroll-max-width,var(--breakpoint-wide,1280px));--scroll-margin:calc(((100svw - var(--max-width)) / 2) + (var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)) * 2));align-items:center;container:mds-horizontal-scroll/inline-size;display:flex;flex-direction:column;justify-content:center;position:relative;width:100%}.navigation{border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:none;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition-duration:var(--duration-200,.2s);transition-property:opacity,scale,transform}.contents{box-sizing:border-box;display:flex;gap:var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem)*600));overflow:auto;padding-bottom:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));padding-top:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));position:relative;scroll-behavior:var(--mds-horizontal-scroll-behavior,smooth);scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600));scroll-snap-type:x mandatory;width:100%}.contents>::slotted(*){flex:0 0 0;scroll-margin:0 var(--scroll-margin)}.spacer{--width:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)));content:"";display:block;flex:0 0 0;min-width:clamp(1px,var(--width),var(--width));scroll-margin:0 var(--scroll-margin)}@container (max-width:1024px){:host{--scroll-margin:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents{scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents>::slotted(*){scroll-margin:0 var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}}.navigation--back{left:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--back,.navigation--forward{--position:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) - var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)))}.navigation--forward{right:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--disabled{opacity:0;pointer-events:none;transform:translateY(-50%)scale(.5)}:host([controls=all]) .navigation{display:flex}.dot-navigation{align-self:center;background-color:var(--mds-horizontal-scroll-dot-area-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:none;gap:var(--mds-horizontal-scroll-dots-gap,calc(var(--spacing,.0025rem)*100));justify-content:start;margin:0 auto var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600)) auto;max-width:calc(var(--spacing,.0025rem)*4000);padding:calc(var(--spacing,.0025rem)*50);width:100%}:host([navigation=position]) .dot-navigation{display:inline-flex}.dot{background-color:var(--mds-horizontal-scroll-dot-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));height:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));max-width:var(--mds-horizontal-scroll-dot-max-width);min-width:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));transition-duration:var(--duration-300,.3s);transition-property:width;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:calc(var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem) * 200)) * 2)}:host(:not([navigation=scrollbar])) .contents{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([navigation=scrollbar])) .contents::-webkit-scrollbar{display:none}:host([navigation=scrollbar]) .contents::-webkit-scrollbar{height:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-track{background-color:var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0);margin-block:var(--mds-horizontal-scroll-scrollbar-margin,0);margin-inline:var(--mds-horizontal-scroll-scrollbar-margin,0)}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-thumb{background-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.contents{scrollbar-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3)) var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));scrollbar-width:thin}}:host([snap=start]) .contents>::slotted(*){scroll-snap-align:start}:host([snap=center]) .contents>::slotted(*){scroll-snap-align:center}:host([snap=end]) .contents>::slotted(*){scroll-snap-align:end}@media (prefers-reduced-motion:reduce){:host{--mds-horizontal-scroll-behavior:auto}}@media (min-width:1920px){:host([controls=tv]) .navigation{display:flex}}@media (min-width:1600px){:host([controls=xlarge]) .navigation{display:flex}}@media (min-width:1440px){:host([controls=large]) .navigation{display:flex}}@media (min-width:1280px){:host([controls=wide]) .navigation{display:flex}}@media (min-width:1024px){:host([controls=desktop]) .navigation{display:flex}}@media (min-width:768px){:host([controls=tablet]) .navigation{display:flex}}'}},[257,"mds-horizontal-scroll",{controls:[1537],navigation:[513],snap:[513],hasCompatibility:[32],showForward:[32],showBack:[32]},void 0,{navigation:[{watchNavigation:0}]}]),w=f,z=function(){"undefined"!=typeof customElements&&["mds-horizontal-scroll","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-horizontal-scroll":customElements.get(t(a))||customElements.define(t(a),f);break;case"mds-button":customElements.get(t(a))||d();break;case"mds-icon":customElements.get(t(a))||h();break;case"mds-spinner":customElements.get(t(a))||m();break;case"mds-text":customElements.get(t(a))||v()}}))};export{w as MdsHorizontalScroll,z as defineCustomElement}
|
|
1
|
+
import{p as a,H as o,h as r,c as s,t}from"./p-ChCkQpXr.js";import{m as i}from"./p-DnEUG7st.js";import{m as l}from"./p-Bd0uuNDE.js";import{c as n}from"./p-ChV9xqsO.js";import{a as c}from"./p-CWk1SCJg.js";import{L as e}from"./p-B3t-yAT6.js";import{d}from"./p-BPnc1LgR.js";import{d as h}from"./p-CbyfhFKK.js";import{d as m}from"./p-BwGJqBgv.js";import{d as v}from"./p-tI3q9MMi.js";var g={scrollBack:"Κύλιση προς τα πίσω",scrollForward:"Κύλιση προς τα εμπρός"},p={scrollBack:"Scroll back",scrollForward:"Scroll forward"},b={scrollBack:"Desplazar hacia atrás",scrollForward:"Desplazar hacia adelante"},u={scrollBack:"Scorri indietro",scrollForward:"Scorri avanti"};const f=a(class extends o{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.t=new e({el:g,en:p,es:b,it:u}),this.elements=[],this.hasCompatibility=!0,this.showForward=!0,this.showBack=!1,this.controls="desktop",this.navigation="position",this.snap="start",this.updateElements=()=>{var a,o;const r=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector("slot");this.elements=null!==(o=null==r?void 0:r.assignedElements())&&void 0!==o?o:[]},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const a=window.getComputedStyle(this.host);this.scrollGap=c(a.getPropertyValue("--mds-horizontal-scroll-gap"))},this.isInViewport=a=>{if(null==this.contents)return!1;const o=this.spacer.offsetWidth+this.scrollGap,r=a.getBoundingClientRect(),s=this.contents.getBoundingClientRect();return r.top>=0&&r.left>=o&&r.bottom<=s.height&&r.right<=s.width-2*o},this.checkNavigationButtons=()=>{this.showBack=!0,this.showForward=!0,this.elements.forEach(((a,o)=>{0===o&&this.isInViewport(a)&&(this.showBack=!1),this.elements.length-1===o&&this.isInViewport(a)&&(this.showForward=!1)}))},this.moveBack=()=>{let a,o,r=0;this.elements.forEach(((s,t)=>{this.isInViewport(s)&&(a||(r=t,a=s),o=s)})),this.elements.forEach(((s,t)=>{this.isInViewport(s)||t!==r-1||void 0===a||void 0===o||(this.contents.scrollLeft=this.contents.scrollLeft+s.offsetLeft-o.offsetLeft-a.offsetWidth-this.scrollGap)}))},this.moveForward=()=>{let a=!0;this.elements.forEach((o=>{this.isInViewport(o)||o.offsetLeft>this.contents.scrollLeft&&a&&(a=!1,this.lastElementOffsetLeft=o.offsetLeft,this.contents.scrollLeft=this.lastElementOffsetLeft)}))},this.translateNavigationDot=()=>{if(null==this.elements||null==this.contents||null==this.navigationDot||null==this.navigationDots)return void console.error("mds-horizontal-scroll.translateNavigationDot: One of the shadowRoot elements is missing.");const{scrollLeft:a,scrollWidth:o,offsetWidth:r}=this.contents,s=window.getComputedStyle(this.navigationDots);0!==r&&0!==o?this.navigationDot.style.transform=`translateX(${a/(o-r)*(this.navigationDots.offsetWidth-(parseFloat(s.paddingLeft)||0)-(parseFloat(s.paddingRight)||0)-this.navigationDot.offsetWidth)}px)`:console.error("mds-horizontal-scroll.translateNavigationDot: offsetWidth or scrollWidth is 0, impossible to calculate position")},this.updateNavigationDotSize=()=>{if(null==this.contents||null==this.navigationDot||null==this.navigationDots)return void console.error("mds-horizontal-scroll.updateNavigationDotSize: One of the shadowRoot elements is missing.");const{scrollWidth:a,offsetWidth:o}=this.contents,r=this.navigationDots.offsetWidth;this.navigationDot.style.width=a<=o?r+"px":o/a*r+"px"},this.addNavigationDots=()=>{var a,o;this.contents.removeEventListener("scroll",this.translateNavigationDot),this.navigationDot=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".dot"),this.navigationDots=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".dot-navigation"),this.updateNavigationDotSize(),null!=this.navigationDot&&this.contents.addEventListener("scroll",this.translateNavigationDot)}}watchNavigation(a){"position"===a&&this.addNavigationDots()}componentWillLoad(){this.updateCSSCustomProps()}componentDidLoad(){var a,o;this.contents=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".contents"),this.spacer=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".spacer"),"position"===this.navigation&&this.addNavigationDots(),window&&void 0!==window.onscrollend?this.contents.addEventListener("scrollend",this.checkNavigationButtons):void 0!==this.controls&&(this.controls=void 0)}disconnectedCallback(){this.contents.removeEventListener("scrollend",this.checkNavigationButtons),this.contents.removeEventListener("scroll",this.translateNavigationDot)}render(){return r(s,{key:"402f5411e5ea515ee80e4fa597fe27d04c9adec6"},r("div",{key:"0498224d4122a591ffc781ce0023d61d57feace6",class:"contents",part:"content"},r("div",{key:"ca8e490d4370bff80dc78b84957cd31dabd33b88",class:"spacer"}),r("slot",{key:"2d5b8346d142951df61b8d551c4279b23fac2412",onSlotchange:this.updateElements}),r("div",{key:"106609d491a643ae04120918793086d124accc60",class:"spacer"})),r("div",{key:"847a198f9dc1a95c536387702ad4987aee8b2283",class:"dot-navigation"},r("div",{key:"05c9e3a68ea0db7a004160dd735176e0615ad547",class:"dot"})),this.controls&&"none"!==this.controls&&r("mds-button",{key:"37047dd4c6d9cb7859eafbdb17476165c76748a0","aria-label":this.t.get("scrollBack"),onClick:this.moveBack,size:"lg",class:n("navigation navigation--back",!this.showBack&&"navigation--disabled"),icon:i}),this.controls&&"none"!==this.controls&&r("mds-button",{key:"60cd7faec3c85a883e3d8efbdeb9980036407080","aria-label":this.t.get("scrollForward"),onClick:this.moveForward,size:"lg",class:n("navigation navigation--forward",!this.showForward&&"navigation--disabled"),icon:l}))}get host(){return this}static get watchers(){return{navigation:[{watchNavigation:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-horizontal-scroll-behavior:smooth;--mds-horizontal-scroll-dots-gap:calc(var(--spacing,.0025rem)*100);--mds-horizontal-scroll-dot-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-dot-max-width:auto;--mds-horizontal-scroll-dot-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-horizontal-scroll-dot-area-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-horizontal-scroll-contents-padding:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-contents-scroll-padding:0 calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-controls-margin:calc(var(--spacing,.0025rem)*1200);--mds-horizontal-scroll-gap:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-max-width:var(--breakpoint-wide,1280px);--mds-horizontal-scroll-scrollbar-margin:0;--mds-horizontal-scroll-scrollbar-radius:0;--mds-horizontal-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3);--mds-horizontal-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--max-width:var(--mds-horizontal-scroll-max-width,var(--breakpoint-wide,1280px));--scroll-margin:calc(((100svw - var(--max-width)) / 2) + (var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)) * 2));align-items:center;container:mds-horizontal-scroll/inline-size;display:flex;flex-direction:column;justify-content:center;position:relative;width:100%}.navigation{border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:none;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition-duration:var(--duration-200,.2s);transition-property:opacity,scale,transform}.contents{box-sizing:border-box;display:flex;gap:var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem)*600));overflow:auto;padding-bottom:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));padding-top:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));position:relative;scroll-behavior:var(--mds-horizontal-scroll-behavior,smooth);scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600));scroll-snap-type:x mandatory;width:100%}.contents>::slotted(*){flex:0 0 0;scroll-margin:0 var(--scroll-margin)}.spacer{--width:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)));content:"";display:block;flex:0 0 0;min-width:clamp(1px,var(--width),var(--width));scroll-margin:0 var(--scroll-margin)}@container (max-width:1024px){:host{--scroll-margin:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents{scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents>::slotted(*){scroll-margin:0 var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}}.navigation--back{left:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--back,.navigation--forward{--position:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) - var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)))}.navigation--forward{right:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--disabled{opacity:0;pointer-events:none;transform:translateY(-50%)scale(.5)}:host([controls=all]) .navigation{display:flex}.dot-navigation{align-self:center;background-color:var(--mds-horizontal-scroll-dot-area-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:none;gap:var(--mds-horizontal-scroll-dots-gap,calc(var(--spacing,.0025rem)*100));justify-content:start;margin:0 auto var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600)) auto;max-width:calc(var(--spacing,.0025rem)*4000);padding:calc(var(--spacing,.0025rem)*50);width:100%}:host([navigation=position]) .dot-navigation{display:inline-flex}.dot{background-color:var(--mds-horizontal-scroll-dot-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));height:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));max-width:var(--mds-horizontal-scroll-dot-max-width);min-width:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));transition-duration:var(--duration-300,.3s);transition-property:width;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:calc(var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem) * 200)) * 2)}:host(:not([navigation=scrollbar])) .contents{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([navigation=scrollbar])) .contents::-webkit-scrollbar{display:none}:host([navigation=scrollbar]) .contents::-webkit-scrollbar{height:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-track{background-color:var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0);margin-block:var(--mds-horizontal-scroll-scrollbar-margin,0);margin-inline:var(--mds-horizontal-scroll-scrollbar-margin,0)}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-thumb{background-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.contents{scrollbar-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3)) var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));scrollbar-width:thin}}:host([snap=start]) .contents>::slotted(*){scroll-snap-align:start}:host([snap=center]) .contents>::slotted(*){scroll-snap-align:center}:host([snap=end]) .contents>::slotted(*){scroll-snap-align:end}@media (prefers-reduced-motion:reduce){:host{--mds-horizontal-scroll-behavior:auto}}@media (min-width:1920px){:host([controls=tv]) .navigation{display:flex}}@media (min-width:1600px){:host([controls=xlarge]) .navigation{display:flex}}@media (min-width:1440px){:host([controls=large]) .navigation{display:flex}}@media (min-width:1280px){:host([controls=wide]) .navigation{display:flex}}@media (min-width:1024px){:host([controls=desktop]) .navigation{display:flex}}@media (min-width:768px){:host([controls=tablet]) .navigation{display:flex}}'}},[257,"mds-horizontal-scroll",{controls:[1537],navigation:[513],snap:[513],hasCompatibility:[32],showForward:[32],showBack:[32]},void 0,{navigation:[{watchNavigation:0}]}]),w=f,z=function(){"undefined"!=typeof customElements&&["mds-horizontal-scroll","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-horizontal-scroll":customElements.get(t(a))||customElements.define(t(a),f);break;case"mds-button":customElements.get(t(a))||d();break;case"mds-icon":customElements.get(t(a))||h();break;case"mds-spinner":customElements.get(t(a))||m();break;case"mds-text":customElements.get(t(a))||v()}}))};export{w as MdsHorizontalScroll,z as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,h as r,t as s,c as o}from"./p-
|
|
1
|
+
import{p as e,H as t,h as r,t as s,c as o}from"./p-ChCkQpXr.js";import{p as a}from"./p-BQJgPeCf.js";const d=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return r(o,{key:"8b9d273b0b7fbe545cdddf35edad811d9a4ca417","pref-mode":a.state.mode,"pref-theme-scheme":a.state["theme-scheme"]})}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{background-color:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));border:0;border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:flex;height:1px;width:100%}"}},[1,"mds-hr"]),i=d,n=function(){"undefined"!=typeof customElements&&["mds-hr"].forEach((e=>{"mds-hr"===e&&(customElements.get(s(e))||customElements.define(s(e),d))}))};export{i as MdsHr,n as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as o,d as s}from"./p-
|
|
1
|
+
import{M as o,d as s}from"./p-CbyfhFKK.js";const p=o,r=s;export{p as MdsIcon,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as
|
|
1
|
+
import{M as o,d as r}from"./p-B410qrmd.js";const s=o,m=r;export{s as MdsImg,m as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as r,h as a,c as t,t as s}from"./p-
|
|
1
|
+
import{p as e,H as r,h as a,c as t,t as s}from"./p-ChCkQpXr.js";import{d as o}from"./p-BPnc1LgR.js";import{d as n}from"./p-CbyfhFKK.js";import{d}from"./p-BwGJqBgv.js";import{d as m}from"./p-tI3q9MMi.js";const c=e(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.onClick=e=>{var r;const a=null===(r=this.host)||void 0===r?void 0:r.closest("mds-input-date-range");a&&(e.stopPropagation(),a.preselect({caller:this.host,start:this.start,end:this.end}),this.selected=!0)}}componentWillLoad(){this.host.hasAttribute("slot")||this.host.setAttribute("slot","calendar-preselection")}render(){return a(t,{key:"effa1614b0de4544c0e547c3d2991e140b80bf73"},a("mds-button",{key:"65457e92163cfae34fc1a85a3eda3539d2fcf455",onClick:this.onClick,class:"action",variant:"primary",tone:"strong"},a("slot",{key:"94a3697981632b403ebbade363adc0e65205f4e0"})))}get host(){return this}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-date-range-preselection-default-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))/0);--mds-date-range-preselection-default-border:var(--magma-border-default,var(--border-neutral-default,183 183 183));--mds-date-range-preselection-default-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-date-range-preselection-selected-background:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,0 73 211)));--mds-date-range-preselection-selected-border:var(--magma-accent-emphasis-hover,var(--variant-primary-03,0 73 211));--mds-date-range-preselection-selected-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-date-range-preselection-hover-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-date-range-preselection-hover-border:var(--magma-wash-soft,var(--tone-neutral-10,237 237 237));--mds-date-range-preselection-hover-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-date-range-preselection-background:var(--mds-date-range-preselection-default-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))/0));--mds-date-range-preselection-border:var(--mds-date-range-preselection-default-border,var(--magma-border-default,var(--border-neutral-default,183 183 183)));--mds-date-range-preselection-color:var(--mds-date-range-preselection-default-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));display:inline-flex;justify-self:start}:host .action{--mds-button-background:var(--mds-date-range-preselection-background);--mds-button-border-color-rgb:var(--mds-date-range-preselection-border);--mds-button-color:var(--mds-date-range-preselection-color)}:host .action:hover{--mds-date-range-preselection-background:var(--mds-date-range-preselection-hover-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));--mds-date-range-preselection-border:var(--mds-date-range-preselection-hover-border,var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-date-range-preselection-color:var(--mds-date-range-preselection-hover-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))))}:host([selected]) .action{--mds-date-range-preselection-background:var(--mds-date-range-preselection-selected-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,0 73 211))));--mds-date-range-preselection-border:var(--mds-date-range-preselection-selected-border,var(--magma-accent-emphasis-hover,var(--variant-primary-03,0 73 211)));--mds-date-range-preselection-color:var(--mds-date-range-preselection-selected-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));pointer-events:none}"}},[257,"mds-input-date-range-preselection",{selected:[1540],start:[513],end:[513]}]),i=c,l=function(){"undefined"!=typeof customElements&&["mds-input-date-range-preselection","mds-button","mds-icon","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-input-date-range-preselection":customElements.get(s(e))||customElements.define(s(e),c);break;case"mds-button":customElements.get(s(e))||o();break;case"mds-icon":customElements.get(s(e))||n();break;case"mds-spinner":customElements.get(s(e))||d();break;case"mds-text":customElements.get(s(e))||m()}}))};export{i as MdsInputDateRangePreselection,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as a,d as e,h as i,c as s,t as n}from"./p-g2_CekDc.js";import{s as r}from"./p-DwKxtKwS.js";import{s as o}from"./p-wI0alRSO.js";import{m as d}from"./p-BVQMG7KJ.js";import{D as l,d as h}from"./p-CUT9aFzz.js";import{c}from"./p-ChV9xqsO.js";import{L as m}from"./p-BmlDGlcB.js";import{p}from"./p-AWCYh8Xe.js";import{d as u}from"./p-Bg11_7lt.js";import{d as g}from"./p-VoGfNJRY.js";import{d as v}from"./p-C0m6B_kt.js";import{d as f}from"./p-oHBGZ2Av.js";import{d as b}from"./p-D7C-gjL6.js";import{d as w}from"./p-G8GFHw3L.js";import{d as y}from"./p-BFZN4zJ9.js";import{d as x}from"./p-aZlZ1XB9.js";var k={end:"Λήξη",endDate:"Ημερομηνία λήξης",endValue:"{{{end}}}: {{{date}}}",from:"Από",openCalendar:"Άνοιγμα ημερολογίου",pickDate:"Επιλέξτε ημερομηνία",start:"Έναρξη",startDate:"Ημερομηνία έναρξης",to:"έως"},D={end:"End",endDate:"End date",endValue:"{{{end}}}: {{{date}}}",from:"From",openCalendar:"Open calendar",pickDate:"Pick a date",start:"Start",startDate:"Start date",to:"to"},C={end:"Fin",endDate:"Fecha de fin",endValue:"{{{end}}}: {{{date}}}",from:"De",openCalendar:"Abrir el calendario",pickDate:"Elige una fecha",start:"Inicio",startDate:"Fecha de inicio",to:"a"},z={end:"Fine",endDate:"Data di fine",endValue:"{{{end}}}: {{{date}}}",from:"Dal",openCalendar:"Apri il calendario",pickDate:"Scegli una data",start:"Inizio",startDate:"Data di inizio",to:"al"};const E=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.valueChanged=e(this,"mdsInputDateRangeValueChange",7),this.internals=this.attachInternals(),this.calendarKey=0,this.internalStartDate="",this.internalEndDate="",this.visibleCalendarDate="",this.hasPreselection=!1,this.activeEnd="start",this.formDisabled=!1,this.t=new m({el:k,en:D,es:C,it:z}),this.startDate="",this.endDate="",this.min=null,this.max=null,this.delay=500,this.size="lg",this.hideToday=!1,this.dualCalendar=!1,this.disabled=!1,this.lastEmittedStartDate=null,this.lastEmittedEndDate=null,this.initialStartDate="",this.initialEndDate="",this.hoveredCalendarDate=null,this.syncingInputSlots=new Set,this.handleFocusOut=t=>{if(!this.host.contains(t.relatedTarget)){const t=l.fromISO(this.internalStartDate).isValid,a=l.fromISO(this.internalEndDate).isValid;t&&a&&(this.validateDateRange(),this.syncFormValue(),this.checkPreselections(),this.emitValueChanged())}},this.handleFocusIn=t=>{const a=this.endOfField(t.target);null!==a&&(this.activeEnd=a)},this.focusInput=t=>{t.focusInput()},this.handleHostClick=t=>{const a=this.endOfField(t.target);null!==a&&(this.activeEnd=a),t.target!==this.host||t.composedPath().includes(this.dropdownRef)||this.focusStartDateInput(t)},this.focusStartDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.activeEnd="start",this.focusInput(this.host.querySelector('mds-input-date[slot="start"]'))},this.focusEndDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.activeEnd="end",this.focusInput(this.host.querySelector('mds-input-date[slot="end"]'))},this.nameSlottedFields=()=>{[["start",this.t.get("startDate")],["end",this.t.get("endDate")]].forEach((([t,a])=>{var e;const i=this.host.querySelector(`[slot="${t}"]`);null!==i&&r(i,"aria-label",""!==(null!==(e=this.accessibleName)&&void 0!==e?e:"")?`${this.accessibleName}, ${a}`:a)}))},this.isDisabled=()=>!!this.disabled||this.formDisabled,this.handleCalendarHover=t=>{if(""===this.internalStartDate||""!==this.internalEndDate)return void this.clearHoverPreview();const a=t.detail.hoverDate;this.hoveredCalendarDate!==a&&(this.hoveredCalendarDate=a,this.syncCalendarsHoverAttributes())},this.handleCalendarChange=t=>{const a="end"===this.effectiveActiveEnd();this.clearHoverPreview(),this.internalStartDate=t.detail.startDate,this.updateInputValue("start",this.internalStartDate),void 0!==t.detail.endDate&&""!==t.detail.endDate?(this.internalEndDate=t.detail.endDate,this.updateInputValue("end",this.internalEndDate)):(this.internalEndDate="",this.updateInputValue("end",this.internalEndDate)),this.activeEnd="end",this.syncFormValue(),""!==this.internalStartDate&&""!==this.internalEndDate&&(this.emitValueChanged(),a&&this.closeDropdownAfterSelection())},this.handleEndTabChange=t=>{t.stopPropagation(),"start"!==t.detail.value&&"end"!==t.detail.value||(this.activeEnd=t.detail.value)},this.keepPanelOpen=t=>{t.stopPropagation()},this.handleCalendarNavigate=t=>{if(!this.dualCalendar)return;const a=this.getCalendars().indexOf(t.target),e=l.fromISO(t.detail.currentDate);e.isValid&&(this.visibleCalendarDate=e.minus({months:1===a?1:0}).startOf("month").toISODate())},this.handleCalendarPreselect=()=>{this.checkPreselections()},this.handleOpenCalendarClick=()=>{this.calendarKey+=1}}getCalendars(){var t,a;return Array.from(null!==(a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelectorAll("mds-calendar"))&&void 0!==a?a:[])}resolveVisibleCalendarDate(t,a){var e;return(null!==(e=[t,a].map((t=>l.fromISO(null!=t?t:""))).filter((t=>t.isValid))[0])&&void 0!==e?e:l.now()).startOf("month").toISODate()}getCalendarViewDate(t=0){const a=l.fromISO(this.visibleCalendarDate),e=l.fromISO(this.internalStartDate);let i=l.now();return a.isValid?i=a:e.isValid&&(i=e),i.startOf("month").plus({months:t}).toISODate()}setVisibleCalendarDate(t){const a=l.fromISO(t);a.isValid&&(this.visibleCalendarDate=a.startOf("month").toISODate())}closeDropdownAfterSelection(){if(0===this.delay)return;const{dropdownRef:t}=this;t&&setTimeout((()=>{t.visible=!1}),this.delay)}firstMissingEnd(){return l.fromISO(this.internalStartDate).isValid&&!l.fromISO(this.internalEndDate).isValid?"end":"start"}effectiveActiveEnd(){return l.fromISO(this.internalStartDate).isValid?this.activeEnd:"start"}syncCalendarsHoverAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{null!==this.hoveredCalendarDate&&""!==this.hoveredCalendarDate?t.setAttribute("hover-date",this.hoveredCalendarDate):t.removeAttribute("hover-date")}))}clearHoverPreview(){null!==this.hoveredCalendarDate&&(this.hoveredCalendarDate=null,this.syncCalendarsHoverAttributes())}isWithinRange(t){var a,e;const i=l.fromISO(null!==(a=this.min)&&void 0!==a?a:""),s=l.fromISO(null!==(e=this.max)&&void 0!==e?e:"");return!(i.isValid&&t<i||s.isValid&&t>s)}getEmittableDateRangeDetail(){const t=l.fromISO(this.internalStartDate),a=l.fromISO(this.internalEndDate);return t.isValid&&a.isValid&&this.isWithinRange(t)&&this.isWithinRange(a)?{startDate:this.internalStartDate,endDate:this.internalEndDate}:null}emitValueChanged(){const t=this.getEmittableDateRangeDetail();return!(!t||t.startDate===this.lastEmittedStartDate&&t.endDate===this.lastEmittedEndDate||(this.valueChanged.emit(t),this.lastEmittedStartDate=t.startDate,this.lastEmittedEndDate=t.endDate,0))}handleStartDateChange(t){this.syncExternalDate("start",t)}handleEndDateChange(t){this.syncExternalDate("end",t)}handleRangeChange(){this.forwardRange(!0)}handleDisabledChange(){this.forwardDisabled(!0)}forwardRange(t){["start","end"].forEach((a=>{var e,i;const s=this.slottedField(a);null!=s&&((t||""!==(null!==(e=this.min)&&void 0!==e?e:""))&&(s.min=this.min),(t||""!==(null!==(i=this.max)&&void 0!==i?i:""))&&(s.max=this.max))}))}forwardDisabled(t){["start","end"].forEach((a=>{const e=this.slottedField(a);null!=e&&(t||this.disabled)&&(e.disabled=!!this.disabled)}))}slottedField(t){var a;const e=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(`slot[name="${t}"]`);return null==e?void 0:e.assignedElements()[0]}componentWillLoad(){var t,a;if(this.internalStartDate=null!==(t=this.startDate)&&void 0!==t?t:"",this.internalEndDate=null!==(a=this.endDate)&&void 0!==a?a:"",this.initialStartDate=this.internalStartDate,this.initialEndDate=this.internalEndDate,this.activeEnd=this.firstMissingEnd(),this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.internalStartDate,this.internalEndDate),null!==this.min&&""!==this.min&&null!==this.max&&""!==this.max){const t=l.fromISO(this.min);l.fromISO(this.max)<t&&(this.max=this.min)}this.syncFormValue()}disconnectedCallback(){var t;this.host.removeEventListener("focusin",this.handleFocusIn),this.host.removeEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("mdsCalendarHover",this.handleCalendarHover)}async preselect(t){null==this.togglePreselection&&(this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))),this.togglePreselection.forEach((t=>{t.selected=!1})),t.caller.selected=!0,this.clearHoverPreview(),l.fromISO(t.start).isValid&&(this.internalStartDate=t.start,this.setVisibleCalendarDate(this.internalStartDate),this.updateInputValue("start",this.internalStartDate)),void 0!==t.end?l.fromISO(t.end).isValid&&(this.internalEndDate=t.end):this.internalEndDate=t.start,this.validateDateRange(),this.updateInputValue("end",this.internalEndDate),this.syncFormValue();const a=this.getCalendars();return 0!==a.length&&(await Promise.all(a.map(((t,a)=>t.updateCurrentDate(this.getCalendarViewDate(a))))),this.closeDropdownAfterSelection()),this.emitValueChanged(),Promise.resolve()}endOfField(t){var a;const e=null===(a=null==t?void 0:t.closest)||void 0===a?void 0:a.call(t,'[slot="start"], [slot="end"]');return null==e||e.parentElement!==this.host?null:e.getAttribute("slot")}componentDidLoad(){var t;this.nameSlottedFields(),this.forwardRange(!1),this.forwardDisabled(!1),this.updateInputListeners(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue(),this.host.addEventListener("focusin",this.handleFocusIn),this.host.addEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("mdsCalendarHover",this.handleCalendarHover)}formDisabledCallback(t){this.formDisabled=t,t&&this.dropdownRef&&(this.dropdownRef.visible=!1)}formResetCallback(){this.clearHoverPreview(),this.internalStartDate=this.initialStartDate,this.internalEndDate=this.initialEndDate,this.activeEnd=this.firstMissingEnd(),this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.initialStartDate,this.initialEndDate),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}syncExternalDate(t,a){const e=null!=a?a:"";if(this.clearHoverPreview(),"start"===t){if(e===this.internalStartDate)return;this.internalStartDate=e,this.setVisibleCalendarDate(this.internalStartDate)}else{if(e===this.internalEndDate)return;this.internalEndDate=e}this.validateDateRange(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}updateInputValue(t,a){const e=this.slottedField(t);null!=e&&(this.syncingInputSlots.add(t),e.setValue(a).finally((()=>{requestAnimationFrame((()=>{this.syncingInputSlots.delete(t)}))})))}updateInputListeners(){var t,a;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="start"]'),i=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector('slot[name="end"]');this.hasPreselection=null!==this.host.querySelector("mds-input-date-range-preselection");const s=null==e?void 0:e.assignedElements()[0];null!=s&&s.addEventListener("mdsInputDateSelect",this.createFocusoutListener("start"));const n=null==i?void 0:i.assignedElements()[0];null!=n&&n.addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}createFocusoutListener(t){return a=>{if(this.syncingInputSlots.has(t))return;const e=a;this.clearHoverPreview(),"start"===t?(this.internalStartDate=e.detail,this.setVisibleCalendarDate(this.internalStartDate)):this.internalEndDate=e.detail,this.syncFormValue()}}validateDateRange(){if(""!==this.internalStartDate&&""!==this.internalEndDate){const t=l.fromISO(this.internalStartDate);l.fromISO(this.internalEndDate)<t&&(this.internalEndDate=this.internalStartDate,this.updateInputValue("end",this.internalEndDate))}}checkPreselections(){const t=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));null!=t&&t.forEach((t=>{t.selected=!!(t.start===this.internalStartDate&&t.end===this.internalEndDate||t.start===this.internalStartDate&&this.internalStartDate===this.internalEndDate&&void 0===t.end)}))}endVoice(t){const a=l.fromISO("start"===t?this.internalStartDate:this.internalEndDate);return this.t.get("endValue",{end:this.t.get(t),date:a.isValid?a.setLocale(p.state.language).toLocaleString(l.DATE_MED):this.t.get("pickDate")})}renderEnds(){const t=this.effectiveActiveEnd();return i("mds-tab",{class:"ends",fill:!0,onMdsTabChange:this.handleEndTabChange,onClick:this.keepPanelOpen},i("mds-tab-item",{class:"end-start",type:"button",value:"start",selected:"start"===t,label:this.endVoice("start")}),i("mds-tab-item",{class:"end-end",type:"button",value:"end",selected:"end"===t,disabled:!l.fromISO(this.internalStartDate).isValid,label:this.endVoice("end")}))}renderCalendarPreselectionPanel(){return this.hasPreselection?i("div",{class:"calendar-preselection-panel"},i("div",{class:c("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},i("slot",{name:"calendar-preselection"}))):null}renderSingleCalendar(){return i("div",{class:"calendar-single"},this.renderCalendarPreselectionPanel(),i("mds-calendar",Object.assign({key:this.calendarKey,hideToday:this.hideToday,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,activeEnd:this.effectiveActiveEnd(),startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}renderDualCalendars(){return i("div",{class:"calendars"},this.renderCalendarPreselectionPanel(),i("mds-calendar",Object.assign({key:this.calendarKey+"-start",hideToday:this.hideToday,hideNextButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,activeEnd:this.effectiveActiveEnd(),startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})),i("mds-calendar",Object.assign({key:this.calendarKey+"-end",hideToday:this.hideToday,hidePreviousButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(1),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,activeEnd:this.effectiveActiveEnd(),startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}render(){return i(s,{key:"e837eebf07fca56ee2fb6ef1d155ddd1c8c2d1f9",onClick:this.handleHostClick,"pref-animation":p.state.animation,"pref-contrast":p.state.contrast,"pref-mode":p.state.mode,"pref-theme-scheme":p.state["theme-scheme"]},i("div",{key:"0aa6d5946cf44ee9ba03523ad946149a24c4acea",class:"inputs"},i("div",{key:"bfcaa2a6c81831a09459d352c788ecb6385968c6",class:"input-element"},i("mds-text",{key:"148fde235b25b5f6b0adf19bee4eb88dcc45df2e",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),i("div",{key:"2b04aa7b277654be0f9d43451fecbeb158a0d34a",class:"input-wrapper"},i("slot",{key:"b0067733ead7e52ec3a0abd6d785eb80f8d517ed",name:"start"}))),i("div",{key:"1434c7f673be6d5bf78c59f43157786da801921f",class:"input-element"},i("mds-text",{key:"b6a092d9e2e57e9659efae5d91c6e010a11e76b9",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),i("div",{key:"ad9ec1c719a723e9f5f6b41d5dfd34388316bf08",class:"input-wrapper"},i("slot",{key:"d8d0649079eadc144157d254692368a0786deb61",name:"end"})))),i("div",{key:"9cb21a30a4736202be10310e05d8ff35ec3396d7",class:"action-open-calendar-wrapper"},i("mds-button",{key:"357574ca26a42634e4448491df401f6f8b7b6d04","aria-label":this.t.get("openCalendar"),class:"action-open-calendar",size:"sm"===this.size?"sm":void 0,disabled:this.isDisabled(),variant:"dark",tone:"text",icon:d,id:"calendar-dropdown",onClick:this.handleOpenCalendarClick})),i("mds-dropdown",{key:"354a80f09e9156056cf10814ea2b8cbdf3d8fc4a",ref:t=>this.dropdownRef=t,target:"#calendar-dropdown","disable-auto-placement":!0,placement:"bottom-end",role:"group"},i("div",{key:"b47a36f0ee921086a6c0b0c6fc8233adb2f949d4",class:"panel"},this.renderEnds(),this.dualCalendar?this.renderDualCalendars():this.renderSingleCalendar())))}syncFormValue(){var t,a,e,i;const s=null!==(a=null===(t=this.internalStartDate)||void 0===t?void 0:t.trim())&&void 0!==a?a:"",n=null!==(i=null===(e=this.internalEndDate)||void 0===e?void 0:e.trim())&&void 0!==i?i:"";o(this.internals,""!==s||""!==n?JSON.stringify({startDate:s,endDate:n}):null)}static get formAssociated(){return!0}get host(){return this}static get watchers(){return{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}],min:[{handleRangeChange:0}],max:[{handleRangeChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar,mds-dropdown,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--private-input-date-range-height:calc(var(--spacing,.0025rem)*1200);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*400);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*1200);--mds-input-date-range-background:rgb(var(--magma-field-fill,var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-input-date-range-calendar-width:calc(var(--spacing,.0025rem)*8800);--mds-input-date-range-fields-firefox-justify-content:start;--mds-input-date-range-fields-gap:0 calc(var(--spacing,.0025rem)*200);--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-input-date-range-ring:0 0 0 1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1);--mds-input-date-range-shadow:0 1px calc(var(--spacing,.0025rem)*75) 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 1px calc(var(--spacing,.0025rem)*50) 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);--mds-input-date-range-transition-duration:var(--duration-300,.3s);--private-input-date-range-transition-duration:var(--mds-input-date-range-transition-duration);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:min(var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)),var(--magma-corner-cap,.5) * var(--private-input-date-range-height));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));corner-shape:var(--magma-corner-shape,squircle);container-type:inline-size;cursor:text;display:flex;gap:calc(var(--spacing,.0025rem)*200);overflow:visible;position:relative;--mds-input-date-range-icon-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-date-range-variant-color-rgb:0 0 0}:host:where(input){text-box:normal}.date-preselection{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.inputs{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-hack,.875rem);font-weight:var(--tw-font-weight,var(--text-size-code-hack--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-hack--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--mds-input-date-range-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:inherit;box-shadow:var(--mds-input-date-range-ring),var(--mds-input-date-range-shadow);box-sizing:border-box;color:inherit;corner-shape:inherit;align-items:center;border:0;display:inline-flex;flex-wrap:wrap;gap:var(--mds-input-date-range-fields-gap,0 calc(var(--spacing,.0025rem)*200));margin:0;min-height:var(--private-input-date-range-height);overflow:hidden;padding-left:var(--private-input-date-range-padding-inline);padding-right:var(--private-input-date-range-calendar-area);text-overflow:ellipsis;transition-duration:var(--private-input-date-range-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:100%}.inputs:where(input){text-box:normal}.input-element{align-items:baseline;display:inline-flex}:host(:focus-within) .inputs{--tw-outline-style:none;outline-style:none;transition-duration:var(--default-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,rotate,scale,transform,translate,width;transition-timing-function:var(--default-transition-timing-function);--mds-input-date-range-ring:0 0 0 calc(var(--spacing,.0025rem)*75) rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/1);--mds-input-date-range-shadow:0 calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*150) calc(var(--spacing,.0025rem)*75) rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 calc(var(--spacing,.0025rem)*50) calc(var(--spacing,.0025rem)*100) -1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);transition-duration:var(--duration-300,.3s);transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input-wrapper{display:flex;flex-shrink:0}:host ::slotted(mds-input-date){color:inherit}.date-label{margin-left:calc(var(--spacing,.0025rem)*50);margin-right:calc(var(--spacing,.0025rem)*50);min-width:min-content;white-space:nowrap}.date-label:first-child{margin-left:0}.panel{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.ends mds-tab-item{flex:auto;min-width:0}.calendars{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}.calendar-preselection-panel{align-content:start;background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-sizing:border-box;display:grid;min-inline-size:max-content;padding:calc(var(--spacing,.0025rem)*400)}.calendar-single{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}:is(.calendar-single,.calendars) mds-calendar{flex:0 0 var(--mds-input-date-range-calendar-width,calc(var(--spacing,.0025rem)*8800));inline-size:var(--mds-input-date-range-calendar-width,calc(var(--spacing,.0025rem)*8800));max-inline-size:var(--mds-input-date-range-calendar-width,calc(var(--spacing,.0025rem)*8800));min-inline-size:var(--mds-input-date-range-calendar-width,calc(var(--spacing,.0025rem)*8800))}.action-open-calendar-wrapper{align-items:center;aspect-ratio:1;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0}.action-open-calendar{--mds-button-color:var(--mds-input-date-range-icon-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));align-self:center}mds-dropdown{padding:0}:host(:disabled:not([disabled=false])),:host([disabled]:not([disabled=false])){color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));cursor:default}:host(:disabled:not([disabled=false])) .inputs,:host([disabled]:not([disabled=false])) .inputs{background-color:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([size=md]){--private-input-date-range-height:calc(var(--spacing,.0025rem)*900);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*300);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*1000)}:host([size=sm]){--private-input-date-range-height:calc(var(--spacing,.0025rem)*700);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*200);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*800)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-date-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark]){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark])) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([pref-contrast=more]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}@supports ((-moz-appearance:none)){.inputs{justify-content:var(--mds-input-date-range-fields-firefox-justify-content,start)}}:host(:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-input-date-range-variant-color-rgb:var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))}:host([variant=ai]){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-input-tip-background:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=ai]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-input-date-range-variant-color-rgb:var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245))}:host([variant=info]){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=info]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=success]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=warning]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=error]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}@media (forced-colors:active){:host(:focus-within) .inputs{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-date-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode]):not([pref-theme-scheme=light])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]):not([pref-theme-scheme=light]))) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}}'}},[321,"mds-input-date-range",{accessibleName:[1,"aria-label"],startDate:[513,"start-date"],endDate:[513,"end-date"],min:[513],max:[513],delay:[514],size:[513],hideToday:[516,"hide-today"],dualCalendar:[516,"dual-calendar"],name:[513],disabled:[516],calendarKey:[32],internalStartDate:[32],internalEndDate:[32],visibleCalendarDate:[32],dropdownRef:[32],hasPreselection:[32],activeEnd:[32],formDisabled:[32],preselect:[64]},void 0,{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}],min:[{handleRangeChange:0}],max:[{handleRangeChange:0}],disabled:[{handleDisabledChange:0}]}]),j=E,S=function(){"undefined"!=typeof customElements&&["mds-input-date-range","mds-button","mds-calendar","mds-calendar-cell","mds-dropdown","mds-icon","mds-spinner","mds-tab","mds-tab-item","mds-text"].forEach((t=>{switch(t){case"mds-input-date-range":customElements.get(n(t))||customElements.define(n(t),E);break;case"mds-button":customElements.get(n(t))||u();break;case"mds-calendar":customElements.get(n(t))||h();break;case"mds-calendar-cell":customElements.get(n(t))||g();break;case"mds-dropdown":customElements.get(n(t))||v();break;case"mds-icon":customElements.get(n(t))||f();break;case"mds-spinner":customElements.get(n(t))||b();break;case"mds-tab":customElements.get(n(t))||w();break;case"mds-tab-item":customElements.get(n(t))||y();break;case"mds-text":customElements.get(n(t))||x()}}))};export{j as MdsInputDateRange,S as defineCustomElement}
|
|
1
|
+
import{p as t,H as a,d as e,h as i,c as s,t as n}from"./p-ChCkQpXr.js";import{s as r}from"./p-DwKxtKwS.js";import{s as o}from"./p-wI0alRSO.js";import{m as d}from"./p-BVQMG7KJ.js";import{D as h,d as l}from"./p-BiOKp8qm.js";import{c}from"./p-ChV9xqsO.js";import{L as m}from"./p-B3t-yAT6.js";import{p}from"./p-BQJgPeCf.js";import{d as u}from"./p-BPnc1LgR.js";import{d as g}from"./p-DXksxnFe.js";import{d as v}from"./p-DnyQyLeI.js";import{d as f}from"./p-CbyfhFKK.js";import{d as b}from"./p-BwGJqBgv.js";import{d as w}from"./p-B7AEyQbN.js";import{d as y}from"./p-BZ0wEKOS.js";import{d as x}from"./p-tI3q9MMi.js";var k={end:"Λήξη",endDate:"Ημερομηνία λήξης",endValue:"{{end}}: {{date}}",from:"Από",openCalendar:"Άνοιγμα ημερολογίου",pickDate:"Επιλέξτε ημερομηνία",start:"Έναρξη",startDate:"Ημερομηνία έναρξης",to:"έως"},D={end:"End",endDate:"End date",endValue:"{{end}}: {{date}}",from:"From",openCalendar:"Open calendar",pickDate:"Pick a date",start:"Start",startDate:"Start date",to:"to"},C={end:"Fin",endDate:"Fecha de fin",endValue:"{{end}}: {{date}}",from:"De",openCalendar:"Abrir el calendario",pickDate:"Elige una fecha",start:"Inicio",startDate:"Fecha de inicio",to:"a"},E={end:"Fine",endDate:"Data di fine",endValue:"{{end}}: {{date}}",from:"Dal",openCalendar:"Apri il calendario",pickDate:"Scegli una data",start:"Inizio",startDate:"Data di inizio",to:"al"};const z=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.valueChanged=e(this,"mdsInputDateRangeValueChange",7),this.internals=this.attachInternals(),this.calendarKey=0,this.internalStartDate="",this.internalEndDate="",this.visibleCalendarDate="",this.hasPreselection=!1,this.activeEnd="start",this.formDisabled=!1,this.t=new m({el:k,en:D,es:C,it:E}),this.startDate="",this.endDate="",this.min=null,this.max=null,this.delay=500,this.size="lg",this.hideToday=!1,this.dualCalendar=!1,this.disabled=!1,this.lastEmittedStartDate=null,this.lastEmittedEndDate=null,this.initialStartDate="",this.initialEndDate="",this.hoveredCalendarDate=null,this.syncingInputSlots=new Set,this.handleFocusOut=t=>{if(!this.host.contains(t.relatedTarget)){const t=h.fromISO(this.internalStartDate).isValid,a=h.fromISO(this.internalEndDate).isValid;t&&a&&(this.validateDateRange(),this.syncFormValue(),this.checkPreselections(),this.emitValueChanged())}},this.handleFocusIn=t=>{const a=this.endOfField(t.target);null!==a&&(this.activeEnd=a)},this.focusInput=t=>{t.focusInput()},this.handleHostClick=t=>{const a=this.endOfField(t.target);null!==a&&(this.activeEnd=a),t.target!==this.host||t.composedPath().includes(this.dropdownRef)||this.focusStartDateInput(t)},this.focusStartDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.activeEnd="start",this.focusInput(this.host.querySelector('mds-input-date[slot="start"]'))},this.focusEndDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.activeEnd="end",this.focusInput(this.host.querySelector('mds-input-date[slot="end"]'))},this.nameSlottedFields=()=>{[["start",this.t.get("startDate")],["end",this.t.get("endDate")]].forEach((([t,a])=>{var e;const i=this.host.querySelector(`[slot="${t}"]`);null!==i&&r(i,"aria-label",""!==(null!==(e=this.accessibleName)&&void 0!==e?e:"")?`${this.accessibleName}, ${a}`:a)}))},this.isDisabled=()=>!!this.disabled||this.formDisabled,this.handleCalendarHover=t=>{if(""===this.internalStartDate||""!==this.internalEndDate)return void this.clearHoverPreview();const a=t.detail.hoverDate;this.hoveredCalendarDate!==a&&(this.hoveredCalendarDate=a,this.syncCalendarsHoverAttributes())},this.handleCalendarChange=t=>{const a="end"===this.effectiveActiveEnd();this.clearHoverPreview(),this.internalStartDate=t.detail.startDate,this.updateInputValue("start",this.internalStartDate),void 0!==t.detail.endDate&&""!==t.detail.endDate?(this.internalEndDate=t.detail.endDate,this.updateInputValue("end",this.internalEndDate)):(this.internalEndDate="",this.updateInputValue("end",this.internalEndDate)),this.activeEnd="end",this.syncFormValue(),""!==this.internalStartDate&&""!==this.internalEndDate&&(this.emitValueChanged(),a&&this.closeDropdownAfterSelection())},this.handleEndTabChange=t=>{t.stopPropagation(),"start"!==t.detail.value&&"end"!==t.detail.value||(this.activeEnd=t.detail.value)},this.keepPanelOpen=t=>{t.stopPropagation()},this.handleCalendarNavigate=t=>{if(!this.dualCalendar)return;const a=this.getCalendars().indexOf(t.target),e=h.fromISO(t.detail.currentDate);e.isValid&&(this.visibleCalendarDate=e.minus({months:1===a?1:0}).startOf("month").toISODate())},this.handleCalendarPreselect=()=>{this.checkPreselections()},this.handleOpenCalendarClick=()=>{this.calendarKey+=1}}getCalendars(){var t,a;return Array.from(null!==(a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelectorAll("mds-calendar"))&&void 0!==a?a:[])}resolveVisibleCalendarDate(t,a){var e;return(null!==(e=[t,a].map((t=>h.fromISO(null!=t?t:""))).filter((t=>t.isValid))[0])&&void 0!==e?e:h.now()).startOf("month").toISODate()}getCalendarViewDate(t=0){const a=h.fromISO(this.visibleCalendarDate),e=h.fromISO(this.internalStartDate);let i=h.now();return a.isValid?i=a:e.isValid&&(i=e),i.startOf("month").plus({months:t}).toISODate()}setVisibleCalendarDate(t){const a=h.fromISO(t);a.isValid&&(this.visibleCalendarDate=a.startOf("month").toISODate())}closeDropdownAfterSelection(){if(0===this.delay)return;const{dropdownRef:t}=this;t&&setTimeout((()=>{t.visible=!1}),this.delay)}firstMissingEnd(){return h.fromISO(this.internalStartDate).isValid&&!h.fromISO(this.internalEndDate).isValid?"end":"start"}effectiveActiveEnd(){return h.fromISO(this.internalStartDate).isValid?this.activeEnd:"start"}syncCalendarsHoverAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{null!==this.hoveredCalendarDate&&""!==this.hoveredCalendarDate?t.setAttribute("hover-date",this.hoveredCalendarDate):t.removeAttribute("hover-date")}))}clearHoverPreview(){null!==this.hoveredCalendarDate&&(this.hoveredCalendarDate=null,this.syncCalendarsHoverAttributes())}isWithinRange(t){var a,e;const i=h.fromISO(null!==(a=this.min)&&void 0!==a?a:""),s=h.fromISO(null!==(e=this.max)&&void 0!==e?e:"");return!(i.isValid&&t<i||s.isValid&&t>s)}getEmittableDateRangeDetail(){const t=h.fromISO(this.internalStartDate),a=h.fromISO(this.internalEndDate);return t.isValid&&a.isValid&&this.isWithinRange(t)&&this.isWithinRange(a)?{startDate:this.internalStartDate,endDate:this.internalEndDate}:null}emitValueChanged(){const t=this.getEmittableDateRangeDetail();return!(!t||t.startDate===this.lastEmittedStartDate&&t.endDate===this.lastEmittedEndDate||(this.valueChanged.emit(t),this.lastEmittedStartDate=t.startDate,this.lastEmittedEndDate=t.endDate,0))}handleStartDateChange(t){this.syncExternalDate("start",t)}handleEndDateChange(t){this.syncExternalDate("end",t)}handleRangeChange(){this.forwardRange(!0)}handleDisabledChange(){this.forwardDisabled(!0)}forwardRange(t){["start","end"].forEach((a=>{var e,i;const s=this.slottedField(a);null!=s&&((t||""!==(null!==(e=this.min)&&void 0!==e?e:""))&&(s.min=this.min),(t||""!==(null!==(i=this.max)&&void 0!==i?i:""))&&(s.max=this.max))}))}forwardDisabled(t){["start","end"].forEach((a=>{const e=this.slottedField(a);null!=e&&(t||this.disabled)&&(e.disabled=!!this.disabled)}))}slottedField(t){var a;const e=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(`slot[name="${t}"]`);return null==e?void 0:e.assignedElements()[0]}componentWillLoad(){var t,a;if(this.internalStartDate=null!==(t=this.startDate)&&void 0!==t?t:"",this.internalEndDate=null!==(a=this.endDate)&&void 0!==a?a:"",this.initialStartDate=this.internalStartDate,this.initialEndDate=this.internalEndDate,this.activeEnd=this.firstMissingEnd(),this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.internalStartDate,this.internalEndDate),null!==this.min&&""!==this.min&&null!==this.max&&""!==this.max){const t=h.fromISO(this.min);h.fromISO(this.max)<t&&(this.max=this.min)}this.syncFormValue()}disconnectedCallback(){var t;this.host.removeEventListener("focusin",this.handleFocusIn),this.host.removeEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("mdsCalendarHover",this.handleCalendarHover)}async preselect(t){null==this.togglePreselection&&(this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))),this.togglePreselection.forEach((t=>{t.selected=!1})),t.caller.selected=!0,this.clearHoverPreview(),h.fromISO(t.start).isValid&&(this.internalStartDate=t.start,this.setVisibleCalendarDate(this.internalStartDate),this.updateInputValue("start",this.internalStartDate)),void 0!==t.end?h.fromISO(t.end).isValid&&(this.internalEndDate=t.end):this.internalEndDate=t.start,this.validateDateRange(),this.updateInputValue("end",this.internalEndDate),this.syncFormValue();const a=this.getCalendars();return 0!==a.length&&(await Promise.all(a.map(((t,a)=>t.updateCurrentDate(this.getCalendarViewDate(a))))),this.closeDropdownAfterSelection()),this.emitValueChanged(),Promise.resolve()}endOfField(t){var a;const e=null===(a=null==t?void 0:t.closest)||void 0===a?void 0:a.call(t,'[slot="start"], [slot="end"]');return null==e||e.parentElement!==this.host?null:e.getAttribute("slot")}componentDidLoad(){var t;this.nameSlottedFields(),this.forwardRange(!1),this.forwardDisabled(!1),this.updateInputListeners(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue(),this.host.addEventListener("focusin",this.handleFocusIn),this.host.addEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("mdsCalendarHover",this.handleCalendarHover)}formDisabledCallback(t){this.formDisabled=t,t&&this.dropdownRef&&(this.dropdownRef.visible=!1)}formResetCallback(){this.clearHoverPreview(),this.internalStartDate=this.initialStartDate,this.internalEndDate=this.initialEndDate,this.activeEnd=this.firstMissingEnd(),this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.initialStartDate,this.initialEndDate),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}syncExternalDate(t,a){const e=null!=a?a:"";if(this.clearHoverPreview(),"start"===t){if(e===this.internalStartDate)return;this.internalStartDate=e,this.setVisibleCalendarDate(this.internalStartDate)}else{if(e===this.internalEndDate)return;this.internalEndDate=e}this.validateDateRange(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}updateInputValue(t,a){const e=this.slottedField(t);null!=e&&(this.syncingInputSlots.add(t),e.setValue(a).finally((()=>{requestAnimationFrame((()=>{this.syncingInputSlots.delete(t)}))})))}updateInputListeners(){var t,a;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="start"]'),i=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector('slot[name="end"]');this.hasPreselection=null!==this.host.querySelector("mds-input-date-range-preselection");const s=null==e?void 0:e.assignedElements()[0];null!=s&&s.addEventListener("mdsInputDateSelect",this.createFocusoutListener("start"));const n=null==i?void 0:i.assignedElements()[0];null!=n&&n.addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}createFocusoutListener(t){return a=>{if(this.syncingInputSlots.has(t))return;const e=a;this.clearHoverPreview(),"start"===t?(this.internalStartDate=e.detail,this.setVisibleCalendarDate(this.internalStartDate)):this.internalEndDate=e.detail,this.syncFormValue()}}validateDateRange(){if(""!==this.internalStartDate&&""!==this.internalEndDate){const t=h.fromISO(this.internalStartDate);h.fromISO(this.internalEndDate)<t&&(this.internalEndDate=this.internalStartDate,this.updateInputValue("end",this.internalEndDate))}}checkPreselections(){const t=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));null!=t&&t.forEach((t=>{t.selected=!!(t.start===this.internalStartDate&&t.end===this.internalEndDate||t.start===this.internalStartDate&&this.internalStartDate===this.internalEndDate&&void 0===t.end)}))}endVoice(t){const a=h.fromISO("start"===t?this.internalStartDate:this.internalEndDate);return this.t.get("endValue",{end:this.t.get(t),date:a.isValid?a.setLocale(p.state.language).toLocaleString(h.DATE_MED):this.t.get("pickDate")})}renderEnds(){const t=this.effectiveActiveEnd();return i("mds-tab",{class:"ends",fill:!0,onMdsTabChange:this.handleEndTabChange,onClick:this.keepPanelOpen},i("mds-tab-item",{class:"end-start",type:"button",value:"start",selected:"start"===t,label:this.endVoice("start")}),i("mds-tab-item",{class:"end-end",type:"button",value:"end",selected:"end"===t,disabled:!h.fromISO(this.internalStartDate).isValid,label:this.endVoice("end")}))}renderCalendarPreselectionPanel(){return this.hasPreselection?i("div",{class:"calendar-preselection-panel"},i("div",{class:c("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},i("slot",{name:"calendar-preselection"}))):null}renderSingleCalendar(){return i("div",{class:"calendar-single"},this.renderCalendarPreselectionPanel(),i("mds-calendar",Object.assign({key:this.calendarKey,hideToday:this.hideToday,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,activeEnd:this.effectiveActiveEnd(),startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}renderDualCalendars(){return i("div",{class:"calendars"},this.renderCalendarPreselectionPanel(),i("mds-calendar",Object.assign({key:this.calendarKey+"-start",hideToday:this.hideToday,hideNextButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,activeEnd:this.effectiveActiveEnd(),startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})),i("mds-calendar",Object.assign({key:this.calendarKey+"-end",hideToday:this.hideToday,hidePreviousButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(1),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,activeEnd:this.effectiveActiveEnd(),startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}render(){return i(s,{key:"e837eebf07fca56ee2fb6ef1d155ddd1c8c2d1f9",onClick:this.handleHostClick,"pref-animation":p.state.animation,"pref-contrast":p.state.contrast,"pref-mode":p.state.mode,"pref-theme-scheme":p.state["theme-scheme"]},i("div",{key:"0aa6d5946cf44ee9ba03523ad946149a24c4acea",class:"inputs"},i("div",{key:"bfcaa2a6c81831a09459d352c788ecb6385968c6",class:"input-element"},i("mds-text",{key:"148fde235b25b5f6b0adf19bee4eb88dcc45df2e",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),i("div",{key:"2b04aa7b277654be0f9d43451fecbeb158a0d34a",class:"input-wrapper"},i("slot",{key:"b0067733ead7e52ec3a0abd6d785eb80f8d517ed",name:"start"}))),i("div",{key:"1434c7f673be6d5bf78c59f43157786da801921f",class:"input-element"},i("mds-text",{key:"b6a092d9e2e57e9659efae5d91c6e010a11e76b9",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),i("div",{key:"ad9ec1c719a723e9f5f6b41d5dfd34388316bf08",class:"input-wrapper"},i("slot",{key:"d8d0649079eadc144157d254692368a0786deb61",name:"end"})))),i("div",{key:"9cb21a30a4736202be10310e05d8ff35ec3396d7",class:"action-open-calendar-wrapper"},i("mds-button",{key:"357574ca26a42634e4448491df401f6f8b7b6d04","aria-label":this.t.get("openCalendar"),class:"action-open-calendar",size:"sm"===this.size?"sm":void 0,disabled:this.isDisabled(),variant:"dark",tone:"text",icon:d,id:"calendar-dropdown",onClick:this.handleOpenCalendarClick})),i("mds-dropdown",{key:"354a80f09e9156056cf10814ea2b8cbdf3d8fc4a",ref:t=>this.dropdownRef=t,target:"#calendar-dropdown","disable-auto-placement":!0,placement:"bottom-end",role:"group"},i("div",{key:"b47a36f0ee921086a6c0b0c6fc8233adb2f949d4",class:"panel"},this.renderEnds(),this.dualCalendar?this.renderDualCalendars():this.renderSingleCalendar())))}syncFormValue(){var t,a,e,i;const s=null!==(a=null===(t=this.internalStartDate)||void 0===t?void 0:t.trim())&&void 0!==a?a:"",n=null!==(i=null===(e=this.internalEndDate)||void 0===e?void 0:e.trim())&&void 0!==i?i:"";o(this.internals,""!==s||""!==n?JSON.stringify({startDate:s,endDate:n}):null)}static get formAssociated(){return!0}get host(){return this}static get watchers(){return{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}],min:[{handleRangeChange:0}],max:[{handleRangeChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar,mds-dropdown,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--private-input-date-range-height:calc(var(--spacing,.0025rem)*1200);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*400);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*1200);--mds-input-date-range-background:rgb(var(--magma-field-fill,var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-input-date-range-calendar-width:calc(var(--spacing,.0025rem)*8800);--mds-input-date-range-fields-firefox-justify-content:start;--mds-input-date-range-fields-gap:0 calc(var(--spacing,.0025rem)*200);--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,0 73 211)));--mds-input-date-range-ring:0 0 0 1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1);--mds-input-date-range-shadow:0 1px calc(var(--spacing,.0025rem)*75) 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 1px calc(var(--spacing,.0025rem)*50) 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);--mds-input-date-range-transition-duration:var(--duration-300,.3s);--private-input-date-range-transition-duration:var(--mds-input-date-range-transition-duration);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:min(var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)),var(--magma-corner-cap,.5) * var(--private-input-date-range-height));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));corner-shape:var(--magma-corner-shape,squircle);container-type:inline-size;cursor:text;display:flex;gap:calc(var(--spacing,.0025rem)*200);overflow:visible;position:relative;--mds-input-date-range-icon-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,11 96 255)));--mds-input-date-range-variant-color-rgb:0 0 0}:host:where(input){text-box:normal}.date-preselection{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.inputs{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-hack,.875rem);font-weight:var(--tw-font-weight,var(--text-size-code-hack--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-hack--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--mds-input-date-range-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:inherit;box-shadow:var(--mds-input-date-range-ring),var(--mds-input-date-range-shadow);box-sizing:border-box;color:inherit;corner-shape:inherit;align-items:center;border:0;display:inline-flex;flex-wrap:wrap;gap:var(--mds-input-date-range-fields-gap,0 calc(var(--spacing,.0025rem)*200));margin:0;min-height:var(--private-input-date-range-height);overflow:hidden;padding-left:var(--private-input-date-range-padding-inline);padding-right:var(--private-input-date-range-calendar-area);text-overflow:ellipsis;transition-duration:var(--private-input-date-range-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:100%}.inputs:where(input){text-box:normal}.input-element{align-items:baseline;display:inline-flex}:host(:focus-within) .inputs{--tw-outline-style:none;outline-style:none;transition-duration:var(--default-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,rotate,scale,transform,translate,width;transition-timing-function:var(--default-transition-timing-function);--mds-input-date-range-ring:0 0 0 calc(var(--spacing,.0025rem)*75) rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/1);--mds-input-date-range-shadow:0 calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*150) calc(var(--spacing,.0025rem)*75) rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 calc(var(--spacing,.0025rem)*50) calc(var(--spacing,.0025rem)*100) -1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);transition-duration:var(--duration-300,.3s);transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input-wrapper{display:flex;flex-shrink:0}:host ::slotted(mds-input-date){color:inherit}.date-label{margin-left:calc(var(--spacing,.0025rem)*50);margin-right:calc(var(--spacing,.0025rem)*50);min-width:min-content;white-space:nowrap}.date-label:first-child{margin-left:0}.panel{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.ends mds-tab-item{flex:auto;min-width:0}.calendars{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}.calendar-preselection-panel{align-content:start;background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-sizing:border-box;display:grid;min-inline-size:max-content;padding:calc(var(--spacing,.0025rem)*400)}.calendar-single{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}:is(.calendar-single,.calendars) mds-calendar{flex:0 0 var(--mds-input-date-range-calendar-width,calc(var(--spacing,.0025rem)*8800));inline-size:var(--mds-input-date-range-calendar-width,calc(var(--spacing,.0025rem)*8800));max-inline-size:var(--mds-input-date-range-calendar-width,calc(var(--spacing,.0025rem)*8800));min-inline-size:var(--mds-input-date-range-calendar-width,calc(var(--spacing,.0025rem)*8800))}.action-open-calendar-wrapper{align-items:center;aspect-ratio:1;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0}.action-open-calendar{--mds-button-color:var(--mds-input-date-range-icon-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,11 96 255))));align-self:center}mds-dropdown{padding:0}:host(:disabled:not([disabled=false])),:host([disabled]:not([disabled=false])){color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));cursor:default}:host(:disabled:not([disabled=false])) .inputs,:host([disabled]:not([disabled=false])) .inputs{background-color:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([size=md]){--private-input-date-range-height:calc(var(--spacing,.0025rem)*900);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*300);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*1000)}:host([size=sm]){--private-input-date-range-height:calc(var(--spacing,.0025rem)*700);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*200);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*800)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-date-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark]){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark])) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([pref-contrast=more]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}@supports ((-moz-appearance:none)){.inputs{justify-content:var(--mds-input-date-range-fields-firefox-justify-content,start)}}:host(:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,0 73 211)));--mds-input-date-range-variant-color-rgb:var(--magma-accent-emphasis,var(--variant-primary-04,11 96 255))}:host([variant=ai]){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,128 78 232)));--mds-input-tip-background:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,105 49 204)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=ai]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,105 49 204)));--mds-input-date-range-variant-color-rgb:var(--magma-accent-ai-emphasis,var(--variant-ai-04,128 78 232))}:host([variant=info]){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=info]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=success]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=warning]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=error]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}@media (forced-colors:active){:host(:focus-within) .inputs{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-date-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode]):not([pref-theme-scheme=light])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]):not([pref-theme-scheme=light]))) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}}'}},[321,"mds-input-date-range",{accessibleName:[1,"aria-label"],startDate:[513,"start-date"],endDate:[513,"end-date"],min:[513],max:[513],delay:[514],size:[513],hideToday:[516,"hide-today"],dualCalendar:[516,"dual-calendar"],name:[513],disabled:[516],calendarKey:[32],internalStartDate:[32],internalEndDate:[32],visibleCalendarDate:[32],dropdownRef:[32],hasPreselection:[32],activeEnd:[32],formDisabled:[32],preselect:[64]},void 0,{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}],min:[{handleRangeChange:0}],max:[{handleRangeChange:0}],disabled:[{handleDisabledChange:0}]}]),j=z,S=function(){"undefined"!=typeof customElements&&["mds-input-date-range","mds-button","mds-calendar","mds-calendar-cell","mds-dropdown","mds-icon","mds-spinner","mds-tab","mds-tab-item","mds-text"].forEach((t=>{switch(t){case"mds-input-date-range":customElements.get(n(t))||customElements.define(n(t),z);break;case"mds-button":customElements.get(n(t))||u();break;case"mds-calendar":customElements.get(n(t))||l();break;case"mds-calendar-cell":customElements.get(n(t))||g();break;case"mds-dropdown":customElements.get(n(t))||v();break;case"mds-icon":customElements.get(n(t))||f();break;case"mds-spinner":customElements.get(n(t))||b();break;case"mds-tab":customElements.get(n(t))||w();break;case"mds-tab-item":customElements.get(n(t))||y();break;case"mds-text":customElements.get(n(t))||x()}}))};export{j as MdsInputDateRange,S as defineCustomElement}
|