@maggioli-design-system/magma 2.5.1 → 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 +45 -0
- package/agents/assets.md +1 -1
- package/agents/color.md +22 -4
- package/agents/components.md +164 -92
- package/agents/conventions.md +17 -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/loader.cjs.js +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-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 +3 -3
- 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 +1 -1
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +6 -6
- package/dist/cjs/mds-calendar_2.cjs.entry.js +6 -6
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +1 -1
- package/dist/cjs/mds-details.cjs.entry.js +1 -1
- package/dist/cjs/mds-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/mds-emoji.cjs.entry.js +1 -1
- package/dist/cjs/mds-entity.cjs.entry.js +1 -1
- package/dist/cjs/mds-file-preview.cjs.entry.js +2 -2
- package/dist/cjs/mds-file.cjs.entry.js +1 -1
- package/dist/cjs/mds-filter-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-filter.cjs.entry.js +1 -1
- package/dist/cjs/mds-header-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/mds-hr.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-date.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-otp.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-select.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-upload.cjs.entry.js +5 -5
- package/dist/cjs/mds-input.cjs.entry.js +2 -2
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +2 -2
- package/dist/cjs/mds-keyboard.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/mds-link.cjs.entry.js +3 -3
- package/dist/cjs/mds-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-list.cjs.entry.js +1 -1
- package/dist/cjs/mds-mention.cjs.entry.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +3 -3
- package/dist/cjs/mds-note.cjs.entry.js +1 -1
- package/dist/cjs/mds-notification.cjs.entry.js +1 -1
- package/dist/cjs/mds-paginator-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-paginator.cjs.entry.js +1 -1
- package/dist/cjs/mds-policy-ai.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-animation.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-language.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-mode.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-theme.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-features.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-progress_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-push-notification.cjs.entry.js +2 -2
- package/dist/cjs/mds-quote.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu.cjs.entry.js +1 -1
- package/dist/cjs/mds-separator.cjs.entry.js +1 -1
- package/dist/cjs/mds-status-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab_2.cjs.entry.js +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 +1 -1
- package/dist/cjs/mds-table-row.cjs.entry.js +2 -2
- package/dist/cjs/mds-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-text.cjs.entry.js +1 -1
- package/dist/cjs/mds-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/mds-toast.cjs.entry.js +1 -1
- package/dist/cjs/mds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/mds-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-tree.cjs.entry.js +1 -1
- package/dist/cjs/mds-url-view.cjs.entry.js +1 -1
- package/dist/cjs/mds-usage.cjs.entry.js +1 -1
- package/dist/cjs/mds-video-wall.cjs.entry.js +1 -1
- package/dist/cjs/mds-zero.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- 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 -4
- 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 +3 -9
- package/dist/collection/components/mds-input/antipattern.md +1 -1
- package/dist/collection/components/mds-input/documentation.json +39 -19
- package/dist/collection/components/mds-input/mds-input.css +8 -8
- package/dist/collection/components/mds-input/mds-input.js +3 -2
- 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.js +2 -1
- package/dist/collection/components/mds-input-range/pattern.md +2 -12
- package/dist/collection/components/mds-input-select/AGENTS.md +3 -7
- package/dist/collection/components/mds-input-select/antipattern.md +1 -1
- package/dist/collection/components/mds-input-select/documentation.json +25 -12
- package/dist/collection/components/mds-input-select/mds-input-select.css +3 -3
- package/dist/collection/components/mds-input-select/mds-input-select.js +3 -2
- 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 +3 -18
- package/dist/collection/components/mds-keyboard/antipattern.md +3 -3
- package/dist/collection/components/mds-keyboard/documentation.json +47 -23
- package/dist/collection/components/mds-keyboard/mds-keyboard.css +17 -5
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +2 -1
- 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 +1 -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 +2 -1
- 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-D0A8gS-P.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-CJYY4da7.js → p-BU1O2DcC.js} +1 -1
- package/dist/components/{p-CaROqeeK.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-DucY18_e.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-DFD4E9zJ.js → p-CYK2Xr_v.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-5lLueiFt.js → p-DJ401QTd.js} +1 -1
- package/dist/components/{p-BbK4qeM7.js → p-DMyL4CYh.js} +1 -1
- package/dist/components/{p-Cu5nEwMu.js → p-DbVGGhs_.js} +1 -1
- package/dist/components/{p-C4XdTZQ-.js → p-DccBbfK8.js} +1 -1
- package/dist/components/{p-BbgQG1UL.js → p-H0YXZ5fD.js} +2 -2
- package/dist/components/{p-yNPPTJ7i.js → p-IaXq1Xsc.js} +1 -1
- package/dist/components/{p-ClPv-Ljc.js → p-M8dGB4KH.js} +1 -1
- package/dist/components/{p-CPvuXO7s.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-DkYDXDkD.js → p-kZBPId_x.js} +1 -1
- package/dist/components/{p-BO-jHv-F.js → p-qnCVkeGX.js} +1 -1
- package/dist/documentation.json +2613 -918
- package/dist/esm/index-CvLLN-QH.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm/mds-accordion-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 +3 -3
- 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 +1 -1
- package/dist/esm/mds-button-dropdown.entry.js +1 -1
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +6 -6
- package/dist/esm/mds-calendar_2.entry.js +6 -6
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +1 -1
- package/dist/esm/mds-details.entry.js +1 -1
- package/dist/esm/mds-dropdown.entry.js +2 -2
- package/dist/esm/mds-emoji.entry.js +1 -1
- package/dist/esm/mds-entity.entry.js +1 -1
- package/dist/esm/mds-file-preview.entry.js +2 -2
- package/dist/esm/mds-file.entry.js +1 -1
- package/dist/esm/mds-filter-item.entry.js +1 -1
- package/dist/esm/mds-filter.entry.js +1 -1
- package/dist/esm/mds-header-bar.entry.js +1 -1
- package/dist/esm/mds-header.entry.js +2 -2
- package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm/mds-hr.entry.js +1 -1
- package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +2 -2
- package/dist/esm/mds-input-date.entry.js +2 -2
- package/dist/esm/mds-input-field.entry.js +1 -1
- package/dist/esm/mds-input-otp.entry.js +1 -1
- package/dist/esm/mds-input-range.entry.js +1 -1
- package/dist/esm/mds-input-select.entry.js +2 -2
- package/dist/esm/mds-input-switch_2.entry.js +2 -2
- package/dist/esm/mds-input-tip_2.entry.js +3 -3
- package/dist/esm/mds-input-upload.entry.js +5 -5
- package/dist/esm/mds-input.entry.js +2 -2
- package/dist/esm/mds-keyboard-key.entry.js +2 -2
- package/dist/esm/mds-keyboard.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/mds-link.entry.js +3 -3
- package/dist/esm/mds-list-item.entry.js +1 -1
- package/dist/esm/mds-list.entry.js +1 -1
- package/dist/esm/mds-mention.entry.js +1 -1
- package/dist/esm/mds-modal.entry.js +3 -3
- package/dist/esm/mds-note.entry.js +1 -1
- package/dist/esm/mds-notification.entry.js +1 -1
- package/dist/esm/mds-paginator-item.entry.js +1 -1
- package/dist/esm/mds-paginator.entry.js +1 -1
- package/dist/esm/mds-policy-ai.entry.js +1 -1
- package/dist/esm/mds-pref-animation.entry.js +1 -1
- package/dist/esm/mds-pref-consumption.entry.js +1 -1
- package/dist/esm/mds-pref-contrast.entry.js +1 -1
- package/dist/esm/mds-pref-language-item.entry.js +1 -1
- package/dist/esm/mds-pref-language.entry.js +1 -1
- package/dist/esm/mds-pref-mode.entry.js +1 -1
- package/dist/esm/mds-pref-theme-item.entry.js +1 -1
- package/dist/esm/mds-pref-theme.entry.js +1 -1
- package/dist/esm/mds-pref.entry.js +1 -1
- package/dist/esm/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm/mds-price-table-features.entry.js +1 -1
- package/dist/esm/mds-price-table-header.entry.js +1 -1
- package/dist/esm/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm/mds-price-table-list.entry.js +1 -1
- package/dist/esm/mds-price-table.entry.js +1 -1
- package/dist/esm/mds-progress_2.entry.js +2 -2
- package/dist/esm/mds-push-notification-item.entry.js +2 -2
- package/dist/esm/mds-push-notification.entry.js +2 -2
- package/dist/esm/mds-quote.entry.js +1 -1
- package/dist/esm/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm/mds-radial-menu.entry.js +1 -1
- package/dist/esm/mds-separator.entry.js +1 -1
- package/dist/esm/mds-status-bar.entry.js +1 -1
- package/dist/esm/mds-stepper-bar-item.entry.js +1 -1
- package/dist/esm/mds-stepper-bar.entry.js +1 -1
- package/dist/esm/mds-tab-bar-item.entry.js +1 -1
- package/dist/esm/mds-tab-bar.entry.js +1 -1
- package/dist/esm/mds-tab_2.entry.js +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 +1 -1
- package/dist/esm/mds-table-row.entry.js +2 -2
- package/dist/esm/mds-table.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/mds-tooltip.entry.js +2 -2
- package/dist/esm/mds-tree-item.entry.js +1 -1
- package/dist/esm/mds-tree.entry.js +1 -1
- package/dist/esm/mds-url-view.entry.js +1 -1
- package/dist/esm/mds-usage.entry.js +1 -1
- package/dist/esm/mds-video-wall.entry.js +1 -1
- package/dist/esm/mds-zero.entry.js +1 -1
- package/dist/esm-es5/index-CvLLN-QH.js +8 -6
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.js +2 -2
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +2 -2
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +5 -5
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +3 -3
- package/dist/esm-es5/mds-benchmark-bar.entry.js +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 +1 -1
- 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 +3 -3
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +1 -1
- package/dist/esm-es5/mds-details.entry.js +1 -1
- package/dist/esm-es5/mds-dropdown.entry.js +1 -1
- package/dist/esm-es5/mds-emoji.entry.js +1 -1
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +3 -3
- package/dist/esm-es5/mds-file.entry.js +1 -1
- package/dist/esm-es5/mds-filter-item.entry.js +1 -1
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-header-bar.entry.js +1 -1
- package/dist/esm-es5/mds-header.entry.js +2 -2
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +2 -2
- package/dist/esm-es5/mds-input-date.entry.js +2 -2
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-otp.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-select.entry.js +1 -1
- package/dist/esm-es5/mds-input-switch_2.entry.js +1 -1
- package/dist/esm-es5/mds-input-tip_2.entry.js +2 -2
- package/dist/esm-es5/mds-input-upload.entry.js +1 -1
- package/dist/esm-es5/mds-input.entry.js +1 -1
- package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
- package/dist/esm-es5/mds-keyboard.entry.js +2 -2
- package/dist/esm-es5/mds-kpi-item.entry.js +3 -3
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +1 -1
- package/dist/esm-es5/mds-link.entry.js +1 -1
- package/dist/esm-es5/mds-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +2 -2
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-note.entry.js +1 -1
- package/dist/esm-es5/mds-notification.entry.js +1 -1
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +3 -3
- package/dist/esm-es5/mds-policy-ai.entry.js +1 -1
- package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
- package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
- package/dist/esm-es5/mds-pref-contrast.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language-item.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language.entry.js +1 -1
- package/dist/esm-es5/mds-pref-mode.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme-item.entry.js +3 -3
- package/dist/esm-es5/mds-pref-theme.entry.js +6 -6
- package/dist/esm-es5/mds-pref.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification.entry.js +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 +1 -1
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar.entry.js +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 +1 -1
- 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 +1 -1
- package/dist/esm-es5/mds-tooltip.entry.js +2 -2
- package/dist/esm-es5/mds-tree-item.entry.js +1 -1
- package/dist/esm-es5/mds-tree.entry.js +1 -1
- package/dist/esm-es5/mds-url-view.entry.js +1 -1
- package/dist/esm-es5/mds-usage.entry.js +1 -1
- package/dist/esm-es5/mds-video-wall.entry.js +1 -1
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/hydrate/index.js +1044 -156
- package/dist/hydrate/index.mjs +1044 -156
- 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-a8a0a9ba.entry.js → p-00aa9a51.entry.js} +1 -1
- package/dist/magma-components/{p-62e94d78.system.entry.js → p-00acb2e1.system.entry.js} +2 -2
- 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-7b300282.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-624a3909.system.entry.js → p-0babf674.system.entry.js} +3 -3
- package/dist/magma-components/{p-b01118cc.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-d608b79c.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-770b3c4b.entry.js → p-14b13850.entry.js} +1 -1
- package/dist/magma-components/{p-b5cc09c7.system.entry.js → p-154ba354.system.entry.js} +2 -2
- package/dist/magma-components/{p-f5a33058.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-c03fc4fe.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-f0285a1e.system.entry.js → p-1b415625.system.entry.js} +3 -3
- package/dist/magma-components/{p-3e18b181.system.entry.js → p-1b67b149.system.entry.js} +1 -1
- package/dist/magma-components/p-1c00d0f7.entry.js +1 -0
- package/dist/magma-components/{p-79f543fc.system.entry.js → p-1cd75adf.system.entry.js} +3 -3
- package/dist/magma-components/{p-8f47eb63.system.entry.js → p-1d8485de.system.entry.js} +4 -4
- package/dist/magma-components/{p-168d5fad.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-3c669cfb.entry.js → p-354a5b47.entry.js} +1 -1
- package/dist/magma-components/{p-071f5c7b.system.entry.js → p-35c6341a.system.entry.js} +3 -3
- package/dist/magma-components/{p-f09b08f9.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-6af00399.system.entry.js → p-386bb24e.system.entry.js} +3 -3
- package/dist/magma-components/{p-1e18fcc5.system.entry.js → p-39a2df98.system.entry.js} +1 -1
- package/dist/magma-components/{p-2752b45a.system.entry.js → p-3a7c4314.system.entry.js} +3 -3
- package/dist/magma-components/{p-7be0d28b.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-88460d31.system.entry.js → p-3bdb541f.system.entry.js} +1 -1
- package/dist/magma-components/{p-85fb1d08.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-ced3ebb8.entry.js → p-3dccd446.entry.js} +1 -1
- package/dist/magma-components/{p-55b10b70.system.entry.js → p-3dde41b0.system.entry.js} +1 -1
- package/dist/magma-components/{p-be6e156a.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-f306b5c1.entry.js → p-42ab27de.entry.js} +1 -1
- package/dist/magma-components/{p-803957de.system.entry.js → p-430a4c4b.system.entry.js} +1 -1
- 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-227f57e6.entry.js → p-4aa94380.entry.js} +1 -1
- package/dist/magma-components/{p-b9ca6c2e.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-dbca23af.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-f39416e9.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-37487e8b.system.entry.js → p-53981624.system.entry.js} +1 -1
- 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-14635a8f.entry.js → p-5cf87a7f.entry.js} +1 -1
- package/dist/magma-components/{p-87baf82a.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-50705d36.system.entry.js → p-5f064376.system.entry.js} +1 -1
- package/dist/magma-components/{p-93d7485d.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-b8a59768.entry.js → p-62d9eaca.entry.js} +1 -1
- package/dist/magma-components/{p-947fcf74.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-38b16983.system.entry.js → p-6df26141.system.entry.js} +3 -3
- 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-fc22f5e0.system.entry.js → p-718d6384.system.entry.js} +1 -1
- package/dist/magma-components/{p-b4633c9c.system.entry.js → p-71dab494.system.entry.js} +3 -3
- package/dist/magma-components/{p-ec635255.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-9cf81575.system.entry.js → p-79fd07e7.system.entry.js} +1 -1
- 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-85a31141.entry.js → p-7e7391fd.entry.js} +1 -1
- package/dist/magma-components/{p-f5326224.system.entry.js → p-7ec28ff1.system.entry.js} +2 -2
- package/dist/magma-components/{p-f901c844.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-eb92312f.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-075acd04.entry.js → p-8f1c529f.entry.js} +1 -1
- package/dist/magma-components/{p-07a3c63c.system.entry.js → p-8f1e9021.system.entry.js} +1 -1
- 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-3f68ddca.entry.js → p-9332358d.entry.js} +1 -1
- package/dist/magma-components/{p-44998584.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-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-97eb734a.system.entry.js → p-a0d637b6.system.entry.js} +1 -1
- 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-77545238.entry.js → p-ac9feb04.entry.js} +1 -1
- package/dist/magma-components/{p-dedbf8d6.entry.js → p-ad383f92.entry.js} +1 -1
- package/dist/magma-components/{p-1ea582a9.system.entry.js → p-ae4736a0.system.entry.js} +3 -3
- package/dist/magma-components/{p-9fc385aa.entry.js → p-b3332c5f.entry.js} +1 -1
- package/dist/magma-components/{p-a987086b.system.entry.js → p-b3e2b68a.system.entry.js} +1 -1
- package/dist/magma-components/{p-808b9277.entry.js → p-b86144d4.entry.js} +1 -1
- package/dist/magma-components/{p-a0612465.system.entry.js → p-bbde5701.system.entry.js} +1 -1
- package/dist/magma-components/{p-5472f18d.system.entry.js → p-bc075b3b.system.entry.js} +2 -2
- package/dist/magma-components/{p-29971e1d.entry.js → p-bc19b136.entry.js} +1 -1
- package/dist/magma-components/{p-17ec24dc.entry.js → p-bcca26d9.entry.js} +1 -1
- package/dist/magma-components/{p-8b501f92.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-d3491226.system.entry.js → p-c2c693ed.system.entry.js} +1 -1
- 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-046697e4.system.entry.js → p-c8b06821.system.entry.js} +1 -1
- 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-cc954b22.system.entry.js → p-cd783f9e.system.entry.js} +1 -1
- 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-44333d50.system.entry.js → p-d0a15a3a.system.entry.js} +1 -1
- package/dist/magma-components/{p-f616f467.entry.js → p-d218ae47.entry.js} +1 -1
- package/dist/magma-components/{p-69badbba.entry.js → p-d331ff5c.entry.js} +1 -1
- package/dist/magma-components/{p-f75935ed.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-7d0c8177.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-de1ae02c.entry.js → p-d94281cb.entry.js} +1 -1
- package/dist/magma-components/{p-b467f737.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-521ba3a8.entry.js → p-dc618cae.entry.js} +1 -1
- package/dist/magma-components/p-de38f745.entry.js +1 -0
- package/dist/magma-components/{p-e2fa6300.system.entry.js → p-dee123c7.system.entry.js} +1 -1
- package/dist/magma-components/p-df387755.entry.js +1 -0
- package/dist/magma-components/{p-b373cc32.entry.js → p-dfab370b.entry.js} +1 -1
- 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-ad05ef26.system.entry.js → p-e5f893f9.system.entry.js} +1 -1
- package/dist/magma-components/{p-2c3f518c.system.entry.js → p-e709a52e.system.entry.js} +2 -2
- package/dist/magma-components/{p-8d14f146.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-6dff107d.system.entry.js → p-ec44a4ea.system.entry.js} +2 -2
- package/dist/magma-components/{p-9f6c502b.entry.js → p-ed133270.entry.js} +1 -1
- package/dist/magma-components/{p-bb282bc1.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-7ca73c56.entry.js → p-f045b018.entry.js} +1 -1
- package/dist/magma-components/{p-b69c3126.entry.js → p-f2211b1f.entry.js} +1 -1
- package/dist/magma-components/{p-c40ad03a.entry.js → p-f267ff68.entry.js} +1 -1
- package/dist/magma-components/{p-d254de66.system.entry.js → p-f27de6cb.system.entry.js} +1 -1
- package/dist/magma-components/{p-2d9c9ef9.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-94439d8b.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-da93a00b.system.entry.js → p-f5c7b147.system.entry.js} +1 -1
- 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-ffbf7448.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-35528bdd.system.entry.js → p-fe8e3721.system.entry.js} +1 -1
- package/dist/magma-components/{p-2a4d22c9.system.entry.js → p-fe98a77e.system.entry.js} +2 -2
- package/dist/magma-components/{p-8ca2e879.system.entry.js → p-ff7fc1f6.system.entry.js} +2 -2
- package/dist/stats.json +3133 -1157
- 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-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 +1 -0
- 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-CHHEp_7y.js +0 -1
- package/dist/components/p-D8wd-EZX.js +0 -1
- package/dist/magma-components/p-0193734e.entry.js +0 -1
- package/dist/magma-components/p-083dceb8.system.entry.js +0 -1
- package/dist/magma-components/p-093b8fbc.system.entry.js +0 -20
- package/dist/magma-components/p-0e2cd21e.entry.js +0 -1
- package/dist/magma-components/p-11320427.entry.js +0 -1
- package/dist/magma-components/p-1c2c4670.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-6436178a.entry.js +0 -1
- package/dist/magma-components/p-7ad68b2f.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-ab4b617d.entry.js +0 -1
- package/dist/magma-components/p-d6b38d8a.entry.js +0 -1
- package/dist/magma-components/p-e1383302.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 {
|
|
@@ -9175,22 +9186,22 @@ let Locale$1 = class Locale {
|
|
|
9175
9186
|
};
|
|
9176
9187
|
|
|
9177
9188
|
const cancel$7 = "Ακύρωση";
|
|
9178
|
-
var localeEl$
|
|
9189
|
+
var localeEl$L = {
|
|
9179
9190
|
cancel: cancel$7
|
|
9180
9191
|
};
|
|
9181
9192
|
|
|
9182
9193
|
const cancel$6 = "Cancel";
|
|
9183
|
-
var localeEn$
|
|
9194
|
+
var localeEn$M = {
|
|
9184
9195
|
cancel: cancel$6
|
|
9185
9196
|
};
|
|
9186
9197
|
|
|
9187
9198
|
const cancel$5 = "Cancelar";
|
|
9188
|
-
var localeEs$
|
|
9199
|
+
var localeEs$L = {
|
|
9189
9200
|
cancel: cancel$5
|
|
9190
9201
|
};
|
|
9191
9202
|
|
|
9192
9203
|
const cancel$4 = "Annulla";
|
|
9193
|
-
var localeIt$
|
|
9204
|
+
var localeIt$M = {
|
|
9194
9205
|
cancel: cancel$4
|
|
9195
9206
|
};
|
|
9196
9207
|
|
|
@@ -9200,6 +9211,7 @@ const mdsBannerCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
9200
9211
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
9201
9212
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
9202
9213
|
* @part text - The text wrapper of the `default` and `content` slots
|
|
9214
|
+
* @category feedback
|
|
9203
9215
|
*/
|
|
9204
9216
|
class MdsBanner {
|
|
9205
9217
|
constructor(hostRef) {
|
|
@@ -9207,10 +9219,10 @@ class MdsBanner {
|
|
|
9207
9219
|
this.closeEvent = createEvent(this, "mdsBannerClose", 7);
|
|
9208
9220
|
this.km = new KeyboardManager();
|
|
9209
9221
|
this.t = new Locale$1({
|
|
9210
|
-
el: localeEl$
|
|
9211
|
-
en: localeEn$
|
|
9212
|
-
es: localeEs$
|
|
9213
|
-
it: localeIt$
|
|
9222
|
+
el: localeEl$L,
|
|
9223
|
+
en: localeEn$M,
|
|
9224
|
+
es: localeEs$L,
|
|
9225
|
+
it: localeIt$M,
|
|
9214
9226
|
});
|
|
9215
9227
|
/**
|
|
9216
9228
|
* Sets the theme variant colors
|
|
@@ -9285,7 +9297,7 @@ class MdsBanner {
|
|
|
9285
9297
|
}
|
|
9286
9298
|
render() {
|
|
9287
9299
|
var _a, _b;
|
|
9288
|
-
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 }))));
|
|
9289
9301
|
}
|
|
9290
9302
|
get host() { return getElement(this); }
|
|
9291
9303
|
static get watchers() { return {
|
|
@@ -9318,6 +9330,7 @@ const mdsBenchmarkBarCss = () => `@layer reset,vendor,theme,base,components,util
|
|
|
9318
9330
|
/**
|
|
9319
9331
|
* @slot - **Deprecated**, use the `label` property instead. Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
9320
9332
|
* @part progress-bar - The progress bar element
|
|
9333
|
+
* @category data
|
|
9321
9334
|
*/
|
|
9322
9335
|
class MdsBenchmarkBar {
|
|
9323
9336
|
constructor(hostRef) {
|
|
@@ -9354,7 +9367,7 @@ class MdsBenchmarkBar {
|
|
|
9354
9367
|
// the value is spoken as it is shown, the alias or the number: without an alias the progress
|
|
9355
9368
|
// announced one of its steps, in Italian whatever the page language (#983)
|
|
9356
9369
|
const valueText = (_a = this.alias) !== null && _a !== void 0 ? _a : String(this.value);
|
|
9357
|
-
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" })));
|
|
9358
9371
|
}
|
|
9359
9372
|
get host() { return getElement(this); }
|
|
9360
9373
|
static get watchers() { return {
|
|
@@ -9382,6 +9395,9 @@ class MdsBenchmarkBar {
|
|
|
9382
9395
|
|
|
9383
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}`;
|
|
9384
9397
|
|
|
9398
|
+
/**
|
|
9399
|
+
* @category content
|
|
9400
|
+
*/
|
|
9385
9401
|
class MdsBibliography {
|
|
9386
9402
|
constructor(hostRef) {
|
|
9387
9403
|
registerInstance(this, hostRef);
|
|
@@ -9521,7 +9537,7 @@ class MdsBibliography {
|
|
|
9521
9537
|
};
|
|
9522
9538
|
}
|
|
9523
9539
|
render() {
|
|
9524
|
-
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), "."))))));
|
|
9525
9541
|
}
|
|
9526
9542
|
static get style() { return mdsBibliographyCss(); }
|
|
9527
9543
|
static get cmpMeta() { return {
|
|
@@ -9545,6 +9561,728 @@ class MdsBibliography {
|
|
|
9545
9561
|
}; }
|
|
9546
9562
|
}
|
|
9547
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
|
+
|
|
9548
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>`;
|
|
9549
10287
|
|
|
9550
10288
|
const back$3 = "Πήγαινε πίσω";
|
|
@@ -9571,6 +10309,7 @@ const mdsBreadcrumbCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
9571
10309
|
|
|
9572
10310
|
/**
|
|
9573
10311
|
* @slot - Add `mds-breadcrumb-item` element/s.
|
|
10312
|
+
* @category navigation
|
|
9574
10313
|
*/
|
|
9575
10314
|
class MdsBreadcrumb {
|
|
9576
10315
|
constructor(hostRef) {
|
|
@@ -9646,7 +10385,7 @@ class MdsBreadcrumb {
|
|
|
9646
10385
|
this.onChanged(selectedId, event.target);
|
|
9647
10386
|
}
|
|
9648
10387
|
render() {
|
|
9649
|
-
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' })));
|
|
9650
10389
|
}
|
|
9651
10390
|
get element() { return getElement(this); }
|
|
9652
10391
|
static get style() { return mdsBreadcrumbCss(); }
|
|
@@ -9668,6 +10407,7 @@ const mdsBreadcrumbItemCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
9668
10407
|
|
|
9669
10408
|
/**
|
|
9670
10409
|
* @part button - The `mds-button` of the item, which shows its `label`
|
|
10410
|
+
* @parent mds-breadcrumb
|
|
9671
10411
|
*/
|
|
9672
10412
|
class MdsBreadcrumbItem {
|
|
9673
10413
|
constructor(hostRef) {
|
|
@@ -9683,7 +10423,7 @@ class MdsBreadcrumbItem {
|
|
|
9683
10423
|
};
|
|
9684
10424
|
}
|
|
9685
10425
|
render() {
|
|
9686
|
-
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 })));
|
|
9687
10427
|
}
|
|
9688
10428
|
get element() { return getElement(this); }
|
|
9689
10429
|
static get style() { return mdsBreadcrumbItemCss(); }
|
|
@@ -9890,6 +10630,7 @@ const mdsButtonCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
9890
10630
|
* @slot notification - Add `HTML elements` or `components`, it is **recommended** to use `mds-notification` element.
|
|
9891
10631
|
* @part icon - The icon inside the component
|
|
9892
10632
|
* @part label - The text of the button: the `label`, or the default slot when `label` is not set
|
|
10633
|
+
* @category actions
|
|
9893
10634
|
*/
|
|
9894
10635
|
class MdsButton {
|
|
9895
10636
|
constructor(hostRef) {
|
|
@@ -10162,16 +10903,16 @@ class MdsButton {
|
|
|
10162
10903
|
var _a;
|
|
10163
10904
|
this.typography = ((_a = buttonSizeTypographyVariant[this.size]) !== null && _a !== void 0 ? _a : buttonSizeTypographyVariant.md);
|
|
10164
10905
|
this.hasAwaited || (this.hasAwaited = !!this.await);
|
|
10165
|
-
const label = this.label || hAsync("slot", { key: '
|
|
10166
|
-
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() && (
|
|
10167
10908
|
// the link under the pointer, over the whole button: the host keeps the focus, the
|
|
10168
10909
|
// role and the name, so the anchor is out of the tab order and hidden from the
|
|
10169
10910
|
// assistive technology
|
|
10170
|
-
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)) : (
|
|
10171
10912
|
// a span of its own, not an mds-text: a nested component is one more to hydrate and
|
|
10172
10913
|
// its whole stylesheet in every declarative shadow root (#831). Only the animated
|
|
10173
10914
|
// label needs mds-text, which scrambles it
|
|
10174
|
-
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" }))));
|
|
10175
10916
|
}
|
|
10176
10917
|
static get formAssociated() { return true; }
|
|
10177
10918
|
get host() { return getElement(this); }
|
|
@@ -10254,6 +10995,7 @@ const mdsButtonDropdownCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
10254
10995
|
/**
|
|
10255
10996
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
10256
10997
|
* @part dropdown - The `mds-dropdown` that the arrow opens, with the default slot inside
|
|
10998
|
+
* @category actions
|
|
10257
10999
|
*/
|
|
10258
11000
|
class MdsButtonDropdown {
|
|
10259
11001
|
constructor(hostRef) {
|
|
@@ -10330,7 +11072,7 @@ class MdsButtonDropdown {
|
|
|
10330
11072
|
}
|
|
10331
11073
|
}
|
|
10332
11074
|
render() {
|
|
10333
|
-
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' }))));
|
|
10334
11076
|
}
|
|
10335
11077
|
static get formAssociated() { return true; }
|
|
10336
11078
|
get host() { return getElement(this); }
|
|
@@ -10366,13 +11108,14 @@ const mdsButtonGroupCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
10366
11108
|
|
|
10367
11109
|
/**
|
|
10368
11110
|
* @slot - Add `mds-button` or `mds-button-dropdown` elements to this slot.
|
|
11111
|
+
* @category actions
|
|
10369
11112
|
*/
|
|
10370
11113
|
class MdsButtonGroup {
|
|
10371
11114
|
constructor(hostRef) {
|
|
10372
11115
|
registerInstance(this, hostRef);
|
|
10373
11116
|
}
|
|
10374
11117
|
render() {
|
|
10375
|
-
return (hAsync(Host, { key: '
|
|
11118
|
+
return (hAsync(Host, { key: 'e7a492c6c438e5991d8e703c6bff0491e6734d0e' }, hAsync("slot", { key: '0fc80c7fcb6ebc6857443223017d0719dfbf85f0' })));
|
|
10376
11119
|
}
|
|
10377
11120
|
static get style() { return mdsButtonGroupCss(); }
|
|
10378
11121
|
static get cmpMeta() { return {
|
|
@@ -18587,6 +19330,7 @@ const mdsCalendarCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
18587
19330
|
|
|
18588
19331
|
/**
|
|
18589
19332
|
* @slot preselection - Add `HTML elements` or `components` shown in the calendar preselection area.
|
|
19333
|
+
* @category forms
|
|
18590
19334
|
*/
|
|
18591
19335
|
class MdsCalendar {
|
|
18592
19336
|
constructor(hostRef) {
|
|
@@ -19235,21 +19979,21 @@ class MdsCalendar {
|
|
|
19235
19979
|
return undefined;
|
|
19236
19980
|
}
|
|
19237
19981
|
render() {
|
|
19238
|
-
return (hAsync(Host, { key: '
|
|
19982
|
+
return (hAsync(Host, { key: '5ece6c00dd42e09020407a839a354c3076565a2f' }, hAsync("div", { key: '49f671efc9d432d9c4eb4d28f0c6b33b9873422d', class: clsx('calendar-preselection', this.hasPreselection &&
|
|
19239
19983
|
!this.hidePreselection &&
|
|
19240
|
-
'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",
|
|
19241
19985
|
// the months view has nothing to move back or forward to
|
|
19242
|
-
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 &&
|
|
19243
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
|
|
19244
19988
|
.setLocale(preferenceStore.state.language)
|
|
19245
19989
|
.toFormat('cccc d LLLL')
|
|
19246
|
-
.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) => {
|
|
19247
19991
|
const monthName = DateTime.local()
|
|
19248
19992
|
.set({ month: index + 1 })
|
|
19249
19993
|
.setLocale(preferenceStore.state.language)
|
|
19250
19994
|
.toFormat('MMMM');
|
|
19251
19995
|
return (hAsync("mds-button", { class: "action", variant: "dark", tone: "text", label: monthName, onClick: this.handleMonthSelect(index + 1) }));
|
|
19252
|
-
})))), 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) => {
|
|
19253
19997
|
const year = this.selectedYear + index;
|
|
19254
19998
|
return (hAsync("mds-button", { class: "action", variant: "dark", tone: "text", label: `${year}`, onClick: this.handleYearSelect(year) }));
|
|
19255
19999
|
})))))));
|
|
@@ -19309,6 +20053,9 @@ class MdsCalendar {
|
|
|
19309
20053
|
|
|
19310
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)}`;
|
|
19311
20055
|
|
|
20056
|
+
/**
|
|
20057
|
+
* @parent mds-calendar
|
|
20058
|
+
*/
|
|
19312
20059
|
class MdsCalendarCell {
|
|
19313
20060
|
constructor(hostRef) {
|
|
19314
20061
|
registerInstance(this, hostRef);
|
|
@@ -19337,7 +20084,7 @@ class MdsCalendarCell {
|
|
|
19337
20084
|
this.today = undefined;
|
|
19338
20085
|
}
|
|
19339
20086
|
render() {
|
|
19340
|
-
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 })));
|
|
19341
20088
|
}
|
|
19342
20089
|
static get style() { return mdsCalendarCellCss(); }
|
|
19343
20090
|
static get cmpMeta() { return {
|
|
@@ -19369,6 +20116,7 @@ const REGIONS = ['content', 'footer', 'header', 'media'];
|
|
|
19369
20116
|
* @slot header - Add `HTML elements` or `components`, it's responsive behaviour based on container queries is handled with `auto-grid` enabled
|
|
19370
20117
|
* @slot content - Add `HTML elements` or `components`, it's responsive behaviour based on container queries is handled with `auto-grid` enabled
|
|
19371
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
|
|
19372
20120
|
*/
|
|
19373
20121
|
class MdsCard {
|
|
19374
20122
|
constructor(hostRef) {
|
|
@@ -19400,7 +20148,7 @@ class MdsCard {
|
|
|
19400
20148
|
this.updateLayout();
|
|
19401
20149
|
}
|
|
19402
20150
|
render() {
|
|
19403
|
-
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 }))));
|
|
19404
20152
|
}
|
|
19405
20153
|
get host() { return getElement(this); }
|
|
19406
20154
|
static get style() { return mdsCardCss(); }
|
|
@@ -19421,13 +20169,14 @@ const mdsCardContentCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
19421
20169
|
|
|
19422
20170
|
/**
|
|
19423
20171
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
20172
|
+
* @parent mds-card
|
|
19424
20173
|
*/
|
|
19425
20174
|
class MdsCardContent {
|
|
19426
20175
|
constructor(hostRef) {
|
|
19427
20176
|
registerInstance(this, hostRef);
|
|
19428
20177
|
}
|
|
19429
20178
|
render() {
|
|
19430
|
-
return (hAsync(Host, { key: '
|
|
20179
|
+
return (hAsync(Host, { key: '9442d6ac5c93929fb7c33552f8ed265c0be5903d', slot: "content" }, hAsync("slot", { key: '6687d6821f4e887066dbaf83a262273be3500d21' })));
|
|
19431
20180
|
}
|
|
19432
20181
|
static get style() { return mdsCardContentCss(); }
|
|
19433
20182
|
static get cmpMeta() { return {
|
|
@@ -19444,13 +20193,14 @@ const mdsCardFooterCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
19444
20193
|
|
|
19445
20194
|
/**
|
|
19446
20195
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
20196
|
+
* @parent mds-card
|
|
19447
20197
|
*/
|
|
19448
20198
|
class MdsCardFooter {
|
|
19449
20199
|
constructor(hostRef) {
|
|
19450
20200
|
registerInstance(this, hostRef);
|
|
19451
20201
|
}
|
|
19452
20202
|
render() {
|
|
19453
|
-
return (hAsync(Host, { key: '
|
|
20203
|
+
return (hAsync(Host, { key: '1244832dcbc5ec2b4b8ea3c8f5a427559e4017e6', slot: "footer" }, hAsync("slot", { key: '6a7b42f770545ec2192b43004fa1d6bc6b8e6f5d' })));
|
|
19454
20204
|
}
|
|
19455
20205
|
static get style() { return mdsCardFooterCss(); }
|
|
19456
20206
|
static get cmpMeta() { return {
|
|
@@ -19468,6 +20218,7 @@ const mdsCardHeaderCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
19468
20218
|
/**
|
|
19469
20219
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
19470
20220
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
20221
|
+
* @parent mds-card
|
|
19471
20222
|
*/
|
|
19472
20223
|
class MdsCardHeader {
|
|
19473
20224
|
constructor(hostRef) {
|
|
@@ -19480,7 +20231,7 @@ class MdsCardHeader {
|
|
|
19480
20231
|
this.hasActions = hasChildWithSlot(this.hostElement, 'action');
|
|
19481
20232
|
}
|
|
19482
20233
|
render() {
|
|
19483
|
-
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 }))));
|
|
19484
20235
|
}
|
|
19485
20236
|
get hostElement() { return getElement(this); }
|
|
19486
20237
|
static get style() { return mdsCardHeaderCss(); }
|
|
@@ -19502,13 +20253,14 @@ const mdsCardMediaCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
19502
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.
|
|
19503
20254
|
* @slot content - Add `text string`, `HTML elements` or `components` to this slot, contents will be shown in front of the media element.
|
|
19504
20255
|
* @part content - The layer in front of the media that holds the `content` slot
|
|
20256
|
+
* @parent mds-card
|
|
19505
20257
|
*/
|
|
19506
20258
|
class MdsCardMedia {
|
|
19507
20259
|
constructor(hostRef) {
|
|
19508
20260
|
registerInstance(this, hostRef);
|
|
19509
20261
|
}
|
|
19510
20262
|
render() {
|
|
19511
|
-
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' })));
|
|
19512
20264
|
}
|
|
19513
20265
|
static get style() { return mdsCardMediaCss(); }
|
|
19514
20266
|
static get cmpMeta() { return {
|
|
@@ -19545,6 +20297,9 @@ var localeIt$H = {
|
|
|
19545
20297
|
|
|
19546
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))}}`;
|
|
19547
20299
|
|
|
20300
|
+
/**
|
|
20301
|
+
* @category tags
|
|
20302
|
+
*/
|
|
19548
20303
|
class MdsChip {
|
|
19549
20304
|
constructor(hostRef) {
|
|
19550
20305
|
registerInstance(this, hostRef);
|
|
@@ -19637,7 +20392,7 @@ class MdsChip {
|
|
|
19637
20392
|
}
|
|
19638
20393
|
render() {
|
|
19639
20394
|
const interactive = !!this.clickable;
|
|
19640
|
-
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" }))));
|
|
19641
20396
|
}
|
|
19642
20397
|
get host() { return getElement(this); }
|
|
19643
20398
|
static get watchers() { return {
|
|
@@ -19679,6 +20434,7 @@ const mdsDetailsCss = () => `@layer reset,vendor,theme,base,components,utilities
|
|
|
19679
20434
|
* @part header - The header of the component
|
|
19680
20435
|
* @part title - The title of the component
|
|
19681
20436
|
* @part content - The content wrapper of the default and `action` slots
|
|
20437
|
+
* @category structure
|
|
19682
20438
|
*/
|
|
19683
20439
|
class MdsDetails {
|
|
19684
20440
|
constructor(hostRef) {
|
|
@@ -19728,7 +20484,7 @@ class MdsDetails {
|
|
|
19728
20484
|
this.km.detachClickBehavior();
|
|
19729
20485
|
}
|
|
19730
20486
|
render() {
|
|
19731
|
-
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" })))))));
|
|
19732
20488
|
}
|
|
19733
20489
|
get host() { return getElement(this); }
|
|
19734
20490
|
static get watchers() { return {
|
|
@@ -21800,6 +22556,7 @@ const mdsDropdownCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
21800
22556
|
|
|
21801
22557
|
/**
|
|
21802
22558
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot, elements will be shown when the component is triggered.
|
|
22559
|
+
* @category overlays
|
|
21803
22560
|
*/
|
|
21804
22561
|
class MdsDropdown {
|
|
21805
22562
|
constructor(hostRef) {
|
|
@@ -22167,9 +22924,9 @@ class MdsDropdown {
|
|
|
22167
22924
|
this.km.detachEscapeBehavior();
|
|
22168
22925
|
}
|
|
22169
22926
|
render() {
|
|
22170
|
-
return (hAsync(Host, { key: '
|
|
22927
|
+
return (hAsync(Host, { key: '9c74b0961efa29a02485dcbc7a786d34b8cca453', style: {
|
|
22171
22928
|
zIndex: `${this.zIndex}`,
|
|
22172
|
-
}, "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' })));
|
|
22173
22930
|
}
|
|
22174
22931
|
get host() { return getElement(this); }
|
|
22175
22932
|
static get watchers() { return {
|
|
@@ -28435,6 +29192,9 @@ var simiSvg = `<svg width="440" height="440" viewBox="0 0 440 440" fill="none" x
|
|
|
28435
29192
|
|
|
28436
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}`;
|
|
28437
29194
|
|
|
29195
|
+
/**
|
|
29196
|
+
* @category content
|
|
29197
|
+
*/
|
|
28438
29198
|
class MdsEmoji {
|
|
28439
29199
|
constructor(hostRef) {
|
|
28440
29200
|
registerInstance(this, hostRef);
|
|
@@ -29390,7 +30150,7 @@ class MdsEmoji {
|
|
|
29390
30150
|
return element;
|
|
29391
30151
|
}
|
|
29392
30152
|
render() {
|
|
29393
|
-
return hAsync(Host, { key: '
|
|
30153
|
+
return hAsync(Host, { key: 'c833178744078d72a9d596bb8d5caded53db1627' });
|
|
29394
30154
|
}
|
|
29395
30155
|
get host() { return getElement(this); }
|
|
29396
30156
|
static get watchers() { return {
|
|
@@ -29429,6 +30189,7 @@ const mdsEntityCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
29429
30189
|
* @part spinner - The spinner element
|
|
29430
30190
|
* @part avatar - The avatar element
|
|
29431
30191
|
* @part infos - The column that stacks the name (default slot) and the `detail` row
|
|
30192
|
+
* @category data
|
|
29432
30193
|
*/
|
|
29433
30194
|
class MdsEntity {
|
|
29434
30195
|
constructor(hostRef) {
|
|
@@ -29458,7 +30219,7 @@ class MdsEntity {
|
|
|
29458
30219
|
this.onSlotChange();
|
|
29459
30220
|
}
|
|
29460
30221
|
render() {
|
|
29461
|
-
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 }))));
|
|
29462
30223
|
}
|
|
29463
30224
|
get hostElement() { return getElement(this); }
|
|
29464
30225
|
static get style() { return mdsEntityCss(); }
|
|
@@ -30102,6 +30863,9 @@ var fileDescriptionLocaleIt = {
|
|
|
30102
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))}}`;
|
|
30103
30864
|
|
|
30104
30865
|
// https://stackoverflow.com/questions/1106377/detect-when-a-browser-receives-a-file-download
|
|
30866
|
+
/**
|
|
30867
|
+
* @category content
|
|
30868
|
+
*/
|
|
30105
30869
|
class MdsFile {
|
|
30106
30870
|
constructor(hostRef) {
|
|
30107
30871
|
registerInstance(this, hostRef);
|
|
@@ -30170,7 +30934,7 @@ class MdsFile {
|
|
|
30170
30934
|
}
|
|
30171
30935
|
render() {
|
|
30172
30936
|
var _a, _b;
|
|
30173
|
-
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') })))));
|
|
30174
30938
|
}
|
|
30175
30939
|
get host() { return getElement(this); }
|
|
30176
30940
|
static get watchers() { return {
|
|
@@ -30414,6 +31178,7 @@ const mdsFilePreviewCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
30414
31178
|
|
|
30415
31179
|
/**
|
|
30416
31180
|
* @part card - The preview of the file: its thumbnail or format icon, its name and its details
|
|
31181
|
+
* @category content
|
|
30417
31182
|
*/
|
|
30418
31183
|
class MdsFilePreview {
|
|
30419
31184
|
constructor(hostRef) {
|
|
@@ -30479,9 +31244,9 @@ class MdsFilePreview {
|
|
|
30479
31244
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
30480
31245
|
// a removed attribute or a null bound by a framework counts as not set, like an empty value
|
|
30481
31246
|
const hasMessage = ((_a = this.message) !== null && _a !== void 0 ? _a : '') !== '';
|
|
30482
|
-
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 : '') !== '' &&
|
|
30483
31248
|
!hasMessage &&
|
|
30484
|
-
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())))))));
|
|
30485
31250
|
}
|
|
30486
31251
|
get host() { return getElement(this); }
|
|
30487
31252
|
static get watchers() { return {
|
|
@@ -30537,6 +31302,7 @@ const mdsFilterCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
30537
31302
|
|
|
30538
31303
|
/**
|
|
30539
31304
|
* @slot - Add `mds-filter-item` element/s.
|
|
31305
|
+
* @category forms
|
|
30540
31306
|
*/
|
|
30541
31307
|
class MdsFilter {
|
|
30542
31308
|
constructor(hostRef) {
|
|
@@ -30716,7 +31482,7 @@ class MdsFilter {
|
|
|
30716
31482
|
this.changedEvent.emit({ children: items, value: this.itemsValues() });
|
|
30717
31483
|
}
|
|
30718
31484
|
render() {
|
|
30719
|
-
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 })))))));
|
|
30720
31486
|
}
|
|
30721
31487
|
get element() { return getElement(this); }
|
|
30722
31488
|
static get style() { return mdsFilterCss(); }
|
|
@@ -30767,6 +31533,9 @@ var localeIt$D = {
|
|
|
30767
31533
|
|
|
30768
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))}}`;
|
|
30769
31535
|
|
|
31536
|
+
/**
|
|
31537
|
+
* @parent mds-filter
|
|
31538
|
+
*/
|
|
30770
31539
|
class MdsFilterItem {
|
|
30771
31540
|
constructor(hostRef) {
|
|
30772
31541
|
registerInstance(this, hostRef);
|
|
@@ -30829,7 +31598,7 @@ class MdsFilterItem {
|
|
|
30829
31598
|
this.km.detachClickBehavior();
|
|
30830
31599
|
}
|
|
30831
31600
|
render() {
|
|
30832
|
-
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)))));
|
|
30833
31602
|
}
|
|
30834
31603
|
get element() { return getElement(this); }
|
|
30835
31604
|
static get style() { return mdsFilterItemCss(); }
|
|
@@ -30850,13 +31619,14 @@ class MdsFilterItem {
|
|
|
30850
31619
|
}; }
|
|
30851
31620
|
}
|
|
30852
31621
|
|
|
30853
|
-
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)))}}`;
|
|
30854
31623
|
|
|
30855
31624
|
// import clsx from 'clsx'
|
|
30856
31625
|
/**
|
|
30857
31626
|
* @part menu - The container element of the modal
|
|
30858
31627
|
* @slot - Add `mds-header-bar` element/s.
|
|
30859
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
|
|
30860
31630
|
*/
|
|
30861
31631
|
class MdsHeader {
|
|
30862
31632
|
constructor(hostRef) {
|
|
@@ -31043,7 +31813,7 @@ class MdsHeader {
|
|
|
31043
31813
|
}
|
|
31044
31814
|
}
|
|
31045
31815
|
render() {
|
|
31046
|
-
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" }))))));
|
|
31047
31817
|
}
|
|
31048
31818
|
get host() { return getElement(this); }
|
|
31049
31819
|
static get watchers() { return {
|
|
@@ -31114,6 +31884,7 @@ const mdsHeaderBarCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
31114
31884
|
* @part nav - Selects the `nav` element that contains the horizontal menu
|
|
31115
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.
|
|
31116
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
|
|
31117
31888
|
*/
|
|
31118
31889
|
class MdsHeaderBar {
|
|
31119
31890
|
constructor(hostRef) {
|
|
@@ -31155,7 +31926,7 @@ class MdsHeaderBar {
|
|
|
31155
31926
|
await ((_a = this.host.closest('mds-header')) === null || _a === void 0 ? void 0 : _a.setOpened(isOpened));
|
|
31156
31927
|
}
|
|
31157
31928
|
render() {
|
|
31158
|
-
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" }))))));
|
|
31159
31930
|
}
|
|
31160
31931
|
get host() { return getElement(this); }
|
|
31161
31932
|
static get style() { return mdsHeaderBarCss(); }
|
|
@@ -31182,6 +31953,7 @@ const mdsHelpCss = () => `@layer reset,vendor,theme,base,components,utilities;@k
|
|
|
31182
31953
|
/**
|
|
31183
31954
|
* @slot - Add `text string` to this slot, **avoid** `HTML elements` or `components`.
|
|
31184
31955
|
* @part icon - The icon that shows the help text in a tooltip
|
|
31956
|
+
* @category overlays
|
|
31185
31957
|
*/
|
|
31186
31958
|
class MdsHelp {
|
|
31187
31959
|
constructor(hostRef) {
|
|
@@ -31199,7 +31971,7 @@ class MdsHelp {
|
|
|
31199
31971
|
}
|
|
31200
31972
|
render() {
|
|
31201
31973
|
var _a;
|
|
31202
|
-
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' }))));
|
|
31203
31975
|
}
|
|
31204
31976
|
static get style() { return mdsHelpCss(); }
|
|
31205
31977
|
static get cmpMeta() { return {
|
|
@@ -31253,6 +32025,7 @@ const mdsHorizontalScrollCss = () => `@layer reset,vendor,theme,base,components,
|
|
|
31253
32025
|
/**
|
|
31254
32026
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
31255
32027
|
* @part content - The track that scrolls, with the default slot inside
|
|
32028
|
+
* @category structure
|
|
31256
32029
|
*/
|
|
31257
32030
|
class MdsHorizontalScroll {
|
|
31258
32031
|
constructor(hostRef) {
|
|
@@ -31454,7 +32227,7 @@ class MdsHorizontalScroll {
|
|
|
31454
32227
|
this.contents.removeEventListener('scroll', this.translateNavigationDot);
|
|
31455
32228
|
}
|
|
31456
32229
|
render() {
|
|
31457
|
-
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 }))));
|
|
31458
32231
|
}
|
|
31459
32232
|
get host() { return getElement(this); }
|
|
31460
32233
|
static get watchers() { return {
|
|
@@ -31482,12 +32255,15 @@ class MdsHorizontalScroll {
|
|
|
31482
32255
|
|
|
31483
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%}`;
|
|
31484
32257
|
|
|
32258
|
+
/**
|
|
32259
|
+
* @category structure
|
|
32260
|
+
*/
|
|
31485
32261
|
class MdsHr {
|
|
31486
32262
|
constructor(hostRef) {
|
|
31487
32263
|
registerInstance(this, hostRef);
|
|
31488
32264
|
}
|
|
31489
32265
|
render() {
|
|
31490
|
-
return (hAsync(Host, { key: '
|
|
32266
|
+
return (hAsync(Host, { key: 'f37b5fd798efd5855bb821435527e712ef4e9d5e', "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }));
|
|
31491
32267
|
}
|
|
31492
32268
|
static get style() { return mdsHrCss(); }
|
|
31493
32269
|
static get cmpMeta() { return {
|
|
@@ -31817,6 +32593,7 @@ const mdsIconCss = () => `@layer reset,vendor,theme,base,components,utilities;:h
|
|
|
31817
32593
|
|
|
31818
32594
|
/**
|
|
31819
32595
|
* @part svg - The svg container of the icon
|
|
32596
|
+
* @category content
|
|
31820
32597
|
*/
|
|
31821
32598
|
class MdsIcon {
|
|
31822
32599
|
constructor(hostRef) {
|
|
@@ -31888,7 +32665,7 @@ class MdsIcon {
|
|
|
31888
32665
|
}
|
|
31889
32666
|
}
|
|
31890
32667
|
render() {
|
|
31891
|
-
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 })));
|
|
31892
32669
|
}
|
|
31893
32670
|
get hostElement() { return getElement(this); }
|
|
31894
32671
|
static get watchers() { return {
|
|
@@ -31938,6 +32715,7 @@ const mdsImgCss = () => `@layer reset,vendor,theme,base,components,utilities;:ho
|
|
|
31938
32715
|
|
|
31939
32716
|
/**
|
|
31940
32717
|
* @part media - The native `<img>` that shows the picture
|
|
32718
|
+
* @category content
|
|
31941
32719
|
*/
|
|
31942
32720
|
class MdsImg {
|
|
31943
32721
|
constructor(hostRef) {
|
|
@@ -32807,6 +33585,7 @@ const mdsInputCss = () => `@layer reset,vendor,theme,base,components,utilities;:
|
|
|
32807
33585
|
* @part tip-count - Selects the mds-input-tip-item shown when maxlength attribute is set, can be used to hide it if needed
|
|
32808
33586
|
* @part tip-top - Selects the verbose status of input on top of element
|
|
32809
33587
|
* @part tip-bottom - Selects the verbose status of input on bottom of element
|
|
33588
|
+
* @category forms
|
|
32810
33589
|
*/
|
|
32811
33590
|
class MdsInput {
|
|
32812
33591
|
constructor(hostRef) {
|
|
@@ -33302,9 +34081,9 @@ class MdsInput {
|
|
|
33302
34081
|
}
|
|
33303
34082
|
render() {
|
|
33304
34083
|
var _a, _b, _c;
|
|
33305
|
-
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) => {
|
|
33306
34085
|
return hAsync("option", { key: i, value: element });
|
|
33307
|
-
}))), 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) })));
|
|
33308
34087
|
}
|
|
33309
34088
|
static get formAssociated() { return true; }
|
|
33310
34089
|
get el() { return getElement(this); }
|
|
@@ -33419,6 +34198,7 @@ const mdsInputDateCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
33419
34198
|
// TODO add input validation manager for error message
|
|
33420
34199
|
/**
|
|
33421
34200
|
* @part input-date - The native date input
|
|
34201
|
+
* @category forms
|
|
33422
34202
|
*/
|
|
33423
34203
|
class MdsInputDate {
|
|
33424
34204
|
constructor(hostRef) {
|
|
@@ -33681,11 +34461,11 @@ class MdsInputDate {
|
|
|
33681
34461
|
this.validateValue();
|
|
33682
34462
|
}
|
|
33683
34463
|
render() {
|
|
33684
|
-
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",
|
|
33685
34465
|
// the default md button fills the 36px square of an md field; sm fits the 28px one
|
|
33686
34466
|
size: this.size === 'sm' ? 'sm' : undefined,
|
|
33687
34467
|
// a read-only date cannot change, from the calendar either
|
|
33688
|
-
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 } : {})))))));
|
|
33689
34469
|
}
|
|
33690
34470
|
static get formAssociated() { return true; }
|
|
33691
34471
|
get host() { return getElement(this); }
|
|
@@ -33795,6 +34575,7 @@ const mdsInputDateRangeCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
33795
34575
|
* @slot calendar-preselection - Add `HTML elements` or `components` to this slot.
|
|
33796
34576
|
* @slot start - Add `HTML elements` or `components` to this slot.
|
|
33797
34577
|
* @slot end - Add `HTML elements` or `components` to this slot.
|
|
34578
|
+
* @category forms
|
|
33798
34579
|
*/
|
|
33799
34580
|
class MdsInputDateRange {
|
|
33800
34581
|
constructor(hostRef) {
|
|
@@ -34324,9 +35105,9 @@ class MdsInputDateRange {
|
|
|
34324
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 } : {})))));
|
|
34325
35106
|
}
|
|
34326
35107
|
render() {
|
|
34327
|
-
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",
|
|
34328
35109
|
// the default md button fills the 36px square of an md field; sm fits the 28px one
|
|
34329
|
-
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())));
|
|
34330
35111
|
}
|
|
34331
35112
|
syncFormValue() {
|
|
34332
35113
|
var _a, _b, _c, _d;
|
|
@@ -34394,6 +35175,7 @@ const mdsInputDateRangePreselectionCss = () => `@layer reset,vendor,theme,base,c
|
|
|
34394
35175
|
* @slot - Add the `text string` of the preselection, as `Last 7 days`: it becomes the label of
|
|
34395
35176
|
* the button that applies the range. **Avoid** `HTML elements` or `components`, which end up
|
|
34396
35177
|
* inside an `mds-button`.
|
|
35178
|
+
* @parent mds-input-date-range
|
|
34397
35179
|
*/
|
|
34398
35180
|
class MdsInputDateRangePreselection {
|
|
34399
35181
|
constructor(hostRef) {
|
|
@@ -34417,7 +35199,7 @@ class MdsInputDateRangePreselection {
|
|
|
34417
35199
|
}
|
|
34418
35200
|
}
|
|
34419
35201
|
render() {
|
|
34420
|
-
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' }))));
|
|
34421
35203
|
}
|
|
34422
35204
|
get host() { return getElement(this); }
|
|
34423
35205
|
static get style() { return mdsInputDateRangePreselectionCss(); }
|
|
@@ -34442,6 +35224,7 @@ const mdsInputFieldCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
34442
35224
|
* validation errors in `message`. Another control, a native `<input>` among them, gets the name
|
|
34443
35225
|
* but no validation messages.
|
|
34444
35226
|
* @part content - The wrapper of the default slot, above the message
|
|
35227
|
+
* @category forms
|
|
34445
35228
|
*/
|
|
34446
35229
|
class MdsInputField {
|
|
34447
35230
|
constructor(hostRef) {
|
|
@@ -34507,7 +35290,7 @@ class MdsInputField {
|
|
|
34507
35290
|
}
|
|
34508
35291
|
render() {
|
|
34509
35292
|
var _a;
|
|
34510
|
-
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)))))));
|
|
34511
35294
|
}
|
|
34512
35295
|
static get formAssociated() { return true; }
|
|
34513
35296
|
get host() { return getElement(this); }
|
|
@@ -34553,6 +35336,9 @@ var localeIt$v = {
|
|
|
34553
35336
|
|
|
34554
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}`;
|
|
34555
35338
|
|
|
35339
|
+
/**
|
|
35340
|
+
* @category forms
|
|
35341
|
+
*/
|
|
34556
35342
|
class MdsInputOtp {
|
|
34557
35343
|
constructor(hostRef) {
|
|
34558
35344
|
registerInstance(this, hostRef);
|
|
@@ -34721,7 +35507,7 @@ class MdsInputOtp {
|
|
|
34721
35507
|
setFormValue(this.internals, this.value);
|
|
34722
35508
|
}
|
|
34723
35509
|
render() {
|
|
34724
|
-
return (hAsync(Host, { key: '
|
|
35510
|
+
return (hAsync(Host, { key: 'a2a249f0fb7eb2086f502bda3f83109ab9b58345' }, Array.from({ length: this.length }).map((_, index) => {
|
|
34725
35511
|
var _a;
|
|
34726
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 : '' }));
|
|
34727
35513
|
})));
|
|
@@ -34758,6 +35544,7 @@ const mdsInputRangeCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
34758
35544
|
* @part header - The element containing the labels displayed over the input element
|
|
34759
35545
|
* @part track - The element containing the track of the input range
|
|
34760
35546
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
35547
|
+
* @category forms
|
|
34761
35548
|
*/
|
|
34762
35549
|
class MdsInputRange {
|
|
34763
35550
|
constructor(hostRef) {
|
|
@@ -34874,7 +35661,7 @@ class MdsInputRange {
|
|
|
34874
35661
|
}
|
|
34875
35662
|
render() {
|
|
34876
35663
|
var _a;
|
|
34877
|
-
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 }))));
|
|
34878
35665
|
}
|
|
34879
35666
|
static get formAssociated() { return true; }
|
|
34880
35667
|
get element() { return getElement(this); }
|
|
@@ -34922,6 +35709,7 @@ const mdsInputSelectCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
34922
35709
|
* @part select - The select HTML element
|
|
34923
35710
|
* @part tip-top - Selects the verbose status of input on top of element
|
|
34924
35711
|
* @slot - Add `option` `HTML elements` or `components` to this slot.
|
|
35712
|
+
* @category forms
|
|
34925
35713
|
*/
|
|
34926
35714
|
class MdsInputSelect {
|
|
34927
35715
|
constructor(hostRef) {
|
|
@@ -35239,12 +36027,12 @@ class MdsInputSelect {
|
|
|
35239
36027
|
}
|
|
35240
36028
|
render() {
|
|
35241
36029
|
var _a;
|
|
35242
|
-
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 &&
|
|
35243
36031
|
this.defaultValue !== '' &&
|
|
35244
36032
|
this.defaultValue !== 0 &&
|
|
35245
36033
|
!Number.isNaN(this.defaultValue)
|
|
35246
36034
|
? undefined
|
|
35247
|
-
: 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' })))));
|
|
35248
36036
|
}
|
|
35249
36037
|
static get formAssociated() { return true; }
|
|
35250
36038
|
get host() { return getElement(this); }
|
|
@@ -35361,6 +36149,7 @@ const mdsInputSwitchCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
35361
36149
|
|
|
35362
36150
|
/**
|
|
35363
36151
|
* @slot - Put text string or elements here
|
|
36152
|
+
* @category forms
|
|
35364
36153
|
*/
|
|
35365
36154
|
class MdsInputSwitch {
|
|
35366
36155
|
constructor(hostRef) {
|
|
@@ -35528,7 +36317,7 @@ class MdsInputSwitch {
|
|
|
35528
36317
|
var _a;
|
|
35529
36318
|
const { iconChecked, iconUnchecked, iconIndeterminate } = inputSwitchIconVariant[this.type];
|
|
35530
36319
|
const iconCheckedUser = this.icon !== '' ? this.icon : iconChecked;
|
|
35531
|
-
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' })))));
|
|
35532
36321
|
}
|
|
35533
36322
|
static get formAssociated() { return true; }
|
|
35534
36323
|
get host() { return getElement(this); }
|
|
@@ -35577,6 +36366,7 @@ const mdsInputTipCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
35577
36366
|
|
|
35578
36367
|
/**
|
|
35579
36368
|
* @slot - Add `mds-input-tip-item` elements or `components` to this slot.
|
|
36369
|
+
* @parent mds-input mds-input-date mds-input-select
|
|
35580
36370
|
*/
|
|
35581
36371
|
class MdsInputTip {
|
|
35582
36372
|
constructor(hostRef) {
|
|
@@ -35592,7 +36382,7 @@ class MdsInputTip {
|
|
|
35592
36382
|
this.position = 'top';
|
|
35593
36383
|
}
|
|
35594
36384
|
render() {
|
|
35595
|
-
return (hAsync(Host, { key: '
|
|
36385
|
+
return (hAsync(Host, { key: 'cc4718410e2a85b943be7639677a8f0d0f672d6c', "pref-animation": preferenceStore.state.animation }, hAsync("slot", { key: '8be976189455e4097980a2f4c3fc221877c20294' })));
|
|
35596
36386
|
}
|
|
35597
36387
|
static get style() { return mdsInputTipCss(); }
|
|
35598
36388
|
static get cmpMeta() { return {
|
|
@@ -35648,6 +36438,7 @@ const mdsInputTipItemCss = () => `@layer reset,vendor,theme,base,components,util
|
|
|
35648
36438
|
|
|
35649
36439
|
/**
|
|
35650
36440
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
36441
|
+
* @parent mds-input-tip
|
|
35651
36442
|
*/
|
|
35652
36443
|
class MdsInputTipItem {
|
|
35653
36444
|
constructor(hostRef) {
|
|
@@ -35669,11 +36460,11 @@ class MdsInputTipItem {
|
|
|
35669
36460
|
}
|
|
35670
36461
|
}
|
|
35671
36462
|
render() {
|
|
35672
|
-
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' ||
|
|
35673
36464
|
this.variant === 'count-almost-full' ||
|
|
35674
36465
|
this.variant === 'count-empty' ||
|
|
35675
36466
|
this.variant === 'count-full' ||
|
|
35676
|
-
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' })))))));
|
|
35677
36468
|
}
|
|
35678
36469
|
static get watchers() { return {
|
|
35679
36470
|
"expanded": [{
|
|
@@ -37078,6 +37869,9 @@ var localeIt$s = {
|
|
|
37078
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)))}`;
|
|
37079
37870
|
|
|
37080
37871
|
const isSort = (value) => value === 'date' || value === 'status';
|
|
37872
|
+
/**
|
|
37873
|
+
* @category forms
|
|
37874
|
+
*/
|
|
37081
37875
|
class MdsInputUpload {
|
|
37082
37876
|
constructor(hostRef) {
|
|
37083
37877
|
registerInstance(this, hostRef);
|
|
@@ -37472,18 +38266,18 @@ class MdsInputUpload {
|
|
|
37472
38266
|
}
|
|
37473
38267
|
render() {
|
|
37474
38268
|
var _a;
|
|
37475
|
-
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
|
|
37476
38270
|
? this.t.get('dragEnter')
|
|
37477
|
-
: 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
|
|
37478
38272
|
? this.t.get('addFile', { maxFiles: this.maxFiles })
|
|
37479
|
-
: 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)
|
|
37480
38274
|
? this.t.get('currentFilesWithMax', {
|
|
37481
38275
|
currentFiles: this.files.length,
|
|
37482
38276
|
maxFiles: this.maxFiles,
|
|
37483
38277
|
})
|
|
37484
|
-
: 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 !== ''
|
|
37485
38279
|
? `${this.t.get('canUpload')} ${this.extensions}`
|
|
37486
|
-
: 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) => {
|
|
37487
38281
|
switch (file.status) {
|
|
37488
38282
|
case Status.ERROR:
|
|
37489
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) }));
|
|
@@ -38348,10 +39142,11 @@ var keyboardKeysData = {
|
|
|
38348
39142
|
z: z
|
|
38349
39143
|
};
|
|
38350
39144
|
|
|
38351
|
-
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}}`;
|
|
38352
39146
|
|
|
38353
39147
|
/**
|
|
38354
39148
|
* @slot - Add `mds-keyboard-key` elements or `components` to this slot.
|
|
39149
|
+
* @category tags
|
|
38355
39150
|
*/
|
|
38356
39151
|
class MdsKeyboard {
|
|
38357
39152
|
constructor(hostRef) {
|
|
@@ -38524,7 +39319,7 @@ class MdsKeyboard {
|
|
|
38524
39319
|
}
|
|
38525
39320
|
}
|
|
38526
39321
|
render() {
|
|
38527
|
-
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))))))))));
|
|
38528
39323
|
}
|
|
38529
39324
|
get host() { return getElement(this); }
|
|
38530
39325
|
static get watchers() { return {
|
|
@@ -38799,8 +39594,11 @@ icons.set('windows', miSharpWindow);
|
|
|
38799
39594
|
icons.set('windowsleft', miSharpWindow);
|
|
38800
39595
|
icons.set('windowsright', miSharpWindow);
|
|
38801
39596
|
|
|
38802
|
-
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}`;
|
|
38803
39598
|
|
|
39599
|
+
/**
|
|
39600
|
+
* @parent mds-keyboard
|
|
39601
|
+
*/
|
|
38804
39602
|
class MdsKeyboardKey {
|
|
38805
39603
|
constructor(hostRef) {
|
|
38806
39604
|
registerInstance(this, hostRef);
|
|
@@ -38826,7 +39624,7 @@ class MdsKeyboardKey {
|
|
|
38826
39624
|
}
|
|
38827
39625
|
render() {
|
|
38828
39626
|
var _a, _b, _c, _d;
|
|
38829
|
-
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')))));
|
|
38830
39628
|
}
|
|
38831
39629
|
static get style() { return mdsKeyboardKeyCss(); }
|
|
38832
39630
|
static get cmpMeta() { return {
|
|
@@ -38846,13 +39644,14 @@ const mdsKpiCss = () => `@layer reset,vendor,theme,base,components,utilities;:ho
|
|
|
38846
39644
|
|
|
38847
39645
|
/**
|
|
38848
39646
|
* @slot - Add `mds-kpi-item` element/s.
|
|
39647
|
+
* @category data
|
|
38849
39648
|
*/
|
|
38850
39649
|
class MdsKpi {
|
|
38851
39650
|
constructor(hostRef) {
|
|
38852
39651
|
registerInstance(this, hostRef);
|
|
38853
39652
|
}
|
|
38854
39653
|
render() {
|
|
38855
|
-
return (hAsync(Host, { key: '
|
|
39654
|
+
return (hAsync(Host, { key: '4724a3faf067f195b0e20a8bcb0fde4040bea9da', role: "list" }, hAsync("slot", { key: 'fe0fd6805195f07f5781a6c52df53bef5c303d1e' })));
|
|
38856
39655
|
}
|
|
38857
39656
|
static get style() { return mdsKpiCss(); }
|
|
38858
39657
|
static get cmpMeta() { return {
|
|
@@ -38871,6 +39670,7 @@ const mdsKpiItemCss = () => `@layer reset,vendor,theme,base,components,utilities
|
|
|
38871
39670
|
* @part content - Selects the label and description wrapper element
|
|
38872
39671
|
* @part icon - Selects the icon element
|
|
38873
39672
|
* @part icon-container - Selects the icon wrapper element
|
|
39673
|
+
* @parent mds-kpi
|
|
38874
39674
|
*/
|
|
38875
39675
|
class MdsKpiItem {
|
|
38876
39676
|
constructor(hostRef) {
|
|
@@ -38919,7 +39719,7 @@ class MdsKpiItem {
|
|
|
38919
39719
|
}
|
|
38920
39720
|
}
|
|
38921
39721
|
render() {
|
|
38922
|
-
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)))));
|
|
38923
39723
|
}
|
|
38924
39724
|
get hostElement() { return getElement(this); }
|
|
38925
39725
|
static get style() { return mdsKpiItemCss(); }
|
|
@@ -38961,6 +39761,9 @@ var localeIt$p = {
|
|
|
38961
39761
|
|
|
38962
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}}`;
|
|
38963
39763
|
|
|
39764
|
+
/**
|
|
39765
|
+
* @category tags
|
|
39766
|
+
*/
|
|
38964
39767
|
class MdsLabel {
|
|
38965
39768
|
constructor(hostRef) {
|
|
38966
39769
|
registerInstance(this, hostRef);
|
|
@@ -38998,7 +39801,7 @@ class MdsLabel {
|
|
|
38998
39801
|
};
|
|
38999
39802
|
}
|
|
39000
39803
|
render() {
|
|
39001
|
-
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" }))));
|
|
39002
39805
|
}
|
|
39003
39806
|
static get style() { return mdsLabelCss(); }
|
|
39004
39807
|
static get cmpMeta() { return {
|
|
@@ -39044,6 +39847,7 @@ const mdsLinkCss = () => `@layer reset,vendor,theme,base,components,utilities;@k
|
|
|
39044
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.
|
|
39045
39848
|
* @part link - The element that carries the link and the focus: an anchor with `href`, an inline button without it
|
|
39046
39849
|
* @part icon - The icon of the link
|
|
39850
|
+
* @category actions
|
|
39047
39851
|
*/
|
|
39048
39852
|
class MdsLink {
|
|
39049
39853
|
constructor(hostRef) {
|
|
@@ -39151,10 +39955,10 @@ class MdsLink {
|
|
|
39151
39955
|
: { role: 'button', tabindex: '0' };
|
|
39152
39956
|
// the word joiner keeps the icon on the line of the word next to it: the icon is drawn in
|
|
39153
39957
|
// the padding of an inline box, which the line breaks with the text
|
|
39154
|
-
const icon = this.icon && (hAsync("span", { key: '
|
|
39155
|
-
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) => {
|
|
39156
39960
|
this.link = el;
|
|
39157
|
-
} }, 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)));
|
|
39158
39962
|
}
|
|
39159
39963
|
static get delegatesFocus() { return true; }
|
|
39160
39964
|
get host() { return getElement(this); }
|
|
@@ -39182,13 +39986,14 @@ const mdsListCss = () => `@layer reset,vendor,theme,base,components,utilities;:h
|
|
|
39182
39986
|
|
|
39183
39987
|
/**
|
|
39184
39988
|
* @slot - Add `mds-list-item` element/s.
|
|
39989
|
+
* @category data
|
|
39185
39990
|
*/
|
|
39186
39991
|
class MdsList {
|
|
39187
39992
|
constructor(hostRef) {
|
|
39188
39993
|
registerInstance(this, hostRef);
|
|
39189
39994
|
}
|
|
39190
39995
|
render() {
|
|
39191
|
-
return (hAsync(Host, { key: '
|
|
39996
|
+
return (hAsync(Host, { key: 'ef292ca9948e6dc3968785bec3897ebc2290f443', role: "list" }, hAsync("slot", { key: 'af05ad9fbb06d3c8d9c0ea4c97e8ca3f2d0bafa6' })));
|
|
39192
39997
|
}
|
|
39193
39998
|
static get style() { return mdsListCss(); }
|
|
39194
39999
|
static get cmpMeta() { return {
|
|
@@ -39212,6 +40017,7 @@ const mdsListItemCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
39212
40017
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
39213
40018
|
* @part icon - The bullet icon before the text, the one `icon` sets
|
|
39214
40019
|
* @part text - The text of the item, around the default slot
|
|
40020
|
+
* @parent mds-list
|
|
39215
40021
|
*/
|
|
39216
40022
|
class MdsListItem {
|
|
39217
40023
|
constructor(hostRef) {
|
|
@@ -39227,7 +40033,7 @@ class MdsListItem {
|
|
|
39227
40033
|
}
|
|
39228
40034
|
render() {
|
|
39229
40035
|
var _a;
|
|
39230
|
-
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' }))));
|
|
39231
40037
|
}
|
|
39232
40038
|
static get style() { return mdsListItemCss(); }
|
|
39233
40039
|
static get cmpMeta() { return {
|
|
@@ -39268,6 +40074,9 @@ var localeIt$n = {
|
|
|
39268
40074
|
|
|
39269
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))}`;
|
|
39270
40076
|
|
|
40077
|
+
/**
|
|
40078
|
+
* @category tags
|
|
40079
|
+
*/
|
|
39271
40080
|
class MdsMention {
|
|
39272
40081
|
constructor(hostRef) {
|
|
39273
40082
|
registerInstance(this, hostRef);
|
|
@@ -39296,7 +40105,7 @@ class MdsMention {
|
|
|
39296
40105
|
render() {
|
|
39297
40106
|
var _a, _b, _c;
|
|
39298
40107
|
const icon = (_a = this.icon) !== null && _a !== void 0 ? _a : '';
|
|
39299
|
-
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" }))));
|
|
39300
40109
|
}
|
|
39301
40110
|
get host() { return getElement(this); }
|
|
39302
40111
|
static get style() { return mdsMentionCss(); }
|
|
@@ -39345,6 +40154,7 @@ const mdsModalCss = () => `@layer reset,vendor,theme,base,components,utilities;:
|
|
|
39345
40154
|
* @slot - Contents that will be placed in the center of the window. Add `text string`, `HTML elements` or `components` to this slot.
|
|
39346
40155
|
* @slot top - Contents that will be placed on top of the window. Add `text string`, `HTML elements` or `components` to this slot.
|
|
39347
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
|
|
39348
40158
|
*/
|
|
39349
40159
|
class MdsModal {
|
|
39350
40160
|
constructor(hostRef) {
|
|
@@ -39645,14 +40455,14 @@ class MdsModal {
|
|
|
39645
40455
|
this.opened = undefined;
|
|
39646
40456
|
}
|
|
39647
40457
|
render() {
|
|
39648
|
-
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) => {
|
|
39649
40459
|
this.handleBackdropClick(e);
|
|
39650
40460
|
}, onCancel: (e) => {
|
|
39651
40461
|
this.handleCancel(e);
|
|
39652
|
-
} }, 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: {
|
|
39653
40463
|
paddingTop: `${this.windowHeaderHeight}px`,
|
|
39654
40464
|
paddingBottom: `${this.windowFooterHeight}px`,
|
|
39655
|
-
} }, 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: () => {
|
|
39656
40466
|
this.opened = undefined;
|
|
39657
40467
|
}, part: "action-close" })))));
|
|
39658
40468
|
}
|
|
@@ -39715,6 +40525,7 @@ const mdsNoteCss = () => `@layer reset,vendor,theme,base,components,utilities;@l
|
|
|
39715
40525
|
/**
|
|
39716
40526
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
39717
40527
|
* @slot title - Add `text string`, `HTML elements` or `components` to this slot.
|
|
40528
|
+
* @category content
|
|
39718
40529
|
*/
|
|
39719
40530
|
class MdsNote {
|
|
39720
40531
|
constructor(hostRef) {
|
|
@@ -39759,7 +40570,7 @@ class MdsNote {
|
|
|
39759
40570
|
this.km.detachClickBehavior();
|
|
39760
40571
|
}
|
|
39761
40572
|
render() {
|
|
39762
|
-
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" })));
|
|
39763
40574
|
}
|
|
39764
40575
|
get host() { return getElement(this); }
|
|
39765
40576
|
static get style() { return mdsNoteCss(); }
|
|
@@ -39778,6 +40589,9 @@ class MdsNote {
|
|
|
39778
40589
|
|
|
39779
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}}`;
|
|
39780
40591
|
|
|
40592
|
+
/**
|
|
40593
|
+
* @category feedback
|
|
40594
|
+
*/
|
|
39781
40595
|
class MdsNotification {
|
|
39782
40596
|
constructor(hostRef) {
|
|
39783
40597
|
registerInstance(this, hostRef);
|
|
@@ -39915,7 +40729,7 @@ class MdsNotification {
|
|
|
39915
40729
|
}
|
|
39916
40730
|
}
|
|
39917
40731
|
render() {
|
|
39918
|
-
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))));
|
|
39919
40733
|
}
|
|
39920
40734
|
get host() { return getElement(this); }
|
|
39921
40735
|
static get watchers() { return {
|
|
@@ -39971,6 +40785,9 @@ var localeIt$k = {
|
|
|
39971
40785
|
|
|
39972
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}}`;
|
|
39973
40787
|
|
|
40788
|
+
/**
|
|
40789
|
+
* @category navigation
|
|
40790
|
+
*/
|
|
39974
40791
|
class MdsPaginator {
|
|
39975
40792
|
constructor(hostRef) {
|
|
39976
40793
|
registerInstance(this, hostRef);
|
|
@@ -40070,7 +40887,7 @@ class MdsPaginator {
|
|
|
40070
40887
|
}, 10);
|
|
40071
40888
|
}
|
|
40072
40889
|
render() {
|
|
40073
|
-
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 })));
|
|
40074
40891
|
}
|
|
40075
40892
|
get element() { return getElement(this); }
|
|
40076
40893
|
static get style() { return mdsPaginatorCss(); }
|
|
@@ -40091,6 +40908,7 @@ const mdsPaginatorItemCss = () => `@layer reset,vendor,theme,base,components,uti
|
|
|
40091
40908
|
|
|
40092
40909
|
/**
|
|
40093
40910
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
40911
|
+
* @parent mds-paginator
|
|
40094
40912
|
*/
|
|
40095
40913
|
class MdsPaginatorItem {
|
|
40096
40914
|
constructor(hostRef) {
|
|
@@ -40124,7 +40942,7 @@ class MdsPaginatorItem {
|
|
|
40124
40942
|
this.km.detachClickBehavior();
|
|
40125
40943
|
}
|
|
40126
40944
|
render() {
|
|
40127
|
-
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))))));
|
|
40128
40946
|
}
|
|
40129
40947
|
get host() { return getElement(this); }
|
|
40130
40948
|
static get style() { return mdsPaginatorItemCss(); }
|
|
@@ -40249,6 +41067,7 @@ const mdsPolicyAiCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
40249
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`.
|
|
40250
41068
|
* @part card - Selects the `card` component wrapped in shadowDOM, will be found only if attirbute `variant` is set to `card`.
|
|
40251
41069
|
* @part banner - Selects the `banner` component wrapped in shadowDOM, will be found only if attirbute `variant` is set to `banner`.
|
|
41070
|
+
* @category tags
|
|
40252
41071
|
*/
|
|
40253
41072
|
class MdsPolicyAi {
|
|
40254
41073
|
constructor(hostRef) {
|
|
@@ -40273,7 +41092,7 @@ class MdsPolicyAi {
|
|
|
40273
41092
|
}
|
|
40274
41093
|
render() {
|
|
40275
41094
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
40276
|
-
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')))))));
|
|
40277
41096
|
}
|
|
40278
41097
|
static get style() { return mdsPolicyAiCss(); }
|
|
40279
41098
|
static get cmpMeta() { return {
|
|
@@ -40321,7 +41140,6 @@ const mountedPrefs = new Set();
|
|
|
40321
41140
|
* @description This component is based on MdsTab component pattern
|
|
40322
41141
|
* @overview
|
|
40323
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>
|
|
40324
|
-
* @category Patterns
|
|
40325
41143
|
* @tags pattern, user, tab
|
|
40326
41144
|
* @slot - Add `mds-pref-animation`, `mds-pref-consumption`, `mds-pref-contrast`, `mds-pref-language`, `mds-pref-mode` or `mds-pref-theme` element/s.
|
|
40327
41145
|
* @example <mds-pref>
|
|
@@ -40335,6 +41153,7 @@ const mountedPrefs = new Set();
|
|
|
40335
41153
|
* <mds-pref-language-item code="en"></mds-pref-language-item>
|
|
40336
41154
|
* </mds-pref-language>
|
|
40337
41155
|
* </mds-pref>
|
|
41156
|
+
* @category preferences
|
|
40338
41157
|
*/
|
|
40339
41158
|
class MdsPref {
|
|
40340
41159
|
constructor(hostRef) {
|
|
@@ -40430,7 +41249,7 @@ class MdsPref {
|
|
|
40430
41249
|
this.applySchemeLock((_a = e.detail) === null || _a === void 0 ? void 0 : _a.scheme);
|
|
40431
41250
|
}
|
|
40432
41251
|
render() {
|
|
40433
|
-
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'))))));
|
|
40434
41253
|
}
|
|
40435
41254
|
get host() { return getElement(this); }
|
|
40436
41255
|
static get watchers() { return {
|
|
@@ -40508,6 +41327,9 @@ var localeIt$h = {
|
|
|
40508
41327
|
|
|
40509
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)))}}`;
|
|
40510
41329
|
|
|
41330
|
+
/**
|
|
41331
|
+
* @category preferences
|
|
41332
|
+
*/
|
|
40511
41333
|
class MdsPrefAnimation {
|
|
40512
41334
|
constructor(hostRef) {
|
|
40513
41335
|
registerInstance(this, hostRef);
|
|
@@ -40621,7 +41443,7 @@ class MdsPrefAnimation {
|
|
|
40621
41443
|
}
|
|
40622
41444
|
render() {
|
|
40623
41445
|
var _a;
|
|
40624
|
-
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) }))));
|
|
40625
41447
|
}
|
|
40626
41448
|
static get watchers() { return {
|
|
40627
41449
|
"mode": [{
|
|
@@ -40706,6 +41528,9 @@ var localeIt$g = {
|
|
|
40706
41528
|
|
|
40707
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)))}}`;
|
|
40708
41530
|
|
|
41531
|
+
/**
|
|
41532
|
+
* @category preferences
|
|
41533
|
+
*/
|
|
40709
41534
|
let MdsPrefContrast$1 = class MdsPrefContrast {
|
|
40710
41535
|
constructor(hostRef) {
|
|
40711
41536
|
registerInstance(this, hostRef);
|
|
@@ -40819,7 +41644,7 @@ let MdsPrefContrast$1 = class MdsPrefContrast {
|
|
|
40819
41644
|
}
|
|
40820
41645
|
render() {
|
|
40821
41646
|
var _a;
|
|
40822
|
-
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) }))));
|
|
40823
41648
|
}
|
|
40824
41649
|
static get watchers() { return {
|
|
40825
41650
|
"mode": [{
|
|
@@ -40892,6 +41717,9 @@ var localeIt$f = {
|
|
|
40892
41717
|
|
|
40893
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)))}}`;
|
|
40894
41719
|
|
|
41720
|
+
/**
|
|
41721
|
+
* @category preferences
|
|
41722
|
+
*/
|
|
40895
41723
|
class MdsPrefContrast {
|
|
40896
41724
|
constructor(hostRef) {
|
|
40897
41725
|
registerInstance(this, hostRef);
|
|
@@ -41005,7 +41833,7 @@ class MdsPrefContrast {
|
|
|
41005
41833
|
}
|
|
41006
41834
|
render() {
|
|
41007
41835
|
var _a;
|
|
41008
|
-
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) }))));
|
|
41009
41837
|
}
|
|
41010
41838
|
static get watchers() { return {
|
|
41011
41839
|
"mode": [{
|
|
@@ -41886,6 +42714,7 @@ const LANGUAGE_CODE = /^[a-z]{2,3}(-[A-Za-z0-9]{1,8})*$/;
|
|
|
41886
42714
|
const isLanguageCode = (value) => value != null && LANGUAGE_CODE.test(value);
|
|
41887
42715
|
/**
|
|
41888
42716
|
* @slot - Add `mds-pref-language-item` element/s.
|
|
42717
|
+
* @category preferences
|
|
41889
42718
|
*/
|
|
41890
42719
|
class MdsPrefLanguage {
|
|
41891
42720
|
constructor(hostRef) {
|
|
@@ -42003,7 +42832,7 @@ class MdsPrefLanguage {
|
|
|
42003
42832
|
}
|
|
42004
42833
|
render() {
|
|
42005
42834
|
var _a;
|
|
42006
|
-
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')))));
|
|
42007
42836
|
}
|
|
42008
42837
|
get element() { return getElement(this); }
|
|
42009
42838
|
static get watchers() { return {
|
|
@@ -42247,6 +43076,9 @@ var miBaselineCheckCircle = `<svg xmlns="http://www.w3.org/2000/svg" width="24"
|
|
|
42247
43076
|
|
|
42248
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}`;
|
|
42249
43078
|
|
|
43079
|
+
/**
|
|
43080
|
+
* @parent mds-pref-language
|
|
43081
|
+
*/
|
|
42250
43082
|
class MdsPrefLanguageItem {
|
|
42251
43083
|
constructor(hostRef) {
|
|
42252
43084
|
registerInstance(this, hostRef);
|
|
@@ -42284,7 +43116,7 @@ class MdsPrefLanguageItem {
|
|
|
42284
43116
|
return (
|
|
42285
43117
|
// the item is an entry of the `menu` the mds-dropdown of the controller opens:
|
|
42286
43118
|
// without the role axe rejects it as a child of that menu (aria-required-children)
|
|
42287
|
-
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') }))));
|
|
42288
43120
|
}
|
|
42289
43121
|
static get watchers() { return {
|
|
42290
43122
|
"code": [{
|
|
@@ -42357,6 +43189,9 @@ var localeIt$c = {
|
|
|
42357
43189
|
|
|
42358
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))}}`;
|
|
42359
43191
|
|
|
43192
|
+
/**
|
|
43193
|
+
* @category preferences
|
|
43194
|
+
*/
|
|
42360
43195
|
class MdsPrefMode {
|
|
42361
43196
|
constructor(hostRef) {
|
|
42362
43197
|
registerInstance(this, hostRef);
|
|
@@ -42585,7 +43420,7 @@ class MdsPrefMode {
|
|
|
42585
43420
|
}
|
|
42586
43421
|
render() {
|
|
42587
43422
|
var _a;
|
|
42588
|
-
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) }))));
|
|
42589
43424
|
}
|
|
42590
43425
|
get element() { return getElement(this); }
|
|
42591
43426
|
static get watchers() { return {
|
|
@@ -42656,6 +43491,7 @@ const mdsPrefThemeCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
42656
43491
|
|
|
42657
43492
|
/**
|
|
42658
43493
|
* @slot - Add `mds-pref-theme-item` element/s.
|
|
43494
|
+
* @category preferences
|
|
42659
43495
|
*/
|
|
42660
43496
|
class MdsPrefTheme {
|
|
42661
43497
|
constructor(hostRef) {
|
|
@@ -42895,7 +43731,7 @@ class MdsPrefTheme {
|
|
|
42895
43731
|
this.setTheme(name, scheme);
|
|
42896
43732
|
}
|
|
42897
43733
|
render() {
|
|
42898
|
-
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 }))));
|
|
42899
43735
|
}
|
|
42900
43736
|
get element() { return getElement(this); }
|
|
42901
43737
|
static get watchers() { return {
|
|
@@ -42928,6 +43764,9 @@ class MdsPrefTheme {
|
|
|
42928
43764
|
|
|
42929
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))))}`;
|
|
42930
43766
|
|
|
43767
|
+
/**
|
|
43768
|
+
* @parent mds-pref-theme
|
|
43769
|
+
*/
|
|
42931
43770
|
class MdsPrefThemeItem {
|
|
42932
43771
|
constructor(hostRef) {
|
|
42933
43772
|
registerInstance(this, hostRef);
|
|
@@ -42959,7 +43798,7 @@ class MdsPrefThemeItem {
|
|
|
42959
43798
|
return (
|
|
42960
43799
|
// the item is an entry of the `menu` the mds-dropdown of the controller opens:
|
|
42961
43800
|
// without the role axe rejects it as a child of that menu (aria-required-children)
|
|
42962
|
-
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" }))));
|
|
42963
43802
|
}
|
|
42964
43803
|
static get style() { return mdsPrefThemeItemCss(); }
|
|
42965
43804
|
static get cmpMeta() { return {
|
|
@@ -42981,13 +43820,14 @@ const mdsPriceTableCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
42981
43820
|
|
|
42982
43821
|
/**
|
|
42983
43822
|
* @slot - Add `mds-price-table-list` elements or `components` to this slot.
|
|
43823
|
+
* @category data
|
|
42984
43824
|
*/
|
|
42985
43825
|
class MdsPriceTable {
|
|
42986
43826
|
constructor(hostRef) {
|
|
42987
43827
|
registerInstance(this, hostRef);
|
|
42988
43828
|
}
|
|
42989
43829
|
render() {
|
|
42990
|
-
return (hAsync(Host, { key: '
|
|
43830
|
+
return (hAsync(Host, { key: '5b2c5ebe5e79a4ee796774ac55c0d868725224f4' }, hAsync("slot", { key: 'a2bf66dfd60112fe2949cf7bc3d13f152d0934a4' })));
|
|
42991
43831
|
}
|
|
42992
43832
|
static get style() { return mdsPriceTableCss(); }
|
|
42993
43833
|
static get cmpMeta() { return {
|
|
@@ -43005,13 +43845,14 @@ const mdsPriceTableFeaturesCss = () => `@layer reset,vendor,theme,base,component
|
|
|
43005
43845
|
/**
|
|
43006
43846
|
* @part header - Selects the HTML element wrapper of label text
|
|
43007
43847
|
* @slot - Expects to slot `mds-price-table-features-row` component
|
|
43848
|
+
* @parent mds-price-table
|
|
43008
43849
|
*/
|
|
43009
43850
|
class MdsPriceTableFeatures {
|
|
43010
43851
|
constructor(hostRef) {
|
|
43011
43852
|
registerInstance(this, hostRef);
|
|
43012
43853
|
}
|
|
43013
43854
|
render() {
|
|
43014
|
-
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' }))))));
|
|
43015
43856
|
}
|
|
43016
43857
|
static get style() { return mdsPriceTableFeaturesCss(); }
|
|
43017
43858
|
static get cmpMeta() { return {
|
|
@@ -43034,6 +43875,7 @@ const mdsPriceTableFeaturesCellCss = () => `@layer reset,vendor,theme,base,compo
|
|
|
43034
43875
|
* @part icon - Selects the HTML element of the icon when `type` attribute when is `supported` or `unsupported`.
|
|
43035
43876
|
* @part text - Selects the HTML element wrapper of text when `type` attribute when is `text`.
|
|
43036
43877
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43878
|
+
* @parent mds-price-table-features-row
|
|
43037
43879
|
*/
|
|
43038
43880
|
class MdsPriceTableFeaturesCell {
|
|
43039
43881
|
constructor(hostRef) {
|
|
@@ -43044,7 +43886,7 @@ class MdsPriceTableFeaturesCell {
|
|
|
43044
43886
|
this.type = 'text';
|
|
43045
43887
|
}
|
|
43046
43888
|
render() {
|
|
43047
|
-
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' })));
|
|
43048
43890
|
}
|
|
43049
43891
|
static get style() { return mdsPriceTableFeaturesCellCss(); }
|
|
43050
43892
|
static get cmpMeta() { return {
|
|
@@ -43063,6 +43905,7 @@ const mdsPriceTableFeaturesRowCss = () => `@layer reset,vendor,theme,base,compon
|
|
|
43063
43905
|
|
|
43064
43906
|
/**
|
|
43065
43907
|
* @slot - Expects to slot `mds-price-table-features-cell` component
|
|
43908
|
+
* @parent mds-price-table-features
|
|
43066
43909
|
*/
|
|
43067
43910
|
class MdsPriceTableFeaturesRow {
|
|
43068
43911
|
constructor(hostRef) {
|
|
@@ -43076,7 +43919,7 @@ class MdsPriceTableFeaturesRow {
|
|
|
43076
43919
|
});
|
|
43077
43920
|
}
|
|
43078
43921
|
render() {
|
|
43079
|
-
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' })));
|
|
43080
43923
|
}
|
|
43081
43924
|
get host() { return getElement(this); }
|
|
43082
43925
|
static get style() { return mdsPriceTableFeaturesRowCss(); }
|
|
@@ -43096,13 +43939,14 @@ const mdsPriceTableHeaderCss = () => `@layer reset,vendor,theme,base,components,
|
|
|
43096
43939
|
|
|
43097
43940
|
/**
|
|
43098
43941
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43942
|
+
* @parent mds-price-table
|
|
43099
43943
|
*/
|
|
43100
43944
|
class MdsPriceTableHeader {
|
|
43101
43945
|
constructor(hostRef) {
|
|
43102
43946
|
registerInstance(this, hostRef);
|
|
43103
43947
|
}
|
|
43104
43948
|
render() {
|
|
43105
|
-
return (hAsync(Host, { key: '
|
|
43949
|
+
return (hAsync(Host, { key: 'b401e09db75feb79fdb2f9dbaae3cbeb8d8c4380' }, hAsync("slot", { key: 'fb9db117e8e948a182ba305590863a9d424f1ca4' })));
|
|
43106
43950
|
}
|
|
43107
43951
|
static get style() { return mdsPriceTableHeaderCss(); }
|
|
43108
43952
|
static get cmpMeta() { return {
|
|
@@ -43125,6 +43969,7 @@ const mdsPriceTableListCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
43125
43969
|
* @slot item - Add `mds-price-table-list-item` component, `HTML elements` or other `components` to this slot.
|
|
43126
43970
|
* @slot header - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43127
43971
|
* @slot price - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43972
|
+
* @parent mds-price-table mds-price-table-header
|
|
43128
43973
|
*/
|
|
43129
43974
|
class MdsPriceTableList {
|
|
43130
43975
|
constructor(hostRef) {
|
|
@@ -43142,7 +43987,7 @@ class MdsPriceTableList {
|
|
|
43142
43987
|
observeChildren(this.hostElement, this.updateItems);
|
|
43143
43988
|
}
|
|
43144
43989
|
render() {
|
|
43145
|
-
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" }))));
|
|
43146
43991
|
}
|
|
43147
43992
|
get hostElement() { return getElement(this); }
|
|
43148
43993
|
static get style() { return mdsPriceTableListCss(); }
|
|
@@ -43163,6 +44008,7 @@ const mdsPriceTableListItemCss = () => `@layer reset,vendor,theme,base,component
|
|
|
43163
44008
|
/**
|
|
43164
44009
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43165
44010
|
* @part icon - The check icon of a `supported` item, a dash when it is not
|
|
44011
|
+
* @parent mds-price-table-list
|
|
43166
44012
|
*/
|
|
43167
44013
|
class MdsPriceTableListItem {
|
|
43168
44014
|
constructor(hostRef) {
|
|
@@ -43177,7 +44023,7 @@ class MdsPriceTableListItem {
|
|
|
43177
44023
|
this.typography = 'detail';
|
|
43178
44024
|
}
|
|
43179
44025
|
render() {
|
|
43180
|
-
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' }))));
|
|
43181
44027
|
}
|
|
43182
44028
|
static get style() { return mdsPriceTableListItemCss(); }
|
|
43183
44029
|
static get cmpMeta() { return {
|
|
@@ -43198,6 +44044,7 @@ const mdsProgressCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
43198
44044
|
/**
|
|
43199
44045
|
* @part progress - Selects the `div` element that contains the progress bar
|
|
43200
44046
|
* @part radial-progress - Selects the `mds-radial-progress` element that contains the radial progress bar
|
|
44047
|
+
* @category feedback
|
|
43201
44048
|
*/
|
|
43202
44049
|
class MdsProgress {
|
|
43203
44050
|
constructor(hostRef) {
|
|
@@ -43270,7 +44117,7 @@ class MdsProgress {
|
|
|
43270
44117
|
this.leftOut = this.element.getAttribute('aria-hidden') === 'true';
|
|
43271
44118
|
}
|
|
43272
44119
|
render() {
|
|
43273
|
-
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'
|
|
43274
44121
|
? { flexGrow: `${this.clampedProgress()}` }
|
|
43275
44122
|
: { flexGrow: `${this.clampedProgress()}`, width: '100%' } }))));
|
|
43276
44123
|
}
|
|
@@ -43322,11 +44169,12 @@ var localeIt$a = {
|
|
|
43322
44169
|
clearNotifications: clearNotifications
|
|
43323
44170
|
};
|
|
43324
44171
|
|
|
43325
|
-
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%)}}`;
|
|
43326
44173
|
|
|
43327
44174
|
/**
|
|
43328
44175
|
* @part notifications - The container wrapper of the notifications.
|
|
43329
44176
|
* @slot - Add `HTML elements` or `components`, it is **recommended** to use `mds-push-notification` element.
|
|
44177
|
+
* @category feedback
|
|
43330
44178
|
*/
|
|
43331
44179
|
class MdsPushNotification {
|
|
43332
44180
|
constructor(hostRef) {
|
|
@@ -43478,7 +44326,7 @@ class MdsPushNotification {
|
|
|
43478
44326
|
this.visible = undefined;
|
|
43479
44327
|
}
|
|
43480
44328
|
render() {
|
|
43481
|
-
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) }))));
|
|
43482
44330
|
}
|
|
43483
44331
|
get host() { return getElement(this); }
|
|
43484
44332
|
static get watchers() { return {
|
|
@@ -43672,6 +44520,7 @@ const mdsPushNotificationItemCss = () => `@layer reset,vendor,theme,base,compone
|
|
|
43672
44520
|
* @part picture - The picture image added by `src` attribute
|
|
43673
44521
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
43674
44522
|
* @slot badge - Add `HTML elements` or `components`, it is **recommended** to use `mds-badge` element.
|
|
44523
|
+
* @parent mds-push-notification
|
|
43675
44524
|
*/
|
|
43676
44525
|
class MdsPushNotificationItem {
|
|
43677
44526
|
constructor(hostRef) {
|
|
@@ -43749,9 +44598,9 @@ class MdsPushNotificationItem {
|
|
|
43749
44598
|
}
|
|
43750
44599
|
render() {
|
|
43751
44600
|
var _a;
|
|
43752
|
-
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'
|
|
43753
44602
|
? dayjs(this.datetime).fromNow()
|
|
43754
|
-
: 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 }))));
|
|
43755
44604
|
}
|
|
43756
44605
|
get host() { return getElement(this); }
|
|
43757
44606
|
static get watchers() { return {
|
|
@@ -43789,6 +44638,7 @@ const mdsQuoteCss = () => `@layer reset,vendor,theme,base,components,utilities;:
|
|
|
43789
44638
|
/**
|
|
43790
44639
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43791
44640
|
* @slot author - Add `text string`, `HTML elements` or `components` to this slot.
|
|
44641
|
+
* @category content
|
|
43792
44642
|
*/
|
|
43793
44643
|
class MdsQuote {
|
|
43794
44644
|
constructor(hostRef) {
|
|
@@ -43803,7 +44653,7 @@ class MdsQuote {
|
|
|
43803
44653
|
this.tag = 'h3';
|
|
43804
44654
|
}
|
|
43805
44655
|
render() {
|
|
43806
|
-
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" }))));
|
|
43807
44657
|
}
|
|
43808
44658
|
static get style() { return mdsQuoteCss(); }
|
|
43809
44659
|
static get cmpMeta() { return {
|
|
@@ -43854,6 +44704,7 @@ const mdsRadialMenuCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
43854
44704
|
/**
|
|
43855
44705
|
* @slot item - Add `mds-radial-menu-item` elements or `components` to this slot.
|
|
43856
44706
|
* @part radial-menu - The ring that lays out the `item` slot around the trigger
|
|
44707
|
+
* @category actions
|
|
43857
44708
|
*/
|
|
43858
44709
|
class MdsRadialMenu {
|
|
43859
44710
|
constructor(hostRef) {
|
|
@@ -44026,7 +44877,7 @@ class MdsRadialMenu {
|
|
|
44026
44877
|
this.listenOutside(!!newValue);
|
|
44027
44878
|
}
|
|
44028
44879
|
render() {
|
|
44029
|
-
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" })));
|
|
44030
44881
|
}
|
|
44031
44882
|
get hostElement() { return getElement(this); }
|
|
44032
44883
|
static get watchers() { return {
|
|
@@ -44081,6 +44932,9 @@ class MdsRadialMenu {
|
|
|
44081
44932
|
|
|
44082
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}`;
|
|
44083
44934
|
|
|
44935
|
+
/**
|
|
44936
|
+
* @parent mds-radial-menu
|
|
44937
|
+
*/
|
|
44084
44938
|
class MdsRadialMenuItem {
|
|
44085
44939
|
constructor(hostRef) {
|
|
44086
44940
|
registerInstance(this, hostRef);
|
|
@@ -44098,7 +44952,7 @@ class MdsRadialMenuItem {
|
|
|
44098
44952
|
this.size = 'lg';
|
|
44099
44953
|
}
|
|
44100
44954
|
render() {
|
|
44101
|
-
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))));
|
|
44102
44956
|
}
|
|
44103
44957
|
static get style() { return mdsRadialMenuItemCss(); }
|
|
44104
44958
|
static get cmpMeta() { return {
|
|
@@ -44122,6 +44976,7 @@ const mdsRadialProgressCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
44122
44976
|
/**
|
|
44123
44977
|
* @part value-container - Selects the value container of the radial progress.
|
|
44124
44978
|
* @part icon - Selects the icon of the radial progress.
|
|
44979
|
+
* @category feedback
|
|
44125
44980
|
*/
|
|
44126
44981
|
class MdsRadialProgress {
|
|
44127
44982
|
constructor(hostRef) {
|
|
@@ -44187,7 +45042,7 @@ class MdsRadialProgress {
|
|
|
44187
45042
|
render() {
|
|
44188
45043
|
const progressVar = `${(this.animatedProgress * 100).toFixed(2)}%`;
|
|
44189
45044
|
const progressText = this.progressPercentage(this.clampProgress(this.progress));
|
|
44190
|
-
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)))));
|
|
44191
45046
|
}
|
|
44192
45047
|
static get watchers() { return {
|
|
44193
45048
|
"progress": [{
|
|
@@ -44213,12 +45068,15 @@ class MdsRadialProgress {
|
|
|
44213
45068
|
|
|
44214
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}`;
|
|
44215
45070
|
|
|
45071
|
+
/**
|
|
45072
|
+
* @category structure
|
|
45073
|
+
*/
|
|
44216
45074
|
class MdsSeparator {
|
|
44217
45075
|
constructor(hostRef) {
|
|
44218
45076
|
registerInstance(this, hostRef);
|
|
44219
45077
|
}
|
|
44220
45078
|
render() {
|
|
44221
|
-
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'] }));
|
|
44222
45080
|
}
|
|
44223
45081
|
static get style() { return mdsSeparatorCss(); }
|
|
44224
45082
|
static get cmpMeta() { return {
|
|
@@ -44239,6 +45097,9 @@ var awaitIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2
|
|
|
44239
45097
|
|
|
44240
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)))}}`;
|
|
44241
45099
|
|
|
45100
|
+
/**
|
|
45101
|
+
* @category feedback
|
|
45102
|
+
*/
|
|
44242
45103
|
class MdsSpinner {
|
|
44243
45104
|
constructor(hostRef) {
|
|
44244
45105
|
registerInstance(this, hostRef);
|
|
@@ -44253,7 +45114,7 @@ class MdsSpinner {
|
|
|
44253
45114
|
}
|
|
44254
45115
|
}
|
|
44255
45116
|
render() {
|
|
44256
|
-
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 })));
|
|
44257
45118
|
}
|
|
44258
45119
|
static get watchers() { return {
|
|
44259
45120
|
"running": [{
|
|
@@ -44280,6 +45141,7 @@ const mdsStatusBarCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
44280
45141
|
* @part actions - Selects the `actions` container element wrapped in shadowDOM.
|
|
44281
45142
|
* @part status-bar - Selects the `status-bar` window component wrapped in shadowDOM.
|
|
44282
45143
|
* @part status-bar-area - Selects the `status-bar-area` which wraps `status-bar` element with darker area in shadowDOM.
|
|
45144
|
+
* @category actions
|
|
44283
45145
|
*/
|
|
44284
45146
|
class MdsStatusBar {
|
|
44285
45147
|
constructor(hostRef) {
|
|
@@ -44309,7 +45171,7 @@ class MdsStatusBar {
|
|
|
44309
45171
|
this.visible = undefined;
|
|
44310
45172
|
}
|
|
44311
45173
|
render() {
|
|
44312
|
-
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' })))))));
|
|
44313
45175
|
}
|
|
44314
45176
|
get host() { return getElement(this); }
|
|
44315
45177
|
static get watchers() { return {
|
|
@@ -44341,6 +45203,7 @@ const mdsStepperBarCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
44341
45203
|
* @slot content - Add `HTML elements` or `components`, one per mds-stepper-bar-item added
|
|
44342
45204
|
* @part items - Selects the `items` container element wrapped in shadowDOM.
|
|
44343
45205
|
* @part contents - Selects the `contents` container element wrapped in shadowDOM.
|
|
45206
|
+
* @category navigation
|
|
44344
45207
|
*/
|
|
44345
45208
|
class MdsStepperBar {
|
|
44346
45209
|
constructor(hostRef) {
|
|
@@ -44440,7 +45303,7 @@ class MdsStepperBar {
|
|
|
44440
45303
|
this.setCurrent(newValue);
|
|
44441
45304
|
}
|
|
44442
45305
|
render() {
|
|
44443
|
-
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" }))));
|
|
44444
45307
|
}
|
|
44445
45308
|
get element() { return getElement(this); }
|
|
44446
45309
|
static get watchers() { return {
|
|
@@ -44511,6 +45374,7 @@ const mdsStepperBarItemCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
44511
45374
|
|
|
44512
45375
|
/**
|
|
44513
45376
|
* @part badge - The badge wrapper
|
|
45377
|
+
* @parent mds-stepper-bar
|
|
44514
45378
|
*/
|
|
44515
45379
|
class MdsStepperBarItem {
|
|
44516
45380
|
constructor(hostRef) {
|
|
@@ -44589,7 +45453,7 @@ class MdsStepperBarItem {
|
|
|
44589
45453
|
this.isCurrent = newValue;
|
|
44590
45454
|
}
|
|
44591
45455
|
render() {
|
|
44592
|
-
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()))));
|
|
44593
45457
|
}
|
|
44594
45458
|
get host() { return getElement(this); }
|
|
44595
45459
|
static get watchers() { return {
|
|
@@ -44624,7 +45488,7 @@ class MdsStepperBarItem {
|
|
|
44624
45488
|
}; }
|
|
44625
45489
|
}
|
|
44626
45490
|
|
|
44627
|
-
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}}`;
|
|
44628
45492
|
|
|
44629
45493
|
/**
|
|
44630
45494
|
* @part contents - Selects the container of the tabbed contents elements.
|
|
@@ -44634,6 +45498,7 @@ const mdsTabCss = () => `@layer reset,vendor,theme,base,components,utilities;:ho
|
|
|
44634
45498
|
* items are links (`href`) to other pages or places and the page, not the component, shows the
|
|
44635
45499
|
* content.
|
|
44636
45500
|
* @slot - Add `mds-tab-item` element/s.
|
|
45501
|
+
* @category navigation
|
|
44637
45502
|
*/
|
|
44638
45503
|
class MdsTab {
|
|
44639
45504
|
constructor(hostRef) {
|
|
@@ -44873,12 +45738,12 @@ class MdsTab {
|
|
|
44873
45738
|
});
|
|
44874
45739
|
}
|
|
44875
45740
|
render() {
|
|
44876
|
-
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: {
|
|
44877
45742
|
'--mds-tab-slider-width': `${this.sliderWidth}px`,
|
|
44878
45743
|
'--mds-tab-slider-height': `${this.sliderHeight}px`,
|
|
44879
45744
|
'--mds-tab-slider-offset-x': `${this.sliderOffsetX}px`,
|
|
44880
45745
|
'--mds-tab-slider-offset-y': `${this.sliderOffsetY}px`,
|
|
44881
|
-
} })))), 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 }))));
|
|
44882
45747
|
}
|
|
44883
45748
|
get element() { return getElement(this); }
|
|
44884
45749
|
static get watchers() { return {
|
|
@@ -44932,6 +45797,7 @@ const mdsTabBarCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
44932
45797
|
|
|
44933
45798
|
/**
|
|
44934
45799
|
* @slot - Add `mds-tab-bar-item` element/s.
|
|
45800
|
+
* @category navigation
|
|
44935
45801
|
*/
|
|
44936
45802
|
class MdsTabBar {
|
|
44937
45803
|
constructor(hostRef) {
|
|
@@ -44959,7 +45825,7 @@ class MdsTabBar {
|
|
|
44959
45825
|
});
|
|
44960
45826
|
}
|
|
44961
45827
|
render() {
|
|
44962
|
-
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' })));
|
|
44963
45829
|
}
|
|
44964
45830
|
get element() { return getElement(this); }
|
|
44965
45831
|
static get style() { return mdsTabBarCss(); }
|
|
@@ -44977,6 +45843,7 @@ const mdsTabBarItemCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
44977
45843
|
|
|
44978
45844
|
/**
|
|
44979
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
|
|
44980
45847
|
*/
|
|
44981
45848
|
class MdsTabBarItem {
|
|
44982
45849
|
constructor(hostRef) {
|
|
@@ -45024,7 +45891,7 @@ class MdsTabBarItem {
|
|
|
45024
45891
|
this.label = sanitizeLabel(newValue);
|
|
45025
45892
|
}
|
|
45026
45893
|
render() {
|
|
45027
|
-
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 }))));
|
|
45028
45895
|
}
|
|
45029
45896
|
get element() { return getElement(this); }
|
|
45030
45897
|
static get watchers() { return {
|
|
@@ -45052,6 +45919,7 @@ const mdsTabItemCss = () => `@layer reset,vendor,theme,base,components,utilities
|
|
|
45052
45919
|
|
|
45053
45920
|
/**
|
|
45054
45921
|
* @part button - The `mds-button` of the tab
|
|
45922
|
+
* @parent mds-tab
|
|
45055
45923
|
*/
|
|
45056
45924
|
class MdsTabItem {
|
|
45057
45925
|
constructor(hostRef) {
|
|
@@ -45103,7 +45971,7 @@ class MdsTabItem {
|
|
|
45103
45971
|
}
|
|
45104
45972
|
render() {
|
|
45105
45973
|
var _a;
|
|
45106
|
-
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",
|
|
45107
45975
|
// a tab controls a panel; one with href is a link to another page or place, which
|
|
45108
45976
|
// ARIA names as such, the selected one being the current one
|
|
45109
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,
|
|
@@ -45172,6 +46040,7 @@ const mdsTableCss = () => `@layer reset,vendor,theme,base,components,utilities;@
|
|
|
45172
46040
|
* @part table - Selects the table element
|
|
45173
46041
|
* @part batch-actions - Selects the element which wraps the batch actions
|
|
45174
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
|
|
45175
46044
|
*/
|
|
45176
46045
|
class MdsTable {
|
|
45177
46046
|
constructor(hostRef) {
|
|
@@ -45387,7 +46256,7 @@ class MdsTable {
|
|
|
45387
46256
|
(_c = this.tableBodyObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
|
|
45388
46257
|
}
|
|
45389
46258
|
render() {
|
|
45390
|
-
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" }))))));
|
|
45391
46260
|
}
|
|
45392
46261
|
get host() { return getElement(this); }
|
|
45393
46262
|
static get watchers() { return {
|
|
@@ -45423,13 +46292,14 @@ const mdsTableBodyCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
45423
46292
|
|
|
45424
46293
|
/**
|
|
45425
46294
|
* @slot - Put `mds-table-row` element/s.
|
|
46295
|
+
* @parent mds-table
|
|
45426
46296
|
*/
|
|
45427
46297
|
class MdsTableBody {
|
|
45428
46298
|
constructor(hostRef) {
|
|
45429
46299
|
registerInstance(this, hostRef);
|
|
45430
46300
|
}
|
|
45431
46301
|
render() {
|
|
45432
|
-
return (hAsync(Host, { key: '
|
|
46302
|
+
return (hAsync(Host, { key: '89ac1010f1ef4b0555dbd138bda1f863f012cfa6', role: "rowgroup", "pref-animation": preferenceStore.state.animation }, hAsync("slot", { key: 'cf20e44a478a9cf387a9f986c52575a7ed2e854b' })));
|
|
45433
46303
|
}
|
|
45434
46304
|
static get style() { return mdsTableBodyCss(); }
|
|
45435
46305
|
static get cmpMeta() { return {
|
|
@@ -45449,6 +46319,7 @@ const mdsTableCellCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
45449
46319
|
|
|
45450
46320
|
/**
|
|
45451
46321
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
46322
|
+
* @parent mds-table-row mds-table-footer
|
|
45452
46323
|
*/
|
|
45453
46324
|
class MdsTableCell {
|
|
45454
46325
|
constructor(hostRef) {
|
|
@@ -45458,7 +46329,7 @@ class MdsTableCell {
|
|
|
45458
46329
|
setAttributeIfEmpty(this.host, 'role', 'cell');
|
|
45459
46330
|
}
|
|
45460
46331
|
render() {
|
|
45461
|
-
return (hAsync(Host, { key: '
|
|
46332
|
+
return (hAsync(Host, { key: 'a367bbd8d985a03897584b9cd8e8c7deac57e83c', "pref-animation": preferenceStore.state.animation }, hAsync("slot", { key: '1e10c2c1d7a582f3a33cdc6bb683200213a74462' })));
|
|
45462
46333
|
}
|
|
45463
46334
|
get host() { return getElement(this); }
|
|
45464
46335
|
static get style() { return mdsTableCellCss(); }
|
|
@@ -45478,6 +46349,7 @@ const mdsTableFooterCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
45478
46349
|
|
|
45479
46350
|
/**
|
|
45480
46351
|
* @slot - Add `mds-table-cell` element/s: the footer is itself a row, for totals and counts.
|
|
46352
|
+
* @parent mds-table
|
|
45481
46353
|
*/
|
|
45482
46354
|
class MdsTableFooter {
|
|
45483
46355
|
constructor(hostRef) {
|
|
@@ -45492,7 +46364,7 @@ class MdsTableFooter {
|
|
|
45492
46364
|
((_a = this.host.closest('mds-table')) === null || _a === void 0 ? void 0 : _a.querySelector('mds-table-row > [slot="action"]')) != null;
|
|
45493
46365
|
}
|
|
45494
46366
|
render() {
|
|
45495
|
-
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" })));
|
|
45496
46368
|
}
|
|
45497
46369
|
get host() { return getElement(this); }
|
|
45498
46370
|
static get style() { return mdsTableFooterCss(); }
|
|
@@ -45551,6 +46423,7 @@ const mdsTableHeaderCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
45551
46423
|
* @slot - Add `mds-table-header-cell` element/s, one per column: the header is itself the row of
|
|
45552
46424
|
* the column headings.
|
|
45553
46425
|
* @part actions - The heading of the Actions column, shown while rows have `slot="action"` content
|
|
46426
|
+
* @parent mds-table
|
|
45554
46427
|
*/
|
|
45555
46428
|
class MdsTableHeader {
|
|
45556
46429
|
constructor(hostRef) {
|
|
@@ -45610,7 +46483,7 @@ class MdsTableHeader {
|
|
|
45610
46483
|
this.hasActions = ((_a = this.table) === null || _a === void 0 ? void 0 : _a.querySelector('mds-table-row > [slot="action"]')) != null;
|
|
45611
46484
|
}
|
|
45612
46485
|
render() {
|
|
45613
|
-
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') }))));
|
|
45614
46487
|
}
|
|
45615
46488
|
get host() { return getElement(this); }
|
|
45616
46489
|
static get style() { return mdsTableHeaderCss(); }
|
|
@@ -45643,6 +46516,7 @@ const naturalOrder = new WeakMap();
|
|
|
45643
46516
|
/**
|
|
45644
46517
|
* @part action - The `mds-button` that sorts the column, with the `label`: only when `sortable`
|
|
45645
46518
|
* @part label - The `label` of a column that is not `sortable`
|
|
46519
|
+
* @parent mds-table-header
|
|
45646
46520
|
*/
|
|
45647
46521
|
class MdsTableHeaderCell {
|
|
45648
46522
|
constructor(hostRef) {
|
|
@@ -45797,7 +46671,7 @@ class MdsTableHeaderCell {
|
|
|
45797
46671
|
this.applyDirection();
|
|
45798
46672
|
}
|
|
45799
46673
|
render() {
|
|
45800
|
-
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))));
|
|
45801
46675
|
}
|
|
45802
46676
|
get element() { return getElement(this); }
|
|
45803
46677
|
static get watchers() { return {
|
|
@@ -45858,11 +46732,12 @@ const isSafari = () => {
|
|
|
45858
46732
|
|
|
45859
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}}`;
|
|
45860
46734
|
|
|
46735
|
+
// TODO [bug, style]: on Safari actions menu is visually broken
|
|
45861
46736
|
/**
|
|
45862
46737
|
* @slot - Put `mds-table-cell` element/s.
|
|
45863
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
|
|
45864
46740
|
*/
|
|
45865
|
-
// TODO [bug, style]: on Safari actions menu is visually broken
|
|
45866
46741
|
class MdsTableRow {
|
|
45867
46742
|
constructor(hostRef) {
|
|
45868
46743
|
registerInstance(this, hostRef);
|
|
@@ -45929,9 +46804,9 @@ class MdsTableRow {
|
|
|
45929
46804
|
void ((_a = this.host.closest('mds-table')) === null || _a === void 0 ? void 0 : _a.updateSelection());
|
|
45930
46805
|
}
|
|
45931
46806
|
render() {
|
|
45932
|
-
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
|
|
45933
46808
|
? { marginRight: `calc(${this.sizerWidth} + var(--mds-table-cell-padding))` }
|
|
45934
|
-
: undefined }, hAsync("slot", { key: '
|
|
46809
|
+
: undefined }, hAsync("slot", { key: 'd0e4738b292f8632c08df63c6a6f3c21df443597', name: "action", onSlotchange: this.onActionSlotChange })))))));
|
|
45935
46810
|
}
|
|
45936
46811
|
get host() { return getElement(this); }
|
|
45937
46812
|
static get watchers() { return {
|
|
@@ -46200,6 +47075,7 @@ const defaultAnimationSpeed = 0.5;
|
|
|
46200
47075
|
const defaultPlaceholderChar = ' ';
|
|
46201
47076
|
/**
|
|
46202
47077
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
47078
|
+
* @category content
|
|
46203
47079
|
*/
|
|
46204
47080
|
class MdsText {
|
|
46205
47081
|
constructor(hostRef) {
|
|
@@ -46283,7 +47159,7 @@ class MdsText {
|
|
|
46283
47159
|
}
|
|
46284
47160
|
render() {
|
|
46285
47161
|
var _a;
|
|
46286
|
-
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)));
|
|
46287
47163
|
}
|
|
46288
47164
|
get host() { return getElement(this); }
|
|
46289
47165
|
static get watchers() { return {
|
|
@@ -46339,6 +47215,7 @@ const mdsToastCss = () => `@layer reset,vendor,theme,base,components,utilities;@
|
|
|
46339
47215
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
46340
47216
|
* @slot icon - Insert an icon image, it can be `HTML elements` or `components`, it is **recommended** to add `mds-icon` element.
|
|
46341
47217
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
47218
|
+
* @category feedback
|
|
46342
47219
|
*/
|
|
46343
47220
|
class MdsToast {
|
|
46344
47221
|
constructor(hostRef) {
|
|
@@ -46529,7 +47406,7 @@ class MdsToast {
|
|
|
46529
47406
|
// focus. The host is the region and stays in the page, so the content that appears inside
|
|
46530
47407
|
// it is what a screen reader reads out. Inside an mds-toast-region the region is the live
|
|
46531
47408
|
// region, already in the page before any toast: a toast of its own would nest a second one
|
|
46532
|
-
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() })))));
|
|
46533
47410
|
}
|
|
46534
47411
|
get hostElement() { return getElement(this); }
|
|
46535
47412
|
static get watchers() { return {
|
|
@@ -46571,6 +47448,7 @@ const hasDuration = (toast) => {
|
|
|
46571
47448
|
};
|
|
46572
47449
|
/**
|
|
46573
47450
|
* @slot - Add `mds-toast` elements, one per message: the region lines up the visible ones at its edge.
|
|
47451
|
+
* @category feedback
|
|
46574
47452
|
*/
|
|
46575
47453
|
class MdsToastRegion {
|
|
46576
47454
|
constructor(hostRef) {
|
|
@@ -46663,7 +47541,7 @@ class MdsToastRegion {
|
|
|
46663
47541
|
render() {
|
|
46664
47542
|
// the live region, in the page before any message: a toast added or shown inside it is
|
|
46665
47543
|
// announced. Not atomic, or every change would read out all the toasts again
|
|
46666
|
-
return (hAsync(Host, { key: '
|
|
47544
|
+
return (hAsync(Host, { key: '50e748d8c78ea73f1607d2b46cf56a79d2918fd1', role: "status", "aria-live": "polite", "aria-atomic": "false" }, hAsync("slot", { key: '936b87f0836896888f22c46ed28337b96f634fcc' })));
|
|
46667
47545
|
}
|
|
46668
47546
|
get host() { return getElement(this); }
|
|
46669
47547
|
static get watchers() { return {
|
|
@@ -46693,11 +47571,12 @@ var arrowSvg = `<svg width="15" height="9" viewBox="0 0 15 9" xmlns="http://www.
|
|
|
46693
47571
|
</svg>
|
|
46694
47572
|
`;
|
|
46695
47573
|
|
|
46696
|
-
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))}}`;
|
|
46697
47575
|
|
|
46698
47576
|
/**
|
|
46699
47577
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
46700
47578
|
* @part text - The text of the tooltip, around the default slot
|
|
47579
|
+
* @category overlays
|
|
46701
47580
|
*/
|
|
46702
47581
|
class MdsTooltip {
|
|
46703
47582
|
constructor(hostRef) {
|
|
@@ -46873,7 +47752,7 @@ class MdsTooltip {
|
|
|
46873
47752
|
(_a = this.floatingController) === null || _a === void 0 ? void 0 : _a.dismiss();
|
|
46874
47753
|
}
|
|
46875
47754
|
render() {
|
|
46876
|
-
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' }))));
|
|
46877
47756
|
}
|
|
46878
47757
|
get host() { return getElement(this); }
|
|
46879
47758
|
static get watchers() { return {
|
|
@@ -46940,6 +47819,7 @@ const mdsTreeCss = () => `@layer reset,vendor,theme,base,components,utilities;@l
|
|
|
46940
47819
|
|
|
46941
47820
|
/**
|
|
46942
47821
|
* @slot - Add `mds-tree-item` element/s.
|
|
47822
|
+
* @category navigation
|
|
46943
47823
|
*/
|
|
46944
47824
|
class MdsTree {
|
|
46945
47825
|
constructor(hostRef) {
|
|
@@ -47063,7 +47943,7 @@ class MdsTree {
|
|
|
47063
47943
|
// a list of lists: each item is an entry, and the items of an open branch are a list
|
|
47064
47944
|
// inside it, so a screen reader tells the level and the size of every branch. Not a
|
|
47065
47945
|
// role="tree", which promises the arrow keys and leaves no room for the actions of an item
|
|
47066
|
-
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 })));
|
|
47067
47947
|
}
|
|
47068
47948
|
get host() { return getElement(this); }
|
|
47069
47949
|
static get watchers() { return {
|
|
@@ -47147,6 +48027,7 @@ const mdsTreeItemCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
47147
48027
|
* @slot action - Add `mds-button`, `mds-icon` or other types component and HTML element/s.
|
|
47148
48028
|
* @part actions-container - Selects the wrapper of the container of the actions.
|
|
47149
48029
|
* @part actions-list - Selects the container of the actions.
|
|
48030
|
+
* @parent mds-tree mds-tree-item
|
|
47150
48031
|
*/
|
|
47151
48032
|
class MdsTreeItem {
|
|
47152
48033
|
constructor(hostRef) {
|
|
@@ -47271,7 +48152,7 @@ class MdsTreeItem {
|
|
|
47271
48152
|
this.childrenElement.removeEventListener('transitionend', this.checkChildrenTransitionEnd);
|
|
47272
48153
|
}
|
|
47273
48154
|
render() {
|
|
47274
|
-
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 }))));
|
|
47275
48156
|
}
|
|
47276
48157
|
get host() { return getElement(this); }
|
|
47277
48158
|
static get watchers() { return {
|
|
@@ -47354,6 +48235,9 @@ var localeIt$1 = {
|
|
|
47354
48235
|
|
|
47355
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))}}`;
|
|
47356
48237
|
|
|
48238
|
+
/**
|
|
48239
|
+
* @category content
|
|
48240
|
+
*/
|
|
47357
48241
|
class MdsUrlView {
|
|
47358
48242
|
constructor(hostRef) {
|
|
47359
48243
|
registerInstance(this, hostRef);
|
|
@@ -47399,7 +48283,7 @@ class MdsUrlView {
|
|
|
47399
48283
|
}
|
|
47400
48284
|
render() {
|
|
47401
48285
|
var _a, _b;
|
|
47402
|
-
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 }))));
|
|
47403
48287
|
}
|
|
47404
48288
|
get host() { return getElement(this); }
|
|
47405
48289
|
static get style() { return mdsUrlViewCss(); }
|
|
@@ -47480,6 +48364,7 @@ const mdsUsageCss = () => `@layer reset,vendor,theme,base,components,utilities;@
|
|
|
47480
48364
|
* @part header - The header that holds the `icon` and the `label`
|
|
47481
48365
|
* @part icon - The icon of the header, the one of `variant` unless `icon` is set
|
|
47482
48366
|
* @part label - The label of the header, the name of `variant` unless `alias` is set
|
|
48367
|
+
* @category content
|
|
47483
48368
|
*/
|
|
47484
48369
|
class MdsUsage {
|
|
47485
48370
|
constructor(hostRef) {
|
|
@@ -47499,7 +48384,7 @@ class MdsUsage {
|
|
|
47499
48384
|
var _a, _b;
|
|
47500
48385
|
// an unknown variant gets the info icon, as it gets the info styling
|
|
47501
48386
|
const icon = this.icon || ((_a = usageVariantIcon[this.variant]) !== null && _a !== void 0 ? _a : usageVariantIcon.info);
|
|
47502
|
-
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' }))));
|
|
47503
48388
|
}
|
|
47504
48389
|
static get style() { return mdsUsageCss(); }
|
|
47505
48390
|
static get cmpMeta() { return {
|
|
@@ -47521,6 +48406,7 @@ const mdsVideoWallCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
47521
48406
|
/**
|
|
47522
48407
|
* @slot - Write browser support missing message here.
|
|
47523
48408
|
* @slot content - Add video content overlay here, add `text string`, `HTML elements` or `components` to this slot.
|
|
48409
|
+
* @category content
|
|
47524
48410
|
*/
|
|
47525
48411
|
class MdsVideoWall {
|
|
47526
48412
|
constructor(hostRef) {
|
|
@@ -47553,7 +48439,7 @@ class MdsVideoWall {
|
|
|
47553
48439
|
this.hasContent = hasChildWithSlot(this.hostElement, 'content');
|
|
47554
48440
|
}
|
|
47555
48441
|
render() {
|
|
47556
|
-
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 }))));
|
|
47557
48443
|
}
|
|
47558
48444
|
get hostElement() { return getElement(this); }
|
|
47559
48445
|
static get style() { return mdsVideoWallCss(); }
|
|
@@ -47584,13 +48470,14 @@ const mdsZeroCss = () => `@layer reset,vendor,theme,base,components,utilities;@l
|
|
|
47584
48470
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
47585
48471
|
* @part contents - Selects the wrapper of the elements with attribute `slot="content"`.
|
|
47586
48472
|
* @part actions - Selects the wrapper of the elements with attribute `slot="action"`.
|
|
48473
|
+
* @category feedback
|
|
47587
48474
|
*/
|
|
47588
48475
|
class MdsZero {
|
|
47589
48476
|
constructor(hostRef) {
|
|
47590
48477
|
registerInstance(this, hostRef);
|
|
47591
48478
|
}
|
|
47592
48479
|
render() {
|
|
47593
|
-
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" }))));
|
|
47594
48481
|
}
|
|
47595
48482
|
static get style() { return mdsZeroCss(); }
|
|
47596
48483
|
static get cmpMeta() { return {
|
|
@@ -47616,6 +48503,7 @@ registerComponents([
|
|
|
47616
48503
|
MdsBanner,
|
|
47617
48504
|
MdsBenchmarkBar,
|
|
47618
48505
|
MdsBibliography,
|
|
48506
|
+
MdsBook,
|
|
47619
48507
|
MdsBreadcrumb,
|
|
47620
48508
|
MdsBreadcrumbItem,
|
|
47621
48509
|
MdsButton,
|