@maggioli-design-system/magma 2.5.0 → 2.6.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 +19 -4
- package/CHANGELOG.md +61 -0
- package/LICENSE +21 -0
- package/agents/assets.md +1 -1
- package/agents/color.md +22 -4
- package/agents/components.md +164 -92
- package/agents/conventions.md +24 -7
- package/agents/install.md +7 -0
- package/agents/lint.md +270 -0
- package/agents/mcp.md +103 -0
- package/agents/theming.md +8 -0
- package/dist/cjs/index-BQNHYWJg.js +4 -0
- package/dist/cjs/{index-CWTZb9W2.js → index-Bg68W-da.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-Os4wg65H.js → locale-CaR39iYg.js} +12 -6
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/mds-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 +1 -1
- package/dist/cjs/mds-badge.cjs.entry.js +1 -1
- package/dist/cjs/mds-banner_3.cjs.entry.js +4 -4
- 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 +703 -0
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +6 -6
- package/dist/cjs/mds-calendar_2.cjs.entry.js +7 -7
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +1 -1
- package/dist/cjs/mds-details.cjs.entry.js +1 -1
- package/dist/cjs/mds-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/mds-emoji.cjs.entry.js +2 -2
- package/dist/cjs/mds-entity.cjs.entry.js +1 -1
- package/dist/cjs/mds-file-preview.cjs.entry.js +3 -3
- package/dist/cjs/mds-file.cjs.entry.js +2 -2
- package/dist/cjs/mds-filter-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-filter.cjs.entry.js +2 -2
- package/dist/cjs/mds-header-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +2 -2
- package/dist/cjs/mds-hr.cjs.entry.js +1 -1
- package/dist/cjs/mds-img.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-date.cjs.entry.js +4 -4
- package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-otp.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-range.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-select.cjs.entry.js +9 -5
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +4 -4
- package/dist/cjs/mds-input-upload.cjs.entry.js +6 -6
- package/dist/cjs/mds-input.cjs.entry.js +154 -37
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +3 -3
- package/dist/cjs/mds-keyboard.cjs.entry.js +8 -4
- package/dist/cjs/mds-kpi-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-kpi.cjs.entry.js +1 -1
- package/dist/cjs/mds-label.cjs.entry.js +2 -2
- package/dist/cjs/mds-link.cjs.entry.js +4 -4
- package/dist/cjs/mds-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-list.cjs.entry.js +1 -1
- package/dist/cjs/mds-mention.cjs.entry.js +2 -2
- package/dist/cjs/mds-modal.cjs.entry.js +4 -4
- package/dist/cjs/mds-note.cjs.entry.js +2 -2
- package/dist/cjs/mds-notification.cjs.entry.js +1 -1
- package/dist/cjs/mds-paginator-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-paginator.cjs.entry.js +2 -2
- package/dist/cjs/mds-policy-ai.cjs.entry.js +2 -2
- package/dist/cjs/mds-pref-animation.cjs.entry.js +2 -2
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +2 -2
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +2 -2
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-pref-language.cjs.entry.js +2 -2
- package/dist/cjs/mds-pref-mode.cjs.entry.js +2 -2
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-theme.cjs.entry.js +2 -2
- package/dist/cjs/mds-pref.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-progress_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-push-notification.cjs.entry.js +3 -3
- package/dist/cjs/mds-quote.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu.cjs.entry.js +2 -2
- package/dist/cjs/mds-separator.cjs.entry.js +1 -1
- package/dist/cjs/mds-status-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +7 -5
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab_2.cjs.entry.js +4 -4
- package/dist/cjs/mds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-row.cjs.entry.js +3 -3
- package/dist/cjs/mds-table.cjs.entry.js +2 -2
- package/dist/cjs/mds-text.cjs.entry.js +1 -1
- package/dist/cjs/mds-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/mds-toast.cjs.entry.js +2 -2
- package/dist/cjs/mds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/mds-tree-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-tree.cjs.entry.js +1 -1
- package/dist/cjs/mds-url-view.cjs.entry.js +2 -2
- package/dist/cjs/mds-usage.cjs.entry.js +2 -2
- package/dist/cjs/mds-video-wall.cjs.entry.js +1 -1
- package/dist/cjs/mds-zero.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/common/locale.js +12 -6
- package/dist/collection/components/mds-accordion/AGENTS.md +3 -5
- package/dist/collection/components/mds-accordion/antipattern.md +1 -2
- package/dist/collection/components/mds-accordion/documentation.json +21 -10
- package/dist/collection/components/mds-accordion/mds-accordion.css +3 -3
- package/dist/collection/components/mds-accordion/mds-accordion.js +2 -1
- package/dist/collection/components/mds-accordion/pattern.md +1 -4
- package/dist/collection/components/mds-accordion-item/AGENTS.md +3 -7
- package/dist/collection/components/mds-accordion-item/documentation.json +20 -9
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +1 -1
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +2 -1
- package/dist/collection/components/mds-accordion-item/pattern.md +3 -5
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +3 -5
- package/dist/collection/components/mds-accordion-timer/antipattern.md +5 -3
- package/dist/collection/components/mds-accordion-timer/documentation.json +17 -8
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +1 -1
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +2 -1
- package/dist/collection/components/mds-accordion-timer/pattern.md +6 -6
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +3 -5
- package/dist/collection/components/mds-accordion-timer-item/antipattern.md +1 -2
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +17 -8
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +1 -1
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +2 -1
- package/dist/collection/components/mds-accordion-timer-item/pattern.md +1 -5
- package/dist/collection/components/mds-author/AGENTS.md +1 -1
- package/dist/collection/components/mds-author/documentation.json +5 -1
- package/dist/collection/components/mds-author/mds-author.js +2 -1
- package/dist/collection/components/mds-avatar/AGENTS.md +3 -3
- package/dist/collection/components/mds-avatar/antipattern.md +1 -1
- package/dist/collection/components/mds-avatar/documentation.json +17 -8
- package/dist/collection/components/mds-avatar/mds-avatar.css +3 -3
- package/dist/collection/components/mds-avatar/mds-avatar.js +2 -1
- package/dist/collection/components/mds-avatar/pattern.md +1 -2
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +3 -12
- package/dist/collection/components/mds-avatar-stack/antipattern.md +1 -2
- package/dist/collection/components/mds-avatar-stack/documentation.json +31 -15
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +1 -1
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +2 -1
- package/dist/collection/components/mds-avatar-stack/pattern.md +2 -5
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +3 -6
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +22 -10
- package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.css +2 -2
- package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.js +4 -1
- package/dist/collection/components/mds-avatar-stack-item/pattern.md +4 -5
- package/dist/collection/components/mds-badge/AGENTS.md +3 -3
- package/dist/collection/components/mds-badge/antipattern.md +1 -1
- package/dist/collection/components/mds-badge/documentation.json +17 -8
- package/dist/collection/components/mds-badge/mds-badge.css +3 -3
- package/dist/collection/components/mds-badge/mds-badge.js +2 -1
- package/dist/collection/components/mds-badge/pattern.md +4 -7
- package/dist/collection/components/mds-banner/AGENTS.md +3 -8
- package/dist/collection/components/mds-banner/antipattern.md +1 -2
- package/dist/collection/components/mds-banner/documentation.json +29 -14
- package/dist/collection/components/mds-banner/mds-banner.css +4 -4
- package/dist/collection/components/mds-banner/mds-banner.js +2 -1
- package/dist/collection/components/mds-banner/pattern.md +1 -2
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-benchmark-bar/documentation.json +5 -1
- package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +2 -1
- package/dist/collection/components/mds-bibliography/AGENTS.md +3 -3
- package/dist/collection/components/mds-bibliography/antipattern.md +1 -3
- package/dist/collection/components/mds-bibliography/documentation.json +15 -7
- package/dist/collection/components/mds-bibliography/mds-bibliography.css +1 -1
- package/dist/collection/components/mds-bibliography/mds-bibliography.js +4 -1
- package/dist/collection/components/mds-bibliography/pattern.md +1 -3
- package/dist/collection/components/mds-book/AGENTS.md +79 -0
- package/dist/collection/components/mds-book/antipattern.md +88 -0
- package/dist/collection/components/mds-book/documentation.json +482 -0
- package/dist/collection/components/mds-book/mds-book.css +901 -0
- package/dist/collection/components/mds-book/mds-book.js +731 -0
- package/dist/collection/components/mds-book/meta/dictionary.js +5 -0
- package/dist/collection/components/mds-book/meta/format.js +57 -0
- package/dist/collection/components/mds-book/meta/pose.js +107 -0
- package/dist/collection/components/mds-book/meta/spine.js +61 -0
- package/dist/collection/components/mds-book/meta/types.js +1 -0
- package/dist/collection/components/mds-book/meta/volume.js +23 -0
- package/dist/collection/components/mds-book/pattern.md +111 -0
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +3 -14
- package/dist/collection/components/mds-breadcrumb/antipattern.md +1 -1
- package/dist/collection/components/mds-breadcrumb/documentation.json +28 -14
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +2 -1
- package/dist/collection/components/mds-breadcrumb/pattern.md +6 -6
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +3 -11
- package/dist/collection/components/mds-breadcrumb-item/antipattern.md +3 -3
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +22 -11
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +2 -1
- package/dist/collection/components/mds-breadcrumb-item/pattern.md +12 -14
- package/dist/collection/components/mds-button/AGENTS.md +3 -12
- package/dist/collection/components/mds-button/documentation.json +37 -17
- package/dist/collection/components/mds-button/mds-button.css +5 -5
- package/dist/collection/components/mds-button/mds-button.js +5 -4
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +1 -1
- package/dist/collection/components/mds-button-dropdown/documentation.json +7 -2
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +1 -1
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +2 -1
- package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
- package/dist/collection/components/mds-button-group/documentation.json +5 -1
- package/dist/collection/components/mds-button-group/mds-button-group.js +2 -1
- package/dist/collection/components/mds-calendar/AGENTS.md +3 -6
- package/dist/collection/components/mds-calendar/antipattern.md +1 -1
- package/dist/collection/components/mds-calendar/documentation.json +25 -12
- package/dist/collection/components/mds-calendar/mds-calendar.css +4 -4
- package/dist/collection/components/mds-calendar/mds-calendar.js +6 -5
- package/dist/collection/components/mds-calendar/pattern.md +1 -3
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +3 -35
- package/dist/collection/components/mds-calendar-cell/antipattern.md +1 -2
- package/dist/collection/components/mds-calendar-cell/documentation.json +81 -40
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +2 -2
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +4 -1
- package/dist/collection/components/mds-calendar-cell/pattern.md +4 -5
- package/dist/collection/components/mds-card/AGENTS.md +1 -1
- package/dist/collection/components/mds-card/antipattern.md +2 -2
- package/dist/collection/components/mds-card/documentation.json +13 -6
- package/dist/collection/components/mds-card/mds-card.css +3 -3
- package/dist/collection/components/mds-card/mds-card.js +2 -1
- package/dist/collection/components/mds-card/pattern.md +4 -4
- package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-content/documentation.json +5 -1
- package/dist/collection/components/mds-card-content/mds-card-content.js +2 -1
- package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-footer/documentation.json +5 -1
- package/dist/collection/components/mds-card-footer/mds-card-footer.js +2 -1
- package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-header/documentation.json +5 -1
- package/dist/collection/components/mds-card-header/mds-card-header.js +2 -1
- package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-media/documentation.json +5 -1
- package/dist/collection/components/mds-card-media/mds-card-media.js +2 -1
- package/dist/collection/components/mds-chip/AGENTS.md +3 -10
- package/dist/collection/components/mds-chip/antipattern.md +2 -3
- package/dist/collection/components/mds-chip/documentation.json +35 -17
- package/dist/collection/components/mds-chip/mds-chip.css +4 -4
- package/dist/collection/components/mds-chip/mds-chip.js +4 -1
- package/dist/collection/components/mds-chip/pattern.md +4 -6
- package/dist/collection/components/mds-details/AGENTS.md +3 -7
- package/dist/collection/components/mds-details/antipattern.md +1 -5
- package/dist/collection/components/mds-details/documentation.json +14 -7
- package/dist/collection/components/mds-details/mds-details.js +2 -1
- package/dist/collection/components/mds-details/pattern.md +4 -6
- package/dist/collection/components/mds-dropdown/AGENTS.md +3 -9
- package/dist/collection/components/mds-dropdown/antipattern.md +1 -1
- package/dist/collection/components/mds-dropdown/documentation.json +31 -15
- package/dist/collection/components/mds-dropdown/mds-dropdown.css +4 -4
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +3 -2
- package/dist/collection/components/mds-dropdown/pattern.md +2 -4
- package/dist/collection/components/mds-emoji/AGENTS.md +8 -32
- package/dist/collection/components/mds-emoji/antipattern.md +0 -18
- package/dist/collection/components/mds-emoji/documentation.json +73 -35
- package/dist/collection/components/mds-emoji/mds-emoji.css +8 -5
- package/dist/collection/components/mds-emoji/mds-emoji.js +4 -1
- package/dist/collection/components/mds-emoji/pattern.md +9 -25
- package/dist/collection/components/mds-entity/AGENTS.md +3 -4
- package/dist/collection/components/mds-entity/antipattern.md +10 -3
- package/dist/collection/components/mds-entity/documentation.json +17 -8
- package/dist/collection/components/mds-entity/mds-entity.css +2 -2
- package/dist/collection/components/mds-entity/mds-entity.js +2 -1
- package/dist/collection/components/mds-entity/pattern.md +1 -4
- package/dist/collection/components/mds-file/AGENTS.md +3 -3
- package/dist/collection/components/mds-file/antipattern.md +2 -3
- package/dist/collection/components/mds-file/documentation.json +15 -7
- package/dist/collection/components/mds-file/mds-file.css +1 -1
- package/dist/collection/components/mds-file/mds-file.js +4 -1
- package/dist/collection/components/mds-file/pattern.md +1 -3
- package/dist/collection/components/mds-file-preview/AGENTS.md +3 -3
- package/dist/collection/components/mds-file-preview/antipattern.md +1 -1
- package/dist/collection/components/mds-file-preview/documentation.json +17 -8
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +3 -3
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +3 -2
- package/dist/collection/components/mds-file-preview/pattern.md +2 -3
- package/dist/collection/components/mds-filter/AGENTS.md +3 -8
- package/dist/collection/components/mds-filter/antipattern.md +2 -2
- package/dist/collection/components/mds-filter/documentation.json +27 -13
- package/dist/collection/components/mds-filter/mds-filter.css +3 -3
- package/dist/collection/components/mds-filter/mds-filter.js +2 -1
- package/dist/collection/components/mds-filter/pattern.md +2 -5
- package/dist/collection/components/mds-filter-item/AGENTS.md +2 -7
- package/dist/collection/components/mds-filter-item/antipattern.md +4 -4
- package/dist/collection/components/mds-filter-item/documentation.json +17 -8
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +4 -1
- package/dist/collection/components/mds-filter-item/pattern.md +5 -7
- package/dist/collection/components/mds-header/AGENTS.md +4 -8
- package/dist/collection/components/mds-header/documentation.json +28 -13
- package/dist/collection/components/mds-header/mds-header.css +7 -7
- package/dist/collection/components/mds-header/mds-header.js +2 -1
- package/dist/collection/components/mds-header/pattern.md +1 -3
- package/dist/collection/components/mds-header-bar/AGENTS.md +2 -4
- package/dist/collection/components/mds-header-bar/antipattern.md +6 -8
- package/dist/collection/components/mds-header-bar/documentation.json +9 -4
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +2 -1
- package/dist/collection/components/mds-header-bar/pattern.md +10 -6
- package/dist/collection/components/mds-help/AGENTS.md +1 -1
- package/dist/collection/components/mds-help/documentation.json +13 -5
- package/dist/collection/components/mds-help/mds-help.css +4 -4
- package/dist/collection/components/mds-help/mds-help.js +2 -1
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +5 -11
- package/dist/collection/components/mds-horizontal-scroll/antipattern.md +2 -2
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +34 -14
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +2 -1
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +2 -1
- package/dist/collection/components/mds-horizontal-scroll/pattern.md +4 -15
- package/dist/collection/components/mds-hr/AGENTS.md +1 -1
- package/dist/collection/components/mds-hr/documentation.json +7 -2
- package/dist/collection/components/mds-hr/mds-hr.js +4 -1
- package/dist/collection/components/mds-icon/AGENTS.md +1 -1
- package/dist/collection/components/mds-icon/documentation.json +5 -1
- package/dist/collection/components/mds-icon/mds-icon.js +2 -1
- package/dist/collection/components/mds-img/AGENTS.md +3 -5
- package/dist/collection/components/mds-img/antipattern.md +1 -1
- package/dist/collection/components/mds-img/documentation.json +19 -9
- package/dist/collection/components/mds-img/mds-img.css +2 -2
- package/dist/collection/components/mds-img/mds-img.js +1 -0
- package/dist/collection/components/mds-img/pattern.md +1 -4
- package/dist/collection/components/mds-input/AGENTS.md +6 -10
- package/dist/collection/components/mds-input/antipattern.md +1 -1
- package/dist/collection/components/mds-input/documentation.json +40 -20
- package/dist/collection/components/mds-input/mds-input.css +8 -8
- package/dist/collection/components/mds-input/mds-input.js +13 -7
- package/dist/collection/components/mds-input/meta/input-type/InputValidationManager.js +3 -3
- package/dist/collection/components/mds-input/meta/validators.js +28 -13
- package/dist/collection/components/mds-input/meta/validity.js +8 -10
- package/dist/collection/components/mds-input/pattern.md +1 -3
- package/dist/collection/components/mds-input-date/AGENTS.md +3 -8
- package/dist/collection/components/mds-input-date/antipattern.md +1 -1
- package/dist/collection/components/mds-input-date/documentation.json +31 -15
- package/dist/collection/components/mds-input-date/mds-input-date.css +5 -5
- package/dist/collection/components/mds-input-date/mds-input-date.js +3 -2
- package/dist/collection/components/mds-input-date/pattern.md +1 -2
- package/dist/collection/components/mds-input-date-range/AGENTS.md +3 -4
- package/dist/collection/components/mds-input-date-range/documentation.json +22 -10
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +5 -5
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +3 -2
- package/dist/collection/components/mds-input-date-range/pattern.md +1 -2
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +3 -13
- package/dist/collection/components/mds-input-date-range-preselection/antipattern.md +11 -6
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +26 -13
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.js +2 -1
- package/dist/collection/components/mds-input-date-range-preselection/pattern.md +1 -11
- package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-field/documentation.json +9 -3
- package/dist/collection/components/mds-input-field/mds-input-field.css +2 -2
- package/dist/collection/components/mds-input-field/mds-input-field.js +2 -1
- package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-otp/documentation.json +7 -2
- package/dist/collection/components/mds-input-otp/mds-input-otp.js +4 -1
- package/dist/collection/components/mds-input-range/AGENTS.md +3 -13
- package/dist/collection/components/mds-input-range/antipattern.md +1 -5
- package/dist/collection/components/mds-input-range/documentation.json +26 -13
- package/dist/collection/components/mds-input-range/mds-input-range.css +26 -19
- package/dist/collection/components/mds-input-range/mds-input-range.js +2 -1
- package/dist/collection/components/mds-input-range/pattern.md +2 -12
- package/dist/collection/components/mds-input-select/AGENTS.md +4 -8
- package/dist/collection/components/mds-input-select/antipattern.md +1 -1
- package/dist/collection/components/mds-input-select/documentation.json +26 -13
- package/dist/collection/components/mds-input-select/mds-input-select.css +3 -3
- package/dist/collection/components/mds-input-select/mds-input-select.js +8 -3
- package/dist/collection/components/mds-input-select/pattern.md +1 -3
- package/dist/collection/components/mds-input-switch/AGENTS.md +2 -30
- package/dist/collection/components/mds-input-switch/antipattern.md +5 -6
- package/dist/collection/components/mds-input-switch/documentation.json +61 -30
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +2 -1
- package/dist/collection/components/mds-input-switch/pattern.md +2 -11
- package/dist/collection/components/mds-input-tip/AGENTS.md +3 -5
- package/dist/collection/components/mds-input-tip/antipattern.md +10 -6
- package/dist/collection/components/mds-input-tip/documentation.json +17 -8
- package/dist/collection/components/mds-input-tip/mds-input-tip.css +1 -1
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +2 -1
- package/dist/collection/components/mds-input-tip/pattern.md +1 -4
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +4 -3
- package/dist/collection/components/mds-input-tip-item/antipattern.md +2 -2
- package/dist/collection/components/mds-input-tip-item/documentation.json +14 -7
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +2 -2
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +3 -2
- package/dist/collection/components/mds-input-tip-item/pattern.md +1 -2
- package/dist/collection/components/mds-input-upload/AGENTS.md +3 -5
- package/dist/collection/components/mds-input-upload/antipattern.md +2 -3
- package/dist/collection/components/mds-input-upload/documentation.json +19 -9
- package/dist/collection/components/mds-input-upload/mds-input-upload.css +1 -1
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +8 -5
- package/dist/collection/components/mds-input-upload/pattern.md +1 -5
- package/dist/collection/components/mds-keyboard/AGENTS.md +4 -19
- package/dist/collection/components/mds-keyboard/antipattern.md +3 -3
- package/dist/collection/components/mds-keyboard/documentation.json +48 -24
- package/dist/collection/components/mds-keyboard/mds-keyboard.css +17 -5
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +7 -2
- package/dist/collection/components/mds-keyboard/pattern.md +1 -2
- package/dist/collection/components/mds-keyboard-key/AGENTS.md +3 -6
- package/dist/collection/components/mds-keyboard-key/antipattern.md +1 -2
- package/dist/collection/components/mds-keyboard-key/documentation.json +21 -10
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +7 -3
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +4 -1
- package/dist/collection/components/mds-keyboard-key/pattern.md +1 -12
- package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi/documentation.json +10 -4
- package/dist/collection/components/mds-kpi/mds-kpi.css +2 -2
- package/dist/collection/components/mds-kpi/mds-kpi.js +2 -1
- package/dist/collection/components/mds-kpi/pattern.md +7 -4
- package/dist/collection/components/mds-kpi-item/AGENTS.md +3 -8
- package/dist/collection/components/mds-kpi-item/antipattern.md +2 -4
- package/dist/collection/components/mds-kpi-item/documentation.json +16 -8
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +2 -1
- package/dist/collection/components/mds-kpi-item/pattern.md +9 -7
- package/dist/collection/components/mds-label/AGENTS.md +3 -7
- package/dist/collection/components/mds-label/documentation.json +24 -11
- package/dist/collection/components/mds-label/mds-label.css +2 -2
- package/dist/collection/components/mds-label/mds-label.js +4 -1
- package/dist/collection/components/mds-label/pattern.md +1 -3
- package/dist/collection/components/mds-link/AGENTS.md +4 -9
- package/dist/collection/components/mds-link/documentation.json +22 -10
- package/dist/collection/components/mds-link/mds-link.css +1 -1
- package/dist/collection/components/mds-link/mds-link.js +4 -3
- package/dist/collection/components/mds-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-list/documentation.json +6 -2
- package/dist/collection/components/mds-list/mds-list.js +2 -1
- package/dist/collection/components/mds-list/pattern.md +5 -5
- package/dist/collection/components/mds-list-item/AGENTS.md +2 -4
- package/dist/collection/components/mds-list-item/antipattern.md +1 -1
- package/dist/collection/components/mds-list-item/documentation.json +9 -4
- package/dist/collection/components/mds-list-item/mds-list-item.js +2 -1
- package/dist/collection/components/mds-list-item/pattern.md +4 -4
- package/dist/collection/components/mds-mention/AGENTS.md +2 -4
- package/dist/collection/components/mds-mention/antipattern.md +5 -5
- package/dist/collection/components/mds-mention/documentation.json +11 -5
- package/dist/collection/components/mds-mention/mds-mention.js +4 -1
- package/dist/collection/components/mds-mention/pattern.md +3 -5
- package/dist/collection/components/mds-modal/AGENTS.md +3 -9
- package/dist/collection/components/mds-modal/antipattern.md +1 -3
- package/dist/collection/components/mds-modal/documentation.json +37 -18
- package/dist/collection/components/mds-modal/mds-modal.css +7 -7
- package/dist/collection/components/mds-modal/mds-modal.js +4 -3
- package/dist/collection/components/mds-modal/pattern.md +2 -6
- package/dist/collection/components/mds-note/AGENTS.md +3 -5
- package/dist/collection/components/mds-note/documentation.json +18 -8
- package/dist/collection/components/mds-note/mds-note.css +2 -2
- package/dist/collection/components/mds-note/mds-note.js +2 -1
- package/dist/collection/components/mds-note/pattern.md +1 -3
- package/dist/collection/components/mds-notification/AGENTS.md +3 -11
- package/dist/collection/components/mds-notification/antipattern.md +2 -2
- package/dist/collection/components/mds-notification/documentation.json +33 -16
- package/dist/collection/components/mds-notification/mds-notification.css +2 -2
- package/dist/collection/components/mds-notification/mds-notification.js +4 -1
- package/dist/collection/components/mds-notification/pattern.md +3 -5
- package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
- package/dist/collection/components/mds-paginator/documentation.json +12 -5
- package/dist/collection/components/mds-paginator/mds-paginator.css +2 -2
- package/dist/collection/components/mds-paginator/mds-paginator.js +4 -1
- package/dist/collection/components/mds-paginator/pattern.md +1 -3
- package/dist/collection/components/mds-paginator-item/AGENTS.md +3 -10
- package/dist/collection/components/mds-paginator-item/documentation.json +34 -16
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +5 -5
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +2 -1
- package/dist/collection/components/mds-paginator-item/pattern.md +5 -6
- package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
- package/dist/collection/components/mds-policy-ai/documentation.json +6 -2
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +2 -1
- package/dist/collection/components/mds-policy-ai/pattern.md +4 -4
- package/dist/collection/components/mds-pref/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref/documentation.json +5 -5
- package/dist/collection/components/mds-pref/mds-pref.js +2 -2
- package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +7 -2
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +4 -1
- package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-consumption/documentation.json +7 -2
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +4 -1
- package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-contrast/documentation.json +7 -2
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +4 -1
- package/dist/collection/components/mds-pref-language/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-language/documentation.json +5 -1
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +2 -1
- package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-language-item/documentation.json +7 -2
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +4 -1
- package/dist/collection/components/mds-pref-mode/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref-mode/antipattern.md +1 -2
- package/dist/collection/components/mds-pref-mode/documentation.json +15 -7
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +1 -1
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +4 -1
- package/dist/collection/components/mds-pref-mode/pattern.md +1 -3
- package/dist/collection/components/mds-pref-theme/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-theme/documentation.json +6 -2
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +2 -1
- package/dist/collection/components/mds-pref-theme/pattern.md +1 -2
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +3 -5
- package/dist/collection/components/mds-pref-theme-item/antipattern.md +1 -2
- package/dist/collection/components/mds-pref-theme-item/documentation.json +19 -9
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +1 -1
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +4 -1
- package/dist/collection/components/mds-pref-theme-item/pattern.md +2 -6
- package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table/documentation.json +6 -2
- package/dist/collection/components/mds-price-table/mds-price-table.js +2 -1
- package/dist/collection/components/mds-price-table/pattern.md +4 -4
- package/dist/collection/components/mds-price-table-features/AGENTS.md +4 -3
- package/dist/collection/components/mds-price-table-features/antipattern.md +0 -1
- package/dist/collection/components/mds-price-table-features/documentation.json +12 -6
- 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 +2 -1
- package/dist/collection/components/mds-price-table-features/pattern.md +2 -3
- package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +3 -6
- package/dist/collection/components/mds-price-table-features-cell/antipattern.md +3 -3
- package/dist/collection/components/mds-price-table-features-cell/documentation.json +19 -9
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +1 -1
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +2 -1
- package/dist/collection/components/mds-price-table-features-cell/pattern.md +1 -6
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +3 -3
- package/dist/collection/components/mds-price-table-features-row/documentation.json +14 -6
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +2 -2
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +2 -1
- package/dist/collection/components/mds-price-table-features-row/pattern.md +1 -3
- package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-header/documentation.json +5 -1
- package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +2 -1
- package/dist/collection/components/mds-price-table-list/AGENTS.md +3 -5
- package/dist/collection/components/mds-price-table-list/antipattern.md +1 -4
- package/dist/collection/components/mds-price-table-list/documentation.json +10 -5
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +2 -1
- package/dist/collection/components/mds-price-table-list/pattern.md +12 -7
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +2 -6
- package/dist/collection/components/mds-price-table-list-item/antipattern.md +1 -5
- package/dist/collection/components/mds-price-table-list-item/documentation.json +13 -6
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +2 -1
- package/dist/collection/components/mds-price-table-list-item/pattern.md +7 -4
- package/dist/collection/components/mds-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-progress/documentation.json +15 -6
- package/dist/collection/components/mds-progress/mds-progress.css +5 -5
- package/dist/collection/components/mds-progress/mds-progress.js +2 -1
- package/dist/collection/components/mds-push-notification/AGENTS.md +4 -7
- package/dist/collection/components/mds-push-notification/antipattern.md +2 -2
- package/dist/collection/components/mds-push-notification/documentation.json +24 -12
- package/dist/collection/components/mds-push-notification/mds-push-notification.css +11 -11
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +2 -1
- package/dist/collection/components/mds-push-notification/pattern.md +2 -5
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +3 -5
- package/dist/collection/components/mds-push-notification-item/documentation.json +20 -9
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +3 -3
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +3 -2
- package/dist/collection/components/mds-push-notification-item/pattern.md +1 -3
- package/dist/collection/components/mds-quote/AGENTS.md +1 -1
- package/dist/collection/components/mds-quote/documentation.json +5 -1
- package/dist/collection/components/mds-quote/mds-quote.js +2 -1
- package/dist/collection/components/mds-radial-menu/AGENTS.md +4 -11
- package/dist/collection/components/mds-radial-menu/documentation.json +31 -15
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +3 -3
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +2 -1
- package/dist/collection/components/mds-radial-menu/pattern.md +2 -6
- package/dist/collection/components/mds-radial-menu-item/AGENTS.md +2 -5
- package/dist/collection/components/mds-radial-menu-item/antipattern.md +7 -5
- package/dist/collection/components/mds-radial-menu-item/documentation.json +13 -6
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +4 -1
- package/dist/collection/components/mds-radial-menu-item/pattern.md +6 -8
- package/dist/collection/components/mds-radial-progress/AGENTS.md +3 -3
- package/dist/collection/components/mds-radial-progress/documentation.json +15 -6
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +3 -3
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +2 -1
- package/dist/collection/components/mds-separator/AGENTS.md +1 -1
- package/dist/collection/components/mds-separator/documentation.json +9 -3
- package/dist/collection/components/mds-separator/mds-separator.css +1 -1
- package/dist/collection/components/mds-separator/mds-separator.js +4 -1
- package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
- package/dist/collection/components/mds-spinner/documentation.json +9 -3
- package/dist/collection/components/mds-spinner/mds-spinner.css +1 -1
- package/dist/collection/components/mds-spinner/mds-spinner.js +4 -1
- package/dist/collection/components/mds-status-bar/AGENTS.md +3 -3
- package/dist/collection/components/mds-status-bar/antipattern.md +0 -1
- package/dist/collection/components/mds-status-bar/documentation.json +13 -6
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +2 -1
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +2 -1
- package/dist/collection/components/mds-status-bar/pattern.md +1 -3
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +3 -7
- package/dist/collection/components/mds-stepper-bar/documentation.json +22 -10
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +2 -2
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +2 -1
- package/dist/collection/components/mds-stepper-bar/pattern.md +2 -6
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +3 -11
- package/dist/collection/components/mds-stepper-bar-item/antipattern.md +3 -3
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +31 -15
- 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 +7 -4
- package/dist/collection/components/mds-stepper-bar-item/pattern.md +2 -5
- package/dist/collection/components/mds-tab/AGENTS.md +3 -27
- package/dist/collection/components/mds-tab/antipattern.md +1 -3
- package/dist/collection/components/mds-tab/documentation.json +67 -33
- package/dist/collection/components/mds-tab/mds-tab.css +5 -5
- package/dist/collection/components/mds-tab/mds-tab.js +3 -2
- package/dist/collection/components/mds-tab/pattern.md +3 -13
- package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar/antipattern.md +2 -2
- package/dist/collection/components/mds-tab-bar/documentation.json +7 -3
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +2 -1
- package/dist/collection/components/mds-tab-bar/pattern.md +3 -3
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +4 -4
- package/dist/collection/components/mds-tab-bar-item/documentation.json +15 -7
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +2 -2
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +2 -1
- package/dist/collection/components/mds-tab-bar-item/pattern.md +1 -3
- package/dist/collection/components/mds-tab-item/AGENTS.md +2 -8
- package/dist/collection/components/mds-tab-item/antipattern.md +3 -3
- package/dist/collection/components/mds-tab-item/documentation.json +17 -8
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +2 -1
- package/dist/collection/components/mds-tab-item/pattern.md +6 -5
- package/dist/collection/components/mds-table/AGENTS.md +3 -7
- package/dist/collection/components/mds-table/documentation.json +24 -11
- package/dist/collection/components/mds-table/mds-table.css +3 -3
- package/dist/collection/components/mds-table/mds-table.js +2 -1
- package/dist/collection/components/mds-table/pattern.md +2 -6
- package/dist/collection/components/mds-table-body/AGENTS.md +3 -4
- package/dist/collection/components/mds-table-body/antipattern.md +1 -2
- package/dist/collection/components/mds-table-body/documentation.json +17 -8
- package/dist/collection/components/mds-table-body/mds-table-body.css +2 -2
- package/dist/collection/components/mds-table-body/mds-table-body.js +2 -1
- package/dist/collection/components/mds-table-body/pattern.md +1 -4
- package/dist/collection/components/mds-table-cell/AGENTS.md +4 -4
- package/dist/collection/components/mds-table-cell/antipattern.md +1 -1
- package/dist/collection/components/mds-table-cell/documentation.json +16 -8
- package/dist/collection/components/mds-table-cell/mds-table-cell.css +2 -2
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +2 -1
- package/dist/collection/components/mds-table-cell/pattern.md +1 -7
- package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-footer/antipattern.md +2 -2
- package/dist/collection/components/mds-table-footer/documentation.json +7 -3
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +2 -1
- package/dist/collection/components/mds-table-footer/pattern.md +2 -4
- package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-header/documentation.json +5 -1
- package/dist/collection/components/mds-table-header/mds-table-header.js +2 -1
- package/dist/collection/components/mds-table-header-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-header-cell/documentation.json +5 -1
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +2 -1
- package/dist/collection/components/mds-table-row/AGENTS.md +2 -8
- package/dist/collection/components/mds-table-row/antipattern.md +4 -5
- package/dist/collection/components/mds-table-row/documentation.json +17 -8
- package/dist/collection/components/mds-table-row/mds-table-row.js +4 -3
- package/dist/collection/components/mds-table-row/pattern.md +5 -8
- package/dist/collection/components/mds-text/AGENTS.md +3 -3
- package/dist/collection/components/mds-text/antipattern.md +1 -2
- package/dist/collection/components/mds-text/documentation.json +17 -8
- package/dist/collection/components/mds-text/mds-text.css +3 -3
- package/dist/collection/components/mds-text/mds-text.js +2 -1
- package/dist/collection/components/mds-text/pattern.md +0 -11
- package/dist/collection/components/mds-toast/AGENTS.md +3 -3
- package/dist/collection/components/mds-toast/antipattern.md +2 -2
- package/dist/collection/components/mds-toast/documentation.json +19 -9
- package/dist/collection/components/mds-toast/mds-toast.css +4 -4
- package/dist/collection/components/mds-toast/mds-toast.js +2 -1
- package/dist/collection/components/mds-toast/pattern.md +2 -3
- package/dist/collection/components/mds-toast-region/AGENTS.md +1 -1
- package/dist/collection/components/mds-toast-region/documentation.json +7 -2
- package/dist/collection/components/mds-toast-region/mds-toast-region.css +1 -1
- package/dist/collection/components/mds-toast-region/mds-toast-region.js +2 -1
- package/dist/collection/components/mds-tooltip/AGENTS.md +3 -8
- package/dist/collection/components/mds-tooltip/antipattern.md +1 -1
- package/dist/collection/components/mds-tooltip/documentation.json +27 -13
- package/dist/collection/components/mds-tooltip/mds-tooltip.css +5 -5
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +2 -1
- package/dist/collection/components/mds-tooltip/pattern.md +1 -3
- package/dist/collection/components/mds-tree/AGENTS.md +3 -28
- package/dist/collection/components/mds-tree/antipattern.md +3 -4
- package/dist/collection/components/mds-tree/documentation.json +63 -31
- package/dist/collection/components/mds-tree/mds-tree.css +1 -1
- package/dist/collection/components/mds-tree/mds-tree.js +2 -1
- package/dist/collection/components/mds-tree/pattern.md +3 -9
- package/dist/collection/components/mds-tree-item/AGENTS.md +2 -33
- package/dist/collection/components/mds-tree-item/antipattern.md +1 -5
- package/dist/collection/components/mds-tree-item/documentation.json +67 -33
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +2 -1
- package/dist/collection/components/mds-tree-item/pattern.md +5 -10
- package/dist/collection/components/mds-url-view/AGENTS.md +3 -2
- package/dist/collection/components/mds-url-view/antipattern.md +1 -2
- package/dist/collection/components/mds-url-view/documentation.json +19 -9
- package/dist/collection/components/mds-url-view/mds-url-view.css +4 -4
- package/dist/collection/components/mds-url-view/mds-url-view.js +4 -1
- package/dist/collection/components/mds-url-view/pattern.md +1 -2
- package/dist/collection/components/mds-usage/AGENTS.md +2 -6
- package/dist/collection/components/mds-usage/antipattern.md +6 -4
- package/dist/collection/components/mds-usage/documentation.json +13 -6
- package/dist/collection/components/mds-usage/mds-usage.js +2 -1
- package/dist/collection/components/mds-usage/pattern.md +10 -6
- package/dist/collection/components/mds-video-wall/AGENTS.md +3 -4
- package/dist/collection/components/mds-video-wall/antipattern.md +5 -5
- package/dist/collection/components/mds-video-wall/documentation.json +15 -7
- package/dist/collection/components/mds-video-wall/mds-video-wall.css +1 -1
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +2 -1
- package/dist/collection/components/mds-video-wall/pattern.md +2 -4
- package/dist/collection/components/mds-zero/AGENTS.md +1 -1
- package/dist/collection/components/mds-zero/antipattern.md +6 -6
- package/dist/collection/components/mds-zero/documentation.json +9 -4
- package/dist/collection/components/mds-zero/mds-zero.css +1 -1
- package/dist/collection/components/mds-zero/mds-zero.js +2 -1
- package/dist/collection/components/mds-zero/pattern.md +3 -3
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-author.js +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-badge.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-book.d.ts +11 -0
- package/dist/components/mds-book.js +1 -0
- 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 +2 -2
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +1 -1
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-tip.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-link.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme-item.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features-row.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-header.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-price-table-list.js +1 -1
- package/dist/components/mds-price-table.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-separator.js +1 -1
- package/dist/components/mds-spinner.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-bar.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-tab.js +1 -1
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast-region.js +1 -1
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/mds-tooltip.js +1 -1
- package/dist/components/mds-tree-item.js +1 -1
- package/dist/components/mds-tree.js +1 -1
- package/dist/components/mds-url-view.js +1 -1
- package/dist/components/mds-usage.js +1 -1
- package/dist/components/mds-video-wall.js +1 -1
- package/dist/components/mds-zero.js +1 -1
- package/dist/components/p-B8hgyXdE.js +1 -0
- package/dist/components/{p-DkUdrGHq.js → p-BBO_llcO.js} +1 -1
- package/dist/components/{p-nsbhb0lz.js → p-BM7joOdq.js} +1 -1
- package/dist/components/{p-DNeEn8Rr.js → p-BMIaZ4HY.js} +1 -1
- package/dist/components/{p-BwJQB6rG.js → p-BOJQ3tkp.js} +1 -1
- package/dist/components/{p-DCrdKrky.js → p-BU1O2DcC.js} +1 -1
- package/dist/components/{p-Cd8id3Br.js → p-Bo6ezD1p.js} +1 -1
- package/dist/components/p-C0H8bZpf.js +1 -0
- package/dist/components/{p-s1CktmPS.js → p-C1YH20BL.js} +1 -1
- package/dist/components/{p-Cmn1DJAB.js → p-CEw7GvM-.js} +1 -1
- package/dist/components/{p-D-DdDIb9.js → p-CNUWS_Mg.js} +1 -1
- package/dist/components/{p-uqwixjju.js → p-CNpL55c-.js} +1 -1
- package/dist/components/{p-DnySYX0L.js → p-CV7wjM1c.js} +1 -1
- package/dist/components/{p-BU3bsIX2.js → p-CWSIl1jl.js} +1 -1
- package/dist/components/{p-C99SMdU_.js → p-CYK2Xr_v.js} +1 -1
- package/dist/components/{p-B8x-d2fx.js → p-CZjwSwe5.js} +1 -1
- package/dist/components/p-Czqtt8kO.js +1 -0
- package/dist/components/{p-Dm-OUwDe.js → p-DD2muCqG.js} +1 -1
- package/dist/components/{p-ZuubAcA3.js → p-DDTJwlAd.js} +1 -1
- package/dist/components/{p-DF3PrYBI.js → p-DJ401QTd.js} +1 -1
- package/dist/components/{p-BbK4qeM7.js → p-DMyL4CYh.js} +1 -1
- package/dist/components/{p-DiUUZ7ZA.js → p-DTtmr_Y9.js} +1 -1
- package/dist/components/{p-CfQETwAK.js → p-DbVGGhs_.js} +1 -1
- package/dist/components/{p-C4XdTZQ-.js → p-DccBbfK8.js} +1 -1
- package/dist/components/{p-CNZ8_QvE.js → p-H0YXZ5fD.js} +2 -2
- package/dist/components/p-IaXq1Xsc.js +1 -0
- package/dist/components/{p-ClPv-Ljc.js → p-M8dGB4KH.js} +1 -1
- package/dist/components/{p-C1CTahjH.js → p-TNn_HE5x.js} +1 -1
- package/dist/components/{p-CNF3u0Li.js → p-aujz-VM9.js} +1 -1
- package/dist/components/{p-CSxW5f2f.js → p-e9NGNm7d.js} +1 -1
- package/dist/components/{p-D2d9eOLi.js → p-kZBPId_x.js} +1 -1
- package/dist/components/{p-CLe_N2_H.js → p-qnCVkeGX.js} +1 -1
- package/dist/documentation.json +2616 -921
- package/dist/esm/{index-D2_gI0qp.js → index-BJVvHlvf.js} +1 -1
- package/dist/esm/index-CvLLN-QH.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-BQmO6K_S.js → locale-B6cOkl4I.js} +12 -6
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer.entry.js +1 -1
- package/dist/esm/mds-accordion.entry.js +1 -1
- package/dist/esm/mds-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 +1 -1
- package/dist/esm/mds-badge.entry.js +1 -1
- package/dist/esm/mds-banner_3.entry.js +4 -4
- 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 +701 -0
- package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm/mds-breadcrumb.entry.js +2 -2
- package/dist/esm/mds-button-dropdown.entry.js +2 -2
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +6 -6
- package/dist/esm/mds-calendar_2.entry.js +7 -7
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +1 -1
- package/dist/esm/mds-details.entry.js +1 -1
- package/dist/esm/mds-dropdown.entry.js +2 -2
- package/dist/esm/mds-emoji.entry.js +2 -2
- package/dist/esm/mds-entity.entry.js +1 -1
- package/dist/esm/mds-file-preview.entry.js +3 -3
- package/dist/esm/mds-file.entry.js +2 -2
- package/dist/esm/mds-filter-item.entry.js +2 -2
- package/dist/esm/mds-filter.entry.js +2 -2
- package/dist/esm/mds-header-bar.entry.js +2 -2
- package/dist/esm/mds-header.entry.js +2 -2
- package/dist/esm/mds-horizontal-scroll.entry.js +2 -2
- package/dist/esm/mds-hr.entry.js +1 -1
- package/dist/esm/mds-img.entry.js +1 -1
- package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +3 -3
- package/dist/esm/mds-input-date.entry.js +4 -4
- package/dist/esm/mds-input-field.entry.js +1 -1
- package/dist/esm/mds-input-otp.entry.js +2 -2
- package/dist/esm/mds-input-range.entry.js +2 -2
- package/dist/esm/mds-input-select.entry.js +9 -5
- package/dist/esm/mds-input-switch_2.entry.js +3 -3
- package/dist/esm/mds-input-tip_2.entry.js +4 -4
- package/dist/esm/mds-input-upload.entry.js +6 -6
- package/dist/esm/mds-input.entry.js +154 -37
- package/dist/esm/mds-keyboard-key.entry.js +3 -3
- package/dist/esm/mds-keyboard.entry.js +8 -4
- package/dist/esm/mds-kpi-item.entry.js +1 -1
- package/dist/esm/mds-kpi.entry.js +1 -1
- package/dist/esm/mds-label.entry.js +2 -2
- package/dist/esm/mds-link.entry.js +4 -4
- package/dist/esm/mds-list-item.entry.js +1 -1
- package/dist/esm/mds-list.entry.js +1 -1
- package/dist/esm/mds-mention.entry.js +2 -2
- package/dist/esm/mds-modal.entry.js +4 -4
- package/dist/esm/mds-note.entry.js +2 -2
- package/dist/esm/mds-notification.entry.js +1 -1
- package/dist/esm/mds-paginator-item.entry.js +1 -1
- package/dist/esm/mds-paginator.entry.js +2 -2
- package/dist/esm/mds-policy-ai.entry.js +2 -2
- package/dist/esm/mds-pref-animation.entry.js +2 -2
- package/dist/esm/mds-pref-consumption.entry.js +2 -2
- package/dist/esm/mds-pref-contrast.entry.js +2 -2
- package/dist/esm/mds-pref-language-item.entry.js +2 -2
- package/dist/esm/mds-pref-language.entry.js +2 -2
- package/dist/esm/mds-pref-mode.entry.js +2 -2
- package/dist/esm/mds-pref-theme-item.entry.js +1 -1
- package/dist/esm/mds-pref-theme.entry.js +2 -2
- package/dist/esm/mds-pref.entry.js +2 -2
- package/dist/esm/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm/mds-price-table-features.entry.js +1 -1
- package/dist/esm/mds-price-table-header.entry.js +1 -1
- package/dist/esm/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm/mds-price-table-list.entry.js +1 -1
- package/dist/esm/mds-price-table.entry.js +1 -1
- package/dist/esm/mds-progress_2.entry.js +2 -2
- package/dist/esm/mds-push-notification-item.entry.js +3 -3
- package/dist/esm/mds-push-notification.entry.js +3 -3
- package/dist/esm/mds-quote.entry.js +1 -1
- package/dist/esm/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm/mds-radial-menu.entry.js +2 -2
- package/dist/esm/mds-separator.entry.js +1 -1
- package/dist/esm/mds-status-bar.entry.js +2 -2
- package/dist/esm/mds-stepper-bar-item.entry.js +7 -5
- package/dist/esm/mds-stepper-bar.entry.js +1 -1
- package/dist/esm/mds-tab-bar-item.entry.js +1 -1
- package/dist/esm/mds-tab-bar.entry.js +1 -1
- package/dist/esm/mds-tab_2.entry.js +4 -4
- package/dist/esm/mds-table-body.entry.js +1 -1
- package/dist/esm/mds-table-footer.entry.js +1 -1
- package/dist/esm/mds-table-header-cell.entry.js +1 -1
- package/dist/esm/mds-table-header.entry.js +2 -2
- package/dist/esm/mds-table-row.entry.js +3 -3
- package/dist/esm/mds-table.entry.js +2 -2
- package/dist/esm/mds-text.entry.js +1 -1
- package/dist/esm/mds-toast-region.entry.js +1 -1
- package/dist/esm/mds-toast.entry.js +2 -2
- package/dist/esm/mds-tooltip.entry.js +2 -2
- package/dist/esm/mds-tree-item.entry.js +2 -2
- package/dist/esm/mds-tree.entry.js +1 -1
- package/dist/esm/mds-url-view.entry.js +2 -2
- package/dist/esm/mds-usage.entry.js +2 -2
- package/dist/esm/mds-video-wall.entry.js +1 -1
- package/dist/esm/mds-zero.entry.js +1 -1
- package/dist/esm-es5/{index-D2_gI0qp.js → index-BJVvHlvf.js} +1 -1
- package/dist/esm-es5/index-CvLLN-QH.js +8 -6
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{locale-BQmO6K_S.js → locale-B6cOkl4I.js} +22 -18
- package/dist/esm-es5/magma-components.js +2 -2
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +2 -2
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +5 -5
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +4 -4
- package/dist/esm-es5/mds-benchmark-bar.entry.js +3 -3
- package/dist/esm-es5/mds-bibliography.entry.js +2 -2
- package/dist/esm-es5/mds-book.entry.js +207 -0
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +4 -4
- package/dist/esm-es5/mds-button-dropdown.entry.js +2 -2
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +5 -5
- package/dist/esm-es5/mds-calendar_2.entry.js +4 -4
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +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 +8 -8
- 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 +2 -2
- package/dist/esm-es5/mds-header-bar.entry.js +2 -2
- package/dist/esm-es5/mds-header.entry.js +2 -2
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +2 -2
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +3 -3
- package/dist/esm-es5/mds-input-date.entry.js +3 -3
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-otp.entry.js +2 -2
- package/dist/esm-es5/mds-input-range.entry.js +7 -7
- package/dist/esm-es5/mds-input-select.entry.js +5 -4
- 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 +53 -50
- package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
- package/dist/esm-es5/mds-keyboard.entry.js +6 -3
- package/dist/esm-es5/mds-kpi-item.entry.js +3 -3
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +2 -2
- package/dist/esm-es5/mds-link.entry.js +2 -2
- package/dist/esm-es5/mds-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +2 -2
- package/dist/esm-es5/mds-modal.entry.js +2 -2
- package/dist/esm-es5/mds-note.entry.js +2 -2
- package/dist/esm-es5/mds-notification.entry.js +1 -1
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +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 +2 -2
- package/dist/esm-es5/mds-pref-language-item.entry.js +2 -2
- package/dist/esm-es5/mds-pref-language.entry.js +2 -2
- package/dist/esm-es5/mds-pref-mode.entry.js +2 -2
- package/dist/esm-es5/mds-pref-theme-item.entry.js +3 -3
- package/dist/esm-es5/mds-pref-theme.entry.js +6 -6
- package/dist/esm-es5/mds-pref.entry.js +2 -2
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification.entry.js +2 -2
- package/dist/esm-es5/mds-quote.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu.entry.js +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 -3
- package/dist/esm-es5/mds-stepper-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
- 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 +1 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
- package/dist/esm-es5/mds-table-header.entry.js +4 -4
- package/dist/esm-es5/mds-table-row.entry.js +2 -2
- package/dist/esm-es5/mds-table.entry.js +2 -2
- package/dist/esm-es5/mds-text.entry.js +1 -1
- package/dist/esm-es5/mds-toast-region.entry.js +1 -1
- package/dist/esm-es5/mds-toast.entry.js +2 -2
- package/dist/esm-es5/mds-tooltip.entry.js +2 -2
- package/dist/esm-es5/mds-tree-item.entry.js +2 -2
- package/dist/esm-es5/mds-tree.entry.js +1 -1
- package/dist/esm-es5/mds-url-view.entry.js +2 -2
- package/dist/esm-es5/mds-usage.entry.js +2 -2
- package/dist/esm-es5/mds-video-wall.entry.js +1 -1
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/hydrate/index.js +1228 -207
- package/dist/hydrate/index.mjs +1228 -207
- package/dist/lint/core/checks.d.ts +26 -0
- package/dist/lint/core/checks.js +135 -0
- package/dist/lint/core/colors.d.ts +2 -0
- package/dist/lint/core/colors.js +40 -0
- package/dist/lint/core/data.d.ts +82 -0
- package/dist/lint/core/data.js +171 -0
- package/dist/lint/core/element.d.ts +55 -0
- package/dist/lint/core/element.js +19 -0
- package/dist/lint/eslint/adapters.d.ts +53 -0
- package/dist/lint/eslint/adapters.js +217 -0
- package/dist/lint/eslint/index.d.ts +7 -0
- package/dist/lint/eslint/index.js +86 -0
- package/dist/lint/index.d.ts +4 -0
- package/dist/lint/index.js +10 -0
- package/dist/lint/mcp/checks.d.ts +15 -0
- package/dist/lint/mcp/checks.js +407 -0
- package/dist/lint/mcp/cli.d.ts +2 -0
- package/dist/lint/mcp/cli.js +29 -0
- package/dist/lint/mcp/color.d.ts +12 -0
- package/dist/lint/mcp/color.js +87 -0
- package/dist/lint/mcp/components.d.ts +5 -0
- package/dist/lint/mcp/components.js +362 -0
- package/dist/lint/mcp/context.d.ts +25 -0
- package/dist/lint/mcp/context.js +87 -0
- package/dist/lint/mcp/guides.d.ts +3 -0
- package/dist/lint/mcp/guides.js +137 -0
- package/dist/lint/mcp/icon.svg +11 -0
- package/dist/lint/mcp/icons.d.ts +3 -0
- package/dist/lint/mcp/icons.js +170 -0
- package/dist/lint/mcp/protocol.d.ts +42 -0
- package/dist/lint/mcp/protocol.js +106 -0
- package/dist/lint/mcp/server.d.ts +20 -0
- package/dist/lint/mcp/server.js +67 -0
- package/dist/lint/mcp/tokens.d.ts +22 -0
- package/dist/lint/mcp/tokens.js +507 -0
- package/dist/lint/package.json +3 -0
- package/dist/lint/stylelint/index.d.ts +3 -0
- package/dist/lint/stylelint/index.js +137 -0
- package/dist/lint/stylelint/recommended.d.ts +3 -0
- package/dist/lint/stylelint/recommended.js +10 -0
- package/dist/lint/stylelint/strict.d.ts +3 -0
- package/dist/lint/stylelint/strict.js +10 -0
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-26451eb6.entry.js → p-00aa9a51.entry.js} +1 -1
- package/dist/magma-components/{p-5533b60d.system.entry.js → p-00acb2e1.system.entry.js} +3 -3
- package/dist/magma-components/{p-4bc3335f.system.entry.js → p-037126b7.system.entry.js} +1 -1
- package/dist/magma-components/{p-e5d41024.system.entry.js → p-03da0376.system.entry.js} +1 -1
- package/dist/magma-components/{p-25a6e977.entry.js → p-0417391b.entry.js} +1 -1
- package/dist/magma-components/{p-377d0661.entry.js → p-05ef91a5.entry.js} +1 -1
- package/dist/magma-components/{p-336f56a4.entry.js → p-07d35da6.entry.js} +1 -1
- package/dist/magma-components/{p-f4d80d9a.entry.js → p-09c80fdb.entry.js} +1 -1
- package/dist/magma-components/{p-5cfa0dce.entry.js → p-0b0ca53c.entry.js} +1 -1
- package/dist/magma-components/{p-617370e7.system.entry.js → p-0babf674.system.entry.js} +7 -7
- package/dist/magma-components/{p-29162c98.entry.js → p-0d90c991.entry.js} +1 -1
- package/dist/magma-components/{p-9745dc51.entry.js → p-103465cf.entry.js} +1 -1
- package/dist/magma-components/{p-919f9dce.entry.js → p-10983da0.entry.js} +1 -1
- package/dist/magma-components/{p-52d905fe.system.entry.js → p-109926ce.system.entry.js} +2 -2
- package/dist/magma-components/{p-70d38284.entry.js → p-14b13850.entry.js} +1 -1
- package/dist/magma-components/{p-bf0cb77d.system.entry.js → p-154ba354.system.entry.js} +2 -2
- package/dist/magma-components/{p-73833405.entry.js → p-160cd923.entry.js} +1 -1
- package/dist/magma-components/{p-5ef0fb69.system.entry.js → p-1685e74c.system.entry.js} +1 -1
- package/dist/magma-components/p-1748ca8b.system.entry.js +1 -0
- package/dist/magma-components/{p-729c89f9.system.entry.js → p-17a43cb6.system.entry.js} +2 -2
- package/dist/magma-components/p-17ccfc01.system.entry.js +208 -0
- package/dist/magma-components/{p-f670ed20.entry.js → p-198ea5d8.entry.js} +1 -1
- package/dist/magma-components/{p-d561062f.system.entry.js → p-1b415625.system.entry.js} +3 -3
- package/dist/magma-components/{p-4bc47ff0.system.entry.js → p-1b67b149.system.entry.js} +2 -2
- package/dist/magma-components/p-1c00d0f7.entry.js +1 -0
- package/dist/magma-components/{p-05ed801b.system.entry.js → p-1cd75adf.system.entry.js} +3 -3
- package/dist/magma-components/{p-244676d3.system.entry.js → p-1d8485de.system.entry.js} +4 -4
- package/dist/magma-components/{p-23c057a9.entry.js → p-2006cfeb.entry.js} +1 -1
- package/dist/magma-components/{p-02fe26b4.system.entry.js → p-2216f207.system.entry.js} +2 -2
- package/dist/magma-components/{p-edf003f1.system.entry.js → p-22f24125.system.entry.js} +1 -1
- package/dist/magma-components/{p-6560b426.system.entry.js → p-25c07b67.system.entry.js} +1 -1
- package/dist/magma-components/{p-e3a65644.entry.js → p-29fbb7cf.entry.js} +1 -1
- package/dist/magma-components/{p-f7147d05.entry.js → p-2a26b614.entry.js} +1 -1
- package/dist/magma-components/p-2a6c2a41.entry.js +1 -0
- package/dist/magma-components/{p-06fde29d.entry.js → p-2c28056d.entry.js} +1 -1
- package/dist/magma-components/{p-23722401.entry.js → p-2c5e5cd1.entry.js} +1 -1
- package/dist/magma-components/{p-d92ccce5.system.entry.js → p-2c7d091e.system.entry.js} +3 -3
- package/dist/magma-components/{p-3abaa053.entry.js → p-2c997b47.entry.js} +1 -1
- package/dist/magma-components/{p-0a8e8525.entry.js → p-2f39f4e4.entry.js} +1 -1
- package/dist/magma-components/{p-02298ed0.system.entry.js → p-31370fdb.system.entry.js} +1 -1
- package/dist/magma-components/{p-3df07021.system.entry.js → p-3139988c.system.entry.js} +1 -1
- package/dist/magma-components/p-32418266.entry.js +1 -0
- package/dist/magma-components/{p-cc9659e1.system.entry.js → p-33c80de3.system.entry.js} +1 -1
- package/dist/magma-components/{p-09a7b578.system.entry.js → p-34c0e63c.system.entry.js} +1 -1
- package/dist/magma-components/{p-ca1969c5.entry.js → p-354a5b47.entry.js} +1 -1
- package/dist/magma-components/{p-81e02997.system.entry.js → p-35c6341a.system.entry.js} +3 -3
- package/dist/magma-components/{p-b476435f.entry.js → p-379f51a6.entry.js} +1 -1
- package/dist/magma-components/{p-7c217aa5.entry.js → p-381f49ea.entry.js} +1 -1
- package/dist/magma-components/{p-221c2f0d.entry.js → p-384ab014.entry.js} +1 -1
- package/dist/magma-components/{p-29ab84bf.system.entry.js → p-386bb24e.system.entry.js} +4 -4
- package/dist/magma-components/{p-1e18fcc5.system.entry.js → p-39a2df98.system.entry.js} +1 -1
- package/dist/magma-components/{p-5c4e41d3.system.entry.js → p-3a7c4314.system.entry.js} +3 -3
- package/dist/magma-components/{p-e5950aee.entry.js → p-3a9a75e5.entry.js} +1 -1
- package/dist/magma-components/{p-5435f2a9.entry.js → p-3b691cc3.entry.js} +1 -1
- package/dist/magma-components/{p-3fd8ff0e.system.entry.js → p-3bdb541f.system.entry.js} +2 -2
- package/dist/magma-components/{p-dbd34e3b.entry.js → p-3ca004c3.entry.js} +1 -1
- package/dist/magma-components/{p-4776ac1f.entry.js → p-3caf6a26.entry.js} +1 -1
- package/dist/magma-components/{p-1faa4f71.entry.js → p-3dccd446.entry.js} +1 -1
- package/dist/magma-components/{p-396d95a1.system.entry.js → p-3dde41b0.system.entry.js} +3 -3
- package/dist/magma-components/{p-6f81c9ef.system.entry.js → p-3e8e0003.system.entry.js} +2 -2
- package/dist/magma-components/{p-21547758.system.entry.js → p-3f0e6729.system.entry.js} +3 -3
- package/dist/magma-components/{p-481897a7.entry.js → p-42ab27de.entry.js} +1 -1
- package/dist/magma-components/{p-80eea067.system.entry.js → p-430a4c4b.system.entry.js} +2 -2
- package/dist/magma-components/{p-d48c40ab.system.entry.js → p-47b05fa1.system.entry.js} +1 -1
- package/dist/magma-components/{p-e5eb2390.entry.js → p-47db3155.entry.js} +1 -1
- package/dist/magma-components/{p-2c845743.system.entry.js → p-48f86057.system.entry.js} +1 -1
- package/dist/magma-components/{p-7961c335.system.entry.js → p-4a72d72c.system.entry.js} +1 -1
- package/dist/magma-components/{p-2d3b5eb5.entry.js → p-4aa94380.entry.js} +1 -1
- package/dist/magma-components/{p-ab00b7b9.entry.js → p-4ab2eb7e.entry.js} +1 -1
- package/dist/magma-components/{p-c3c487aa.system.entry.js → p-4bea91e1.system.entry.js} +1 -1
- package/dist/magma-components/{p-f588cf9e.entry.js → p-4cd21f19.entry.js} +1 -1
- package/dist/magma-components/{p-287601bb.entry.js → p-4de89d1b.entry.js} +1 -1
- package/dist/magma-components/{p-23fabd66.system.entry.js → p-50c8f36c.system.entry.js} +1 -1
- package/dist/magma-components/{p-d0bfdb44.system.entry.js → p-5200ab23.system.entry.js} +2 -2
- package/dist/magma-components/{p-f35608b2.entry.js → p-52211fa3.entry.js} +1 -1
- package/dist/magma-components/{p-74f515c3.system.entry.js → p-53981624.system.entry.js} +2 -2
- package/dist/magma-components/p-53acdc6b.entry.js +1 -0
- package/dist/magma-components/p-5660182a.system.entry.js +1 -0
- package/dist/magma-components/{p-464e6431.entry.js → p-56c5ca6f.entry.js} +1 -1
- package/dist/magma-components/p-57e92942.system.entry.js +20 -0
- package/dist/magma-components/{p-63b10a6e.entry.js → p-59aa4994.entry.js} +1 -1
- package/dist/magma-components/{p-9a3ddc91.entry.js → p-59f06b9c.entry.js} +1 -1
- package/dist/magma-components/{p-3d95e688.system.entry.js → p-5aa78075.system.entry.js} +3 -3
- package/dist/magma-components/p-5cf87a7f.entry.js +1 -0
- package/dist/magma-components/{p-5da14e81.entry.js → p-5e8df58d.entry.js} +1 -1
- package/dist/magma-components/{p-880f3eac.system.entry.js → p-5ed74216.system.entry.js} +1 -1
- package/dist/magma-components/{p-84777b38.system.entry.js → p-5f064376.system.entry.js} +2 -2
- package/dist/magma-components/{p-8173ed07.entry.js → p-60727165.entry.js} +2 -2
- package/dist/magma-components/{p-278c362d.entry.js → p-6093aa8e.entry.js} +1 -1
- package/dist/magma-components/{p-29450db3.entry.js → p-62d9eaca.entry.js} +1 -1
- package/dist/magma-components/{p-4c6da1db.system.entry.js → p-6b402a09.system.entry.js} +9 -9
- package/dist/magma-components/p-6b55c5fe.system.entry.js +1 -0
- package/dist/magma-components/{p-3d162e99.system.entry.js → p-6d57674c.system.entry.js} +2 -2
- package/dist/magma-components/p-6d96d223.entry.js +1 -0
- package/dist/magma-components/{p-47717251.system.entry.js → p-6df26141.system.entry.js} +4 -4
- package/dist/magma-components/{p-5f8db04c.system.entry.js → p-6df7da52.system.entry.js} +1 -1
- package/dist/magma-components/{p-9250ec26.system.entry.js → p-6e751bcc.system.entry.js} +2 -2
- package/dist/magma-components/{p-656b00df.system.entry.js → p-718d6384.system.entry.js} +8 -8
- package/dist/magma-components/{p-8279056b.system.entry.js → p-71dab494.system.entry.js} +3 -3
- package/dist/magma-components/{p-b5789a7c.entry.js → p-732d09b6.entry.js} +1 -1
- package/dist/magma-components/{p-fac6f123.entry.js → p-73f4f67e.entry.js} +1 -1
- package/dist/magma-components/{p-772c18f4.entry.js → p-785fa112.entry.js} +1 -1
- package/dist/magma-components/{p-26b9f2b7.system.entry.js → p-79fd07e7.system.entry.js} +2 -2
- package/dist/magma-components/{p-0033cb92.system.entry.js → p-7acbc6ea.system.entry.js} +1 -1
- package/dist/magma-components/{p-67eb3881.entry.js → p-7dd0364b.entry.js} +1 -1
- package/dist/magma-components/{p-cbb80188.entry.js → p-7e7391fd.entry.js} +1 -1
- package/dist/magma-components/{p-f889d413.system.entry.js → p-7ec28ff1.system.entry.js} +2 -2
- package/dist/magma-components/{p-71cbc840.entry.js → p-7f74ec99.entry.js} +1 -1
- package/dist/magma-components/{p-0679c988.system.entry.js → p-7ffce9e8.system.entry.js} +1 -1
- package/dist/magma-components/{p-06ccc40d.entry.js → p-81212e34.entry.js} +1 -1
- package/dist/magma-components/{p-cf6f54e5.system.entry.js → p-8219e58f.system.entry.js} +2 -2
- package/dist/magma-components/{p-860bce85.system.entry.js → p-84711ab6.system.entry.js} +3 -3
- package/dist/magma-components/p-84bf333b.entry.js +1 -0
- package/dist/magma-components/{p-4792ff7f.entry.js → p-84d0d701.entry.js} +1 -1
- package/dist/magma-components/{p-30be5c39.entry.js → p-857ae762.entry.js} +1 -1
- package/dist/magma-components/{p-8f63f1a1.system.entry.js → p-87395a4d.system.entry.js} +1 -1
- package/dist/magma-components/{p-2431fbfa.system.entry.js → p-87831da2.system.entry.js} +1 -1
- package/dist/magma-components/{p-e39518b4.system.entry.js → p-896310aa.system.entry.js} +2 -2
- package/dist/magma-components/{p-dc1a5826.system.entry.js → p-8ac1ba5c.system.entry.js} +1 -1
- package/dist/magma-components/{p-86cf87fb.entry.js → p-8b8a6662.entry.js} +1 -1
- package/dist/magma-components/{p-62fc9695.entry.js → p-8d7093af.entry.js} +1 -1
- package/dist/magma-components/{p-8ab9ff37.system.entry.js → p-8e15c151.system.entry.js} +1 -1
- package/dist/magma-components/{p-a9ba496d.entry.js → p-8f1c529f.entry.js} +1 -1
- package/dist/magma-components/{p-94289f3d.system.entry.js → p-8f1e9021.system.entry.js} +5 -5
- package/dist/magma-components/{p-69abd1d1.entry.js → p-904c1222.entry.js} +1 -1
- package/dist/magma-components/{p-a70fb4fb.system.entry.js → p-907f06cd.system.entry.js} +9 -9
- package/dist/magma-components/{p-000c315c.entry.js → p-9332358d.entry.js} +1 -1
- package/dist/magma-components/{p-2eb4efcd.system.entry.js → p-93b9d39d.system.entry.js} +2 -2
- package/dist/magma-components/{p-d8ae0f02.system.entry.js → p-965e7a82.system.entry.js} +1 -1
- package/dist/magma-components/{p-c50e20cf.system.entry.js → p-96dfb60e.system.entry.js} +1 -1
- package/dist/magma-components/{p-835d79e5.system.entry.js → p-99bfa07e.system.entry.js} +1 -1
- package/dist/magma-components/{p-3beea731.system.entry.js → p-9c408768.system.entry.js} +1 -1
- package/dist/magma-components/{p-1d2220f0.system.entry.js → p-9e792bed.system.entry.js} +1 -1
- package/dist/magma-components/{p-8258733b.entry.js → p-9fdd477a.entry.js} +1 -1
- package/dist/magma-components/{p-f82c2b7e.system.entry.js → p-9fefa077.system.entry.js} +1 -1
- package/dist/magma-components/p-B8zYiZQY.system.js +2 -2
- package/dist/magma-components/{p-OOCOFWC0.system.js → p-CuHZXISO.system.js} +7 -3
- package/dist/magma-components/{p-DXAjcaHM.system.js → p-CxTugGM9.system.js} +1 -1
- package/dist/magma-components/{p-U5iXN1wy.js → p-Dx_cCOTw.js} +1 -1
- package/dist/magma-components/{p-Raj-urIN.js → p-OafT80hV.js} +1 -1
- package/dist/magma-components/{p-458eb34c.system.entry.js → p-a0d637b6.system.entry.js} +2 -2
- package/dist/magma-components/p-a26c05b6.entry.js +1 -0
- package/dist/magma-components/{p-ccc40c6a.system.entry.js → p-a7baf451.system.entry.js} +2 -2
- package/dist/magma-components/p-ac9feb04.entry.js +1 -0
- package/dist/magma-components/p-ad383f92.entry.js +1 -0
- package/dist/magma-components/{p-42e50f25.system.entry.js → p-ae4736a0.system.entry.js} +4 -4
- package/dist/magma-components/{p-9fc385aa.entry.js → p-b3332c5f.entry.js} +1 -1
- package/dist/magma-components/{p-d37fe692.system.entry.js → p-b3e2b68a.system.entry.js} +2 -2
- package/dist/magma-components/{p-808b9277.entry.js → p-b86144d4.entry.js} +1 -1
- package/dist/magma-components/{p-2cbd532a.system.entry.js → p-bbde5701.system.entry.js} +2 -2
- package/dist/magma-components/{p-577ae081.system.entry.js → p-bc075b3b.system.entry.js} +2 -2
- package/dist/magma-components/{p-068e30a5.entry.js → p-bc19b136.entry.js} +1 -1
- package/dist/magma-components/{p-254ee71d.entry.js → p-bcca26d9.entry.js} +1 -1
- package/dist/magma-components/{p-fc2d1134.entry.js → p-bf35627d.entry.js} +1 -1
- package/dist/magma-components/p-bfd95736.entry.js +1 -0
- package/dist/magma-components/{p-6a2d67d1.system.entry.js → p-c086a5a4.system.entry.js} +1 -1
- package/dist/magma-components/{p-41a0f896.entry.js → p-c27206ca.entry.js} +1 -1
- package/dist/magma-components/{p-762a6b7b.entry.js → p-c2758b81.entry.js} +1 -1
- package/dist/magma-components/{p-a76a9f92.system.entry.js → p-c2c693ed.system.entry.js} +2 -2
- package/dist/magma-components/{p-642925b7.system.entry.js → p-c4a5ab6e.system.entry.js} +1 -1
- package/dist/magma-components/{p-b23bee0c.entry.js → p-c58157cf.entry.js} +1 -1
- package/dist/magma-components/{p-8a9544aa.entry.js → p-c597ad47.entry.js} +1 -1
- package/dist/magma-components/{p-295d8fab.entry.js → p-c7b2ebb5.entry.js} +1 -1
- package/dist/magma-components/{p-ae3bf24c.system.entry.js → p-c8b06821.system.entry.js} +2 -2
- package/dist/magma-components/p-ca1143bc.entry.js +1 -0
- package/dist/magma-components/p-cb88fa71.entry.js +1 -0
- package/dist/magma-components/{p-471227f2.system.entry.js → p-cd783f9e.system.entry.js} +2 -2
- package/dist/magma-components/{p-bd97e368.system.entry.js → p-cd955bc7.system.entry.js} +1 -1
- package/dist/magma-components/{p-1f623b75.entry.js → p-ce42e251.entry.js} +1 -1
- package/dist/magma-components/{p-7bf46d43.entry.js → p-cf4f4561.entry.js} +1 -1
- package/dist/magma-components/{p-0d32e196.system.entry.js → p-d0a15a3a.system.entry.js} +5 -4
- package/dist/magma-components/{p-96bb36b9.entry.js → p-d218ae47.entry.js} +1 -1
- package/dist/magma-components/{p-b738d3c1.entry.js → p-d331ff5c.entry.js} +1 -1
- package/dist/magma-components/{p-34c2daa9.system.entry.js → p-d3844c9a.system.entry.js} +4 -4
- package/dist/magma-components/{p-837d31b8.entry.js → p-d3ac9a1a.entry.js} +1 -1
- package/dist/magma-components/{p-8740403e.system.entry.js → p-d4c3250f.system.entry.js} +2 -2
- package/dist/magma-components/p-d638bbb0.entry.js +1 -0
- package/dist/magma-components/{p-72ad419d.system.entry.js → p-d65e9f0a.system.entry.js} +1 -1
- package/dist/magma-components/{p-358aa5e7.entry.js → p-d87ecd68.entry.js} +1 -1
- package/dist/magma-components/{p-2e48f88d.system.entry.js → p-d93b48b4.system.entry.js} +1 -1
- package/dist/magma-components/{p-9855b517.entry.js → p-d94281cb.entry.js} +1 -1
- package/dist/magma-components/{p-55746791.entry.js → p-d9f92ff8.entry.js} +1 -1
- package/dist/magma-components/{p-4cabfdbc.entry.js → p-da9bc02a.entry.js} +1 -1
- package/dist/magma-components/{p-0148cf0a.entry.js → p-dc618cae.entry.js} +1 -1
- package/dist/magma-components/p-de38f745.entry.js +1 -0
- package/dist/magma-components/{p-0b3e4a97.system.entry.js → p-dee123c7.system.entry.js} +2 -2
- package/dist/magma-components/p-df387755.entry.js +1 -0
- package/dist/magma-components/p-dfab370b.entry.js +1 -0
- package/dist/magma-components/{p-0e887379.system.entry.js → p-e30d0684.system.entry.js} +2 -2
- package/dist/magma-components/{p-f66675f5.system.entry.js → p-e371f9e1.system.entry.js} +1 -1
- package/dist/magma-components/{p-8f7daab1.system.entry.js → p-e3b9ea0b.system.entry.js} +1 -1
- package/dist/magma-components/{p-104ba54e.system.entry.js → p-e3d262d9.system.entry.js} +2 -2
- package/dist/magma-components/{p-7fde3025.system.entry.js → p-e54587e7.system.entry.js} +3 -3
- package/dist/magma-components/{p-2cdf450c.system.entry.js → p-e5f893f9.system.entry.js} +2 -2
- package/dist/magma-components/{p-d0a93a14.system.entry.js → p-e709a52e.system.entry.js} +6 -3
- package/dist/magma-components/{p-8680f63e.entry.js → p-e8452cce.entry.js} +1 -1
- package/dist/magma-components/{p-09f621ea.entry.js → p-ea503851.entry.js} +1 -1
- package/dist/magma-components/{p-3dc81ab9.system.entry.js → p-ec44a4ea.system.entry.js} +4 -4
- package/dist/magma-components/{p-8645533a.entry.js → p-ed133270.entry.js} +1 -1
- package/dist/magma-components/{p-77939a25.system.entry.js → p-ee780f82.system.entry.js} +2 -2
- package/dist/magma-components/p-ef4ee9ca.entry.js +1 -0
- package/dist/magma-components/{p-15ffdcf6.entry.js → p-f045b018.entry.js} +1 -1
- package/dist/magma-components/{p-87ce9d6c.entry.js → p-f2211b1f.entry.js} +1 -1
- package/dist/magma-components/{p-2aac4003.entry.js → p-f267ff68.entry.js} +1 -1
- package/dist/magma-components/{p-41a28f2a.system.entry.js → p-f27de6cb.system.entry.js} +3 -3
- package/dist/magma-components/{p-1908f808.entry.js → p-f2ef884c.entry.js} +1 -1
- package/dist/magma-components/{p-9f8ce68f.entry.js → p-f3f88f32.entry.js} +1 -1
- package/dist/magma-components/{p-1eee93c8.system.entry.js → p-f40e3918.system.entry.js} +2 -2
- package/dist/magma-components/{p-6e32bf99.entry.js → p-f4181b35.entry.js} +1 -1
- package/dist/magma-components/{p-8a76097f.entry.js → p-f4351160.entry.js} +1 -1
- package/dist/magma-components/{p-c3a3caae.system.entry.js → p-f4fc9f29.system.entry.js} +1 -1
- package/dist/magma-components/{p-f2f992c2.system.entry.js → p-f5c7b147.system.entry.js} +2 -2
- package/dist/magma-components/{p-84ed22ea.system.entry.js → p-f7d5445c.system.entry.js} +1 -1
- package/dist/magma-components/{p-08370fc2.system.entry.js → p-f7e9af99.system.entry.js} +1 -1
- package/dist/magma-components/{p-95478664.system.entry.js → p-f8c85ad7.system.entry.js} +1 -1
- package/dist/magma-components/{p-c6819aad.entry.js → p-f9b601de.entry.js} +1 -1
- package/dist/magma-components/{p-357724ab.entry.js → p-fa44d0d2.entry.js} +1 -1
- package/dist/magma-components/{p-d3d74616.entry.js → p-fba648e0.entry.js} +1 -1
- package/dist/magma-components/p-fe8e3721.system.entry.js +225 -0
- package/dist/magma-components/{p-8d6470fb.system.entry.js → p-fe98a77e.system.entry.js} +2 -2
- package/dist/magma-components/{p-d980c3d2.system.entry.js → p-ff7fc1f6.system.entry.js} +2 -2
- package/dist/stats.json +3498 -1516
- package/dist/types/common/locale.d.ts +5 -0
- package/dist/types/components/mds-accordion/mds-accordion.d.ts +1 -0
- package/dist/types/components/mds-accordion-item/mds-accordion-item.d.ts +1 -0
- package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +1 -0
- package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +1 -0
- package/dist/types/components/mds-author/mds-author.d.ts +1 -0
- package/dist/types/components/mds-avatar/mds-avatar.d.ts +1 -0
- package/dist/types/components/mds-avatar-stack/mds-avatar-stack.d.ts +1 -0
- package/dist/types/components/mds-avatar-stack-item/mds-avatar-stack-item.d.ts +3 -0
- package/dist/types/components/mds-badge/mds-badge.d.ts +1 -0
- package/dist/types/components/mds-banner/mds-banner.d.ts +1 -0
- package/dist/types/components/mds-benchmark-bar/mds-benchmark-bar.d.ts +1 -0
- package/dist/types/components/mds-bibliography/mds-bibliography.d.ts +3 -0
- package/dist/types/components/mds-book/mds-book.d.ts +114 -0
- package/dist/types/components/mds-book/meta/dictionary.d.ts +4 -0
- package/dist/types/components/mds-book/meta/format.d.ts +30 -0
- package/dist/types/components/mds-book/meta/pose.d.ts +64 -0
- package/dist/types/components/mds-book/meta/spine.d.ts +33 -0
- package/dist/types/components/mds-book/meta/types.d.ts +3 -0
- package/dist/types/components/mds-book/meta/volume.d.ts +22 -0
- package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +1 -0
- package/dist/types/components/mds-breadcrumb-item/mds-breadcrumb-item.d.ts +1 -0
- package/dist/types/components/mds-button/mds-button.d.ts +1 -0
- package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +1 -0
- package/dist/types/components/mds-button-group/mds-button-group.d.ts +1 -0
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +1 -0
- package/dist/types/components/mds-calendar-cell/mds-calendar-cell.d.ts +3 -0
- package/dist/types/components/mds-card/mds-card.d.ts +1 -0
- package/dist/types/components/mds-card-content/mds-card-content.d.ts +1 -0
- package/dist/types/components/mds-card-footer/mds-card-footer.d.ts +1 -0
- package/dist/types/components/mds-card-header/mds-card-header.d.ts +1 -0
- package/dist/types/components/mds-card-media/mds-card-media.d.ts +1 -0
- package/dist/types/components/mds-chip/mds-chip.d.ts +3 -0
- package/dist/types/components/mds-details/mds-details.d.ts +1 -0
- package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +1 -0
- package/dist/types/components/mds-emoji/mds-emoji.d.ts +3 -0
- package/dist/types/components/mds-entity/mds-entity.d.ts +1 -0
- package/dist/types/components/mds-file/mds-file.d.ts +3 -0
- package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +1 -0
- package/dist/types/components/mds-filter/mds-filter.d.ts +1 -0
- package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +3 -0
- package/dist/types/components/mds-header/mds-header.d.ts +1 -0
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +1 -0
- package/dist/types/components/mds-help/mds-help.d.ts +1 -0
- package/dist/types/components/mds-horizontal-scroll/mds-horizontal-scroll.d.ts +1 -0
- package/dist/types/components/mds-hr/mds-hr.d.ts +3 -0
- package/dist/types/components/mds-icon/mds-icon.d.ts +1 -0
- package/dist/types/components/mds-img/mds-img.d.ts +1 -0
- package/dist/types/components/mds-input/mds-input.d.ts +1 -0
- package/dist/types/components/mds-input/meta/validators.d.ts +7 -2
- package/dist/types/components/mds-input/meta/validity.d.ts +3 -2
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +1 -0
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +1 -0
- package/dist/types/components/mds-input-date-range-preselection/mds-input-date-range-preselection.d.ts +1 -0
- package/dist/types/components/mds-input-field/mds-input-field.d.ts +1 -0
- package/dist/types/components/mds-input-otp/mds-input-otp.d.ts +3 -0
- package/dist/types/components/mds-input-range/mds-input-range.d.ts +1 -0
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +3 -1
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +1 -0
- package/dist/types/components/mds-input-tip/mds-input-tip.d.ts +1 -0
- package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +1 -0
- package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +3 -0
- package/dist/types/components/mds-keyboard/mds-keyboard.d.ts +1 -0
- package/dist/types/components/mds-keyboard-key/mds-keyboard-key.d.ts +3 -0
- package/dist/types/components/mds-kpi/mds-kpi.d.ts +1 -0
- package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +1 -0
- package/dist/types/components/mds-label/mds-label.d.ts +3 -0
- package/dist/types/components/mds-link/mds-link.d.ts +1 -0
- package/dist/types/components/mds-list/mds-list.d.ts +1 -0
- package/dist/types/components/mds-list-item/mds-list-item.d.ts +1 -0
- package/dist/types/components/mds-mention/mds-mention.d.ts +3 -0
- package/dist/types/components/mds-modal/mds-modal.d.ts +1 -0
- package/dist/types/components/mds-note/mds-note.d.ts +1 -0
- package/dist/types/components/mds-notification/mds-notification.d.ts +3 -0
- package/dist/types/components/mds-paginator/mds-paginator.d.ts +3 -0
- package/dist/types/components/mds-paginator-item/mds-paginator-item.d.ts +1 -0
- package/dist/types/components/mds-policy-ai/mds-policy-ai.d.ts +1 -0
- package/dist/types/components/mds-pref/mds-pref.d.ts +1 -1
- package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +3 -0
- package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +3 -0
- package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +3 -0
- package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +1 -0
- package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +3 -0
- package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +3 -0
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +1 -0
- package/dist/types/components/mds-pref-theme-item/mds-pref-theme-item.d.ts +3 -0
- package/dist/types/components/mds-price-table/mds-price-table.d.ts +1 -0
- package/dist/types/components/mds-price-table-features/mds-price-table-features.d.ts +1 -0
- package/dist/types/components/mds-price-table-features-cell/mds-price-table-features-cell.d.ts +1 -0
- package/dist/types/components/mds-price-table-features-row/mds-price-table-features-row.d.ts +1 -0
- package/dist/types/components/mds-price-table-header/mds-price-table-header.d.ts +1 -0
- package/dist/types/components/mds-price-table-list/mds-price-table-list.d.ts +1 -0
- package/dist/types/components/mds-price-table-list-item/mds-price-table-list-item.d.ts +1 -0
- package/dist/types/components/mds-progress/mds-progress.d.ts +1 -0
- package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +1 -0
- package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +1 -0
- package/dist/types/components/mds-quote/mds-quote.d.ts +1 -0
- package/dist/types/components/mds-radial-menu/mds-radial-menu.d.ts +1 -0
- package/dist/types/components/mds-radial-menu-item/mds-radial-menu-item.d.ts +3 -0
- package/dist/types/components/mds-radial-progress/mds-radial-progress.d.ts +1 -0
- package/dist/types/components/mds-separator/mds-separator.d.ts +3 -0
- package/dist/types/components/mds-spinner/mds-spinner.d.ts +3 -0
- package/dist/types/components/mds-status-bar/mds-status-bar.d.ts +1 -0
- package/dist/types/components/mds-stepper-bar/mds-stepper-bar.d.ts +1 -0
- package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +1 -0
- package/dist/types/components/mds-tab/mds-tab.d.ts +1 -0
- package/dist/types/components/mds-tab-bar/mds-tab-bar.d.ts +1 -0
- package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +1 -0
- package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +1 -0
- package/dist/types/components/mds-table/mds-table.d.ts +1 -0
- package/dist/types/components/mds-table-body/mds-table-body.d.ts +1 -0
- package/dist/types/components/mds-table-cell/mds-table-cell.d.ts +1 -0
- package/dist/types/components/mds-table-footer/mds-table-footer.d.ts +1 -0
- package/dist/types/components/mds-table-header/mds-table-header.d.ts +1 -0
- package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +1 -0
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +1 -0
- package/dist/types/components/mds-text/mds-text.d.ts +1 -0
- package/dist/types/components/mds-toast/mds-toast.d.ts +1 -0
- package/dist/types/components/mds-toast-region/mds-toast-region.d.ts +1 -0
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +1 -0
- package/dist/types/components/mds-tree/mds-tree.d.ts +1 -0
- package/dist/types/components/mds-tree-item/mds-tree-item.d.ts +1 -0
- package/dist/types/components/mds-url-view/mds-url-view.d.ts +3 -0
- package/dist/types/components/mds-usage/mds-usage.d.ts +1 -0
- package/dist/types/components/mds-video-wall/mds-video-wall.d.ts +1 -0
- package/dist/types/components/mds-zero/mds-zero.d.ts +1 -0
- package/dist/types/components.d.ts +1517 -6
- package/package.json +42 -5
- package/dist/components/p-B0AnE3sA.js +0 -1
- package/dist/components/p-BbTcXgbr.js +0 -1
- package/dist/components/p-CHHEp_7y.js +0 -1
- package/dist/components/p-D8wd-EZX.js +0 -1
- package/dist/magma-components/p-083dceb8.system.entry.js +0 -1
- package/dist/magma-components/p-0eb3558a.entry.js +0 -1
- package/dist/magma-components/p-2a964578.entry.js +0 -1
- package/dist/magma-components/p-335244bb.entry.js +0 -1
- package/dist/magma-components/p-3fb46ab9.system.entry.js +0 -1
- package/dist/magma-components/p-4d485e1f.system.entry.js +0 -1
- package/dist/magma-components/p-57839384.system.entry.js +0 -17
- package/dist/magma-components/p-632ad925.system.entry.js +0 -222
- package/dist/magma-components/p-6436178a.entry.js +0 -1
- package/dist/magma-components/p-644e64a0.entry.js +0 -1
- package/dist/magma-components/p-791a6a6f.entry.js +0 -1
- package/dist/magma-components/p-7ec1ea2e.entry.js +0 -1
- package/dist/magma-components/p-89d4b6e9.entry.js +0 -1
- package/dist/magma-components/p-984dd850.entry.js +0 -1
- package/dist/magma-components/p-a7c01334.entry.js +0 -1
- package/dist/magma-components/p-a8e1ce2f.entry.js +0 -1
- package/dist/magma-components/p-ab4b617d.entry.js +0 -1
- package/dist/magma-components/p-d6b38d8a.entry.js +0 -1
- package/dist/magma-components/p-da24a265.entry.js +0 -1
- package/dist/magma-components/p-e1383302.entry.js +0 -1
- package/dist/magma-components/p-f1aafe07.entry.js +0 -1
- package/dist/magma-components/p-f78c1699.entry.js +0 -1
package/dist/hydrate/index.mjs
CHANGED
|
@@ -7445,6 +7445,7 @@ const mdsAccordionCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
7445
7445
|
|
|
7446
7446
|
/**
|
|
7447
7447
|
* @slot - Add `mds-accordion-item` element/s.
|
|
7448
|
+
* @category structure
|
|
7448
7449
|
*/
|
|
7449
7450
|
class MdsAccordion {
|
|
7450
7451
|
constructor(hostRef) {
|
|
@@ -7519,7 +7520,7 @@ class MdsAccordion {
|
|
|
7519
7520
|
this.changedChildrenHandler(event);
|
|
7520
7521
|
}
|
|
7521
7522
|
render() {
|
|
7522
|
-
return (hAsync(Host, { key: '
|
|
7523
|
+
return (hAsync(Host, { key: '2f21e1565bc733f7b0f99a95316311cbc140308e', "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("slot", { key: '76f4e03cc4eb9ed37a3abe536e712ff3c44e5411' })));
|
|
7523
7524
|
}
|
|
7524
7525
|
get element() { return getElement(this); }
|
|
7525
7526
|
static get style() { return mdsAccordionCss(); }
|
|
@@ -7545,6 +7546,7 @@ const mdsAccordionItemCss = () => `@layer reset,vendor,theme,base,components,uti
|
|
|
7545
7546
|
* @part content - the content wrapper of the `default` slot
|
|
7546
7547
|
* @part icon - The arrow icon of the component
|
|
7547
7548
|
* @part label - The text label of the component
|
|
7549
|
+
* @parent mds-accordion
|
|
7548
7550
|
*/
|
|
7549
7551
|
class MdsAccordionItem {
|
|
7550
7552
|
constructor(hostRef) {
|
|
@@ -7567,7 +7569,7 @@ class MdsAccordionItem {
|
|
|
7567
7569
|
};
|
|
7568
7570
|
}
|
|
7569
7571
|
render() {
|
|
7570
|
-
return (hAsync(Host, { key: '
|
|
7572
|
+
return (hAsync(Host, { key: '0a23cf94fe469750ca63c3f1e677901c20f1676a', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("button", { key: 'e3020e5e7f1634598d18b57f6a8f9a7245cd5a91', "aria-controls": "content", "aria-expanded": this.selected ? 'true' : 'false', class: "action", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, hAsync("mds-text", { key: '3dd855e43e83ad9fcfbb764a644ef99be3428af1', typography: this.typography, part: "label" }, this.label), hAsync("mds-text", { key: '549ab8bdc4fe1786c9e6f7f0163d69c2e53af112', "aria-hidden": "true", class: "icon-button", typography: this.typography, part: "icon" }, hAsync("i", { key: 'ea3861f1f6c93ed31263897552fb9e28031b62e8', class: "icon", innerHTML: miBaselineKeyboardArrowRight }))), hAsync("div", { key: '2822deb189b2755dba0f7acf323bb439c0ff3e89', class: "content", id: "content" }, hAsync("div", { key: '2547588b48bc4187fa7af52b39177b409f94e5d4', "aria-labelledby": "action", class: "content-expander", part: "content", role: "region" }, hAsync("slot", { key: '92c613152daee41771f458a66d5ec3674b5b43b9' })))));
|
|
7571
7573
|
}
|
|
7572
7574
|
get element() { return getElement(this); }
|
|
7573
7575
|
static get style() { return mdsAccordionItemCss(); }
|
|
@@ -7589,6 +7591,7 @@ const mdsAccordionTimerCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
7589
7591
|
|
|
7590
7592
|
/**
|
|
7591
7593
|
* @slot - Add `mds-accordion-timer-item` element/s.
|
|
7594
|
+
* @category structure
|
|
7592
7595
|
*/
|
|
7593
7596
|
class MdsAccordionTimer {
|
|
7594
7597
|
constructor(hostRef) {
|
|
@@ -7743,7 +7746,7 @@ class MdsAccordionTimer {
|
|
|
7743
7746
|
this.playTimer();
|
|
7744
7747
|
}
|
|
7745
7748
|
render() {
|
|
7746
|
-
return (hAsync(Host, { key: '
|
|
7749
|
+
return (hAsync(Host, { key: '6045cbc3d3e98aa5e6a46b62e1e7712561d629eb' }, hAsync("slot", { key: '7fdaff834166a1b695d10c8c4e9c664b28761a1d' })));
|
|
7747
7750
|
}
|
|
7748
7751
|
get element() { return getElement(this); }
|
|
7749
7752
|
static get watchers() { return {
|
|
@@ -7774,6 +7777,7 @@ const mdsAccordionTimerItemCss = () => `@layer reset,vendor,theme,base,component
|
|
|
7774
7777
|
* @part icon - The arrow icon of the component
|
|
7775
7778
|
* @part label - The text label of the component
|
|
7776
7779
|
* @part progress - The progress bar of the component
|
|
7780
|
+
* @parent mds-accordion-timer
|
|
7777
7781
|
*/
|
|
7778
7782
|
class MdsAccordionTimerItem {
|
|
7779
7783
|
constructor(hostRef) {
|
|
@@ -7829,7 +7833,7 @@ class MdsAccordionTimerItem {
|
|
|
7829
7833
|
}
|
|
7830
7834
|
render() {
|
|
7831
7835
|
var _a;
|
|
7832
|
-
return (hAsync(Host, { key: '
|
|
7836
|
+
return (hAsync(Host, { key: '7db58bdd91d370c24ff1d24b071bf85407550f84', onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave, "pref-animation": preferenceStore.state.animation }, hAsync("div", { key: '8d314a1577d54e4082a28d26548c8c9bece263d4', class: "row" }, hAsync("mds-progress", { key: 'e8a63b093fbdb7e1c3a36beec674902741c32e35', "aria-hidden": "true", class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical", size: "sm", part: "progress" }), hAsync("div", { key: '71c333eff7bc56021b1d5c02e199be6f6eae0cc4', class: "accordion" }, hAsync("button", { key: 'b8ea4e9103e80d64cbc80a2acc53cf695126e16c', "aria-controls": "content", "aria-expanded": this.selected ? 'true' : 'false', class: "action", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, hAsync("mds-text", { key: '105274b4c0cd1de82f48bff0d4c0c1cdbb4ad896', typography: this.typography, part: "label" }, this.description), hAsync("mds-text", { key: '202e7a6be2d8db90b2c7023b4fca98e6acfada8e', "aria-hidden": "true", class: "icon-button", typography: this.typography, part: "icon" }, hAsync("i", { key: '0e2f1d27fb05a01c6d90dc440ae209075b0e40fa', class: "icon", innerHTML: miBaselineKeyboardArrowRight }))), hAsync("div", { key: '01590cf6022584555e27212d9e69dfb860d45757', class: "content", id: "content" }, hAsync("div", { key: 'ac9064529e26b114d1687eed83e3d6ce30d05d67', "aria-label": this.description, class: "content-expander", part: "content", role: "region" }, hAsync("slot", { key: '77d2114cb3847508ad60e21d738440577c6a342a' })))))));
|
|
7833
7837
|
}
|
|
7834
7838
|
static get watchers() { return {
|
|
7835
7839
|
"selected": [{
|
|
@@ -7935,6 +7939,7 @@ const mdsAuthorCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
7935
7939
|
/**
|
|
7936
7940
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot. Insert author information, name, role or other useful author infos.
|
|
7937
7941
|
* @slot avatar - Insert an avatar image, it is **recommended** to add `mds-avatar` element.
|
|
7942
|
+
* @category data
|
|
7938
7943
|
*/
|
|
7939
7944
|
class MdsAuthor {
|
|
7940
7945
|
constructor(hostRef) {
|
|
@@ -7947,7 +7952,7 @@ class MdsAuthor {
|
|
|
7947
7952
|
this.hasAvatar = hasChildWithSlot(this.hostElement, 'avatar');
|
|
7948
7953
|
}
|
|
7949
7954
|
render() {
|
|
7950
|
-
return (hAsync(Host, { key: '
|
|
7955
|
+
return (hAsync(Host, { key: '70ee5ea8dc179151a7441149ac39039ca296583b' }, hAsync("div", { key: '6bb251507ab895991598129d035202a675d4eea6', class: clsx('avatar', !this.hasAvatar && 'avatar--hidden') }, hAsync("slot", { key: 'e25f22880845c471b48666803b88924392876edf', name: "avatar", onSlotchange: this.onAvatarSlotChange })), hAsync("div", { key: '3d452517be224d5bbc0d9397b81c05b322df98e9', class: "info" }, hAsync("slot", { key: 'a13e87412ca293657df4110f74989f47be490b16' }))));
|
|
7951
7956
|
}
|
|
7952
7957
|
get hostElement() { return getElement(this); }
|
|
7953
7958
|
static get style() { return mdsAuthorCss(); }
|
|
@@ -7997,6 +8002,7 @@ const mdsAvatarCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
7997
8002
|
* @part icon - The selected icon of the avatar
|
|
7998
8003
|
* @part wrapper - The wrapper which contains media displayed
|
|
7999
8004
|
* @part media - The media displayed
|
|
8005
|
+
* @category data
|
|
8000
8006
|
*/
|
|
8001
8007
|
class MdsAvatar {
|
|
8002
8008
|
constructor(hostRef) {
|
|
@@ -8126,7 +8132,7 @@ class MdsAvatar {
|
|
|
8126
8132
|
render() {
|
|
8127
8133
|
var _a, _b;
|
|
8128
8134
|
const content = this.content();
|
|
8129
|
-
return (hAsync(Host, { key: '
|
|
8135
|
+
return (hAsync(Host, { key: 'bee1006e79abea8e8efdd758a164acf925f5be82', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast }, hAsync("div", { key: '9ed93955eb9b3c046f458f11a53ec0c80bc148f4', class: clsx('avatar', `avatar--${content}`, content === 'image' && !this.loaded ? 'avatar--pending' : 'avatar--loaded'), part: "wrapper" }, content === 'count' && (hAsync("div", { key: '72a16e4442525b2fcbdaeabdd35cf9e740d3aa99', class: "initials-text" }, hAsync("span", { key: 'f9667d0b7e325da0324f334870e72104b7125613', class: "fit" }, "+", this.count))), content === 'image' && (hAsync("mds-img", { key: '324b7b601dc2f6fa77261434ce1e4bdfd37de3b1', class: "image", loading: "lazy", onMdsImgLoadError: this.handleImgLoadError, onMdsImgLoadSuccess: this.handleImgLoadSuccess, part: "media", src: this.src })), content === 'initials' && (hAsync("div", { key: 'ae57a07ad1f6005bb15eb1c9fae34ebd437fb047', class: "initials-text" }, hAsync("span", { key: '112ccea5ca31785598d92d0435db2cce495d7eac', class: "fit" }, (_a = this.initials) === null || _a === void 0 ? void 0 : _a.substring(0, 2)))), content === 'icon' && (hAsync("mds-icon", { key: '24ceaddff9b0aa859e7bb540dccadcf78eae6fcf', class: "icon", part: "icon", name: (_b = this.icon) !== null && _b !== void 0 ? _b : '' })), content === 'fallback' && hAsync("i", { key: 'bd4028f615e14e736a1fb1565b34c8d4d5d86d63', class: "fallback-icon", innerHTML: miBaselinePerson }))));
|
|
8130
8136
|
}
|
|
8131
8137
|
get element() { return getElement(this); }
|
|
8132
8138
|
static get watchers() { return {
|
|
@@ -8164,6 +8170,7 @@ const mdsAvatarStackCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
8164
8170
|
|
|
8165
8171
|
/**
|
|
8166
8172
|
* @slot - Add `mds-avatar-stack-item` elements to display in the stack.
|
|
8173
|
+
* @category data
|
|
8167
8174
|
*/
|
|
8168
8175
|
class MdsAvatarStack {
|
|
8169
8176
|
constructor(hostRef) {
|
|
@@ -8179,7 +8186,7 @@ class MdsAvatarStack {
|
|
|
8179
8186
|
this.updateItems();
|
|
8180
8187
|
}
|
|
8181
8188
|
render() {
|
|
8182
|
-
return (hAsync(Host, { key: '
|
|
8189
|
+
return (hAsync(Host, { key: '08fad8dca40730f4af2a354755c0076861b7b3ad' }, hAsync("slot", { key: 'a39c875b0ad8533553e5652510694aad5968874f', onSlotchange: this.updateItems }), this.total !== undefined && this.total - this.itemsCount > 0 && (hAsync("mds-avatar-stack-item", { key: '19b21a0e4f14ade7dbf72a34dbe310437697d9af', count: this.total - this.itemsCount }))));
|
|
8183
8190
|
}
|
|
8184
8191
|
get host() { return getElement(this); }
|
|
8185
8192
|
static get style() { return mdsAvatarStackCss(); }
|
|
@@ -8199,6 +8206,9 @@ class MdsAvatarStack {
|
|
|
8199
8206
|
|
|
8200
8207
|
const mdsAvatarStackItemCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-avatar: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-avatar-stack-item-background:var(--mds-avatar-stack-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-avatar-stack-item-count-background-color:var(--mds-avatar-stack-count-background-color,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));--mds-avatar-stack-item-count-color:var(--mds-avatar-stack-count-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-avatar-stack-item-border:var(--mds-avatar-stack-md-border,calc(var(--spacing,.0025rem)*100));--mds-avatar-stack-item-size:var(--mds-avatar-stack-md-size,calc(var(--spacing,.0025rem)*1200));--mds-avatar-stack-item-offset:var(--mds-avatar-stack-md-offset,1.75);--mds-avatar-stack-item-offset-margin:calc(var(--mds-avatar-stack-item-size)/var(--mds-avatar-stack-item-offset));display:inline-flex;height:var(--mds-avatar-stack-item-size);position:relative;width:var(--mds-avatar-stack-item-size)}:host(:not(:first-child)){margin-left:calc(var(--mds-avatar-stack-item-size)*-1 - var(--mds-avatar-stack-item-offset-margin)*-1)}.avatar{border:var(--mds-avatar-stack-item-border) solid var(--mds-avatar-stack-item-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));box-sizing:border-box;height:var(--mds-avatar-stack-item-size);min-width:var(--mds-avatar-stack-item-size);position:absolute;width:var(--mds-avatar-stack-item-size)}:host([count]) .avatar{--mds-avatar-background-color:var(--mds-avatar-stack-item-count-background-color,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));--mds-avatar-color:var(--mds-avatar-stack-item-count-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))))}`;
|
|
8201
8208
|
|
|
8209
|
+
/**
|
|
8210
|
+
* @parent mds-avatar-stack
|
|
8211
|
+
*/
|
|
8202
8212
|
class MdsAvatarStackItem {
|
|
8203
8213
|
constructor(hostRef) {
|
|
8204
8214
|
registerInstance(this, hostRef);
|
|
@@ -8208,7 +8218,7 @@ class MdsAvatarStackItem {
|
|
|
8208
8218
|
this.tone = 'weak';
|
|
8209
8219
|
}
|
|
8210
8220
|
render() {
|
|
8211
|
-
return (hAsync(Host, { key: '
|
|
8221
|
+
return (hAsync(Host, { key: '05fab51722e7e9e5e62276db93ab0f93cdb34859' }, hAsync("mds-avatar", { key: 'f42a8842f09cb7468d9e5637d0b144815dda374c', class: "avatar", count: this.count, initials: this.initials, src: this.src, tone: this.tone, variant: this.variant })));
|
|
8212
8222
|
}
|
|
8213
8223
|
static get style() { return mdsAvatarStackItemCss(); }
|
|
8214
8224
|
static get cmpMeta() { return {
|
|
@@ -8231,6 +8241,7 @@ const mdsBadgeCss = () => `@layer reset,vendor,theme,base,components,utilities;:
|
|
|
8231
8241
|
|
|
8232
8242
|
/**
|
|
8233
8243
|
* @slot - **Deprecated**, use the `label` property instead. Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
8244
|
+
* @category tags
|
|
8234
8245
|
*/
|
|
8235
8246
|
class MdsBadge {
|
|
8236
8247
|
constructor(hostRef) {
|
|
@@ -8259,7 +8270,7 @@ class MdsBadge {
|
|
|
8259
8270
|
this.label = sanitizeLabel(newValue);
|
|
8260
8271
|
}
|
|
8261
8272
|
render() {
|
|
8262
|
-
return (hAsync(Host, { key: '
|
|
8273
|
+
return (hAsync(Host, { key: '456d67933cc3173230a2149ef2920af0f977bf11', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("mds-text", { key: '2048a2dd8db4ef19ff8d53172312a27dbcee90b6', tag: "span", typography: this.typography, variant: "info", text: this.label }, this.label || hAsync("slot", { key: 'eb1c0c93b7c80208f11171032b4288c66329234a', onSlotchange: this.onSlotChangeHandler }))));
|
|
8263
8274
|
}
|
|
8264
8275
|
get host() { return getElement(this); }
|
|
8265
8276
|
static get watchers() { return {
|
|
@@ -9126,10 +9137,18 @@ let Locale$1 = class Locale {
|
|
|
9126
9137
|
this.set = (configData) => {
|
|
9127
9138
|
this.config = configData;
|
|
9128
9139
|
};
|
|
9140
|
+
/**
|
|
9141
|
+
* The texts of a language: its own, those of its base language, or the ones of
|
|
9142
|
+
* `rollbackLanguage`. The page can name a region (`it-IT`), the config only has languages (`it`).
|
|
9143
|
+
*/
|
|
9144
|
+
this.texts = (language) => {
|
|
9145
|
+
var _a, _b;
|
|
9146
|
+
const configs = this.config;
|
|
9147
|
+
const code = language.toLowerCase();
|
|
9148
|
+
return (_b = (_a = configs[code]) !== null && _a !== void 0 ? _a : configs[code.split(/[-_]/)[0]]) !== null && _b !== void 0 ? _b : configs[this.rollbackLanguage];
|
|
9149
|
+
};
|
|
9129
9150
|
this.pluralize = (tag, context, language) => {
|
|
9130
|
-
const languagePhrase = this.
|
|
9131
|
-
? this.config[language][tag]
|
|
9132
|
-
: this.config[this.rollbackLanguage][tag];
|
|
9151
|
+
const languagePhrase = this.texts(language)[tag];
|
|
9133
9152
|
const phrases = [];
|
|
9134
9153
|
if (Array.isArray(languagePhrase)) {
|
|
9135
9154
|
phrases.push(languagePhrase[0]);
|
|
@@ -9158,9 +9177,7 @@ let Locale$1 = class Locale {
|
|
|
9158
9177
|
if (context) {
|
|
9159
9178
|
return this.pluralize(tag, context, language);
|
|
9160
9179
|
}
|
|
9161
|
-
return this.
|
|
9162
|
-
? this.config[language][tag]
|
|
9163
|
-
: this.config[this.rollbackLanguage][tag];
|
|
9180
|
+
return this.texts(language)[tag];
|
|
9164
9181
|
};
|
|
9165
9182
|
if (configData) {
|
|
9166
9183
|
this.set(configData);
|
|
@@ -9169,22 +9186,22 @@ let Locale$1 = class Locale {
|
|
|
9169
9186
|
};
|
|
9170
9187
|
|
|
9171
9188
|
const cancel$7 = "Ακύρωση";
|
|
9172
|
-
var localeEl$
|
|
9189
|
+
var localeEl$L = {
|
|
9173
9190
|
cancel: cancel$7
|
|
9174
9191
|
};
|
|
9175
9192
|
|
|
9176
9193
|
const cancel$6 = "Cancel";
|
|
9177
|
-
var localeEn$
|
|
9194
|
+
var localeEn$M = {
|
|
9178
9195
|
cancel: cancel$6
|
|
9179
9196
|
};
|
|
9180
9197
|
|
|
9181
9198
|
const cancel$5 = "Cancelar";
|
|
9182
|
-
var localeEs$
|
|
9199
|
+
var localeEs$L = {
|
|
9183
9200
|
cancel: cancel$5
|
|
9184
9201
|
};
|
|
9185
9202
|
|
|
9186
9203
|
const cancel$4 = "Annulla";
|
|
9187
|
-
var localeIt$
|
|
9204
|
+
var localeIt$M = {
|
|
9188
9205
|
cancel: cancel$4
|
|
9189
9206
|
};
|
|
9190
9207
|
|
|
@@ -9194,6 +9211,7 @@ const mdsBannerCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
9194
9211
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
9195
9212
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
9196
9213
|
* @part text - The text wrapper of the `default` and `content` slots
|
|
9214
|
+
* @category feedback
|
|
9197
9215
|
*/
|
|
9198
9216
|
class MdsBanner {
|
|
9199
9217
|
constructor(hostRef) {
|
|
@@ -9201,10 +9219,10 @@ class MdsBanner {
|
|
|
9201
9219
|
this.closeEvent = createEvent(this, "mdsBannerClose", 7);
|
|
9202
9220
|
this.km = new KeyboardManager();
|
|
9203
9221
|
this.t = new Locale$1({
|
|
9204
|
-
el: localeEl$
|
|
9205
|
-
en: localeEn$
|
|
9206
|
-
es: localeEs$
|
|
9207
|
-
it: localeIt$
|
|
9222
|
+
el: localeEl$L,
|
|
9223
|
+
en: localeEn$M,
|
|
9224
|
+
es: localeEs$L,
|
|
9225
|
+
it: localeIt$M,
|
|
9208
9226
|
});
|
|
9209
9227
|
/**
|
|
9210
9228
|
* Sets the theme variant colors
|
|
@@ -9279,7 +9297,7 @@ class MdsBanner {
|
|
|
9279
9297
|
}
|
|
9280
9298
|
render() {
|
|
9281
9299
|
var _a, _b;
|
|
9282
|
-
return (hAsync(Host, { key: '
|
|
9300
|
+
return (hAsync(Host, { key: '38e2261812c50298258f689158fd5aa89c8d9604', "aria-label": this.headline, role: this.ariaVariants[(_a = this.variant) !== null && _a !== void 0 ? _a : 'primary'].role, "aria-live": this.ariaVariants[(_b = this.variant) !== null && _b !== void 0 ? _b : 'primary'].live, "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: 'b827508e9566d3282e5c6becbc83cccdf837d5c0', class: "body" }, this.icon && hAsync("mds-icon", { key: '50c27820fa631fa094337193ff2dad8b46bbadbc', "aria-hidden": "true", class: "icon", name: this.icon }), hAsync("div", { key: 'e6f5e2478ef9b4d4e0ed428ddc573d770250b21e', class: "content" }, this.headline && (hAsync("mds-text", { key: 'bd5a249e8108fe7b8a801c8137d123b3166ceb98', "aria-hidden": "true", class: "headline", typography: "h6" }, this.headline)), hAsync("div", { key: '1e36faab19b706fa55d342d201d6e5f3e91973ab', class: "text", part: "text" }, hAsync("slot", { key: '85dd2613a5f4f7de032143c099b4286374a4f765' }))), this.deletable && (hAsync("mds-button", { key: 'e5bc724dd82fec4db5c4a36212245cd685e0c831', class: "close-button", icon: miBaselineClose, onClick: this.closeBanner, title: this.t.get('cancel'), variant: this.closeButtonVariant, tone: "text" }))), hAsync("div", { key: '581e5ab175a7899780972d602904bb2f3f9a81e2', class: clsx('actions', !this.hasActions && 'actions--hidden') }, hAsync("slot", { key: 'cb263fb11910ecff1368cccf63a36402823e0a7d', name: "action", onSlotchange: this.onActionSlotChange }))));
|
|
9283
9301
|
}
|
|
9284
9302
|
get host() { return getElement(this); }
|
|
9285
9303
|
static get watchers() { return {
|
|
@@ -9312,6 +9330,7 @@ const mdsBenchmarkBarCss = () => `@layer reset,vendor,theme,base,components,util
|
|
|
9312
9330
|
/**
|
|
9313
9331
|
* @slot - **Deprecated**, use the `label` property instead. Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
9314
9332
|
* @part progress-bar - The progress bar element
|
|
9333
|
+
* @category data
|
|
9315
9334
|
*/
|
|
9316
9335
|
class MdsBenchmarkBar {
|
|
9317
9336
|
constructor(hostRef) {
|
|
@@ -9348,7 +9367,7 @@ class MdsBenchmarkBar {
|
|
|
9348
9367
|
// the value is spoken as it is shown, the alias or the number: without an alias the progress
|
|
9349
9368
|
// announced one of its steps, in Italian whatever the page language (#983)
|
|
9350
9369
|
const valueText = (_a = this.alias) !== null && _a !== void 0 ? _a : String(this.value);
|
|
9351
|
-
return (hAsync(Host, { key: '
|
|
9370
|
+
return (hAsync(Host, { key: '0b21f13b40cee0275866e77cf39fa08c1f47a5d3' }, hAsync("div", { key: 'ea65c16581a25c8a7d53f7daac33158d8c589965', class: "infos" }, hAsync("mds-text", { key: 'e0a6ce3371469b6fe8ba58ee90116f1cac0c424c', typography: this.typography, class: "label", id: "label", truncate: "word" }, this.label || hAsync("slot", { key: '86faf441b1d529122f3bc190e9d73a8816b2fa8c', onSlotchange: this.onSlotChangeHandler })), hAsync("mds-text", { key: '132697ed05cb78a0916d56811af92929c95b9254', typography: this.typography, class: "value", truncate: "word" }, valueText)), hAsync("mds-progress", { key: '6ca655582d125e0289704c5c445d271af82515ba', "aria-labelledby": "label", "aria-valuetext": valueText, steps: "", class: "progress", variant: this.variant, progress: this.value / 100, size: this.size, part: "progress-bar" })));
|
|
9352
9371
|
}
|
|
9353
9372
|
get host() { return getElement(this); }
|
|
9354
9373
|
static get watchers() { return {
|
|
@@ -9376,6 +9395,9 @@ class MdsBenchmarkBar {
|
|
|
9376
9395
|
|
|
9377
9396
|
const mdsBibliographyCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-bibliography-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-bibliography-text-decoration-hover:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-bibliography-text-decoration:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));display:inline}.link{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));border-radius:var(--magma-radius-full,var(--radius-full,1000px));color:var(--mds-bibliography-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));-webkit-text-decoration-color:var(--mds-bibliography-text-decoration,rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140))));text-decoration-color:var(--mds-bibliography-text-decoration,rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140))));transition-duration:.2s;transition-duration:var(--duration-200,.2s);transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-property:-webkit-text-decoration,text-decoration,color,outline,outline-offset;transition-timing-function:ease-in-out}.link:hover{-webkit-text-decoration-color:var(--mds-bibliography-text-decoration-hover,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));text-decoration-color:var(--mds-bibliography-text-decoration-hover,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))))}.link:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}`;
|
|
9378
9397
|
|
|
9398
|
+
/**
|
|
9399
|
+
* @category content
|
|
9400
|
+
*/
|
|
9379
9401
|
class MdsBibliography {
|
|
9380
9402
|
constructor(hostRef) {
|
|
9381
9403
|
registerInstance(this, hostRef);
|
|
@@ -9515,7 +9537,7 @@ class MdsBibliography {
|
|
|
9515
9537
|
};
|
|
9516
9538
|
}
|
|
9517
9539
|
render() {
|
|
9518
|
-
return (hAsync(Host, { key: '
|
|
9540
|
+
return (hAsync(Host, { key: '18ac743572bae3bea7abadf036fbff1ae14a206f' }, hAsync("mds-text", { key: '4db457cc4ba75099795d5ea0481de0256dd582e3', typography: this.typography, variant: this.variant }, this.author && hAsync("span", { key: '70644adfb36a7494bd01054189f0ac57a221da5e' }, this.showAuthors(this.normalizeAuthors(this.author))), this.format === 'mla' && (hAsync("span", { key: '2f3f18eaa47dc87db21fef49daac4291249884c3' }, this.name && ' ', this.renderName(false), this.location && (hAsync("span", { key: 'd3cfbc1f1a7b0124122db4c406036e34ca511352' }, ' ', this.location, this.publisher !== undefined ? ':' : '.')), this.publisher && (hAsync("span", { key: 'c10acd14832f08f7440063aa7d0cf55a1b2251ff' }, ' ', this.publisher, this.date !== undefined ? ',' : '.')), this.date && hAsync("time", { key: 'f921d003dea7846a773a62ac6c3aa3235ad0d4c0', dateTime: this.date }, " ", this.dateFormatMLA(this.date), "."))), this.format === 'apa' && (hAsync("span", { key: '96ed8cd000a3b5199440e439991321da75629a4d' }, this.date && hAsync("time", { key: '1557d8c473225fac7c542cf9600a17c87afc9d2b', dateTime: this.date }, " (", this.dateFormatAPA(this.date), ")."), this.name && ' ', this.renderName(true), this.location && (hAsync("span", { key: 'f8685f58a66f44b93c22eee39ddf3892dbfbffff' }, ' ', this.location, this.publisher !== undefined ? ':' : '.')), this.publisher && hAsync("span", { key: '42331bbe002eb414deed747befda023518db0d7d' }, " ", this.publisher, "."))), this.format === 'turabian' && (hAsync("span", { key: '13f6be6d530e23c724798e6b730e0d73215fb4a1' }, this.name && ' ', this.renderName(true), this.location && (hAsync("span", { key: '8f11163b84ab2f82532b672b7b7cec7d39e7fa98' }, ' ', this.location, this.publisher !== undefined ? ':' : ',')), this.publisher && (hAsync("span", { key: 'dedf12fb6e202f28bdf43a71ab2eadb26c7aeeec' }, ' ', this.publisher, this.date !== undefined ? ',' : '.')), this.date && hAsync("time", { key: '947c2c2e19349d931c5afe0cc8d8b8b44a089fa4', dateTime: this.date }, " ", this.dateFormatMLA(this.date), "."))))));
|
|
9519
9541
|
}
|
|
9520
9542
|
static get style() { return mdsBibliographyCss(); }
|
|
9521
9543
|
static get cmpMeta() { return {
|
|
@@ -9539,6 +9561,728 @@ class MdsBibliography {
|
|
|
9539
9561
|
}; }
|
|
9540
9562
|
}
|
|
9541
9563
|
|
|
9564
|
+
/**
|
|
9565
|
+
* Width and height in centimetres of the named formats, always portrait: a landscape one is
|
|
9566
|
+
* written as `WxH` with the width first (`29.7x21`)
|
|
9567
|
+
*/
|
|
9568
|
+
const namedFormats = {
|
|
9569
|
+
a4: [21, 29.7],
|
|
9570
|
+
a5: [14.8, 21],
|
|
9571
|
+
b5: [17.6, 25],
|
|
9572
|
+
};
|
|
9573
|
+
/**
|
|
9574
|
+
* 17x24, the most common format of Maggioli Editore: the shape of the book before its image
|
|
9575
|
+
* loads, and without one
|
|
9576
|
+
*/
|
|
9577
|
+
const defaultBookRatio = 17 / 24;
|
|
9578
|
+
const sizePattern = /^(\d+(?:\.\d+)?)x(\d+(?:\.\d+)?)$/;
|
|
9579
|
+
const normalize$2 = (format) => (format !== null && format !== void 0 ? format : '').trim().toLowerCase();
|
|
9580
|
+
/**
|
|
9581
|
+
* The width and height of a format, in centimetres. `undefined` for `auto`, which takes the
|
|
9582
|
+
* proportions of the image, and for a value that is not a format, which falls back on `auto`
|
|
9583
|
+
*/
|
|
9584
|
+
const bookFormatSize = (format) => {
|
|
9585
|
+
const value = normalize$2(format);
|
|
9586
|
+
if (Object.prototype.hasOwnProperty.call(namedFormats, value))
|
|
9587
|
+
return namedFormats[value];
|
|
9588
|
+
const match = sizePattern.exec(value);
|
|
9589
|
+
if (match === null)
|
|
9590
|
+
return undefined;
|
|
9591
|
+
const width = Number(match[1]);
|
|
9592
|
+
const height = Number(match[2]);
|
|
9593
|
+
return width > 0 && height > 0 ? [width, height] : undefined;
|
|
9594
|
+
};
|
|
9595
|
+
/**
|
|
9596
|
+
* The proportions (width / height) of a format. `undefined` for `auto`, which takes the
|
|
9597
|
+
* proportions of the image, and for a value that is not a format, which falls back on `auto`
|
|
9598
|
+
*/
|
|
9599
|
+
const bookFormatRatio = (format) => {
|
|
9600
|
+
const size = bookFormatSize(format);
|
|
9601
|
+
return size === undefined ? undefined : size[0] / size[1];
|
|
9602
|
+
};
|
|
9603
|
+
/**
|
|
9604
|
+
* The width of the book, in centimetres, what its depth is measured against: the width of its
|
|
9605
|
+
* format, or 17 cm, the width of the most common format, for `auto`
|
|
9606
|
+
*/
|
|
9607
|
+
const bookWidth = (format) => { var _a, _b; return (_b = (_a = bookFormatSize(format)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : 17; };
|
|
9608
|
+
/**
|
|
9609
|
+
* Whether the value is one `format` accepts: `auto` (or no value), a named format or `WxH`
|
|
9610
|
+
*/
|
|
9611
|
+
const isBookFormat = (format) => {
|
|
9612
|
+
const value = normalize$2(format);
|
|
9613
|
+
return value === '' || value === 'auto' || bookFormatRatio(value) !== undefined;
|
|
9614
|
+
};
|
|
9615
|
+
/**
|
|
9616
|
+
* The image as a CSS `url()`, quoted, so a path with spaces, parentheses or quotes stays one
|
|
9617
|
+
* value in the custom property it is written into
|
|
9618
|
+
*/
|
|
9619
|
+
const cssUrl = (url) => `url("${url.replace(/[\\"]/g, '\\$&').replace(/[\n\r\f]/g, '')}")`;
|
|
9620
|
+
|
|
9621
|
+
/** The pages of a book when nothing says how many: a manual about 2.5 cm deep. */
|
|
9622
|
+
const defaultPages = 300;
|
|
9623
|
+
/** The pages a book is drawn with: past them, a wrong value would draw a sheet or a brick. */
|
|
9624
|
+
const pageRange = { max: 3000, min: 4 };
|
|
9625
|
+
/** Rigid boards, in centimetres: about 2.5 mm thick, overhanging the pages by about 3 mm. */
|
|
9626
|
+
const hardcoverBoards = { square: 0.3, thickness: 0.25 };
|
|
9627
|
+
/** Whether the value is a number of pages: a positive number, or no value at all. */
|
|
9628
|
+
const isPageCount = (pages) => pages == null || (Number.isFinite(pages) && pages > 0);
|
|
9629
|
+
/** The pages the book is drawn with: the value, whole and within range, or the default. */
|
|
9630
|
+
const pageCount = (pages) => pages != null && Number.isFinite(pages) && pages > 0
|
|
9631
|
+
? Math.max(pageRange.min, Math.min(pageRange.max, Math.round(pages)))
|
|
9632
|
+
: defaultPages;
|
|
9633
|
+
/**
|
|
9634
|
+
* The boards of a hardcover, as shares of the width of the book (`width`, in centimetres),
|
|
9635
|
+
* which is what the stylesheet draws them in: their thickness and how far they overhang the
|
|
9636
|
+
* pages. A paperback has none. The depth of the pages is the stylesheet's, from the number of
|
|
9637
|
+
* pages and the thickness of a page (--mds-book-page-weight-min and -max).
|
|
9638
|
+
*/
|
|
9639
|
+
const boardVolume = (width, hardcover) => ({
|
|
9640
|
+
board: hardcover ? hardcoverBoards.thickness / width : 0,
|
|
9641
|
+
square: hardcover ? hardcoverBoards.square / width : 0,
|
|
9642
|
+
});
|
|
9643
|
+
|
|
9644
|
+
/** The angles of each pose, after the usual shots of a book in product photography. */
|
|
9645
|
+
const bookPoses = {
|
|
9646
|
+
// standing, turned to show the spine
|
|
9647
|
+
spine: { lay: 0, tilt: -6, turn: 28 },
|
|
9648
|
+
// standing, turned the other way, to show the pages
|
|
9649
|
+
'fore-edge': { lay: 0, tilt: -6, turn: -28 },
|
|
9650
|
+
// facing the reader
|
|
9651
|
+
front: { lay: 0, tilt: 0, turn: 0 },
|
|
9652
|
+
// lying on its back, seen from above, its tail toward the reader
|
|
9653
|
+
lying: { lay: 90, tilt: -30, turn: 0 },
|
|
9654
|
+
// lying, spun on the surface to show its spine and its tail, seen from above at an angle
|
|
9655
|
+
'lying-turned': { lay: 90, tilt: -34, turn: 32 },
|
|
9656
|
+
};
|
|
9657
|
+
/** The resting pose of a pose name; a name that is not a pose rests as `spine`. */
|
|
9658
|
+
const restPose = (pose) => (Object.assign({ glare: 0, lift: 0 }, (Object.prototype.hasOwnProperty.call(bookPoses, pose !== null && pose !== void 0 ? pose : '')
|
|
9659
|
+
? bookPoses[pose]
|
|
9660
|
+
: bookPoses.spine)));
|
|
9661
|
+
/** How far a hover leans the book toward the pointer, from the middle to an edge, in degrees. */
|
|
9662
|
+
const lean = { tilt: 4, turn: 6 };
|
|
9663
|
+
/**
|
|
9664
|
+
* The turns a drag reaches from a resting pose: a standing book shows its spine or its pages,
|
|
9665
|
+
* never its back cover; a lying one spins on the surface. A drag across the whole width of the
|
|
9666
|
+
* book turns it by `dragPerWidth` degrees.
|
|
9667
|
+
*/
|
|
9668
|
+
const dragRange = (rest) => rest.lay === 0 ? { max: 64, min: -64 } : { max: rest.turn + 70, min: rest.turn - 70 };
|
|
9669
|
+
const dragPerWidth = 110;
|
|
9670
|
+
/**
|
|
9671
|
+
* The time the pose takes to cover 63% of the way to its goal, in ms: while it follows the
|
|
9672
|
+
* pointer, and when it settles back after a drag or moves to another pose.
|
|
9673
|
+
*/
|
|
9674
|
+
const easeTime = { follow: 120, settle: 260 };
|
|
9675
|
+
const normalize$1 = ([x, y, z]) => {
|
|
9676
|
+
const length = Math.hypot(x, y, z);
|
|
9677
|
+
return [x / length, y / length, z / length];
|
|
9678
|
+
};
|
|
9679
|
+
const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
9680
|
+
const radians = (degrees) => (degrees * Math.PI) / 180;
|
|
9681
|
+
/**
|
|
9682
|
+
* Toward the light, in the coordinates of CSS (y down, z toward the reader): the key light of a
|
|
9683
|
+
* product shot, in front of the book, above it and a little to the right, so the front cover in
|
|
9684
|
+
* the foreground takes the most of it and the sides a little less.
|
|
9685
|
+
*/
|
|
9686
|
+
const light = normalize$1([0.15, -0.4, 0.9]);
|
|
9687
|
+
const rotateX = ([x, y, z], degrees) => {
|
|
9688
|
+
const angle = radians(degrees);
|
|
9689
|
+
return [x, y * Math.cos(angle) - z * Math.sin(angle), y * Math.sin(angle) + z * Math.cos(angle)];
|
|
9690
|
+
};
|
|
9691
|
+
const rotateY = ([x, y, z], degrees) => {
|
|
9692
|
+
const angle = radians(degrees);
|
|
9693
|
+
return [x * Math.cos(angle) + z * Math.sin(angle), y, -x * Math.sin(angle) + z * Math.cos(angle)];
|
|
9694
|
+
};
|
|
9695
|
+
/**
|
|
9696
|
+
* Where a face points once the book is posed by `rotateX(tilt) rotateY(turn) rotateX(lay)`, as
|
|
9697
|
+
* the stylesheet poses it.
|
|
9698
|
+
*/
|
|
9699
|
+
const posed = (normal, { lay, tilt, turn }) => rotateX(rotateY(rotateX(normal, lay), turn), tilt);
|
|
9700
|
+
/** An upright face of the book, `yaw` degrees from the front cover (90 the fore edge, -90 a flat spine). */
|
|
9701
|
+
const upright = (yaw) => [Math.sin(radians(yaw)), 0, Math.cos(radians(yaw))];
|
|
9702
|
+
const faces = {
|
|
9703
|
+
bottom: [0, 1, 0],
|
|
9704
|
+
fore: upright(90),
|
|
9705
|
+
front: upright(0),
|
|
9706
|
+
spine: upright(-90),
|
|
9707
|
+
top: [0, -1, 0],
|
|
9708
|
+
};
|
|
9709
|
+
/** How much light the front cover takes at rest in a pose: the reference the faces are lit from. */
|
|
9710
|
+
const frontLight = (rest) => dot(posed(faces.front, rest), light);
|
|
9711
|
+
/**
|
|
9712
|
+
* How lit a face is, from -1 (in its own shadow) to 1, measured from the front cover at rest,
|
|
9713
|
+
* which shows the colours of its image as they are: a face turned toward the light brightens,
|
|
9714
|
+
* one turned away darkens.
|
|
9715
|
+
*/
|
|
9716
|
+
const lightOf = (normal, pose, reference) => Math.max(-1, Math.min(1, (dot(posed(normal, pose), light) - reference) * 1.4));
|
|
9717
|
+
/** How lit each face of the book is, at a pose, from the front cover of its resting pose. */
|
|
9718
|
+
const faceLight = (pose, reference) => ({
|
|
9719
|
+
bottom: lightOf(faces.bottom, pose, reference),
|
|
9720
|
+
fore: lightOf(faces.fore, pose, reference),
|
|
9721
|
+
front: lightOf(faces.front, pose, reference),
|
|
9722
|
+
spine: lightOf(faces.spine, pose, reference),
|
|
9723
|
+
top: lightOf(faces.top, pose, reference),
|
|
9724
|
+
});
|
|
9725
|
+
/** How lit each slat of a rounded spine is, from the yaw each one faces. */
|
|
9726
|
+
const slatLight = (yaws, pose, reference) => yaws.map((yaw) => lightOf(upright(yaw), pose, reference));
|
|
9727
|
+
/**
|
|
9728
|
+
* Where the reflection of the light crosses the cover, from 0 to 100: it slides across as the
|
|
9729
|
+
* book turns away from its resting pose, the way the gloss of a laminated cover moves in the
|
|
9730
|
+
* hand.
|
|
9731
|
+
*/
|
|
9732
|
+
const glarePosition = (turn, rest, pointerX) => Math.max(0, Math.min(100, 50 + (turn - rest.turn) * 0.8 + pointerX * 10));
|
|
9733
|
+
/**
|
|
9734
|
+
* One step of the pose toward its goal, whatever the frame rate: the share of the way covered
|
|
9735
|
+
* in `elapsed` ms. Close enough, it lands on the goal, so the animation can stop.
|
|
9736
|
+
*/
|
|
9737
|
+
const easePose = (pose, goal, elapsed, time) => {
|
|
9738
|
+
const share = 1 - Math.exp(-elapsed / time);
|
|
9739
|
+
const next = Object.assign({}, pose);
|
|
9740
|
+
for (const key of Object.keys(goal)) {
|
|
9741
|
+
next[key] += (goal[key] - pose[key]) * share;
|
|
9742
|
+
// a twentieth of a degree, or of a percent of lift and gloss, is past what anyone sees
|
|
9743
|
+
const close = key === 'glare' || key === 'lift' ? 0.002 : 0.05;
|
|
9744
|
+
if (Math.abs(goal[key] - next[key]) < close)
|
|
9745
|
+
next[key] = goal[key];
|
|
9746
|
+
}
|
|
9747
|
+
return next;
|
|
9748
|
+
};
|
|
9749
|
+
const samePose = (a, b) => Object.keys(a).every((key) => a[key] === b[key]);
|
|
9750
|
+
|
|
9751
|
+
/**
|
|
9752
|
+
* The arc of a rounded spine: a circle through the edges of the two boards, bowed out by
|
|
9753
|
+
* `bulge` (a share of the depth) in the middle, cut into `count` stretches. `angle` gives where
|
|
9754
|
+
* each stretch ends on the circle, counted from the front board, and `point` where that is, in
|
|
9755
|
+
* the units of a slat.
|
|
9756
|
+
*/
|
|
9757
|
+
const spineArc = (count, bulge) => {
|
|
9758
|
+
const radius = (0.25 + bulge * bulge) / (2 * bulge);
|
|
9759
|
+
const centre = radius - bulge;
|
|
9760
|
+
const half = Math.asin(0.5 / radius);
|
|
9761
|
+
return {
|
|
9762
|
+
angle: (index) => half - (2 * half * index) / count,
|
|
9763
|
+
point: (angle) => ({
|
|
9764
|
+
x: centre - radius * Math.cos(angle),
|
|
9765
|
+
z: -0.5 + radius * Math.sin(angle),
|
|
9766
|
+
}),
|
|
9767
|
+
};
|
|
9768
|
+
};
|
|
9769
|
+
/**
|
|
9770
|
+
* The slats that draw a rounded spine (see spineArc). Each slat is the chord of its stretch of
|
|
9771
|
+
* the arc, a little wider so that no seam shows between two of them, and faces outward from the
|
|
9772
|
+
* centre of the circle, which is what lights each one differently.
|
|
9773
|
+
*/
|
|
9774
|
+
const spineSlats = (count, bulge) => {
|
|
9775
|
+
const { angle, point } = spineArc(count, bulge);
|
|
9776
|
+
return Array.from({ length: count }, (_, index) => {
|
|
9777
|
+
const from = angle(index);
|
|
9778
|
+
const to = angle(index + 1);
|
|
9779
|
+
const start = point(from);
|
|
9780
|
+
const end = point(to);
|
|
9781
|
+
const middle = (from + to) / 2;
|
|
9782
|
+
return {
|
|
9783
|
+
width: Math.hypot(start.x - end.x, start.z - end.z) * 1.04,
|
|
9784
|
+
x: (start.x + end.x) / 2,
|
|
9785
|
+
yaw: (Math.atan2(-Math.cos(middle), Math.sin(middle)) * 180) / Math.PI,
|
|
9786
|
+
z: (start.z + end.z) / 2,
|
|
9787
|
+
};
|
|
9788
|
+
});
|
|
9789
|
+
};
|
|
9790
|
+
/**
|
|
9791
|
+
* The cap over an end of a rounded spine, as the clip-path of its box: the bulge across (0% at
|
|
9792
|
+
* its outermost, 100% on the edges of the boards), the depth down (from the front board, or from
|
|
9793
|
+
* the back one: the arc reads the same both ways). Its edge runs through the ends of the slats,
|
|
9794
|
+
* so the cap follows the spine and never reaches past it.
|
|
9795
|
+
*/
|
|
9796
|
+
const spineCap = (count, bulge) => {
|
|
9797
|
+
const { angle, point } = spineArc(count, bulge);
|
|
9798
|
+
const share = (value) => `${(value * 100).toFixed(3)}%`;
|
|
9799
|
+
const corners = Array.from({ length: count + 1 }, (_, index) => {
|
|
9800
|
+
const { x, z } = point(angle(index));
|
|
9801
|
+
return `${share(1 + x / bulge)} ${share(-z)}`;
|
|
9802
|
+
});
|
|
9803
|
+
return `polygon(${corners.join(', ')})`;
|
|
9804
|
+
};
|
|
9805
|
+
/** How far the spine of a hardcover bows out, as a share of the depth of the book. */
|
|
9806
|
+
const spineBulge = 0.14;
|
|
9807
|
+
/** The slats of the spine of a hardcover. */
|
|
9808
|
+
const hardcoverSlats = spineSlats(6, spineBulge);
|
|
9809
|
+
/** The caps over the ends of the spine of a hardcover, on the same arc as its slats. */
|
|
9810
|
+
const hardcoverCap = spineCap(6, spineBulge);
|
|
9811
|
+
|
|
9812
|
+
const book$3 = "Βιβλίο";
|
|
9813
|
+
const byAuthor$3 = "{{{name}}}, {{{author}}}";
|
|
9814
|
+
var localeEl$K = {
|
|
9815
|
+
book: book$3,
|
|
9816
|
+
byAuthor: byAuthor$3
|
|
9817
|
+
};
|
|
9818
|
+
|
|
9819
|
+
const book$2 = "Book";
|
|
9820
|
+
const byAuthor$2 = "{{{name}}} by {{{author}}}";
|
|
9821
|
+
var localeEn$L = {
|
|
9822
|
+
book: book$2,
|
|
9823
|
+
byAuthor: byAuthor$2
|
|
9824
|
+
};
|
|
9825
|
+
|
|
9826
|
+
const book$1 = "Libro";
|
|
9827
|
+
const byAuthor$1 = "{{{name}}} de {{{author}}}";
|
|
9828
|
+
var localeEs$K = {
|
|
9829
|
+
book: book$1,
|
|
9830
|
+
byAuthor: byAuthor$1
|
|
9831
|
+
};
|
|
9832
|
+
|
|
9833
|
+
const book = "Libro";
|
|
9834
|
+
const byAuthor = "{{{name}}} di {{{author}}}";
|
|
9835
|
+
var localeIt$L = {
|
|
9836
|
+
book: book,
|
|
9837
|
+
byAuthor: byAuthor
|
|
9838
|
+
};
|
|
9839
|
+
|
|
9840
|
+
const mdsBookCss = () => `@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-font-weight:initial}}}: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([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]){cursor:auto;touch-action:auto}:host([pref-consumption=low]){cursor:auto;touch-action:auto}:host([pref-consumption=low]) .gloss,:host([pref-consumption=medium]) .gloss{display:none}:host([pref-consumption=low]) .scene,:host([pref-consumption=medium]) .scene{filter:none}:host{--mds-book-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-book-paper-color:#faf8f2;--mds-book-text-color:rgb(var(--magma-accent-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-book-page-weight-max:.05;--mds-book-page-weight-min:.1;--private-book-grain:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='a'%3E%3CfeTurbulence baseFrequency='1.1' numOctaves='2' stitchTiles='stitch' type='fractalNoise'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");--private-book-glare:0;--private-book-glare-x:50;--private-book-lay:0deg;--private-book-lie:0;--private-book-lift:0;--private-book-stand:1;--private-book-tilt:-6deg;--private-book-turn:28deg;aspect-ratio:var(--private-book-ratio,17/24);cursor:ew-resize;display:block;min-width:0;touch-action:pan-y;-webkit-user-select:none;user-select:none}:host([pose=fore-edge]){--private-book-turn:-28deg}:host([pose=front]){--private-book-tilt:0deg;--private-book-turn:0deg}:host([pose=lying]){--private-book-lay:90deg;--private-book-lie:1;--private-book-stand:0;--private-book-tilt:-30deg;--private-book-turn:0deg}:host([pose=lying-turned]){--private-book-lay:90deg;--private-book-lie:1;--private-book-stand:0;--private-book-tilt:-34deg;--private-book-turn:32deg}.scene{contain-intrinsic-inline-size:calc(var(--spacing,.0025rem)*5000);container-type:inline-size;filter:drop-shadow(0 1.2cqi 2cqi rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.08));position:relative}.scene--dragging{-webkit-user-select:none;user-select:none}.stage{perspective:600cqi;perspective-origin:50% -80%}.book{--private-book-binding:var(--mds-book-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--private-book-bulge:0cqi;--private-book-height:calc(100cqi/var(--private-book-ratio));--private-book-page-weight:calc(var(--mds-book-page-weight-min,.1) + (var(--mds-book-page-weight-max,.05) - var(--mds-book-page-weight-min,.1))*(min(var(--private-book-page-count), 1000) - 1)/999);--private-book-pages-mm:calc(var(--private-book-page-count)*var(--private-book-page-weight));--private-book-pages:calc(var(--private-book-pages-mm)/var(--private-book-width-mm)*100cqi);--private-book-depth:calc(var(--private-book-pages) + var(--private-book-board)*2);--private-book-solid:linear-gradient(var(--mds-book-spine-color),var(--mds-book-spine-color));--private-book-wrap:var(--private-book-solid,var(--private-book-cover,none));aspect-ratio:var(--private-book-ratio);position:relative;transform:rotateX(var(--private-book-tilt)) rotateY(var(--private-book-turn)) rotateX(var(--private-book-lay));transform-origin:50% 50% calc(var(--private-book-depth)/-2);transform-style:preserve-3d;width:100%}:host([binding=hardcover]) .book{--private-book-bulge:calc(var(--private-book-depth)*0.14)}.body{inset:0;transform:translate3d(0,calc(var(--private-book-lift)*var(--private-book-stand)*-3cqi),calc(var(--private-book-lift)*var(--private-book-lie)*3cqi));transform-style:preserve-3d}.body,.floor{position:absolute}.floor{background-color:rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.27);border-radius:1cqi;box-shadow:0 0 3cqi .6cqi rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.34),0 0 9cqi 2cqi rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.1);left:0;pointer-events:none;top:0;transform-origin:0 0}.floor--stand{height:var(--private-book-depth);opacity:calc(var(--private-book-stand)*(1 - var(--private-book-lift)*0.6));transform:translate3d(0,var(--private-book-height),calc(var(--private-book-depth)*-1)) rotateX(90deg);width:100%}.floor--lie,:host([pose=lying-turned]) .floor--stand,:host([pose=lying]) .floor--stand{display:none}:host([pose=lying-turned]) .floor--lie,:host([pose=lying]) .floor--lie{display:block}.floor--lie{height:100%;opacity:calc(var(--private-book-lie)*(1 - var(--private-book-lift)*0.6));transform:translateZ(calc(var(--private-book-depth)*-1 - .2cqi));width:100%}.book--pending{--private-book-binding:rgb(var(--magma-surface-sunken,var(--surface-neutral-sunken,232 232 232)))}.face{--private-book-light:0;backface-visibility:hidden;left:0;position:absolute;top:0;transform-origin:0 0}.lit-front{--private-book-light:var(--private-book-front-light,0)}.lit-top{--private-book-light:var(--private-book-top-light,0)}.lit-bottom{--private-book-light:var(--private-book-bottom-light,0)}.lit-fore{--private-book-light:var(--private-book-fore-light,0)}.lit-spine{--private-book-light:var(--private-book-spine-light,0)}.shade{background-color:rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5)));inset:0;opacity:calc(max(0, var(--private-book-light) * -1)*.24);pointer-events:none;position:absolute}.front{background-color:var(--private-book-binding);height:100%;overflow:hidden;width:100%}.gloss{background-image:linear-gradient(105deg,#0000 34%,var(--mds-book-paper-color,#faf8f2) 44%,var(--mds-book-paper-color,#faf8f2) 50%,var(--mds-book-paper-color,#faf8f2) 56%,#0000 66%);height:100%;left:0;mix-blend-mode:screen;opacity:var(--private-book-glare);pointer-events:none;position:absolute;top:0;translate:calc(var(--private-book-glare-x)*-.6%) 0;width:250%}@supports (color:color-mix(in lab,red,red)){.gloss{background-image:linear-gradient(105deg,#0000 34%,color-mix(in srgb,var(--mds-book-paper-color,#faf8f2) 6%,#0000) 44%,color-mix(in srgb,var(--mds-book-paper-color,#faf8f2) 14%,#0000) 50%,color-mix(in srgb,var(--mds-book-paper-color,#faf8f2) 6%,#0000) 56%,#0000 66%)}}.front:after{background-image:linear-gradient(to right,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.12),#0000 1.2cqi,var(--mds-book-paper-color,#faf8f2) 1.6cqi,#0000 2.4cqi),linear-gradient(105deg,var(--mds-book-paper-color,#faf8f2),#0000 45%);content:"";inset:0;pointer-events:none;position:absolute}@supports (color:color-mix(in lab,red,red)){.front:after{background-image:linear-gradient(to right,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.12),#0000 1.2cqi,color-mix(in srgb,var(--mds-book-paper-color,#faf8f2) 18%,#0000) 1.6cqi,#0000 2.4cqi),linear-gradient(105deg,color-mix(in srgb,var(--mds-book-paper-color,#faf8f2) 16%,#0000),#0000 45%)}}:host([binding=hardcover]) .front:after{background-image:linear-gradient(to right,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.2),rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.04) 2.6cqi,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.32) 3.4cqi,var(--mds-book-paper-color,#faf8f2) 4cqi,#0000 5cqi),linear-gradient(105deg,var(--mds-book-paper-color,#faf8f2),#0000 45%)}@supports (color:color-mix(in lab,red,red)){:host([binding=hardcover]) .front:after{background-image:linear-gradient(to right,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.2),rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.04) 2.6cqi,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.32) 3.4cqi,color-mix(in srgb,var(--mds-book-paper-color,#faf8f2) 28%,#0000) 4cqi,#0000 5cqi),linear-gradient(105deg,color-mix(in srgb,var(--mds-book-paper-color,#faf8f2) 16%,#0000),#0000 45%)}}.cover{object-fit:cover;-webkit-user-drag:none;display:block;height:100%;width:100%}.drawn-cover{color:var(--mds-book-text-color,rgb(var(--magma-accent-on-emphasis,var(--tone-neutral-seed,255 255 255))));display:flex;flex-direction:column;gap:3cqi;height:100%;padding:12cqi 9cqi 9cqi 12cqi}.drawn-author{font-size:5cqi;line-height:1.2}.drawn-name{--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700);-webkit-line-clamp:6;line-clamp:6;overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;font-size:10cqi;line-height:1.1;overflow:hidden}.drawn-publisher{font-size:4.5cqi;margin-top:auto}.board-bottom,.board-fore,.board-top,.cap,.slat{background-color:var(--private-book-binding);background-image:var(--private-book-wrap);background-position:var(--private-book-wrap-position);background-repeat:no-repeat;background-size:var(--private-book-wrap-size)}.board-bottom,.board-top{--private-book-wrap-size:100% 4000%;height:var(--private-book-board);width:100%}.board-top{--private-book-wrap-position:center top}.board-bottom{--private-book-wrap-position:center bottom}.board-top--front{transform:translateZ(calc(var(--private-book-board)*-1)) rotateX(90deg)}.board-top--back{transform:translateZ(calc(var(--private-book-depth)*-1)) rotateX(90deg)}.board-bottom--front{transform:translateY(var(--private-book-height)) rotateX(-90deg)}.board-bottom--back{transform:translate3d(0,var(--private-book-height),calc(var(--private-book-board) - var(--private-book-depth))) rotateX(-90deg)}.board-fore{--private-book-wrap-position:right center;--private-book-wrap-size:4000% 100%;height:100%;width:var(--private-book-board)}.board-fore--front{transform:translate(100cqi)rotateY(90deg)}.board-fore--back{transform:translate3d(100cqi,0,calc(var(--private-book-board) - var(--private-book-depth))) rotateY(90deg)}.endpaper{background-color:var(--mds-book-paper-color,#faf8f2);background-image:linear-gradient(var(--private-book-endpaper-fall),#0000,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.22))}@supports (color:color-mix(in lab,red,red)){.endpaper{background-color:color-mix(in srgb,var(--mds-book-paper-color,#faf8f2),rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))) 5%)}}.endpaper--top{--private-book-endpaper-fall:to bottom;transform:translateZ(calc(var(--private-book-board) - var(--private-book-depth)))}.endpaper--bottom,.endpaper--top{height:var(--private-book-square);width:100%}.endpaper--bottom{--private-book-endpaper-fall:to top;transform:translate3d(0,calc(var(--private-book-height) - var(--private-book-square)),calc(var(--private-book-board) - var(--private-book-depth)))}.endpaper--fore{--private-book-endpaper-fall:to left;height:100%;transform:translate3d(calc(100cqi - var(--private-book-square)),0,calc(var(--private-book-board) - var(--private-book-depth)));width:var(--private-book-square)}.pages-bottom,.pages-fore,.pages-top{background-color:var(--mds-book-paper-color,#faf8f2);background-repeat:no-repeat,repeat,no-repeat;background-size:100% 100%,auto,100% 100%}.pages-bottom,.pages-top{background-image:linear-gradient(to bottom,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.16),#0000 22%,#0000 78%,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.16)),var(--private-book-grain),repeating-linear-gradient(to bottom,#0000 0 .45cqi,var(--mds-book-paper-color,#faf8f2) .45cqi .55cqi);height:var(--private-book-pages);width:calc(100cqi - var(--private-book-square))}@supports (color:color-mix(in lab,red,red)){.pages-bottom,.pages-top{background-image:linear-gradient(to bottom,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.16),#0000 22%,#0000 78%,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.16)),var(--private-book-grain),repeating-linear-gradient(to bottom,#0000 0 .45cqi,color-mix(in srgb,var(--mds-book-paper-color,#faf8f2),rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))) 9%) .45cqi .55cqi)}}.pages-top{transform:translate3d(0,var(--private-book-square),calc(var(--private-book-board) - var(--private-book-depth))) rotateX(90deg)}.pages-bottom{transform:translate3d(0,calc(var(--private-book-height) - var(--private-book-square)),calc(var(--private-book-board)*-1)) rotateX(-90deg)}.pages-bottom:before,.pages-top:before{background-image:repeating-linear-gradient(to bottom,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.55) 0 .35cqi,var(--mds-book-paper-color,#faf8f2) .35cqi .7cqi);bottom:0;content:"";left:0;position:absolute;top:0;width:1cqi}.pages-fore{background-image:linear-gradient(to right,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.16),#0000 22%,#0000 78%,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.16)),var(--private-book-grain),repeating-linear-gradient(to right,#0000 0 .45cqi,var(--mds-book-paper-color,#faf8f2) .45cqi .55cqi);height:calc(100% - var(--private-book-square)*2);transform:translate3d(calc(100cqi - var(--private-book-square)),var(--private-book-square),calc(var(--private-book-board)*-1)) rotateY(90deg);width:var(--private-book-pages)}@supports (color:color-mix(in lab,red,red)){.pages-fore{background-image:linear-gradient(to right,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.16),#0000 22%,#0000 78%,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.16)),var(--private-book-grain),repeating-linear-gradient(to right,#0000 0 .45cqi,color-mix(in srgb,var(--mds-book-paper-color,#faf8f2),rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))) 9%) .45cqi .55cqi)}}.pages-flush:after,.pages-flush:before{background-color:var(--private-book-binding);background-image:var(--private-book-wrap);background-position:var(--private-book-wrap-position);background-repeat:no-repeat;background-size:var(--private-book-wrap-size);content:"";position:absolute}.pages-flush--across{--private-book-wrap-size:100% 4000%;height:var(--private-book-depth);width:100%}.pages-flush--across:after,.pages-flush--across:before{height:1px;inset:0 0 auto;width:auto}.pages-flush--across:after{bottom:0;top:auto}.pages-top.pages-flush{--private-book-wrap-position:center top;transform:translateZ(calc(var(--private-book-depth)*-1)) rotateX(90deg)}.pages-bottom.pages-flush{--private-book-wrap-position:center bottom;transform:translateY(var(--private-book-height)) rotateX(-90deg)}.pages-flush--along{--private-book-wrap-position:right center;--private-book-wrap-size:4000% 100%;height:100%;transform:translate(100cqi)rotateY(90deg);width:var(--private-book-depth)}.pages-flush--along:after,.pages-flush--along:before{bottom:0;left:0;top:0;width:1px}.pages-flush--along:after{left:auto;right:0}.spine,.spine-label{box-sizing:border-box;display:flex;font-size:min(calc(var(--private-book-depth)*.42),4.5cqi);height:100%;justify-content:center;padding-block:7cqi;width:var(--private-book-depth)}.spine{background-color:var(--private-book-binding);background-image:linear-gradient(to right,rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.1),#0000 .6cqi,#0000 calc(100% - .6cqi),rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.1)),var(--private-book-wrap);background-position:0 0,0;background-repeat:no-repeat;background-size:100% 100%,4000% 100%;transform:translateZ(calc(var(--private-book-depth)*-1)) rotateY(-90deg)}.slat{--private-book-wrap-position:left center;--private-book-wrap-size:4000% 100%;height:100%;transform:translate3d(calc(var(--private-book-slat-x)*var(--private-book-depth)),0,calc(var(--private-book-slat-z)*var(--private-book-depth))) rotateY(var(--private-book-slat-yaw)) translateX(-50%);width:calc(var(--private-book-slat-width)*var(--private-book-depth))}.spine-label{transform:translate3d(calc(var(--private-book-bulge)*-1 - .2cqi),0,calc(var(--private-book-depth)*-1)) rotateY(-90deg)}.cap{--private-book-wrap-position:left top;--private-book-wrap-size:4000% 4000%;height:var(--private-book-depth);width:var(--private-book-bulge)}.cap--top{transform:translate3d(calc(var(--private-book-bulge)*-1),0,calc(var(--private-book-depth)*-1)) rotateX(90deg)}.cap--bottom{transform:translate3d(calc(var(--private-book-bulge)*-1),var(--private-book-height),0) rotateX(-90deg)}.spine-text{align-items:center;color:var(--mds-book-text-color,rgb(var(--magma-accent-on-emphasis,var(--tone-neutral-seed,255 255 255))));display:flex;gap:.8lh;line-height:1.2;min-block-size:0;opacity:clamp(0,(var(--private-book-pages-mm) - 5) * 2,1);text-shadow:0 0 .3lh rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.4);writing-mode:vertical-rl}.spine-text>span{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spine-author{flex-shrink:4}.spine-name{--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700)}.spine-publisher{flex-shrink:0;margin-inline-start:auto}@property --tw-font-weight{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){cursor:auto;touch-action:auto}}`;
|
|
9841
|
+
|
|
9842
|
+
/**
|
|
9843
|
+
* @part cover - The native `<img>` that shows the front cover
|
|
9844
|
+
* @category content
|
|
9845
|
+
*/
|
|
9846
|
+
class MdsBook {
|
|
9847
|
+
constructor(hostRef) {
|
|
9848
|
+
registerInstance(this, hostRef);
|
|
9849
|
+
this.imageError = false;
|
|
9850
|
+
// The pose is animated here, not in CSS: the light on each face and the gloss of the cover
|
|
9851
|
+
// follow the angle frame by frame, which a transition of the transform alone cannot do. It
|
|
9852
|
+
// eases toward its goal, and runs only while it moves, as the 3D card of the docs home does.
|
|
9853
|
+
// Only opacities and transforms change on the way, which the compositor applies without a
|
|
9854
|
+
// repaint.
|
|
9855
|
+
this.current = restPose();
|
|
9856
|
+
this.dragged = false;
|
|
9857
|
+
this.goal = restPose();
|
|
9858
|
+
this.hovering = false;
|
|
9859
|
+
// where the pointer is on the book, from -1 to 1 on each axis
|
|
9860
|
+
this.pointer = { x: 0, y: 0 };
|
|
9861
|
+
this.slats = [];
|
|
9862
|
+
this.t = new Locale$1({
|
|
9863
|
+
el: localeEl$K,
|
|
9864
|
+
en: localeEn$L,
|
|
9865
|
+
es: localeEs$K,
|
|
9866
|
+
it: localeIt$L,
|
|
9867
|
+
});
|
|
9868
|
+
/**
|
|
9869
|
+
* How the book is bound: a thin flexible cover flush with the pages, or rigid boards a little
|
|
9870
|
+
* larger than the page block, with a rounded spine
|
|
9871
|
+
*/
|
|
9872
|
+
this.binding = 'paperback';
|
|
9873
|
+
/**
|
|
9874
|
+
* The proportions of the book. `auto` takes them from the image; a named format (`a4`, `a5`,
|
|
9875
|
+
* `b5`) is portrait; any other one is `WxH` in centimetres, the order of the two numbers being
|
|
9876
|
+
* the orientation (`17x24` portrait, `24x17` landscape, `21x21` square)
|
|
9877
|
+
* @example '17x24'
|
|
9878
|
+
*/
|
|
9879
|
+
this.format = 'auto';
|
|
9880
|
+
/**
|
|
9881
|
+
* Specifies whether a browser should load the cover immediately or defer it until it is near
|
|
9882
|
+
* the viewport
|
|
9883
|
+
*/
|
|
9884
|
+
this.loading = 'lazy';
|
|
9885
|
+
/**
|
|
9886
|
+
* The number of pages, which sets how deep the book is, against the width of its format (17 cm
|
|
9887
|
+
* for `auto`). A page is as thick as `--mds-book-page-weight-min` at 1 page, going to
|
|
9888
|
+
* `--mds-book-page-weight-max` at 1000 pages and more, in proportion: by default from 0.1 mm,
|
|
9889
|
+
* the bulky paper of a short book, to 0.05 mm, the thin paper of a volume, so 64 pages make
|
|
9890
|
+
* 6 mm, 300 pages 2.5 cm and 1000 pages 5 cm. A spine under 5 mm deep carries no text
|
|
9891
|
+
*/
|
|
9892
|
+
this.pages = 300;
|
|
9893
|
+
/**
|
|
9894
|
+
* How the book is shown: standing, turned to show its spine (`spine`) or its pages
|
|
9895
|
+
* (`fore-edge`), or facing the reader (`front`); lying on its back, seen from above, its tail
|
|
9896
|
+
* toward the reader (`lying`) or spun on the surface (`lying-turned`). A drag turns it from
|
|
9897
|
+
* there, and it goes back when released
|
|
9898
|
+
*/
|
|
9899
|
+
this.pose = 'spine';
|
|
9900
|
+
// Out of the window, or of the frame the page is in, the pointer is no longer ours: its
|
|
9901
|
+
// release would never reach the book, which would go on turning when it comes back. The
|
|
9902
|
+
// drag ends there, and when the window loses the focus or is hidden.
|
|
9903
|
+
this.watchDrag = () => {
|
|
9904
|
+
var _a;
|
|
9905
|
+
(_a = this.dragWatch) === null || _a === void 0 ? void 0 : _a.abort();
|
|
9906
|
+
this.dragWatch = new AbortController();
|
|
9907
|
+
const { signal } = this.dragWatch;
|
|
9908
|
+
const leave = () => {
|
|
9909
|
+
this.hovering = false;
|
|
9910
|
+
this.pointer = { x: 0, y: 0 };
|
|
9911
|
+
this.endDrag(false);
|
|
9912
|
+
};
|
|
9913
|
+
const out = (ev) => {
|
|
9914
|
+
if (ev.relatedTarget === null)
|
|
9915
|
+
leave();
|
|
9916
|
+
};
|
|
9917
|
+
window.addEventListener('pointerout', out, { signal });
|
|
9918
|
+
window.addEventListener('mouseout', out, { signal });
|
|
9919
|
+
window.addEventListener('blur', leave, { signal });
|
|
9920
|
+
document.addEventListener('visibilitychange', () => document.hidden && leave(), { signal });
|
|
9921
|
+
};
|
|
9922
|
+
// the drag is over: released over the page (`clicked`, which takes the click that follows if
|
|
9923
|
+
// the book turned), or lost
|
|
9924
|
+
this.endDrag = (clicked) => {
|
|
9925
|
+
var _a, _b;
|
|
9926
|
+
if (this.drag === undefined)
|
|
9927
|
+
return;
|
|
9928
|
+
this.dragged = clicked;
|
|
9929
|
+
this.drag = undefined;
|
|
9930
|
+
(_a = this.dragWatch) === null || _a === void 0 ? void 0 : _a.abort();
|
|
9931
|
+
this.dragWatch = undefined;
|
|
9932
|
+
(_b = this.scene) === null || _b === void 0 ? void 0 : _b.classList.remove('scene--dragging');
|
|
9933
|
+
this.aim();
|
|
9934
|
+
};
|
|
9935
|
+
// reduced, the book keeps its resting pose: the preference of the page, or the system's when
|
|
9936
|
+
// the page has no controller or follows the system
|
|
9937
|
+
this.reducedMotion = () => {
|
|
9938
|
+
const preference = this.host.getAttribute('pref-animation');
|
|
9939
|
+
if (preference === 'reduce')
|
|
9940
|
+
return true;
|
|
9941
|
+
if (preference !== null && preference !== 'system')
|
|
9942
|
+
return false;
|
|
9943
|
+
return (typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches);
|
|
9944
|
+
};
|
|
9945
|
+
// The consumption preference sets how much the book costs: at `low` it is drawn once, in its
|
|
9946
|
+
// pose, and never animated; at `medium` it moves without the gloss, whose band repaints the
|
|
9947
|
+
// cover; at `high`, the default on a page without the controller, it does everything.
|
|
9948
|
+
this.consumption = () => { var _a; return (_a = this.host.getAttribute('pref-consumption')) !== null && _a !== void 0 ? _a : 'high'; };
|
|
9949
|
+
this.still = () => this.reducedMotion() || this.consumption() === 'low';
|
|
9950
|
+
// the goal of the pose, from what the pointer does: resting, hovered, dragged
|
|
9951
|
+
this.aim = () => {
|
|
9952
|
+
const rest = restPose(this.pose);
|
|
9953
|
+
if (this.still()) {
|
|
9954
|
+
this.current = this.goal = rest;
|
|
9955
|
+
this.writePose();
|
|
9956
|
+
return;
|
|
9957
|
+
}
|
|
9958
|
+
const active = this.hovering || this.drag !== undefined;
|
|
9959
|
+
const glare = this.drag !== undefined ? 1 : this.hovering ? 0.45 : 0;
|
|
9960
|
+
this.goal = {
|
|
9961
|
+
glare: this.consumption() === 'high' ? glare : 0,
|
|
9962
|
+
lay: rest.lay,
|
|
9963
|
+
lift: active ? 1 : 0,
|
|
9964
|
+
tilt: this.hovering ? rest.tilt - this.pointer.y * lean.tilt : rest.tilt,
|
|
9965
|
+
turn: this.drag !== undefined
|
|
9966
|
+
? this.goal.turn
|
|
9967
|
+
: this.hovering
|
|
9968
|
+
? rest.turn + this.pointer.x * lean.turn
|
|
9969
|
+
: rest.turn,
|
|
9970
|
+
};
|
|
9971
|
+
this.wake();
|
|
9972
|
+
};
|
|
9973
|
+
this.wake = () => {
|
|
9974
|
+
var _a;
|
|
9975
|
+
(_a = this.frame) !== null && _a !== void 0 ? _a : (this.frame = requestAnimationFrame(this.tick));
|
|
9976
|
+
};
|
|
9977
|
+
this.tick = (time) => {
|
|
9978
|
+
this.frame = undefined;
|
|
9979
|
+
const elapsed = this.lastTime === undefined ? 1000 / 60 : time - this.lastTime;
|
|
9980
|
+
const settling = this.drag === undefined && !this.hovering;
|
|
9981
|
+
this.current = easePose(this.current, this.goal, elapsed, settling ? easeTime.settle : easeTime.follow);
|
|
9982
|
+
this.writePose();
|
|
9983
|
+
if (samePose(this.current, this.goal)) {
|
|
9984
|
+
this.lastTime = undefined;
|
|
9985
|
+
return;
|
|
9986
|
+
}
|
|
9987
|
+
this.lastTime = time;
|
|
9988
|
+
this.wake();
|
|
9989
|
+
};
|
|
9990
|
+
// written on the element, not through render: the pose changes far more often than a book
|
|
9991
|
+
// needs to render
|
|
9992
|
+
this.writePose = () => {
|
|
9993
|
+
var _a;
|
|
9994
|
+
const style = (_a = this.scene) === null || _a === void 0 ? void 0 : _a.style;
|
|
9995
|
+
if (!style)
|
|
9996
|
+
return;
|
|
9997
|
+
const rest = restPose(this.pose);
|
|
9998
|
+
const reference = frontLight(rest);
|
|
9999
|
+
const { glare, lay, lift, tilt, turn } = this.current;
|
|
10000
|
+
const lights = faceLight(this.current, reference);
|
|
10001
|
+
style.setProperty('--private-book-lay', `${lay.toFixed(2)}deg`);
|
|
10002
|
+
style.setProperty('--private-book-turn', `${turn.toFixed(2)}deg`);
|
|
10003
|
+
style.setProperty('--private-book-tilt', `${tilt.toFixed(2)}deg`);
|
|
10004
|
+
style.setProperty('--private-book-lift', lift.toFixed(3));
|
|
10005
|
+
// how far the book is lying down, from 0 standing to 1 lying: which surface it rests on,
|
|
10006
|
+
// so where its shadow falls and which way it rises
|
|
10007
|
+
const lying = Math.max(0, Math.min(1, lay / 90));
|
|
10008
|
+
style.setProperty('--private-book-lie', lying.toFixed(3));
|
|
10009
|
+
style.setProperty('--private-book-stand', (1 - lying).toFixed(3));
|
|
10010
|
+
style.setProperty('--private-book-glare', glare.toFixed(3));
|
|
10011
|
+
style.setProperty('--private-book-glare-x', glarePosition(turn, rest, this.pointer.x).toFixed(1));
|
|
10012
|
+
for (const face of Object.keys(lights)) {
|
|
10013
|
+
style.setProperty(`--private-book-${face}-light`, lights[face].toFixed(3));
|
|
10014
|
+
}
|
|
10015
|
+
// each slat of a rounded spine faces its own way, so each one takes its own light
|
|
10016
|
+
const slats = slatLight(hardcoverSlats.map(({ yaw }) => yaw), this.current, reference);
|
|
10017
|
+
this.slats.forEach((slat, index) => slat.style.setProperty('--private-book-light', slats[index].toFixed(3)));
|
|
10018
|
+
};
|
|
10019
|
+
this.warnInvalidFormat = (format) => {
|
|
10020
|
+
if (!isBookFormat(format)) {
|
|
10021
|
+
console.warn(`mds-book: "${format}" is not a format, the book takes the proportions of its image. Use auto, a4, a5, b5 or WxH in centimetres`);
|
|
10022
|
+
}
|
|
10023
|
+
};
|
|
10024
|
+
this.warnInvalidPages = (pages) => {
|
|
10025
|
+
if (!isPageCount(pages)) {
|
|
10026
|
+
console.warn(`mds-book: "${pages}" is not a number of pages, the book is drawn with ${defaultPages}. Use a positive number, up to ${pageRange.max}`);
|
|
10027
|
+
}
|
|
10028
|
+
};
|
|
10029
|
+
this.onLoad = (ev) => {
|
|
10030
|
+
const image = ev.target;
|
|
10031
|
+
if (image.naturalWidth > 0 && image.naturalHeight > 0) {
|
|
10032
|
+
this.imageRatio = image.naturalWidth / image.naturalHeight;
|
|
10033
|
+
}
|
|
10034
|
+
this.coverUrl = image.currentSrc || image.src;
|
|
10035
|
+
};
|
|
10036
|
+
this.onError = () => {
|
|
10037
|
+
this.coverUrl = undefined;
|
|
10038
|
+
this.imageError = true;
|
|
10039
|
+
};
|
|
10040
|
+
this.hasImage = () => { var _a; return ((_a = this.src) !== null && _a !== void 0 ? _a : '') !== '' && !this.imageError; };
|
|
10041
|
+
// a fixed format wins over the image; auto waits for it, and keeps 17x24 without one
|
|
10042
|
+
this.ratio = () => { var _a, _b; return (_b = (_a = bookFormatRatio(this.format)) !== null && _a !== void 0 ? _a : this.imageRatio) !== null && _b !== void 0 ? _b : defaultBookRatio; };
|
|
10043
|
+
this.label = () => {
|
|
10044
|
+
var _a, _b;
|
|
10045
|
+
if (this.alt != null)
|
|
10046
|
+
return this.alt;
|
|
10047
|
+
const name = ((_a = this.name) !== null && _a !== void 0 ? _a : '').trim();
|
|
10048
|
+
const author = ((_b = this.author) !== null && _b !== void 0 ? _b : '').trim();
|
|
10049
|
+
if (author !== '') {
|
|
10050
|
+
return this.t.get('byAuthor', { name: name !== '' ? name : this.t.get('book'), author });
|
|
10051
|
+
}
|
|
10052
|
+
return name !== '' ? name : this.t.get('book');
|
|
10053
|
+
};
|
|
10054
|
+
// a book is named by its label, and a decorative one is left out of the accessibility tree
|
|
10055
|
+
this.hostRole = () => {
|
|
10056
|
+
const label = this.label();
|
|
10057
|
+
return label === '' ? { role: 'presentation' } : { role: 'img', 'aria-label': label };
|
|
10058
|
+
};
|
|
10059
|
+
// What the stylesheet draws the volume from: the pages (their depth is its, from the
|
|
10060
|
+
// thickness of a page), the width of the format in millimetres they are measured against, and
|
|
10061
|
+
// the boards of a hardcover, as shares of that width.
|
|
10062
|
+
this.bookStyle = () => {
|
|
10063
|
+
const width = bookWidth(this.format);
|
|
10064
|
+
const boards = boardVolume(width, this.binding === 'hardcover');
|
|
10065
|
+
const share = (value) => `${(value * 100).toFixed(3)}cqi`;
|
|
10066
|
+
const style = {
|
|
10067
|
+
'--private-book-board': share(boards.board),
|
|
10068
|
+
'--private-book-page-count': String(pageCount(this.pages)),
|
|
10069
|
+
'--private-book-square': share(boards.square),
|
|
10070
|
+
'--private-book-width-mm': String(width * 10),
|
|
10071
|
+
};
|
|
10072
|
+
if (this.coverUrl !== undefined && this.hasImage()) {
|
|
10073
|
+
style['--private-book-cover'] = cssUrl(this.coverUrl);
|
|
10074
|
+
}
|
|
10075
|
+
return style;
|
|
10076
|
+
};
|
|
10077
|
+
// a spine too narrow for its text shows none, as a thin booklet does (see .spine-text)
|
|
10078
|
+
this.renderSpineText = () => (hAsync("div", { class: "spine-text" }, this.author && hAsync("span", { class: "spine-author" }, this.author), this.name && hAsync("span", { class: "spine-name" }, this.name), this.publisher && hAsync("span", { class: "spine-publisher" }, this.publisher)));
|
|
10079
|
+
// the light of a face: a dark layer whose opacity follows how much the face turns away
|
|
10080
|
+
this.shade = () => hAsync("span", { class: "shade" });
|
|
10081
|
+
// Rigid boards are slabs with edges of their own, a little larger than the page block they
|
|
10082
|
+
// hold, around a rounded spine; the endpapers show in the gap above and below the pages.
|
|
10083
|
+
this.renderHardcover = () => [
|
|
10084
|
+
...['top', 'bottom'].flatMap((edge) => [
|
|
10085
|
+
hAsync("div", { key: `board-${edge}-front`, class: `face board-${edge} board-${edge}--front lit-${edge}` }, this.shade()),
|
|
10086
|
+
hAsync("div", { key: `board-${edge}-back`, class: `face board-${edge} board-${edge}--back lit-${edge}` }, this.shade()),
|
|
10087
|
+
hAsync("div", { key: `endpaper-${edge}`, class: `face endpaper endpaper--${edge} lit-front` }, this.shade()),
|
|
10088
|
+
hAsync("div", { key: `pages-${edge}`, class: `face pages-${edge} lit-${edge}` }, this.shade()),
|
|
10089
|
+
hAsync("div", { key: `cap-${edge}`, class: `face cap cap--${edge} lit-${edge}`, style: { clipPath: hardcoverCap } }, this.shade()),
|
|
10090
|
+
]),
|
|
10091
|
+
hAsync("div", { key: "board-fore-front", class: "face board-fore board-fore--front lit-fore" }, this.shade()),
|
|
10092
|
+
hAsync("div", { key: "board-fore-back", class: "face board-fore board-fore--back lit-fore" }, this.shade()),
|
|
10093
|
+
hAsync("div", { key: "endpaper-fore", class: "face endpaper endpaper--fore lit-front" }, this.shade()),
|
|
10094
|
+
hAsync("div", { key: "pages-fore", class: "face pages-fore lit-fore" }, this.shade()),
|
|
10095
|
+
...hardcoverSlats.map(({ width, x, yaw, z }, index) => (hAsync("div", { key: `slat-${index}`, class: "face slat", ref: (el) => el && (this.slats[index] = el), style: {
|
|
10096
|
+
'--private-book-slat-width': String(width),
|
|
10097
|
+
'--private-book-slat-x': String(x),
|
|
10098
|
+
'--private-book-slat-yaw': `${yaw}deg`,
|
|
10099
|
+
'--private-book-slat-z': String(z),
|
|
10100
|
+
} }, this.shade()))),
|
|
10101
|
+
hAsync("div", { key: "spine-label", "aria-hidden": "true", class: "face spine-label" }, this.renderSpineText()),
|
|
10102
|
+
];
|
|
10103
|
+
// A paperback is cut flush: cover and pages end on the same edge, the cover a hairline.
|
|
10104
|
+
this.renderPaperback = () => [
|
|
10105
|
+
hAsync("div", { key: "pages-top", class: "face pages-top pages-flush pages-flush--across lit-top" }, this.shade()),
|
|
10106
|
+
hAsync("div", { key: "pages-bottom", class: "face pages-bottom pages-flush pages-flush--across lit-bottom" }, this.shade()),
|
|
10107
|
+
hAsync("div", { key: "pages-fore", class: "face pages-fore pages-flush pages-flush--along lit-fore" }, this.shade()),
|
|
10108
|
+
hAsync("div", { key: "spine", "aria-hidden": "true", class: "face spine lit-spine" }, this.renderSpineText(), this.shade()),
|
|
10109
|
+
];
|
|
10110
|
+
}
|
|
10111
|
+
formatHandler(newValue) {
|
|
10112
|
+
this.warnInvalidFormat(newValue);
|
|
10113
|
+
}
|
|
10114
|
+
pagesHandler(newValue) {
|
|
10115
|
+
this.warnInvalidPages(newValue);
|
|
10116
|
+
}
|
|
10117
|
+
// to another pose, the book moves there, or jumps when it keeps still
|
|
10118
|
+
poseHandler() {
|
|
10119
|
+
this.aim();
|
|
10120
|
+
}
|
|
10121
|
+
srcHandler() {
|
|
10122
|
+
this.coverUrl = undefined;
|
|
10123
|
+
this.imageError = false;
|
|
10124
|
+
this.imageRatio = undefined;
|
|
10125
|
+
}
|
|
10126
|
+
pointerEnterHandler(ev) {
|
|
10127
|
+
if (ev.pointerType === 'touch' || this.still())
|
|
10128
|
+
return;
|
|
10129
|
+
this.hovering = true;
|
|
10130
|
+
this.aim();
|
|
10131
|
+
}
|
|
10132
|
+
// the book leans toward the pointer; a finger has no hover, it only drags
|
|
10133
|
+
pointerMoveHandler(ev) {
|
|
10134
|
+
var _a, _b;
|
|
10135
|
+
if (this.still())
|
|
10136
|
+
return;
|
|
10137
|
+
const { left, top, width, height } = this.host.getBoundingClientRect();
|
|
10138
|
+
if (width === 0 || height === 0)
|
|
10139
|
+
return;
|
|
10140
|
+
const clamp = (value) => Math.max(-1, Math.min(1, value));
|
|
10141
|
+
if (ev.pointerType !== 'touch') {
|
|
10142
|
+
this.pointer = {
|
|
10143
|
+
x: clamp(((ev.clientX - left) / width) * 2 - 1),
|
|
10144
|
+
y: clamp(((ev.clientY - top) / height) * 2 - 1),
|
|
10145
|
+
};
|
|
10146
|
+
}
|
|
10147
|
+
// back over the book with no button held: the drag was released where nothing could tell
|
|
10148
|
+
if (((_a = this.drag) === null || _a === void 0 ? void 0 : _a.pointerId) === ev.pointerId && ev.pointerType !== 'touch' && ev.buttons === 0) {
|
|
10149
|
+
this.endDrag(false);
|
|
10150
|
+
}
|
|
10151
|
+
if (((_b = this.drag) === null || _b === void 0 ? void 0 : _b.pointerId) === ev.pointerId) {
|
|
10152
|
+
const distance = ev.clientX - this.drag.startX;
|
|
10153
|
+
if (Math.abs(distance) > 4)
|
|
10154
|
+
this.drag.moved = true;
|
|
10155
|
+
const { max, min } = dragRange(restPose(this.pose));
|
|
10156
|
+
this.goal.turn = Math.max(min, Math.min(max, this.drag.startTurn + (distance / width) * dragPerWidth));
|
|
10157
|
+
this.wake();
|
|
10158
|
+
return;
|
|
10159
|
+
}
|
|
10160
|
+
this.aim();
|
|
10161
|
+
}
|
|
10162
|
+
// a drag turns the book, within limits, to see a side, and lets it go back when released
|
|
10163
|
+
pointerDownHandler(ev) {
|
|
10164
|
+
var _a;
|
|
10165
|
+
if (ev.button !== 0 || this.still())
|
|
10166
|
+
return;
|
|
10167
|
+
this.dragged = false;
|
|
10168
|
+
this.drag = {
|
|
10169
|
+
moved: false,
|
|
10170
|
+
pointerId: ev.pointerId,
|
|
10171
|
+
startTurn: this.current.turn,
|
|
10172
|
+
startX: ev.clientX,
|
|
10173
|
+
};
|
|
10174
|
+
// the drag goes on outside the book; a pointer the browser no longer tracks cannot be captured
|
|
10175
|
+
try {
|
|
10176
|
+
this.host.setPointerCapture(ev.pointerId);
|
|
10177
|
+
}
|
|
10178
|
+
catch (_b) {
|
|
10179
|
+
// the drag still follows the pointer while it stays over the book
|
|
10180
|
+
}
|
|
10181
|
+
(_a = this.scene) === null || _a === void 0 ? void 0 : _a.classList.add('scene--dragging');
|
|
10182
|
+
this.watchDrag();
|
|
10183
|
+
this.aim();
|
|
10184
|
+
}
|
|
10185
|
+
pointerUpHandler(ev) {
|
|
10186
|
+
var _a;
|
|
10187
|
+
if (((_a = this.drag) === null || _a === void 0 ? void 0 : _a.pointerId) === ev.pointerId)
|
|
10188
|
+
this.endDrag(this.drag.moved);
|
|
10189
|
+
}
|
|
10190
|
+
// the browser took the pointer back (a scroll, a gesture), or let it go out of the frame
|
|
10191
|
+
pointerLostHandler(ev) {
|
|
10192
|
+
var _a;
|
|
10193
|
+
if (((_a = this.drag) === null || _a === void 0 ? void 0 : _a.pointerId) === ev.pointerId)
|
|
10194
|
+
this.endDrag(false);
|
|
10195
|
+
}
|
|
10196
|
+
pointerLeaveHandler() {
|
|
10197
|
+
if (this.drag !== undefined)
|
|
10198
|
+
return;
|
|
10199
|
+
this.hovering = false;
|
|
10200
|
+
this.pointer = { x: 0, y: 0 };
|
|
10201
|
+
this.aim();
|
|
10202
|
+
}
|
|
10203
|
+
// a drag that turned the book is not a click: inside a link, it would follow the link
|
|
10204
|
+
clickHandler(ev) {
|
|
10205
|
+
if (!this.dragged)
|
|
10206
|
+
return;
|
|
10207
|
+
this.dragged = false;
|
|
10208
|
+
ev.preventDefault();
|
|
10209
|
+
ev.stopPropagation();
|
|
10210
|
+
}
|
|
10211
|
+
componentWillLoad() {
|
|
10212
|
+
this.warnInvalidFormat(this.format);
|
|
10213
|
+
this.warnInvalidPages(this.pages);
|
|
10214
|
+
this.current = this.goal = restPose(this.pose);
|
|
10215
|
+
}
|
|
10216
|
+
// after every render, so the faces a new binding brings take the light of the pose at once,
|
|
10217
|
+
// and a book told to keep still (a preference that changed) goes back to its pose
|
|
10218
|
+
componentDidRender() {
|
|
10219
|
+
if (!Build.isBrowser)
|
|
10220
|
+
return;
|
|
10221
|
+
if (this.still())
|
|
10222
|
+
this.current = this.goal = restPose(this.pose);
|
|
10223
|
+
this.writePose();
|
|
10224
|
+
}
|
|
10225
|
+
disconnectedCallback() {
|
|
10226
|
+
var _a;
|
|
10227
|
+
if (this.frame !== undefined)
|
|
10228
|
+
cancelAnimationFrame(this.frame);
|
|
10229
|
+
this.frame = undefined;
|
|
10230
|
+
this.drag = undefined;
|
|
10231
|
+
(_a = this.dragWatch) === null || _a === void 0 ? void 0 : _a.abort();
|
|
10232
|
+
this.dragWatch = undefined;
|
|
10233
|
+
this.hovering = false;
|
|
10234
|
+
}
|
|
10235
|
+
render() {
|
|
10236
|
+
const hardcover = this.binding === 'hardcover';
|
|
10237
|
+
if (!hardcover)
|
|
10238
|
+
this.slats = [];
|
|
10239
|
+
return (hAsync(Host, Object.assign({ key: 'bb31d3ccdd45d59a6586d179bec741c03f424137' }, this.hostRole(), { "pref-animation": preferenceStore.state.animation, "pref-consumption": preferenceStore.state.consumption,
|
|
10240
|
+
// the proportions of the book are those of the host, as an image keeps its own
|
|
10241
|
+
style: { '--private-book-ratio': String(this.ratio()) } }), hAsync("div", { key: 'd9f8342b3fbb727a4e8bf7fcc0bb8ef3ea2882bb', class: "scene", ref: (el) => (this.scene = el) }, hAsync("div", { key: '49ed3560379bf7f7dfbc6a08674c87e80235b86f', class: "stage" }, hAsync("div", { key: 'ab97382a831ca738280c51fed61c518fd536f597', class: {
|
|
10242
|
+
book: true,
|
|
10243
|
+
'book--pending': this.hasImage() && this.coverUrl === undefined,
|
|
10244
|
+
}, style: this.bookStyle() }, hAsync("div", { key: '8c91cb0b329bcf9bf6ab643fd3a0eef0722aba07', class: "floor floor--stand" }), hAsync("div", { key: 'e31e08f16ed68c3a7b43a12974ac46bb94312525', class: "floor floor--lie" }), hAsync("div", { key: 'ddc2cf056c231994f1baa01c6ebf1af6369c1459', class: "body" }, hAsync("div", { key: '6fa239a5ebfd2ec588db478faf6961cde3689950', class: "face front lit-front" }, this.hasImage() ? (hAsync("img", { alt: "", "aria-hidden": "true", class: "cover", draggable: false, loading: this.loading, onError: this.onError, onLoad: this.onLoad, part: "cover", src: this.src })) : (hAsync("div", { "aria-hidden": "true", class: "drawn-cover" }, this.author && hAsync("span", { class: "drawn-author" }, this.author), this.name && hAsync("span", { class: "drawn-name" }, this.name), this.publisher && hAsync("span", { class: "drawn-publisher" }, this.publisher))), hAsync("span", { key: '57fa73e7b9b201a245b2f0ae7ee00bb60e726556', class: "gloss" }), this.shade()), hardcover ? this.renderHardcover() : this.renderPaperback()))))));
|
|
10245
|
+
}
|
|
10246
|
+
get host() { return getElement(this); }
|
|
10247
|
+
static get watchers() { return {
|
|
10248
|
+
"format": [{
|
|
10249
|
+
"formatHandler": 0
|
|
10250
|
+
}],
|
|
10251
|
+
"pages": [{
|
|
10252
|
+
"pagesHandler": 0
|
|
10253
|
+
}],
|
|
10254
|
+
"pose": [{
|
|
10255
|
+
"poseHandler": 0
|
|
10256
|
+
}],
|
|
10257
|
+
"src": [{
|
|
10258
|
+
"srcHandler": 0
|
|
10259
|
+
}]
|
|
10260
|
+
}; }
|
|
10261
|
+
static get style() { return mdsBookCss(); }
|
|
10262
|
+
static get cmpMeta() { return {
|
|
10263
|
+
"$flags$": 9,
|
|
10264
|
+
"$tagName$": "mds-book",
|
|
10265
|
+
"$members$": {
|
|
10266
|
+
"alt": [1],
|
|
10267
|
+
"author": [1],
|
|
10268
|
+
"binding": [513],
|
|
10269
|
+
"format": [513],
|
|
10270
|
+
"loading": [1],
|
|
10271
|
+
"name": [1],
|
|
10272
|
+
"pages": [2],
|
|
10273
|
+
"pose": [513],
|
|
10274
|
+
"publisher": [1],
|
|
10275
|
+
"src": [1],
|
|
10276
|
+
"coverUrl": [32],
|
|
10277
|
+
"imageError": [32],
|
|
10278
|
+
"imageRatio": [32]
|
|
10279
|
+
},
|
|
10280
|
+
"$listeners$": [[1, "pointerenter", "pointerEnterHandler"], [1, "pointermove", "pointerMoveHandler"], [1, "pointerdown", "pointerDownHandler"], [1, "pointerup", "pointerUpHandler"], [1, "pointercancel", "pointerLostHandler"], [0, "lostpointercapture", "pointerLostHandler"], [1, "pointerleave", "pointerLeaveHandler"], [2, "click", "clickHandler"]],
|
|
10281
|
+
"$lazyBundleId$": "-",
|
|
10282
|
+
"$attrsToReflect$": [["binding", "binding"], ["format", "format"], ["pose", "pose"]]
|
|
10283
|
+
}; }
|
|
10284
|
+
}
|
|
10285
|
+
|
|
9542
10286
|
var miBaselineArrowBack = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8l8 8l1.41-1.41L7.83 13H20v-2z"/></svg>`;
|
|
9543
10287
|
|
|
9544
10288
|
const back$3 = "Πήγαινε πίσω";
|
|
@@ -9565,6 +10309,7 @@ const mdsBreadcrumbCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
9565
10309
|
|
|
9566
10310
|
/**
|
|
9567
10311
|
* @slot - Add `mds-breadcrumb-item` element/s.
|
|
10312
|
+
* @category navigation
|
|
9568
10313
|
*/
|
|
9569
10314
|
class MdsBreadcrumb {
|
|
9570
10315
|
constructor(hostRef) {
|
|
@@ -9640,7 +10385,7 @@ class MdsBreadcrumb {
|
|
|
9640
10385
|
this.onChanged(selectedId, event.target);
|
|
9641
10386
|
}
|
|
9642
10387
|
render() {
|
|
9643
|
-
return (hAsync(Host, { key: '
|
|
10388
|
+
return (hAsync(Host, { key: 'b4fa4da020f452b1edcef847e704c996fd250e89' }, !this.hideBack && (hAsync("mds-button", { key: '77ea1777687cb4338fac177075fa6dd26dbece93', title: this.t.get('back'), class: "back", tone: "text", variant: "dark", icon: miBaselineArrowBack, onClick: this.togglePrevious })), hAsync("slot", { key: 'e7097b89671edcbf013d760aa129ccf2f753fcdc' })));
|
|
9644
10389
|
}
|
|
9645
10390
|
get element() { return getElement(this); }
|
|
9646
10391
|
static get style() { return mdsBreadcrumbCss(); }
|
|
@@ -9662,6 +10407,7 @@ const mdsBreadcrumbItemCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
9662
10407
|
|
|
9663
10408
|
/**
|
|
9664
10409
|
* @part button - The `mds-button` of the item, which shows its `label`
|
|
10410
|
+
* @parent mds-breadcrumb
|
|
9665
10411
|
*/
|
|
9666
10412
|
class MdsBreadcrumbItem {
|
|
9667
10413
|
constructor(hostRef) {
|
|
@@ -9677,7 +10423,7 @@ class MdsBreadcrumbItem {
|
|
|
9677
10423
|
};
|
|
9678
10424
|
}
|
|
9679
10425
|
render() {
|
|
9680
|
-
return (hAsync(Host, { key: '
|
|
10426
|
+
return (hAsync(Host, { key: 'c48707af974d9641c2a21c22ad9d4448979f8b1d' }, hAsync("mds-button", { key: 'd8b6d1389e41d3255d3abb052bd8d772bd8eeb44', "aria-current": this.selected ? 'page' : undefined, label: this.label, onClick: this.select, part: "button" }), hAsync("i", { key: '651fcbb55c86707b9063b3c70cd2b09b87b2356f', "aria-hidden": "true", class: "icon", innerHTML: miBaselineNavigateNext })));
|
|
9681
10427
|
}
|
|
9682
10428
|
get element() { return getElement(this); }
|
|
9683
10429
|
static get style() { return mdsBreadcrumbItemCss(); }
|
|
@@ -9884,6 +10630,7 @@ const mdsButtonCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
9884
10630
|
* @slot notification - Add `HTML elements` or `components`, it is **recommended** to use `mds-notification` element.
|
|
9885
10631
|
* @part icon - The icon inside the component
|
|
9886
10632
|
* @part label - The text of the button: the `label`, or the default slot when `label` is not set
|
|
10633
|
+
* @category actions
|
|
9887
10634
|
*/
|
|
9888
10635
|
class MdsButton {
|
|
9889
10636
|
constructor(hostRef) {
|
|
@@ -10156,16 +10903,16 @@ class MdsButton {
|
|
|
10156
10903
|
var _a;
|
|
10157
10904
|
this.typography = ((_a = buttonSizeTypographyVariant[this.size]) !== null && _a !== void 0 ? _a : buttonSizeTypographyVariant.md);
|
|
10158
10905
|
this.hasAwaited || (this.hasAwaited = !!this.await);
|
|
10159
|
-
const label = this.label || hAsync("slot", { key: '
|
|
10160
|
-
return (hAsync(Host, { key: '
|
|
10906
|
+
const label = this.label || hAsync("slot", { key: '120c97a64a4e076e702f01500b770be0451e9bfe', onSlotchange: this.onSlotChangeHandler });
|
|
10907
|
+
return (hAsync(Host, { key: '94245fe58a92d10b2fa6441571cce04816acd064', onClick: this.handleLinkClick, onMouseDown: this.mouseDown, onMouseUp: this.mouseUp, onMouseOut: this.mouseUp, tabindex: "0", "pref-animation": preferenceStore.state.animation, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.isLink() && (
|
|
10161
10908
|
// the link under the pointer, over the whole button: the host keeps the focus, the
|
|
10162
10909
|
// role and the name, so the anchor is out of the tab order and hidden from the
|
|
10163
10910
|
// assistive technology
|
|
10164
|
-
hAsync("a", { key: '
|
|
10911
|
+
hAsync("a", { key: 'b9d3fe23e9f7c477861f7101a0cdcb9d578e5423', "aria-hidden": "true", class: "link", href: this.href, onFocus: this.focusHost, ref: (el) => (this.anchor = el), tabindex: "-1", target: this.target === 'blank' ? '_blank' : undefined })), hAsync("div", { key: 'bf85804f1868ce4fd4b505af0ea14ad86eae5548', class: "await" }, this.hasAwaited && hAsync("mds-spinner", { key: '186f4fad70548c06bfa2bd5c855bf9a7c8d69145', class: "spinner", running: this.await })), this.icon && this.iconPosition === 'left' && (hAsync("mds-icon", { key: '951ba6977908bbec7d954d654413ca36b101d3b3', "aria-hidden": "true", class: "icon", name: this.icon, part: "icon" })), this.animation === 'yugop' ? (hAsync("mds-text", { class: "text", part: "label", tag: "span", typography: this.typography, truncate: this.truncate, animation: this.animation, text: this.label }, label)) : (
|
|
10165
10912
|
// a span of its own, not an mds-text: a nested component is one more to hydrate and
|
|
10166
10913
|
// its whole stylesheet in every declarative shadow root (#831). Only the animated
|
|
10167
10914
|
// label needs mds-text, which scrambles it
|
|
10168
|
-
hAsync("span", { class: "text label", part: "label" }, label)), hAsync("slot", { key: '
|
|
10915
|
+
hAsync("span", { class: "text label", part: "label" }, label)), hAsync("slot", { key: '15edf088a9c9f7d92295c16c3fb7e0d5e7bffe6f', name: "notification" }), this.icon && this.iconPosition === 'right' && (hAsync("mds-icon", { key: 'f0c5145f48b71299b2cb4f54bd0acd3e45f0133e', "aria-hidden": "true", class: "icon", name: this.icon, part: "icon" }))));
|
|
10169
10916
|
}
|
|
10170
10917
|
static get formAssociated() { return true; }
|
|
10171
10918
|
get host() { return getElement(this); }
|
|
@@ -10248,6 +10995,7 @@ const mdsButtonDropdownCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
10248
10995
|
/**
|
|
10249
10996
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
10250
10997
|
* @part dropdown - The `mds-dropdown` that the arrow opens, with the default slot inside
|
|
10998
|
+
* @category actions
|
|
10251
10999
|
*/
|
|
10252
11000
|
class MdsButtonDropdown {
|
|
10253
11001
|
constructor(hostRef) {
|
|
@@ -10324,7 +11072,7 @@ class MdsButtonDropdown {
|
|
|
10324
11072
|
}
|
|
10325
11073
|
}
|
|
10326
11074
|
render() {
|
|
10327
|
-
return (hAsync(Host, { key: '
|
|
11075
|
+
return (hAsync(Host, { key: '3a3edd05c7996ea2b332d5d20233f5a8e2b59250' }, hAsync("mds-button", { key: 'd2ca85d00d6b098b00fd5b5e82fe99a9c53e0447', active: this.active, class: "dropdown-primary-action", await: this.await, disabled: this.isDisabled(), href: this.href, icon: this.icon, onClick: this.primaryActionClick, size: this.size, target: this.target, tone: this.tone, truncate: this.truncate, variant: this.variant, label: this.label }), hAsync("mds-button", { key: '4c27c06933a8b15ab84169cdf066466ad4ad7d9b', active: this.active, "aria-label": this.t.get('moreActions'), await: this.await, class: "dropdown-action", disabled: this.isDisabled(), icon: miBaselineKeyboardArrowDown, size: this.size, tone: this.tone, variant: this.variant }), hAsync("mds-dropdown", { key: '93654bf0f7157fb888e24d9f87bd82e146ba8896', target: ".dropdown-action", part: "dropdown" }, hAsync("slot", { key: 'cfbe557571649e1459ffe5087981c3e845905b42' }))));
|
|
10328
11076
|
}
|
|
10329
11077
|
static get formAssociated() { return true; }
|
|
10330
11078
|
get host() { return getElement(this); }
|
|
@@ -10360,13 +11108,14 @@ const mdsButtonGroupCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
10360
11108
|
|
|
10361
11109
|
/**
|
|
10362
11110
|
* @slot - Add `mds-button` or `mds-button-dropdown` elements to this slot.
|
|
11111
|
+
* @category actions
|
|
10363
11112
|
*/
|
|
10364
11113
|
class MdsButtonGroup {
|
|
10365
11114
|
constructor(hostRef) {
|
|
10366
11115
|
registerInstance(this, hostRef);
|
|
10367
11116
|
}
|
|
10368
11117
|
render() {
|
|
10369
|
-
return (hAsync(Host, { key: '
|
|
11118
|
+
return (hAsync(Host, { key: 'e7a492c6c438e5991d8e703c6bff0491e6734d0e' }, hAsync("slot", { key: '0fc80c7fcb6ebc6857443223017d0719dfbf85f0' })));
|
|
10370
11119
|
}
|
|
10371
11120
|
static get style() { return mdsButtonGroupCss(); }
|
|
10372
11121
|
static get cmpMeta() { return {
|
|
@@ -18581,6 +19330,7 @@ const mdsCalendarCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
18581
19330
|
|
|
18582
19331
|
/**
|
|
18583
19332
|
* @slot preselection - Add `HTML elements` or `components` shown in the calendar preselection area.
|
|
19333
|
+
* @category forms
|
|
18584
19334
|
*/
|
|
18585
19335
|
class MdsCalendar {
|
|
18586
19336
|
constructor(hostRef) {
|
|
@@ -19229,21 +19979,21 @@ class MdsCalendar {
|
|
|
19229
19979
|
return undefined;
|
|
19230
19980
|
}
|
|
19231
19981
|
render() {
|
|
19232
|
-
return (hAsync(Host, { key: '
|
|
19982
|
+
return (hAsync(Host, { key: '5ece6c00dd42e09020407a839a354c3076565a2f' }, hAsync("div", { key: '49f671efc9d432d9c4eb4d28f0c6b33b9873422d', class: clsx('calendar-preselection', this.hasPreselection &&
|
|
19233
19983
|
!this.hidePreselection &&
|
|
19234
|
-
'calendar-preselection--has-preselection') }, hAsync("slot", { key: '
|
|
19984
|
+
'calendar-preselection--has-preselection') }, hAsync("slot", { key: 'c2a4f2f42dd5e56a5f8f91666d89cae614f56186', name: "preselection", onSlotchange: this.updatePreselection })), hAsync("div", { key: 'b6e9ad5d16530969414894ef8b2725d029bc3dff', class: "calendar-view" }, hAsync("nav", { key: 'd1fb5573c5b47ce8ed9cb47f4ce728b89f87fd5e' }, !this.hidePreviousButton && (hAsync("mds-button", { key: '1e65631d9cb3757ee22a6b333828199bcf356d87', "aria-label": this.t.get(this.currentView === 'years' ? 'previousYears' : 'previousMonth'), class: "action-back",
|
|
19235
19985
|
// the months view has nothing to move back or forward to
|
|
19236
|
-
disabled: this.currentView === 'months', icon: miBaselineBackIosNew, variant: "dark", tone: "text", onClick: this.handlePrev })), hAsync("div", { key: '
|
|
19986
|
+
disabled: this.currentView === 'months', icon: miBaselineBackIosNew, variant: "dark", tone: "text", onClick: this.handlePrev })), hAsync("div", { key: '01a1fc7f777d8dfa4ebac2ef9ed4a46bf7eb67b4', class: "select-month-or-year" }, (this.currentView === 'calendar' || this.currentView === 'months') && (hAsync("mds-button", { key: 'c6fe68177bf27cb74a29d687df79a83403d48cb0', class: "action-month", truncate: "none", variant: "dark", tone: "text", label: this.currentMonth, onClick: this.handleMonthActionClick })), (this.currentView === 'calendar' || this.currentView === 'years') && (hAsync("mds-button", { key: '4370a3e90fa6ecc64f3e6948690627f4271669b2', class: "action-year", truncate: "none", variant: "dark", tone: "text", label: this.currentYear, onClick: this.handleYearActionClick }))), !this.hideNextButton && (hAsync("mds-button", { key: '4cea0bf61baf52db367566835856d675a15cbc66', "aria-label": this.t.get(this.currentView === 'years' ? 'nextYears' : 'nextMonth'), class: "action-forward", disabled: this.currentView === 'months', icon: miBaselineForwardIos, variant: "dark", tone: "text", onClick: this.handleNext }))), this.currentView === 'calendar' && (hAsync("section", { key: '23bd1514cd3390ea62c773f0d93ef21002163827', class: "month-view" }, hAsync("header", { key: '4d87c57be1eb6f653889775a037947b4e54100fb', class: "month-view__days-names" }, this.weekdays.map((day) => (hAsync("mds-button", { class: "week-day-name", variant: "dark", tone: "text", label: day })))), hAsync("div", { key: 'dc486f4388d2c4052ee05150e9b5eab4c56d26e9', class: "month-view__cells" }, this.weekDaysinMonth.map((dayInfo, index) => (hAsync("mds-calendar-cell", { key: index, today: !this.hideToday &&
|
|
19237
19987
|
DateTime.now().toFormat('yyyy-MM-dd') === dayInfo.date.toFormat('yyyy-MM-dd'), date: dayInfo.date.toFormat('yyyy-MM-dd'), month: dayInfo.isCurrentMonth ? 'current' : 'other', disabled: this.isDateDisabled(dayInfo.date), onClick: this.handleCellClick(dayInfo.date), title: dayInfo.date
|
|
19238
19988
|
.setLocale(preferenceStore.state.language)
|
|
19239
19989
|
.toFormat('cccc d LLLL')
|
|
19240
|
-
.replace(/^./, (char) => char.toUpperCase()), label: dayInfo.date.toFormat('dd') })))))), this.currentView === 'months' && (hAsync("section", { key: '
|
|
19990
|
+
.replace(/^./, (char) => char.toUpperCase()), label: dayInfo.date.toFormat('dd') })))))), this.currentView === 'months' && (hAsync("section", { key: 'f48bd4d763824ae2becb1f377e51ae9c71454301', class: "month-selection" }, hAsync("header", { key: '34cd5dd481b16891bb7987f2b2a5a145636658ea', class: "month-view__month-names" }, Array.from({ length: 12 }).map((_, index) => {
|
|
19241
19991
|
const monthName = DateTime.local()
|
|
19242
19992
|
.set({ month: index + 1 })
|
|
19243
19993
|
.setLocale(preferenceStore.state.language)
|
|
19244
19994
|
.toFormat('MMMM');
|
|
19245
19995
|
return (hAsync("mds-button", { class: "action", variant: "dark", tone: "text", label: monthName, onClick: this.handleMonthSelect(index + 1) }));
|
|
19246
|
-
})))), this.currentView === 'years' && (hAsync("section", { key: '
|
|
19996
|
+
})))), this.currentView === 'years' && (hAsync("section", { key: 'f9df821453277ca1e20fe56bb8533768b68e62b0', class: "year-selection" }, hAsync("header", { key: '4aa693be77a139bfd8bedf79b0516b17763937ce', class: "month-view__years" }, Array.from({ length: 12 }).map((_, index) => {
|
|
19247
19997
|
const year = this.selectedYear + index;
|
|
19248
19998
|
return (hAsync("mds-button", { class: "action", variant: "dark", tone: "text", label: `${year}`, onClick: this.handleYearSelect(year) }));
|
|
19249
19999
|
})))))));
|
|
@@ -19303,6 +20053,9 @@ class MdsCalendar {
|
|
|
19303
20053
|
|
|
19304
20054
|
const mdsCalendarCellCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--private-calendar-cell-background:var(--mds-calendar-cell-background,#0000);--private-calendar-cell-boundaries-padding:var(--mds-calendar-cell-boundaries-padding,calc(var(--spacing,.0025rem)*100));--private-calendar-cell-color:var(--mds-calendar-cell-color,var(--mds-calendar-day-number-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));--private-calendar-cell-other-month-background:var(--mds-calendar-cell-other-month-background,#0000);--private-calendar-cell-other-month-color:var(--mds-calendar-cell-other-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-disabled-background:var(--mds-calendar-cell-disabled-background,#0000);--private-calendar-cell-disabled-color:var(--mds-calendar-cell-disabled-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-weekend-background:var(--mds-calendar-cell-weekend-background,#0000);--private-calendar-cell-weekend-color:var(--mds-calendar-cell-weekend-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));--private-calendar-cell-selection-boundaries-border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,var(--magma-radius-full,var(--radius-full,1000px)));--private-calendar-cell-selection-week-boundaries-border-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,var(--magma-radius-full,var(--radius-full,1000px)));--private-calendar-cell-preselection-today-background:var(--mds-calendar-cell-preselection-today-background,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));--private-calendar-cell-preselection-today-color:var(--mds-calendar-cell-preselection-today-color,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));--private-calendar-cell-preselection-current-month-background:var(--mds-calendar-cell-preselection-current-month-background,rgb(var(--magma-accent-surface-hover,var(--variant-primary-08,204 212 226))));--private-calendar-cell-preselection-current-month-color:var(--mds-calendar-cell-preselection-current-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-current-month-boundaries-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-current-month-boundaries-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--private-calendar-cell-preselection-other-month-background:var(--mds-calendar-cell-preselection-other-month-background,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));--private-calendar-cell-preselection-other-month-color:var(--mds-calendar-cell-preselection-other-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-other-month-boundaries-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-other-month-boundaries-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));--private-calendar-cell-selection-current-month-background:var(--mds-calendar-cell-selection-current-month-background,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--private-calendar-cell-selection-current-month-color:var(--mds-calendar-cell-selection-current-month-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--private-calendar-cell-selection-current-month-boundaries-background:var(--mds-calendar-cell-selection-current-month-boundaries-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));--private-calendar-cell-selection-current-month-boundaries-color:var(--mds-calendar-cell-selection-current-month-boundaries-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--private-calendar-cell-selection-current-month-weekend-background:var(--mds-calendar-cell-selection-current-month-weekend-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--private-calendar-cell-selection-current-month-weekend-color:var(--mds-calendar-cell-selection-current-month-weekend-color,rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218))));--private-calendar-cell-selection-current-month-weekend-boundaries-background:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--private-calendar-cell-selection-current-month-weekend-boundaries-color:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--private-calendar-cell-selection-other-month-background:var(--mds-calendar-cell-selection-other-month-background,rgb(var(--magma-accent-surface-hover,var(--variant-primary-08,204 212 226))));--private-calendar-cell-selection-other-month-color:var(--mds-calendar-cell-selection-other-month-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));--private-calendar-cell-selection-other-month-boundaries-background:var(--mds-calendar-cell-selection-other-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--private-calendar-cell-selection-other-month-boundaries-color:var(--mds-calendar-cell-selection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));align-items:center;aspect-ratio:1;display:flex;justify-content:center;padding:var(--private-calendar-cell-boundaries-padding);position:relative}:host([month=other]){visibility:var(--mds-calendar-cell-other-month-visibility,hidden)}.inner-dot{aspect-ratio:1;background-color:var(--private-calendar-cell-inner-background);border-radius:var(--private-calendar-cell-selection-boundaries-border-radius);display:flex;min-height:0;min-width:0;width:100%;z-index:1}.area-background{background-color:var(--private-calendar-cell-background);inset:0;position:absolute;z-index:0}.action,.area-background{color:var(--private-calendar-cell-color)}.action{align-items:center;background-color:#0000;border-radius:0;display:flex;inset:calc(var(--mds-calendar-cell-gap)*-1);justify-content:center;min-height:0;min-width:0;padding:0;place-self:stretch stretch;position:absolute;width:auto;z-index:2}:host([selection]:not(:where([selection=none]))[orientation=horizontal]) .area-background{margin-left:calc(var(--mds-calendar-cell-gap)*-1);margin-right:calc(var(--mds-calendar-cell-gap)*-1)}:host([selection=start][orientation=horizontal]) .area-background{border-bottom-left-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-left-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-left:0}:host([selection=end][orientation=horizontal]) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-right:0}:host([selection]:not(:where([selection=none]))[orientation=vertical]) .area-background{margin-bottom:calc(var(--mds-calendar-cell-gap)*-1);margin-top:calc(var(--mds-calendar-cell-gap)*-1)}:host([selection=start][orientation=vertical]) .area-background{border-radius:var(--private-calendar-cell-selection-boundaries-border-radius) var(--private-calendar-cell-selection-boundaries-border-radius) 0 0;margin-top:0}:host([selection=end][orientation=vertical]) .area-background{border-radius:0 0 var(--private-calendar-cell-selection-boundaries-border-radius) var(--private-calendar-cell-selection-boundaries-border-radius);margin-bottom:0}:host([orientation=vertical]:not([selection=start],[selection=end])) .area-background{border-radius:0}:host(:nth-child(7n-6)) .area-background,:host([selection=end][orientation=horizontal]:nth-child(7n-6)) .area-background{border-bottom-left-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius);border-top-left-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius)}:host(:nth-child(7n)) .area-background,:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius)}:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius)}:host([selection]:not(:where([selection=none]))[orientation=horizontal]:nth-child(7n-6)) .area-background{margin-left:0}:host([selection]:not(:where([selection=none]))[orientation=horizontal]:nth-child(7n)) .area-background{margin-right:0}:host([selection=single][orientation=horizontal]) .area-background{border-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-left:0;margin-right:0}:host(:nth-child(7n)),:host(:nth-child(7n-1)){--private-calendar-cell-color:var(--private-calendar-cell-weekend-color);--private-calendar-cell-background:var(--private-calendar-cell-weekend-background)}:host([month=other]:not([selection]:not(:where([selection=none])))){--private-calendar-cell-color:var(--private-calendar-cell-other-month-color);--private-calendar-cell-background:var(--private-calendar-cell-other-month-background)}:host([disabled]){--private-calendar-cell-color:var(--private-calendar-cell-disabled-color);--private-calendar-cell-background:var(--private-calendar-cell-disabled-background);cursor:auto;pointer-events:none}:host(:not([selection]:not(:where([selection=none])))[today]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-today-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-today-color)}:host([selection]:not(:where([selection=none]))[month=current]){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-color)}:host([selection]:not(:where([selection=none]))[month=current]:nth-child(7n)),:host([selection]:not(:where([selection=none]))[month=current]:nth-child(7n-1)){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-weekend-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-weekend-color)}:host([selection=end][month=current]:nth-child(7n)),:host([selection=end][month=current]:nth-child(7n-1)),:host([selection=start][month=current]:nth-child(7n)),:host([selection=start][month=current]:nth-child(7n-1)){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-weekend-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-weekend-boundaries-color)}:host([selection]:not(:where([selection=none]))[month=other]){--private-calendar-cell-background:var(--private-calendar-cell-selection-other-month-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-other-month-color)}:host([selection=end][month=current]),:host([selection=start][month=current]){--private-calendar-cell-inner-background:var(--private-calendar-cell-selection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-boundaries-color)}:host([selection=end][month=other]),:host([selection=start][month=other]){--private-calendar-cell-inner-background:var(--private-calendar-cell-selection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-other-month-boundaries-color)}:host([selection]:not(:where([selection=none]))[month=current][preview]:not([preview=false])){--private-calendar-cell-background:var(--private-calendar-cell-preselection-current-month-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-color)}:host([selection]:not(:where([selection=none]))[month=other][preview]:not([preview=false])){--private-calendar-cell-background:var(--private-calendar-cell-preselection-other-month-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-color)}:host([selection=end][month=current][preview]:not([preview=false])),:host([selection=start][month=current][preview]:not([preview=false])){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-boundaries-color)}:host([selection=end][month=other][preview]:not([preview=false])),:host([selection=start][month=other][preview]:not([preview=false])){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-boundaries-color)}:host([selection=single][month=current]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-boundaries-color)}:host([selection=single][month=other]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-boundaries-color)}`;
|
|
19305
20055
|
|
|
20056
|
+
/**
|
|
20057
|
+
* @parent mds-calendar
|
|
20058
|
+
*/
|
|
19306
20059
|
class MdsCalendarCell {
|
|
19307
20060
|
constructor(hostRef) {
|
|
19308
20061
|
registerInstance(this, hostRef);
|
|
@@ -19331,7 +20084,7 @@ class MdsCalendarCell {
|
|
|
19331
20084
|
this.today = undefined;
|
|
19332
20085
|
}
|
|
19333
20086
|
render() {
|
|
19334
|
-
return (hAsync(Host, { key: '
|
|
20087
|
+
return (hAsync(Host, { key: 'a393822aa73f1d6094e8b0faa05ebe863ce20749' }, hAsync("div", { key: 'c80b08e7bf127713f261c35b0807d21fae450950', class: "inner-dot" }), hAsync("div", { key: '571f5470a1465c2541bb1328ad6a3b1600af64bb', class: "area-background" }), hAsync("mds-button", { key: 'd303799a03cd311d4dcb7aaf0141838d7f99cde7', class: "action", variant: "dark", tone: "text", disabled: this.disabled, label: this.label })));
|
|
19335
20088
|
}
|
|
19336
20089
|
static get style() { return mdsCalendarCellCss(); }
|
|
19337
20090
|
static get cmpMeta() { return {
|
|
@@ -19363,6 +20116,7 @@ const REGIONS = ['content', 'footer', 'header', 'media'];
|
|
|
19363
20116
|
* @slot header - Add `HTML elements` or `components`, it's responsive behaviour based on container queries is handled with `auto-grid` enabled
|
|
19364
20117
|
* @slot content - Add `HTML elements` or `components`, it's responsive behaviour based on container queries is handled with `auto-grid` enabled
|
|
19365
20118
|
* @slot footer - Add `HTML elements` or `components`, it's responsive behaviour based on container queries is handled with `auto-grid` enabled
|
|
20119
|
+
* @category structure
|
|
19366
20120
|
*/
|
|
19367
20121
|
class MdsCard {
|
|
19368
20122
|
constructor(hostRef) {
|
|
@@ -19394,7 +20148,7 @@ class MdsCard {
|
|
|
19394
20148
|
this.updateLayout();
|
|
19395
20149
|
}
|
|
19396
20150
|
render() {
|
|
19397
|
-
return (hAsync(Host, { key: '
|
|
20151
|
+
return (hAsync(Host, { key: '4ee6a499e8237b3ac758033408292fcd06421a80', "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: '84a453bba42042d39937fc2101bdaa3bc30bae23', class: clsx('layout', this.layout && `layout--${this.layout}`, this.disableAutoGrid ? 'layout--disabled' : ''), part: "layout" }, hAsync("slot", { key: '0838ad16e610630b8ea27cbbfed2c1c101a1e041', name: "media", onSlotchange: this.updateLayout }), hAsync("slot", { key: '03891802fbdc79d0e8c6b3fc90919c10caed66d3', name: "header", onSlotchange: this.updateLayout }), hAsync("slot", { key: '7c49d83ac9f5ca1f50feec8c7cd0ef5f5fd874eb', name: "content", onSlotchange: this.updateLayout }), hAsync("slot", { key: '6a0cbdaa8914b3185ce730e6a1b6081da9ef14b2', name: "footer", onSlotchange: this.updateLayout }))));
|
|
19398
20152
|
}
|
|
19399
20153
|
get host() { return getElement(this); }
|
|
19400
20154
|
static get style() { return mdsCardCss(); }
|
|
@@ -19415,13 +20169,14 @@ const mdsCardContentCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
19415
20169
|
|
|
19416
20170
|
/**
|
|
19417
20171
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
20172
|
+
* @parent mds-card
|
|
19418
20173
|
*/
|
|
19419
20174
|
class MdsCardContent {
|
|
19420
20175
|
constructor(hostRef) {
|
|
19421
20176
|
registerInstance(this, hostRef);
|
|
19422
20177
|
}
|
|
19423
20178
|
render() {
|
|
19424
|
-
return (hAsync(Host, { key: '
|
|
20179
|
+
return (hAsync(Host, { key: '9442d6ac5c93929fb7c33552f8ed265c0be5903d', slot: "content" }, hAsync("slot", { key: '6687d6821f4e887066dbaf83a262273be3500d21' })));
|
|
19425
20180
|
}
|
|
19426
20181
|
static get style() { return mdsCardContentCss(); }
|
|
19427
20182
|
static get cmpMeta() { return {
|
|
@@ -19438,13 +20193,14 @@ const mdsCardFooterCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
19438
20193
|
|
|
19439
20194
|
/**
|
|
19440
20195
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
20196
|
+
* @parent mds-card
|
|
19441
20197
|
*/
|
|
19442
20198
|
class MdsCardFooter {
|
|
19443
20199
|
constructor(hostRef) {
|
|
19444
20200
|
registerInstance(this, hostRef);
|
|
19445
20201
|
}
|
|
19446
20202
|
render() {
|
|
19447
|
-
return (hAsync(Host, { key: '
|
|
20203
|
+
return (hAsync(Host, { key: '1244832dcbc5ec2b4b8ea3c8f5a427559e4017e6', slot: "footer" }, hAsync("slot", { key: '6a7b42f770545ec2192b43004fa1d6bc6b8e6f5d' })));
|
|
19448
20204
|
}
|
|
19449
20205
|
static get style() { return mdsCardFooterCss(); }
|
|
19450
20206
|
static get cmpMeta() { return {
|
|
@@ -19462,6 +20218,7 @@ const mdsCardHeaderCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
19462
20218
|
/**
|
|
19463
20219
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
19464
20220
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
20221
|
+
* @parent mds-card
|
|
19465
20222
|
*/
|
|
19466
20223
|
class MdsCardHeader {
|
|
19467
20224
|
constructor(hostRef) {
|
|
@@ -19474,7 +20231,7 @@ class MdsCardHeader {
|
|
|
19474
20231
|
this.hasActions = hasChildWithSlot(this.hostElement, 'action');
|
|
19475
20232
|
}
|
|
19476
20233
|
render() {
|
|
19477
|
-
return (hAsync(Host, { key: '
|
|
20234
|
+
return (hAsync(Host, { key: '3ca0362bd5a6e865313b9e00a8e11e808b0627d5', slot: "header" }, hAsync("slot", { key: 'a8a26f03249f89d52e3302fc37985d830f35e12a' }), hAsync("div", { key: 'b355a3975f3e61df94a35ef02ba01fcb1b360833', class: clsx('actions', !this.hasActions && 'actions--hidden') }, hAsync("slot", { key: '600ba50b2e05218921d60ccb45ccde16d91680fb', name: "action", onSlotchange: this.onActionSlotChange }))));
|
|
19478
20235
|
}
|
|
19479
20236
|
get hostElement() { return getElement(this); }
|
|
19480
20237
|
static get style() { return mdsCardHeaderCss(); }
|
|
@@ -19496,13 +20253,14 @@ const mdsCardMediaCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
19496
20253
|
* @slot - Add `HTML elements` or `components` to this slot, it is **recommended** to add `mds-img` element or other component which represents media contents.
|
|
19497
20254
|
* @slot content - Add `text string`, `HTML elements` or `components` to this slot, contents will be shown in front of the media element.
|
|
19498
20255
|
* @part content - The layer in front of the media that holds the `content` slot
|
|
20256
|
+
* @parent mds-card
|
|
19499
20257
|
*/
|
|
19500
20258
|
class MdsCardMedia {
|
|
19501
20259
|
constructor(hostRef) {
|
|
19502
20260
|
registerInstance(this, hostRef);
|
|
19503
20261
|
}
|
|
19504
20262
|
render() {
|
|
19505
|
-
return (hAsync(Host, { key: '
|
|
20263
|
+
return (hAsync(Host, { key: '40ce0b8e5f32896d5756eb73a20874902fadead2', slot: "media" }, hAsync("div", { key: 'd48211e30a62464456adaeb6bd8cc36d1b14deb0', class: "content", part: "content" }, hAsync("slot", { key: '2935045af2b63d046ccda88cc887f7b33f82e687', name: "content" })), hAsync("slot", { key: 'ff1076325c96a98b9ac977c00b897387427b04a7' })));
|
|
19506
20264
|
}
|
|
19507
20265
|
static get style() { return mdsCardMediaCss(); }
|
|
19508
20266
|
static get cmpMeta() { return {
|
|
@@ -19539,6 +20297,9 @@ var localeIt$H = {
|
|
|
19539
20297
|
|
|
19540
20298
|
const mdsChipCss = () => `@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-button,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-chip-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-chip-opacity-disabled:.5;--mds-chip-transition-duration:var(--duration-150,.15s);--mds-chip-label-transition-duration:var(--duration-200,.2s);--private-chip-transition-duration:var(--mds-chip-transition-duration);--private-chip-label-transition-duration:var(--mds-chip-label-transition-duration);align-items:center;align-self:self-start;background-color:var(--mds-chip-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border:calc(var(--spacing,.0025rem)*50) solid var(--mds-chip-border,#0000);border-radius:var(--magma-radius-full,var(--radius-full,1000px));box-shadow:var(--mds-chip-shadow);box-sizing:border-box;color:var(--mds-chip-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));display:inline-flex;gap:calc(var(--spacing,.0025rem)*150);justify-content:center;justify-self:start;max-width:min-content;min-width:min-content;padding:0 calc(var(--spacing,.0025rem)*50);transition-duration:var(--private-chip-transition-duration);transition-property:background-color,border-color,box-shadow,color,opacity;transition-timing-function:var(--ease-in-out-quad,cubic-bezier(.455,.03,.515,.955));--mds-chip-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-chip-background-selected:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-chip-border:#0000;--mds-chip-border-selected:#0000;--mds-chip-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-chip-color-selected:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-chip-icon-background:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-chip-shadow-selected:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a)}.label-wrapper{align-items:center;display:inline-flex;height:calc(var(--spacing,.0025rem)*800);justify-content:start}.label-wrapper:first-child{padding-left:calc(var(--spacing,.0025rem)*200)}.label-wrapper:last-child{padding-right:calc(var(--spacing,.0025rem)*200)}:host([disabled]:not([disabled=false])){opacity:var(--mds-chip-opacity-disabled,.5);pointer-events:none}.label{border-radius:var(--magma-radius-full,var(--radius-full,1000px));flex-grow:1;text-decoration-color:#0000;transition-duration:var(--private-chip-label-transition-duration);transition-property:color,text-decoration-color,outline,outline-offset;transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94))}:host([clickable]:not([clickable=false])) .label{cursor:pointer;text-decoration:underline}:host([clickable]:not([clickable=false])) .label:hover{-webkit-text-decoration-color:unset;text-decoration-color:unset}.label--interactive{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));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}.label--interactive:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running;z-index:10}.icon-area{align-items:center;background-color:var(--mds-chip-icon-background,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:flex;flex-shrink:0;height:calc(var(--spacing,.0025rem)*700);justify-content:center;transition-duration:inherit;transition-timing-function:inherit;width:calc(var(--spacing,.0025rem)*700)}.icon{fill:var(--mds-chip-icon-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));height:calc(var(--spacing,.0025rem)*400);transition:fill;transition-duration:var(--private-chip-label-transition-duration);width:calc(var(--spacing,.0025rem)*400)}.button-delete{border-radius:var(--magma-radius-full,var(--radius-full,1000px));corner-shape:round;align-self:center;height:auto;padding:0}.button-delete--hidden{display:none}:host([variant][tone][selected]){--mds-chip-background:var(--mds-chip-background-selected);--mds-chip-border:var(--mds-chip-border-selected);--mds-chip-color:var(--mds-chip-color-selected);--mds-chip-icon-background:var(--mds-chip-icon-background-selected);--mds-chip-icon-color:var(--mds-chip-icon-color-selected);--mds-chip-shadow:var(--mds-chip-shadow-selected)}:host([variant=primary][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-chip-icon-background:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=primary][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218)));--mds-chip-icon-background:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-chip-icon-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-chip-icon-color-selected:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([variant=secondary][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-chip-icon-background:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=secondary][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218)));--mds-chip-icon-background:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)));--mds-chip-icon-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-chip-icon-color-selected:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([variant=ai][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-chip-icon-background:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=ai][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-accent-ai-border,var(--variant-ai-06,184 156 250)));--mds-chip-icon-background:rgb(var(--magma-accent-ai-surface,var(--variant-ai-09,229 218 253)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-ai-surface,var(--variant-ai-09,229 218 253)));--mds-chip-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-chip-icon-color-selected:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)))}:host([variant=success][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-chip-icon-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-chip-icon-background-selected:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-chip-icon-color:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=success][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-success-border-strong,var(--border-success-strong,17 166 98)));--mds-chip-icon-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-chip-icon-background-selected:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-chip-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-chip-icon-color-selected:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-chip-icon-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-chip-icon-background-selected:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-chip-icon-color:rgb(var(--magma-warning-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-warning-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=warning][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-warning-border-strong,var(--border-warning-strong,184 130 0)));--mds-chip-icon-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-chip-icon-background-selected:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-chip-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)));--mds-chip-icon-color-selected:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=error][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-chip-icon-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-chip-icon-background-selected:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-chip-icon-color:rgb(var(--magma-danger-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-danger-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=error][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-danger-border-strong,var(--border-error-strong,218 96 93)));--mds-chip-icon-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-chip-icon-background-selected:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-chip-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-chip-icon-color-selected:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=info][tone=strong]){--mds-chip-border-selected:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-chip-icon-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-chip-icon-background-selected:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-chip-icon-color:rgb(var(--magma-info-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-info-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=info][tone=weak]){--mds-chip-border-selected:rgb(var(--magma-info-border-strong,var(--border-info-strong,18 154 196)));--mds-chip-icon-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-chip-icon-background-selected:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-chip-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)));--mds-chip-icon-color-selected:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=amaranth][tone=strong]){--mds-chip-border-selected:rgb(var(--label-amaranth-04,213 12 47));--mds-chip-icon-background:rgb(var(--label-amaranth-05,242 37 72));--mds-chip-icon-background-selected:rgb(var(--label-amaranth-05,242 37 72));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=amaranth][tone=weak]){--mds-chip-border-selected:rgb(var(--label-amaranth-06,248 138 157));--mds-chip-icon-background:rgb(var(--label-amaranth-09,253 214 221));--mds-chip-icon-background-selected:rgb(var(--label-amaranth-09,253 214 221));--mds-chip-icon-color:rgb(var(--label-amaranth-04,213 12 47));--mds-chip-icon-color-selected:rgb(var(--label-amaranth-04,213 12 47))}:host([variant=aqua][tone=strong]){--mds-chip-border-selected:rgb(var(--label-aqua-04,4 122 143));--mds-chip-icon-background:rgb(var(--label-aqua-05,5 141 165));--mds-chip-icon-background-selected:rgb(var(--label-aqua-05,5 141 165));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=aqua][tone=weak]){--mds-chip-border-selected:rgb(var(--label-aqua-06,6 186 217));--mds-chip-icon-background:rgb(var(--label-aqua-09,151 237 252));--mds-chip-icon-background-selected:rgb(var(--label-aqua-09,151 237 252));--mds-chip-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-chip-icon-color-selected:rgb(var(--label-aqua-04,4 122 143))}:host([variant=blue][tone=strong]){--mds-chip-border-selected:rgb(var(--label-blue-04,63 94 248));--mds-chip-icon-background:rgb(var(--label-blue-05,90 117 249));--mds-chip-icon-background-selected:rgb(var(--label-blue-05,90 117 249));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=blue][tone=weak]){--mds-chip-border-selected:rgb(var(--label-blue-06,149 166 251));--mds-chip-icon-background:rgb(var(--label-blue-09,216 222 254));--mds-chip-icon-background-selected:rgb(var(--label-blue-09,216 222 254));--mds-chip-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-chip-icon-color-selected:rgb(var(--label-blue-04,63 94 248))}:host([variant=green][tone=strong]){--mds-chip-border-selected:rgb(var(--label-green-04,22 128 61));--mds-chip-icon-background:rgb(var(--label-green-05,26 148 71));--mds-chip-icon-background-selected:rgb(var(--label-green-05,26 148 71));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=green][tone=weak]){--mds-chip-border-selected:rgb(var(--label-green-06,34 195 93));--mds-chip-icon-background:rgb(var(--label-green-09,165 240 193));--mds-chip-icon-background-selected:rgb(var(--label-green-09,165 240 193));--mds-chip-icon-color:rgb(var(--label-green-04,22 128 61));--mds-chip-icon-color-selected:rgb(var(--label-green-04,22 128 61))}:host([variant=lime][tone=strong]){--mds-chip-border-selected:rgb(var(--label-lime-04,81 124 13));--mds-chip-icon-background:rgb(var(--label-lime-05,93 143 15));--mds-chip-icon-background-selected:rgb(var(--label-lime-05,93 143 15));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=lime][tone=weak]){--mds-chip-border-selected:rgb(var(--label-lime-06,123 189 20));--mds-chip-icon-background:rgb(var(--label-lime-09,189 239 111));--mds-chip-icon-background-selected:rgb(var(--label-lime-09,189 239 111));--mds-chip-icon-color:rgb(var(--label-lime-04,81 124 13));--mds-chip-icon-color-selected:rgb(var(--label-lime-04,81 124 13))}:host([variant=orange][tone=strong]){--mds-chip-border-selected:rgb(var(--label-orange-04,185 78 5));--mds-chip-icon-background:rgb(var(--label-orange-05,213 90 5));--mds-chip-icon-background-selected:rgb(var(--label-orange-05,213 90 5));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=orange][tone=weak]){--mds-chip-border-selected:rgb(var(--label-orange-06,250 143 69));--mds-chip-icon-background:rgb(var(--label-orange-09,253 217 191));--mds-chip-icon-background-selected:rgb(var(--label-orange-09,253 217 191));--mds-chip-icon-color:rgb(var(--label-orange-04,185 78 5));--mds-chip-icon-color-selected:rgb(var(--label-orange-04,185 78 5))}:host([variant=orchid][tone=strong]){--mds-chip-border-selected:rgb(var(--label-orchid-04,206 21 113));--mds-chip-icon-background:rgb(var(--label-orchid-05,233 44 137));--mds-chip-icon-background-selected:rgb(var(--label-orchid-05,233 44 137));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=orchid][tone=weak]){--mds-chip-border-selected:rgb(var(--label-orchid-06,243 137 189));--mds-chip-icon-background:rgb(var(--label-orchid-09,251 213 232));--mds-chip-icon-background-selected:rgb(var(--label-orchid-09,251 213 232));--mds-chip-icon-color:rgb(var(--label-orchid-04,206 21 113));--mds-chip-icon-color-selected:rgb(var(--label-orchid-04,206 21 113))}:host([variant=purple][tone=strong]){--mds-chip-border-selected:rgb(var(--label-purple-04,150 51 245));--mds-chip-icon-background:rgb(var(--label-purple-05,168 86 247));--mds-chip-icon-background-selected:rgb(var(--label-purple-05,168 86 247));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=purple][tone=weak]){--mds-chip-border-selected:rgb(var(--label-purple-06,201 149 250));--mds-chip-icon-background:rgb(var(--label-purple-09,235 216 253));--mds-chip-icon-background-selected:rgb(var(--label-purple-09,235 216 253));--mds-chip-icon-color:rgb(var(--label-purple-04,150 51 245));--mds-chip-icon-color-selected:rgb(var(--label-purple-04,150 51 245))}:host([variant=red][tone=strong]){--mds-chip-border-selected:rgb(var(--label-red-04,212 28 28));--mds-chip-icon-background:rgb(var(--label-red-05,230 66 66));--mds-chip-icon-background-selected:rgb(var(--label-red-05,230 66 66));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=red][tone=weak]){--mds-chip-border-selected:rgb(var(--label-red-06,241 144 144));--mds-chip-icon-background:rgb(var(--label-red-09,250 215 215));--mds-chip-icon-background-selected:rgb(var(--label-red-09,250 215 215));--mds-chip-icon-color:rgb(var(--label-red-04,212 28 28));--mds-chip-icon-color-selected:rgb(var(--label-red-04,212 28 28))}:host([variant=sky][tone=strong]){--mds-chip-border-selected:rgb(var(--label-sky-04,10 118 167));--mds-chip-icon-background:rgb(var(--label-sky-05,12 136 193));--mds-chip-icon-background-selected:rgb(var(--label-sky-05,12 136 193));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=sky][tone=weak]){--mds-chip-border-selected:rgb(var(--label-sky-06,47 182 243));--mds-chip-icon-background:rgb(var(--label-sky-09,185 231 251));--mds-chip-icon-background-selected:rgb(var(--label-sky-09,185 231 251));--mds-chip-icon-color:rgb(var(--label-sky-04,10 118 167));--mds-chip-icon-color-selected:rgb(var(--label-sky-04,10 118 167))}:host([variant=violet][tone=strong]){--mds-chip-border-selected:rgb(var(--label-violet-04,126 73 245));--mds-chip-icon-background:rgb(var(--label-violet-05,145 100 246));--mds-chip-icon-background-selected:rgb(var(--label-violet-05,145 100 246));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=violet][tone=weak]){--mds-chip-border-selected:rgb(var(--label-violet-06,184 156 250));--mds-chip-icon-background:rgb(var(--label-violet-09,229 218 253));--mds-chip-icon-background-selected:rgb(var(--label-violet-09,229 218 253));--mds-chip-icon-color:rgb(var(--label-violet-04,126 73 245));--mds-chip-icon-color-selected:rgb(var(--label-violet-04,126 73 245))}:host([variant=yellow][tone=strong]){--mds-chip-border-selected:rgb(var(--label-yellow-04,141 107 5));--mds-chip-icon-background:rgb(var(--label-yellow-05,161 124 6));--mds-chip-icon-background-selected:rgb(var(--label-yellow-05,161 124 6));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))}:host([variant=yellow][tone=weak]){--mds-chip-border-selected:rgb(var(--label-yellow-06,214 163 7));--mds-chip-icon-background:rgb(var(--label-yellow-09,251 221 131));--mds-chip-icon-background-selected:rgb(var(--label-yellow-09,251 221 131));--mds-chip-icon-color:rgb(var(--label-yellow-04,141 107 5));--mds-chip-icon-color-selected:rgb(var(--label-yellow-04,141 107 5))}: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-chip-transition-duration:0s;--private-chip-label-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){--mds-chip-background:rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242)));--mds-chip-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-chip-color-selected:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-opacity-disabled:var(--opacity-disabled,.6);box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}@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-chip-transition-duration:0s;--private-chip-label-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-chip-background:rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242)));--mds-chip-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-chip-color-selected:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-chip-icon-background-selected:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-chip-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-icon-color-selected:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-chip-opacity-disabled:var(--opacity-disabled,.6);box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}`;
|
|
19541
20299
|
|
|
20300
|
+
/**
|
|
20301
|
+
* @category tags
|
|
20302
|
+
*/
|
|
19542
20303
|
class MdsChip {
|
|
19543
20304
|
constructor(hostRef) {
|
|
19544
20305
|
registerInstance(this, hostRef);
|
|
@@ -19631,7 +20392,7 @@ class MdsChip {
|
|
|
19631
20392
|
}
|
|
19632
20393
|
render() {
|
|
19633
20394
|
const interactive = !!this.clickable;
|
|
19634
|
-
return (hAsync(Host, { key: '
|
|
20395
|
+
return (hAsync(Host, { key: '04218bf152dffaf70777dcbe192c930f1a64fc88', "aria-disabled": this.disabled ? 'true' : 'false', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.icon && (hAsync("div", { key: '3b6fd50d222075ad6ea7442b67127f3eb0d9a2c0', "aria-hidden": "true", class: "icon-area" }, hAsync("mds-icon", { key: 'f8657edafd0f72f4034e271267792b09ce7cc32d', class: "icon", name: this.icon }))), hAsync("div", { key: '54b52bfd1078efade24fe0b723acf26da8cb4d4d', class: "label-wrapper" }, hAsync("mds-text", { key: '161fb605708ac7a737b6efe78acc4e71c649e773', "aria-disabled": interactive && this.disabled ? 'true' : undefined, "aria-pressed": interactive && this.selectable ? (this.selected ? 'true' : 'false') : undefined, class: { label: true, 'label--interactive': interactive }, onClick: this.onClickLabelHandler, ref: this.labelRef, role: interactive ? 'button' : undefined, tabindex: interactive && !this.disabled ? '0' : undefined, typography: "caption", truncate: "word" }, this.label)), this.deletable && (hAsync("mds-button", { key: 'd21397ba941b9210ab484ab42f17c42b55923ba4', class: "button-delete", icon: miBaselineCancel, disabled: this.disabled, onClick: this.onDeleteHandler, title: `${this.t.get('deleteLabel')} ${this.label}`, variant: "dark", tone: "text", size: "sm" }))));
|
|
19635
20396
|
}
|
|
19636
20397
|
get host() { return getElement(this); }
|
|
19637
20398
|
static get watchers() { return {
|
|
@@ -19673,6 +20434,7 @@ const mdsDetailsCss = () => `@layer reset,vendor,theme,base,components,utilities
|
|
|
19673
20434
|
* @part header - The header of the component
|
|
19674
20435
|
* @part title - The title of the component
|
|
19675
20436
|
* @part content - The content wrapper of the default and `action` slots
|
|
20437
|
+
* @category structure
|
|
19676
20438
|
*/
|
|
19677
20439
|
class MdsDetails {
|
|
19678
20440
|
constructor(hostRef) {
|
|
@@ -19722,7 +20484,7 @@ class MdsDetails {
|
|
|
19722
20484
|
this.km.detachClickBehavior();
|
|
19723
20485
|
}
|
|
19724
20486
|
render() {
|
|
19725
|
-
return (hAsync(Host, { key: '
|
|
20487
|
+
return (hAsync(Host, { key: '1c4a3f4c429462c0079ae7cffd238c29e50c2e2e', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast }, hAsync("div", { key: '0cffec77bbc662a721faedaa9112ab7ab1ae4995', class: clsx('icon', this.hasIcon ? '' : 'icon--hidden'), onClick: this.toggle }, hAsync("slot", { key: '1c67767d7ac44928dc198986b91c43f659cf7acf', name: "icon", onSlotchange: this.onSlotChangeHandler })), hAsync("div", { key: '93995bc461e94badf351eb9cc160e4a9da6f3532', class: "content" }, hAsync("div", { key: 'fbcd0622088489b7c71ec16abfaf22a85d1272cc', class: "header", part: "header", role: "button", "aria-expanded": this.isOpened ? 'true' : 'false', tabindex: "0", onClick: this.toggle }, hAsync("div", { key: '62343e3d2aa5f83cbb6f11a97c50a1e9114d4596', class: "title", part: "title" }, hAsync("slot", { key: 'b1cf04bcf1de205d9bee2dbbf67e7b7d4a3cdbf3', name: "title" })), hAsync("i", { key: 'f2268ac47b66179c40d38e2c7436cc07f637f9a4', class: clsx('helper-icon', this.isOpened && 'opened'), innerHTML: miBaselineKeyboardArrowRight })), hAsync("div", { key: 'afd8a61aef2a7de7cf29e33e76b89b5cd8da4d78', class: clsx('details', this.isOpened && 'opened') }, hAsync("div", { key: 'b26df1b50cd064edce7c403b9b93d4df7d4662ce', class: "content-expander", part: "content" }, hAsync("slot", { key: '581de76adc73e35dd934984bb6b2ab0834947512' }), hAsync("div", { key: 'f8a8160a11ad5780ea3b7d51826692582ecc167d', class: "actions" }, hAsync("slot", { key: '2ba4e4af5bed74a7ccfd0d4a474e8a43a4345702', name: "action" })))))));
|
|
19726
20488
|
}
|
|
19727
20489
|
get host() { return getElement(this); }
|
|
19728
20490
|
static get watchers() { return {
|
|
@@ -21794,6 +22556,7 @@ const mdsDropdownCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
21794
22556
|
|
|
21795
22557
|
/**
|
|
21796
22558
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot, elements will be shown when the component is triggered.
|
|
22559
|
+
* @category overlays
|
|
21797
22560
|
*/
|
|
21798
22561
|
class MdsDropdown {
|
|
21799
22562
|
constructor(hostRef) {
|
|
@@ -22161,9 +22924,9 @@ class MdsDropdown {
|
|
|
22161
22924
|
this.km.detachEscapeBehavior();
|
|
22162
22925
|
}
|
|
22163
22926
|
render() {
|
|
22164
|
-
return (hAsync(Host, { key: '
|
|
22927
|
+
return (hAsync(Host, { key: '9c74b0961efa29a02485dcbc7a786d34b8cca453', style: {
|
|
22165
22928
|
zIndex: `${this.zIndex}`,
|
|
22166
|
-
}, "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: '
|
|
22929
|
+
}, "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: 'ddf4fb1de145d4ecd9a20e07c9313ab04bb5a3c4', class: "arrow", innerHTML: arrowSvg$1 }), hAsync("slot", { key: '7e6941f27ddee6c8fddf0d93a13847d95a340fb4' })));
|
|
22167
22930
|
}
|
|
22168
22931
|
get host() { return getElement(this); }
|
|
22169
22932
|
static get watchers() { return {
|
|
@@ -28427,8 +29190,11 @@ var simiSvg = `<svg width="440" height="440" viewBox="0 0 440 440" fill="none" x
|
|
|
28427
29190
|
</svg>
|
|
28428
29191
|
`;
|
|
28429
29192
|
|
|
28430
|
-
const mdsEmojiCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-emoji-expression-follow-mouse-traits-duration:var(--duration-200,.2s);--mds-emoji-expression-follow-mouse-head-duration:var(--duration-300,.3s);--mds-emoji-expression-max-rotation:16deg;--mds-emoji-perspective:calc(var(--spacing,.0025rem)*10000);align-items:stretch;aspect-ratio:1;display:flex;height:calc(var(--spacing,.0025rem)*1200);justify-content:stretch;perspective:var(--mds-emoji-perspective,calc(var(--spacing,.0025rem)*10000));perspective-origin:50%;width:calc(var(--spacing,.0025rem)*1200)}svg{height:100%;overflow:visible;
|
|
29193
|
+
const mdsEmojiCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-emoji-expression-follow-mouse-traits-duration:var(--duration-200,.2s);--mds-emoji-expression-follow-mouse-head-duration:var(--duration-300,.3s);--mds-emoji-expression-max-rotation:16deg;--mds-emoji-perspective:calc(var(--spacing,.0025rem)*10000);align-items:stretch;aspect-ratio:1;display:flex;height:calc(var(--spacing,.0025rem)*1200);justify-content:stretch;perspective:var(--mds-emoji-perspective,calc(var(--spacing,.0025rem)*10000));perspective-origin:50%;width:calc(var(--spacing,.0025rem)*1200)}svg{height:100%;overflow:visible;transition:transform var(--duration-200,.2s) ease-out;width:100%}:host([name=mia]){--mds-emoji-mia-eyes-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242)));--mds-emoji-mia-hands-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-emoji-mia-head-color:rgb(var(--magma-accent-ai-surface-hover,var(--variant-ai-08,219 205 252)));--mds-emoji-mia-head-stroke-color:rgb(var(--magma-accent-ai-border,var(--variant-ai-06,184 156 250)));--mds-emoji-mia-head-stroke-width:0px;--mds-emoji-mia-mouth-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-emoji-offset-eyes:1px;--mds-emoji-offset-gadget:1px;--mds-emoji-offset-hands:2px;--mds-emoji-offset-head:0;--mds-emoji-offset-mouth:1px;container-type:size}:host([name=simi]){--mds-emoji-offset-ears:0;--mds-emoji-offset-eyebrows:10px;--mds-emoji-offset-eyes:7px;--mds-emoji-offset-gadget:14px;--mds-emoji-offset-hands:18px;--mds-emoji-offset-head:5px;--mds-emoji-offset-mouth:16px;--mds-emoji-simi-eye-light:#fff;--mds-emoji-simi-eye:#40281b;--mds-emoji-simi-eyebrow:#feefd8;--mds-emoji-simi-gadget:#2b1c15;--mds-emoji-simi-mouth-teeth:#fff;--mds-emoji-simi-mouth-throat:#c3481b;--mds-emoji-simi-mouth:#2b1c15;--mds-emoji-simi-nose-light:#7e695f;--mds-emoji-simi-nose:#2b1c15;--mds-emoji-simi-outline:#2b1c15;--mds-emoji-simi-skin-dark:#c3481b;--mds-emoji-simi-skin-light:#feefd8;--mds-emoji-simi-skin:#f36320}`;
|
|
28431
29194
|
|
|
29195
|
+
/**
|
|
29196
|
+
* @category content
|
|
29197
|
+
*/
|
|
28432
29198
|
class MdsEmoji {
|
|
28433
29199
|
constructor(hostRef) {
|
|
28434
29200
|
registerInstance(this, hostRef);
|
|
@@ -29384,7 +30150,7 @@ class MdsEmoji {
|
|
|
29384
30150
|
return element;
|
|
29385
30151
|
}
|
|
29386
30152
|
render() {
|
|
29387
|
-
return hAsync(Host, { key: '
|
|
30153
|
+
return hAsync(Host, { key: 'c833178744078d72a9d596bb8d5caded53db1627' });
|
|
29388
30154
|
}
|
|
29389
30155
|
get host() { return getElement(this); }
|
|
29390
30156
|
static get watchers() { return {
|
|
@@ -29423,6 +30189,7 @@ const mdsEntityCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
29423
30189
|
* @part spinner - The spinner element
|
|
29424
30190
|
* @part avatar - The avatar element
|
|
29425
30191
|
* @part infos - The column that stacks the name (default slot) and the `detail` row
|
|
30192
|
+
* @category data
|
|
29426
30193
|
*/
|
|
29427
30194
|
class MdsEntity {
|
|
29428
30195
|
constructor(hostRef) {
|
|
@@ -29452,7 +30219,7 @@ class MdsEntity {
|
|
|
29452
30219
|
this.onSlotChange();
|
|
29453
30220
|
}
|
|
29454
30221
|
render() {
|
|
29455
|
-
return (hAsync(Host, { key: '
|
|
30222
|
+
return (hAsync(Host, { key: '746cc0e5d2e9aa46c13c22dc11003aa2f904e644', "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: 'd00bce58e1f2b79f84d03968a41d44cded603855', class: "spinner", part: "spinner" }, hAsync("mds-spinner", { key: '3d961c8d972f90d3e575ea2a24b4665b0d494d4e', running: true })), this.checkAvatar() && (hAsync("mds-avatar", { key: '041579718c0f175d3b19aabf2617a696e8e18dfc', class: "preview", icon: this.icon, initials: this.initials, src: this.src, tone: this.tone, variant: this.variant, part: "avatar" })), hAsync("div", { key: '0719e66e3a4d2c10cecdb673fc442fc7786543ee', class: "infos", part: "infos" }, hAsync("slot", { key: 'e8ce292711d686f7baed7b16b7b4629d5ca5306f' }), hAsync("div", { key: '289632e72502660cbe2cdc24ff1f00c4c229e3bd', class: clsx('details', !this.hasDetails && 'details--hidden') }, hAsync("slot", { key: 'bd7c088d888bb84c04a8d5b6672d3d7bf2c78431', name: "detail", onSlotchange: this.onSlotChange }))), hAsync("div", { key: 'ec03e4905cbd9912b19d91ff2148891d040be635', class: clsx('actions', !this.hasActions && 'actions--hidden') }, hAsync("slot", { key: '2c3e727faa3bdc116faed2960715932fe7854279', name: "action", onSlotchange: this.onSlotChange }))));
|
|
29456
30223
|
}
|
|
29457
30224
|
get hostElement() { return getElement(this); }
|
|
29458
30225
|
static get style() { return mdsEntityCss(); }
|
|
@@ -30096,6 +30863,9 @@ var fileDescriptionLocaleIt = {
|
|
|
30096
30863
|
const mdsFileCss = () => `@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])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]: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))}: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])),: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]))):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))}}`;
|
|
30097
30864
|
|
|
30098
30865
|
// https://stackoverflow.com/questions/1106377/detect-when-a-browser-receives-a-file-download
|
|
30866
|
+
/**
|
|
30867
|
+
* @category content
|
|
30868
|
+
*/
|
|
30099
30869
|
class MdsFile {
|
|
30100
30870
|
constructor(hostRef) {
|
|
30101
30871
|
registerInstance(this, hostRef);
|
|
@@ -30164,7 +30934,7 @@ class MdsFile {
|
|
|
30164
30934
|
}
|
|
30165
30935
|
render() {
|
|
30166
30936
|
var _a, _b;
|
|
30167
|
-
return (hAsync(Host, { key: '
|
|
30937
|
+
return (hAsync(Host, { key: '30c60e46f6cb17edef3b81e7dfd20df5548ef08a', tabindex: "0", onClick: this.handleOnClick, "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: 'a024f1745c39571017e3e610f4deaa3146074b6c', class: "preview" }, this.preview !== undefined ? (hAsync("div", { class: "image-preview", style: { backgroundImage: `url(${this.preview})` } })) : (hAsync("mds-icon", { class: "icon-preview", name: getFormatsVariant(this.filename, this.suffix).icon })), hAsync("div", { key: 'a15dd1bf7b3104430bb81a31852b98a150697c24', class: "download-icon" }, hAsync("mds-icon", { key: 'ef11007fd67a4700f07d6e921a6175e14f725c7b', name: miOutlineFileDownload }))), hAsync("div", { key: '1376715b06dda62df34b17b2dc0ec9f0c3926517', class: "info" }, hAsync("div", { key: '20f2a80d440c1341c8e3b9f935e1db959159c849', class: "filename", title: this.filename }, hAsync("mds-text", { key: 'a0389a8f0b347114e6581b1529b35e1bf4b3ae6d', truncate: "word", typography: "h6", class: "name" }, getName(this.filename)), this.suffix === undefined && getSuffix(this.filename, this.suffix) && (hAsync("mds-text", { key: '4355d3c7e0d5afd0ac3d9ddf9cbc7c7f6a1af7e5', typography: "h6", class: "extension" }, ".", getSuffix(this.filename, this.suffix)))), hAsync("div", { key: '3a46b08a5fc5a8fff303e6a4746d0d0dab868c34', class: "detail" }, getSuffix(this.filename, this.suffix) && (hAsync("mds-badge", { key: 'bfc09f8aede695c9f923eda80393d3d1c5ce2c31', variant: getFormatsVariant(this.filename, this.suffix).variant, tone: "weak", class: "suffix" }, getSuffix(this.filename, this.suffix))), hAsync("mds-text", { key: '63e73da12727accd2b9a56a646c11a792e43c177', truncate: "word", typography: "caption", class: "description", title: (_a = this.description) !== null && _a !== void 0 ? _a : this.t.get(this.getDefaultDescription()) }, (_b = this.description) !== null && _b !== void 0 ? _b : this.t.get(this.getDefaultDescription())))), this.wasDownloaded && !this.hideDownloadedIcon && (hAsync("div", { key: '2222fc601e7baa37f263a733a30195ae4c253b22', class: "indicator" }, hAsync("i", { key: '1b63300cf59d99ac8b4036e75cc804271d1ecc6f', class: "downloaded", innerHTML: miBaselineFileDownloadDone, title: this.t.get('alreadyDownloaded') })))));
|
|
30168
30938
|
}
|
|
30169
30939
|
get host() { return getElement(this); }
|
|
30170
30940
|
static get watchers() { return {
|
|
@@ -30408,6 +31178,7 @@ const mdsFilePreviewCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
30408
31178
|
|
|
30409
31179
|
/**
|
|
30410
31180
|
* @part card - The preview of the file: its thumbnail or format icon, its name and its details
|
|
31181
|
+
* @category content
|
|
30411
31182
|
*/
|
|
30412
31183
|
class MdsFilePreview {
|
|
30413
31184
|
constructor(hostRef) {
|
|
@@ -30473,9 +31244,9 @@ class MdsFilePreview {
|
|
|
30473
31244
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
30474
31245
|
// a removed attribute or a null bound by a framework counts as not set, like an empty value
|
|
30475
31246
|
const hasMessage = ((_a = this.message) !== null && _a !== void 0 ? _a : '') !== '';
|
|
30476
|
-
return (hAsync(Host, { key: '
|
|
31247
|
+
return (hAsync(Host, { key: 'cf9c83a4636e4bb391dbfef53ebafa3a2c13d9ff', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.deletable && (hAsync("mds-button", { key: 'ef240e1c6824370a84944040a573853e8ce637ee', title: this.t.get('remove'), class: "action-delete", icon: miBaselineCancel, variant: "light", onClick: this.onClickDeletedEvent })), hAsync("div", { key: '6880b354db8a345ea2e3411d6d06646410863d78', class: "card", onClick: this.onClickDownloadEvent, part: "card", ref: this.cardRef, role: this.downloadable ? 'button' : undefined, tabindex: this.downloadable ? '0' : undefined }, ((_b = this.src) !== null && _b !== void 0 ? _b : '') !== '' &&
|
|
30477
31248
|
!hasMessage &&
|
|
30478
|
-
getExtensionInfos(this.filename, this.suffix).preview ? (hAsync("mds-img", { src: this.src, class: "preview preview--image", "aspect-ratio": "1/1" })) : (hAsync("div", { class: clsx('preview', hasMessage ? 'preview--status' : 'preview--icon') }, ((_c = this.icon) !== null && _c !== void 0 ? _c : '') !== '' ? (hAsync("mds-icon", { class: "icon", name: this.icon })) : (hAsync("mds-icon", { class: "icon", name: getFormatsVariant(this.filename, this.suffix).icon })), this.message && (hAsync("mds-text", { class: "message", typography: "caption", variant: "info" }, this.message)))), hAsync("mds-text", { key: '
|
|
31249
|
+
getExtensionInfos(this.filename, this.suffix).preview ? (hAsync("mds-img", { src: this.src, class: "preview preview--image", "aspect-ratio": "1/1" })) : (hAsync("div", { class: clsx('preview', hasMessage ? 'preview--status' : 'preview--icon') }, ((_c = this.icon) !== null && _c !== void 0 ? _c : '') !== '' ? (hAsync("mds-icon", { class: "icon", name: this.icon })) : (hAsync("mds-icon", { class: "icon", name: getFormatsVariant(this.filename, this.suffix).icon })), this.message && (hAsync("mds-text", { class: "message", typography: "caption", variant: "info" }, this.message)))), hAsync("mds-text", { key: 'ec2bfe4f4738c27f0f1d99a466fa01a4d19202f0', class: "file-name", typography: "h6", variant: "title", truncate: this.truncate, title: this.filename }, this.filename), hAsync("div", { key: '59eb8b6f5c4f466e4ec6b1a8443a5cd691916e2d', class: clsx('infos', this.filesize && 'infos--has-file-size') }, this.filesize && this.filesize === Number(this.filesize).toString() && (hAsync("mds-text", { key: 'b8c72bfb48476b1acb106899ff518aa2aafa3eaf', class: "file-size", truncate: "word", typography: "caption", variant: "info" }, filesize(Number(this.filesize), { standard: 'jedec' }))), this.filesize && this.filesize !== Number(this.filesize).toString() && (hAsync("mds-text", { key: '2d6874a000051b4b5d22b655b46fc1ef5e8b2018', class: "file-size", truncate: "word", typography: "caption", variant: "info" }, this.filesize)), getSuffix(this.filename, this.suffix) && (hAsync("mds-badge", { key: '05c2e209b44033d22d986441171b23b3d4d4c556', variant: getFormatsVariant(this.filename, this.suffix).variant, tone: "weak", class: "suffix", title: (_d = this.description) !== null && _d !== void 0 ? _d : this.t.get(this.getDefaultKeyDescription()) }, getSuffix(this.filename, this.suffix))), ((_e = this.filesize) !== null && _e !== void 0 ? _e : '') === '' && (hAsync("mds-text", { key: '8e01cb5ad8e7747ba6a99a54d8ee7735602212a3', class: "description", truncate: "word", typography: "caption", variant: "info", title: (_f = this.description) !== null && _f !== void 0 ? _f : this.t.get(this.getDefaultKeyDescription()) }, (_g = this.description) !== null && _g !== void 0 ? _g : this.t.get(this.getDefaultKeyDescription())))))));
|
|
30479
31250
|
}
|
|
30480
31251
|
get host() { return getElement(this); }
|
|
30481
31252
|
static get watchers() { return {
|
|
@@ -30531,6 +31302,7 @@ const mdsFilterCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
30531
31302
|
|
|
30532
31303
|
/**
|
|
30533
31304
|
* @slot - Add `mds-filter-item` element/s.
|
|
31305
|
+
* @category forms
|
|
30534
31306
|
*/
|
|
30535
31307
|
class MdsFilter {
|
|
30536
31308
|
constructor(hostRef) {
|
|
@@ -30710,7 +31482,7 @@ class MdsFilter {
|
|
|
30710
31482
|
this.changedEvent.emit({ children: items, value: this.itemsValues() });
|
|
30711
31483
|
}
|
|
30712
31484
|
render() {
|
|
30713
|
-
return (hAsync(Host, { key: '
|
|
31485
|
+
return (hAsync(Host, { key: '9731527ed288ac1ef2f4f6d426453b952b330296', "aria-label": this.label, role: "group", "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.label && (hAsync("mds-text", { key: '9e61bb346ebe535e40bec68c530e60191c265318', "aria-hidden": "true", class: "label", typography: "label" }, this.label)), hAsync("div", { key: '01bd1f74013d0d2a1487b4ad1044bb7ecc66099d', class: "items-wrapper" }, hAsync("div", { key: 'fff3fe33f2984901b7120aaae3f40abbc922b250', class: clsx('items', this.active && 'active') }, hAsync("slot", { key: '9c10e7b37b9ab05946e59886f3ef5ab3817dc6a3' }), this.reset && (hAsync("div", { key: '2481de0cc7c22c6c9da553fc0579bd05baa5decd', class: clsx('reset', this.active && 'reset--opened') }, hAsync("mds-filter-item", { key: 'aeca6d915b3d2ce23194c378511d646f0a9a5fd9', "aria-hidden": this.active ? undefined : 'true', "aria-label": this.t.get('clearFilters'), selected: this.active, disabled: !this.active, class: clsx('reset-button', this.active && 'reset-button-opened'), icon: miBaselineClose, onClick: this.handleResetClick })))))));
|
|
30714
31486
|
}
|
|
30715
31487
|
get element() { return getElement(this); }
|
|
30716
31488
|
static get style() { return mdsFilterCss(); }
|
|
@@ -30761,6 +31533,9 @@ var localeIt$D = {
|
|
|
30761
31533
|
|
|
30762
31534
|
const mdsFilterItemCss = () => `@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-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-filter-item-transition-duration:var(--duration-200,.2s);--private-filter-item-transition-duration:var(--mds-filter-item-transition-duration);--mds-filter-item-count-background-default:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-filter-item-count-color-default:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-filter-item-count-background-selected:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-filter-item-count-color-selected:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));align-items:center;animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));border-radius:var(--magma-radius-full,var(--radius-full,1000px));color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));cursor:pointer;display:flex;fill:currentColor;gap:calc(var(--spacing,.0025rem)*100);justify-content:center;outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));padding:calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*400);transition-duration:.2s;transition-duration:var(--private-filter-item-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-property:background-color,box-shadow,color,outline,outline-offset;transition-timing-function:ease-in-out;transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));-webkit-user-select:none;user-select:none;white-space:nowrap}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}mds-text{white-space:nowrap}.count{align-items:center;background-color:var(--mds-filter-item-count-background-default,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));box-sizing:border-box;color:var(--mds-filter-item-count-color-default,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));display:inline-flex;flex-shrink:0;height:calc(var(--spacing,.0025rem)*400);justify-content:center;min-width:calc(var(--spacing,.0025rem)*400);padding-left:calc(var(--spacing,.0025rem)*150);padding-right:calc(var(--spacing,.0025rem)*150);transition-duration:var(--duration-200,.2s);transition-property:background-color,color;transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));-webkit-user-select:none;user-select:none}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host([disabled]:not([disabled=false])){color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));pointer-events:none}:host([icon]:not([label])){height:calc(var(--spacing,.0025rem)*900);padding:0;width:calc(var(--spacing,.0025rem)*900)}:host(:hover),:host([selected]:not([selected=false])){background-color:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)))}:host(:hover){box-shadow:var(--shadow-sm,0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a)}:host([selected]:not([selected=false])){color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([selected]:not([selected=false])) .count{background-color:var(--mds-filter-item-count-background-selected,rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73))));color:var(--mds-filter-item-count-color-selected,rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))))}: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-item-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){background-color:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([selected]:not([selected=false])){background-color:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host(:hover){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]):host(:hover),:host([pref-contrast=more]):host([selected]:not([selected=false])){box-shadow:var(--shadow-ring-strong-2,0 0 0 2px 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-filter-item-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){background-color:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([selected]:not([selected=false])){background-color:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));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]))):host(:hover){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host(:hover),:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([selected]:not([selected=false])){box-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}}`;
|
|
30763
31535
|
|
|
31536
|
+
/**
|
|
31537
|
+
* @parent mds-filter
|
|
31538
|
+
*/
|
|
30764
31539
|
class MdsFilterItem {
|
|
30765
31540
|
constructor(hostRef) {
|
|
30766
31541
|
registerInstance(this, hostRef);
|
|
@@ -30823,7 +31598,7 @@ class MdsFilterItem {
|
|
|
30823
31598
|
this.km.detachClickBehavior();
|
|
30824
31599
|
}
|
|
30825
31600
|
render() {
|
|
30826
|
-
return (hAsync(Host, { key: '
|
|
31601
|
+
return (hAsync(Host, { key: '695616e7d403f01a28c368f5511fd0664f4d8ba4', tabindex: this.disabled ? '-1' : '0', role: "button", "aria-disabled": this.disabled ? 'true' : undefined, "aria-label": this.resolveName(), "aria-pressed": this.isFilter() ? (this.selected ? 'true' : 'false') : undefined, onClick: this.toggle, "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.icon && hAsync("mds-icon", { key: '80c99cbbdbcdcb1328c12ece845a6116b623cacf', "aria-hidden": "true", name: this.icon }), this.label && (hAsync("mds-text", { key: '1f743ee11b605d6ac816c08a9d07a75ee20dff3c', "aria-hidden": "true", variant: "info", typography: "caption" }, this.label)), this.count && (hAsync("div", { key: '0b43d0c41b730a94e8309b7be1619a343a517018', class: "count" }, hAsync("mds-text", { key: '9e31474c8b583167d5086f23350a35e54cff7e74', "aria-hidden": "true", variant: "info", typography: "option" }, this.count)))));
|
|
30827
31602
|
}
|
|
30828
31603
|
get element() { return getElement(this); }
|
|
30829
31604
|
static get style() { return mdsFilterItemCss(); }
|
|
@@ -30844,13 +31619,14 @@ class MdsFilterItem {
|
|
|
30844
31619
|
}; }
|
|
30845
31620
|
}
|
|
30846
31621
|
|
|
30847
|
-
const mdsHeaderCss = () => `@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(
|
|
31622
|
+
const mdsHeaderCss = () => `@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:block;fill:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));position:relative;z-index:var(--mds-header-z-index)}.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:var(--mds-header-inline-margin-current);margin-top:var(--mds-header-inline-margin-current);max-width:var(--breakpoint-wide,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])){--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])),: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)))}}`;
|
|
30848
31623
|
|
|
30849
31624
|
// import clsx from 'clsx'
|
|
30850
31625
|
/**
|
|
30851
31626
|
* @part menu - The container element of the modal
|
|
30852
31627
|
* @slot - Add `mds-header-bar` element/s.
|
|
30853
31628
|
* @slot menu - Put actions and other contents that will be shown as mobile menu. Add `text string`, `HTML elements` or `components` to this slot.
|
|
31629
|
+
* @category structure
|
|
30854
31630
|
*/
|
|
30855
31631
|
class MdsHeader {
|
|
30856
31632
|
constructor(hostRef) {
|
|
@@ -31037,7 +31813,7 @@ class MdsHeader {
|
|
|
31037
31813
|
}
|
|
31038
31814
|
}
|
|
31039
31815
|
render() {
|
|
31040
|
-
return (hAsync(Host, { key: '
|
|
31816
|
+
return (hAsync(Host, { key: '1c9b541026a352fbf0374baab7f4942d8357ed52', "pref-consumption": preferenceStore.state.consumption, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, !this.hideBackdrop && (hAsync("div", { key: '693bb1e4e21285f14f3c71aff6ef7065018a726d', class: "backdrop" }, hAsync("div", { key: '7e47c68aa630f3b45623ff8c896a8e80ea31d065', class: "backdrop-blur-item" }), hAsync("div", { key: '02af2445ee96e32d48fde41a26c48e3485b946c8', class: "backdrop-blur-item" }), hAsync("div", { key: 'ccff5262eb49ebc06a49a397588a50cee615e045', class: "backdrop-blur-item" }), hAsync("div", { key: '017cdfaeebee4b703ad7e85894d223a30a57ad0f', class: "backdrop-blur-item" }), hAsync("div", { key: '43196e7691dd1ed8bdfbea25362a381ca8694790', class: "backdrop-blur-item" }), hAsync("div", { key: 'e701eb9f1709363d27bfbb7193ad738d8147a526', class: "backdrop-blur-item" }), hAsync("div", { key: '6db3e6662c960556f23228164a66f588b542c98f', class: "backdrop-blur-item" }), hAsync("div", { key: '1f6361883e05a84f34142b4917f09622269cb1ec', class: "backdrop-blur-item" }), hAsync("div", { key: 'a8a241231da52bd0336f2a3947a690823f108599', class: "backdrop-blur-item" }), hAsync("div", { key: '49c9638578c3ed4121fd9ad88dddfae9279f39b7', class: "backdrop-blur-item" }))), hAsync("slot", { key: '93a68cace1a1d74d22e3a989baabe03504274ef4' }), this.hasMenu && (hAsync("div", { key: '5f3867a6b22e75359792875a6455f8c69078e52b', class: "menu", part: "menu" }, hAsync("mds-modal", { key: 'e6f53fdda6d8a970e1071fbd82447c7a65adf208', class: "modal", opened: this.isOpened, onMdsModalClose: this.close, position: "right" }, hAsync("slot", { key: '2fa584fac9915ee07d054cfa6daa34cf061e71ea', name: "menu" }))))));
|
|
31041
31817
|
}
|
|
31042
31818
|
get host() { return getElement(this); }
|
|
31043
31819
|
static get watchers() { return {
|
|
@@ -31108,6 +31884,7 @@ const mdsHeaderBarCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
31108
31884
|
* @part nav - Selects the `nav` element that contains the horizontal menu
|
|
31109
31885
|
* @slot - Put contents, like logo and a small description shown on the left of the component. Add `text string`, `HTML elements` or `components` to this slot.
|
|
31110
31886
|
* @slot nav - Put the actions shown when the component is on desktop mode. Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
31887
|
+
* @parent mds-header
|
|
31111
31888
|
*/
|
|
31112
31889
|
class MdsHeaderBar {
|
|
31113
31890
|
constructor(hostRef) {
|
|
@@ -31149,7 +31926,7 @@ class MdsHeaderBar {
|
|
|
31149
31926
|
await ((_a = this.host.closest('mds-header')) === null || _a === void 0 ? void 0 : _a.setOpened(isOpened));
|
|
31150
31927
|
}
|
|
31151
31928
|
render() {
|
|
31152
|
-
return (hAsync(Host, { key: '
|
|
31929
|
+
return (hAsync(Host, { key: '3df7d1aa6a492cc111483fe354a6700b3c7ce5c1', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: '757997127ed32ad9d64a8b38a0aaa823a7f3c799', class: "content", part: "content" }, hAsync("div", { key: '490220c6320554a2890f8952cdbd0ffbe118486d', class: "logo" }, hAsync("slot", { key: 'f488bcdadb5383bff6384d2d9739f96143bcf42c' })), hAsync("div", { key: 'f523d42432e08469997b2ddd28fc77d445530c1d', class: "actions", part: "actions" }, hAsync("nav", { key: '121fa2ef2236ee14e34fd848884f4f4ce8dfd2e1', class: clsx('nav', !this.hasNav && 'nav--hidden'), part: "nav" }, hAsync("slot", { key: '332c5aaaf297881cb317dcfdd79aa833a9816e12', name: "nav", onSlotchange: this.onNavSlotChange })), this.menu !== 'none' && (hAsync("mds-button", { key: 'a30c1331202ec6180c7e02b0c8e1fc58e201bbcb', "aria-label": this.t.get('openMenu'), class: "menu", variant: "dark", tone: "text", icon: miRoundMenu, onClick: this.open, part: "hamburger" }))))));
|
|
31153
31930
|
}
|
|
31154
31931
|
get host() { return getElement(this); }
|
|
31155
31932
|
static get style() { return mdsHeaderBarCss(); }
|
|
@@ -31176,6 +31953,7 @@ const mdsHelpCss = () => `@layer reset,vendor,theme,base,components,utilities;@k
|
|
|
31176
31953
|
/**
|
|
31177
31954
|
* @slot - Add `text string` to this slot, **avoid** `HTML elements` or `components`.
|
|
31178
31955
|
* @part icon - The icon that shows the help text in a tooltip
|
|
31956
|
+
* @category overlays
|
|
31179
31957
|
*/
|
|
31180
31958
|
class MdsHelp {
|
|
31181
31959
|
constructor(hostRef) {
|
|
@@ -31193,7 +31971,7 @@ class MdsHelp {
|
|
|
31193
31971
|
}
|
|
31194
31972
|
render() {
|
|
31195
31973
|
var _a;
|
|
31196
|
-
return (hAsync(Host, { key: '
|
|
31974
|
+
return (hAsync(Host, { key: '78ecf5c4c62cd208353376c2ac9ba8de18d5d0b6' }, hAsync("mds-icon", { key: 'e683d1f3df7a63ba5860e3d8b47cc62460ca6382', class: "icon", name: (_a = this.icon) !== null && _a !== void 0 ? _a : miOutlineHelp, part: "icon", role: "img", tabindex: "0" }), hAsync("mds-tooltip", { key: '66842f14438cf1d5be07fca6b926230f46871475', placement: this.placement, disableAutoPlacement: this.disableAutoPlacement, relation: "label", strategy: "absolute", target: ".icon" }, hAsync("slot", { key: 'e24564be11067ab98fdc50000afae46d07966eed' }))));
|
|
31197
31975
|
}
|
|
31198
31976
|
static get style() { return mdsHelpCss(); }
|
|
31199
31977
|
static get cmpMeta() { return {
|
|
@@ -31247,6 +32025,7 @@ const mdsHorizontalScrollCss = () => `@layer reset,vendor,theme,base,components,
|
|
|
31247
32025
|
/**
|
|
31248
32026
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
31249
32027
|
* @part content - The track that scrolls, with the default slot inside
|
|
32028
|
+
* @category structure
|
|
31250
32029
|
*/
|
|
31251
32030
|
class MdsHorizontalScroll {
|
|
31252
32031
|
constructor(hostRef) {
|
|
@@ -31448,7 +32227,7 @@ class MdsHorizontalScroll {
|
|
|
31448
32227
|
this.contents.removeEventListener('scroll', this.translateNavigationDot);
|
|
31449
32228
|
}
|
|
31450
32229
|
render() {
|
|
31451
|
-
return (hAsync(Host, { key: '
|
|
32230
|
+
return (hAsync(Host, { key: '68da4cda41b6fa8cca243e6b737a368cc029fbb7' }, hAsync("div", { key: '9120b25ec1ce39bd2a61d578917d4344965887bd', class: "contents", part: "content" }, hAsync("div", { key: 'e57a250642b4f25884f88e07e1a067e26463c856', class: "spacer" }), hAsync("slot", { key: '690151dfb5b20f01a4b980c9f237b27c1bb3ed4a', onSlotchange: this.updateElements }), hAsync("div", { key: 'e7f2d20b334008306c5b18c1b4dce66fa80796e7', class: "spacer" })), hAsync("div", { key: '771369a5b8ba5ded81998881633f57b8d2cf1b34', class: "dot-navigation" }, hAsync("div", { key: '89a843eb0b8c2d1da2061a21a7adcfc59169d9b9', class: "dot" })), this.controls && this.controls !== 'none' && (hAsync("mds-button", { key: 'eb47346f7aea7f156989718d3420ff319c2ec461', "aria-label": this.t.get('scrollBack'), onClick: this.moveBack, size: "lg", class: clsx('navigation navigation--back', !this.showBack && 'navigation--disabled'), icon: miBaselineArrowBack })), this.controls && this.controls !== 'none' && (hAsync("mds-button", { key: '5df62f7c42e1c200b7355b4422bafa576b967db3', "aria-label": this.t.get('scrollForward'), onClick: this.moveForward, size: "lg", class: clsx('navigation navigation--forward', !this.showForward && 'navigation--disabled'), icon: miBaselineArrowForward }))));
|
|
31452
32231
|
}
|
|
31453
32232
|
get host() { return getElement(this); }
|
|
31454
32233
|
static get watchers() { return {
|
|
@@ -31476,12 +32255,15 @@ class MdsHorizontalScroll {
|
|
|
31476
32255
|
|
|
31477
32256
|
const mdsHrCss = () => `@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%}`;
|
|
31478
32257
|
|
|
32258
|
+
/**
|
|
32259
|
+
* @category structure
|
|
32260
|
+
*/
|
|
31479
32261
|
class MdsHr {
|
|
31480
32262
|
constructor(hostRef) {
|
|
31481
32263
|
registerInstance(this, hostRef);
|
|
31482
32264
|
}
|
|
31483
32265
|
render() {
|
|
31484
|
-
return (hAsync(Host, { key: '
|
|
32266
|
+
return (hAsync(Host, { key: 'f37b5fd798efd5855bb821435527e712ef4e9d5e', "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }));
|
|
31485
32267
|
}
|
|
31486
32268
|
static get style() { return mdsHrCss(); }
|
|
31487
32269
|
static get cmpMeta() { return {
|
|
@@ -31811,6 +32593,7 @@ const mdsIconCss = () => `@layer reset,vendor,theme,base,components,utilities;:h
|
|
|
31811
32593
|
|
|
31812
32594
|
/**
|
|
31813
32595
|
* @part svg - The svg container of the icon
|
|
32596
|
+
* @category content
|
|
31814
32597
|
*/
|
|
31815
32598
|
class MdsIcon {
|
|
31816
32599
|
constructor(hostRef) {
|
|
@@ -31882,7 +32665,7 @@ class MdsIcon {
|
|
|
31882
32665
|
}
|
|
31883
32666
|
}
|
|
31884
32667
|
render() {
|
|
31885
|
-
return (hAsync(Host, { key: '
|
|
32668
|
+
return (hAsync(Host, { key: 'cad78449760538aff33f53ecaadc71193d7fdbb8' }, this.svgHTML && hAsync("i", { key: '5cebc9a01a40ce5cfba4508932bf2d270f061327', "aria-hidden": "true", class: "icon", part: "svg", innerHTML: this.svgHTML })));
|
|
31886
32669
|
}
|
|
31887
32670
|
get hostElement() { return getElement(this); }
|
|
31888
32671
|
static get watchers() { return {
|
|
@@ -31932,6 +32715,7 @@ const mdsImgCss = () => `@layer reset,vendor,theme,base,components,utilities;:ho
|
|
|
31932
32715
|
|
|
31933
32716
|
/**
|
|
31934
32717
|
* @part media - The native `<img>` that shows the picture
|
|
32718
|
+
* @category content
|
|
31935
32719
|
*/
|
|
31936
32720
|
class MdsImg {
|
|
31937
32721
|
constructor(hostRef) {
|
|
@@ -32263,9 +33047,9 @@ const flags = {
|
|
|
32263
33047
|
url: 'typeMismatch',
|
|
32264
33048
|
vatNumber: 'typeMismatch',
|
|
32265
33049
|
};
|
|
32266
|
-
const messages = new Locale$1({ el: localeEl$y, en: localeEn$z, es: localeEs$y, it: localeIt$z });
|
|
33050
|
+
const messages$1 = new Locale$1({ el: localeEl$y, en: localeEn$z, es: localeEs$y, it: localeIt$z });
|
|
32267
33051
|
/** The message of a problem, in the language of the page. */
|
|
32268
|
-
const validityMessage = ({ rule, context, message }) => message || messages.get(rule, context);
|
|
33052
|
+
const validityMessage = ({ rule, context, message }) => message || messages$1.get(rule, context);
|
|
32269
33053
|
/**
|
|
32270
33054
|
* Reports to the form the problem of a form-associated component, or clears it when there is
|
|
32271
33055
|
* none: like a native control, an invalid component matches `:invalid` and stops the submit of
|
|
@@ -32289,6 +33073,19 @@ const showPassword$3 = "Εμφάνιση κωδικού";
|
|
|
32289
33073
|
const speechToTextError$3 = "Η φωνητική υπαγόρευση δεν υποστηρίζεται από αυτό το πρόγραμμα περιήγησης";
|
|
32290
33074
|
const speechToTextOff$3 = "Διακοπή φωνητικής υπαγόρευσης";
|
|
32291
33075
|
const speechToTextOn$3 = "Έναρξη φωνητικής υπαγόρευσης";
|
|
33076
|
+
const validationCc$3 = "Μη έγκυρος αριθμός κάρτας";
|
|
33077
|
+
const validationCfLength$3 = "Ο φορολογικός κωδικός πρέπει να έχει 16 χαρακτήρες";
|
|
33078
|
+
const validationCfRegex$3 = "Ο φορολογικός κωδικός που εισαγάγατε δεν είναι σωστός";
|
|
33079
|
+
const validationEmail$3 = "Μη έγκυρη διεύθυνση email";
|
|
33080
|
+
const validationIsbn$3 = "Μη έγκυρος κωδικός ISBN";
|
|
33081
|
+
const validationIsbnFormat$3 = "Μη έγκυρη μορφή ISBN";
|
|
33082
|
+
const validationMax$3 = "Η μέγιστη τιμή είναι {{max}}";
|
|
33083
|
+
const validationMaxlength$3 = "Το μέγιστο αποδεκτό μήκος είναι {{maxlength}}";
|
|
33084
|
+
const validationMin$3 = "Η ελάχιστη τιμή είναι {{min}}";
|
|
33085
|
+
const validationMinlength$3 = "Το ελάχιστο αποδεκτό μήκος είναι {{minlength}}";
|
|
33086
|
+
const validationPattern$3 = "Μη έγκυρη μορφή";
|
|
33087
|
+
const validationPiva$3 = "Μη έγκυρος αριθμός ΦΠΑ";
|
|
33088
|
+
const validationUrl$3 = "Μη έγκυρη διεύθυνση URL";
|
|
32292
33089
|
var localeEl$x = {
|
|
32293
33090
|
decrease: decrease$3,
|
|
32294
33091
|
hidePassword: hidePassword$3,
|
|
@@ -32296,7 +33093,20 @@ var localeEl$x = {
|
|
|
32296
33093
|
showPassword: showPassword$3,
|
|
32297
33094
|
speechToTextError: speechToTextError$3,
|
|
32298
33095
|
speechToTextOff: speechToTextOff$3,
|
|
32299
|
-
speechToTextOn: speechToTextOn$3
|
|
33096
|
+
speechToTextOn: speechToTextOn$3,
|
|
33097
|
+
validationCc: validationCc$3,
|
|
33098
|
+
validationCfLength: validationCfLength$3,
|
|
33099
|
+
validationCfRegex: validationCfRegex$3,
|
|
33100
|
+
validationEmail: validationEmail$3,
|
|
33101
|
+
validationIsbn: validationIsbn$3,
|
|
33102
|
+
validationIsbnFormat: validationIsbnFormat$3,
|
|
33103
|
+
validationMax: validationMax$3,
|
|
33104
|
+
validationMaxlength: validationMaxlength$3,
|
|
33105
|
+
validationMin: validationMin$3,
|
|
33106
|
+
validationMinlength: validationMinlength$3,
|
|
33107
|
+
validationPattern: validationPattern$3,
|
|
33108
|
+
validationPiva: validationPiva$3,
|
|
33109
|
+
validationUrl: validationUrl$3
|
|
32300
33110
|
};
|
|
32301
33111
|
|
|
32302
33112
|
const decrease$2 = "Decrease";
|
|
@@ -32306,6 +33116,19 @@ const showPassword$2 = "Show password";
|
|
|
32306
33116
|
const speechToTextError$2 = "Voice dictation is not supported by this browser";
|
|
32307
33117
|
const speechToTextOff$2 = "Stop voice dictation";
|
|
32308
33118
|
const speechToTextOn$2 = "Start voice dictation";
|
|
33119
|
+
const validationCc$2 = "Invalid card number";
|
|
33120
|
+
const validationCfLength$2 = "The tax code must be 16 characters long";
|
|
33121
|
+
const validationCfRegex$2 = "The tax code entered is not correct";
|
|
33122
|
+
const validationEmail$2 = "Invalid email address";
|
|
33123
|
+
const validationIsbn$2 = "Invalid ISBN code";
|
|
33124
|
+
const validationIsbnFormat$2 = "Invalid ISBN format";
|
|
33125
|
+
const validationMax$2 = "The maximum value is {{max}}";
|
|
33126
|
+
const validationMaxlength$2 = "The maximum length accepted is {{maxlength}}";
|
|
33127
|
+
const validationMin$2 = "The minimum value is {{min}}";
|
|
33128
|
+
const validationMinlength$2 = "The minimum length accepted is {{minlength}}";
|
|
33129
|
+
const validationPattern$2 = "Invalid format";
|
|
33130
|
+
const validationPiva$2 = "Invalid VAT number";
|
|
33131
|
+
const validationUrl$2 = "Invalid URL";
|
|
32309
33132
|
var localeEn$y = {
|
|
32310
33133
|
decrease: decrease$2,
|
|
32311
33134
|
hidePassword: hidePassword$2,
|
|
@@ -32313,7 +33136,20 @@ var localeEn$y = {
|
|
|
32313
33136
|
showPassword: showPassword$2,
|
|
32314
33137
|
speechToTextError: speechToTextError$2,
|
|
32315
33138
|
speechToTextOff: speechToTextOff$2,
|
|
32316
|
-
speechToTextOn: speechToTextOn$2
|
|
33139
|
+
speechToTextOn: speechToTextOn$2,
|
|
33140
|
+
validationCc: validationCc$2,
|
|
33141
|
+
validationCfLength: validationCfLength$2,
|
|
33142
|
+
validationCfRegex: validationCfRegex$2,
|
|
33143
|
+
validationEmail: validationEmail$2,
|
|
33144
|
+
validationIsbn: validationIsbn$2,
|
|
33145
|
+
validationIsbnFormat: validationIsbnFormat$2,
|
|
33146
|
+
validationMax: validationMax$2,
|
|
33147
|
+
validationMaxlength: validationMaxlength$2,
|
|
33148
|
+
validationMin: validationMin$2,
|
|
33149
|
+
validationMinlength: validationMinlength$2,
|
|
33150
|
+
validationPattern: validationPattern$2,
|
|
33151
|
+
validationPiva: validationPiva$2,
|
|
33152
|
+
validationUrl: validationUrl$2
|
|
32317
33153
|
};
|
|
32318
33154
|
|
|
32319
33155
|
const decrease$1 = "Disminuir";
|
|
@@ -32323,6 +33159,19 @@ const showPassword$1 = "Mostrar contraseña";
|
|
|
32323
33159
|
const speechToTextError$1 = "El dictado por voz no es compatible con este navegador";
|
|
32324
33160
|
const speechToTextOff$1 = "Detener dictado por voz";
|
|
32325
33161
|
const speechToTextOn$1 = "Iniciar dictado por voz";
|
|
33162
|
+
const validationCc$1 = "Número de tarjeta no válido";
|
|
33163
|
+
const validationCfLength$1 = "El código fiscal debe tener 16 caracteres";
|
|
33164
|
+
const validationCfRegex$1 = "El código fiscal introducido no es correcto";
|
|
33165
|
+
const validationEmail$1 = "Dirección de correo electrónico no válida";
|
|
33166
|
+
const validationIsbn$1 = "Código ISBN no válido";
|
|
33167
|
+
const validationIsbnFormat$1 = "Formato ISBN no válido";
|
|
33168
|
+
const validationMax$1 = "El valor máximo es {{max}}";
|
|
33169
|
+
const validationMaxlength$1 = "La longitud máxima aceptada es {{maxlength}}";
|
|
33170
|
+
const validationMin$1 = "El valor mínimo es {{min}}";
|
|
33171
|
+
const validationMinlength$1 = "La longitud mínima aceptada es {{minlength}}";
|
|
33172
|
+
const validationPattern$1 = "Formato no válido";
|
|
33173
|
+
const validationPiva$1 = "Número de IVA no válido";
|
|
33174
|
+
const validationUrl$1 = "URL no válida";
|
|
32326
33175
|
var localeEs$x = {
|
|
32327
33176
|
decrease: decrease$1,
|
|
32328
33177
|
hidePassword: hidePassword$1,
|
|
@@ -32330,7 +33179,20 @@ var localeEs$x = {
|
|
|
32330
33179
|
showPassword: showPassword$1,
|
|
32331
33180
|
speechToTextError: speechToTextError$1,
|
|
32332
33181
|
speechToTextOff: speechToTextOff$1,
|
|
32333
|
-
speechToTextOn: speechToTextOn$1
|
|
33182
|
+
speechToTextOn: speechToTextOn$1,
|
|
33183
|
+
validationCc: validationCc$1,
|
|
33184
|
+
validationCfLength: validationCfLength$1,
|
|
33185
|
+
validationCfRegex: validationCfRegex$1,
|
|
33186
|
+
validationEmail: validationEmail$1,
|
|
33187
|
+
validationIsbn: validationIsbn$1,
|
|
33188
|
+
validationIsbnFormat: validationIsbnFormat$1,
|
|
33189
|
+
validationMax: validationMax$1,
|
|
33190
|
+
validationMaxlength: validationMaxlength$1,
|
|
33191
|
+
validationMin: validationMin$1,
|
|
33192
|
+
validationMinlength: validationMinlength$1,
|
|
33193
|
+
validationPattern: validationPattern$1,
|
|
33194
|
+
validationPiva: validationPiva$1,
|
|
33195
|
+
validationUrl: validationUrl$1
|
|
32334
33196
|
};
|
|
32335
33197
|
|
|
32336
33198
|
const decrease = "Diminuisci";
|
|
@@ -32340,6 +33202,19 @@ const showPassword = "Visualizza password";
|
|
|
32340
33202
|
const speechToTextError = "Dettatura vocale non supportata da questo browser";
|
|
32341
33203
|
const speechToTextOff = "Ferma dettatura vocale";
|
|
32342
33204
|
const speechToTextOn = "Inizia dettatura vocale";
|
|
33205
|
+
const validationCc = "numero di carta non valido";
|
|
33206
|
+
const validationCfLength = "Codice fiscale deve essere lungo 16 caratteri";
|
|
33207
|
+
const validationCfRegex = "Codice fiscale inserito non corretto";
|
|
33208
|
+
const validationEmail = "indirizzo email non valido";
|
|
33209
|
+
const validationIsbn = "codice isbn non valido";
|
|
33210
|
+
const validationIsbnFormat = "formato isbn non corretto";
|
|
33211
|
+
const validationMax = "valore massimo {{max}}";
|
|
33212
|
+
const validationMaxlength = "La lunghezza massima accettata è {{maxlength}}";
|
|
33213
|
+
const validationMin = "valore minimo {{min}}";
|
|
33214
|
+
const validationMinlength = "La lunghezza minima accettata è {{minlength}}";
|
|
33215
|
+
const validationPattern = "formato non valido";
|
|
33216
|
+
const validationPiva = "partita iva non valida";
|
|
33217
|
+
const validationUrl = "url non valido";
|
|
32343
33218
|
var localeIt$y = {
|
|
32344
33219
|
decrease: decrease,
|
|
32345
33220
|
hidePassword: hidePassword,
|
|
@@ -32347,9 +33222,28 @@ var localeIt$y = {
|
|
|
32347
33222
|
showPassword: showPassword,
|
|
32348
33223
|
speechToTextError: speechToTextError,
|
|
32349
33224
|
speechToTextOff: speechToTextOff,
|
|
32350
|
-
speechToTextOn: speechToTextOn
|
|
32351
|
-
|
|
32352
|
-
|
|
33225
|
+
speechToTextOn: speechToTextOn,
|
|
33226
|
+
validationCc: validationCc,
|
|
33227
|
+
validationCfLength: validationCfLength,
|
|
33228
|
+
validationCfRegex: validationCfRegex,
|
|
33229
|
+
validationEmail: validationEmail,
|
|
33230
|
+
validationIsbn: validationIsbn,
|
|
33231
|
+
validationIsbnFormat: validationIsbnFormat,
|
|
33232
|
+
validationMax: validationMax,
|
|
33233
|
+
validationMaxlength: validationMaxlength,
|
|
33234
|
+
validationMin: validationMin,
|
|
33235
|
+
validationMinlength: validationMinlength,
|
|
33236
|
+
validationPattern: validationPattern,
|
|
33237
|
+
validationPiva: validationPiva,
|
|
33238
|
+
validationUrl: validationUrl
|
|
33239
|
+
};
|
|
33240
|
+
|
|
33241
|
+
const messages = new Locale$1({ el: localeEl$x, en: localeEn$y, es: localeEs$x, it: localeIt$y });
|
|
33242
|
+
/**
|
|
33243
|
+
* The message of a failed validation, in the language of the page when the value is validated: a
|
|
33244
|
+
* validator is built once, and the language can change after that.
|
|
33245
|
+
*/
|
|
33246
|
+
const validationMessage = (tag, context) => messages.get(tag, context);
|
|
32353
33247
|
const NullValidator = () => null;
|
|
32354
33248
|
const requiredValidor = (input) => {
|
|
32355
33249
|
return input.length > 0 ? null : { required: '' };
|
|
@@ -32362,7 +33256,9 @@ const maxValidator = (max) => {
|
|
|
32362
33256
|
const value = parseFloat(input);
|
|
32363
33257
|
// Controls with NaN values after parsing should be treated as not having a
|
|
32364
33258
|
// maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max
|
|
32365
|
-
return !isNaN(value) && value > max
|
|
33259
|
+
return !isNaN(value) && value > max
|
|
33260
|
+
? { max: validationMessage('validationMax', { max }) }
|
|
33261
|
+
: null;
|
|
32366
33262
|
};
|
|
32367
33263
|
};
|
|
32368
33264
|
const minValidator = (min) => {
|
|
@@ -32373,26 +33269,28 @@ const minValidator = (min) => {
|
|
|
32373
33269
|
const value = parseFloat(input);
|
|
32374
33270
|
// Controls with NaN values after parsing should be treated as not having a
|
|
32375
33271
|
// minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min
|
|
32376
|
-
return !isNaN(value) && value < min
|
|
33272
|
+
return !isNaN(value) && value < min
|
|
33273
|
+
? { min: validationMessage('validationMin', { min }) }
|
|
33274
|
+
: null;
|
|
32377
33275
|
};
|
|
32378
33276
|
};
|
|
32379
|
-
const
|
|
33277
|
+
const maxLengthValidator = (length) => {
|
|
32380
33278
|
return (input) => {
|
|
32381
33279
|
if (input === '' || length === null) {
|
|
32382
33280
|
return null; // don't validate empty values to allow optional controls
|
|
32383
33281
|
}
|
|
32384
33282
|
return input.length > length
|
|
32385
|
-
? {
|
|
33283
|
+
? { maxlength: validationMessage('validationMaxlength', { maxlength: length }) }
|
|
32386
33284
|
: null;
|
|
32387
33285
|
};
|
|
32388
33286
|
};
|
|
32389
|
-
const
|
|
33287
|
+
const minLengthValidator = (length) => {
|
|
32390
33288
|
return (input) => {
|
|
32391
33289
|
if (input === '' || length === null) {
|
|
32392
33290
|
return null; // don't validate empty values to allow optional controls
|
|
32393
33291
|
}
|
|
32394
33292
|
return input.length < length
|
|
32395
|
-
? {
|
|
33293
|
+
? { minlength: validationMessage('validationMinlength', { minlength: length }) }
|
|
32396
33294
|
: null;
|
|
32397
33295
|
};
|
|
32398
33296
|
};
|
|
@@ -32420,7 +33318,7 @@ const patternValidator = (pattern) => {
|
|
|
32420
33318
|
return (input) => {
|
|
32421
33319
|
if (input === '')
|
|
32422
33320
|
return null; // don't validate empty values to allow optional controls
|
|
32423
|
-
return expression.test(input) ? null : { pattern: '
|
|
33321
|
+
return expression.test(input) ? null : { pattern: validationMessage('validationPattern') };
|
|
32424
33322
|
};
|
|
32425
33323
|
};
|
|
32426
33324
|
// the valid email address of the HTML spec, the one a native type="email" checks
|
|
@@ -32428,7 +33326,7 @@ const emailExpression = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z
|
|
|
32428
33326
|
const emailValidatorFn = (input) => {
|
|
32429
33327
|
if (input === '')
|
|
32430
33328
|
return null; // don't validate empty values to allow optional controls
|
|
32431
|
-
return emailExpression.test(input) ? null : { email: '
|
|
33329
|
+
return emailExpression.test(input) ? null : { email: validationMessage('validationEmail') };
|
|
32432
33330
|
};
|
|
32433
33331
|
// a native type="url" accepts an absolute URL, the one the URL parser reads without a base
|
|
32434
33332
|
const urlValidatorFn = (input) => {
|
|
@@ -32439,7 +33337,7 @@ const urlValidatorFn = (input) => {
|
|
|
32439
33337
|
return null;
|
|
32440
33338
|
}
|
|
32441
33339
|
catch (_a) {
|
|
32442
|
-
return { url: '
|
|
33340
|
+
return { url: validationMessage('validationUrl') };
|
|
32443
33341
|
}
|
|
32444
33342
|
};
|
|
32445
33343
|
/**
|
|
@@ -32449,7 +33347,7 @@ const urlValidatorFn = (input) => {
|
|
|
32449
33347
|
const pivaValidatorFn = (input) => {
|
|
32450
33348
|
if (input === '')
|
|
32451
33349
|
return null; // don't validate empty values to allow optional controls
|
|
32452
|
-
const error = { piva: '
|
|
33350
|
+
const error = { piva: validationMessage('validationPiva') };
|
|
32453
33351
|
if (!/^\d{11}$/.test(input))
|
|
32454
33352
|
return error;
|
|
32455
33353
|
const digits = input.split('').map(Number);
|
|
@@ -32468,7 +33366,7 @@ const pivaValidatorFn = (input) => {
|
|
|
32468
33366
|
const ccValidatorFn = (input) => {
|
|
32469
33367
|
if (input === '')
|
|
32470
33368
|
return null; // don't validate empty values to allow optional controls
|
|
32471
|
-
const error = { cc: '
|
|
33369
|
+
const error = { cc: validationMessage('validationCc') };
|
|
32472
33370
|
if (!/^\d+(?:[ -]\d+)*$/.test(input))
|
|
32473
33371
|
return error;
|
|
32474
33372
|
const digits = input.replace(/[ -]/g, '');
|
|
@@ -32491,7 +33389,7 @@ const isbnValidatorFn = (input) => {
|
|
|
32491
33389
|
if (input === '')
|
|
32492
33390
|
return null; // don't validate empty values to allow optional controls
|
|
32493
33391
|
if (Number.isNaN(input.slice(0, -1)) || (input.length !== 10 && input.length !== 13))
|
|
32494
|
-
return { 'isbn-error': '
|
|
33392
|
+
return { 'isbn-error': validationMessage('validationIsbnFormat') };
|
|
32495
33393
|
const v = input.split('').map((v) => (v === 'X' ? 10 : Number(v)));
|
|
32496
33394
|
let check = 0;
|
|
32497
33395
|
// check isbn-10
|
|
@@ -32509,7 +33407,7 @@ const isbnValidatorFn = (input) => {
|
|
|
32509
33407
|
}, 0);
|
|
32510
33408
|
check = numVerify % 10;
|
|
32511
33409
|
}
|
|
32512
|
-
return check === 0 ? null : { 'isbn-error': '
|
|
33410
|
+
return check === 0 ? null : { 'isbn-error': validationMessage('validationIsbn') };
|
|
32513
33411
|
};
|
|
32514
33412
|
class Validator {
|
|
32515
33413
|
constructor() {
|
|
@@ -32616,14 +33514,14 @@ function createInputValidationManager(type) {
|
|
|
32616
33514
|
return null; // don't validate empty values to allow optional controls
|
|
32617
33515
|
return InputMaskPattern.CF_Regex.test(input)
|
|
32618
33516
|
? null
|
|
32619
|
-
: { 'cf-regex': '
|
|
33517
|
+
: { 'cf-regex': validationMessage('validationCfRegex') };
|
|
32620
33518
|
});
|
|
32621
33519
|
inputManager.validator.addValidator((input) => {
|
|
32622
33520
|
if (input === '')
|
|
32623
33521
|
return null; // don't validate empty values to allow optional controls
|
|
32624
33522
|
return input.length === 16
|
|
32625
33523
|
? null
|
|
32626
|
-
: { 'cf-length': '
|
|
33524
|
+
: { 'cf-length': validationMessage('validationCfLength') };
|
|
32627
33525
|
});
|
|
32628
33526
|
break;
|
|
32629
33527
|
case 'isbn':
|
|
@@ -32640,14 +33538,13 @@ function createInputValidationManager(type) {
|
|
|
32640
33538
|
return inputManager;
|
|
32641
33539
|
}
|
|
32642
33540
|
|
|
32643
|
-
// the validators of the type carry an Italian message: the form gets the localized one instead
|
|
32644
|
-
const typeErrors = ['cf-length', 'cf-regex', 'isbn-error'];
|
|
32645
33541
|
/**
|
|
32646
33542
|
* The problem reported to the form for the errors of a value. The first validator that fails
|
|
32647
33543
|
* decides it: the ones of the type come first, then required, max, min, maxlength, minlength,
|
|
32648
|
-
* pattern and the custom ones last,
|
|
33544
|
+
* pattern and the custom ones last. The codice fiscale and ISBN validators, like the custom ones,
|
|
33545
|
+
* give the form their own message, already in the language of the page.
|
|
32649
33546
|
*/
|
|
32650
|
-
const validityProblem = (errors,
|
|
33547
|
+
const validityProblem = (errors, constraints) => {
|
|
32651
33548
|
const [key] = Object.keys(errors);
|
|
32652
33549
|
switch (key) {
|
|
32653
33550
|
case 'required':
|
|
@@ -32656,11 +33553,10 @@ const validityProblem = (errors, value, constraints) => {
|
|
|
32656
33553
|
return { rule: 'max', context: { max: constraints.max } };
|
|
32657
33554
|
case 'min':
|
|
32658
33555
|
return { rule: 'min', context: { min: constraints.min } };
|
|
32659
|
-
|
|
32660
|
-
|
|
32661
|
-
|
|
32662
|
-
|
|
32663
|
-
: { rule: 'minlength', context: { minlength: constraints.minlength } };
|
|
33556
|
+
case 'maxlength':
|
|
33557
|
+
return { rule: 'maxlength', context: { maxlength: constraints.maxlength } };
|
|
33558
|
+
case 'minlength':
|
|
33559
|
+
return { rule: 'minlength', context: { minlength: constraints.minlength } };
|
|
32664
33560
|
case 'pattern':
|
|
32665
33561
|
return { rule: 'pattern' };
|
|
32666
33562
|
case 'email':
|
|
@@ -32672,7 +33568,7 @@ const validityProblem = (errors, value, constraints) => {
|
|
|
32672
33568
|
case 'cc':
|
|
32673
33569
|
return { rule: 'cardNumber' };
|
|
32674
33570
|
default:
|
|
32675
|
-
return { rule: 'invalid', message:
|
|
33571
|
+
return { rule: 'invalid', message: errors[key] };
|
|
32676
33572
|
}
|
|
32677
33573
|
};
|
|
32678
33574
|
|
|
@@ -32689,6 +33585,7 @@ const mdsInputCss = () => `@layer reset,vendor,theme,base,components,utilities;:
|
|
|
32689
33585
|
* @part tip-count - Selects the mds-input-tip-item shown when maxlength attribute is set, can be used to hide it if needed
|
|
32690
33586
|
* @part tip-top - Selects the verbose status of input on top of element
|
|
32691
33587
|
* @part tip-bottom - Selects the verbose status of input on bottom of element
|
|
33588
|
+
* @category forms
|
|
32692
33589
|
*/
|
|
32693
33590
|
class MdsInput {
|
|
32694
33591
|
constructor(hostRef) {
|
|
@@ -32997,9 +33894,9 @@ class MdsInput {
|
|
|
32997
33894
|
if (min !== undefined)
|
|
32998
33895
|
validator.addValidator(minValidator(min));
|
|
32999
33896
|
if (this.maxlength !== undefined && this.maxlength !== 0 && !Number.isNaN(this.maxlength))
|
|
33000
|
-
validator.addValidator(
|
|
33897
|
+
validator.addValidator(maxLengthValidator(this.maxlength));
|
|
33001
33898
|
if (this.minlength !== undefined && this.minlength !== 0 && !Number.isNaN(this.minlength))
|
|
33002
|
-
validator.addValidator(
|
|
33899
|
+
validator.addValidator(minLengthValidator(this.minlength));
|
|
33003
33900
|
const pattern = this.patternApplies() ? patternValidator((_b = this.pattern) !== null && _b !== void 0 ? _b : '') : null;
|
|
33004
33901
|
if (pattern)
|
|
33005
33902
|
validator.addValidator(pattern);
|
|
@@ -33029,7 +33926,7 @@ class MdsInput {
|
|
|
33029
33926
|
const value = (_a = this.value) !== null && _a !== void 0 ? _a : '';
|
|
33030
33927
|
const errors = this.inputValidation.validator.check(value);
|
|
33031
33928
|
const problem = errors
|
|
33032
|
-
? validityProblem(errors,
|
|
33929
|
+
? validityProblem(errors, {
|
|
33033
33930
|
max: this.numericBound(this.max),
|
|
33034
33931
|
maxlength: this.maxlength,
|
|
33035
33932
|
min: this.numericBound(this.min),
|
|
@@ -33071,13 +33968,18 @@ class MdsInput {
|
|
|
33071
33968
|
* Emits the change event when the component value changes
|
|
33072
33969
|
*/
|
|
33073
33970
|
valueChanged() {
|
|
33074
|
-
var _a;
|
|
33971
|
+
var _a, _b;
|
|
33075
33972
|
this.changeEvent.emit({ value: this.value });
|
|
33076
33973
|
setFormValue(this.internals, (_a = this.value) !== null && _a !== void 0 ? _a : null);
|
|
33077
33974
|
this.updateFormValidity();
|
|
33078
33975
|
if (this.maxlength !== undefined) {
|
|
33079
33976
|
this.countMaxLength();
|
|
33080
33977
|
}
|
|
33978
|
+
if (!this.validated) {
|
|
33979
|
+
// pristine field: only the required tip follows, the variant waits for the first blur
|
|
33980
|
+
this.isValid = !(this.required && ((_b = this.value) !== null && _b !== void 0 ? _b : '') === '');
|
|
33981
|
+
return;
|
|
33982
|
+
}
|
|
33081
33983
|
// if is necessary for skip validation when reset input to retype correct value, validation is always onBlur
|
|
33082
33984
|
if (this.value === '')
|
|
33083
33985
|
return;
|
|
@@ -33179,9 +34081,9 @@ class MdsInput {
|
|
|
33179
34081
|
}
|
|
33180
34082
|
render() {
|
|
33181
34083
|
var _a, _b, _c;
|
|
33182
|
-
return (hAsync(Host, { key: '
|
|
34084
|
+
return (hAsync(Host, { key: 'c856932350cf53c57a145aef676005e79ff20e6e', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.type === 'number' && this.controlsLayout === 'horizontal' && (hAsync("mds-button", { key: '7bfaf28b46faa29020389bc444c7da694b6b650a', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineKeyboardArrowDown : miBaselineRemove, disabled: !this.canEdit(), onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), variant: "dark", tone: "text", part: "counter-button-decrease" })), this.type === 'textarea' ? (hAsync("textarea", { "aria-label": this.accessibleName, class: clsx('input', ((_a = this.icon) !== null && _a !== void 0 ? _a : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoFocus: this.autofocus, disabled: this.isDisabled(), maxLength: this.maxlength, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyDown: this.onKeyDown, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: (input) => (this.nativeInput = input), required: this.required, tabIndex: this.tabindex, value: this.value })) : (hAsync("input", { "aria-label": this.accessibleName, class: clsx('input', ((_b = this.icon) !== null && _b !== void 0 ? _b : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoComplete: this.autocomplete, autoFocus: this.autofocus, disabled: this.isDisabled(), max: this.max, maxLength: this.maxlength, min: this.min, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyDown: this.onKeyDown, pattern: this.pattern, list: this.datalistId, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: (input) => (this.nativeInput = input), required: this.required, step: this.step, tabIndex: this.tabindex, type: this.type === 'password' && this.isPasswordVisible ? 'text' : this.type, value: this.value })), this.type === 'number' && this.controlsLayout === 'vertical' && (hAsync("div", { key: 'cacebc13d3acd7e4b4cc5e07e1887f72e4d08f74', class: "counter counter--vertical" }, hAsync("mds-button", { key: '8b99cb70002936c41d04e5f150cbe05dc08e27aa', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineKeyboardArrowUp : miBaselineAdd, disabled: !this.canEdit(), onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), variant: "dark", size: "sm", tone: "text", part: "counter-button-increase" }), hAsync("mds-button", { key: '98e3d17c2ca0c06977a96418e3353babf95c4bac', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineKeyboardArrowDown : miBaselineRemove, disabled: !this.canEdit(), onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), variant: "dark", size: "sm", tone: "text", part: "counter-button-decrease" }))), this.type === 'number' && this.controlsLayout === 'horizontal' && (hAsync("mds-button", { key: '76109894dfd126d9145e854933afb9e78008e86f', class: "counter-button counter-button--horizontal counter-button--increase", variant: "dark", tone: "text", icon: this.controlsIcon === 'arrow' ? miBaselineKeyboardArrowUp : miBaselineAdd, disabled: !this.canEdit(), onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" })), this.type === 'password' && (hAsync("mds-button", { key: '9ed861d527d875771dc1c225dedaa6da81fdeef5', class: "password-toggle-button", size: this.buttonSize(), variant: "dark", tone: "text", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, disabled: this.isDisabled(), onClick: this.handlePasswordToggleClick, tabindex: "0", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" })), this.type === 'password' && !this.isPasswordVisible && ((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) > 0 && (hAsync("div", { key: '966c2f5fba186b648add96c0476f201403b37915', class: "password-mask" }, hAsync("div", { key: '70b9200edf7d1849afde6a9cfd58440913aba991', class: "password-mask-items", part: "password-mask-items" }, Array.from({ length: this.value.length }).map((_, index) => (hAsync("div", { key: index, class: "password-mask-item", part: "password-mask-item" })))))), this.mic && (hAsync("mds-button", { key: '58a4978feb6711380f36d12630ede5fed6717634', class: clsx('mic-toggle-button', this.isRecording && 'mic-toggle-button--recording'), size: this.buttonSize(), icon: this.speechToTextIcon, disabled: !this.canEdit(), onClick: this.toggleTextRecognition, tabindex: "0", title: this.t.get(this.speechToTextLabelKey), variant: "dark", tone: "text", part: "mic-toggle-button" })), hAsync("mds-input-tip", { key: 'd412e7f0194b6506cff44b2e361bd72016fb30b4', position: "top", active: this.hasFocus, part: "tip-top" }, this.isDisabled() && (hAsync("mds-input-tip-item", { key: 'f7728c3c0c2a2197b8c3b6d261085be5ff24f259', expanded: true, variant: "disabled" })), this.readonly && hAsync("mds-input-tip-item", { key: '72f41be1624583beaea44f034ecc07dc285018a1', expanded: true, variant: "readonly" }), this.required && (hAsync("mds-input-tip-item", { key: '5148ab8bdcafbc9944447814acb9c668954e8e93', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' }))), hAsync("mds-input-tip", { key: '1780e41f8078a17d2f558165f5a0a8e1ea50d851', position: "bottom", active: this.hasFocus, part: "tip-bottom" }, this.tip && (hAsync("mds-input-tip-item", { key: 'bc1c15f578236bc52cff7b6998c47c6f71d542f9', expanded: true, variant: "text" }, this.tip)), this.maxlength && (hAsync("mds-input-tip-item", { key: 'aa878fb04495702f3c5b9130c5e1aff052f2d382', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel))), this.datalist && (hAsync("datalist", { key: '269b2ff771e90ba4726fdbedbb60d15d1af3b94e', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
|
|
33183
34085
|
return hAsync("option", { key: i, value: element });
|
|
33184
|
-
}))), this.icon && !this.await && (hAsync("mds-icon", { key: '
|
|
34086
|
+
}))), this.icon && !this.await && (hAsync("mds-icon", { key: '35dfa9175625559bf332d960430030bf6b2db381', class: clsx('icon', this.variant), name: this.icon })), hAsync("mds-spinner", { key: '50b49ee75f0c5217e0f3bb2cb95d9114a9ee1989', running: this.await, class: clsx('await', this.variant) })));
|
|
33185
34087
|
}
|
|
33186
34088
|
static get formAssociated() { return true; }
|
|
33187
34089
|
get el() { return getElement(this); }
|
|
@@ -33296,6 +34198,7 @@ const mdsInputDateCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
33296
34198
|
// TODO add input validation manager for error message
|
|
33297
34199
|
/**
|
|
33298
34200
|
* @part input-date - The native date input
|
|
34201
|
+
* @category forms
|
|
33299
34202
|
*/
|
|
33300
34203
|
class MdsInputDate {
|
|
33301
34204
|
constructor(hostRef) {
|
|
@@ -33558,11 +34461,11 @@ class MdsInputDate {
|
|
|
33558
34461
|
this.validateValue();
|
|
33559
34462
|
}
|
|
33560
34463
|
render() {
|
|
33561
|
-
return (hAsync(Host, { key: '
|
|
34464
|
+
return (hAsync(Host, { key: '3f759e90a2afb2a60cccffefe05e0d5ee83e6599', empty: this.empty, "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("input", { key: 'aec10df994fff027b3f1036868ba3227eca28b95', "aria-label": this.accessibleName, value: this.value, id: "dateInput", class: "input", part: "input-date", type: "date", disabled: this.isDisabled(), name: this.name, readOnly: this.readonly, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.handleChange, onChange: this.handleChange }), !this.isSlotted && (hAsync("div", { key: '2ab71c0e0d679f92a4e46c1dc4bd082c513820b0', class: "action-open-calendar-wrapper" }, hAsync("mds-button", { key: '0c1c529596a6f0cecaf1f308a2e4be9359a7055c', "aria-label": this.t.get('openCalendar'), id: "calendar-dropdown", class: "action-open-calendar",
|
|
33562
34465
|
// the default md button fills the 36px square of an md field; sm fits the 28px one
|
|
33563
34466
|
size: this.size === 'sm' ? 'sm' : undefined,
|
|
33564
34467
|
// a read-only date cannot change, from the calendar either
|
|
33565
|
-
disabled: this.isDisabled() || this.readonly, variant: "dark", tone: "text", icon: miBaselineCalendarToday, onClick: this.handleOpenCalendarClick }))), hAsync("mds-input-tip", { key: '
|
|
34468
|
+
disabled: this.isDisabled() || this.readonly, variant: "dark", tone: "text", icon: miBaselineCalendarToday, onClick: this.handleOpenCalendarClick }))), hAsync("mds-input-tip", { key: 'c54689cb5fc4280a5914306bdd531f5d34213d9b', position: "top", active: this.hasFocus }, this.isDisabled() && (hAsync("mds-input-tip-item", { key: '8da23823a14db37f4264234923c6e359091a2c16', expanded: true, variant: "disabled" })), this.readonly && hAsync("mds-input-tip-item", { key: '077fc5e96d1a1155b56d7c985f903e8d40554df4', expanded: true, variant: "readonly" }), this.required && (hAsync("mds-input-tip-item", { key: '8d04195ec36c6c6ed3c780b210e3edcefbc931bd', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' }))), !this.isSlotted && (hAsync("mds-dropdown", { key: '82b2a86ab4c71e18d8fd18ce1aedafafca71fcdf', placement: "bottom-end", "disable-auto-placement": true, ref: (el) => (this.dropdownRef = el), role: "group", target: "#calendar-dropdown" }, hAsync("mds-calendar", Object.assign({ key: this.calendarKey, singlePicker: true, hideToday: this.hideToday, onMdsCalendarChange: this.handleCalendarChange, startDate: this.value }, (this.min !== null && this.min !== '' ? { min: this.min } : {}), (this.max !== null && this.max !== '' ? { max: this.max } : {})))))));
|
|
33566
34469
|
}
|
|
33567
34470
|
static get formAssociated() { return true; }
|
|
33568
34471
|
get host() { return getElement(this); }
|
|
@@ -33672,6 +34575,7 @@ const mdsInputDateRangeCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
33672
34575
|
* @slot calendar-preselection - Add `HTML elements` or `components` to this slot.
|
|
33673
34576
|
* @slot start - Add `HTML elements` or `components` to this slot.
|
|
33674
34577
|
* @slot end - Add `HTML elements` or `components` to this slot.
|
|
34578
|
+
* @category forms
|
|
33675
34579
|
*/
|
|
33676
34580
|
class MdsInputDateRange {
|
|
33677
34581
|
constructor(hostRef) {
|
|
@@ -34201,9 +35105,9 @@ class MdsInputDateRange {
|
|
|
34201
35105
|
return (hAsync("div", { class: "calendars" }, this.renderCalendarPreselectionPanel(), hAsync("mds-calendar", Object.assign({ key: `${this.calendarKey}-start`, hideToday: this.hideToday, hideNextButton: true, disableMonthYearSelection: true, viewDate: this.getCalendarViewDate(), onMdsCalendarNavigate: this.handleCalendarNavigate, onMdsCalendarChange: this.handleCalendarChange, onMdsCalendarPreselect: this.handleCalendarPreselect, startDate: this.internalStartDate, endDate: this.internalEndDate }, (this.min !== null && this.min !== '' ? { min: this.min } : {}), (this.max !== null && this.max !== '' ? { max: this.max } : {}))), hAsync("mds-calendar", Object.assign({ key: `${this.calendarKey}-end`, hideToday: this.hideToday, hidePreviousButton: true, disableMonthYearSelection: true, viewDate: this.getCalendarViewDate(1), onMdsCalendarNavigate: this.handleCalendarNavigate, onMdsCalendarChange: this.handleCalendarChange, onMdsCalendarPreselect: this.handleCalendarPreselect, startDate: this.internalStartDate, endDate: this.internalEndDate }, (this.min !== null && this.min !== '' ? { min: this.min } : {}), (this.max !== null && this.max !== '' ? { max: this.max } : {})))));
|
|
34202
35106
|
}
|
|
34203
35107
|
render() {
|
|
34204
|
-
return (hAsync(Host, { key: '
|
|
35108
|
+
return (hAsync(Host, { key: '738b56e7d3f2c1464cc5d04c4295ac9c4ec81de8', onClick: this.focusDateInput, "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: '5e2b0ed755b790deb60ab0f6c29780c4dcf03e29', class: "inputs" }, hAsync("div", { key: 'f4f50ee579ff5fd17dc3051dda757f3b122c5a45', class: "input-element" }, hAsync("mds-text", { key: '51ecde33bdf3239a0d398ede8278ebfe1f8ea98e', class: "date-label", typography: "detail", onClick: this.focusStartDateInput }, this.t.get('from')), hAsync("div", { key: 'ea92a2b0bd712d7017b07e03a4bacfc51f751747', class: "input-wrapper" }, hAsync("slot", { key: '5884f1aace2ceadbec9a61a6e78cbbcefecdbb1a', name: "start" }))), hAsync("div", { key: 'c5edaccce1aa0db4509491e62ebf20b114cbea0b', class: "input-element" }, hAsync("mds-text", { key: 'c1e238ec88c2f09f2bc16d9fff5173c647c475f2', class: "date-label", typography: "detail", onClick: this.focusEndDateInput }, this.t.get('to')), hAsync("div", { key: '62812759b08d5cd744db7041d60e4a647b4ddffb', class: "input-wrapper" }, hAsync("slot", { key: '50d4b2028bf69b504cc9c4d8538dd632a3a8acbb', name: "end" })))), hAsync("div", { key: '1eea6b042ae0bf34c949e635b3769284452a1bcc', class: "action-open-calendar-wrapper" }, hAsync("mds-button", { key: '95a21c2b57a1716bfd215600f9574aa19aa75bbe', "aria-label": this.t.get('openCalendar'), class: "action-open-calendar",
|
|
34205
35109
|
// the default md button fills the 36px square of an md field; sm fits the 28px one
|
|
34206
|
-
size: this.size === 'sm' ? 'sm' : undefined, disabled: this.isDisabled(), variant: "dark", tone: "text", icon: miBaselineCalendarToday, id: "calendar-dropdown", onClick: this.handleOpenCalendarClick })), hAsync("mds-dropdown", { key: '
|
|
35110
|
+
size: this.size === 'sm' ? 'sm' : undefined, disabled: this.isDisabled(), variant: "dark", tone: "text", icon: miBaselineCalendarToday, id: "calendar-dropdown", onClick: this.handleOpenCalendarClick })), hAsync("mds-dropdown", { key: '86f6542a700cebb2b605990356f75a8f638f31d3', ref: (el) => (this.dropdownRef = el), target: "#calendar-dropdown", "disable-auto-placement": true, placement: "bottom-end", role: "group" }, this.dualCalendar ? this.renderDualCalendars() : this.renderSingleCalendar())));
|
|
34207
35111
|
}
|
|
34208
35112
|
syncFormValue() {
|
|
34209
35113
|
var _a, _b, _c, _d;
|
|
@@ -34271,6 +35175,7 @@ const mdsInputDateRangePreselectionCss = () => `@layer reset,vendor,theme,base,c
|
|
|
34271
35175
|
* @slot - Add the `text string` of the preselection, as `Last 7 days`: it becomes the label of
|
|
34272
35176
|
* the button that applies the range. **Avoid** `HTML elements` or `components`, which end up
|
|
34273
35177
|
* inside an `mds-button`.
|
|
35178
|
+
* @parent mds-input-date-range
|
|
34274
35179
|
*/
|
|
34275
35180
|
class MdsInputDateRangePreselection {
|
|
34276
35181
|
constructor(hostRef) {
|
|
@@ -34294,7 +35199,7 @@ class MdsInputDateRangePreselection {
|
|
|
34294
35199
|
}
|
|
34295
35200
|
}
|
|
34296
35201
|
render() {
|
|
34297
|
-
return (hAsync(Host, { key: '
|
|
35202
|
+
return (hAsync(Host, { key: '202ebd20cf70d0062792763c805de5fa89c984ad' }, hAsync("mds-button", { key: '872ffe12a2244d9bd0623e57927a3d21c123c14f', onClick: this.onClick, class: "action", variant: "primary", tone: "strong" }, hAsync("slot", { key: 'd7618ad21b0cdc80afe3d39905dc8848c5f585ca' }))));
|
|
34298
35203
|
}
|
|
34299
35204
|
get host() { return getElement(this); }
|
|
34300
35205
|
static get style() { return mdsInputDateRangePreselectionCss(); }
|
|
@@ -34319,6 +35224,7 @@ const mdsInputFieldCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
34319
35224
|
* validation errors in `message`. Another control, a native `<input>` among them, gets the name
|
|
34320
35225
|
* but no validation messages.
|
|
34321
35226
|
* @part content - The wrapper of the default slot, above the message
|
|
35227
|
+
* @category forms
|
|
34322
35228
|
*/
|
|
34323
35229
|
class MdsInputField {
|
|
34324
35230
|
constructor(hostRef) {
|
|
@@ -34384,7 +35290,7 @@ class MdsInputField {
|
|
|
34384
35290
|
}
|
|
34385
35291
|
render() {
|
|
34386
35292
|
var _a;
|
|
34387
|
-
return (hAsync(Host, { key: '
|
|
35293
|
+
return (hAsync(Host, { key: '9e590cffc1b2cd840547d6922b2bb6ecfd7a4895' }, hAsync("mds-text", { key: 'b3e1fd0c9f9aff9fdafbcea2340d3890540097ba', class: "label", typography: "label" }, this.label), hAsync("div", { key: '047a277929f9f8313c3e4c4d5e9cfdf24a7e3338', class: "message-window" }, hAsync("div", { key: '88a44e429a1eb9df0dc587ee0ae54ce2b2dc6a3e', class: "content", part: "content" }, hAsync("slot", { key: 'f78ea7ee9b0512f9de3c26b096fbb274184f6cbd', onSlotchange: this.nameSlottedControls, ref: (i) => (this.slotInput = i) })), hAsync("div", { key: 'dbd1ffd38968a882ced2ed817cb05fe7625ff980', class: "message" }, (_a = this.message) === null || _a === void 0 ? void 0 : _a.split(';').map((m, i) => (hAsync("mds-text", { typography: "caption", key: i }, m)))))));
|
|
34388
35294
|
}
|
|
34389
35295
|
static get formAssociated() { return true; }
|
|
34390
35296
|
get host() { return getElement(this); }
|
|
@@ -34430,6 +35336,9 @@ var localeIt$v = {
|
|
|
34430
35336
|
|
|
34431
35337
|
const mdsInputOtpCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-input:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:inline-flex;gap:calc(var(--spacing,.0025rem)*400)}.input{width:calc(var(--spacing,.0025rem)*1200)}.input::part(field){text-align:center}.input::part(tip-count),.input::part(tip-top){display:none}`;
|
|
34432
35338
|
|
|
35339
|
+
/**
|
|
35340
|
+
* @category forms
|
|
35341
|
+
*/
|
|
34433
35342
|
class MdsInputOtp {
|
|
34434
35343
|
constructor(hostRef) {
|
|
34435
35344
|
registerInstance(this, hostRef);
|
|
@@ -34598,7 +35507,7 @@ class MdsInputOtp {
|
|
|
34598
35507
|
setFormValue(this.internals, this.value);
|
|
34599
35508
|
}
|
|
34600
35509
|
render() {
|
|
34601
|
-
return (hAsync(Host, { key: '
|
|
35510
|
+
return (hAsync(Host, { key: 'a2a249f0fb7eb2086f502bda3f83109ab9b58345' }, Array.from({ length: this.length }).map((_, index) => {
|
|
34602
35511
|
var _a;
|
|
34603
35512
|
return (hAsync("mds-input", { "aria-label": this.digitName(index), class: "input", disabled: this.isDisabled(), maxlength: 1, onKeyDown: this.handleKeyDown, onPaste: this.handlePaste, value: (_a = this.digits[index]) !== null && _a !== void 0 ? _a : '' }));
|
|
34604
35513
|
})));
|
|
@@ -34629,12 +35538,13 @@ class MdsInputOtp {
|
|
|
34629
35538
|
}; }
|
|
34630
35539
|
}
|
|
34631
35540
|
|
|
34632
|
-
const mdsInputRangeCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-range-transition-duration:var(--duration-300,.3s);--private-input-range-transition-duration:var(--mds-input-range-transition-duration);--mds-input-range-thumb-background-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-thumb-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-input-range-thumb-cursor:col-resize;--mds-input-range-thumb-size:calc(var(--spacing,.0025rem)*400);--mds-input-range-track-background-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-progress-background-disabled:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-input-range-track-size:calc(var(--spacing,.0025rem)*600);--private-border-width:calc(var(--mds-input-range-track-size)/2 - var(--mds-input-range-thumb-size)/2);--private-thumb-size:calc(var(--mds-input-range-thumb-size) + var(--private-border-width)*2);display:grid;gap:calc(var(--spacing,.0025rem)*200);transition-duration:var(--private-input-range-transition-duration);transition-property:color;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1))}.header{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{align-items:center;display:flex;height:var(--private-thumb-size);position:relative}.track{box-sizing:border-box;position:absolute;width:100%}.field{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));appearance:none;background-color:#0000;border-radius:var(--magma-radius-full,var(--radius-full,1000px));flex-grow:1;height:calc(var(--spacing,.0025rem)*400);margin:0;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;z-index:20}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.field::-webkit-slider-thumb{appearance:none;background-color:var(--mds-input-range-thumb-background);border-color:var(--mds-input-range-track-progress-background);border-radius:var(--mds-input-range-thumb-size);border-style:solid;border-width:var(--private-border-width);cursor:var(--mds-input-range-thumb-cursor);height:var(--private-thumb-size);line-height:0;transform:translateY(-50%);transition-property:background-color,border;width:var(--private-thumb-size)}.field::-webkit-slider-runnable-track{appearance:none;border:0;height:0;width:100%}.track-progress{background-color:var(--mds-input-range-track-progress-background);width:calc((100% - var(--mds-input-range-track-size))*(var(--mds-input-range-progress,0)*0.01) + var(--mds-input-range-track-size)/2)}.track-progress,.track-total{display:flex;height:var(--mds-input-range-track-size);transition-duration:var(--private-input-range-transition-duration);transition-property:background-color}.track-total{background-color:var(--mds-input-range-track-background);overflow:hidden;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1));width:100%}.contrast-area,.track-total{border-radius:var(--mds-input-range-track-size)}.contrast-area{margin-left:calc(var(--spacing,.0025rem)*100);margin-right:calc(var(--spacing,.0025rem)*100)}:host(
|
|
35541
|
+
const mdsInputRangeCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-range-transition-duration:var(--duration-300,.3s);--private-input-range-transition-duration:var(--mds-input-range-transition-duration);--mds-input-range-thumb-background-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-thumb-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-input-range-thumb-cursor:col-resize;--mds-input-range-thumb-size:calc(var(--spacing,.0025rem)*400);--mds-input-range-track-background-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-progress-background-disabled:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-input-range-track-size:calc(var(--spacing,.0025rem)*600);--private-border-width:calc(var(--mds-input-range-track-size)/2 - var(--mds-input-range-thumb-size)/2);--private-thumb-size:calc(var(--mds-input-range-thumb-size) + var(--private-border-width)*2);display:grid;gap:calc(var(--spacing,.0025rem)*200);transition-duration:var(--private-input-range-transition-duration);transition-property:color;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1))}.header{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{align-items:center;display:flex;height:var(--private-thumb-size);position:relative}.track{box-sizing:border-box;position:absolute;width:100%}.field{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));appearance:none;background-color:#0000;border-radius:var(--magma-radius-full,var(--radius-full,1000px));flex-grow:1;height:calc(var(--spacing,.0025rem)*400);margin:0;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;z-index:20}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.field::-webkit-slider-thumb{appearance:none;background-color:var(--mds-input-range-thumb-background);border-color:var(--mds-input-range-track-progress-background);border-radius:var(--mds-input-range-thumb-size);border-style:solid;border-width:var(--private-border-width);cursor:var(--mds-input-range-thumb-cursor);height:var(--private-thumb-size);line-height:0;transform:translateY(-50%);transition-property:background-color,border;width:var(--private-thumb-size)}.field::-webkit-slider-runnable-track{appearance:none;border:0;height:0;width:100%}.track-progress{background-color:var(--mds-input-range-track-progress-background);width:calc((100% - var(--mds-input-range-track-size))*(var(--mds-input-range-progress,0)*0.01) + var(--mds-input-range-track-size)/2)}.track-progress,.track-total{display:flex;height:var(--mds-input-range-track-size);transition-duration:var(--private-input-range-transition-duration);transition-property:background-color}.track-total{background-color:var(--mds-input-range-track-background);overflow:hidden;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1));width:100%}.contrast-area,.track-total{border-radius:var(--mds-input-range-track-size)}.contrast-area{margin-left:calc(var(--spacing,.0025rem)*100);margin-right:calc(var(--spacing,.0025rem)*100)}: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-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-range-thumb-background:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([pref-contrast=more]){color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host(:disabled:not([disabled=false])),:host([disabled]:not([disabled=false])){--mds-input-range-thumb-background:var(--mds-input-range-thumb-background-disabled);--mds-input-range-track-background:var(--mds-input-range-track-background-disabled);--mds-input-range-track-progress-background:var(--mds-input-range-track-progress-background-disabled)}:host([disabled]:not([disabled=false])) .field::-webkit-slider-thumb{cursor:not-allowed}:host(:disabled:not([disabled=false])) .field::-webkit-slider-thumb{cursor:not-allowed}@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-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-range-thumb-background:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}`;
|
|
34633
35542
|
|
|
34634
35543
|
/**
|
|
34635
35544
|
* @part header - The element containing the labels displayed over the input element
|
|
34636
35545
|
* @part track - The element containing the track of the input range
|
|
34637
35546
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
35547
|
+
* @category forms
|
|
34638
35548
|
*/
|
|
34639
35549
|
class MdsInputRange {
|
|
34640
35550
|
constructor(hostRef) {
|
|
@@ -34751,7 +35661,7 @@ class MdsInputRange {
|
|
|
34751
35661
|
}
|
|
34752
35662
|
render() {
|
|
34753
35663
|
var _a;
|
|
34754
|
-
return (hAsync(Host, { key: '
|
|
35664
|
+
return (hAsync(Host, { key: 'b1bb72d1ce011daf8b9789552582dc322c669c7b', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("header", { key: 'c1d1b18c93995b14620443d6be50a082b8636944', class: "header", part: "header" }, hAsync("mds-text", { key: '37fc5d597ed5619d77863a361405d9e9968c8a1a', class: "label", typography: "label" }, hAsync("slot", { key: '7252b13a7883cb3b24c2ddcffa69063a851bdb6a' })), hAsync("mds-text", { key: '8114e8abc0fa86ba7b36186c2101da009c3586e6', class: "value", typography: "label" }, this.formatValue ? this.formatValue(this.value) : this.value)), hAsync("div", { key: '8d057e743855fb1f7319f02eb09ba9ade58e8ae0', class: "range" }, hAsync("div", { key: 'e987fcd7360c4749cf8bc5a69d655f3a50a9ce07', class: "track", part: "track" }, hAsync("div", { key: 'af736932ab9f24030342dc7356b2425fcc46a20b', class: "contrast-area" }), hAsync("div", { key: '97029a596bde3c6f0d43ec3a641094a75da03f04', class: "track-total" }, hAsync("div", { key: 'ec03d154670b09bcfac52cdc2f604c131ce15d62', class: "track-progress", style: { '--mds-input-range-progress': `${(_a = this.progress) !== null && _a !== void 0 ? _a : 0}` } }))), hAsync("input", { key: '38652b6913977164bc43754353ab02eb3e949e3d', ref: (el) => (this.inputElement = el), class: "field", "aria-label": this.label, disabled: this.isDisabled(), max: this.max, min: this.min, onInput: this.onInput, step: this.step, type: "range", value: this.value, name: this.name }))));
|
|
34755
35665
|
}
|
|
34756
35666
|
static get formAssociated() { return true; }
|
|
34757
35667
|
get element() { return getElement(this); }
|
|
@@ -34799,6 +35709,7 @@ const mdsInputSelectCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
34799
35709
|
* @part select - The select HTML element
|
|
34800
35710
|
* @part tip-top - Selects the verbose status of input on top of element
|
|
34801
35711
|
* @slot - Add `option` `HTML elements` or `components` to this slot.
|
|
35712
|
+
* @category forms
|
|
34802
35713
|
*/
|
|
34803
35714
|
class MdsInputSelect {
|
|
34804
35715
|
constructor(hostRef) {
|
|
@@ -34932,7 +35843,8 @@ class MdsInputSelect {
|
|
|
34932
35843
|
/**
|
|
34933
35844
|
* Reports the selection to the form and emits the change, once per selection: a single select
|
|
34934
35845
|
* submits its value, a multiple one an entry per selected option under `name`, as a native
|
|
34935
|
-
* select.
|
|
35846
|
+
* select. The first selection, the one of load, is recorded without a change: as on a native
|
|
35847
|
+
* select, nothing has been chosen yet.
|
|
34936
35848
|
*/
|
|
34937
35849
|
syncSelection() {
|
|
34938
35850
|
var _a;
|
|
@@ -34943,7 +35855,10 @@ class MdsInputSelect {
|
|
|
34943
35855
|
const selection = JSON.stringify([value, values]);
|
|
34944
35856
|
if (selection === this.emittedSelection)
|
|
34945
35857
|
return;
|
|
35858
|
+
const loading = this.emittedSelection === undefined;
|
|
34946
35859
|
this.emittedSelection = selection;
|
|
35860
|
+
if (loading)
|
|
35861
|
+
return;
|
|
34947
35862
|
this.changeEvent.emit({ value, values });
|
|
34948
35863
|
}
|
|
34949
35864
|
updateFormValue(values) {
|
|
@@ -35112,12 +36027,12 @@ class MdsInputSelect {
|
|
|
35112
36027
|
}
|
|
35113
36028
|
render() {
|
|
35114
36029
|
var _a;
|
|
35115
|
-
return (hAsync(Host, { key: '
|
|
36030
|
+
return (hAsync(Host, { key: 'c0be290f4673586bbfc9f1651c97c93910a95b39', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("select", { key: '5fa46ab0072676e88edb9722aa755f4f54bb09e9', "aria-label": this.accessibleName, class: "input", onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.isDisabled(), multiple: this.multiple, size: this.rows || this.legacyRows() || 0, part: "select", ref: (el) => (this.selectEl = el) }, hAsync("option", { key: '0ed6ac02aeb69beb8424aab711def17d7580bce4', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue != null &&
|
|
35116
36031
|
this.defaultValue !== '' &&
|
|
35117
36032
|
this.defaultValue !== 0 &&
|
|
35118
36033
|
!Number.isNaN(this.defaultValue)
|
|
35119
36034
|
? undefined
|
|
35120
|
-
: true }, this.placeholder)), hAsync("div", { key: '
|
|
36035
|
+
: true }, this.placeholder)), hAsync("div", { key: 'd460185324e8c3835d402bd60dfdf0f650597ae1', class: "icon-container" }, hAsync("mds-icon", { key: 'a6b05567c54afe9fa655cf5642b200b3119cdf3b', class: "icon", name: miBaselineKeyboardArrowDown })), hAsync("div", { key: '150045e7f62e505b5e17204941a25f36f8bc7ba6', class: "option-container" }, hAsync("slot", { key: '8e237ffa61b432ee1082e727e74f02b4aade3541', onSlotchange: this.onSlotChangeHandler })), hAsync("mds-input-tip", { key: 'd416248bc637d8aed969e93d133c0ac84472a2d2', position: "top", active: this.hasFocus, part: "tip-top" }, this.isDisabled() && (hAsync("mds-input-tip-item", { key: '6f482b9098a43416ffaf06d4378093ef595ba6dc', expanded: true, variant: "disabled" })), this.required && (hAsync("mds-input-tip-item", { key: '41b10d365afe211f1b80cd030046beef54224a74', expanded: this.hasFocus, variant: ((_a = this.value) !== null && _a !== void 0 ? _a : '') === '' ? 'required' : 'required-success' })))));
|
|
35121
36036
|
}
|
|
35122
36037
|
static get formAssociated() { return true; }
|
|
35123
36038
|
get host() { return getElement(this); }
|
|
@@ -35234,6 +36149,7 @@ const mdsInputSwitchCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
35234
36149
|
|
|
35235
36150
|
/**
|
|
35236
36151
|
* @slot - Put text string or elements here
|
|
36152
|
+
* @category forms
|
|
35237
36153
|
*/
|
|
35238
36154
|
class MdsInputSwitch {
|
|
35239
36155
|
constructor(hostRef) {
|
|
@@ -35401,7 +36317,7 @@ class MdsInputSwitch {
|
|
|
35401
36317
|
var _a;
|
|
35402
36318
|
const { iconChecked, iconUnchecked, iconIndeterminate } = inputSwitchIconVariant[this.type];
|
|
35403
36319
|
const iconCheckedUser = this.icon !== '' ? this.icon : iconChecked;
|
|
35404
|
-
return (hAsync(Host, { key: '
|
|
36320
|
+
return (hAsync(Host, { key: '5b9a64589d08fd03450e00b2859cb04ea6c8b75c', "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("input", { key: 'edc32d27b0e8ef17743495d4945f56d82ac89fa2', "aria-label": this.t.get(this.checked ? 'unselect' : 'select', { label: this.label }), autoFocus: this.autofocus, checked: this.checked, class: "field", disabled: this.isDisabled(), id: "field", indeterminate: this.indeterminate, name: this.name, onChange: this.handleInputOnChange, role: this.type === 'switch' ? 'switch' : undefined, type: this.type === 'switch' ? 'checkbox' : this.type, value: (_a = this.value) !== null && _a !== void 0 ? _a : undefined }), this.type === 'switch' ? (hAsync("label", { htmlFor: "field", class: clsx('switch-container', this.knobSliding && 'switch-container--sliding') }, hAsync("div", { class: "switch" }, hAsync("div", { class: "switch-toggle", onAnimationEnd: this.handleKnobSlideEnd, "on-animationcancel": this.handleKnobSlideEnd }, this.explicit && (hAsync("mds-icon", { class: "icon-explicit", name: this.checked ? miBaselineChecked : miBaselineRemove })))))) : (hAsync("label", { htmlFor: "field", class: "label-icon" }, hAsync("mds-text", { class: "icon-typography-unchecked", tag: "div", typography: this.typography, variant: this.variant }, hAsync("mds-icon", { class: "icon-unchecked", name: clsx(this.indeterminate ? iconIndeterminate : iconUnchecked) })), this.checked && (hAsync("mds-text", { class: "icon-typography-checked", tag: "div", typography: this.typography, variant: this.variant }, hAsync("mds-icon", { class: "icon-checked", name: clsx(this.indeterminate ? iconIndeterminate : iconCheckedUser) }))))), hAsync("label", { key: '61d8e38039e8d3f2a11cbb437d5c0686ab6ac77a', htmlFor: "field", class: clsx('label-text', !this.hasText && 'label-text--empty') }, hAsync("mds-text", { key: '96db7506e6fc25592b372c1ac1272b9e147c7dfa', tag: "p", typography: this.typography, variant: this.variant }, hAsync("slot", { key: 'bd4c23b5245a484132f3a33561a8bad6373cc1d2' })))));
|
|
35405
36321
|
}
|
|
35406
36322
|
static get formAssociated() { return true; }
|
|
35407
36323
|
get host() { return getElement(this); }
|
|
@@ -35450,6 +36366,7 @@ const mdsInputTipCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
35450
36366
|
|
|
35451
36367
|
/**
|
|
35452
36368
|
* @slot - Add `mds-input-tip-item` elements or `components` to this slot.
|
|
36369
|
+
* @parent mds-input mds-input-date mds-input-select
|
|
35453
36370
|
*/
|
|
35454
36371
|
class MdsInputTip {
|
|
35455
36372
|
constructor(hostRef) {
|
|
@@ -35465,7 +36382,7 @@ class MdsInputTip {
|
|
|
35465
36382
|
this.position = 'top';
|
|
35466
36383
|
}
|
|
35467
36384
|
render() {
|
|
35468
|
-
return (hAsync(Host, { key: '
|
|
36385
|
+
return (hAsync(Host, { key: 'cc4718410e2a85b943be7639677a8f0d0f672d6c', "pref-animation": preferenceStore.state.animation }, hAsync("slot", { key: '8be976189455e4097980a2f4c3fc221877c20294' })));
|
|
35469
36386
|
}
|
|
35470
36387
|
static get style() { return mdsInputTipCss(); }
|
|
35471
36388
|
static get cmpMeta() { return {
|
|
@@ -35521,6 +36438,7 @@ const mdsInputTipItemCss = () => `@layer reset,vendor,theme,base,components,util
|
|
|
35521
36438
|
|
|
35522
36439
|
/**
|
|
35523
36440
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
36441
|
+
* @parent mds-input-tip
|
|
35524
36442
|
*/
|
|
35525
36443
|
class MdsInputTipItem {
|
|
35526
36444
|
constructor(hostRef) {
|
|
@@ -35542,11 +36460,11 @@ class MdsInputTipItem {
|
|
|
35542
36460
|
}
|
|
35543
36461
|
}
|
|
35544
36462
|
render() {
|
|
35545
|
-
return (hAsync(Host, { key: '
|
|
36463
|
+
return (hAsync(Host, { key: 'a995ac6136a882cc9df5e56eb384497416ab652a', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast }, hAsync("div", { key: 'adcf0025ecf0512e2ef43d701f01ce85a72b5be0', class: "content" }, this.variant === 'text' && (hAsync("mds-text", { key: 'd3804ad8f4db834e936d57962dacd954dc49edeb', typography: "option", truncate: "word" }, hAsync("span", { key: '5f110a8b464be3c405d8264ecf07e67f4a08e161', class: "text" }, hAsync("slot", { key: '978a5baf0b0f0fc74e81f909667981273cd866bd' })))), this.variant === 'readonly' && (hAsync("mds-text", { key: 'a86e18492da79974476c8706fdc8f62fd2b397c2', typography: "option", truncate: "word" }, hAsync("span", { key: '1a93cea9424a0745e5cfca03a9cdb16d9120d160', class: "text" }, this.variant && this.t.get(this.variant.toString())))), this.variant === 'disabled' && (hAsync("mds-text", { key: 'd0da21521ff86217e0f1d4a71539ade0e65ce932', typography: "option", truncate: "word" }, hAsync("span", { key: 'c910c3ebf74e337c3acfec61f46cc0128f379f3b', class: "text" }, this.variant && this.t.get(this.variant.toString())))), this.variant === 'required' && (hAsync("mds-text", { key: 'efe00865fba7bb381fccc9deeb6396b028086b6e', typography: "option", truncate: "word" }, hAsync("span", { key: '9d999b3832ab31a45e91ec35074926cbd0774e39', class: "text" }, this.variant && this.t.get(this.variant.toString())))), this.variant === 'required-success' && (hAsync("span", { key: '7a5a5a8038c9a3013461eab05a54c8afbbd606d9', class: "icon", innerHTML: miBaselineDone })), (this.variant === 'count-almost' ||
|
|
35546
36464
|
this.variant === 'count-almost-full' ||
|
|
35547
36465
|
this.variant === 'count-empty' ||
|
|
35548
36466
|
this.variant === 'count-full' ||
|
|
35549
|
-
this.variant === 'count-incomplete') && (hAsync("mds-text", { key: '
|
|
36467
|
+
this.variant === 'count-incomplete') && (hAsync("mds-text", { key: '28834c5f189563d576f9d0bea317163f29d805c5', typography: "option", truncate: "word" }, hAsync("span", { key: '2239c511a50a48994052b7f897877c519d945391', class: "text" }, hAsync("slot", { key: '690dcd64b10679c5096766887676e1510531e071' })))))));
|
|
35550
36468
|
}
|
|
35551
36469
|
static get watchers() { return {
|
|
35552
36470
|
"expanded": [{
|
|
@@ -36951,6 +37869,9 @@ var localeIt$s = {
|
|
|
36951
37869
|
const mdsInputUploadCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-file-preview,mds-progress,mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-upload-drag-area-background-color-on-drag:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-input-upload-drag-area-background-color:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-input-upload-drag-area-border-on-drag:calc(var(--spacing,.0025rem)*75) dashed rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-input-upload-drag-area-border:calc(var(--spacing,.0025rem)*75) dashed rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-input-upload-min-cols:3;container-type:inline-size;display:grid;gap:calc(var(--spacing,.0025rem)*400);grid-template-columns:repeat(1,minmax(1px,100%))}.drag-area{background-color:var(--mds-input-upload-drag-area-background-color,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border:var(--mds-input-upload-drag-area-border);border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));corner-shape:var(--magma-corner-shape,squircle);align-items:center;display:flex;flex-direction:column;gap:calc(var(--spacing,.0025rem)*400);justify-content:center;padding:calc(var(--spacing,.0025rem)*600);transition-duration:var(--duration-300,.3s);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1));-webkit-user-select:none;user-select:none}.drag-area--on-drag-enter{--mds-input-upload-drag-area-background-color:var(--mds-input-upload-drag-area-background-color-on-drag,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));--mds-input-upload-drag-area-border:var(--mds-input-upload-drag-area-border-on-drag)}.icon{display:flex;fill:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));width:calc(var(--spacing,.0025rem)*600)}.icon svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}.action{border-radius:var(--magma-radius-full,var(--radius-full,1000px));fill:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));height:auto;padding:calc(var(--spacing,.0025rem)*150)}.action--cancel-upload:focus-visible,.action--cancel-upload:hover{--mds-button-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));fill:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)))}.action--retry-upload:focus-visible,.action--retry-upload:hover{--mds-button-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));fill:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}.main-action{display:grid;grid-template-columns:repeat(1,minmax(1px,100%));pointer-events:none;text-align:center}.main-action,.main-actions{gap:calc(var(--spacing,.0025rem)*200)}.main-actions{display:flex;flex-flow:wrap;justify-content:center}.main-action-icon{align-items:center;display:inline-flex;justify-content:center}.file-list,.main-infos{display:grid;gap:calc(var(--spacing,.0025rem)*100);grid-template-columns:repeat(1,minmax(1px,100%))}.file-list{--cols:var(--mds-input-upload-min-cols,3);--perc-w:calc(100%/var(--cols));--gap:calc(var(--spacing,.0025rem)*400);--gap-w:calc(var(--gap) - var(--gap)/var(--cols));--max-w:calc(var(--perc-w) - var(--gap-w));--template-cols:repeat(auto-fit,minmax(calc(var(--spacing,.0025rem)*4000),var(--max-w)));gap:calc(var(--spacing,.0025rem)*400);grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));grid-template-columns:var(--template-cols)}.file-list--more-items{--template-cols:repeat(auto-fit,minmax(calc(var(--spacing,.0025rem)*4000),1fr))}.main-infos{min-width:0;text-align:center;width:100%}.progress-bar{justify-self:center;max-width:calc(var(--spacing,.0025rem)*8000);min-width:0;width:100%}.additional-infos{align-items:flex-start;gap:calc(var(--spacing,.0025rem)*400)}.additional-infos,.file-specs{display:flex;flex-wrap:wrap;justify-content:space-between}.file-specs{flex-grow:1;gap:calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*400)}.action-sort{display:inline-flex}.file-specs.file-specs-sort{flex-flow:column;justify-content:center}@container (max-width:340px){.file-list{--template-cols:1fr}.main-actions{flex-direction:column}}:host(:disabled:not([disabled=false])) .drag-area,:host([disabled]:not([disabled=false])) .drag-area{background-color:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));cursor:not-allowed}:host(:disabled:not([disabled=false])) .icon,:host([disabled]:not([disabled=false])) .icon{fill:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)))}`;
|
|
36952
37870
|
|
|
36953
37871
|
const isSort = (value) => value === 'date' || value === 'status';
|
|
37872
|
+
/**
|
|
37873
|
+
* @category forms
|
|
37874
|
+
*/
|
|
36954
37875
|
class MdsInputUpload {
|
|
36955
37876
|
constructor(hostRef) {
|
|
36956
37877
|
registerInstance(this, hostRef);
|
|
@@ -37345,18 +38266,18 @@ class MdsInputUpload {
|
|
|
37345
38266
|
}
|
|
37346
38267
|
render() {
|
|
37347
38268
|
var _a;
|
|
37348
|
-
return (hAsync(Host, { key: '
|
|
38269
|
+
return (hAsync(Host, { key: '218e505115e7549b44f43815de17a964030bcfa8' }, hAsync("div", { key: 'd8aa2706e153b6dbb395eae9a21a00faf1b224ad', class: clsx('drag-area', this.dragging && 'drag-area--on-drag-enter'), onDrop: this.onDropHandler, onDragOver: this.onDragOverHandler, onDragEnter: this.onDragEnterHandler, onDragLeave: this.onDragLeaveHandler }, hAsync("div", { key: 'b16eef70ae1e58f9bca0b7024d6e8603181a4f2e', class: "main-action" }, hAsync("div", { key: 'dba0753ddb7fa86ac584a26ecbe4bbe12dae01b1', class: "main-action-icon" }, hAsync("mds-icon", { key: 'f4a449a725bdd5091d46a8b7e3eaa17584e7ee97', class: "icon", name: miOutlineFileUpload })), hAsync("mds-text", { key: 'cbf027bdf17a59b6e5aeefb3f44aa9909841fe89', animation: this.animateText ? 'yugop' : 'none', variant: "title", typography: "action", text: this.dragging
|
|
37349
38270
|
? this.t.get('dragEnter')
|
|
37350
|
-
: this.t.get('clickOrDrag', { maxFiles: this.maxFiles }) })), hAsync("div", { key: '
|
|
38271
|
+
: this.t.get('clickOrDrag', { maxFiles: this.maxFiles }) })), hAsync("div", { key: '2f2fe5a4c5c31493e91266d6ebf0f5c9f93a9001', class: "main-actions" }, hAsync("mds-button", { key: '369906035d9ed313ef3dd8347b9b0ed9c0ed8876', variant: "primary", disabled: this.isDisabled(), onClick: this.handleAddFileClick, label: this.files != null
|
|
37351
38272
|
? this.t.get('addFile', { maxFiles: this.maxFiles })
|
|
37352
|
-
: this.t.get('selectFile') }), this.files.length > 0 && (hAsync("mds-button", { key: '
|
|
38273
|
+
: this.t.get('selectFile') }), this.files.length > 0 && (hAsync("mds-button", { key: 'e0ec552c708ebaecdd5c9b3c70e065e4a527e5e6', variant: "error", disabled: this.isDisabled(), onClick: this.onReset, label: this.t.get('cancel') }))), hAsync("div", { key: '7c14f3087c2a2ce863f6a4e09e5eefbbe3a96b89', class: "main-infos" }, hAsync("mds-progress", { key: '5dc9817a73a7559b8a9be69e1914ca2fb80c3ce3', "aria-hidden": "true", class: "progress-bar", progress: this.progress }), this.files.length < 1 ? (hAsync("mds-text", { variant: "info", typography: "caption" }, this.t.get('maxFilesUpload', { maxFiles: this.maxFiles }))) : (hAsync("mds-text", { variant: "info", typography: "caption" }, ((_a = this.maxFiles) !== null && _a !== void 0 ? _a : 0) !== 0 && !Number.isNaN(this.maxFiles)
|
|
37353
38274
|
? this.t.get('currentFilesWithMax', {
|
|
37354
38275
|
currentFiles: this.files.length,
|
|
37355
38276
|
maxFiles: this.maxFiles,
|
|
37356
38277
|
})
|
|
37357
|
-
: this.t.get('currentFilesNoMax', { currentFiles: this.files.length }))))), hAsync("input", { key: '
|
|
38278
|
+
: this.t.get('currentFilesNoMax', { currentFiles: this.files.length }))))), hAsync("input", { key: '063569fd42c0f9ef2b060aafd2653d5427d6410d', type: "file", accept: this.accept, disabled: this.isDisabled(), hidden: true, ref: (i) => (this.nativeInput = i), onChange: this.onInputChange, multiple: this.maxFiles > 1 }), hAsync("div", { key: '7b6bf862248e3b5c891b24fa75b4d2a503baa940', class: "additional-infos" }, hAsync("div", { key: 'a1c481dc59bf86b3b1c960cb52ea34c2486b5d31', class: clsx('file-specs', this.isSortTabShown() && 'file-specs-sort') }, hAsync("mds-text", { key: '5db977e9c48e200f01da7f0911613c435899f16b', variant: "info", typography: "caption" }, this.extensions !== ''
|
|
37358
38279
|
? `${this.t.get('canUpload')} ${this.extensions}`
|
|
37359
|
-
: this.t.get('canUploadAll')), hAsync("mds-text", { key: '
|
|
38280
|
+
: this.t.get('canUploadAll')), hAsync("mds-text", { key: '4197562efd1f61f2eeb77c4cf64e3169f9a3a427', variant: "info", typography: "caption" }, this.t.get('maxFileSizePerFile', { maxFileSize: this.maxFileSize }))), this.isSortTabShown() && (hAsync("mds-tab", { key: '341f90e77ada015b71298363ec47b393b13f174b', class: "action-sort", onMdsTabChange: this.handleTabChange }, hAsync("mds-tab-item", { key: 'b3c10f790b0cb2b003c492e9680eb3520dba7483', disabled: this.isDisabled(), icon: iconSortById, selected: this.activeSort === 'date', title: this.t.get('sortByDate'), value: "date" }), hAsync("mds-tab-item", { key: 'a63db0afdb21be2fd1041928a6a0be4198d51efb', disabled: this.isDisabled(), icon: iconSortByStatus, selected: this.activeSort === 'status', title: this.t.get('sortByStatus'), value: "status" })))), hAsync("div", { key: '5b7640dd42b171ff8cd33093fd3ba5ffb0e0b674', class: clsx('file-list', this.files.length > this.cssMinCols && 'file-list--more-items') }, this.files.map((file) => {
|
|
37360
38281
|
switch (file.status) {
|
|
37361
38282
|
case Status.ERROR:
|
|
37362
38283
|
return (hAsync("mds-file-preview", { deletable: !this.isDisabled(), variant: "error", filename: file.file.name, filesize: file.file.size.toString(), onMdsFileDelete: this.handleFileDelete(file.key), message: this.t.get(file.errorKey) }));
|
|
@@ -38221,10 +39142,11 @@ var keyboardKeysData = {
|
|
|
38221
39142
|
z: z
|
|
38222
39143
|
};
|
|
38223
39144
|
|
|
38224
|
-
const mdsKeyboardCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-text,mds-tooltip):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-keyboard-background-default:var(--mds-keyboard-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));--mds-keyboard-background-fail:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-keyboard-background-pass:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-keyboard-background:var(--private-keyboard-tray);--mds-keyboard-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-keyboard-fill-fail:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-keyboard-fill-pass:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-keyboard-illumination-dark-opacity:.05;--mds-keyboard-illumination-dark-size:calc(var(--spacing,.0025rem)*150);--mds-keyboard-illumination-dark:0 calc(var(--mds-keyboard-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) * -1) 0 0 rgb(
|
|
39145
|
+
const mdsKeyboardCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-text,mds-tooltip):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-keyboard-background-default:var(--mds-keyboard-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));--mds-keyboard-background-fail:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-keyboard-background-pass:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-keyboard-background:var(--private-keyboard-tray);--mds-keyboard-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-keyboard-fill-fail:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-keyboard-fill-pass:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-keyboard-illumination-dark-opacity:.05;--mds-keyboard-illumination-dark-size:calc(var(--spacing,.0025rem)*150);--mds-keyboard-illumination-dark:0 calc(var(--mds-keyboard-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) * -1) 0 0 rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/var(--mds-keyboard-illumination-dark-opacity,.05)) inset;--mds-keyboard-illumination-light-opacity:.075;--mds-keyboard-illumination-light-size:calc(var(--spacing,.0025rem)*25);--mds-keyboard-illumination-light:0 var(--mds-keyboard-illumination-light-size,calc(var(--spacing,.0025rem)*25)) 0 0 rgb(255 255 255/var(--mds-keyboard-illumination-light-opacity,.075)) inset;--mds-keyboard-illumination-shadow:0 0 1px 0 rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/0);--mds-keyboard-key-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-keyboard-key-illumination-dark-opacity:.075;--mds-keyboard-key-illumination-light-opacity:.5;--mds-keyboard-key-illumination-shadow:var(--shadow-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-keyboard-padding:calc(var(--spacing,.0025rem)*200);--mds-keyboard-spinner-duration:var(--duration-1000,1s);--private-keyboard-tray:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));background-color:var(--mds-keyboard-background-default,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));box-shadow:var(--mds-keyboard-illumination-light),var(--mds-keyboard-illumination-dark),var(--mds-keyboard-illumination-shadow);color:var(--mds-keyboard-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));corner-shape:var(--magma-corner-shape,squircle);align-items:center;align-self:flex-start;display:inline-flex;gap:calc(var(--spacing,.0025rem)*200);justify-self:flex-start;padding:calc(var(--mds-keyboard-illumination-light-size,calc(var(--spacing,.0025rem) * 25)) + var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200))) var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200)) calc(var(--mds-keyboard-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) + var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200))) var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200));transition-duration:var(--duration-200,.2s);transition-property:background-color;transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));-webkit-user-select:none;user-select:none}.errors{display:grid}.errors,.shortcuts{gap:calc(var(--spacing,.0025rem)*100)}.shortcuts{align-items:center;display:inline-flex;outline:0}:host(:focus-within){--mds-keyboard-background:var(--private-keyboard-tray)}@supports (color:color-mix(in lab,red,red)){:host(:focus-within){--mds-keyboard-background:color-mix(in oklab,var(--private-keyboard-tray) 88%,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))))}}mds-tooltip{--mds-tooltip-delay:0}.combination-checker{--mds-button-await-duration:var(--mds-keyboard-spinner-duration,var(--duration-1000,1s));border-radius:var(--magma-radius-full,var(--radius-full,1000px))}::slotted(mds-keyboard-key){align-self:flex-end}:host([test=pass]){--mds-keyboard-background-default:var(--mds-keyboard-background-pass,rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205))))}:host([test=fail]){--mds-keyboard-background-default:var(--mds-keyboard-background-fail,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))))}:host([test=pass]) .combination-checker{background-color:var(--mds-keyboard-background-pass,rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205))));fill:var(--mds-keyboard-fill-pass,rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0))))}:host([test=fail]) .combination-checker{background-color:var(--mds-keyboard-background-fail,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))));fill:var(--mds-keyboard-fill-fail,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))))}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--private-keyboard-tray:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-keyboard-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-keyboard-illumination-dark-opacity:.5;--mds-keyboard-illumination-light-opacity:.15;--mds-keyboard-illumination-shadow:0 0 calc(var(--spacing,.0025rem)*75) 0 #ffffff80;--mds-keyboard-key-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-keyboard-key-illumination-dark-opacity:.5;--mds-keyboard-key-illumination-light-opacity:.15;--mds-keyboard-key-illumination-shadow:0 0 1px 0 #ffffff80}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--private-keyboard-tray:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-keyboard-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-keyboard-illumination-dark-opacity:.5;--mds-keyboard-illumination-light-opacity:.15;--mds-keyboard-illumination-shadow:0 0 calc(var(--spacing,.0025rem)*75) 0 #ffffff80;--mds-keyboard-key-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-keyboard-key-illumination-dark-opacity:.5;--mds-keyboard-key-illumination-light-opacity:.15;--mds-keyboard-key-illumination-shadow:0 0 1px 0 #ffffff80}}`;
|
|
38225
39146
|
|
|
38226
39147
|
/**
|
|
38227
39148
|
* @slot - Add `mds-keyboard-key` elements or `components` to this slot.
|
|
39149
|
+
* @category tags
|
|
38228
39150
|
*/
|
|
38229
39151
|
class MdsKeyboard {
|
|
38230
39152
|
constructor(hostRef) {
|
|
@@ -38282,7 +39204,11 @@ class MdsKeyboard {
|
|
|
38282
39204
|
}
|
|
38283
39205
|
return undefined;
|
|
38284
39206
|
};
|
|
38285
|
-
this.checkKeyboardShortcut = () => {
|
|
39207
|
+
this.checkKeyboardShortcut = (event) => {
|
|
39208
|
+
// a key released with no press of its own in this run belongs to whatever started the run:
|
|
39209
|
+
// the trigger clicks on the keydown of Enter, so the keyup of that Enter lands here
|
|
39210
|
+
if (!this.pressedKeys.has(event.code))
|
|
39211
|
+
return;
|
|
38286
39212
|
this.stopKeyboardShortcutTest();
|
|
38287
39213
|
// console.log('json keys x', this.keyCombination)
|
|
38288
39214
|
// console.log('os output x', this.pressedKeys)
|
|
@@ -38393,7 +39319,7 @@ class MdsKeyboard {
|
|
|
38393
39319
|
}
|
|
38394
39320
|
}
|
|
38395
39321
|
render() {
|
|
38396
|
-
return (hAsync(Host, { key: '
|
|
39322
|
+
return (hAsync(Host, { key: 'e131df0a33083a01b1b6899bc7d0a3110b2e21e2', "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: 'bbd1b3620c7a23bfe49de557373af982d653ed43', class: "shortcuts" }, hAsync("slot", { key: '5433959e8d4afc2d3e25ff5fa3242df3d9670b8d' })), this.try && (hAsync("mds-button", { key: '1d49920124b424fe18e531b2fe2b8a85a1b533eb', icon: this.getButtonIcon(), "aria-label": this.t.get('testKeyCombination'), class: "combination-checker", variant: "dark", tone: "text", onClick: this.startKeyboardShortcutTest })), this.try && (hAsync("mds-tooltip", { key: 'f267c2f939d4275fe2f3a629f78168e9f7d6bff6', target: ".combination-checker" }, this.testPassed === undefined && this.t.get('testKeyCombination'), this.testPassed === true && this.t.get('testPassed'), this.testPassed === false && (hAsync("div", { key: 'c42a74847e7d9c287f6140478f99f3eda075c031', class: "errors" }, [...this.errors].map((error) => (hAsync("mds-text", { typography: "tip" }, this.t.get(error))))))))));
|
|
38397
39323
|
}
|
|
38398
39324
|
get host() { return getElement(this); }
|
|
38399
39325
|
static get watchers() { return {
|
|
@@ -38668,8 +39594,11 @@ icons.set('windows', miSharpWindow);
|
|
|
38668
39594
|
icons.set('windowsleft', miSharpWindow);
|
|
38669
39595
|
icons.set('windowsright', miSharpWindow);
|
|
38670
39596
|
|
|
38671
|
-
const mdsKeyboardKeyCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-keyboard-key-illumination-dark-size:calc(var(--spacing,.0025rem)*150);--mds-keyboard-key-illumination-light-size:calc(var(--spacing,.0025rem)*50);--mds-keyboard-key-illumination-dark:0 calc(var(--mds-keyboard-key-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) * -1) 0 0 rgb(
|
|
39597
|
+
const mdsKeyboardKeyCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-keyboard-key-illumination-dark-size:calc(var(--spacing,.0025rem)*150);--mds-keyboard-key-illumination-light-size:calc(var(--spacing,.0025rem)*50);--mds-keyboard-key-illumination-dark:0 calc(var(--mds-keyboard-key-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) * -1) 0 0 rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/var(--mds-keyboard-key-illumination-dark-opacity,.05)) inset;--mds-keyboard-key-illumination-light:0 var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem)*50)) 0 0 rgb(255 255 255/var(--mds-keyboard-key-illumination-light-opacity,.5)) inset;--mds-keyboard-key-padding:calc(var(--spacing,.0025rem)*100);--mds-keyboard-key-transition-duration:var(--duration-300,.3s);--icon-size:calc(var(--spacing,.0025rem)*600);--key-size-default:calc(var(--icon-size) + calc(var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100)) * 2) + var(--mds-keyboard-key-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) + var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)));--key-size-pressed:calc(var(--icon-size) + calc(var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100)) * 2) + calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) * 2));corner-shape:var(--magma-corner-shape,squircle);align-items:flex-end;display:inline-flex;min-height:var(--key-size-default);min-width:var(--key-size-default)}.physical-key{background-color:var(--mds-keyboard-key-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-shadow:var(--mds-keyboard-key-illumination-light),var(--mds-keyboard-key-illumination-dark),var(--mds-keyboard-key-illumination-shadow);box-sizing:border-box;corner-shape:inherit;align-items:baseline;display:inline-flex;flex-grow:1;flex-shrink:0;height:var(--key-size-default);justify-content:center;min-width:calc(var(--spacing,.0025rem)*1000);padding:calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) + var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))) var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100)) calc(var(--mds-keyboard-key-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) + var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))) var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100));position:relative;text-align:center;transition-duration:var(--mds-keyboard-key-transition-duration,var(--duration-300,.3s));transition-property:box-shadow,padding,height;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));-webkit-user-select:none;user-select:none}:host(:active) .physical-key,:host([pressed]:not([pressed=false])) .physical-key{--mds-keyboard-key-illumination-dark:0 calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) * -1) 0 0 rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/var(--mds-keyboard-key-illumination-dark-opacity)) inset;box-shadow:var(--mds-keyboard-key-illumination-light),var(--mds-keyboard-key-illumination-dark),var(--mds-keyboard-key-illumination-shadow);height:var(--key-size-pressed);padding:calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) + var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))) var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100)) calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) + var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))) var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))}:host([name=space]) .physical-key{min-width:calc(var(--key-size-default)*2)}mds-badge{background-color:#0000;color:currentColor;margin-left:calc(var(--spacing,.0025rem)*50);padding:0;white-space:nowrap}.shortcut-icon{fill:currentColor}.shortcut-text{color:currentColor;text-transform:capitalize;white-space:nowrap}`;
|
|
38672
39598
|
|
|
39599
|
+
/**
|
|
39600
|
+
* @parent mds-keyboard
|
|
39601
|
+
*/
|
|
38673
39602
|
class MdsKeyboardKey {
|
|
38674
39603
|
constructor(hostRef) {
|
|
38675
39604
|
registerInstance(this, hostRef);
|
|
@@ -38695,7 +39624,7 @@ class MdsKeyboardKey {
|
|
|
38695
39624
|
}
|
|
38696
39625
|
render() {
|
|
38697
39626
|
var _a, _b, _c, _d;
|
|
38698
|
-
return (hAsync(Host, { key: '
|
|
39627
|
+
return (hAsync(Host, { key: '07af59c1788bb613a0dfa158a7001fe5a6b114b3', title: this.getTitle() }, hAsync("div", { key: 'f2ca5f9437b250eedadc90b8f9d86253c4e5f191', class: "physical-key" }, this.name && icons.has(this.name) ? (hAsync("mds-icon", { name: (_a = icons.get(this.name)) !== null && _a !== void 0 ? _a : miBaselineBrokenImage, class: "shortcut-icon" })) : (hAsync("mds-text", { class: "shortcut-text", typography: "detail" }, this.name && hAsync("b", null, this.keyboardKeys[this.name].alias))), this.name && ((_b = this.keyboardKeys[this.name]) === null || _b === void 0 ? void 0 : _b.keyboardPosition) && (hAsync("mds-text", { key: '3c3375b3cdb0dd8e68369d592652dff16bf91aa9', typography: "label" }, ((_c = this.keyboardKeys[this.name].keyboardPosition) === null || _c === void 0 ? void 0 : _c.left) && 'l', ((_d = this.keyboardKeys[this.name].keyboardPosition) === null || _d === void 0 ? void 0 : _d.right) && 'r')))));
|
|
38699
39628
|
}
|
|
38700
39629
|
static get style() { return mdsKeyboardKeyCss(); }
|
|
38701
39630
|
static get cmpMeta() { return {
|
|
@@ -38715,13 +39644,14 @@ const mdsKpiCss = () => `@layer reset,vendor,theme,base,components,utilities;:ho
|
|
|
38715
39644
|
|
|
38716
39645
|
/**
|
|
38717
39646
|
* @slot - Add `mds-kpi-item` element/s.
|
|
39647
|
+
* @category data
|
|
38718
39648
|
*/
|
|
38719
39649
|
class MdsKpi {
|
|
38720
39650
|
constructor(hostRef) {
|
|
38721
39651
|
registerInstance(this, hostRef);
|
|
38722
39652
|
}
|
|
38723
39653
|
render() {
|
|
38724
|
-
return (hAsync(Host, { key: '
|
|
39654
|
+
return (hAsync(Host, { key: '4724a3faf067f195b0e20a8bcb0fde4040bea9da', role: "list" }, hAsync("slot", { key: 'fe0fd6805195f07f5781a6c52df53bef5c303d1e' })));
|
|
38725
39655
|
}
|
|
38726
39656
|
static get style() { return mdsKpiCss(); }
|
|
38727
39657
|
static get cmpMeta() { return {
|
|
@@ -38740,6 +39670,7 @@ const mdsKpiItemCss = () => `@layer reset,vendor,theme,base,components,utilities
|
|
|
38740
39670
|
* @part content - Selects the label and description wrapper element
|
|
38741
39671
|
* @part icon - Selects the icon element
|
|
38742
39672
|
* @part icon-container - Selects the icon wrapper element
|
|
39673
|
+
* @parent mds-kpi
|
|
38743
39674
|
*/
|
|
38744
39675
|
class MdsKpiItem {
|
|
38745
39676
|
constructor(hostRef) {
|
|
@@ -38788,7 +39719,7 @@ class MdsKpiItem {
|
|
|
38788
39719
|
}
|
|
38789
39720
|
}
|
|
38790
39721
|
render() {
|
|
38791
|
-
return (hAsync(Host, { key: '
|
|
39722
|
+
return (hAsync(Host, { key: '68dae1e26983203b7881d7d4b5d49af2629e6a36', "aria-label": this.resolveName(), role: "listitem", "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.icon && (hAsync("div", { key: 'b02d721898ffb22d27a72a2af78d2da91dcacd94', class: "icon-container", part: "icon-container" }, hAsync("mds-icon", { key: '7603aa08916562dba63be389b8ac89cf0e342f42', class: "icon", name: this.icon, part: "icon" }))), hAsync("div", { key: '58b481b2c492f068cebde68dcc6d79f6e970cb58', class: "info", part: "content", "aria-hidden": "true" }, this.label && this.threshold !== 0 && (hAsync("mds-text", { key: '686612c1e4c8010554eaf564543889cc2991ad03', class: "value", typography: "h2", text: this.isIntersecting ? this.label : this.reserveLine(this.label), animation: "yugop" })), this.label && this.threshold === 0 && (hAsync("mds-text", { key: '9973318e41fd456d1ebb66e9b6f93ce278beb7b9', class: "value", typography: "h2" }, this.label)), this.description && this.threshold !== 0 && (hAsync("mds-text", { key: '9af5fd75fff6d5b0adc654b0e43cd900747e0644', class: "description", typography: "label", text: this.isIntersecting ? this.description : this.reserveLine(this.description), animation: "yugop" })), this.description && this.threshold === 0 && (hAsync("mds-text", { key: 'c25f72b26185b365fff4b5481ed2e4885883e2ac', class: "description", typography: "label" }, this.description)))));
|
|
38792
39723
|
}
|
|
38793
39724
|
get hostElement() { return getElement(this); }
|
|
38794
39725
|
static get style() { return mdsKpiItemCss(); }
|
|
@@ -38830,6 +39761,9 @@ var localeIt$p = {
|
|
|
38830
39761
|
|
|
38831
39762
|
const mdsLabelCss = () => `@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-label-background:rgb(var(--label-yellow-09,251 221 131));--mds-label-color:rgb(var(--label-yellow-02,87 67 3));--mds-label-icon-color:var(--mds-label-color,rgb(var(--label-blue-02,7 39 192)));--mds-label-selection-background:var(--magma-selection-background,rgb(var(--label-sky-09,185 231 251)));--mds-label-selection-color:var(--magma-selection-color,rgb(var(--label-sky-01,4 48 68)));--mds-label-button-background:#0000;--mds-label-button-background-hover:rgb(var(--label-yellow-07,239 183 8));--mds-label-button-icon-color:rgb(var(--label-yellow-03,112 85 4));--private-bevel-size:calc(var(--spacing,.0025rem)*900);--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:var(--mds-label-background,rgb(var(--label-blue-08,200 210 253)));border-radius:var(--magma-radius-full,var(--radius-full,1000px));color:var(--mds-label-color,rgb(var(--label-blue-02,7 39 192)));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));corner-shape:var(--magma-corner-shape,squircle);align-items:center;display:flex;fill:var(--mds-label-icon-color,rgb(var(--label-blue-02,7 39 192)));flex:1;gap:calc(var(--spacing,.0025rem)*50);max-width:fit-content;min-height:calc(var(--spacing,.0025rem)*700);padding:0 calc(var(--spacing,.0025rem)*200);transition-duration:var(--duration-200,.2s);transition-property:color,background-color,fill;--mds-label-background:rgb(var(--label-blue-08,200 210 253));--mds-label-button-background-hover:rgb(var(--label-blue-09,216 222 254));--mds-label-button-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-label-color:rgb(var(--label-blue-02,7 39 192));--mds-label-icon-color:rgb(var(--label-blue-02,7 39 192));--mds-label-selection-background:rgb(var(--label-blue-06,149 166 251));--mds-label-selection-color:rgb(var(--label-blue-10,233 236 254))}@supports (corner-shape:bevel){:host{corner-left-shape:superellipse(.25);corner-right-shape:var(--magma-corner-shape,squircle);align-items:stretch;padding-left:calc(var(--private-bevel-size)/2);padding-right:0}}:host::selection{background-color:var(--mds-label-selection-background,rgb(var(--label-blue-06,149 166 251)));color:var(--mds-label-selection-color,rgb(var(--label-blue-10,233 236 254)))}:host([truncate=word]) .text{white-space:nowrap}.text{--mds-text-selection-background:var(--mds-label-selection-background,rgb(var(--label-blue-06,149 166 251)));--mds-text-selection-color:var(--mds-label-selection-color,rgb(var(--label-blue-10,233 236 254)));align-self:center;display:block;flex-grow:1}.text:last-child{padding-right:calc(var(--spacing,.0025rem)*200)}.button-close{--mds-button-background:var(--mds-label-button-background,#0000);--mds-button-border-opacity:0;align-self:center;fill:var(--mds-label-button-icon-color,rgb(var(--label-blue-04,63 94 248)));flex-shrink:0}.button-close:hover{--mds-button-background:var(--mds-label-button-background-hover,rgb(var(--label-blue-08,200 210 253)))}:host([variant=red]){--mds-label-background:rgb(var(--label-red-04,212 28 28));--mds-label-button-background-hover:rgb(var(--label-red-05,230 66 66));--mds-label-button-icon-color:rgb(var(--label-red-10,252 233 233));--mds-label-color:rgb(var(--label-red-10,252 233 233));--mds-label-icon-color:rgb(var(--label-red-10,252 233 233));--mds-label-selection-background:rgb(var(--label-red-08,248 201 201));--mds-label-selection-color:rgb(var(--label-red-02,131 17 17))}:host([variant=red]):host([tone=weak]){--mds-label-background:rgb(var(--label-red-08,248 201 201));--mds-label-button-background-hover:rgb(var(--label-red-09,250 215 215));--mds-label-button-icon-color:rgb(var(--label-red-04,212 28 28));--mds-label-color:rgb(var(--label-red-02,131 17 17));--mds-label-icon-color:rgb(var(--label-red-02,131 17 17));--mds-label-selection-background:rgb(var(--label-red-06,241 144 144));--mds-label-selection-color:rgb(var(--label-red-10,252 233 233))}:host([variant=amaranth]){--mds-label-background:rgb(var(--label-amaranth-04,213 12 47));--mds-label-button-background-hover:rgb(var(--label-amaranth-05,242 37 72));--mds-label-button-icon-color:rgb(var(--label-amaranth-10,254 232 236));--mds-label-color:rgb(var(--label-amaranth-10,254 232 236));--mds-label-icon-color:rgb(var(--label-amaranth-10,254 232 236));--mds-label-selection-background:rgb(var(--label-amaranth-08,252 197 207));--mds-label-selection-color:rgb(var(--label-amaranth-02,131 8 29))}:host([variant=amaranth]):host([tone=weak]){--mds-label-background:rgb(var(--label-amaranth-08,252 197 207));--mds-label-button-background-hover:rgb(var(--label-amaranth-09,253 214 221));--mds-label-button-icon-color:rgb(var(--label-amaranth-04,213 12 47));--mds-label-color:rgb(var(--label-amaranth-02,131 8 29));--mds-label-icon-color:rgb(var(--label-amaranth-02,131 8 29));--mds-label-selection-background:rgb(var(--label-amaranth-06,248 138 157));--mds-label-selection-color:rgb(var(--label-amaranth-10,254 232 236))}:host([variant=aqua]){--mds-label-background:rgb(var(--label-aqua-04,4 122 143));--mds-label-button-background-hover:rgb(var(--label-aqua-05,5 141 165));--mds-label-button-icon-color:rgb(var(--label-aqua-10,199 245 253));--mds-label-color:rgb(var(--label-aqua-10,199 245 253));--mds-label-icon-color:rgb(var(--label-aqua-10,199 245 253));--mds-label-selection-background:rgb(var(--label-aqua-08,99 229 251));--mds-label-selection-color:rgb(var(--label-aqua-02,2 75 88))}:host([variant=aqua]):host([tone=weak]){--mds-label-background:rgb(var(--label-aqua-08,99 229 251));--mds-label-button-background-hover:rgb(var(--label-aqua-09,151 237 252));--mds-label-button-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-label-color:rgb(var(--label-aqua-02,2 75 88));--mds-label-icon-color:rgb(var(--label-aqua-02,2 75 88));--mds-label-selection-background:rgb(var(--label-aqua-06,6 186 217));--mds-label-selection-color:rgb(var(--label-aqua-10,199 245 253))}:host([variant=blue]){--mds-label-background:rgb(var(--label-blue-04,63 94 248));--mds-label-button-background-hover:rgb(var(--label-blue-05,90 117 249));--mds-label-button-icon-color:rgb(var(--label-blue-10,233 236 254));--mds-label-color:rgb(var(--label-blue-10,233 236 254));--mds-label-icon-color:rgb(var(--label-blue-10,233 236 254));--mds-label-selection-background:rgb(var(--label-blue-08,200 210 253));--mds-label-selection-color:rgb(var(--label-blue-02,7 39 192))}:host([variant=blue]):host([tone=weak]){--mds-label-background:rgb(var(--label-blue-08,200 210 253));--mds-label-button-background-hover:rgb(var(--label-blue-09,216 222 254));--mds-label-button-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-label-color:rgb(var(--label-blue-02,7 39 192));--mds-label-icon-color:rgb(var(--label-blue-02,7 39 192));--mds-label-selection-background:rgb(var(--label-blue-06,149 166 251));--mds-label-selection-color:rgb(var(--label-blue-10,233 236 254))}:host([variant=green]){--mds-label-background:rgb(var(--label-green-04,22 128 61));--mds-label-button-background-hover:rgb(var(--label-green-05,26 148 71));--mds-label-button-icon-color:rgb(var(--label-green-10,206 247 221));--mds-label-color:rgb(var(--label-green-10,206 247 221));--mds-label-icon-color:rgb(var(--label-green-10,206 247 221));--mds-label-selection-background:rgb(var(--label-green-08,125 232 164));--mds-label-selection-color:rgb(var(--label-green-02,14 80 38))}:host([variant=green]):host([tone=weak]){--mds-label-background:rgb(var(--label-green-08,125 232 164));--mds-label-button-background-hover:rgb(var(--label-green-09,165 240 193));--mds-label-button-icon-color:rgb(var(--label-green-04,22 128 61));--mds-label-color:rgb(var(--label-green-02,14 80 38));--mds-label-icon-color:rgb(var(--label-green-02,14 80 38));--mds-label-selection-background:rgb(var(--label-green-06,34 195 93));--mds-label-selection-color:rgb(var(--label-green-10,206 247 221))}:host([variant=lime]){--mds-label-background:rgb(var(--label-lime-04,81 124 13));--mds-label-button-background-hover:rgb(var(--label-lime-05,93 143 15));--mds-label-button-icon-color:rgb(var(--label-lime-10,219 247 178));--mds-label-color:rgb(var(--label-lime-10,219 247 178));--mds-label-icon-color:rgb(var(--label-lime-10,219 247 178));--mds-label-selection-background:rgb(var(--label-lime-08,159 232 46));--mds-label-selection-color:rgb(var(--label-lime-02,49 76 8))}:host([variant=lime]):host([tone=weak]){--mds-label-background:rgb(var(--label-lime-08,159 232 46));--mds-label-button-background-hover:rgb(var(--label-lime-09,189 239 111));--mds-label-button-icon-color:rgb(var(--label-lime-04,81 124 13));--mds-label-color:rgb(var(--label-lime-02,49 76 8));--mds-label-icon-color:rgb(var(--label-lime-02,49 76 8));--mds-label-selection-background:rgb(var(--label-lime-06,123 189 20));--mds-label-selection-color:rgb(var(--label-lime-10,219 247 178))}:host([variant=orange]){--mds-label-background:rgb(var(--label-orange-04,185 78 5));--mds-label-button-background-hover:rgb(var(--label-orange-05,213 90 5));--mds-label-button-icon-color:rgb(var(--label-orange-10,254 233 219));--mds-label-color:rgb(var(--label-orange-10,254 233 219));--mds-label-icon-color:rgb(var(--label-orange-10,254 233 219));--mds-label-selection-background:rgb(var(--label-orange-08,253 201 166));--mds-label-selection-color:rgb(var(--label-orange-02,114 48 3))}:host([variant=orange]):host([tone=weak]){--mds-label-background:rgb(var(--label-orange-08,253 201 166));--mds-label-button-background-hover:rgb(var(--label-orange-09,253 217 191));--mds-label-button-icon-color:rgb(var(--label-orange-04,185 78 5));--mds-label-color:rgb(var(--label-orange-02,114 48 3));--mds-label-icon-color:rgb(var(--label-orange-02,114 48 3));--mds-label-selection-background:rgb(var(--label-orange-06,250 143 69));--mds-label-selection-color:rgb(var(--label-orange-10,254 233 219))}:host([variant=orchid]){--mds-label-background:rgb(var(--label-orchid-04,206 21 113));--mds-label-button-background-hover:rgb(var(--label-orchid-05,233 44 137));--mds-label-button-icon-color:rgb(var(--label-orchid-10,253 231 242));--mds-label-color:rgb(var(--label-orchid-10,253 231 242));--mds-label-icon-color:rgb(var(--label-orchid-10,253 231 242));--mds-label-selection-background:rgb(var(--label-orchid-08,249 197 223));--mds-label-selection-color:rgb(var(--label-orchid-02,127 13 70))}:host([variant=orchid]):host([tone=weak]){--mds-label-background:rgb(var(--label-orchid-08,249 197 223));--mds-label-button-background-hover:rgb(var(--label-orchid-09,251 213 232));--mds-label-button-icon-color:rgb(var(--label-orchid-04,206 21 113));--mds-label-color:rgb(var(--label-orchid-02,127 13 70));--mds-label-icon-color:rgb(var(--label-orchid-02,127 13 70));--mds-label-selection-background:rgb(var(--label-orchid-06,243 137 189));--mds-label-selection-color:rgb(var(--label-orchid-10,253 231 242))}:host([variant=sky]){--mds-label-background:rgb(var(--label-sky-04,10 118 167));--mds-label-button-background-hover:rgb(var(--label-sky-05,12 136 193));--mds-label-button-icon-color:rgb(var(--label-sky-10,217 241 253));--mds-label-color:rgb(var(--label-sky-10,217 241 253));--mds-label-icon-color:rgb(var(--label-sky-10,217 241 253));--mds-label-selection-background:rgb(var(--label-sky-08,157 220 249));--mds-label-selection-color:rgb(var(--label-sky-02,6 73 104))}:host([variant=sky]):host([tone=weak]){--mds-label-background:rgb(var(--label-sky-08,157 220 249));--mds-label-button-background-hover:rgb(var(--label-sky-09,185 231 251));--mds-label-button-icon-color:rgb(var(--label-sky-04,10 118 167));--mds-label-color:rgb(var(--label-sky-02,6 73 104));--mds-label-icon-color:rgb(var(--label-sky-02,6 73 104));--mds-label-selection-background:rgb(var(--label-sky-06,47 182 243));--mds-label-selection-color:rgb(var(--label-sky-10,217 241 253))}:host([variant=violet]){--mds-label-background:rgb(var(--label-violet-04,126 73 245));--mds-label-button-background-hover:rgb(var(--label-violet-05,145 100 246));--mds-label-button-icon-color:rgb(var(--label-violet-10,240 234 254));--mds-label-color:rgb(var(--label-violet-10,240 234 254));--mds-label-icon-color:rgb(var(--label-violet-10,240 234 254));--mds-label-selection-background:rgb(var(--label-violet-08,219 205 252));--mds-label-selection-color:rgb(var(--label-violet-02,65 11 190))}:host([variant=violet]):host([tone=weak]){--mds-label-background:rgb(var(--label-violet-08,219 205 252));--mds-label-button-background-hover:rgb(var(--label-violet-09,229 218 253));--mds-label-button-icon-color:rgb(var(--label-violet-04,126 73 245));--mds-label-color:rgb(var(--label-violet-02,65 11 190));--mds-label-icon-color:rgb(var(--label-violet-02,65 11 190));--mds-label-selection-background:rgb(var(--label-violet-06,184 156 250));--mds-label-selection-color:rgb(var(--label-violet-10,240 234 254))}:host([variant=purple]){--mds-label-background:rgb(var(--label-purple-04,150 51 245));--mds-label-button-background-hover:rgb(var(--label-purple-05,168 86 247));--mds-label-button-icon-color:rgb(var(--label-purple-10,244 233 254));--mds-label-color:rgb(var(--label-purple-10,244 233 254));--mds-label-icon-color:rgb(var(--label-purple-10,244 233 254));--mds-label-selection-background:rgb(var(--label-purple-08,228 202 252));--mds-label-selection-color:rgb(var(--label-purple-02,90 8 168))}:host([variant=purple]):host([tone=weak]){--mds-label-background:rgb(var(--label-purple-08,228 202 252));--mds-label-button-background-hover:rgb(var(--label-purple-09,235 216 253));--mds-label-button-icon-color:rgb(var(--label-purple-04,150 51 245));--mds-label-color:rgb(var(--label-purple-02,90 8 168));--mds-label-icon-color:rgb(var(--label-purple-02,90 8 168));--mds-label-selection-background:rgb(var(--label-purple-06,201 149 250));--mds-label-selection-color:rgb(var(--label-purple-10,244 233 254))}:host([variant=yellow]){--mds-label-background:rgb(var(--label-yellow-04,141 107 5));--mds-label-button-background-hover:rgb(var(--label-yellow-05,161 124 6));--mds-label-button-icon-color:rgb(var(--label-yellow-10,253 236 186));--mds-label-color:rgb(var(--label-yellow-10,253 236 186));--mds-label-icon-color:rgb(var(--label-yellow-10,253 236 186));--mds-label-selection-background:rgb(var(--label-yellow-08,249 207 78));--mds-label-selection-color:rgb(var(--label-yellow-02,87 67 3))}:host([variant=yellow]):host([tone=weak]){--mds-label-background:rgb(var(--label-yellow-08,249 207 78));--mds-label-button-background-hover:rgb(var(--label-yellow-09,251 221 131));--mds-label-button-icon-color:rgb(var(--label-yellow-04,141 107 5));--mds-label-color:rgb(var(--label-yellow-02,87 67 3));--mds-label-icon-color:rgb(var(--label-yellow-02,87 67 3));--mds-label-selection-background:rgb(var(--label-yellow-06,214 163 7));--mds-label-selection-color:rgb(var(--label-yellow-10,253 236 186))}:host([variant=error]){--mds-label-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-label-button-background-hover:rgb(var(--magma-danger-emphasis-hover,var(--status-error-03,165 33 40)));--mds-label-button-icon-color:rgb(var(--magma-danger-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-label-color:rgb(var(--magma-danger-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-label-icon-color:rgb(var(--magma-danger-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-label-selection-background:rgb(var(--magma-danger-wash-strong,var(--status-error-08,254 198 194)));--mds-label-selection-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)))}:host([variant=error]):host([tone=weak]){--mds-label-background:rgb(var(--magma-danger-wash-strong,var(--status-error-08,254 198 194)));--mds-label-button-background-hover:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-label-button-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-label-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-label-icon-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-label-selection-background:rgb(var(--magma-danger-border-strong,var(--border-error-strong,218 96 93)));--mds-label-selection-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=warning]){--mds-label-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-label-button-background-hover:rgb(var(--magma-warning-emphasis-hover,var(--status-warning-03,113 85 0)));--mds-label-button-icon-color:rgb(var(--magma-warning-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-label-color:rgb(var(--magma-warning-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-label-icon-color:rgb(var(--magma-warning-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-label-selection-background:rgb(var(--magma-warning-wash-strong,var(--status-warning-08,255 205 57)));--mds-label-selection-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)))}:host([variant=warning]):host([tone=weak]){--mds-label-background:rgb(var(--magma-warning-wash-strong,var(--status-warning-08,255 205 57)));--mds-label-button-background-hover:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-label-button-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)));--mds-label-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-label-icon-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-label-selection-background:rgb(var(--magma-warning-border-strong,var(--border-warning-strong,184 130 0)));--mds-label-selection-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=success]){--mds-label-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-label-button-background-hover:rgb(var(--magma-success-emphasis-hover,var(--status-success-03,0 102 32)));--mds-label-button-icon-color:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-label-color:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-label-icon-color:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-label-selection-background:rgb(var(--magma-success-wash-strong,var(--status-success-08,165 225 186)));--mds-label-selection-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)))}:host([variant=success]):host([tone=weak]){--mds-label-background:rgb(var(--magma-success-wash-strong,var(--status-success-08,165 225 186)));--mds-label-button-background-hover:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-label-button-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-label-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-label-icon-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-label-selection-background:rgb(var(--magma-success-border-strong,var(--border-success-strong,17 166 98)));--mds-label-selection-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=info]){--mds-label-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-label-button-background-hover:rgb(var(--magma-info-emphasis-hover,var(--status-info-03,0 94 137)));--mds-label-button-icon-color:rgb(var(--magma-info-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-label-color:rgb(var(--magma-info-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-label-icon-color:rgb(var(--magma-info-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-label-selection-background:rgb(var(--magma-info-wash-strong,var(--status-info-08,168 219 242)));--mds-label-selection-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)))}:host([variant=info]):host([tone=weak]){--mds-label-background:rgb(var(--magma-info-wash-strong,var(--status-info-08,168 219 242)));--mds-label-button-background-hover:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-label-button-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)));--mds-label-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-label-icon-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-label-selection-background:rgb(var(--magma-info-border-strong,var(--border-info-strong,18 154 196)));--mds-label-selection-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=more]){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}}@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)) inset}}`;
|
|
38832
39763
|
|
|
39764
|
+
/**
|
|
39765
|
+
* @category tags
|
|
39766
|
+
*/
|
|
38833
39767
|
class MdsLabel {
|
|
38834
39768
|
constructor(hostRef) {
|
|
38835
39769
|
registerInstance(this, hostRef);
|
|
@@ -38867,7 +39801,7 @@ class MdsLabel {
|
|
|
38867
39801
|
};
|
|
38868
39802
|
}
|
|
38869
39803
|
render() {
|
|
38870
|
-
return (hAsync(Host, { key: '
|
|
39804
|
+
return (hAsync(Host, { key: 'c6814ff8779caf22519cea2b3ef701568a39c288', "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("mds-text", { key: 'a6e78f175598833e568fb0f0f12273f1373ea9b4', class: "text", truncate: this.truncate, typography: this.typography }, this.label), this.deletable && (hAsync("mds-button", { key: 'fb323c41fc0a8f95aa78463b64c0c1dc76d410b1', class: "button-close", icon: miBaselineCancel, onClick: this.onClickDelete, title: this.t.get('remove'), size: "sm" }))));
|
|
38871
39805
|
}
|
|
38872
39806
|
static get style() { return mdsLabelCss(); }
|
|
38873
39807
|
static get cmpMeta() { return {
|
|
@@ -38913,6 +39847,7 @@ const mdsLinkCss = () => `@layer reset,vendor,theme,base,components,utilities;@k
|
|
|
38913
39847
|
* @slot - Add `text string` to this slot, the text of the link when `label` is not set; **avoid** to add `HTML elements` or `components` here.
|
|
38914
39848
|
* @part link - The element that carries the link and the focus: an anchor with `href`, an inline button without it
|
|
38915
39849
|
* @part icon - The icon of the link
|
|
39850
|
+
* @category actions
|
|
38916
39851
|
*/
|
|
38917
39852
|
class MdsLink {
|
|
38918
39853
|
constructor(hostRef) {
|
|
@@ -39020,10 +39955,10 @@ class MdsLink {
|
|
|
39020
39955
|
: { role: 'button', tabindex: '0' };
|
|
39021
39956
|
// the word joiner keeps the icon on the line of the word next to it: the icon is drawn in
|
|
39022
39957
|
// the padding of an inline box, which the line breaks with the text
|
|
39023
|
-
const icon = this.icon && (hAsync("span", { key: '
|
|
39024
|
-
return (hAsync(Host, { key: '
|
|
39958
|
+
const icon = this.icon && (hAsync("span", { key: '1c1fcab5ffcec2aa8735e846494bec28626ec656', class: `glue glue-${this.iconPosition === 'left' ? 'left' : 'right'}` }, '', hAsync("mds-icon", { key: '0ed80c4fc73c342fe5459ddbbb5f554ccac3eb1d', "aria-hidden": "true", class: "icon", name: this.icon, part: "icon" })));
|
|
39959
|
+
return (hAsync(Host, { key: '124b0c68ffb53e958de37820d23c0e99740bbbec', onClick: this.handleClick, "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast }, hAsync(Tag, Object.assign({ key: '485d7d56c74c0f57d70899e2d79f5422cb277e82', class: "link", part: "link", ref: (el) => {
|
|
39025
39960
|
this.link = el;
|
|
39026
|
-
} }, attributes), this.iconPosition === 'left' && icon, this.label || hAsync("slot", { key: '
|
|
39961
|
+
} }, attributes), this.iconPosition === 'left' && icon, this.label || hAsync("slot", { key: '8bc0a957923343cc45b89d16299e2d32b934f1c2' }), blank && hAsync("span", { key: 'd8b43d4ebfbba8dbfbbc47a9159cfc90c4b043d4', class: "hint" }, ` ${this.t.get('newTab')}`), this.iconPosition !== 'left' && icon)));
|
|
39027
39962
|
}
|
|
39028
39963
|
static get delegatesFocus() { return true; }
|
|
39029
39964
|
get host() { return getElement(this); }
|
|
@@ -39051,13 +39986,14 @@ const mdsListCss = () => `@layer reset,vendor,theme,base,components,utilities;:h
|
|
|
39051
39986
|
|
|
39052
39987
|
/**
|
|
39053
39988
|
* @slot - Add `mds-list-item` element/s.
|
|
39989
|
+
* @category data
|
|
39054
39990
|
*/
|
|
39055
39991
|
class MdsList {
|
|
39056
39992
|
constructor(hostRef) {
|
|
39057
39993
|
registerInstance(this, hostRef);
|
|
39058
39994
|
}
|
|
39059
39995
|
render() {
|
|
39060
|
-
return (hAsync(Host, { key: '
|
|
39996
|
+
return (hAsync(Host, { key: 'ef292ca9948e6dc3968785bec3897ebc2290f443', role: "list" }, hAsync("slot", { key: 'af05ad9fbb06d3c8d9c0ea4c97e8ca3f2d0bafa6' })));
|
|
39061
39997
|
}
|
|
39062
39998
|
static get style() { return mdsListCss(); }
|
|
39063
39999
|
static get cmpMeta() { return {
|
|
@@ -39081,6 +40017,7 @@ const mdsListItemCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
39081
40017
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
39082
40018
|
* @part icon - The bullet icon before the text, the one `icon` sets
|
|
39083
40019
|
* @part text - The text of the item, around the default slot
|
|
40020
|
+
* @parent mds-list
|
|
39084
40021
|
*/
|
|
39085
40022
|
class MdsListItem {
|
|
39086
40023
|
constructor(hostRef) {
|
|
@@ -39096,7 +40033,7 @@ class MdsListItem {
|
|
|
39096
40033
|
}
|
|
39097
40034
|
render() {
|
|
39098
40035
|
var _a;
|
|
39099
|
-
return (hAsync(Host, { key: '
|
|
40036
|
+
return (hAsync(Host, { key: '748216f9f2fd72a7d18583b24b22ebf5f1bef1bd', role: "listitem" }, hAsync("mds-icon", { key: 'bedf1c8104b38d4148ceb141bbccc0686557af88', "aria-hidden": "true", class: "icon", name: (_a = this.icon) !== null && _a !== void 0 ? _a : mggListDot, part: "icon" }), hAsync("mds-text", { key: '343367424cb48f13cf3a2e8e40d3e0216500f0b8', tag: "span", typography: this.typography, variant: this.variant, part: "text" }, hAsync("slot", { key: '867266521cd6c112ca228265636df7d0bad79994' }))));
|
|
39100
40037
|
}
|
|
39101
40038
|
static get style() { return mdsListItemCss(); }
|
|
39102
40039
|
static get cmpMeta() { return {
|
|
@@ -39137,6 +40074,9 @@ var localeIt$n = {
|
|
|
39137
40074
|
|
|
39138
40075
|
const mdsMentionCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-mention-icon-size:calc(var(--spacing,.0025rem)*600);align-items:center;background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));border-radius:var(--magma-radius-full,var(--radius-full,1000px));color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));cursor:pointer;display:inline-flex;fill:currentColor;padding:calc(var(--spacing,.0025rem)*25);padding-right:calc(var(--spacing,.0025rem)*200);vertical-align:middle}mds-icon{height:var(--mds-mention-icon-size,calc(var(--spacing,.0025rem)*600));width:var(--mds-mention-icon-size,calc(var(--spacing,.0025rem)*600))}:host([deletable]){padding-right:calc(var(--spacing,.0025rem)*25)}:host([size=sm]){--mds-mention-icon-size:calc(var(--spacing,.0025rem)*400)}:host([size=md]){--mds-mention-icon-size:calc(var(--spacing,.0025rem)*600)}.action-remove{border-radius:var(--magma-radius-full,var(--radius-full,1000px));corner-shape:round;flex-shrink:0;height:var(--mds-mention-icon-size,calc(var(--spacing,.0025rem)*600));margin-left:calc(var(--spacing,.0025rem)*50);min-height:0;min-width:0;padding:0;width:var(--mds-mention-icon-size,calc(var(--spacing,.0025rem)*600))}`;
|
|
39139
40076
|
|
|
40077
|
+
/**
|
|
40078
|
+
* @category tags
|
|
40079
|
+
*/
|
|
39140
40080
|
class MdsMention {
|
|
39141
40081
|
constructor(hostRef) {
|
|
39142
40082
|
registerInstance(this, hostRef);
|
|
@@ -39165,7 +40105,7 @@ class MdsMention {
|
|
|
39165
40105
|
render() {
|
|
39166
40106
|
var _a, _b, _c;
|
|
39167
40107
|
const icon = (_a = this.icon) !== null && _a !== void 0 ? _a : '';
|
|
39168
|
-
return (hAsync(Host, { key: '
|
|
40108
|
+
return (hAsync(Host, { key: 'e45352644d236a63b30c2752b597809dd42c1fd6' }, hAsync("mds-icon", { key: '0b889633fc91bbc2191bbcb55293b6b4e7f2be8e', name: icon !== '' ? icon : miBaselineAlternateEmail }), hAsync("mds-text", { key: '82bd2ebb666f6b7a693fc0b264694c2b0b128872', typography: this.sizeTypography[(_b = this.size) !== null && _b !== void 0 ? _b : 'md'] }, this.size === 'lg' ? this.label : hAsync("b", null, this.label)), this.deletable && (hAsync("mds-button", { key: '8dd4f03c82f868e9b40997f86da02dfdc1819115', class: "action-remove", icon: miBaselineCancel, onClick: this.onDeleteHandler, size: "sm", title: `${this.t.get('remove')} ${(_c = this.label) !== null && _c !== void 0 ? _c : ''}`.trim(), tone: "text", variant: "dark" }))));
|
|
39169
40109
|
}
|
|
39170
40110
|
get host() { return getElement(this); }
|
|
39171
40111
|
static get style() { return mdsMentionCss(); }
|
|
@@ -39214,6 +40154,7 @@ const mdsModalCss = () => `@layer reset,vendor,theme,base,components,utilities;:
|
|
|
39214
40154
|
* @slot - Contents that will be placed in the center of the window. Add `text string`, `HTML elements` or `components` to this slot.
|
|
39215
40155
|
* @slot top - Contents that will be placed on top of the window. Add `text string`, `HTML elements` or `components` to this slot.
|
|
39216
40156
|
* @slot window - Use directly a window component if you need it. Add `text string`, `HTML elements` or `components` to this slot.
|
|
40157
|
+
* @category overlays
|
|
39217
40158
|
*/
|
|
39218
40159
|
class MdsModal {
|
|
39219
40160
|
constructor(hostRef) {
|
|
@@ -39514,14 +40455,14 @@ class MdsModal {
|
|
|
39514
40455
|
this.opened = undefined;
|
|
39515
40456
|
}
|
|
39516
40457
|
render() {
|
|
39517
|
-
return (hAsync(Host, { key: '
|
|
40458
|
+
return (hAsync(Host, { key: '45b3fd950185be51db62a8381caf49d24ec2fa65', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("dialog", { key: 'f9d53be4fc42dd300232a4a546e0be7767756d5a', "aria-label": this.accessibleName, class: "dialog", part: "dialog", ref: (el) => (this.dialogEl = el), onClick: (e) => {
|
|
39518
40459
|
this.handleBackdropClick(e);
|
|
39519
40460
|
}, onCancel: (e) => {
|
|
39520
40461
|
this.handleCancel(e);
|
|
39521
|
-
} }, hAsync("slot", { key: '
|
|
40462
|
+
} }, hAsync("slot", { key: 'bd1c2cab3c4cf3db658a72ae8da8e6e73fa09008', name: "window", onSlotchange: this.updateSlots }), !this.hasWindow && (hAsync("div", { key: '54b538559101fe20fdad60795517b1b5d7e0e41c', class: "window", part: "window" }, hAsync("div", { key: '1b1e2a732ce6ec50cc10f4bf75abae25b1da78fd', class: clsx('window-header', !this.hasTop && 'window-content--empty') }, hAsync("slot", { key: 'dd0cd5c7095b9f3c87097a601370dddbadd11050', name: "top", onSlotchange: this.updateSlots })), hAsync("div", { key: 'b8409013cc7351c26a1bc62f46b06c1907d845d2', class: "window-content-wrapper" }, hAsync("div", { key: '419a03164087739c60c19f1709d4abeef8ef5832', class: "window-content", style: {
|
|
39522
40463
|
paddingTop: `${this.windowHeaderHeight}px`,
|
|
39523
40464
|
paddingBottom: `${this.windowFooterHeight}px`,
|
|
39524
|
-
} }, hAsync("slot", { key: '
|
|
40465
|
+
} }, hAsync("slot", { key: '765333f16f0fecfc3cfa6582131e62981055f610' }))), hAsync("div", { key: '8ef8bed4acbe89bce2a4a2ae544e1b6e0da421c5', class: clsx('window-footer', !this.hasBottom && 'window-content--empty') }, hAsync("slot", { key: '7940e4282ae344c8a92301f21c4cb9b75a8f6028', name: "bottom", onSlotchange: this.updateSlots })))), !this.hasWindow && (hAsync("mds-button", { key: '52ce6a70b25d8a07b4fc5d26fbe43914c363de6e', "aria-label": this.t.get('close'), class: "action-close", icon: miBaselineClose, variant: "light", tone: "text", size: "xl", onClick: () => {
|
|
39525
40466
|
this.opened = undefined;
|
|
39526
40467
|
}, part: "action-close" })))));
|
|
39527
40468
|
}
|
|
@@ -39584,6 +40525,7 @@ const mdsNoteCss = () => `@layer reset,vendor,theme,base,components,utilities;@l
|
|
|
39584
40525
|
/**
|
|
39585
40526
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
39586
40527
|
* @slot title - Add `text string`, `HTML elements` or `components` to this slot.
|
|
40528
|
+
* @category content
|
|
39587
40529
|
*/
|
|
39588
40530
|
class MdsNote {
|
|
39589
40531
|
constructor(hostRef) {
|
|
@@ -39628,7 +40570,7 @@ class MdsNote {
|
|
|
39628
40570
|
this.km.detachClickBehavior();
|
|
39629
40571
|
}
|
|
39630
40572
|
render() {
|
|
39631
|
-
return (hAsync(Host, { key: '
|
|
40573
|
+
return (hAsync(Host, { key: 'f24a40d6554ae9c5063ddb0ad5216eb8eee0d9b8', role: "note", "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.deletable && (hAsync("mds-button", { key: '8c845b6f2495222880b6a2fd92281a2608579c2b', title: this.t.get('deleteLabel'), icon: miBaselineClose, class: "button-close", variant: "dark", tone: "text", onClick: this.onClickClose })), hAsync("slot", { key: '55b1fdf3081f66a9964dc221ca371978b9b96c05', name: "title" }), hAsync("slot", { key: '2b7e60517045cb841379f452e516db07135e77e9' }), hAsync("div", { key: 'e7f7da5f3882b51a0f9966c56c2d8468ec2b6422', "aria-hidden": "true", class: "fold" })));
|
|
39632
40574
|
}
|
|
39633
40575
|
get host() { return getElement(this); }
|
|
39634
40576
|
static get style() { return mdsNoteCss(); }
|
|
@@ -39647,6 +40589,9 @@ class MdsNote {
|
|
|
39647
40589
|
|
|
39648
40590
|
const mdsNotificationCss = () => `@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-notification-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-dot-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-notification-dot-padding:calc(var(--spacing,.0025rem)*150);--mds-notification-min-width:var(--mds-notification-size,calc(var(--spacing,.0025rem)*500));--mds-notification-ring-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-notification-ring-size:calc(var(--spacing,.0025rem)*50);--mds-notification-size:calc(var(--spacing,.0025rem)*500);--mds-notification-transition-duration:var(--duration-200,.2s);--private-notification-transition-duration:var(--mds-notification-transition-duration,var(--duration-200,.2s));--mds-notification-dot-transition-duration:var(--duration-300,.3s);--private-notification-dot-transition-duration:var(--mds-notification-dot-transition-duration);--mds-notification-transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));--mds-notification-translate-offset-x:-1.75;--mds-notification-translate-offset-y:-2;--mds-notification-translate:translate(calc(var(--mds-notification-size,calc(var(--spacing,.0025rem) * 500)) / var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,calc(var(--spacing,.0025rem) * 500)) / var(--mds-notification-translate-offset-y,-2)));align-items:center;border-radius:var(--magma-radius-full,var(--radius-full,1000px));bottom:100%;color:var(--mds-notification-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));display:inline-flex;height:var(--mds-notification-size,calc(var(--spacing,.0025rem)*500));justify-content:flex-end;min-width:max-content;pointer-events:none;width:var(--mds-notification-size,calc(var(--spacing,.0025rem)*500));z-index:10}:host([strategy=absolute]),:host([strategy=fixed]){opacity:0;right:100%;transform:var(--mds-notification-translate,translate(calc(var(--spacing,.0025rem)*500/-1.75),calc(var(--spacing,.0025rem)*500/-2))) scale(0);transform-origin:calc(100% - calc(var(--mds-notification-size,calc(var(--spacing,.0025rem) * 500)) / 2)) 50%;transition-duration:var(--private-notification-transition-duration);transition-property:color,height,opacity,transform,width;transition-timing-function:var(--mds-notification-transition-timing-function)}:host([strategy=absolute]){position:absolute}:host([strategy=fixed]){position:fixed}.dot{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-notification-dot-background,rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));box-shadow:0 0 0 var(--mds-notification-ring-size,calc(var(--spacing,.0025rem)*50)) var(--mds-notification-ring-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));box-sizing:border-box;display:inline-flex;justify-content:center;line-height:var(--mds-notification-size,calc(var(--spacing,.0025rem)*500));min-height:var(--mds-notification-size,calc(var(--spacing,.0025rem)*500));min-width:var(--mds-notification-min-width,calc(var(--spacing,.0025rem)*500));padding-left:var(--mds-notification-dot-padding,calc(var(--spacing,.0025rem)*150));padding-right:var(--mds-notification-dot-padding,calc(var(--spacing,.0025rem)*150));position:static;transition-duration:var(--private-notification-dot-transition-duration);transition-property:background-color,color,box-shadow;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));white-space:nowrap}:host([strategy=absolute]) .dot,:host([strategy=fixed]) .dot{position:absolute}.spacer{box-sizing:border-box;display:inline-flex;height:var(--mds-notification-size,calc(var(--spacing,.0025rem)*500));width:var(--mds-notification-min-width,calc(var(--spacing,.0025rem)*500))}:host([dismissed]:not([dismissed=false])[strategy=absolute]),:host([dismissed]:not([dismissed=false])[strategy=fixed]){--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));opacity:1;transform:var(--mds-notification-translate,translate(calc(var(--spacing,.0025rem)*500/-1.75),calc(var(--spacing,.0025rem)*500/-2))) scale(0);transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}:host([strategy=absolute]:not([dismissed])),:host([strategy=absolute][dismissed=false]),:host([strategy=fixed]:not([dismissed])),:host([strategy=fixed][dismissed=false]){--tw-ease:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));opacity:1;transform:var(--mds-notification-translate,translate(calc(var(--spacing,.0025rem)*500/-1.75),calc(var(--spacing,.0025rem)*500/-2))) scale(1);transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1))}:host(:not([target])),:host([strategy=disabled]){opacity:1;position:static;transform:scale(1);transform-origin:unset;transition-duration:0s}:host(:not([target])) .dot,:host([strategy=disabled]) .dot{position:static}:host([dismissed]:not([dismissed=false]):not([target])),:host([dismissed]:not([dismissed=false])[strategy=disabled]){display:none}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-notification-transition-duration:0s;--private-notification-dot-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-notification-transition-duration:0s;--private-notification-dot-transition-duration:0s}}`;
|
|
39649
40591
|
|
|
40592
|
+
/**
|
|
40593
|
+
* @category feedback
|
|
40594
|
+
*/
|
|
39650
40595
|
class MdsNotification {
|
|
39651
40596
|
constructor(hostRef) {
|
|
39652
40597
|
registerInstance(this, hostRef);
|
|
@@ -39784,7 +40729,7 @@ class MdsNotification {
|
|
|
39784
40729
|
}
|
|
39785
40730
|
}
|
|
39786
40731
|
render() {
|
|
39787
|
-
return (hAsync(Host, { key: '
|
|
40732
|
+
return (hAsync(Host, { key: '029cb02defc2089b3cef3d5eeff86c359986b287', "aria-hidden": this.describing ? 'true' : undefined, "pref-animation": preferenceStore.state.animation }, hAsync("mds-text", { key: 'f8839e0817a4bcaf7ce1f4466d0b1bce40060038', typography: "caption", class: "dot" }, this.clean(this.value))));
|
|
39788
40733
|
}
|
|
39789
40734
|
get host() { return getElement(this); }
|
|
39790
40735
|
static get watchers() { return {
|
|
@@ -39840,6 +40785,9 @@ var localeIt$k = {
|
|
|
39840
40785
|
|
|
39841
40786
|
const mdsPaginatorCss = () => `@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-paginator-item:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-paginator-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-paginator-scroll-behavior:smooth;--mds-paginator-transition-duration:var(--duration-200,.2s);--private-paginator-transition-duration:var(--mds-paginator-transition-duration);align-items:center;display:flex;gap:calc(var(--spacing,.0025rem)*100)}.pages{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none;--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-paginator-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:flex;flex-shrink:1;gap:calc(var(--spacing,.0025rem)*50);margin-inline:calc(var(--spacing,.0025rem)*200);overflow:auto;padding:calc(var(--spacing,.0025rem)*200);scroll-behavior:var(--mds-paginator-scroll-behavior,smooth);transition-duration:var(--private-paginator-transition-duration);transition-property:background-color,box-shadow;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.pages::-webkit-scrollbar{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-paginator-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-paginator-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .pages{box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=more]) .pages{box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:host([pref-contrast=more]) .item{--mds-paginator-item-background-hover:rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242)));--mds-paginator-item-shadow-hover:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset;--mds-paginator-item-shadow:none}:host([pref-contrast=more]) :is(.item-first,.item-icon,.item-last){--mds-paginator-item-shadow-disabled:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset;--mds-paginator-item-shadow-hover:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset;--mds-paginator-item-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host{--mds-paginator-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-paginator-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-paginator-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .pages{box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .pages{box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item{--mds-paginator-item-background-hover:rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242)));--mds-paginator-item-shadow-hover:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset;--mds-paginator-item-shadow:none}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) :is(.item-first,.item-icon,.item-last){--mds-paginator-item-shadow-disabled:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset;--mds-paginator-item-shadow-hover:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset;--mds-paginator-item-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset}}`;
|
|
39842
40787
|
|
|
40788
|
+
/**
|
|
40789
|
+
* @category navigation
|
|
40790
|
+
*/
|
|
39843
40791
|
class MdsPaginator {
|
|
39844
40792
|
constructor(hostRef) {
|
|
39845
40793
|
registerInstance(this, hostRef);
|
|
@@ -39939,7 +40887,7 @@ class MdsPaginator {
|
|
|
39939
40887
|
}, 10);
|
|
39940
40888
|
}
|
|
39941
40889
|
render() {
|
|
39942
|
-
return (hAsync(Host, { key: '
|
|
40890
|
+
return (hAsync(Host, { key: '3125714a374d79598a8aa4264f2041faa004040f', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("mds-paginator-item", { key: '97b07496bf0dbb35c808f4b24c2de4cc831f7a99', "aria-label": this.t.get('previousPage'), class: "item-icon", icon: miBaselineArrowBack, disabled: this.currentPage === 1, onClick: this.handlePrevClick }), this.pages > 0 && (hAsync("mds-paginator-item", { key: 'd45782589ac1c39c5654c1c458b8d5ec8e587a90', class: "item-first", selected: this.currentPage === 1, onClick: this.handleFirstClick }, "1")), this.pages > 2 && (hAsync("div", { key: 'e04a0262d58be3378b1419738a3f1a6f63ea553b', class: "pages" }, Array.from(Array(this.pages - 2).keys()).map((i) => (hAsync("mds-paginator-item", { key: i, class: "item", selected: this.currentPage === i + 2, onClick: this.handlePageClick(i + 2), onFocus: this.handleItemFocus }, i + 2))))), this.pages > 1 && (hAsync("mds-paginator-item", { key: 'cc2aa5b90fda73180748b5eff3ca6b93493abe7c', class: "item-last", selected: this.currentPage === this.pages, onClick: this.handleLastClick }, this.pages)), hAsync("mds-paginator-item", { key: '633e9e8a1c599a88c63871443715c9e6adf04d92', "aria-label": this.t.get('nextPage'), class: "item-icon", icon: miBaselineArrowForward, disabled: this.currentPage === this.pages, onClick: this.handleNextClick })));
|
|
39943
40891
|
}
|
|
39944
40892
|
get element() { return getElement(this); }
|
|
39945
40893
|
static get style() { return mdsPaginatorCss(); }
|
|
@@ -39960,6 +40908,7 @@ const mdsPaginatorItemCss = () => `@layer reset,vendor,theme,base,components,uti
|
|
|
39960
40908
|
|
|
39961
40909
|
/**
|
|
39962
40910
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
40911
|
+
* @parent mds-paginator
|
|
39963
40912
|
*/
|
|
39964
40913
|
class MdsPaginatorItem {
|
|
39965
40914
|
constructor(hostRef) {
|
|
@@ -39993,7 +40942,7 @@ class MdsPaginatorItem {
|
|
|
39993
40942
|
this.km.detachClickBehavior();
|
|
39994
40943
|
}
|
|
39995
40944
|
render() {
|
|
39996
|
-
return (hAsync(Host, { key: '
|
|
40945
|
+
return (hAsync(Host, { key: 'b743df2760c48a3ae7f3d9ce2a621302104da49a', "aria-current": this.selected ? 'page' : undefined, "aria-disabled": this.disabled ? 'true' : undefined, role: "button", tabindex: this.disabled ? undefined : '0', "pref-animation": preferenceStore.state.animation, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.icon !== undefined ? (hAsync("mds-icon", { class: "icon", name: this.icon })) : (hAsync("mds-text", { class: "text", typography: "caption" }, hAsync("b", null, hAsync("slot", null))))));
|
|
39997
40946
|
}
|
|
39998
40947
|
get host() { return getElement(this); }
|
|
39999
40948
|
static get style() { return mdsPaginatorItemCss(); }
|
|
@@ -40118,6 +41067,7 @@ const mdsPolicyAiCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
40118
41067
|
* @part chip-wrapper - Selects the wrapper of the chip and of its dropdown, will be found only if attirbute `variant` is set to `chip`.
|
|
40119
41068
|
* @part card - Selects the `card` component wrapped in shadowDOM, will be found only if attirbute `variant` is set to `card`.
|
|
40120
41069
|
* @part banner - Selects the `banner` component wrapped in shadowDOM, will be found only if attirbute `variant` is set to `banner`.
|
|
41070
|
+
* @category tags
|
|
40121
41071
|
*/
|
|
40122
41072
|
class MdsPolicyAi {
|
|
40123
41073
|
constructor(hostRef) {
|
|
@@ -40142,7 +41092,7 @@ class MdsPolicyAi {
|
|
|
40142
41092
|
}
|
|
40143
41093
|
render() {
|
|
40144
41094
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
40145
|
-
return (hAsync(Host, { key: '
|
|
41095
|
+
return (hAsync(Host, { key: 'e396029f5bfbf222ea96b6fd5b3a8e537662f545' }, this.variant === 'icon' && (hAsync("mds-help", { key: '912ff694de75dc4e8ef6a173a9cbb3bd3b4f1839', icon: mggAiChatbot, class: "icon-help", onClick: this.handleIconClick, part: "icon" }, hAsync("div", { key: '535c6c2abc0ae5a526281f460d05a234c836d251', class: "icon-tip-content" }, hAsync("mds-text", { key: '23d6530d8e0bb947115e1fb246523f5e5a178bbc', typography: "tip" }, (_a = this.headline) !== null && _a !== void 0 ? _a : this.t.get('iconTooltip')), hAsync("mds-text", { key: 'fbe3a65e8f80c8d518e1b83ce310d4b3387593d8', typography: "tip" }, (_b = this.description) !== null && _b !== void 0 ? _b : this.t.get('iconLinkLabel'))))), this.variant === 'chip' && (hAsync("div", { key: 'ac4e56d1ff38beda6e08056c42fe0a94426a3048', class: "chip-wrapper", part: "chip-wrapper" }, hAsync("mds-chip", { key: '7ef457c70df985f6445c8f4d826493320f40e56a', id: "chip", icon: mggAiChatbot, class: "chip", part: "chip", variant: "ai", label: (_c = this.headline) !== null && _c !== void 0 ? _c : this.t.get('chipLabel') }), hAsync("mds-dropdown", { key: '3bdd4739442b7d55390a9a7af27071e31851b9d7', target: "#chip", class: "chip-dropdown", interaction: "mouseover", role: "group" }, hAsync("mds-text", { key: '4070ca71a7c867f326f6ff2724110f3d92e39fb8', typography: "tip" }, (_d = this.description) !== null && _d !== void 0 ? _d : this.t.get('cardDescription')), hAsync("mds-button", { key: '6e4fd66dd3b15601460f7cef69ee0e10e6def9c0', icon: miOutlinePolicy, href: this.href, variant: "ai", tone: "weak", size: "sm", label: this.t.get('linkLabel') })))), this.variant === 'card' && (hAsync("div", { key: '00b442e4c52eb8b3736d21fab046da055feba94d', class: "mini-card", part: "card" }, hAsync("mds-icon", { key: '66b11c2516b4ef5ca346d7a89998679d1885136e', name: mggAiChatbot, class: "mini-card-icon" }), hAsync("div", { key: '17a4c3839f1e338be4ccc1e03ed92dd4a00d70b0', class: "mini-card-content" }, hAsync("mds-text", { key: 'f09ada514361dad4ca98b9e4ad3307739787c043', typography: "caption" }, (_e = this.description) !== null && _e !== void 0 ? _e : this.t.get('iconTooltip')), hAsync("mds-button", { key: 'bfeffbba85e9925c9920a16eeda457056997e45f', class: "mini-card-button", icon: miOutlinePolicy, href: this.href, variant: "ai", tone: "weak", size: "sm" }, hAsync("span", { key: 'ea620c5b245bf129b88d63b60b4669d2ca510847', class: "link-label-long" }, this.t.get('linkLabel')), hAsync("span", { key: 'cd9ff21de165f6bf202b1e4f0e0e422a44a71deb', class: "link-label-short" }, this.t.get('linkLabelShort')))))), this.variant === 'banner' && (hAsync("mds-banner", { key: '586d6d4042d63c9e47ce3afa8c286a5c7278c878', class: "banner", variant: "ai", tone: "weak", icon: mggAiChatbot, headline: (_f = this.headline) !== null && _f !== void 0 ? _f : this.t.get('bannerTitle'), part: "banner" }, hAsync("mds-text", { key: 'f0135bf6d2cfa451dbb086530a3ea9a5f2ed408c', typography: "caption" }, (_g = this.description) !== null && _g !== void 0 ? _g : this.t.get('bannerDescription')), hAsync("mds-button", { key: '31f0cd851e57e3144bbc9fd70726372173eca2b0', icon: miOutlinePolicy, slot: "action", href: this.href, variant: "ai", tone: "weak", size: "sm" }, hAsync("span", { key: 'c9f99cdcb14ac610111f7184b91f2b640a16603c', class: "link-label-long" }, this.t.get('linkLabel')), hAsync("span", { key: 'b752c254af256f0f590f6332f74af60af65c9a48', class: "link-label-short" }, this.t.get('linkLabelShort')))))));
|
|
40146
41096
|
}
|
|
40147
41097
|
static get style() { return mdsPolicyAiCss(); }
|
|
40148
41098
|
static get cmpMeta() { return {
|
|
@@ -40190,7 +41140,6 @@ const mountedPrefs = new Set();
|
|
|
40190
41140
|
* @description This component is based on MdsTab component pattern
|
|
40191
41141
|
* @overview
|
|
40192
41142
|
* <mds-text>Accessibility preferences in web browsers allow users to customize their navigation to improve readability, interaction, and usability. Common options include dark mode, text resizing, screen reader support, keyboard navigation, and blocking animated content. These settings help people with visual, hearing, motor, or cognitive disabilities experience the web more effectively and inclusively.</mds-text>
|
|
40193
|
-
* @category Patterns
|
|
40194
41143
|
* @tags pattern, user, tab
|
|
40195
41144
|
* @slot - Add `mds-pref-animation`, `mds-pref-consumption`, `mds-pref-contrast`, `mds-pref-language`, `mds-pref-mode` or `mds-pref-theme` element/s.
|
|
40196
41145
|
* @example <mds-pref>
|
|
@@ -40204,6 +41153,7 @@ const mountedPrefs = new Set();
|
|
|
40204
41153
|
* <mds-pref-language-item code="en"></mds-pref-language-item>
|
|
40205
41154
|
* </mds-pref-language>
|
|
40206
41155
|
* </mds-pref>
|
|
41156
|
+
* @category preferences
|
|
40207
41157
|
*/
|
|
40208
41158
|
class MdsPref {
|
|
40209
41159
|
constructor(hostRef) {
|
|
@@ -40299,7 +41249,7 @@ class MdsPref {
|
|
|
40299
41249
|
this.applySchemeLock((_a = e.detail) === null || _a === void 0 ? void 0 : _a.scheme);
|
|
40300
41250
|
}
|
|
40301
41251
|
render() {
|
|
40302
|
-
return (hAsync(Host, { key: '
|
|
41252
|
+
return (hAsync(Host, { key: '30bd8f30a00b2455586fe367bed1f7059d97cef7' }, hAsync("slot", { key: '32d04eaa08e7758f393146d6d3100377645d70ed', onSlotchange: this.applySize }), this.showReload && (hAsync("div", { key: '7670cfbf461d545f531357e450db72149ddba693', class: "reload-required" }, hAsync("mds-text", { key: 'b35c1ad9a555600b6b461823e51f62be4309c56c', typography: "caption" }, this.t.get('reloadPageToSeeChanges'))))));
|
|
40303
41253
|
}
|
|
40304
41254
|
get host() { return getElement(this); }
|
|
40305
41255
|
static get watchers() { return {
|
|
@@ -40377,6 +41327,9 @@ var localeIt$h = {
|
|
|
40377
41327
|
|
|
40378
41328
|
const mdsPrefAnimationCss = () => `@layer reset,vendor,theme,base,components,utilities;:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host(:not(:is([hydrated],.hydrated))),:is(mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--disabled,.item--enabled,.item--system{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([pref-contrast=more]) .item{--mds-tab-item-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item{--mds-tab-item-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}`;
|
|
40379
41329
|
|
|
41330
|
+
/**
|
|
41331
|
+
* @category preferences
|
|
41332
|
+
*/
|
|
40380
41333
|
class MdsPrefAnimation {
|
|
40381
41334
|
constructor(hostRef) {
|
|
40382
41335
|
registerInstance(this, hostRef);
|
|
@@ -40490,7 +41443,7 @@ class MdsPrefAnimation {
|
|
|
40490
41443
|
}
|
|
40491
41444
|
render() {
|
|
40492
41445
|
var _a;
|
|
40493
|
-
return (hAsync(Host, { key: '
|
|
41446
|
+
return (hAsync(Host, { key: '428bb5a4625df782d168fb5f380fadf0c413e348', "pref-contrast": preferenceStore.state.contrast }, hAsync("mds-text", { key: 'a4f40eabe7223651d02a84eecf395cd324704d60', class: "info", typography: "caption" }, hAsync("b", { key: '99ebfd5e700a86c29e08203da675247a552d327c' }, this.t.get('label')), ' ', this.t.get(this.animation[(_a = this.mode) !== null && _a !== void 0 ? _a : this.defaultMode].label)), hAsync("mds-tab", { key: 'd1bc4e6dbb5658f9995ef351a7e500a32cbd2f29', fill: true, size: this.size }, hAsync("mds-tab-item", { key: '8c4d7bdd22db2fd6d7be48b8f1707a309b65c235', selected: this.mode === 'reduce', onClick: this.handleModeClick('reduce'), class: "item item--reduce", icon: miOutlineCircle, title: this.t.get(this.animation.reduce.label) }), hAsync("mds-tab-item", { key: '7e9d2a5602d84c756be013dcc40bea382ba35c1f', selected: this.mode === 'system', onClick: this.handleModeClick('system'), class: "item item--system", icon: miBaselineSettings, title: this.t.get(this.animation.system.label) }), hAsync("mds-tab-item", { key: '0ec4356e24b277d1f1188b5f3b6d8b4feb664cb9', selected: this.mode === 'no-preference', onClick: this.handleModeClick('no-preference'), class: "item item--no-preference", icon: miBaselineAnimation, title: this.t.get(this.animation['no-preference'].label) }))));
|
|
40494
41447
|
}
|
|
40495
41448
|
static get watchers() { return {
|
|
40496
41449
|
"mode": [{
|
|
@@ -40575,6 +41528,9 @@ var localeIt$g = {
|
|
|
40575
41528
|
|
|
40576
41529
|
const mdsPrefConsumptionCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--high{--mds-tab-item-selected-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)))}.item--medium{--mds-tab-item-selected-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)))}.item--low{--mds-tab-item-selected-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}:host([pref-contrast=more]) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-contrast=more]) .item--high{--mds-tab-item-default-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([pref-contrast=more]) .item--medium{--mds-tab-item-default-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([pref-contrast=more]) .item--low{--mds-tab-item-default-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item--high{--mds-tab-item-default-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item--medium{--mds-tab-item-default-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item--low{--mds-tab-item-default-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}}`;
|
|
40577
41530
|
|
|
41531
|
+
/**
|
|
41532
|
+
* @category preferences
|
|
41533
|
+
*/
|
|
40578
41534
|
let MdsPrefContrast$1 = class MdsPrefContrast {
|
|
40579
41535
|
constructor(hostRef) {
|
|
40580
41536
|
registerInstance(this, hostRef);
|
|
@@ -40688,7 +41644,7 @@ let MdsPrefContrast$1 = class MdsPrefContrast {
|
|
|
40688
41644
|
}
|
|
40689
41645
|
render() {
|
|
40690
41646
|
var _a;
|
|
40691
|
-
return (hAsync(Host, { key: '
|
|
41647
|
+
return (hAsync(Host, { key: '9367f3e92755506d8b404e8c5aa248d0814cd7db', "pref-contrast": preferenceStore.state.contrast }, hAsync("mds-text", { key: '52bd6278f1dfd82dac98cde7c13990942fdf06d1', class: "info", typography: "caption" }, hAsync("b", { key: '432086ce482f81f100496eed9ec40114342f973c' }, this.t.get('label')), ' ', this.t.get(this.consumption[(_a = this.mode) !== null && _a !== void 0 ? _a : this.defaultMode].label)), hAsync("mds-tab", { key: '665cd3ff4d33c2043666a2ad247cc7ada966c5ca', fill: true, size: this.size }, hAsync("mds-tab-item", { key: 'becc9045f1ebc0d775e970b00acfef1f9ece3459', selected: this.mode === 'low', onClick: this.handleModeClick('low'), class: "item item--low", icon: mggConsumptionLow, title: this.t.get(this.consumption.low.label) }), hAsync("mds-tab-item", { key: 'dd1bf365662e59f840549aa7600146d738d3328a', selected: this.mode === 'medium', onClick: this.handleModeClick('medium'), class: "item item--medium", icon: mggConsumptionMedium, title: this.t.get(this.consumption.medium.label) }), hAsync("mds-tab-item", { key: '17179440e1f9ad67f35de6cc2721077f48938482', selected: this.mode === 'high', onClick: this.handleModeClick('high'), class: "item item--high", icon: mggConsumptionHigh, title: this.t.get(this.consumption.high.label) }))));
|
|
40692
41648
|
}
|
|
40693
41649
|
static get watchers() { return {
|
|
40694
41650
|
"mode": [{
|
|
@@ -40761,6 +41717,9 @@ var localeIt$f = {
|
|
|
40761
41717
|
|
|
40762
41718
|
const mdsPrefContrastCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--default,.item--more,.item--system{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([pref-contrast=more]) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}`;
|
|
40763
41719
|
|
|
41720
|
+
/**
|
|
41721
|
+
* @category preferences
|
|
41722
|
+
*/
|
|
40764
41723
|
class MdsPrefContrast {
|
|
40765
41724
|
constructor(hostRef) {
|
|
40766
41725
|
registerInstance(this, hostRef);
|
|
@@ -40874,7 +41833,7 @@ class MdsPrefContrast {
|
|
|
40874
41833
|
}
|
|
40875
41834
|
render() {
|
|
40876
41835
|
var _a;
|
|
40877
|
-
return (hAsync(Host, { key: '
|
|
41836
|
+
return (hAsync(Host, { key: '1f7f219d7a3c33550f11616d92ff49cf4fa06b68', "pref-contrast": preferenceStore.state.contrast }, hAsync("mds-text", { key: '44cf8c9a3ce2c279d7290b33acc43eaece3aab39', class: "info", typography: "caption" }, hAsync("b", { key: '4060396cd5a2c224c3df668b0912e0a0b341308c' }, this.t.get('label')), ' ', this.t.get(this.contrast[(_a = this.mode) !== null && _a !== void 0 ? _a : this.defaultMode].label)), hAsync("mds-tab", { key: '13b99bae22c3a901f318834ee8ad0f34d3f20176', fill: true, size: this.size }, hAsync("mds-tab-item", { key: '7bf8568caa1128ce60c9a92675e9353c60d4e180', selected: this.mode === 'more', onClick: this.handleModeClick('more'), class: "item item--more", icon: miBaselineContrast, title: this.t.get(this.contrast.more.label) }), hAsync("mds-tab-item", { key: 'f8b439f1cb2e3e9047acccdc81d55c141b38894f', selected: this.mode === 'system', onClick: this.handleModeClick('system'), class: "item item--system", icon: miBaselineSettings, title: this.t.get(this.contrast.system.label) }), hAsync("mds-tab-item", { key: 'ed5c810f80249768aed0c947b9324cb182873d60', selected: this.mode === 'no-preference', onClick: this.handleModeClick('no-preference'), class: "item item--default", icon: this.mode === 'no-preference' ? miBaselineAutoAwesome : miOutlineAutoAwesome, title: this.t.get(this.contrast['no-preference'].label) }))));
|
|
40878
41837
|
}
|
|
40879
41838
|
static get watchers() { return {
|
|
40880
41839
|
"mode": [{
|
|
@@ -41755,6 +42714,7 @@ const LANGUAGE_CODE = /^[a-z]{2,3}(-[A-Za-z0-9]{1,8})*$/;
|
|
|
41755
42714
|
const isLanguageCode = (value) => value != null && LANGUAGE_CODE.test(value);
|
|
41756
42715
|
/**
|
|
41757
42716
|
* @slot - Add `mds-pref-language-item` element/s.
|
|
42717
|
+
* @category preferences
|
|
41758
42718
|
*/
|
|
41759
42719
|
class MdsPrefLanguage {
|
|
41760
42720
|
constructor(hostRef) {
|
|
@@ -41872,7 +42832,7 @@ class MdsPrefLanguage {
|
|
|
41872
42832
|
}
|
|
41873
42833
|
render() {
|
|
41874
42834
|
var _a;
|
|
41875
|
-
return (hAsync(Host, { key: '
|
|
42835
|
+
return (hAsync(Host, { key: '8b32b725ddce601609db53475859b2aa85c03d33' }, hAsync("div", { key: 'bdef922d7164b935a12df6188d0ef56a6f911cde', class: "menu" }, hAsync("mds-text", { key: '9562bbe7ef25020121082bab58850795eef236ca', class: "info", typography: "caption" }, hAsync("b", { key: 'b704931108c89d12413f97e4e3643fc28974254c' }, this.t.get('label'))), hAsync("mds-tab", { key: 'd694472d851c9d794ff5d65a11bdea5d66db59fd', fill: true, size: this.size }, hAsync("mds-tab-item", { key: '7c2d180947fa64c9c8306b43f20bf90e98063bb8', selected: true, onClick: this.toggleDropdown, expanded: this.showDropdown, id: "mds-pref-language-nav", class: "item item--custom-language", "icon-position": "right", icon: this.showDropdown ? miBaselineKeyboardArrowUp : miBaselineKeyboardArrowDown, label: this.t.get((_a = this.set) !== null && _a !== void 0 ? _a : 'auto') }))), hAsync("mds-dropdown", { key: '09ea686a6bda3163aedae2e1bb76e89f67a5b791', class: "mds-pref-language-dropdown", target: "#mds-pref-language-nav", interaction: "none", visible: this.showDropdown, onMdsDropdownHide: this.hideLanguageSelectDropdown }, hAsync("slot", { key: '81024d5bc1441304a54c17eaa2210356c5802635', onSlotchange: this.checkLanguageSelect })), this.set !== this.defaultLanguage && (hAsync("mds-text", { key: '10418f466459f5b207c3a571c3e9ddf75f3240b2', typography: "caption" }, this.t.get('defaultLanguage')))));
|
|
41876
42836
|
}
|
|
41877
42837
|
get element() { return getElement(this); }
|
|
41878
42838
|
static get watchers() { return {
|
|
@@ -42116,6 +43076,9 @@ var miBaselineCheckCircle = `<svg xmlns="http://www.w3.org/2000/svg" width="24"
|
|
|
42116
43076
|
|
|
42117
43077
|
const mdsPrefLanguageItemCss = () => `@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{display:block}`;
|
|
42118
43078
|
|
|
43079
|
+
/**
|
|
43080
|
+
* @parent mds-pref-language
|
|
43081
|
+
*/
|
|
42119
43082
|
class MdsPrefLanguageItem {
|
|
42120
43083
|
constructor(hostRef) {
|
|
42121
43084
|
registerInstance(this, hostRef);
|
|
@@ -42153,7 +43116,7 @@ class MdsPrefLanguageItem {
|
|
|
42153
43116
|
return (
|
|
42154
43117
|
// the item is an entry of the `menu` the mds-dropdown of the controller opens:
|
|
42155
43118
|
// without the role axe rejects it as a child of that menu (aria-required-children)
|
|
42156
|
-
hAsync(Host, { key: '
|
|
43119
|
+
hAsync(Host, { key: 'd4315f73e815a9be621bafa3091e197f510a4f51', onClick: this.handleClick, role: "menuitem" }, ((_a = this.code) !== null && _a !== void 0 ? _a : '') !== '' ? (hAsync("mds-button", { icon: this.selected ? miBaselineCheckCircle : miOutlineCircle, variant: "dark", tone: "text", label: (_b = localeDefault[this.code]) !== null && _b !== void 0 ? _b : this.code })) : (hAsync("mds-button", { icon: miBaselineCheckCircle, variant: "error", tone: "text", label: this.t.get('noCode') }))));
|
|
42157
43120
|
}
|
|
42158
43121
|
static get watchers() { return {
|
|
42159
43122
|
"code": [{
|
|
@@ -42226,6 +43189,9 @@ var localeIt$c = {
|
|
|
42226
43189
|
|
|
42227
43190
|
const mdsPrefModeCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-tab,mds-tab-item,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-pref-mode-overlay-fadeout-duration:var(--duration-200,.2s);--mds-pref-mode-overlay-show-duration:var(--duration-300,.3s);--mds-pref-mode-overlay-z-index:var(--magma-theme-overlay-z-index,7000);display:grid;gap:calc(var(--spacing,.0025rem)*200)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--system{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}.item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-06,214 163 7))}.item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-06,47 182 243))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-03,112 85 4))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-03,8 94 133))}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-03,112 85 4))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-03,8 94 133))}}`;
|
|
42228
43191
|
|
|
43192
|
+
/**
|
|
43193
|
+
* @category preferences
|
|
43194
|
+
*/
|
|
42229
43195
|
class MdsPrefMode {
|
|
42230
43196
|
constructor(hostRef) {
|
|
42231
43197
|
registerInstance(this, hostRef);
|
|
@@ -42454,7 +43420,7 @@ class MdsPrefMode {
|
|
|
42454
43420
|
}
|
|
42455
43421
|
render() {
|
|
42456
43422
|
var _a;
|
|
42457
|
-
return (hAsync(Host, { key: '
|
|
43423
|
+
return (hAsync(Host, { key: '8cd7d190d15c44c67b89147d4b16404f5cb95800', "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("mds-text", { key: '14cd73bd20d61e354734a351cf991970f0ebc5ec', class: "info", typography: "caption" }, hAsync("b", { key: '86ee2ea0a64ade8fbe329a0f96182c3b67d9ff5e' }, this.t.get('label')), " ", this.t.get(this.modes[(_a = this.mode) !== null && _a !== void 0 ? _a : this.defaultMode].label)), hAsync("mds-tab", { key: '57b1029715dc8e06cc0c8313aef1d97b86e5862f', fill: true, size: this.size }, hAsync("mds-tab-item", { key: '4dfba447dcefe6dbbbbfc15ab1e47431dea40ef0', disabled: this.isModeDisabled('light'), selected: this.mode === 'light', onClick: this.handleModeClick('light'), class: "item item--light", icon: miBaselineLightMode, title: this.t.get(this.modes.light.label) }), hAsync("mds-tab-item", { key: 'ae48429db039f79a022a1888436ab55b477d0556', disabled: this.isModeDisabled('system'), selected: this.mode === 'system', onClick: this.handleModeClick('system'), class: "item item--system", icon: miBaselineSettings, title: this.t.get(this.modes.system.label) }), hAsync("mds-tab-item", { key: '0b56971502285a300258fbebee3e4d1cb9bb11d0', disabled: this.isModeDisabled('dark'), selected: this.mode === 'dark', onClick: this.handleModeClick('dark'), class: "item item--dark", icon: this.mode === 'dark' ? miBaselineDarkMode : miOutlineDarkMode, title: this.t.get(this.modes.dark.label) }))));
|
|
42458
43424
|
}
|
|
42459
43425
|
get element() { return getElement(this); }
|
|
42460
43426
|
static get watchers() { return {
|
|
@@ -42525,6 +43491,7 @@ const mdsPrefThemeCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
42525
43491
|
|
|
42526
43492
|
/**
|
|
42527
43493
|
* @slot - Add `mds-pref-theme-item` element/s.
|
|
43494
|
+
* @category preferences
|
|
42528
43495
|
*/
|
|
42529
43496
|
class MdsPrefTheme {
|
|
42530
43497
|
constructor(hostRef) {
|
|
@@ -42764,7 +43731,7 @@ class MdsPrefTheme {
|
|
|
42764
43731
|
this.setTheme(name, scheme);
|
|
42765
43732
|
}
|
|
42766
43733
|
render() {
|
|
42767
|
-
return (hAsync(Host, { key: '
|
|
43734
|
+
return (hAsync(Host, { key: '2f7083702541d768d35ca35d53f69c826dd48c54' }, hAsync("div", { key: 'bf697e45493915b806a8065ee2744440d5367891', class: "menu" }, hAsync("mds-text", { key: 'e176eb31c64c0a126536c76c4eb1db108aacb329', class: "info", typography: "caption" }, hAsync("b", { key: 'd166e86a8944ffa6dfbb3ffd612b3260bb6e3fe6' }, this.t.get('label'))), hAsync("mds-tab", { key: '48e477229e5232e92559b892285c3f05823b1e20', fill: true, size: this.size }, hAsync("mds-tab-item", { key: 'f0302e5380b09f69a6e99bc7562a765fbb2d1c4b', selected: true, onClick: this.toggleDropdown, expanded: this.showDropdown, id: "mds-pref-theme-nav", class: "item item--theme", "icon-position": "right", icon: this.showDropdown ? miBaselineKeyboardArrowUp : miBaselineKeyboardArrowDown, label: this.triggerLabel() }))), hAsync("mds-dropdown", { key: 'e427f49597147ce8c098fdfb77eac5ebff784409', class: "mds-pref-theme-dropdown", target: "#mds-pref-theme-nav", interaction: "none", visible: this.showDropdown, onMdsDropdownHide: this.hideThemeDropdownSelect }, hAsync("slot", { key: 'cf784a34089d3fe41fe8edc1c72a1632e9d8b843', onSlotchange: this.checkThemeSelect }))));
|
|
42768
43735
|
}
|
|
42769
43736
|
get element() { return getElement(this); }
|
|
42770
43737
|
static get watchers() { return {
|
|
@@ -42797,6 +43764,9 @@ class MdsPrefTheme {
|
|
|
42797
43764
|
|
|
42798
43765
|
const mdsPrefThemeItemCss = () => `@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-pref-theme-item-color-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-pref-theme-item-color-status-error:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-pref-theme-item-color-status-success:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-pref-theme-item-color-status-warning:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-pref-theme-item-color-variant-primary:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));align-items:center;cursor:pointer;display:flex;gap:calc(var(--spacing,.0025rem)*400);justify-content:space-between}.theme-preview{background-color:var(--mds-pref-theme-item-color-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15));box-sizing:border-box;display:inline-flex;flex:none;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*100);height:calc(var(--spacing,.0025rem)*600);margin:1px;padding:calc(var(--spacing,.0025rem)*100);width:calc(var(--spacing,.0025rem)*600)}.theme-color,.theme-preview{border-radius:var(--magma-radius-full,var(--radius-full,1000px))}.theme-color{background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));height:calc(var(--spacing,.0025rem)*150);position:relative;width:calc(var(--spacing,.0025rem)*150)}.theme-color:after{border-radius:inherit;box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15)) inset;content:"";display:flex;inset:0;position:absolute}.theme-color--variant-primary{background-color:var(--mds-pref-theme-item-color-variant-primary,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))))}.theme-color--status-success{background-color:var(--mds-pref-theme-item-color-status-success,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))))}.theme-color--status-warning{background-color:var(--mds-pref-theme-item-color-status-warning,rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))))}.theme-color--status-error{background-color:var(--mds-pref-theme-item-color-status-error,rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65))))}`;
|
|
42799
43766
|
|
|
43767
|
+
/**
|
|
43768
|
+
* @parent mds-pref-theme
|
|
43769
|
+
*/
|
|
42800
43770
|
class MdsPrefThemeItem {
|
|
42801
43771
|
constructor(hostRef) {
|
|
42802
43772
|
registerInstance(this, hostRef);
|
|
@@ -42828,7 +43798,7 @@ class MdsPrefThemeItem {
|
|
|
42828
43798
|
return (
|
|
42829
43799
|
// the item is an entry of the `menu` the mds-dropdown of the controller opens:
|
|
42830
43800
|
// without the role axe rejects it as a child of that menu (aria-required-children)
|
|
42831
|
-
hAsync(Host, { key: '
|
|
43801
|
+
hAsync(Host, { key: '7ab7329e7b30d20901f5c6bd1a5bcc737280775c', onClick: this.handleClick, role: "menuitem" }, hAsync("mds-button", { key: '2b7f1d8c1e41895e15af85004969d1a7381e7b1e', icon: this.selected ? miBaselineCheckCircle : miOutlineCircle, variant: "dark", tone: "text", label: this.label }), hAsync("span", { key: '6e656b3d65de4e6f8d2a0c5b99a3ca791039e296', "aria-hidden": "true", class: "theme-preview" }, hAsync("span", { key: '61adb19c93abff560beb89ba4a432334cc23cf36', class: "theme-color theme-color--variant-primary" }), hAsync("span", { key: 'f54dbb0a2058820059f16011779a9ad9eb6a46fe', class: "theme-color theme-color--status-success" }), hAsync("span", { key: 'a3bfab2e262e45a373c4cf27827f55237c0aa2a9', class: "theme-color theme-color--status-warning" }), hAsync("span", { key: 'f6f6b7fcb29b0dc194b6986015703920d67597f8', class: "theme-color theme-color--status-error" }))));
|
|
42832
43802
|
}
|
|
42833
43803
|
static get style() { return mdsPrefThemeItemCss(); }
|
|
42834
43804
|
static get cmpMeta() { return {
|
|
@@ -42850,13 +43820,14 @@ const mdsPriceTableCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
42850
43820
|
|
|
42851
43821
|
/**
|
|
42852
43822
|
* @slot - Add `mds-price-table-list` elements or `components` to this slot.
|
|
43823
|
+
* @category data
|
|
42853
43824
|
*/
|
|
42854
43825
|
class MdsPriceTable {
|
|
42855
43826
|
constructor(hostRef) {
|
|
42856
43827
|
registerInstance(this, hostRef);
|
|
42857
43828
|
}
|
|
42858
43829
|
render() {
|
|
42859
|
-
return (hAsync(Host, { key: '
|
|
43830
|
+
return (hAsync(Host, { key: '5b2c5ebe5e79a4ee796774ac55c0d868725224f4' }, hAsync("slot", { key: 'a2bf66dfd60112fe2949cf7bc3d13f152d0934a4' })));
|
|
42860
43831
|
}
|
|
42861
43832
|
static get style() { return mdsPriceTableCss(); }
|
|
42862
43833
|
static get cmpMeta() { return {
|
|
@@ -42874,13 +43845,14 @@ const mdsPriceTableFeaturesCss = () => `@layer reset,vendor,theme,base,component
|
|
|
42874
43845
|
/**
|
|
42875
43846
|
* @part header - Selects the HTML element wrapper of label text
|
|
42876
43847
|
* @slot - Expects to slot `mds-price-table-features-row` component
|
|
43848
|
+
* @parent mds-price-table
|
|
42877
43849
|
*/
|
|
42878
43850
|
class MdsPriceTableFeatures {
|
|
42879
43851
|
constructor(hostRef) {
|
|
42880
43852
|
registerInstance(this, hostRef);
|
|
42881
43853
|
}
|
|
42882
43854
|
render() {
|
|
42883
|
-
return (hAsync(Host, { key: '
|
|
43855
|
+
return (hAsync(Host, { key: 'fd780347090550a18136e4969079e1e07606cfbc', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: 'fac623347dd8aacf34f305b79e509899a6e0f6bf', class: "table-wrapper" }, this.label && (hAsync("header", { key: '7c9e3b8030f64bb02e793d21dbe1142a3025f6b3', part: "header" }, hAsync("mds-text", { key: '978b0a219f520271b370a5c465e01b30e2fe28de', typography: "detail" }, hAsync("b", { key: 'f6038de8f324d7d355f16006fbcf8d09be349b39' }, this.label)))), hAsync("table", { key: '2077b36b6c979c8e96e30989ff7cb2437d189844' }, hAsync("tbody", { key: '47912a9ae06c7db2b41db658272e70ce0b99f20e' }, hAsync("slot", { key: '91e19e971ebe3dcc5b36dccb9acb1d37a8cb3a8d' }))))));
|
|
42884
43856
|
}
|
|
42885
43857
|
static get style() { return mdsPriceTableFeaturesCss(); }
|
|
42886
43858
|
static get cmpMeta() { return {
|
|
@@ -42903,6 +43875,7 @@ const mdsPriceTableFeaturesCellCss = () => `@layer reset,vendor,theme,base,compo
|
|
|
42903
43875
|
* @part icon - Selects the HTML element of the icon when `type` attribute when is `supported` or `unsupported`.
|
|
42904
43876
|
* @part text - Selects the HTML element wrapper of text when `type` attribute when is `text`.
|
|
42905
43877
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43878
|
+
* @parent mds-price-table-features-row
|
|
42906
43879
|
*/
|
|
42907
43880
|
class MdsPriceTableFeaturesCell {
|
|
42908
43881
|
constructor(hostRef) {
|
|
@@ -42913,7 +43886,7 @@ class MdsPriceTableFeaturesCell {
|
|
|
42913
43886
|
this.type = 'text';
|
|
42914
43887
|
}
|
|
42915
43888
|
render() {
|
|
42916
|
-
return (hAsync(Host, { key: '
|
|
43889
|
+
return (hAsync(Host, { key: '6b664a8c9173cd1063a08e4c72254156a77010f4', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.type === 'supported' && (hAsync("i", { key: 'f07cbc007529c0450cae5e1de65407ad3ab9fae7', class: "icon icon--supported", innerHTML: miBaselineCheckCircle, part: "icon" })), this.type === 'unsupported' && (hAsync("i", { key: '38fcdaaf74473d8b1d81cd1280ef5a591b4cf3c2', class: "icon icon--unsupported", innerHTML: miBaselineHorizontalRule, part: "icon" })), this.type === 'text' && (hAsync("mds-text", { key: '630ee8deb80284a583fd5f272f79de7d65ce0db1', part: "text", typography: "detail" }, hAsync("slot", { key: 'c18c7b1c70434e0c06eaa9d5fbfad8da930cff0b' }))), this.type === 'custom' && hAsync("slot", { key: '02d281aa7df9ad04076b869a0d869ec54bf7c92b' }), this.type === 'label' && hAsync("slot", { key: '59b84c57ff79b3f541404358bb12161513d4338a' })));
|
|
42917
43890
|
}
|
|
42918
43891
|
static get style() { return mdsPriceTableFeaturesCellCss(); }
|
|
42919
43892
|
static get cmpMeta() { return {
|
|
@@ -42932,6 +43905,7 @@ const mdsPriceTableFeaturesRowCss = () => `@layer reset,vendor,theme,base,compon
|
|
|
42932
43905
|
|
|
42933
43906
|
/**
|
|
42934
43907
|
* @slot - Expects to slot `mds-price-table-features-cell` component
|
|
43908
|
+
* @parent mds-price-table-features
|
|
42935
43909
|
*/
|
|
42936
43910
|
class MdsPriceTableFeaturesRow {
|
|
42937
43911
|
constructor(hostRef) {
|
|
@@ -42945,7 +43919,7 @@ class MdsPriceTableFeaturesRow {
|
|
|
42945
43919
|
});
|
|
42946
43920
|
}
|
|
42947
43921
|
render() {
|
|
42948
|
-
return (hAsync(Host, { key: '
|
|
43922
|
+
return (hAsync(Host, { key: 'd41f21d223d154e41ca4a2cc65c4ab23a66fa227', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("slot", { key: '71997d0c0b04dd775392ff3653a302080642c2d7' })));
|
|
42949
43923
|
}
|
|
42950
43924
|
get host() { return getElement(this); }
|
|
42951
43925
|
static get style() { return mdsPriceTableFeaturesRowCss(); }
|
|
@@ -42965,13 +43939,14 @@ const mdsPriceTableHeaderCss = () => `@layer reset,vendor,theme,base,components,
|
|
|
42965
43939
|
|
|
42966
43940
|
/**
|
|
42967
43941
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43942
|
+
* @parent mds-price-table
|
|
42968
43943
|
*/
|
|
42969
43944
|
class MdsPriceTableHeader {
|
|
42970
43945
|
constructor(hostRef) {
|
|
42971
43946
|
registerInstance(this, hostRef);
|
|
42972
43947
|
}
|
|
42973
43948
|
render() {
|
|
42974
|
-
return (hAsync(Host, { key: '
|
|
43949
|
+
return (hAsync(Host, { key: 'b401e09db75feb79fdb2f9dbaae3cbeb8d8c4380' }, hAsync("slot", { key: 'fb9db117e8e948a182ba305590863a9d424f1ca4' })));
|
|
42975
43950
|
}
|
|
42976
43951
|
static get style() { return mdsPriceTableHeaderCss(); }
|
|
42977
43952
|
static get cmpMeta() { return {
|
|
@@ -42994,6 +43969,7 @@ const mdsPriceTableListCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
42994
43969
|
* @slot item - Add `mds-price-table-list-item` component, `HTML elements` or other `components` to this slot.
|
|
42995
43970
|
* @slot header - Add `text string`, `HTML elements` or `components` to this slot.
|
|
42996
43971
|
* @slot price - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43972
|
+
* @parent mds-price-table mds-price-table-header
|
|
42997
43973
|
*/
|
|
42998
43974
|
class MdsPriceTableList {
|
|
42999
43975
|
constructor(hostRef) {
|
|
@@ -43011,7 +43987,7 @@ class MdsPriceTableList {
|
|
|
43011
43987
|
observeChildren(this.hostElement, this.updateItems);
|
|
43012
43988
|
}
|
|
43013
43989
|
render() {
|
|
43014
|
-
return (hAsync(Host, { key: '
|
|
43990
|
+
return (hAsync(Host, { key: 'a53ccc9cd3b0856544e89d4c65f1c17903be544e', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: '86be76fa315daee8a2550facc782272b51f86193', class: "header", part: "header" }, hAsync("slot", { key: 'fc5b2ef374e73b71183844608cb1c1a4b3a62652', name: "header" })), this.hasItems && hAsync("mds-separator", { key: '2b6628f2a286e66b21b87c903a2c9520673a99ea', class: "separator" }), this.hasItems && (hAsync("div", { key: '09ae67ae1a6cf19e977c13ef8ac16fd7e8a8787e', class: "main", part: "content" }, hAsync("slot", { key: '481859b7af74ff9c803f74a299d504e430852e0a', name: "item" }))), hAsync("div", { key: '93014d3780b52ac36e77a840387844ba8c3e7658', class: "footer", part: "footer" }, hAsync("slot", { key: '0990b206ad3fb0f27379a0d63ffac5d70c7b3137', name: "price" }), hAsync("slot", { key: '8a1e5ab8a0e3c29b1bcb5309288ae889fa226ffd', name: "action" }))));
|
|
43015
43991
|
}
|
|
43016
43992
|
get hostElement() { return getElement(this); }
|
|
43017
43993
|
static get style() { return mdsPriceTableListCss(); }
|
|
@@ -43032,6 +44008,7 @@ const mdsPriceTableListItemCss = () => `@layer reset,vendor,theme,base,component
|
|
|
43032
44008
|
/**
|
|
43033
44009
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43034
44010
|
* @part icon - The check icon of a `supported` item, a dash when it is not
|
|
44011
|
+
* @parent mds-price-table-list
|
|
43035
44012
|
*/
|
|
43036
44013
|
class MdsPriceTableListItem {
|
|
43037
44014
|
constructor(hostRef) {
|
|
@@ -43046,7 +44023,7 @@ class MdsPriceTableListItem {
|
|
|
43046
44023
|
this.typography = 'detail';
|
|
43047
44024
|
}
|
|
43048
44025
|
render() {
|
|
43049
|
-
return (hAsync(Host, { key: '
|
|
44026
|
+
return (hAsync(Host, { key: '1ed32d64bf8f0f19a7fd79291375a0b81b653db3', slot: "item" }, hAsync("mds-text", { key: '740618326dea32f10c1cc230f77d8ccdad273e05', class: "icon-container", typography: this.typography }, this.supported ? (hAsync("i", { class: "icon", innerHTML: miBaselineCheckCircle, part: "icon" })) : (hAsync("i", { class: "icon", innerHTML: miBaselineHorizontalRule, part: "icon" }))), hAsync("mds-text", { key: '559ed559418643d87000f5240336d38ef61bba05', class: "text", typography: this.typography }, hAsync("slot", { key: '6447b837def3bbef302ae47d7ca69c9ffe008516' }))));
|
|
43050
44027
|
}
|
|
43051
44028
|
static get style() { return mdsPriceTableListItemCss(); }
|
|
43052
44029
|
static get cmpMeta() { return {
|
|
@@ -43067,6 +44044,7 @@ const mdsProgressCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
43067
44044
|
/**
|
|
43068
44045
|
* @part progress - Selects the `div` element that contains the progress bar
|
|
43069
44046
|
* @part radial-progress - Selects the `mds-radial-progress` element that contains the radial progress bar
|
|
44047
|
+
* @category feedback
|
|
43070
44048
|
*/
|
|
43071
44049
|
class MdsProgress {
|
|
43072
44050
|
constructor(hostRef) {
|
|
@@ -43139,7 +44117,7 @@ class MdsProgress {
|
|
|
43139
44117
|
this.leftOut = this.element.getAttribute('aria-hidden') === 'true';
|
|
43140
44118
|
}
|
|
43141
44119
|
render() {
|
|
43142
|
-
return (hAsync(Host, { key: '
|
|
44120
|
+
return (hAsync(Host, { key: 'ec1c7761abc77dc7bdc263a001002ed30fbfaf7e', "aria-valuemax": this.leftOut ? undefined : '100', "aria-valuemin": this.leftOut ? undefined : '0', "aria-valuenow": this.leftOut ? undefined : Math.round(this.clampedProgress() * 100), "aria-valuetext": this.leftOut ? undefined : this.resolveValueText(), role: this.leftOut ? undefined : 'progressbar', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.direction === 'radial' ? (hAsync("mds-radial-progress", { "aria-hidden": "true", progress: this.clampedProgress(), part: "radial-progress", typography: this.typography, variant: this.variant })) : (hAsync("div", { class: "progress", part: "progress", style: this.direction === 'horizontal'
|
|
43143
44121
|
? { flexGrow: `${this.clampedProgress()}` }
|
|
43144
44122
|
: { flexGrow: `${this.clampedProgress()}`, width: '100%' } }))));
|
|
43145
44123
|
}
|
|
@@ -43191,11 +44169,12 @@ var localeIt$a = {
|
|
|
43191
44169
|
clearNotifications: clearNotifications
|
|
43192
44170
|
};
|
|
43193
44171
|
|
|
43194
|
-
const mdsPushNotificationCss = () => `@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-push-notification-fadeout-delay:0s;--mds-push-notification-gap:calc(var(--spacing,.0025rem)*200);--mds-push-notification-items-intro-delay:var(--duration-300,.3s);--mds-push-notification-items-outro-delay:0s;--mds-push-notification-items-duration:var(--duration-300,.3s);--mds-push-notification-items-gap:var(--mds-push-notification-gap,calc(var(--spacing,.0025rem)*200));--mds-push-notification-items-timing-function:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));--mds-push-notification-background:linear-gradient(
|
|
44172
|
+
const mdsPushNotificationCss = () => `@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-push-notification-fadeout-delay:0s;--mds-push-notification-gap:calc(var(--spacing,.0025rem)*200);--mds-push-notification-items-intro-delay:var(--duration-300,.3s);--mds-push-notification-items-outro-delay:0s;--mds-push-notification-items-duration:var(--duration-300,.3s);--mds-push-notification-items-gap:var(--mds-push-notification-gap,calc(var(--spacing,.0025rem)*200));--mds-push-notification-items-timing-function:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));--mds-push-notification-background:linear-gradient(to right,rgb(var(--magma-surface-sunken,var(--surface-neutral-sunken,232 232 232))/0) 0%,rgb(var(--magma-surface-sunken,var(--surface-neutral-sunken,232 232 232))/.85) 100%);-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none;--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));background:var(--mds-push-notification-background);bottom:0;box-sizing:initial!important;display:flex;flex-direction:column;gap:calc(var(--spacing,.0025rem)*200);max-width:calc(var(--spacing,.0025rem)*9000);min-width:calc(var(--spacing,.0025rem)*7200);overflow-x:hidden;padding:calc(var(--spacing,.0025rem)*400);padding-left:calc(var(--spacing,.0025rem)*2400);position:fixed;right:0;top:0;transform:translate(100%);transition-delay:var(--mds-push-notification-fadeout-delay,0s);transition-duration:var(--duration-500,.5s);transition-property:transform;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));z-index:var(--magma-notification-z-index,2000)}:host::-webkit-scrollbar{display:none}.notifications{display:flex;flex-direction:column-reverse;gap:var(--mds-push-notification-items-gap)}.notifications ::slotted(mds-push-notification-item){--mds-push-notification-item-duration:var(--mds-push-notification-items-duration,var(--duration-300,.3s));--mds-push-notification-item-timing-function:var(--mds-push-notification-items-timing-function);position:absolute;transform:translate(calc(100% + calc(var(--mds-push-notification-gap,calc(var(--spacing,.0025rem) * 200)) + var(--mds-push-notification-gap,calc(var(--spacing,.0025rem) * 200)))));visibility:hidden}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-push-notification-background:linear-gradient(to right,rgb(var(--magma-backdrop-color,0 0 0)/0) 0%,rgb(var(--magma-backdrop-color,0 0 0)/.5) 20%,rgb(var(--magma-backdrop-color,0 0 0)/.85) 100%)}:host([visible]){transform:translate(0);transition-delay:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-push-notification-background:linear-gradient(to right,rgb(var(--magma-backdrop-color,0 0 0)/0) 0%,rgb(var(--magma-backdrop-color,0 0 0)/.5) 20%,rgb(var(--magma-backdrop-color,0 0 0)/.85) 100%)}}`;
|
|
43195
44173
|
|
|
43196
44174
|
/**
|
|
43197
44175
|
* @part notifications - The container wrapper of the notifications.
|
|
43198
44176
|
* @slot - Add `HTML elements` or `components`, it is **recommended** to use `mds-push-notification` element.
|
|
44177
|
+
* @category feedback
|
|
43199
44178
|
*/
|
|
43200
44179
|
class MdsPushNotification {
|
|
43201
44180
|
constructor(hostRef) {
|
|
@@ -43347,7 +44326,7 @@ class MdsPushNotification {
|
|
|
43347
44326
|
this.visible = undefined;
|
|
43348
44327
|
}
|
|
43349
44328
|
render() {
|
|
43350
|
-
return (hAsync(Host, { key: '
|
|
44329
|
+
return (hAsync(Host, { key: '8227ce180e0acb950b9083ab214ff9a3ab80463d', "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("mds-button", { key: '61ad1b5a60321de36f4bf88a5eeb2c2b23b80ec1', variant: "dark", onClick: this.clear, label: this.t.get('clearNotifications') }), hAsync("div", { key: '5590c4d804403622f0e48ca46361a4c635ca8bb8', class: "notifications", part: "notifications" }, hAsync("slot", { key: '449df6d1917f1149e980e27b9fd848da4a93155e', ref: (el) => (this.slotNotifications = el) }))));
|
|
43351
44330
|
}
|
|
43352
44331
|
get host() { return getElement(this); }
|
|
43353
44332
|
static get watchers() { return {
|
|
@@ -43541,6 +44520,7 @@ const mdsPushNotificationItemCss = () => `@layer reset,vendor,theme,base,compone
|
|
|
43541
44520
|
* @part picture - The picture image added by `src` attribute
|
|
43542
44521
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
43543
44522
|
* @slot badge - Add `HTML elements` or `components`, it is **recommended** to use `mds-badge` element.
|
|
44523
|
+
* @parent mds-push-notification
|
|
43544
44524
|
*/
|
|
43545
44525
|
class MdsPushNotificationItem {
|
|
43546
44526
|
constructor(hostRef) {
|
|
@@ -43618,9 +44598,9 @@ class MdsPushNotificationItem {
|
|
|
43618
44598
|
}
|
|
43619
44599
|
render() {
|
|
43620
44600
|
var _a;
|
|
43621
|
-
return (hAsync(Host, { key: '
|
|
44601
|
+
return (hAsync(Host, { key: 'ea0f478fc8c11382bc9ec24d8f2ef74ae11bd73e', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, ((_a = this.icon) !== null && _a !== void 0 ? _a : this.preview === 'avatar') && (hAsync("mds-avatar", { key: '4b2a4fb57a5206608994bf32500a8c73a02ff552', class: "avatar", icon: this.icon, initials: this.initials, part: "avatar", src: this.src, tone: this.tone, variant: this.variant })), this.src && this.preview !== 'avatar' && (hAsync("mds-img", { key: 'ef82c179702cc9fb5bd5a760fa6c2189bbff7a1d', class: "picture", part: "picture", src: this.src })), hAsync("div", { key: 'bd10e7bf12d5d505bcbefa22861b7d42b18f947c', class: "content", part: "content" }, hAsync("div", { key: 'd5efa0dd1b57b312d50c8157042fb18e2641f37c', class: "header" }, hAsync("div", { key: '7f5b3840d188a60dae6f3c04953b3bfa297de2c6', class: "infos" }, hAsync("div", { key: 'cf78827fc08c8781316a8aef3625968ea661cc2d', class: clsx('badge', !this.hasBadge && 'badge--hidden') }, hAsync("slot", { key: 'f5d4a3ae95d8d6fa98db6256885fc667854893ae', name: "badge", onSlotchange: this.onSlotChange })), this.subject && (hAsync("mds-text", { key: 'e646263fe6413d6ffcfdbbb17289b08e4cc248c1', class: "subject", typography: "h6", variant: "title", truncate: "all" }, this.subject))), this.datetime && (hAsync("mds-text", { key: '1770b775bfe26a7dfbcff553ff54c3c8d3754856', class: "time", typography: "option" }, this.dateFormat === 'timeago'
|
|
43622
44602
|
? dayjs(this.datetime).fromNow()
|
|
43623
|
-
: dayjs(this.datetime).format(this.dateFormat)))), hAsync("mds-text", { key: '
|
|
44603
|
+
: dayjs(this.datetime).format(this.dateFormat)))), hAsync("mds-text", { key: '644471525c4110307b394f7977a9e69bb7bd9d03', class: "message", truncate: "all", typography: "caption", variant: "info" }, this.message), hAsync("div", { key: '524b9ec325028f435d52f0936e36121ec0226583', class: clsx('actions', !this.hasActions && 'actions--hidden'), part: "actions" }, hAsync("slot", { key: '08607576a386ce00442c81b9bba220df8e39d457', name: "action", onSlotchange: this.onSlotChange }))), this.deletable && (hAsync("mds-button", { key: '51553fbf31d28e60bdd81472ba17af853372fe79', class: "close-button", variant: "dark", tone: "text", title: this.t.get('dismiss'), icon: miBaselineCancel, onClick: this.onClickClose }))));
|
|
43624
44604
|
}
|
|
43625
44605
|
get host() { return getElement(this); }
|
|
43626
44606
|
static get watchers() { return {
|
|
@@ -43658,6 +44638,7 @@ const mdsQuoteCss = () => `@layer reset,vendor,theme,base,components,utilities;:
|
|
|
43658
44638
|
/**
|
|
43659
44639
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43660
44640
|
* @slot author - Add `text string`, `HTML elements` or `components` to this slot.
|
|
44641
|
+
* @category content
|
|
43661
44642
|
*/
|
|
43662
44643
|
class MdsQuote {
|
|
43663
44644
|
constructor(hostRef) {
|
|
@@ -43672,7 +44653,7 @@ class MdsQuote {
|
|
|
43672
44653
|
this.tag = 'h3';
|
|
43673
44654
|
}
|
|
43674
44655
|
render() {
|
|
43675
|
-
return (hAsync(Host, { key: '
|
|
44656
|
+
return (hAsync(Host, { key: '53145b4333e279e1b791206a853fab291fa277a3', "pref-contrast": preferenceStore.state.contrast }, hAsync("mds-text", { key: 'fea26f70ba68597228cb9e80f6678cbb9024034d', class: "open-quote", tag: "div", typography: this.typography }, hAsync("span", { key: 'fbb476d6125b36dc4fdadecb1dbb5edfa355f5d9' }, hAsync("i", { key: '81f37f2f2d7ad31607fc0452eea202a48e8ca5fc' }, "\u275D\u00A0"))), hAsync("div", { key: '4d113331a104661db264663f3fbd5f20be1d68b9', class: "quote" }, hAsync("mds-text", { key: '79dc9fe08d1ad791567720534818670fc5f5922e', tag: this.tag, typography: this.typography }, hAsync("i", { key: '4e28a43a8c6220cbc90274dcd10bdf75fe2dbe01' }, hAsync("slot", { key: '56370568aae34236af4ace4dcbed14aa29c2eaad' }), hAsync("span", { key: '5c994607d6a7cde4150cf5c58256f9d48aabbbb1' }, "\u00A0\u275E"))), hAsync("slot", { key: '339a95de6bc7e2b28826566cdb9761b3c7218f1b', name: "author" }))));
|
|
43676
44657
|
}
|
|
43677
44658
|
static get style() { return mdsQuoteCss(); }
|
|
43678
44659
|
static get cmpMeta() { return {
|
|
@@ -43723,6 +44704,7 @@ const mdsRadialMenuCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
43723
44704
|
/**
|
|
43724
44705
|
* @slot item - Add `mds-radial-menu-item` elements or `components` to this slot.
|
|
43725
44706
|
* @part radial-menu - The ring that lays out the `item` slot around the trigger
|
|
44707
|
+
* @category actions
|
|
43726
44708
|
*/
|
|
43727
44709
|
class MdsRadialMenu {
|
|
43728
44710
|
constructor(hostRef) {
|
|
@@ -43895,7 +44877,7 @@ class MdsRadialMenu {
|
|
|
43895
44877
|
this.listenOutside(!!newValue);
|
|
43896
44878
|
}
|
|
43897
44879
|
render() {
|
|
43898
|
-
return (hAsync(Host, { key: '
|
|
44880
|
+
return (hAsync(Host, { key: '51e55a4e17fa5fc42b9edcc43d03ae59e996b87e' }, hAsync("mds-button", { key: '0af2441f112053963df90791b468d8f830d8aa75', "aria-label": this.t.get(this.opened ? 'closeMenu' : 'openMenu'), class: clsx('menu-button', this.interaction !== 'click' && 'menu-button--hidden'), icon: this.opened ? miBaselineClose : this.icon, tone: this.tone, variant: this.variant, size: this.size, onClick: this.toggleMenu }), hAsync("div", { key: 'a72088d0954b40d118875cdc9d51c179bb27bd9f', class: "radial-menu", part: "radial-menu" }, hAsync("slot", { key: '86510970088381adefe830406c09185933b39352', name: "item", onSlotchange: this.updateItems })), hAsync("div", { key: '92d5766a0b632c715106e6d098be9fea0bc8770f', class: "disc" })));
|
|
43899
44881
|
}
|
|
43900
44882
|
get hostElement() { return getElement(this); }
|
|
43901
44883
|
static get watchers() { return {
|
|
@@ -43950,6 +44932,9 @@ class MdsRadialMenu {
|
|
|
43950
44932
|
|
|
43951
44933
|
const mdsRadialMenuItemCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-tooltip):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-radial-menu-item-transition-duration:var(--mds-radial-menu-transition-duration,var(--duration-500,.5s));--mds-radial-menu-item-transition-timing-function:var(--mds-radial-menu-transition-timing-function,var(--ease-out-expo,cubic-bezier(.19,1,.22,1)));--mds-radial-menu-item-delay:0;--mds-radial-menu-item-index:0;display:inline-flex;inset:0;pointer-events:none;position:absolute;transform:scale(0);transition-delay:var(--mds-radial-menu-item-delay);transition-duration:var(--mds-radial-menu-item-transition-duration,var(--duration-500,.5s));transition-property:translate,transform;transition-timing-function:var(--mds-radial-menu-item-transition-timing-function);translate:var(--mds-radial-menu-item-translate)}:host(:hover){z-index:1}.button{border-radius:100%}.tooltip{--mds-tooltip-delay:0;min-width:max-content;width:min-content}`;
|
|
43952
44934
|
|
|
44935
|
+
/**
|
|
44936
|
+
* @parent mds-radial-menu
|
|
44937
|
+
*/
|
|
43953
44938
|
class MdsRadialMenuItem {
|
|
43954
44939
|
constructor(hostRef) {
|
|
43955
44940
|
registerInstance(this, hostRef);
|
|
@@ -43967,7 +44952,7 @@ class MdsRadialMenuItem {
|
|
|
43967
44952
|
this.size = 'lg';
|
|
43968
44953
|
}
|
|
43969
44954
|
render() {
|
|
43970
|
-
return (hAsync(Host, { key: '
|
|
44955
|
+
return (hAsync(Host, { key: '025b912eb4613ba3288d8e5ee4d7993f3e455ad5', slot: "item" }, hAsync("mds-button", { key: '7ada9de8188be564f28e09f1a4b038724d8ab977', "aria-label": this.tooltip, class: "button", icon: this.icon, variant: this.variant, tone: this.tone, size: this.size }), this.tooltip && (hAsync("mds-tooltip", { key: '595aedb28b1075a3d31a78d7f4a75a20bd3c4d1d', class: "tooltip", target: ".button", placement: "top", disableAutoPlacement: true }, this.tooltip))));
|
|
43971
44956
|
}
|
|
43972
44957
|
static get style() { return mdsRadialMenuItemCss(); }
|
|
43973
44958
|
static get cmpMeta() { return {
|
|
@@ -43991,6 +44976,7 @@ const mdsRadialProgressCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
43991
44976
|
/**
|
|
43992
44977
|
* @part value-container - Selects the value container of the radial progress.
|
|
43993
44978
|
* @part icon - Selects the icon of the radial progress.
|
|
44979
|
+
* @category feedback
|
|
43994
44980
|
*/
|
|
43995
44981
|
class MdsRadialProgress {
|
|
43996
44982
|
constructor(hostRef) {
|
|
@@ -44056,7 +45042,7 @@ class MdsRadialProgress {
|
|
|
44056
45042
|
render() {
|
|
44057
45043
|
const progressVar = `${(this.animatedProgress * 100).toFixed(2)}%`;
|
|
44058
45044
|
const progressText = this.progressPercentage(this.clampProgress(this.progress));
|
|
44059
|
-
return (hAsync(Host, { key: '
|
|
45045
|
+
return (hAsync(Host, { key: 'c8c14e004a962629c91be2012b66fcc19c540207', "aria-valuemax": "100", "aria-valuemin": "0", "aria-valuenow": progressText, role: "progressbar", style: { '--mds-radial-progress': progressVar } }, hAsync("div", { key: '41d2cd52c56f2a77b062f60702c315e2b585b55f', class: "value-container", part: "value-container" }, this.icon && hAsync("mds-icon", { key: '4a447ff84050ac84c3a591ae826482e841c3fbad', class: "icon", name: this.icon, part: "icon" }), hAsync("div", { key: '73e0a6eb84ba9805fc6537efd1291ad662709277', class: "value-container__text" }, hAsync("mds-text", { key: '6b5040689dbf2664ac6e1ad3797c7119054c8518', class: "value", typography: this.typography }, progressText)))));
|
|
44060
45046
|
}
|
|
44061
45047
|
static get watchers() { return {
|
|
44062
45048
|
"progress": [{
|
|
@@ -44082,12 +45068,15 @@ class MdsRadialProgress {
|
|
|
44082
45068
|
|
|
44083
45069
|
const mdsSeparatorCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-separator-background:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));background-color:var(--mds-separator-background,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:flex;height:1px}`;
|
|
44084
45070
|
|
|
45071
|
+
/**
|
|
45072
|
+
* @category structure
|
|
45073
|
+
*/
|
|
44085
45074
|
class MdsSeparator {
|
|
44086
45075
|
constructor(hostRef) {
|
|
44087
45076
|
registerInstance(this, hostRef);
|
|
44088
45077
|
}
|
|
44089
45078
|
render() {
|
|
44090
|
-
return (hAsync(Host, { key: '
|
|
45079
|
+
return (hAsync(Host, { key: 'e2899b902ebdd6bcc64be8ba65015cd7ff7ba947', "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }));
|
|
44091
45080
|
}
|
|
44092
45081
|
static get style() { return mdsSeparatorCss(); }
|
|
44093
45082
|
static get cmpMeta() { return {
|
|
@@ -44108,6 +45097,9 @@ var awaitIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2
|
|
|
44108
45097
|
|
|
44109
45098
|
const mdsSpinnerCss = () => `@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host{--mds-spinner-duration:.725s;--private-spinner-duration:var(--mds-spinner-duration,.725s);--tw-ease:var(--ease-in-out-quart,cubic-bezier(.77,0,.175,1));align-items:center;color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));display:inline-flex;height:calc(var(--spacing,.0025rem)*1200);justify-content:center;opacity:0;overflow:hidden;transform:scale(0);transition-duration:var(--duration-300,.3s);transition-property:opacity,transform;transition-timing-function:var(--ease-in-out-quart,cubic-bezier(.77,0,.175,1));width:calc(var(--spacing,.0025rem)*1200)}:host([running]){--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));opacity:1;transform:scale(1);transition-duration:var(--duration-700,.7s);transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.await-icon{animation:var(--animate-spin,spin 1s linear infinite);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));animation-duration:var(--private-spinner-duration);animation-play-state:paused;aspect-ratio:var(--aspect-square,1/1);display:flex;flex-shrink:0;stroke:currentColor;transition-duration:var(--duration-300,.3s);transition-property:stroke;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));width:100%}.await-icon svg{width:100%}:host([running]) .await-icon{animation-play-state:running}:host([pref-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-spinner-duration:8s}:host([pref-contrast=more]){color:rgb(var(--magma-accent-emphasis-active,var(--variant-primary-02,0 57 163)))}:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){:host(: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-spinner-duration:8s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){color:rgb(var(--magma-accent-emphasis-active,var(--variant-primary-02,0 57 163)))}}`;
|
|
44110
45099
|
|
|
45100
|
+
/**
|
|
45101
|
+
* @category feedback
|
|
45102
|
+
*/
|
|
44111
45103
|
class MdsSpinner {
|
|
44112
45104
|
constructor(hostRef) {
|
|
44113
45105
|
registerInstance(this, hostRef);
|
|
@@ -44122,7 +45114,7 @@ class MdsSpinner {
|
|
|
44122
45114
|
}
|
|
44123
45115
|
}
|
|
44124
45116
|
render() {
|
|
44125
|
-
return (hAsync(Host, { key: '
|
|
45117
|
+
return (hAsync(Host, { key: '0daacdb66e13292d526033c319cc29087bde77fb', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast }, hAsync("i", { key: '4d2a0425f4147fc2babe16c8677273bd429e7bdc', class: "await-icon", innerHTML: awaitIcon })));
|
|
44126
45118
|
}
|
|
44127
45119
|
static get watchers() { return {
|
|
44128
45120
|
"running": [{
|
|
@@ -44142,13 +45134,14 @@ class MdsSpinner {
|
|
|
44142
45134
|
}; }
|
|
44143
45135
|
}
|
|
44144
45136
|
|
|
44145
|
-
const mdsStatusBarCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-modal,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-status-bar-max-width:calc(var(--spacing,.0025rem)*12500);--mds-status-bar-backdrop:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.1);--mds-status-bar-backdrop-filter:blur(calc(var(--spacing,.0025rem)*250));display:block}mds-modal{--mds-modal-custom-window-distance:0;--mds-modal-custom-closed-transform:translateY(100%)}.status-bar-area{-webkit-backdrop-filter:var(--mds-status-bar-backdrop-filter);backdrop-filter:var(--mds-status-bar-backdrop-filter);background-color:var(--mds-status-bar-backdrop,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.1));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px)) var(--magma-radius-xl,var(--radius-squircle-xl,36px)) 0 0;corner-shape:var(--magma-corner-shape,squircle);margin-left:calc(var(--spacing,.0025rem)*600);margin-right:calc(var(--spacing,.0025rem)*600);padding:calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*600);transition-property:background-color,transform,opacity}.status-bar{background-color:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-shadow:var(--shadow-md,0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a);corner-shape:var(--magma-corner-shape,squircle);align-items:flex-start;max-width:var(--mds-status-bar-max-width,calc(var(--spacing,.0025rem)*12500));padding:calc(var(--spacing,.0025rem)*600)}.actions,.status-bar{display:inline-flex;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*400)}.actions{flex-grow:1}:host([pref-consumption=medium]){--mds-status-bar-backdrop-filter:none}:host([pref-contrast=more]){--mds-status-bar-backdrop:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .status-bar{box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15))}@media (max-width:480px){.status-bar-area{border-radius:0;margin-left:0;margin-right:0;padding:calc(var(--spacing,.0025rem)*400);width:100%}.status-bar{width:100%}.actions{gap:calc(var(--spacing,.0025rem)*200)}::slotted(*){flex-grow:1}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-status-bar-backdrop:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .status-bar{box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15))}}`;
|
|
45137
|
+
const mdsStatusBarCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-modal,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-status-bar-max-width:calc(var(--spacing,.0025rem)*12500);--mds-status-bar-backdrop:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.1);--mds-status-bar-backdrop-filter:blur(calc(var(--spacing,.0025rem)*250));display:block}mds-modal{--mds-modal-custom-window-distance:0;--mds-modal-custom-closed-transform:translateY(100%)}.status-bar-area{-webkit-backdrop-filter:var(--mds-status-bar-backdrop-filter);backdrop-filter:var(--mds-status-bar-backdrop-filter);background-color:var(--mds-status-bar-backdrop,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.1));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px)) var(--magma-radius-xl,var(--radius-squircle-xl,36px)) 0 0;corner-shape:var(--magma-corner-shape,squircle);margin-left:calc(var(--spacing,.0025rem)*600);margin-right:calc(var(--spacing,.0025rem)*600);padding:calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*600);transition-property:background-color,transform,opacity}.status-bar{background-color:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-shadow:var(--shadow-md,0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a);box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);align-items:flex-start;max-width:var(--mds-status-bar-max-width,calc(var(--spacing,.0025rem)*12500));padding:calc(var(--spacing,.0025rem)*600)}.actions,.status-bar{display:inline-flex;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*400)}.actions{flex-grow:1}:host([pref-consumption=medium]){--mds-status-bar-backdrop-filter:none}:host([pref-contrast=more]){--mds-status-bar-backdrop:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .status-bar{box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15))}@media (max-width:480px){.status-bar-area{border-radius:0;margin-left:0;margin-right:0;padding:calc(var(--spacing,.0025rem)*400);width:100%}.status-bar{width:100%}.actions{gap:calc(var(--spacing,.0025rem)*200)}::slotted(*){flex-grow:1}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-status-bar-backdrop:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .status-bar{box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15))}}`;
|
|
44146
45138
|
|
|
44147
45139
|
/**
|
|
44148
45140
|
* @slot - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
44149
45141
|
* @part actions - Selects the `actions` container element wrapped in shadowDOM.
|
|
44150
45142
|
* @part status-bar - Selects the `status-bar` window component wrapped in shadowDOM.
|
|
44151
45143
|
* @part status-bar-area - Selects the `status-bar-area` which wraps `status-bar` element with darker area in shadowDOM.
|
|
45144
|
+
* @category actions
|
|
44152
45145
|
*/
|
|
44153
45146
|
class MdsStatusBar {
|
|
44154
45147
|
constructor(hostRef) {
|
|
@@ -44178,7 +45171,7 @@ class MdsStatusBar {
|
|
|
44178
45171
|
this.visible = undefined;
|
|
44179
45172
|
}
|
|
44180
45173
|
render() {
|
|
44181
|
-
return (hAsync(Host, { key: '
|
|
45174
|
+
return (hAsync(Host, { key: '305444ee2fef341a77f6c50d0bc0999aa00fa4dd', "pref-consumption": preferenceStore.state.consumption, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("mds-modal", { key: 'cdea2f9111f5e0325ad79a356f7db0d4e1b066cc', class: "modal", hideBackdrop: true, onMdsModalClose: this.handleModalClose, opened: this.visible, position: this.position, animation: "custom", overflow: this.overflow }, hAsync("div", { key: 'ccc2aeb872b9a94d1643da787fe752ad52ab4611', class: "status-bar-area", part: "status-bar-area", slot: "window" }, hAsync("div", { key: '24429132175ed311caf7de79b8d4ff34ef1a407e', class: "status-bar", part: "status-bar" }, this.description && (hAsync("mds-text", { key: '80723e587b342c486fe0d7ea685cf754a50cf2d1', typography: "caption", class: "description" }, this.description)), hAsync("div", { key: '1c5f37540ddef3acc4f3cce453e05dd085b71203', class: "actions", part: "actions" }, hAsync("slot", { key: 'b7d1684cfceafffbfed27f00c507a2aef47b470b' })))))));
|
|
44182
45175
|
}
|
|
44183
45176
|
get host() { return getElement(this); }
|
|
44184
45177
|
static get watchers() { return {
|
|
@@ -44210,6 +45203,7 @@ const mdsStepperBarCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
44210
45203
|
* @slot content - Add `HTML elements` or `components`, one per mds-stepper-bar-item added
|
|
44211
45204
|
* @part items - Selects the `items` container element wrapped in shadowDOM.
|
|
44212
45205
|
* @part contents - Selects the `contents` container element wrapped in shadowDOM.
|
|
45206
|
+
* @category navigation
|
|
44213
45207
|
*/
|
|
44214
45208
|
class MdsStepperBar {
|
|
44215
45209
|
constructor(hostRef) {
|
|
@@ -44309,7 +45303,7 @@ class MdsStepperBar {
|
|
|
44309
45303
|
this.setCurrent(newValue);
|
|
44310
45304
|
}
|
|
44311
45305
|
render() {
|
|
44312
|
-
return (hAsync(Host, { key: '
|
|
45306
|
+
return (hAsync(Host, { key: '4cee33d7549fc0ec2f6b35860c2fdd74bb379509' }, hAsync("div", { key: 'b9a7e3d7df02ed8f098232b6a8078ce8d58ea5c2', class: "items", part: "items" }, hAsync("slot", { key: 'd1cae57eb1d6a175ec23b554435ce36d0af37567' })), hAsync("div", { key: 'eb65a046cc49732c0679e4aef0dcb6b0467a5413', class: "contents", part: "contents" }, hAsync("slot", { key: 'd08d348e9a159fc44e5b8d14a7c4c9920f34370e', name: "content" }))));
|
|
44313
45307
|
}
|
|
44314
45308
|
get element() { return getElement(this); }
|
|
44315
45309
|
static get watchers() { return {
|
|
@@ -44380,6 +45374,7 @@ const mdsStepperBarItemCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
44380
45374
|
|
|
44381
45375
|
/**
|
|
44382
45376
|
* @part badge - The badge wrapper
|
|
45377
|
+
* @parent mds-stepper-bar
|
|
44383
45378
|
*/
|
|
44384
45379
|
class MdsStepperBarItem {
|
|
44385
45380
|
constructor(hostRef) {
|
|
@@ -44420,14 +45415,16 @@ class MdsStepperBarItem {
|
|
|
44420
45415
|
return;
|
|
44421
45416
|
this.doneEvent.emit({ value: (_a = this.value) !== null && _a !== void 0 ? _a : '' });
|
|
44422
45417
|
};
|
|
45418
|
+
// the status goes through label, a watched prop: the badge reads its deprecated slot once, and
|
|
45419
|
+
// the render reuses the same badge from one status to the next
|
|
44423
45420
|
this.showBadge = () => {
|
|
44424
45421
|
if (this.isDone) {
|
|
44425
|
-
return (hAsync("mds-badge", { class: "badge", variant: "success", tone: "weak", typography: "option"
|
|
45422
|
+
return (hAsync("mds-badge", { class: "badge", variant: "success", tone: "weak", typography: "option", label: this.t.get('badgeDone') }));
|
|
44426
45423
|
}
|
|
44427
45424
|
if (this.isCurrent) {
|
|
44428
|
-
return (hAsync("mds-badge", { class: "badge", variant: "info", tone: "weak", typography: "option"
|
|
45425
|
+
return (hAsync("mds-badge", { class: "badge", variant: "info", tone: "weak", typography: "option", label: this.t.get('badgeCurrent') }));
|
|
44429
45426
|
}
|
|
44430
|
-
return (hAsync("mds-badge", { class: "badge", variant: "dark", tone: "weak", typography: "option"
|
|
45427
|
+
return (hAsync("mds-badge", { class: "badge", variant: "dark", tone: "weak", typography: "option", label: this.t.get('badgeQueued') }));
|
|
44431
45428
|
};
|
|
44432
45429
|
}
|
|
44433
45430
|
componentWillLoad() {
|
|
@@ -44456,7 +45453,7 @@ class MdsStepperBarItem {
|
|
|
44456
45453
|
this.isCurrent = newValue;
|
|
44457
45454
|
}
|
|
44458
45455
|
render() {
|
|
44459
|
-
return (hAsync(Host, { key: '
|
|
45456
|
+
return (hAsync(Host, { key: '56104f7a05fdb9bcdeabdee90f6bc29bc8ce1af0', onClick: this.handleClick, "pref-animation": preferenceStore.state.animation, role: this.isReachable() ? 'button' : undefined, tabindex: this.isReachable() ? '0' : undefined }, hAsync("div", { key: '68e3db1654504c3c914fe62ca8d44382694c6e28', class: "header" }, hAsync("mds-icon", { key: '7d3aa9c5c325261c6ec13306f69ebf7c0755bcdb', class: "icon", name: clsx(this.isDone && !this.isCurrent ? this.iconChecked : this.icon) }), hAsync("mds-progress", { key: '7bbc2929d76783f02c541e81a905506e70add7c1', "aria-hidden": "true", class: "progress", progress: this.isDone ? 1 : 0 })), hAsync("div", { key: 'b7235f605edc910041753a0beb5cdb91556a6506', class: "infos" }, this.step && (hAsync("mds-text", { key: '7f178f3717d6760048c1868575c3725264c84a48', class: "step", typography: "option" }, this.t.get('step', { index: this.index + 1 }))), this.label && (hAsync("mds-text", { key: 'cf706829c04006cb1669ccae818971914deff001', class: "text", typography: this.typography }, this.label)), this.badge && hAsync("div", { key: 'b6de25047539578d654a84a13939c40fb54d5d61', part: "badge" }, this.showBadge()))));
|
|
44460
45457
|
}
|
|
44461
45458
|
get host() { return getElement(this); }
|
|
44462
45459
|
static get watchers() { return {
|
|
@@ -44491,7 +45488,7 @@ class MdsStepperBarItem {
|
|
|
44491
45488
|
}; }
|
|
44492
45489
|
}
|
|
44493
45490
|
|
|
44494
|
-
const mdsTabCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-tab-item:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-direction-vertical-columns:auto auto;--mds-tab-item-default-background:#0000;--mds-tab-item-default-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-tab-item-default-shadow:none;--mds-tab-item-hover-background:#0000;--mds-tab-item-hover-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-radius:min(calc(var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px))) - var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200))),var(--magma-corner-cap,.5) * var(--private-tab-item-height));--mds-tab-item-selected-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-selected-shadow:var(--shadow-sm,0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a);--mds-tab-scroll-behavior:smooth;--mds-tab-scroll-scrollbar-margin:0;--mds-tab-scroll-scrollbar-radius:0;--mds-tab-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-tab-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3);--mds-tab-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-tab-slide-delay:.125s;--mds-tab-tabs-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-tab-tabs-gap:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-overflow-shadow-size:calc(var(--spacing,.0025rem)*600);--mds-tab-tabs-overflow-shadow:0 0 var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem)*600)) calc(var(--spacing,.0025rem)*-50) #00000060;--mds-tab-tabs-padding:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-radius:min(var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)),var(--magma-corner-cap,.5) * var(--private-tab-item-height) + var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem)*200)));--mds-tab-tabs-wrapper-margin:0;--mds-tab-tabs-wrapper-outline-opacity:.7;--mds-tab-tabs-wrapper-shadow-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-transition-duration:var(--duration-500,.5s);--private-tab-transition-duration:var(--mds-tab-transition-duration,var(--duration-500,.5s));--private-tab-item-height:calc(var(--spacing,.0025rem)*900);--mds-tab-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-tab-corner-shape:var(--magma-corner-shape,squircle);border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));corner-shape:var(--mds-tab-corner-shape,round);display:grid;gap:0 calc(var(--spacing,.0025rem)*600);grid-template-rows:min-content auto;position:relative}:host([size=sm]){--private-tab-item-height:calc(var(--spacing,.0025rem)*700)}:host([animation=slide]) ::slotted(mds-tab-item){--mds-tab-item-hover-background:#0000;--mds-tab-item-hover-shadow:none;--mds-tab-item-selected-background:#0000;--mds-tab-item-selected-shadow:#0000;--mds-tab-item-default-background:#0000;--mds-tab-item-default-shadow:none}.tabs{align-items:flex-start;background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));box-sizing:border-box;display:flex;gap:var(--mds-tab-tabs-gap,calc(var(--spacing,.0025rem)*200));overflow:auto;padding:var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem)*200));scroll-behavior:var(--mds-tab-scroll-behavior);scroll-snap-type:x mandatory;transition-duration:var(--private-tab-transition-duration);transition-property:background-color;transition-timing-function:var(--mds-tab-transition-timing-function);z-index:0}.tabs,.tabs-wrapper{border-radius:inherit;corner-shape:inherit;position:relative}.tabs-wrapper{display:grid;flex-shrink:0;margin:var(--mds-tab-tabs-wrapper-margin,0);max-width:max-content;overflow:hidden}.tabs-wrapper--fill{max-width:100%}.tabs-wrapper:after{border-radius:inherit;corner-shape:inherit;border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));box-shadow:var(--mds-tab-tabs-wrapper-shadow);content:"";inset:0;opacity:var(--mds-tab-tabs-wrapper-outline-opacity,.7);pointer-events:none;position:absolute;transition-duration:var(--private-tab-transition-duration);transition-duration:var(--mds-tab-transition-duration,var(--duration-500,.5s));transition-property:box-shadow,opacity;transition-timing-function:var(--mds-tab-transition-timing-function);z-index:1}.contents{--mds-tab-contents-height:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;align-items:stretch;box-sizing:border-box;display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*600);height:var(--mds-tab-contents-height);overflow:auto hidden;position:relative;scroll-behavior:var(--mds-tab-scroll-behavior);scroll-snap-type:x mandatory;scrollbar-width:none;transition-duration:var(--private-tab-transition-duration);transition-property:height;transition-timing-function:var(--mds-tab-transition-timing-function)}.contents::-webkit-scrollbar{display:none}.contents--empty{display:none}::slotted([slot=content]){flex-basis:0;flex-grow:1;min-width:100%;scroll-snap-align:start;width:100%}::slotted([slot=content][mds-tab-content-hidden]){display:none!important}.slider{--mds-tab-slider-offset-x:0;--mds-tab-slider-offset-y:0;--mds-tab-slider-width:0;--mds-tab-slider-height:0;background-color:var(--mds-tab-item-selected-background);border-radius:var(--mds-tab-item-radius);box-shadow:var(--mds-tab-item-selected-shadow);corner-shape:var(--mds-tab-corner-shape);height:var(--mds-tab-slider-height);inset:0 auto auto 0;pointer-events:none;position:absolute;transform:translate(var(--mds-tab-slider-offset-x),var(--mds-tab-slider-offset-y));transition-duration:var(--mds-tab-transition-duration,var(--duration-500,.5s));transition-property:background-color,box-shadow,transform,width;transition-timing-function:var(--mds-tab-transition-timing-function);width:var(--mds-tab-slider-width);will-change:height,transform,width;z-index:-1}.slider--still{transition-property:background-color,box-shadow}::slotted(mds-tab-item){position:relative;z-index:1}:host([direction=vertical]){--mds-tab-tabs-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));grid-template-columns:var(--mds-tab-direction-vertical-columns,auto auto);grid-template-rows:1fr}:host([direction=vertical]) .tabs{align-self:start;flex-direction:column}:host([direction=vertical]) .tabs-wrapper{align-self:start;max-width:none}:host([direction=vertical][fill]) :is(.tabs,.tabs-wrapper){align-self:auto}:host([direction=vertical]) .tabs-wrapper--no-content{grid-column:1/-1}:host([direction=vertical])::slotted(mds-tab-item){width:100%}:host(:not([scrollbar])) .tabs{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([scrollbar])) .tabs::-webkit-scrollbar{display:none}:host([scrollbar]) .tabs::-webkit-scrollbar{height:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([scrollbar]) .tabs::-webkit-scrollbar-track{background-color:var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-tab-scroll-scrollbar-radius,0);margin-block:var(--mds-tab-scroll-scrollbar-margin,0);margin-inline:var(--mds-tab-scroll-scrollbar-margin,0)}:host([scrollbar]) .tabs::-webkit-scrollbar-thumb{background-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3));border-radius:var(--mds-tab-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.tabs{scrollbar-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3)) var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));scrollbar-width:thin}}.tabs-wrapper-overflow-left,.tabs-wrapper-overflow-right{--size:calc(var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200)) * 2);--offset-outside:calc(var(--size) + var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem) * 600)));background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));border-radius:100%;box-shadow:var(--mds-tab-tabs-overflow-shadow);content:"";display:inline-flex;height:auto;pointer-events:none;position:absolute;transition-duration:var(--duration-500,.5s);transition-property:transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:var(--size);z-index:2}.tabs-wrapper-overflow-left{inset:0 auto 0 0;transform:translateX(calc(var(--offset-outside)*-1))}.tabs-wrapper-overflow-right{inset:0 0 0 auto;transform:translateX(var(--offset-outside))}.tabs-wrapper-overflow-left--show{transform:translate(-100%)}.tabs-wrapper-overflow-right--show{transform:translate(100%)}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-tab-item-selected-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([pref-contrast=more]){--mds-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-tab-tabs-wrapper-outline-opacity:.3}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-tab-transition-duration:0s}@media (prefers-reduced-motion:reduce){:host{--mds-tab-scroll-behavior:auto}:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-tab-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-tab-item-selected-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-tab-tabs-wrapper-outline-opacity:.3}}`;
|
|
45491
|
+
const mdsTabCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-tab-item:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-direction-vertical-columns:auto auto;--mds-tab-item-default-background:#0000;--mds-tab-item-default-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-tab-item-default-shadow:none;--mds-tab-item-hover-background:#0000;--mds-tab-item-hover-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-radius:min(calc(var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px))) - var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200))),var(--magma-corner-cap,.5) * var(--private-tab-item-height));--mds-tab-item-selected-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-selected-shadow:var(--shadow-sm,0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a);--mds-tab-scroll-behavior:smooth;--mds-tab-scroll-scrollbar-margin:0;--mds-tab-scroll-scrollbar-radius:0;--mds-tab-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-tab-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3);--mds-tab-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-tab-slide-delay:.125s;--mds-tab-tabs-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-tab-tabs-gap:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-overflow-shadow-size:calc(var(--spacing,.0025rem)*600);--mds-tab-tabs-overflow-shadow:0 0 var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem)*600)) calc(var(--spacing,.0025rem)*-50) rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.375);--mds-tab-tabs-padding:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-radius:min(var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)),var(--magma-corner-cap,.5) * var(--private-tab-item-height) + var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem)*200)));--mds-tab-tabs-wrapper-margin:0;--mds-tab-tabs-wrapper-outline-opacity:.7;--mds-tab-tabs-wrapper-shadow-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-transition-duration:var(--duration-500,.5s);--private-tab-transition-duration:var(--mds-tab-transition-duration,var(--duration-500,.5s));--private-tab-item-height:calc(var(--spacing,.0025rem)*900);--mds-tab-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-tab-corner-shape:var(--magma-corner-shape,squircle);border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));corner-shape:var(--mds-tab-corner-shape,round);display:grid;gap:0 calc(var(--spacing,.0025rem)*600);grid-template-rows:min-content auto;position:relative}:host([size=sm]){--private-tab-item-height:calc(var(--spacing,.0025rem)*700)}:host([animation=slide]) ::slotted(mds-tab-item){--mds-tab-item-hover-background:#0000;--mds-tab-item-hover-shadow:none;--mds-tab-item-selected-background:#0000;--mds-tab-item-selected-shadow:#0000;--mds-tab-item-default-background:#0000;--mds-tab-item-default-shadow:none}.tabs{align-items:flex-start;background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));box-sizing:border-box;display:flex;gap:var(--mds-tab-tabs-gap,calc(var(--spacing,.0025rem)*200));overflow:auto;padding:var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem)*200));scroll-behavior:var(--mds-tab-scroll-behavior);scroll-snap-type:x mandatory;transition-duration:var(--private-tab-transition-duration);transition-property:background-color;transition-timing-function:var(--mds-tab-transition-timing-function);z-index:0}.tabs,.tabs-wrapper{border-radius:inherit;corner-shape:inherit;position:relative}.tabs-wrapper{display:grid;flex-shrink:0;margin:var(--mds-tab-tabs-wrapper-margin,0);max-width:max-content;overflow:hidden}.tabs-wrapper--fill{max-width:100%}.tabs-wrapper:after{border-radius:inherit;corner-shape:inherit;border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));box-shadow:var(--mds-tab-tabs-wrapper-shadow);content:"";inset:0;opacity:var(--mds-tab-tabs-wrapper-outline-opacity,.7);pointer-events:none;position:absolute;transition-duration:var(--private-tab-transition-duration);transition-duration:var(--mds-tab-transition-duration,var(--duration-500,.5s));transition-property:box-shadow,opacity;transition-timing-function:var(--mds-tab-transition-timing-function);z-index:1}.contents{--mds-tab-contents-height:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;align-items:stretch;box-sizing:border-box;display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*600);height:var(--mds-tab-contents-height);overflow:auto hidden;position:relative;scroll-behavior:var(--mds-tab-scroll-behavior);scroll-snap-type:x mandatory;scrollbar-width:none;transition-duration:var(--private-tab-transition-duration);transition-property:height;transition-timing-function:var(--mds-tab-transition-timing-function)}.contents::-webkit-scrollbar{display:none}.contents--empty{display:none}::slotted([slot=content]){flex-basis:0;flex-grow:1;min-width:100%;scroll-snap-align:start;width:100%}::slotted([slot=content][mds-tab-content-hidden]){display:none!important}.slider{--mds-tab-slider-offset-x:0;--mds-tab-slider-offset-y:0;--mds-tab-slider-width:0;--mds-tab-slider-height:0;background-color:var(--mds-tab-item-selected-background);border-radius:var(--mds-tab-item-radius);box-shadow:var(--mds-tab-item-selected-shadow);corner-shape:var(--mds-tab-corner-shape);height:var(--mds-tab-slider-height);inset:0 auto auto 0;pointer-events:none;position:absolute;transform:translate(var(--mds-tab-slider-offset-x),var(--mds-tab-slider-offset-y));transition-duration:var(--mds-tab-transition-duration,var(--duration-500,.5s));transition-property:background-color,box-shadow,transform,width;transition-timing-function:var(--mds-tab-transition-timing-function);width:var(--mds-tab-slider-width);will-change:height,transform,width;z-index:-1}.slider--still{transition-property:background-color,box-shadow}::slotted(mds-tab-item){position:relative;z-index:1}:host([direction=vertical]){--mds-tab-tabs-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));grid-template-columns:var(--mds-tab-direction-vertical-columns,auto auto);grid-template-rows:1fr}:host([direction=vertical]) .tabs{align-self:start;flex-direction:column}:host([direction=vertical]) .tabs-wrapper{align-self:start;max-width:none}:host([direction=vertical][fill]) :is(.tabs,.tabs-wrapper){align-self:auto}:host([direction=vertical]) .tabs-wrapper--no-content{grid-column:1/-1}:host([direction=vertical])::slotted(mds-tab-item){width:100%}:host(:not([scrollbar])) .tabs{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([scrollbar])) .tabs::-webkit-scrollbar{display:none}:host([scrollbar]) .tabs::-webkit-scrollbar{height:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([scrollbar]) .tabs::-webkit-scrollbar-track{background-color:var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-tab-scroll-scrollbar-radius,0);margin-block:var(--mds-tab-scroll-scrollbar-margin,0);margin-inline:var(--mds-tab-scroll-scrollbar-margin,0)}:host([scrollbar]) .tabs::-webkit-scrollbar-thumb{background-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3));border-radius:var(--mds-tab-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.tabs{scrollbar-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3)) var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));scrollbar-width:thin}}.tabs-wrapper-overflow-left,.tabs-wrapper-overflow-right{--size:calc(var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200)) * 2);--offset-outside:calc(var(--size) + var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem) * 600)));background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));border-radius:100%;box-shadow:var(--mds-tab-tabs-overflow-shadow);content:"";display:inline-flex;height:auto;pointer-events:none;position:absolute;transition-duration:var(--duration-500,.5s);transition-property:transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:var(--size);z-index:2}.tabs-wrapper-overflow-left{inset:0 auto 0 0;transform:translateX(calc(var(--offset-outside)*-1))}.tabs-wrapper-overflow-right{inset:0 0 0 auto;transform:translateX(var(--offset-outside))}.tabs-wrapper-overflow-left--show{transform:translate(-100%)}.tabs-wrapper-overflow-right--show{transform:translate(100%)}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-tab-item-selected-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([pref-contrast=more]){--mds-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-tab-tabs-wrapper-outline-opacity:.3}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-tab-transition-duration:0s}@media (prefers-reduced-motion:reduce){:host{--mds-tab-scroll-behavior:auto}:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-tab-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-tab-item-selected-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-tab-tabs-wrapper-outline-opacity:.3}}`;
|
|
44495
45492
|
|
|
44496
45493
|
/**
|
|
44497
45494
|
* @part contents - Selects the container of the tabbed contents elements.
|
|
@@ -44501,6 +45498,7 @@ const mdsTabCss = () => `@layer reset,vendor,theme,base,components,utilities;:ho
|
|
|
44501
45498
|
* items are links (`href`) to other pages or places and the page, not the component, shows the
|
|
44502
45499
|
* content.
|
|
44503
45500
|
* @slot - Add `mds-tab-item` element/s.
|
|
45501
|
+
* @category navigation
|
|
44504
45502
|
*/
|
|
44505
45503
|
class MdsTab {
|
|
44506
45504
|
constructor(hostRef) {
|
|
@@ -44740,12 +45738,12 @@ class MdsTab {
|
|
|
44740
45738
|
});
|
|
44741
45739
|
}
|
|
44742
45740
|
render() {
|
|
44743
|
-
return (hAsync(Host, { key: '
|
|
45741
|
+
return (hAsync(Host, { key: 'e41e15dbbd47eabed43ae17abbd703a6da8b6007', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: '4c0fcf160e458ca25bcec4bc863ff94b07a9c983', class: clsx('tabs-wrapper', this.fill && 'tabs-wrapper--fill', !this.hasContent && 'tabs-wrapper--no-content') }, this.overflow && (hAsync("div", { key: '0b5a123fe3098e7f4bb0c5e3d15848bec0f1695f', class: clsx('tabs-wrapper-overflow-left', this.overflowLeft && 'tabs-wrapper-overflow-left--show') })), this.overflow && (hAsync("div", { key: '2b4f8854e9254ddaa76e05a9bc1c65a89c09a2d8', class: clsx('tabs-wrapper-overflow-right', this.overflowRight && 'tabs-wrapper-overflow-right--show') })), hAsync("div", { key: 'ba7763d0bcebdc5efeeff1e3d4492ad4a345bec3', class: "tabs", part: "tabs", role: this.navigation ? undefined : 'tablist' }, hAsync("slot", { key: '059b6fb51f7e089d324550366309d994ffa15cef' }), this.animation === 'slide' && (hAsync("div", { key: 'd5e5ad377db64705ac0e7b517e8778b8fb11cb69', class: clsx('slider', !this.sliderSlides && 'slider--still'), part: "slider", style: {
|
|
44744
45742
|
'--mds-tab-slider-width': `${this.sliderWidth}px`,
|
|
44745
45743
|
'--mds-tab-slider-height': `${this.sliderHeight}px`,
|
|
44746
45744
|
'--mds-tab-slider-offset-x': `${this.sliderOffsetX}px`,
|
|
44747
45745
|
'--mds-tab-slider-offset-y': `${this.sliderOffsetY}px`,
|
|
44748
|
-
} })))), hAsync("div", { key: '
|
|
45746
|
+
} })))), hAsync("div", { key: '877d854bae6e40e3d64ebbcb9e56cf743b12ad5b', class: clsx('contents', !this.hasContent && 'contents--empty'), part: "contents" }, hAsync("slot", { key: '895b5f0c44848aad39a6083d44ca196b4fbf88d2', name: "content", onSlotchange: this.updateContentItems }))));
|
|
44749
45747
|
}
|
|
44750
45748
|
get element() { return getElement(this); }
|
|
44751
45749
|
static get watchers() { return {
|
|
@@ -44799,6 +45797,7 @@ const mdsTabBarCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
44799
45797
|
|
|
44800
45798
|
/**
|
|
44801
45799
|
* @slot - Add `mds-tab-bar-item` element/s.
|
|
45800
|
+
* @category navigation
|
|
44802
45801
|
*/
|
|
44803
45802
|
class MdsTabBar {
|
|
44804
45803
|
constructor(hostRef) {
|
|
@@ -44826,7 +45825,7 @@ class MdsTabBar {
|
|
|
44826
45825
|
});
|
|
44827
45826
|
}
|
|
44828
45827
|
render() {
|
|
44829
|
-
return (hAsync(Host, { key: '
|
|
45828
|
+
return (hAsync(Host, { key: '5a04aa368abd7d8d5edc3503695458f50c774951', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("slot", { key: 'bea3c60dd89c0e1278cde0b223ee8c73cd350b03' })));
|
|
44830
45829
|
}
|
|
44831
45830
|
get element() { return getElement(this); }
|
|
44832
45831
|
static get style() { return mdsTabBarCss(); }
|
|
@@ -44844,6 +45843,7 @@ const mdsTabBarItemCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
44844
45843
|
|
|
44845
45844
|
/**
|
|
44846
45845
|
* @slot - **Deprecated**, use the `label` property instead. Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
45846
|
+
* @parent mds-tab-bar
|
|
44847
45847
|
*/
|
|
44848
45848
|
class MdsTabBarItem {
|
|
44849
45849
|
constructor(hostRef) {
|
|
@@ -44891,7 +45891,7 @@ class MdsTabBarItem {
|
|
|
44891
45891
|
this.label = sanitizeLabel(newValue);
|
|
44892
45892
|
}
|
|
44893
45893
|
render() {
|
|
44894
|
-
return (hAsync(Host, { key: '
|
|
45894
|
+
return (hAsync(Host, { key: '344fb677f027e8cb3e153baee40be2c886eb91d3', "aria-current": this.selected ? 'true' : undefined, onClick: this.select, tabindex: "0", "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("mds-icon", { key: 'ff38706216cbe8f358cabe883e6f1cb3687d2d36', name: this.icon }), hAsync("mds-text", { key: '15672ccfa674ec17365f3ce0b1afbd88c74a650c', typography: this.typography }, this.label || hAsync("slot", { key: 'b7c1073ac842771ffd57f6c1a38c98cd44729a22', onSlotchange: this.onSlotChangeHandler }))));
|
|
44895
45895
|
}
|
|
44896
45896
|
get element() { return getElement(this); }
|
|
44897
45897
|
static get watchers() { return {
|
|
@@ -44919,6 +45919,7 @@ const mdsTabItemCss = () => `@layer reset,vendor,theme,base,components,utilities
|
|
|
44919
45919
|
|
|
44920
45920
|
/**
|
|
44921
45921
|
* @part button - The `mds-button` of the tab
|
|
45922
|
+
* @parent mds-tab
|
|
44922
45923
|
*/
|
|
44923
45924
|
class MdsTabItem {
|
|
44924
45925
|
constructor(hostRef) {
|
|
@@ -44970,7 +45971,7 @@ class MdsTabItem {
|
|
|
44970
45971
|
}
|
|
44971
45972
|
render() {
|
|
44972
45973
|
var _a;
|
|
44973
|
-
return (hAsync(Host, { key: '
|
|
45974
|
+
return (hAsync(Host, { key: 'b06f1e53601737f257dd54264d5a0e1f87792130', "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("mds-button", { key: '549be08e1a94e8301931f4fdb145b77a68913df2', class: clsx('button', this.selected ? 'selected' : ''), await: this.await, disabled: (_a = this.disabled) !== null && _a !== void 0 ? _a : undefined, href: this.href, icon: this.icon, iconPosition: this.iconPosition, onKeyDown: this.focus, onClick: this.toggle, part: "button",
|
|
44974
45975
|
// a tab controls a panel; one with href is a link to another page or place, which
|
|
44975
45976
|
// ARIA names as such, the selected one being the current one
|
|
44976
45977
|
role: this.isLink() ? 'link' : 'tab', "aria-current": this.isLink() && this.selected ? 'true' : undefined, "aria-expanded": this.expanded === undefined ? undefined : `${this.expanded}`, label: this.label, size: this.size,
|
|
@@ -45039,6 +46040,7 @@ const mdsTableCss = () => `@layer reset,vendor,theme,base,components,utilities;@
|
|
|
45039
46040
|
* @part table - Selects the table element
|
|
45040
46041
|
* @part batch-actions - Selects the element which wraps the batch actions
|
|
45041
46042
|
* @part batch-actions-wrapper - The bar of the batch actions, shown while the table is `selectable` and has `batch-action` content
|
|
46043
|
+
* @category data
|
|
45042
46044
|
*/
|
|
45043
46045
|
class MdsTable {
|
|
45044
46046
|
constructor(hostRef) {
|
|
@@ -45254,7 +46256,7 @@ class MdsTable {
|
|
|
45254
46256
|
(_c = this.tableBodyObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
|
|
45255
46257
|
}
|
|
45256
46258
|
render() {
|
|
45257
|
-
return (hAsync(Host, { key: '
|
|
46259
|
+
return (hAsync(Host, { key: 'e6ab8433eed2dc04dcb97df111218f0aa63b5025', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: 'f6c87a4745841c671b42a01e98c533e76edb573f', class: "table-wrapper", part: "table-wrapper" }, hAsync("table", { key: '83d516efd6d2d0d89a1a3aa1fcd9835a735e570f', class: clsx('table', this.interactive && 'table--interactive'), role: "table", part: "table" }, hAsync("slot", { key: '4fb2e3513bc6bd38a68fdec674df5f1813ea5378', onSlotchange: this.updateSlottedElements }))), this.selectable && this.hasBatchActions && (hAsync("div", { key: '27d0b38e66868bcd5fa9d427a7b5bc1da8bd3677', class: clsx('batch-actions-wrapper', this.selectedRows.length > 0 ? 'batch-actions-wrapper--has-selected-rows' : ''), part: "batch-actions-wrapper" }, hAsync("div", { key: '92019bf44ffd9e1cc344334819275799d7fddfdf', class: "batch-actions", part: "batch-actions" }, hAsync("div", { key: 'f08dbeabda36fb0c6e500d829392551be069672d', class: "batch-actions-header" }, hAsync("mds-text", { key: '0e8ba77dc8cfaf3f060b6c0915330f5dade63391', class: "batch-actions-label", typography: "label" }, this.t.get('batchActions')), hAsync("mds-badge", { key: '7773cede1049f6253b1e7ccee48040e3989ffdc7', label: `${this.selectedRows.length}`, variant: "dark", tone: "outline", typography: "label" })), hAsync("slot", { key: '0fc8b9ddc57414a297eb68f83addbdd7e26466d3', name: "batch-action" }))))));
|
|
45258
46260
|
}
|
|
45259
46261
|
get host() { return getElement(this); }
|
|
45260
46262
|
static get watchers() { return {
|
|
@@ -45290,13 +46292,14 @@ const mdsTableBodyCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
45290
46292
|
|
|
45291
46293
|
/**
|
|
45292
46294
|
* @slot - Put `mds-table-row` element/s.
|
|
46295
|
+
* @parent mds-table
|
|
45293
46296
|
*/
|
|
45294
46297
|
class MdsTableBody {
|
|
45295
46298
|
constructor(hostRef) {
|
|
45296
46299
|
registerInstance(this, hostRef);
|
|
45297
46300
|
}
|
|
45298
46301
|
render() {
|
|
45299
|
-
return (hAsync(Host, { key: '
|
|
46302
|
+
return (hAsync(Host, { key: '89ac1010f1ef4b0555dbd138bda1f863f012cfa6', role: "rowgroup", "pref-animation": preferenceStore.state.animation }, hAsync("slot", { key: 'cf20e44a478a9cf387a9f986c52575a7ed2e854b' })));
|
|
45300
46303
|
}
|
|
45301
46304
|
static get style() { return mdsTableBodyCss(); }
|
|
45302
46305
|
static get cmpMeta() { return {
|
|
@@ -45316,6 +46319,7 @@ const mdsTableCellCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
45316
46319
|
|
|
45317
46320
|
/**
|
|
45318
46321
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
46322
|
+
* @parent mds-table-row mds-table-footer
|
|
45319
46323
|
*/
|
|
45320
46324
|
class MdsTableCell {
|
|
45321
46325
|
constructor(hostRef) {
|
|
@@ -45325,7 +46329,7 @@ class MdsTableCell {
|
|
|
45325
46329
|
setAttributeIfEmpty(this.host, 'role', 'cell');
|
|
45326
46330
|
}
|
|
45327
46331
|
render() {
|
|
45328
|
-
return (hAsync(Host, { key: '
|
|
46332
|
+
return (hAsync(Host, { key: 'a367bbd8d985a03897584b9cd8e8c7deac57e83c', "pref-animation": preferenceStore.state.animation }, hAsync("slot", { key: '1e10c2c1d7a582f3a33cdc6bb683200213a74462' })));
|
|
45329
46333
|
}
|
|
45330
46334
|
get host() { return getElement(this); }
|
|
45331
46335
|
static get style() { return mdsTableCellCss(); }
|
|
@@ -45345,6 +46349,7 @@ const mdsTableFooterCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
45345
46349
|
|
|
45346
46350
|
/**
|
|
45347
46351
|
* @slot - Add `mds-table-cell` element/s: the footer is itself a row, for totals and counts.
|
|
46352
|
+
* @parent mds-table
|
|
45348
46353
|
*/
|
|
45349
46354
|
class MdsTableFooter {
|
|
45350
46355
|
constructor(hostRef) {
|
|
@@ -45359,7 +46364,7 @@ class MdsTableFooter {
|
|
|
45359
46364
|
((_a = this.host.closest('mds-table')) === null || _a === void 0 ? void 0 : _a.querySelector('mds-table-row > [slot="action"]')) != null;
|
|
45360
46365
|
}
|
|
45361
46366
|
render() {
|
|
45362
|
-
return (hAsync(Host, { key: '
|
|
46367
|
+
return (hAsync(Host, { key: 'b1e7b64b615cb47dd6493d8aeb9079ca96d39f3c', role: "row", "pref-animation": preferenceStore.state.animation }, this.selectable && hAsync("mds-table-cell", { key: '64626de9b5311494ff53bed241fb83258e828754', class: "selection" }), hAsync("slot", { key: 'e82eae5b8efbaae70102ad5b68d5f2d5bb12171e' }), this.hasActions && hAsync("mds-table-cell", { key: '1d4ad0f3949dea28278498d1cc1dc9984d3ca395', class: "actions" })));
|
|
45363
46368
|
}
|
|
45364
46369
|
get host() { return getElement(this); }
|
|
45365
46370
|
static get style() { return mdsTableFooterCss(); }
|
|
@@ -45418,6 +46423,7 @@ const mdsTableHeaderCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
45418
46423
|
* @slot - Add `mds-table-header-cell` element/s, one per column: the header is itself the row of
|
|
45419
46424
|
* the column headings.
|
|
45420
46425
|
* @part actions - The heading of the Actions column, shown while rows have `slot="action"` content
|
|
46426
|
+
* @parent mds-table
|
|
45421
46427
|
*/
|
|
45422
46428
|
class MdsTableHeader {
|
|
45423
46429
|
constructor(hostRef) {
|
|
@@ -45477,7 +46483,7 @@ class MdsTableHeader {
|
|
|
45477
46483
|
this.hasActions = ((_a = this.table) === null || _a === void 0 ? void 0 : _a.querySelector('mds-table-row > [slot="action"]')) != null;
|
|
45478
46484
|
}
|
|
45479
46485
|
render() {
|
|
45480
|
-
return (hAsync(Host, { key: '
|
|
46486
|
+
return (hAsync(Host, { key: '74a98afa08a1bda1a14b19c635be8ddb98316091', role: "row", "pref-animation": preferenceStore.state.animation }, this.selectable && (hAsync("mds-table-cell", { key: '08b0e332bd3ae1413f186a467fe9065706d3343a', class: "selection", role: "columnheader" }, hAsync("div", { key: '6423e781b998f50f32c9019da4853635f8edaa5d', class: "checkbox-wrapper" }, hAsync("mds-input-switch", { key: 'd38d5eb464634468bc77203e7bb2a4f12cb0ef37', class: "checkbox", title: this.t.get(this.selectAll ? 'selectNoneRows' : 'selectAllRows'), type: "checkbox", onMdsInputSwitchChange: this.handleSelectAllChange, indeterminate: this.indeterminate })))), hAsync("slot", { key: 'e60a5fd8112abe29466ee5720f566c5fcf873f58' }), this.hasActions && (hAsync("mds-table-header-cell", { key: 'b5e480005d4f51e7e8aba79d304d725df8021a06', part: "actions", class: "actions", label: this.t.get('actions') }))));
|
|
45481
46487
|
}
|
|
45482
46488
|
get host() { return getElement(this); }
|
|
45483
46489
|
static get style() { return mdsTableHeaderCss(); }
|
|
@@ -45510,6 +46516,7 @@ const naturalOrder = new WeakMap();
|
|
|
45510
46516
|
/**
|
|
45511
46517
|
* @part action - The `mds-button` that sorts the column, with the `label`: only when `sortable`
|
|
45512
46518
|
* @part label - The `label` of a column that is not `sortable`
|
|
46519
|
+
* @parent mds-table-header
|
|
45513
46520
|
*/
|
|
45514
46521
|
class MdsTableHeaderCell {
|
|
45515
46522
|
constructor(hostRef) {
|
|
@@ -45664,7 +46671,7 @@ class MdsTableHeaderCell {
|
|
|
45664
46671
|
this.applyDirection();
|
|
45665
46672
|
}
|
|
45666
46673
|
render() {
|
|
45667
|
-
return (hAsync(Host, { key: '
|
|
46674
|
+
return (hAsync(Host, { key: 'ddc6a1adb04709d096fe1ac70c23d70759818997', role: "columnheader", "aria-sort": this.direction, "pref-animation": preferenceStore.state.animation }, this.sortable ? (hAsync("mds-button", { class: "action", icon: clsx(this.direction === 'none' && miBaselineUnfoldMore, this.direction === 'ascending' && miBaselineKeyboardArrowUp, this.direction === 'descending' && miBaselineKeyboardArrowDown), "icon-position": "right", onClick: this.sort, tone: "text", variant: "dark", size: "sm", part: "action", label: this.label })) : (hAsync("mds-text", { class: "label", typography: "label", part: "label" }, this.label))));
|
|
45668
46675
|
}
|
|
45669
46676
|
get element() { return getElement(this); }
|
|
45670
46677
|
static get watchers() { return {
|
|
@@ -45725,11 +46732,12 @@ const isSafari = () => {
|
|
|
45725
46732
|
|
|
45726
46733
|
const mdsTableRowCss = () => `@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-input-switch,mds-table-cell):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-table-row-color-hover:var(--mds-table-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));--mds-table-row-color-alt:var(--mds-table-color-alt,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));--mds-table-row-background-hover:var(--mds-table-background,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));--mds-table-row-background-alt:var(--mds-table-background-alt,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));--mds-table-row-actions-gap:var(--mds-table-actions-gap,calc(var(--spacing,.0025rem)*400));--mds-table-row-transition-duration:var(--duration-200,.2s);--private-table-row-transition-duration:var(--mds-table-row-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));color:var(--mds-table-row-color);display:table-row;position:relative;transition-duration:var(--private-table-row-transition-duration);transition-property:color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.selection-cell{vertical-align:middle}.checkbox-wrapper{display:flex}:host([interactive]:hover){--mds-table-row-actions-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))))}:host([selected]){--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))))}:host([sorted]){--mds-table-row-background:var(--mds-table-row-background-alt);--mds-table-row-color:var(--mds-table-row-color-alt)}:host([sorted][selected]){--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))))}.actions-view{display:flex;justify-content:end;pointer-events:none;position:absolute}.actions,.actions-view{align-items:center;inset:0}.actions{--mds-table-row-actions-background:var(--mds-table-row-background);background-color:var(--mds-table-row-actions-background);border-bottom-left-radius:calc(var(--magma-radius-lg,var(--radius-squircle-lg,28px)) + var(--mds-table-border-width)*2);border-top-left-radius:calc(var(--magma-radius-lg,var(--radius-squircle-lg,28px)) + var(--mds-table-border-width)*2);corner-shape:var(--magma-corner-shape,squircle);display:inline-flex;gap:var(--mds-table-row-actions-gap,calc(var(--spacing,.0025rem)*400));margin-right:100%;padding:calc(var(--mds-table-border-width)*2);padding-right:0;pointer-events:auto;position:sticky;transform:translate(100%);transition-duration:var(--duration-500,.5s);transition-property:transform,background-color,padding-right;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}:host(:hover) .actions{transform:translate(100%)}:host([overlay-actions]) .actions{padding-right:var(--mds-table-cell-padding);transform:translate(100%)}:host([overlay-actions]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background);transform:translate(0)}:host(:not([interactive]):hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))))}:host([selection]:not([interactive]):not([selected]):hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-alt)}.actions-cell--disable,.actions-cell--disable .actions{position:static!important}.actions-cell--disable .actions{margin-right:0!important;transform:translate(0)!important}.actions-cell--hidden{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-table-row-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-table-row-transition-duration:0s}}`;
|
|
45727
46734
|
|
|
46735
|
+
// TODO [bug, style]: on Safari actions menu is visually broken
|
|
45728
46736
|
/**
|
|
45729
46737
|
* @slot - Put `mds-table-cell` element/s.
|
|
45730
46738
|
* @slot action - Put `mds-button` element/s or other kind of actions as aside menu for the single row.
|
|
46739
|
+
* @parent mds-table-body
|
|
45731
46740
|
*/
|
|
45732
|
-
// TODO [bug, style]: on Safari actions menu is visually broken
|
|
45733
46741
|
class MdsTableRow {
|
|
45734
46742
|
constructor(hostRef) {
|
|
45735
46743
|
registerInstance(this, hostRef);
|
|
@@ -45796,9 +46804,9 @@ class MdsTableRow {
|
|
|
45796
46804
|
void ((_a = this.host.closest('mds-table')) === null || _a === void 0 ? void 0 : _a.updateSelection());
|
|
45797
46805
|
}
|
|
45798
46806
|
render() {
|
|
45799
|
-
return (hAsync(Host, { key: '
|
|
46807
|
+
return (hAsync(Host, { key: '6df92a80993f33bf13301e48ba9b04cc149d0255', role: "row", "pref-animation": preferenceStore.state.animation }, this.selectable && (hAsync("mds-table-cell", { key: 'cc1ffc04180a93ae6153fba71ef4c99493b98733', class: "selection-cell" }, hAsync("div", { key: 'e47f85dfd6ecd71d85d33753818f3e36758da907', class: "checkbox-wrapper" }, hAsync("mds-input-switch", { key: 'f520d840163cdde63bd38496cc1956cd49c8eaef', title: this.t.get(this.selected ? 'unselectRow' : 'selectRow'), type: "checkbox", checked: this.selected, onMdsInputSwitchChange: this.handleSelectionChange })))), hAsync("slot", { key: '8fb87875bd6a16f117b42ed1be108e537e9fe557' }), isSafari() && (hAsync("mds-table-cell", { key: '343cc76990a272127cf3da4813ce38394e181994', class: clsx('actions-cell', 'actions-cell--disable', !this.hasActions && 'actions-cell--hidden') }, hAsync("div", { key: '35cbad030c0a731287166c37639b1735c1c3d6c6', class: "actions" }, hAsync("slot", { key: 'ee7050fe21f91696492c642ee610f82b207abe60', name: "action", onSlotchange: this.onActionSlotChange })))), !isSafari() && (hAsync("mds-table-cell", { key: '68ef6363f309d1e9af2a0a7cd1ec849fcc0e6e04', class: clsx('actions-cell', !this.hasActions && 'actions-cell--hidden') }, hAsync("div", { key: 'bab31fd99b43ce28ca080d2ade58bf747f6eb556', class: "actions-sizer", style: Object.assign({ minHeight: '1px' }, (this.sizerWidth && { maxWidth: this.sizerWidth, minWidth: this.sizerWidth })) }), hAsync("div", { key: '2b83f798eab21122c69a3baef10683e922cf20dd', class: "actions-view" }, hAsync("div", { key: 'a2cecf7f27daac4a2204e61da9f440a93745ba08', class: "actions", ref: (el) => (this.actions = el), style: this.sizerWidth !== undefined
|
|
45800
46808
|
? { marginRight: `calc(${this.sizerWidth} + var(--mds-table-cell-padding))` }
|
|
45801
|
-
: undefined }, hAsync("slot", { key: '
|
|
46809
|
+
: undefined }, hAsync("slot", { key: 'd0e4738b292f8632c08df63c6a6f3c21df443597', name: "action", onSlotchange: this.onActionSlotChange })))))));
|
|
45802
46810
|
}
|
|
45803
46811
|
get host() { return getElement(this); }
|
|
45804
46812
|
static get watchers() { return {
|
|
@@ -46067,6 +47075,7 @@ const defaultAnimationSpeed = 0.5;
|
|
|
46067
47075
|
const defaultPlaceholderChar = ' ';
|
|
46068
47076
|
/**
|
|
46069
47077
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
47078
|
+
* @category content
|
|
46070
47079
|
*/
|
|
46071
47080
|
class MdsText {
|
|
46072
47081
|
constructor(hostRef) {
|
|
@@ -46150,7 +47159,7 @@ class MdsText {
|
|
|
46150
47159
|
}
|
|
46151
47160
|
render() {
|
|
46152
47161
|
var _a;
|
|
46153
|
-
return (hAsync(Host, { key: '
|
|
47162
|
+
return (hAsync(Host, { key: 'e6cc44a5067c9a4cf3a0881e24efd50f5d8dc56f', "pref-animation": preferenceStore.state.animation }, hAsync(this.tag, { key: '8b8766ca0b773e77dd44e0d2f6f1a860adfd7fd2', class: "text" }, ((_a = this.text) !== null && _a !== void 0 ? _a : '') === '' ? hAsync("slot", null) : this.text)));
|
|
46154
47163
|
}
|
|
46155
47164
|
get host() { return getElement(this); }
|
|
46156
47165
|
static get watchers() { return {
|
|
@@ -46206,6 +47215,7 @@ const mdsToastCss = () => `@layer reset,vendor,theme,base,components,utilities;@
|
|
|
46206
47215
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
46207
47216
|
* @slot icon - Insert an icon image, it can be `HTML elements` or `components`, it is **recommended** to add `mds-icon` element.
|
|
46208
47217
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
47218
|
+
* @category feedback
|
|
46209
47219
|
*/
|
|
46210
47220
|
class MdsToast {
|
|
46211
47221
|
constructor(hostRef) {
|
|
@@ -46396,7 +47406,7 @@ class MdsToast {
|
|
|
46396
47406
|
// focus. The host is the region and stays in the page, so the content that appears inside
|
|
46397
47407
|
// it is what a screen reader reads out. Inside an mds-toast-region the region is the live
|
|
46398
47408
|
// region, already in the page before any toast: a toast of its own would nest a second one
|
|
46399
|
-
return (hAsync(Host, { key: '
|
|
47409
|
+
return (hAsync(Host, { key: '78794225496c25083d6c1118325436bd6f78f920', role: this.stacked ? undefined : 'status', stacked: this.stacked, "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: 'e145d6042004ece44479227bda7b71af55231e69', class: clsx('dialog', this.position && `to-${this.position}`, this.visible && 'dialog--visible'), onFocusin: this.onFocusIn, onFocusout: this.onFocusOut, onPointerEnter: this.onPointerEnter, onPointerLeave: this.onPointerLeave }, hAsync("slot", { key: 'ea4143e5d1fa9098ac2b3924a65ab18e78344a21', name: "icon" }), this.hasText && (hAsync("mds-text", { key: 'e5ccbb014439671bedc2cd9af71b82934dbb6d04', typography: "caption" }, hAsync("slot", { key: '1d0a7c60aafce454fd5e9154a730e3232ac50c41' }))), hAsync("div", { key: '6d25fc9ce5d851c23737b92748735f29659ab585', class: clsx('actions', !this.hasActions && 'actions--hidden') }, hAsync("slot", { key: 'd8c3eadbd31c8512e5e4b1e8ceb442321bd2cb3d', name: "action", onSlotchange: this.onActionSlotChange })), this.deletable && (hAsync("mds-button", { key: 'f879cd5d161aa01092d03a265a5d0ad8484c7f8d', "aria-label": this.t.get('hide'), class: "hide", icon: ((_a = this.position) === null || _a === void 0 ? void 0 : _a.startsWith('top')) ? miBaselineArrowUpward : miBaselineArrowDownward, onClick: this.onCloseClick, size: "sm", tone: "text", type: "button", variant: this.closeButtonVariant() })))));
|
|
46400
47410
|
}
|
|
46401
47411
|
get hostElement() { return getElement(this); }
|
|
46402
47412
|
static get watchers() { return {
|
|
@@ -46438,6 +47448,7 @@ const hasDuration = (toast) => {
|
|
|
46438
47448
|
};
|
|
46439
47449
|
/**
|
|
46440
47450
|
* @slot - Add `mds-toast` elements, one per message: the region lines up the visible ones at its edge.
|
|
47451
|
+
* @category feedback
|
|
46441
47452
|
*/
|
|
46442
47453
|
class MdsToastRegion {
|
|
46443
47454
|
constructor(hostRef) {
|
|
@@ -46530,7 +47541,7 @@ class MdsToastRegion {
|
|
|
46530
47541
|
render() {
|
|
46531
47542
|
// the live region, in the page before any message: a toast added or shown inside it is
|
|
46532
47543
|
// announced. Not atomic, or every change would read out all the toasts again
|
|
46533
|
-
return (hAsync(Host, { key: '
|
|
47544
|
+
return (hAsync(Host, { key: '50e748d8c78ea73f1607d2b46cf56a79d2918fd1', role: "status", "aria-live": "polite", "aria-atomic": "false" }, hAsync("slot", { key: '936b87f0836896888f22c46ed28337b96f634fcc' })));
|
|
46534
47545
|
}
|
|
46535
47546
|
get host() { return getElement(this); }
|
|
46536
47547
|
static get watchers() { return {
|
|
@@ -46560,11 +47571,12 @@ var arrowSvg = `<svg width="15" height="9" viewBox="0 0 15 9" xmlns="http://www.
|
|
|
46560
47571
|
</svg>
|
|
46561
47572
|
`;
|
|
46562
47573
|
|
|
46563
|
-
const mdsTooltipCss = () => `@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tooltip-arrow-background:var(--mds-tooltip-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-tooltip-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-tooltip-delay:var(--duration-1000,1s);--mds-tooltip-drop-shadow:drop-shadow(0 calc(var(--spacing,.0025rem)*250) calc(var(--spacing,.0025rem)*200)
|
|
47574
|
+
const mdsTooltipCss = () => `@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tooltip-arrow-background:var(--mds-tooltip-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-tooltip-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-tooltip-delay:var(--duration-1000,1s);--mds-tooltip-drop-shadow:drop-shadow(0 calc(var(--spacing,.0025rem)*250) calc(var(--spacing,.0025rem)*200) rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.04)) drop-shadow(0 calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*75) rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.1)) drop-shadow(0 0 1px rgb(var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5))/.1));--mds-tooltip-duration:var(--duration-500,.5s);--private-tooltip-duration:var(--mds-tooltip-duration,var(--duration-500,.5s));--mds-tooltip-ease:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-tooltip-dot-padding:calc(var(--spacing,.0025rem)*100);--mds-tooltip-transform-from:scale(.9) translateY(calc(var(--spacing,.0025rem)*400*-1));--mds-tooltip-transform-to:scale(1) translate(0,0);--mds-tooltip-z-index:var(--magma-tooltip-z-index,6000);background-color:var(--mds-tooltip-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--magma-radius-3xs,var(--radius-squircle-3xs,6px));box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);display:grid;filter:var(--mds-tooltip-drop-shadow);gap:calc(var(--spacing,.0025rem)*400);max-width:calc(var(--spacing,.0025rem)*6400);opacity:0;padding-block:calc(var(--spacing,.0025rem)*100);padding-inline:calc(var(--spacing,.0025rem)*200);pointer-events:none;position:fixed;transform:var(--mds-tooltip-transform-from,scale(.9) translateY(calc(var(--spacing,.0025rem)*400*-1)));transition-delay:0s;transition-duration:var(--private-tooltip-duration);transition-property:opacity,transform;transition-timing-function:var(--mds-tooltip-ease);width:fit-content;z-index:var(--mds-tooltip-z-index,var(--magma-tooltip-z-index,6000))}:host([strategy=absolute]){position:absolute}:host([strategy=fixed]){position:fixed}:host([visible]:not([visible=false])){opacity:1;pointer-events:auto;transform:var(--mds-tooltip-transform-to,scale(1) translate(0,0));transition-delay:var(--mds-tooltip-delay,var(--duration-1000,1s))}.text{display:inline-flex;padding:var(--mds-tooltip-dot-padding,calc(var(--spacing,.0025rem)*100))}.arrow{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));display:flex;fill:var(--mds-tooltip-arrow-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));pointer-events:none;position:fixed;top:calc(var(--spacing,.0025rem)*-225);transition-duration:var(--duration-300,.3s);transition-property:fill;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));z-index:-1}::slotted(*){position:relative;z-index:10}: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-tooltip-duration:0s}:host([pref-contrast=more]){--mds-tooltip-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])[pref-contrast=more]){--mds-tooltip-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.075)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45))}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-tooltip-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tooltip-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}:host([pref-contrast=system][pref-mode=dark]:not([pref-theme-scheme=light])){--mds-tooltip-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.075)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45))}}@media (prefers-color-scheme:dark){:host([pref-contrast=more][pref-mode=system]:not([pref-theme-scheme=light])){--mds-tooltip-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.075)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45))}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){:host([pref-contrast=system][pref-mode=system]:not([pref-theme-scheme=light])){--mds-tooltip-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.075)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45))}}`;
|
|
46564
47575
|
|
|
46565
47576
|
/**
|
|
46566
47577
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
46567
47578
|
* @part text - The text of the tooltip, around the default slot
|
|
47579
|
+
* @category overlays
|
|
46568
47580
|
*/
|
|
46569
47581
|
class MdsTooltip {
|
|
46570
47582
|
constructor(hostRef) {
|
|
@@ -46740,7 +47752,7 @@ class MdsTooltip {
|
|
|
46740
47752
|
(_a = this.floatingController) === null || _a === void 0 ? void 0 : _a.dismiss();
|
|
46741
47753
|
}
|
|
46742
47754
|
render() {
|
|
46743
|
-
return (hAsync(Host, { key: '
|
|
47755
|
+
return (hAsync(Host, { key: 'd486ba2a2bd7c24c10346fbc3f84e93dc140df73', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: 'debcfb1f1a7ab634194ecb41c0ba72e48ca015be', class: "arrow", innerHTML: arrowSvg }), hAsync("mds-text", { key: 'e3d299de67c570d426cc22e80d84b78e3bdae77b', class: "text", typography: this.typography, part: "text" }, hAsync("slot", { key: 'c2306fe37212535579e3facc340654bfe68ad183' }))));
|
|
46744
47756
|
}
|
|
46745
47757
|
get host() { return getElement(this); }
|
|
46746
47758
|
static get watchers() { return {
|
|
@@ -46807,6 +47819,7 @@ const mdsTreeCss = () => `@layer reset,vendor,theme,base,components,utilities;@l
|
|
|
46807
47819
|
|
|
46808
47820
|
/**
|
|
46809
47821
|
* @slot - Add `mds-tree-item` element/s.
|
|
47822
|
+
* @category navigation
|
|
46810
47823
|
*/
|
|
46811
47824
|
class MdsTree {
|
|
46812
47825
|
constructor(hostRef) {
|
|
@@ -46930,7 +47943,7 @@ class MdsTree {
|
|
|
46930
47943
|
// a list of lists: each item is an entry, and the items of an open branch are a list
|
|
46931
47944
|
// inside it, so a screen reader tells the level and the size of every branch. Not a
|
|
46932
47945
|
// role="tree", which promises the arrow keys and leaves no room for the actions of an item
|
|
46933
|
-
hAsync(Host, { key: '
|
|
47946
|
+
hAsync(Host, { key: '7920a4f8886d7e202ab1e60d7ab09502c3d0f624', "aria-label": ((_a = this.label) !== null && _a !== void 0 ? _a : '') !== '' ? this.label : undefined, role: "list" }, hAsync("slot", { key: '15331d89c02ccc995511faf43259e2bcaf34faae', onSlotchange: this.updateElements })));
|
|
46934
47947
|
}
|
|
46935
47948
|
get host() { return getElement(this); }
|
|
46936
47949
|
static get watchers() { return {
|
|
@@ -47014,6 +48027,7 @@ const mdsTreeItemCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
47014
48027
|
* @slot action - Add `mds-button`, `mds-icon` or other types component and HTML element/s.
|
|
47015
48028
|
* @part actions-container - Selects the wrapper of the container of the actions.
|
|
47016
48029
|
* @part actions-list - Selects the container of the actions.
|
|
48030
|
+
* @parent mds-tree mds-tree-item
|
|
47017
48031
|
*/
|
|
47018
48032
|
class MdsTreeItem {
|
|
47019
48033
|
constructor(hostRef) {
|
|
@@ -47138,7 +48152,7 @@ class MdsTreeItem {
|
|
|
47138
48152
|
this.childrenElement.removeEventListener('transitionend', this.checkChildrenTransitionEnd);
|
|
47139
48153
|
}
|
|
47140
48154
|
render() {
|
|
47141
|
-
return (hAsync(Host, { key: '
|
|
48155
|
+
return (hAsync(Host, { key: '7e837f640c6289d315d6d844bbee4d11d58671ec', "resolved-actions": this.resolvedActions, role: "listitem" }, hAsync("div", { key: 'c464aaa7207603c877319650b48622b955da828a', class: clsx('header', this.hasChildren && 'header--has-children') }, hAsync("div", { key: 'f59fa182fa14e0c3cc01e5393d55846f7dde873b', class: "tree-node" }, hAsync("div", { key: '18b9aa39759b09f42e412170243aad8e40858e8b', class: "tree-branch" }), hAsync("div", { key: 'cdcd877651c9269415d86bf03199c764b26d904f', class: "tree-dot" })), hAsync("div", { key: '371fdc1a69e36f3b12f07d46c7a38929b714d4fb', class: "toggle-icon" }, hAsync("mds-button", { key: 'b25b644ea59b47d96ccdba12cfc32caffd9ee90d', "aria-expanded": this.expandedState(), await: this.await, onClick: this.onClick, icon: !this.await ? this.currentToggleIcon : undefined, title: this.t.get(this.expanded ? 'collapse' : 'expand', { label: this.label }), variant: "dark", tone: "text", size: "sm" })), hAsync("div", { key: 'e288eb3f51cf7a02a621780c1b0d6042d4ffc0e7', class: "title" }, hAsync("mds-button", { key: '0ed345429c2e405974fe3b4762515231e05be095', "aria-expanded": this.expandedState(), class: clsx('label-action', this.await && 'label-action--await'), disabled: this.await, icon: this.icon, onClick: this.onClick, variant: "dark", tone: "text", truncate: this.truncate, label: this.label }), hAsync("div", { key: '3088e39878133106d2ec844b377568ddc1c926c8', class: clsx('actions-container', this.hasActions && 'actions-container--has-actions'), part: "actions-container" }, hAsync("div", { key: '5422455a590d32caff048924bbdf78f4d3538d21', class: "actions", part: "actions-list" }, hAsync("slot", { key: 'f01ddbd42f2ec0688fa573b0984770b363bcba23', name: "action", onSlotchange: this.onActionSlotChange }))))), hAsync("div", { key: '2b94bdbec908886d670dcf65d9626c9815d5f2dd', class: clsx('children', this.hasChildren && 'children--has-children', this.expanded && 'children--expanded'), role: this.hasChildren ? 'list' : undefined }, hAsync("slot", { key: 'ee6bd6b31d37a934f75b235c6c652eb53da54c90', onSlotchange: this.updateHasChildren }))));
|
|
47142
48156
|
}
|
|
47143
48157
|
get host() { return getElement(this); }
|
|
47144
48158
|
static get watchers() { return {
|
|
@@ -47221,6 +48235,9 @@ var localeIt$1 = {
|
|
|
47221
48235
|
|
|
47222
48236
|
const mdsUrlViewCss = () => `@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-url-view-transition-duration:var(--duration-200,.2s);--private-url-view-transition-duration:var(--mds-url-view-transition-duration);--mds-modal-custom-window-distance:0px;--mds-url-view-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-url-view-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-url-view-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));--mds-url-view-header-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-url-view-shadow:var(--shadow-lg,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a);box-sizing:border-box;display:flex;flex-direction:column;height:100vh;margin:0;padding:calc(var(--spacing,.0025rem)*400)}.window{border-radius:var(--mds-url-view-radius,var(--magma-radius-md,var(--radius-squircle-md,20px)));box-shadow:var(--mds-url-view-shadow);corner-shape:var(--magma-corner-shape,squircle);flex-direction:column;flex-grow:1;overflow:hidden;width:100%}.header,.window{--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:var(--mds-url-view-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));display:flex;transition-duration:var(--private-url-view-transition-duration);transition-property:background-color,box-shadow;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.header{align-items:center;box-shadow:var(--mds-url-view-header-shadow);color:var(--mds-url-view-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));flex-shrink:0;gap:calc(var(--spacing,.0025rem)*200);justify-content:space-between;padding:calc(var(--spacing,.0025rem)*200);position:relative}.title{flex-grow:1;min-width:0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.window-icon{flex-shrink:0}.button-close,.window-icon{fill:var(--mds-url-view-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))))}.button-close{cursor:pointer}.iframe{border:0;flex-grow:1;margin:0;padding:0;width:100%}: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-url-view-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-url-view-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){--mds-url-view-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-url-view-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-url-view-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-url-view-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}`;
|
|
47223
48237
|
|
|
48238
|
+
/**
|
|
48239
|
+
* @category content
|
|
48240
|
+
*/
|
|
47224
48241
|
class MdsUrlView {
|
|
47225
48242
|
constructor(hostRef) {
|
|
47226
48243
|
registerInstance(this, hostRef);
|
|
@@ -47266,7 +48283,7 @@ class MdsUrlView {
|
|
|
47266
48283
|
}
|
|
47267
48284
|
render() {
|
|
47268
48285
|
var _a, _b;
|
|
47269
|
-
return (hAsync(Host, { key: '
|
|
48286
|
+
return (hAsync(Host, { key: 'f497b6a7e4df4c7b115b4747739a192ae6b68893', "aria-label": this.t.get('previewURL', { url: this.urlDomain(this.src) }), "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: 'b5892feb57e594a85d6a9c9425c12dbdde6ae0b2', class: "window" }, hAsync("div", { key: 'e0772389445111dad40257643b3b237d1eb543e8', class: "header" }, hAsync("mds-icon", { key: '1fa38f7d8fb0d91c2421e97bdb7b7b33eac64431', class: "window-icon", name: (_a = this.icon) !== null && _a !== void 0 ? _a : miBaselineExplore }), hAsync("mds-text", { key: 'dfb205c5fa51acaa8fafc23590454e5281963583', class: "title", typography: "caption" }, (_b = this.label) !== null && _b !== void 0 ? _b : this.urlDomain(this.src)), hAsync("mds-button", { key: '4142540c6187371e097ebad1d6283007169e453a', title: this.t.get('close'), class: "action-close", variant: "dark", tone: "text", icon: miBaselineClose, onClick: this.closeUrlView })), hAsync("iframe", { key: '925573ab78de18a939e10ca965f55a888fbd228d', class: "iframe", "aria-label": this.t.get('iframeURL', { url: this.urlDomain(this.src) }), src: this.src, loading: this.loading }))));
|
|
47270
48287
|
}
|
|
47271
48288
|
get host() { return getElement(this); }
|
|
47272
48289
|
static get style() { return mdsUrlViewCss(); }
|
|
@@ -47347,6 +48364,7 @@ const mdsUsageCss = () => `@layer reset,vendor,theme,base,components,utilities;@
|
|
|
47347
48364
|
* @part header - The header that holds the `icon` and the `label`
|
|
47348
48365
|
* @part icon - The icon of the header, the one of `variant` unless `icon` is set
|
|
47349
48366
|
* @part label - The label of the header, the name of `variant` unless `alias` is set
|
|
48367
|
+
* @category content
|
|
47350
48368
|
*/
|
|
47351
48369
|
class MdsUsage {
|
|
47352
48370
|
constructor(hostRef) {
|
|
@@ -47366,7 +48384,7 @@ class MdsUsage {
|
|
|
47366
48384
|
var _a, _b;
|
|
47367
48385
|
// an unknown variant gets the info icon, as it gets the info styling
|
|
47368
48386
|
const icon = this.icon || ((_a = usageVariantIcon[this.variant]) !== null && _a !== void 0 ? _a : usageVariantIcon.info);
|
|
47369
|
-
return (hAsync(Host, { key: '
|
|
48387
|
+
return (hAsync(Host, { key: '424f6a5f3ca91da059b4b012fb58fe660169ac2e', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: '2a5047741b2a57c14b85e68938b372f378e41ee1', class: "header", part: "header" }, hAsync("mds-icon", { key: '17108d464a3333c140b6677f48d7b787bdc99931', name: icon, part: "icon" }), hAsync("mds-text", { key: 'b3e7369d0e3233b62816899fe9db3aea2b0cc0c5', typography: "label", class: "label", part: "label" }, (_b = this.alias) !== null && _b !== void 0 ? _b : this.t.get(this.variant))), hAsync("div", { key: '143ab9e4a0c53af33175dc59e4d280db79e119c3', class: "content" }, hAsync("slot", { key: 'c56eee23c50a89b4a5828a3a4f1ce5db19f50e28' }))));
|
|
47370
48388
|
}
|
|
47371
48389
|
static get style() { return mdsUsageCss(); }
|
|
47372
48390
|
static get cmpMeta() { return {
|
|
@@ -47388,6 +48406,7 @@ const mdsVideoWallCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
47388
48406
|
/**
|
|
47389
48407
|
* @slot - Write browser support missing message here.
|
|
47390
48408
|
* @slot content - Add video content overlay here, add `text string`, `HTML elements` or `components` to this slot.
|
|
48409
|
+
* @category content
|
|
47391
48410
|
*/
|
|
47392
48411
|
class MdsVideoWall {
|
|
47393
48412
|
constructor(hostRef) {
|
|
@@ -47420,7 +48439,7 @@ class MdsVideoWall {
|
|
|
47420
48439
|
this.hasContent = hasChildWithSlot(this.hostElement, 'content');
|
|
47421
48440
|
}
|
|
47422
48441
|
render() {
|
|
47423
|
-
return (hAsync(Host, { key: '
|
|
48442
|
+
return (hAsync(Host, { key: 'c0da3d21113c8266701aaa74db5fff37abeb7cc7', "pref-animation": preferenceStore.state.animation }, this.noise !== 'none' && (hAsync("div", { key: '03f11d2b422b8dc1863f69295d60d9b594d22c1d', "aria-hidden": "true", class: clsx('noise', `noise--${this.noise}`) })), hAsync("video", { key: '281ed27bd53e1e1ec3a0dde306b4068fa1ae20f6', "aria-hidden": "true", autoplay: this.autoplay, loop: this.loop, muted: this.muted, poster: this.poster, preload: this.preload, src: this.src }, hAsync("slot", { key: '7337e6df6581832c428d308b0e92dd7d606774c5' })), hAsync("div", { key: '15581d064aa13179d371257ce7b5a32cb43d5ec1', class: clsx('content', !this.hasContent && 'content--hidden') }, hAsync("slot", { key: 'd1bc5a9314be1aaa99caca155297c625c0a2a0ee', name: "content", onSlotchange: this.onContentSlotChange }))));
|
|
47424
48443
|
}
|
|
47425
48444
|
get hostElement() { return getElement(this); }
|
|
47426
48445
|
static get style() { return mdsVideoWallCss(); }
|
|
@@ -47451,13 +48470,14 @@ const mdsZeroCss = () => `@layer reset,vendor,theme,base,components,utilities;@l
|
|
|
47451
48470
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
47452
48471
|
* @part contents - Selects the wrapper of the elements with attribute `slot="content"`.
|
|
47453
48472
|
* @part actions - Selects the wrapper of the elements with attribute `slot="action"`.
|
|
48473
|
+
* @category feedback
|
|
47454
48474
|
*/
|
|
47455
48475
|
class MdsZero {
|
|
47456
48476
|
constructor(hostRef) {
|
|
47457
48477
|
registerInstance(this, hostRef);
|
|
47458
48478
|
}
|
|
47459
48479
|
render() {
|
|
47460
|
-
return (hAsync(Host, { key: '
|
|
48480
|
+
return (hAsync(Host, { key: '5531556486c619a151b45dd2fb287c18c3c8fd04', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("slot", { key: '79400e8238fdad0b0b74d585c815f0bfbc15c402' }), hAsync("div", { key: 'c7badb1be12491cd6ecc1d5c3d8374742babbe64', class: "contents", part: "contents" }, hAsync("slot", { key: '7f7b631e3f6ff6cdb065c11dc4962590c5e3a0fd', name: "content" })), hAsync("footer", { key: '371a4c21401b89ee9bbc67828457d0eaa6f34940', class: "actions", part: "actions" }, hAsync("slot", { key: '008d5b2087bb9a601129711f230ce70968982018', name: "action" }))));
|
|
47461
48481
|
}
|
|
47462
48482
|
static get style() { return mdsZeroCss(); }
|
|
47463
48483
|
static get cmpMeta() { return {
|
|
@@ -47483,6 +48503,7 @@ registerComponents([
|
|
|
47483
48503
|
MdsBanner,
|
|
47484
48504
|
MdsBenchmarkBar,
|
|
47485
48505
|
MdsBibliography,
|
|
48506
|
+
MdsBook,
|
|
47486
48507
|
MdsBreadcrumb,
|
|
47487
48508
|
MdsBreadcrumbItem,
|
|
47488
48509
|
MdsButton,
|