@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.js
CHANGED
|
@@ -7447,6 +7447,7 @@ const mdsAccordionCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
7447
7447
|
|
|
7448
7448
|
/**
|
|
7449
7449
|
* @slot - Add `mds-accordion-item` element/s.
|
|
7450
|
+
* @category structure
|
|
7450
7451
|
*/
|
|
7451
7452
|
class MdsAccordion {
|
|
7452
7453
|
constructor(hostRef) {
|
|
@@ -7521,7 +7522,7 @@ class MdsAccordion {
|
|
|
7521
7522
|
this.changedChildrenHandler(event);
|
|
7522
7523
|
}
|
|
7523
7524
|
render() {
|
|
7524
|
-
return (hAsync(Host, { key: '
|
|
7525
|
+
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' })));
|
|
7525
7526
|
}
|
|
7526
7527
|
get element() { return getElement(this); }
|
|
7527
7528
|
static get style() { return mdsAccordionCss(); }
|
|
@@ -7547,6 +7548,7 @@ const mdsAccordionItemCss = () => `@layer reset,vendor,theme,base,components,uti
|
|
|
7547
7548
|
* @part content - the content wrapper of the `default` slot
|
|
7548
7549
|
* @part icon - The arrow icon of the component
|
|
7549
7550
|
* @part label - The text label of the component
|
|
7551
|
+
* @parent mds-accordion
|
|
7550
7552
|
*/
|
|
7551
7553
|
class MdsAccordionItem {
|
|
7552
7554
|
constructor(hostRef) {
|
|
@@ -7569,7 +7571,7 @@ class MdsAccordionItem {
|
|
|
7569
7571
|
};
|
|
7570
7572
|
}
|
|
7571
7573
|
render() {
|
|
7572
|
-
return (hAsync(Host, { key: '
|
|
7574
|
+
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' })))));
|
|
7573
7575
|
}
|
|
7574
7576
|
get element() { return getElement(this); }
|
|
7575
7577
|
static get style() { return mdsAccordionItemCss(); }
|
|
@@ -7591,6 +7593,7 @@ const mdsAccordionTimerCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
7591
7593
|
|
|
7592
7594
|
/**
|
|
7593
7595
|
* @slot - Add `mds-accordion-timer-item` element/s.
|
|
7596
|
+
* @category structure
|
|
7594
7597
|
*/
|
|
7595
7598
|
class MdsAccordionTimer {
|
|
7596
7599
|
constructor(hostRef) {
|
|
@@ -7745,7 +7748,7 @@ class MdsAccordionTimer {
|
|
|
7745
7748
|
this.playTimer();
|
|
7746
7749
|
}
|
|
7747
7750
|
render() {
|
|
7748
|
-
return (hAsync(Host, { key: '
|
|
7751
|
+
return (hAsync(Host, { key: '6045cbc3d3e98aa5e6a46b62e1e7712561d629eb' }, hAsync("slot", { key: '7fdaff834166a1b695d10c8c4e9c664b28761a1d' })));
|
|
7749
7752
|
}
|
|
7750
7753
|
get element() { return getElement(this); }
|
|
7751
7754
|
static get watchers() { return {
|
|
@@ -7776,6 +7779,7 @@ const mdsAccordionTimerItemCss = () => `@layer reset,vendor,theme,base,component
|
|
|
7776
7779
|
* @part icon - The arrow icon of the component
|
|
7777
7780
|
* @part label - The text label of the component
|
|
7778
7781
|
* @part progress - The progress bar of the component
|
|
7782
|
+
* @parent mds-accordion-timer
|
|
7779
7783
|
*/
|
|
7780
7784
|
class MdsAccordionTimerItem {
|
|
7781
7785
|
constructor(hostRef) {
|
|
@@ -7831,7 +7835,7 @@ class MdsAccordionTimerItem {
|
|
|
7831
7835
|
}
|
|
7832
7836
|
render() {
|
|
7833
7837
|
var _a;
|
|
7834
|
-
return (hAsync(Host, { key: '
|
|
7838
|
+
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' })))))));
|
|
7835
7839
|
}
|
|
7836
7840
|
static get watchers() { return {
|
|
7837
7841
|
"selected": [{
|
|
@@ -7937,6 +7941,7 @@ const mdsAuthorCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
7937
7941
|
/**
|
|
7938
7942
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot. Insert author information, name, role or other useful author infos.
|
|
7939
7943
|
* @slot avatar - Insert an avatar image, it is **recommended** to add `mds-avatar` element.
|
|
7944
|
+
* @category data
|
|
7940
7945
|
*/
|
|
7941
7946
|
class MdsAuthor {
|
|
7942
7947
|
constructor(hostRef) {
|
|
@@ -7949,7 +7954,7 @@ class MdsAuthor {
|
|
|
7949
7954
|
this.hasAvatar = hasChildWithSlot(this.hostElement, 'avatar');
|
|
7950
7955
|
}
|
|
7951
7956
|
render() {
|
|
7952
|
-
return (hAsync(Host, { key: '
|
|
7957
|
+
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' }))));
|
|
7953
7958
|
}
|
|
7954
7959
|
get hostElement() { return getElement(this); }
|
|
7955
7960
|
static get style() { return mdsAuthorCss(); }
|
|
@@ -7999,6 +8004,7 @@ const mdsAvatarCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
7999
8004
|
* @part icon - The selected icon of the avatar
|
|
8000
8005
|
* @part wrapper - The wrapper which contains media displayed
|
|
8001
8006
|
* @part media - The media displayed
|
|
8007
|
+
* @category data
|
|
8002
8008
|
*/
|
|
8003
8009
|
class MdsAvatar {
|
|
8004
8010
|
constructor(hostRef) {
|
|
@@ -8128,7 +8134,7 @@ class MdsAvatar {
|
|
|
8128
8134
|
render() {
|
|
8129
8135
|
var _a, _b;
|
|
8130
8136
|
const content = this.content();
|
|
8131
|
-
return (hAsync(Host, { key: '
|
|
8137
|
+
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 }))));
|
|
8132
8138
|
}
|
|
8133
8139
|
get element() { return getElement(this); }
|
|
8134
8140
|
static get watchers() { return {
|
|
@@ -8166,6 +8172,7 @@ const mdsAvatarStackCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
8166
8172
|
|
|
8167
8173
|
/**
|
|
8168
8174
|
* @slot - Add `mds-avatar-stack-item` elements to display in the stack.
|
|
8175
|
+
* @category data
|
|
8169
8176
|
*/
|
|
8170
8177
|
class MdsAvatarStack {
|
|
8171
8178
|
constructor(hostRef) {
|
|
@@ -8181,7 +8188,7 @@ class MdsAvatarStack {
|
|
|
8181
8188
|
this.updateItems();
|
|
8182
8189
|
}
|
|
8183
8190
|
render() {
|
|
8184
|
-
return (hAsync(Host, { key: '
|
|
8191
|
+
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 }))));
|
|
8185
8192
|
}
|
|
8186
8193
|
get host() { return getElement(this); }
|
|
8187
8194
|
static get style() { return mdsAvatarStackCss(); }
|
|
@@ -8201,6 +8208,9 @@ class MdsAvatarStack {
|
|
|
8201
8208
|
|
|
8202
8209
|
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))))}`;
|
|
8203
8210
|
|
|
8211
|
+
/**
|
|
8212
|
+
* @parent mds-avatar-stack
|
|
8213
|
+
*/
|
|
8204
8214
|
class MdsAvatarStackItem {
|
|
8205
8215
|
constructor(hostRef) {
|
|
8206
8216
|
registerInstance(this, hostRef);
|
|
@@ -8210,7 +8220,7 @@ class MdsAvatarStackItem {
|
|
|
8210
8220
|
this.tone = 'weak';
|
|
8211
8221
|
}
|
|
8212
8222
|
render() {
|
|
8213
|
-
return (hAsync(Host, { key: '
|
|
8223
|
+
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 })));
|
|
8214
8224
|
}
|
|
8215
8225
|
static get style() { return mdsAvatarStackItemCss(); }
|
|
8216
8226
|
static get cmpMeta() { return {
|
|
@@ -8233,6 +8243,7 @@ const mdsBadgeCss = () => `@layer reset,vendor,theme,base,components,utilities;:
|
|
|
8233
8243
|
|
|
8234
8244
|
/**
|
|
8235
8245
|
* @slot - **Deprecated**, use the `label` property instead. Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
8246
|
+
* @category tags
|
|
8236
8247
|
*/
|
|
8237
8248
|
class MdsBadge {
|
|
8238
8249
|
constructor(hostRef) {
|
|
@@ -8261,7 +8272,7 @@ class MdsBadge {
|
|
|
8261
8272
|
this.label = sanitizeLabel(newValue);
|
|
8262
8273
|
}
|
|
8263
8274
|
render() {
|
|
8264
|
-
return (hAsync(Host, { key: '
|
|
8275
|
+
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 }))));
|
|
8265
8276
|
}
|
|
8266
8277
|
get host() { return getElement(this); }
|
|
8267
8278
|
static get watchers() { return {
|
|
@@ -9177,22 +9188,22 @@ let Locale$1 = class Locale {
|
|
|
9177
9188
|
};
|
|
9178
9189
|
|
|
9179
9190
|
const cancel$7 = "Ακύρωση";
|
|
9180
|
-
var localeEl$
|
|
9191
|
+
var localeEl$L = {
|
|
9181
9192
|
cancel: cancel$7
|
|
9182
9193
|
};
|
|
9183
9194
|
|
|
9184
9195
|
const cancel$6 = "Cancel";
|
|
9185
|
-
var localeEn$
|
|
9196
|
+
var localeEn$M = {
|
|
9186
9197
|
cancel: cancel$6
|
|
9187
9198
|
};
|
|
9188
9199
|
|
|
9189
9200
|
const cancel$5 = "Cancelar";
|
|
9190
|
-
var localeEs$
|
|
9201
|
+
var localeEs$L = {
|
|
9191
9202
|
cancel: cancel$5
|
|
9192
9203
|
};
|
|
9193
9204
|
|
|
9194
9205
|
const cancel$4 = "Annulla";
|
|
9195
|
-
var localeIt$
|
|
9206
|
+
var localeIt$M = {
|
|
9196
9207
|
cancel: cancel$4
|
|
9197
9208
|
};
|
|
9198
9209
|
|
|
@@ -9202,6 +9213,7 @@ const mdsBannerCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
9202
9213
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
9203
9214
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
9204
9215
|
* @part text - The text wrapper of the `default` and `content` slots
|
|
9216
|
+
* @category feedback
|
|
9205
9217
|
*/
|
|
9206
9218
|
class MdsBanner {
|
|
9207
9219
|
constructor(hostRef) {
|
|
@@ -9209,10 +9221,10 @@ class MdsBanner {
|
|
|
9209
9221
|
this.closeEvent = createEvent(this, "mdsBannerClose", 7);
|
|
9210
9222
|
this.km = new KeyboardManager();
|
|
9211
9223
|
this.t = new Locale$1({
|
|
9212
|
-
el: localeEl$
|
|
9213
|
-
en: localeEn$
|
|
9214
|
-
es: localeEs$
|
|
9215
|
-
it: localeIt$
|
|
9224
|
+
el: localeEl$L,
|
|
9225
|
+
en: localeEn$M,
|
|
9226
|
+
es: localeEs$L,
|
|
9227
|
+
it: localeIt$M,
|
|
9216
9228
|
});
|
|
9217
9229
|
/**
|
|
9218
9230
|
* Sets the theme variant colors
|
|
@@ -9287,7 +9299,7 @@ class MdsBanner {
|
|
|
9287
9299
|
}
|
|
9288
9300
|
render() {
|
|
9289
9301
|
var _a, _b;
|
|
9290
|
-
return (hAsync(Host, { key: '
|
|
9302
|
+
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 }))));
|
|
9291
9303
|
}
|
|
9292
9304
|
get host() { return getElement(this); }
|
|
9293
9305
|
static get watchers() { return {
|
|
@@ -9320,6 +9332,7 @@ const mdsBenchmarkBarCss = () => `@layer reset,vendor,theme,base,components,util
|
|
|
9320
9332
|
/**
|
|
9321
9333
|
* @slot - **Deprecated**, use the `label` property instead. Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
9322
9334
|
* @part progress-bar - The progress bar element
|
|
9335
|
+
* @category data
|
|
9323
9336
|
*/
|
|
9324
9337
|
class MdsBenchmarkBar {
|
|
9325
9338
|
constructor(hostRef) {
|
|
@@ -9356,7 +9369,7 @@ class MdsBenchmarkBar {
|
|
|
9356
9369
|
// the value is spoken as it is shown, the alias or the number: without an alias the progress
|
|
9357
9370
|
// announced one of its steps, in Italian whatever the page language (#983)
|
|
9358
9371
|
const valueText = (_a = this.alias) !== null && _a !== void 0 ? _a : String(this.value);
|
|
9359
|
-
return (hAsync(Host, { key: '
|
|
9372
|
+
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" })));
|
|
9360
9373
|
}
|
|
9361
9374
|
get host() { return getElement(this); }
|
|
9362
9375
|
static get watchers() { return {
|
|
@@ -9384,6 +9397,9 @@ class MdsBenchmarkBar {
|
|
|
9384
9397
|
|
|
9385
9398
|
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}`;
|
|
9386
9399
|
|
|
9400
|
+
/**
|
|
9401
|
+
* @category content
|
|
9402
|
+
*/
|
|
9387
9403
|
class MdsBibliography {
|
|
9388
9404
|
constructor(hostRef) {
|
|
9389
9405
|
registerInstance(this, hostRef);
|
|
@@ -9523,7 +9539,7 @@ class MdsBibliography {
|
|
|
9523
9539
|
};
|
|
9524
9540
|
}
|
|
9525
9541
|
render() {
|
|
9526
|
-
return (hAsync(Host, { key: '
|
|
9542
|
+
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), "."))))));
|
|
9527
9543
|
}
|
|
9528
9544
|
static get style() { return mdsBibliographyCss(); }
|
|
9529
9545
|
static get cmpMeta() { return {
|
|
@@ -9547,6 +9563,728 @@ class MdsBibliography {
|
|
|
9547
9563
|
}; }
|
|
9548
9564
|
}
|
|
9549
9565
|
|
|
9566
|
+
/**
|
|
9567
|
+
* Width and height in centimetres of the named formats, always portrait: a landscape one is
|
|
9568
|
+
* written as `WxH` with the width first (`29.7x21`)
|
|
9569
|
+
*/
|
|
9570
|
+
const namedFormats = {
|
|
9571
|
+
a4: [21, 29.7],
|
|
9572
|
+
a5: [14.8, 21],
|
|
9573
|
+
b5: [17.6, 25],
|
|
9574
|
+
};
|
|
9575
|
+
/**
|
|
9576
|
+
* 17x24, the most common format of Maggioli Editore: the shape of the book before its image
|
|
9577
|
+
* loads, and without one
|
|
9578
|
+
*/
|
|
9579
|
+
const defaultBookRatio = 17 / 24;
|
|
9580
|
+
const sizePattern = /^(\d+(?:\.\d+)?)x(\d+(?:\.\d+)?)$/;
|
|
9581
|
+
const normalize$2 = (format) => (format !== null && format !== void 0 ? format : '').trim().toLowerCase();
|
|
9582
|
+
/**
|
|
9583
|
+
* The width and height of a format, in centimetres. `undefined` for `auto`, which takes the
|
|
9584
|
+
* proportions of the image, and for a value that is not a format, which falls back on `auto`
|
|
9585
|
+
*/
|
|
9586
|
+
const bookFormatSize = (format) => {
|
|
9587
|
+
const value = normalize$2(format);
|
|
9588
|
+
if (Object.prototype.hasOwnProperty.call(namedFormats, value))
|
|
9589
|
+
return namedFormats[value];
|
|
9590
|
+
const match = sizePattern.exec(value);
|
|
9591
|
+
if (match === null)
|
|
9592
|
+
return undefined;
|
|
9593
|
+
const width = Number(match[1]);
|
|
9594
|
+
const height = Number(match[2]);
|
|
9595
|
+
return width > 0 && height > 0 ? [width, height] : undefined;
|
|
9596
|
+
};
|
|
9597
|
+
/**
|
|
9598
|
+
* The proportions (width / height) of a format. `undefined` for `auto`, which takes the
|
|
9599
|
+
* proportions of the image, and for a value that is not a format, which falls back on `auto`
|
|
9600
|
+
*/
|
|
9601
|
+
const bookFormatRatio = (format) => {
|
|
9602
|
+
const size = bookFormatSize(format);
|
|
9603
|
+
return size === undefined ? undefined : size[0] / size[1];
|
|
9604
|
+
};
|
|
9605
|
+
/**
|
|
9606
|
+
* The width of the book, in centimetres, what its depth is measured against: the width of its
|
|
9607
|
+
* format, or 17 cm, the width of the most common format, for `auto`
|
|
9608
|
+
*/
|
|
9609
|
+
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; };
|
|
9610
|
+
/**
|
|
9611
|
+
* Whether the value is one `format` accepts: `auto` (or no value), a named format or `WxH`
|
|
9612
|
+
*/
|
|
9613
|
+
const isBookFormat = (format) => {
|
|
9614
|
+
const value = normalize$2(format);
|
|
9615
|
+
return value === '' || value === 'auto' || bookFormatRatio(value) !== undefined;
|
|
9616
|
+
};
|
|
9617
|
+
/**
|
|
9618
|
+
* The image as a CSS `url()`, quoted, so a path with spaces, parentheses or quotes stays one
|
|
9619
|
+
* value in the custom property it is written into
|
|
9620
|
+
*/
|
|
9621
|
+
const cssUrl = (url) => `url("${url.replace(/[\\"]/g, '\\$&').replace(/[\n\r\f]/g, '')}")`;
|
|
9622
|
+
|
|
9623
|
+
/** The pages of a book when nothing says how many: a manual about 2.5 cm deep. */
|
|
9624
|
+
const defaultPages = 300;
|
|
9625
|
+
/** The pages a book is drawn with: past them, a wrong value would draw a sheet or a brick. */
|
|
9626
|
+
const pageRange = { max: 3000, min: 4 };
|
|
9627
|
+
/** Rigid boards, in centimetres: about 2.5 mm thick, overhanging the pages by about 3 mm. */
|
|
9628
|
+
const hardcoverBoards = { square: 0.3, thickness: 0.25 };
|
|
9629
|
+
/** Whether the value is a number of pages: a positive number, or no value at all. */
|
|
9630
|
+
const isPageCount = (pages) => pages == null || (Number.isFinite(pages) && pages > 0);
|
|
9631
|
+
/** The pages the book is drawn with: the value, whole and within range, or the default. */
|
|
9632
|
+
const pageCount = (pages) => pages != null && Number.isFinite(pages) && pages > 0
|
|
9633
|
+
? Math.max(pageRange.min, Math.min(pageRange.max, Math.round(pages)))
|
|
9634
|
+
: defaultPages;
|
|
9635
|
+
/**
|
|
9636
|
+
* The boards of a hardcover, as shares of the width of the book (`width`, in centimetres),
|
|
9637
|
+
* which is what the stylesheet draws them in: their thickness and how far they overhang the
|
|
9638
|
+
* pages. A paperback has none. The depth of the pages is the stylesheet's, from the number of
|
|
9639
|
+
* pages and the thickness of a page (--mds-book-page-weight-min and -max).
|
|
9640
|
+
*/
|
|
9641
|
+
const boardVolume = (width, hardcover) => ({
|
|
9642
|
+
board: hardcover ? hardcoverBoards.thickness / width : 0,
|
|
9643
|
+
square: hardcover ? hardcoverBoards.square / width : 0,
|
|
9644
|
+
});
|
|
9645
|
+
|
|
9646
|
+
/** The angles of each pose, after the usual shots of a book in product photography. */
|
|
9647
|
+
const bookPoses = {
|
|
9648
|
+
// standing, turned to show the spine
|
|
9649
|
+
spine: { lay: 0, tilt: -6, turn: 28 },
|
|
9650
|
+
// standing, turned the other way, to show the pages
|
|
9651
|
+
'fore-edge': { lay: 0, tilt: -6, turn: -28 },
|
|
9652
|
+
// facing the reader
|
|
9653
|
+
front: { lay: 0, tilt: 0, turn: 0 },
|
|
9654
|
+
// lying on its back, seen from above, its tail toward the reader
|
|
9655
|
+
lying: { lay: 90, tilt: -30, turn: 0 },
|
|
9656
|
+
// lying, spun on the surface to show its spine and its tail, seen from above at an angle
|
|
9657
|
+
'lying-turned': { lay: 90, tilt: -34, turn: 32 },
|
|
9658
|
+
};
|
|
9659
|
+
/** The resting pose of a pose name; a name that is not a pose rests as `spine`. */
|
|
9660
|
+
const restPose = (pose) => (Object.assign({ glare: 0, lift: 0 }, (Object.prototype.hasOwnProperty.call(bookPoses, pose !== null && pose !== void 0 ? pose : '')
|
|
9661
|
+
? bookPoses[pose]
|
|
9662
|
+
: bookPoses.spine)));
|
|
9663
|
+
/** How far a hover leans the book toward the pointer, from the middle to an edge, in degrees. */
|
|
9664
|
+
const lean = { tilt: 4, turn: 6 };
|
|
9665
|
+
/**
|
|
9666
|
+
* The turns a drag reaches from a resting pose: a standing book shows its spine or its pages,
|
|
9667
|
+
* never its back cover; a lying one spins on the surface. A drag across the whole width of the
|
|
9668
|
+
* book turns it by `dragPerWidth` degrees.
|
|
9669
|
+
*/
|
|
9670
|
+
const dragRange = (rest) => rest.lay === 0 ? { max: 64, min: -64 } : { max: rest.turn + 70, min: rest.turn - 70 };
|
|
9671
|
+
const dragPerWidth = 110;
|
|
9672
|
+
/**
|
|
9673
|
+
* The time the pose takes to cover 63% of the way to its goal, in ms: while it follows the
|
|
9674
|
+
* pointer, and when it settles back after a drag or moves to another pose.
|
|
9675
|
+
*/
|
|
9676
|
+
const easeTime = { follow: 120, settle: 260 };
|
|
9677
|
+
const normalize$1 = ([x, y, z]) => {
|
|
9678
|
+
const length = Math.hypot(x, y, z);
|
|
9679
|
+
return [x / length, y / length, z / length];
|
|
9680
|
+
};
|
|
9681
|
+
const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
9682
|
+
const radians = (degrees) => (degrees * Math.PI) / 180;
|
|
9683
|
+
/**
|
|
9684
|
+
* Toward the light, in the coordinates of CSS (y down, z toward the reader): the key light of a
|
|
9685
|
+
* product shot, in front of the book, above it and a little to the right, so the front cover in
|
|
9686
|
+
* the foreground takes the most of it and the sides a little less.
|
|
9687
|
+
*/
|
|
9688
|
+
const light = normalize$1([0.15, -0.4, 0.9]);
|
|
9689
|
+
const rotateX = ([x, y, z], degrees) => {
|
|
9690
|
+
const angle = radians(degrees);
|
|
9691
|
+
return [x, y * Math.cos(angle) - z * Math.sin(angle), y * Math.sin(angle) + z * Math.cos(angle)];
|
|
9692
|
+
};
|
|
9693
|
+
const rotateY = ([x, y, z], degrees) => {
|
|
9694
|
+
const angle = radians(degrees);
|
|
9695
|
+
return [x * Math.cos(angle) + z * Math.sin(angle), y, -x * Math.sin(angle) + z * Math.cos(angle)];
|
|
9696
|
+
};
|
|
9697
|
+
/**
|
|
9698
|
+
* Where a face points once the book is posed by `rotateX(tilt) rotateY(turn) rotateX(lay)`, as
|
|
9699
|
+
* the stylesheet poses it.
|
|
9700
|
+
*/
|
|
9701
|
+
const posed = (normal, { lay, tilt, turn }) => rotateX(rotateY(rotateX(normal, lay), turn), tilt);
|
|
9702
|
+
/** An upright face of the book, `yaw` degrees from the front cover (90 the fore edge, -90 a flat spine). */
|
|
9703
|
+
const upright = (yaw) => [Math.sin(radians(yaw)), 0, Math.cos(radians(yaw))];
|
|
9704
|
+
const faces = {
|
|
9705
|
+
bottom: [0, 1, 0],
|
|
9706
|
+
fore: upright(90),
|
|
9707
|
+
front: upright(0),
|
|
9708
|
+
spine: upright(-90),
|
|
9709
|
+
top: [0, -1, 0],
|
|
9710
|
+
};
|
|
9711
|
+
/** How much light the front cover takes at rest in a pose: the reference the faces are lit from. */
|
|
9712
|
+
const frontLight = (rest) => dot(posed(faces.front, rest), light);
|
|
9713
|
+
/**
|
|
9714
|
+
* How lit a face is, from -1 (in its own shadow) to 1, measured from the front cover at rest,
|
|
9715
|
+
* which shows the colours of its image as they are: a face turned toward the light brightens,
|
|
9716
|
+
* one turned away darkens.
|
|
9717
|
+
*/
|
|
9718
|
+
const lightOf = (normal, pose, reference) => Math.max(-1, Math.min(1, (dot(posed(normal, pose), light) - reference) * 1.4));
|
|
9719
|
+
/** How lit each face of the book is, at a pose, from the front cover of its resting pose. */
|
|
9720
|
+
const faceLight = (pose, reference) => ({
|
|
9721
|
+
bottom: lightOf(faces.bottom, pose, reference),
|
|
9722
|
+
fore: lightOf(faces.fore, pose, reference),
|
|
9723
|
+
front: lightOf(faces.front, pose, reference),
|
|
9724
|
+
spine: lightOf(faces.spine, pose, reference),
|
|
9725
|
+
top: lightOf(faces.top, pose, reference),
|
|
9726
|
+
});
|
|
9727
|
+
/** How lit each slat of a rounded spine is, from the yaw each one faces. */
|
|
9728
|
+
const slatLight = (yaws, pose, reference) => yaws.map((yaw) => lightOf(upright(yaw), pose, reference));
|
|
9729
|
+
/**
|
|
9730
|
+
* Where the reflection of the light crosses the cover, from 0 to 100: it slides across as the
|
|
9731
|
+
* book turns away from its resting pose, the way the gloss of a laminated cover moves in the
|
|
9732
|
+
* hand.
|
|
9733
|
+
*/
|
|
9734
|
+
const glarePosition = (turn, rest, pointerX) => Math.max(0, Math.min(100, 50 + (turn - rest.turn) * 0.8 + pointerX * 10));
|
|
9735
|
+
/**
|
|
9736
|
+
* One step of the pose toward its goal, whatever the frame rate: the share of the way covered
|
|
9737
|
+
* in `elapsed` ms. Close enough, it lands on the goal, so the animation can stop.
|
|
9738
|
+
*/
|
|
9739
|
+
const easePose = (pose, goal, elapsed, time) => {
|
|
9740
|
+
const share = 1 - Math.exp(-elapsed / time);
|
|
9741
|
+
const next = Object.assign({}, pose);
|
|
9742
|
+
for (const key of Object.keys(goal)) {
|
|
9743
|
+
next[key] += (goal[key] - pose[key]) * share;
|
|
9744
|
+
// a twentieth of a degree, or of a percent of lift and gloss, is past what anyone sees
|
|
9745
|
+
const close = key === 'glare' || key === 'lift' ? 0.002 : 0.05;
|
|
9746
|
+
if (Math.abs(goal[key] - next[key]) < close)
|
|
9747
|
+
next[key] = goal[key];
|
|
9748
|
+
}
|
|
9749
|
+
return next;
|
|
9750
|
+
};
|
|
9751
|
+
const samePose = (a, b) => Object.keys(a).every((key) => a[key] === b[key]);
|
|
9752
|
+
|
|
9753
|
+
/**
|
|
9754
|
+
* The arc of a rounded spine: a circle through the edges of the two boards, bowed out by
|
|
9755
|
+
* `bulge` (a share of the depth) in the middle, cut into `count` stretches. `angle` gives where
|
|
9756
|
+
* each stretch ends on the circle, counted from the front board, and `point` where that is, in
|
|
9757
|
+
* the units of a slat.
|
|
9758
|
+
*/
|
|
9759
|
+
const spineArc = (count, bulge) => {
|
|
9760
|
+
const radius = (0.25 + bulge * bulge) / (2 * bulge);
|
|
9761
|
+
const centre = radius - bulge;
|
|
9762
|
+
const half = Math.asin(0.5 / radius);
|
|
9763
|
+
return {
|
|
9764
|
+
angle: (index) => half - (2 * half * index) / count,
|
|
9765
|
+
point: (angle) => ({
|
|
9766
|
+
x: centre - radius * Math.cos(angle),
|
|
9767
|
+
z: -0.5 + radius * Math.sin(angle),
|
|
9768
|
+
}),
|
|
9769
|
+
};
|
|
9770
|
+
};
|
|
9771
|
+
/**
|
|
9772
|
+
* The slats that draw a rounded spine (see spineArc). Each slat is the chord of its stretch of
|
|
9773
|
+
* the arc, a little wider so that no seam shows between two of them, and faces outward from the
|
|
9774
|
+
* centre of the circle, which is what lights each one differently.
|
|
9775
|
+
*/
|
|
9776
|
+
const spineSlats = (count, bulge) => {
|
|
9777
|
+
const { angle, point } = spineArc(count, bulge);
|
|
9778
|
+
return Array.from({ length: count }, (_, index) => {
|
|
9779
|
+
const from = angle(index);
|
|
9780
|
+
const to = angle(index + 1);
|
|
9781
|
+
const start = point(from);
|
|
9782
|
+
const end = point(to);
|
|
9783
|
+
const middle = (from + to) / 2;
|
|
9784
|
+
return {
|
|
9785
|
+
width: Math.hypot(start.x - end.x, start.z - end.z) * 1.04,
|
|
9786
|
+
x: (start.x + end.x) / 2,
|
|
9787
|
+
yaw: (Math.atan2(-Math.cos(middle), Math.sin(middle)) * 180) / Math.PI,
|
|
9788
|
+
z: (start.z + end.z) / 2,
|
|
9789
|
+
};
|
|
9790
|
+
});
|
|
9791
|
+
};
|
|
9792
|
+
/**
|
|
9793
|
+
* The cap over an end of a rounded spine, as the clip-path of its box: the bulge across (0% at
|
|
9794
|
+
* its outermost, 100% on the edges of the boards), the depth down (from the front board, or from
|
|
9795
|
+
* the back one: the arc reads the same both ways). Its edge runs through the ends of the slats,
|
|
9796
|
+
* so the cap follows the spine and never reaches past it.
|
|
9797
|
+
*/
|
|
9798
|
+
const spineCap = (count, bulge) => {
|
|
9799
|
+
const { angle, point } = spineArc(count, bulge);
|
|
9800
|
+
const share = (value) => `${(value * 100).toFixed(3)}%`;
|
|
9801
|
+
const corners = Array.from({ length: count + 1 }, (_, index) => {
|
|
9802
|
+
const { x, z } = point(angle(index));
|
|
9803
|
+
return `${share(1 + x / bulge)} ${share(-z)}`;
|
|
9804
|
+
});
|
|
9805
|
+
return `polygon(${corners.join(', ')})`;
|
|
9806
|
+
};
|
|
9807
|
+
/** How far the spine of a hardcover bows out, as a share of the depth of the book. */
|
|
9808
|
+
const spineBulge = 0.14;
|
|
9809
|
+
/** The slats of the spine of a hardcover. */
|
|
9810
|
+
const hardcoverSlats = spineSlats(6, spineBulge);
|
|
9811
|
+
/** The caps over the ends of the spine of a hardcover, on the same arc as its slats. */
|
|
9812
|
+
const hardcoverCap = spineCap(6, spineBulge);
|
|
9813
|
+
|
|
9814
|
+
const book$3 = "Βιβλίο";
|
|
9815
|
+
const byAuthor$3 = "{{{name}}}, {{{author}}}";
|
|
9816
|
+
var localeEl$K = {
|
|
9817
|
+
book: book$3,
|
|
9818
|
+
byAuthor: byAuthor$3
|
|
9819
|
+
};
|
|
9820
|
+
|
|
9821
|
+
const book$2 = "Book";
|
|
9822
|
+
const byAuthor$2 = "{{{name}}} by {{{author}}}";
|
|
9823
|
+
var localeEn$L = {
|
|
9824
|
+
book: book$2,
|
|
9825
|
+
byAuthor: byAuthor$2
|
|
9826
|
+
};
|
|
9827
|
+
|
|
9828
|
+
const book$1 = "Libro";
|
|
9829
|
+
const byAuthor$1 = "{{{name}}} de {{{author}}}";
|
|
9830
|
+
var localeEs$K = {
|
|
9831
|
+
book: book$1,
|
|
9832
|
+
byAuthor: byAuthor$1
|
|
9833
|
+
};
|
|
9834
|
+
|
|
9835
|
+
const book = "Libro";
|
|
9836
|
+
const byAuthor = "{{{name}}} di {{{author}}}";
|
|
9837
|
+
var localeIt$L = {
|
|
9838
|
+
book: book,
|
|
9839
|
+
byAuthor: byAuthor
|
|
9840
|
+
};
|
|
9841
|
+
|
|
9842
|
+
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}}`;
|
|
9843
|
+
|
|
9844
|
+
/**
|
|
9845
|
+
* @part cover - The native `<img>` that shows the front cover
|
|
9846
|
+
* @category content
|
|
9847
|
+
*/
|
|
9848
|
+
class MdsBook {
|
|
9849
|
+
constructor(hostRef) {
|
|
9850
|
+
registerInstance(this, hostRef);
|
|
9851
|
+
this.imageError = false;
|
|
9852
|
+
// The pose is animated here, not in CSS: the light on each face and the gloss of the cover
|
|
9853
|
+
// follow the angle frame by frame, which a transition of the transform alone cannot do. It
|
|
9854
|
+
// eases toward its goal, and runs only while it moves, as the 3D card of the docs home does.
|
|
9855
|
+
// Only opacities and transforms change on the way, which the compositor applies without a
|
|
9856
|
+
// repaint.
|
|
9857
|
+
this.current = restPose();
|
|
9858
|
+
this.dragged = false;
|
|
9859
|
+
this.goal = restPose();
|
|
9860
|
+
this.hovering = false;
|
|
9861
|
+
// where the pointer is on the book, from -1 to 1 on each axis
|
|
9862
|
+
this.pointer = { x: 0, y: 0 };
|
|
9863
|
+
this.slats = [];
|
|
9864
|
+
this.t = new Locale$1({
|
|
9865
|
+
el: localeEl$K,
|
|
9866
|
+
en: localeEn$L,
|
|
9867
|
+
es: localeEs$K,
|
|
9868
|
+
it: localeIt$L,
|
|
9869
|
+
});
|
|
9870
|
+
/**
|
|
9871
|
+
* How the book is bound: a thin flexible cover flush with the pages, or rigid boards a little
|
|
9872
|
+
* larger than the page block, with a rounded spine
|
|
9873
|
+
*/
|
|
9874
|
+
this.binding = 'paperback';
|
|
9875
|
+
/**
|
|
9876
|
+
* The proportions of the book. `auto` takes them from the image; a named format (`a4`, `a5`,
|
|
9877
|
+
* `b5`) is portrait; any other one is `WxH` in centimetres, the order of the two numbers being
|
|
9878
|
+
* the orientation (`17x24` portrait, `24x17` landscape, `21x21` square)
|
|
9879
|
+
* @example '17x24'
|
|
9880
|
+
*/
|
|
9881
|
+
this.format = 'auto';
|
|
9882
|
+
/**
|
|
9883
|
+
* Specifies whether a browser should load the cover immediately or defer it until it is near
|
|
9884
|
+
* the viewport
|
|
9885
|
+
*/
|
|
9886
|
+
this.loading = 'lazy';
|
|
9887
|
+
/**
|
|
9888
|
+
* The number of pages, which sets how deep the book is, against the width of its format (17 cm
|
|
9889
|
+
* for `auto`). A page is as thick as `--mds-book-page-weight-min` at 1 page, going to
|
|
9890
|
+
* `--mds-book-page-weight-max` at 1000 pages and more, in proportion: by default from 0.1 mm,
|
|
9891
|
+
* the bulky paper of a short book, to 0.05 mm, the thin paper of a volume, so 64 pages make
|
|
9892
|
+
* 6 mm, 300 pages 2.5 cm and 1000 pages 5 cm. A spine under 5 mm deep carries no text
|
|
9893
|
+
*/
|
|
9894
|
+
this.pages = 300;
|
|
9895
|
+
/**
|
|
9896
|
+
* How the book is shown: standing, turned to show its spine (`spine`) or its pages
|
|
9897
|
+
* (`fore-edge`), or facing the reader (`front`); lying on its back, seen from above, its tail
|
|
9898
|
+
* toward the reader (`lying`) or spun on the surface (`lying-turned`). A drag turns it from
|
|
9899
|
+
* there, and it goes back when released
|
|
9900
|
+
*/
|
|
9901
|
+
this.pose = 'spine';
|
|
9902
|
+
// Out of the window, or of the frame the page is in, the pointer is no longer ours: its
|
|
9903
|
+
// release would never reach the book, which would go on turning when it comes back. The
|
|
9904
|
+
// drag ends there, and when the window loses the focus or is hidden.
|
|
9905
|
+
this.watchDrag = () => {
|
|
9906
|
+
var _a;
|
|
9907
|
+
(_a = this.dragWatch) === null || _a === void 0 ? void 0 : _a.abort();
|
|
9908
|
+
this.dragWatch = new AbortController();
|
|
9909
|
+
const { signal } = this.dragWatch;
|
|
9910
|
+
const leave = () => {
|
|
9911
|
+
this.hovering = false;
|
|
9912
|
+
this.pointer = { x: 0, y: 0 };
|
|
9913
|
+
this.endDrag(false);
|
|
9914
|
+
};
|
|
9915
|
+
const out = (ev) => {
|
|
9916
|
+
if (ev.relatedTarget === null)
|
|
9917
|
+
leave();
|
|
9918
|
+
};
|
|
9919
|
+
window.addEventListener('pointerout', out, { signal });
|
|
9920
|
+
window.addEventListener('mouseout', out, { signal });
|
|
9921
|
+
window.addEventListener('blur', leave, { signal });
|
|
9922
|
+
document.addEventListener('visibilitychange', () => document.hidden && leave(), { signal });
|
|
9923
|
+
};
|
|
9924
|
+
// the drag is over: released over the page (`clicked`, which takes the click that follows if
|
|
9925
|
+
// the book turned), or lost
|
|
9926
|
+
this.endDrag = (clicked) => {
|
|
9927
|
+
var _a, _b;
|
|
9928
|
+
if (this.drag === undefined)
|
|
9929
|
+
return;
|
|
9930
|
+
this.dragged = clicked;
|
|
9931
|
+
this.drag = undefined;
|
|
9932
|
+
(_a = this.dragWatch) === null || _a === void 0 ? void 0 : _a.abort();
|
|
9933
|
+
this.dragWatch = undefined;
|
|
9934
|
+
(_b = this.scene) === null || _b === void 0 ? void 0 : _b.classList.remove('scene--dragging');
|
|
9935
|
+
this.aim();
|
|
9936
|
+
};
|
|
9937
|
+
// reduced, the book keeps its resting pose: the preference of the page, or the system's when
|
|
9938
|
+
// the page has no controller or follows the system
|
|
9939
|
+
this.reducedMotion = () => {
|
|
9940
|
+
const preference = this.host.getAttribute('pref-animation');
|
|
9941
|
+
if (preference === 'reduce')
|
|
9942
|
+
return true;
|
|
9943
|
+
if (preference !== null && preference !== 'system')
|
|
9944
|
+
return false;
|
|
9945
|
+
return (typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches);
|
|
9946
|
+
};
|
|
9947
|
+
// The consumption preference sets how much the book costs: at `low` it is drawn once, in its
|
|
9948
|
+
// pose, and never animated; at `medium` it moves without the gloss, whose band repaints the
|
|
9949
|
+
// cover; at `high`, the default on a page without the controller, it does everything.
|
|
9950
|
+
this.consumption = () => { var _a; return (_a = this.host.getAttribute('pref-consumption')) !== null && _a !== void 0 ? _a : 'high'; };
|
|
9951
|
+
this.still = () => this.reducedMotion() || this.consumption() === 'low';
|
|
9952
|
+
// the goal of the pose, from what the pointer does: resting, hovered, dragged
|
|
9953
|
+
this.aim = () => {
|
|
9954
|
+
const rest = restPose(this.pose);
|
|
9955
|
+
if (this.still()) {
|
|
9956
|
+
this.current = this.goal = rest;
|
|
9957
|
+
this.writePose();
|
|
9958
|
+
return;
|
|
9959
|
+
}
|
|
9960
|
+
const active = this.hovering || this.drag !== undefined;
|
|
9961
|
+
const glare = this.drag !== undefined ? 1 : this.hovering ? 0.45 : 0;
|
|
9962
|
+
this.goal = {
|
|
9963
|
+
glare: this.consumption() === 'high' ? glare : 0,
|
|
9964
|
+
lay: rest.lay,
|
|
9965
|
+
lift: active ? 1 : 0,
|
|
9966
|
+
tilt: this.hovering ? rest.tilt - this.pointer.y * lean.tilt : rest.tilt,
|
|
9967
|
+
turn: this.drag !== undefined
|
|
9968
|
+
? this.goal.turn
|
|
9969
|
+
: this.hovering
|
|
9970
|
+
? rest.turn + this.pointer.x * lean.turn
|
|
9971
|
+
: rest.turn,
|
|
9972
|
+
};
|
|
9973
|
+
this.wake();
|
|
9974
|
+
};
|
|
9975
|
+
this.wake = () => {
|
|
9976
|
+
var _a;
|
|
9977
|
+
(_a = this.frame) !== null && _a !== void 0 ? _a : (this.frame = requestAnimationFrame(this.tick));
|
|
9978
|
+
};
|
|
9979
|
+
this.tick = (time) => {
|
|
9980
|
+
this.frame = undefined;
|
|
9981
|
+
const elapsed = this.lastTime === undefined ? 1000 / 60 : time - this.lastTime;
|
|
9982
|
+
const settling = this.drag === undefined && !this.hovering;
|
|
9983
|
+
this.current = easePose(this.current, this.goal, elapsed, settling ? easeTime.settle : easeTime.follow);
|
|
9984
|
+
this.writePose();
|
|
9985
|
+
if (samePose(this.current, this.goal)) {
|
|
9986
|
+
this.lastTime = undefined;
|
|
9987
|
+
return;
|
|
9988
|
+
}
|
|
9989
|
+
this.lastTime = time;
|
|
9990
|
+
this.wake();
|
|
9991
|
+
};
|
|
9992
|
+
// written on the element, not through render: the pose changes far more often than a book
|
|
9993
|
+
// needs to render
|
|
9994
|
+
this.writePose = () => {
|
|
9995
|
+
var _a;
|
|
9996
|
+
const style = (_a = this.scene) === null || _a === void 0 ? void 0 : _a.style;
|
|
9997
|
+
if (!style)
|
|
9998
|
+
return;
|
|
9999
|
+
const rest = restPose(this.pose);
|
|
10000
|
+
const reference = frontLight(rest);
|
|
10001
|
+
const { glare, lay, lift, tilt, turn } = this.current;
|
|
10002
|
+
const lights = faceLight(this.current, reference);
|
|
10003
|
+
style.setProperty('--private-book-lay', `${lay.toFixed(2)}deg`);
|
|
10004
|
+
style.setProperty('--private-book-turn', `${turn.toFixed(2)}deg`);
|
|
10005
|
+
style.setProperty('--private-book-tilt', `${tilt.toFixed(2)}deg`);
|
|
10006
|
+
style.setProperty('--private-book-lift', lift.toFixed(3));
|
|
10007
|
+
// how far the book is lying down, from 0 standing to 1 lying: which surface it rests on,
|
|
10008
|
+
// so where its shadow falls and which way it rises
|
|
10009
|
+
const lying = Math.max(0, Math.min(1, lay / 90));
|
|
10010
|
+
style.setProperty('--private-book-lie', lying.toFixed(3));
|
|
10011
|
+
style.setProperty('--private-book-stand', (1 - lying).toFixed(3));
|
|
10012
|
+
style.setProperty('--private-book-glare', glare.toFixed(3));
|
|
10013
|
+
style.setProperty('--private-book-glare-x', glarePosition(turn, rest, this.pointer.x).toFixed(1));
|
|
10014
|
+
for (const face of Object.keys(lights)) {
|
|
10015
|
+
style.setProperty(`--private-book-${face}-light`, lights[face].toFixed(3));
|
|
10016
|
+
}
|
|
10017
|
+
// each slat of a rounded spine faces its own way, so each one takes its own light
|
|
10018
|
+
const slats = slatLight(hardcoverSlats.map(({ yaw }) => yaw), this.current, reference);
|
|
10019
|
+
this.slats.forEach((slat, index) => slat.style.setProperty('--private-book-light', slats[index].toFixed(3)));
|
|
10020
|
+
};
|
|
10021
|
+
this.warnInvalidFormat = (format) => {
|
|
10022
|
+
if (!isBookFormat(format)) {
|
|
10023
|
+
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`);
|
|
10024
|
+
}
|
|
10025
|
+
};
|
|
10026
|
+
this.warnInvalidPages = (pages) => {
|
|
10027
|
+
if (!isPageCount(pages)) {
|
|
10028
|
+
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}`);
|
|
10029
|
+
}
|
|
10030
|
+
};
|
|
10031
|
+
this.onLoad = (ev) => {
|
|
10032
|
+
const image = ev.target;
|
|
10033
|
+
if (image.naturalWidth > 0 && image.naturalHeight > 0) {
|
|
10034
|
+
this.imageRatio = image.naturalWidth / image.naturalHeight;
|
|
10035
|
+
}
|
|
10036
|
+
this.coverUrl = image.currentSrc || image.src;
|
|
10037
|
+
};
|
|
10038
|
+
this.onError = () => {
|
|
10039
|
+
this.coverUrl = undefined;
|
|
10040
|
+
this.imageError = true;
|
|
10041
|
+
};
|
|
10042
|
+
this.hasImage = () => { var _a; return ((_a = this.src) !== null && _a !== void 0 ? _a : '') !== '' && !this.imageError; };
|
|
10043
|
+
// a fixed format wins over the image; auto waits for it, and keeps 17x24 without one
|
|
10044
|
+
this.ratio = () => { var _a, _b; return (_b = (_a = bookFormatRatio(this.format)) !== null && _a !== void 0 ? _a : this.imageRatio) !== null && _b !== void 0 ? _b : defaultBookRatio; };
|
|
10045
|
+
this.label = () => {
|
|
10046
|
+
var _a, _b;
|
|
10047
|
+
if (this.alt != null)
|
|
10048
|
+
return this.alt;
|
|
10049
|
+
const name = ((_a = this.name) !== null && _a !== void 0 ? _a : '').trim();
|
|
10050
|
+
const author = ((_b = this.author) !== null && _b !== void 0 ? _b : '').trim();
|
|
10051
|
+
if (author !== '') {
|
|
10052
|
+
return this.t.get('byAuthor', { name: name !== '' ? name : this.t.get('book'), author });
|
|
10053
|
+
}
|
|
10054
|
+
return name !== '' ? name : this.t.get('book');
|
|
10055
|
+
};
|
|
10056
|
+
// a book is named by its label, and a decorative one is left out of the accessibility tree
|
|
10057
|
+
this.hostRole = () => {
|
|
10058
|
+
const label = this.label();
|
|
10059
|
+
return label === '' ? { role: 'presentation' } : { role: 'img', 'aria-label': label };
|
|
10060
|
+
};
|
|
10061
|
+
// What the stylesheet draws the volume from: the pages (their depth is its, from the
|
|
10062
|
+
// thickness of a page), the width of the format in millimetres they are measured against, and
|
|
10063
|
+
// the boards of a hardcover, as shares of that width.
|
|
10064
|
+
this.bookStyle = () => {
|
|
10065
|
+
const width = bookWidth(this.format);
|
|
10066
|
+
const boards = boardVolume(width, this.binding === 'hardcover');
|
|
10067
|
+
const share = (value) => `${(value * 100).toFixed(3)}cqi`;
|
|
10068
|
+
const style = {
|
|
10069
|
+
'--private-book-board': share(boards.board),
|
|
10070
|
+
'--private-book-page-count': String(pageCount(this.pages)),
|
|
10071
|
+
'--private-book-square': share(boards.square),
|
|
10072
|
+
'--private-book-width-mm': String(width * 10),
|
|
10073
|
+
};
|
|
10074
|
+
if (this.coverUrl !== undefined && this.hasImage()) {
|
|
10075
|
+
style['--private-book-cover'] = cssUrl(this.coverUrl);
|
|
10076
|
+
}
|
|
10077
|
+
return style;
|
|
10078
|
+
};
|
|
10079
|
+
// a spine too narrow for its text shows none, as a thin booklet does (see .spine-text)
|
|
10080
|
+
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)));
|
|
10081
|
+
// the light of a face: a dark layer whose opacity follows how much the face turns away
|
|
10082
|
+
this.shade = () => hAsync("span", { class: "shade" });
|
|
10083
|
+
// Rigid boards are slabs with edges of their own, a little larger than the page block they
|
|
10084
|
+
// hold, around a rounded spine; the endpapers show in the gap above and below the pages.
|
|
10085
|
+
this.renderHardcover = () => [
|
|
10086
|
+
...['top', 'bottom'].flatMap((edge) => [
|
|
10087
|
+
hAsync("div", { key: `board-${edge}-front`, class: `face board-${edge} board-${edge}--front lit-${edge}` }, this.shade()),
|
|
10088
|
+
hAsync("div", { key: `board-${edge}-back`, class: `face board-${edge} board-${edge}--back lit-${edge}` }, this.shade()),
|
|
10089
|
+
hAsync("div", { key: `endpaper-${edge}`, class: `face endpaper endpaper--${edge} lit-front` }, this.shade()),
|
|
10090
|
+
hAsync("div", { key: `pages-${edge}`, class: `face pages-${edge} lit-${edge}` }, this.shade()),
|
|
10091
|
+
hAsync("div", { key: `cap-${edge}`, class: `face cap cap--${edge} lit-${edge}`, style: { clipPath: hardcoverCap } }, this.shade()),
|
|
10092
|
+
]),
|
|
10093
|
+
hAsync("div", { key: "board-fore-front", class: "face board-fore board-fore--front lit-fore" }, this.shade()),
|
|
10094
|
+
hAsync("div", { key: "board-fore-back", class: "face board-fore board-fore--back lit-fore" }, this.shade()),
|
|
10095
|
+
hAsync("div", { key: "endpaper-fore", class: "face endpaper endpaper--fore lit-front" }, this.shade()),
|
|
10096
|
+
hAsync("div", { key: "pages-fore", class: "face pages-fore lit-fore" }, this.shade()),
|
|
10097
|
+
...hardcoverSlats.map(({ width, x, yaw, z }, index) => (hAsync("div", { key: `slat-${index}`, class: "face slat", ref: (el) => el && (this.slats[index] = el), style: {
|
|
10098
|
+
'--private-book-slat-width': String(width),
|
|
10099
|
+
'--private-book-slat-x': String(x),
|
|
10100
|
+
'--private-book-slat-yaw': `${yaw}deg`,
|
|
10101
|
+
'--private-book-slat-z': String(z),
|
|
10102
|
+
} }, this.shade()))),
|
|
10103
|
+
hAsync("div", { key: "spine-label", "aria-hidden": "true", class: "face spine-label" }, this.renderSpineText()),
|
|
10104
|
+
];
|
|
10105
|
+
// A paperback is cut flush: cover and pages end on the same edge, the cover a hairline.
|
|
10106
|
+
this.renderPaperback = () => [
|
|
10107
|
+
hAsync("div", { key: "pages-top", class: "face pages-top pages-flush pages-flush--across lit-top" }, this.shade()),
|
|
10108
|
+
hAsync("div", { key: "pages-bottom", class: "face pages-bottom pages-flush pages-flush--across lit-bottom" }, this.shade()),
|
|
10109
|
+
hAsync("div", { key: "pages-fore", class: "face pages-fore pages-flush pages-flush--along lit-fore" }, this.shade()),
|
|
10110
|
+
hAsync("div", { key: "spine", "aria-hidden": "true", class: "face spine lit-spine" }, this.renderSpineText(), this.shade()),
|
|
10111
|
+
];
|
|
10112
|
+
}
|
|
10113
|
+
formatHandler(newValue) {
|
|
10114
|
+
this.warnInvalidFormat(newValue);
|
|
10115
|
+
}
|
|
10116
|
+
pagesHandler(newValue) {
|
|
10117
|
+
this.warnInvalidPages(newValue);
|
|
10118
|
+
}
|
|
10119
|
+
// to another pose, the book moves there, or jumps when it keeps still
|
|
10120
|
+
poseHandler() {
|
|
10121
|
+
this.aim();
|
|
10122
|
+
}
|
|
10123
|
+
srcHandler() {
|
|
10124
|
+
this.coverUrl = undefined;
|
|
10125
|
+
this.imageError = false;
|
|
10126
|
+
this.imageRatio = undefined;
|
|
10127
|
+
}
|
|
10128
|
+
pointerEnterHandler(ev) {
|
|
10129
|
+
if (ev.pointerType === 'touch' || this.still())
|
|
10130
|
+
return;
|
|
10131
|
+
this.hovering = true;
|
|
10132
|
+
this.aim();
|
|
10133
|
+
}
|
|
10134
|
+
// the book leans toward the pointer; a finger has no hover, it only drags
|
|
10135
|
+
pointerMoveHandler(ev) {
|
|
10136
|
+
var _a, _b;
|
|
10137
|
+
if (this.still())
|
|
10138
|
+
return;
|
|
10139
|
+
const { left, top, width, height } = this.host.getBoundingClientRect();
|
|
10140
|
+
if (width === 0 || height === 0)
|
|
10141
|
+
return;
|
|
10142
|
+
const clamp = (value) => Math.max(-1, Math.min(1, value));
|
|
10143
|
+
if (ev.pointerType !== 'touch') {
|
|
10144
|
+
this.pointer = {
|
|
10145
|
+
x: clamp(((ev.clientX - left) / width) * 2 - 1),
|
|
10146
|
+
y: clamp(((ev.clientY - top) / height) * 2 - 1),
|
|
10147
|
+
};
|
|
10148
|
+
}
|
|
10149
|
+
// back over the book with no button held: the drag was released where nothing could tell
|
|
10150
|
+
if (((_a = this.drag) === null || _a === void 0 ? void 0 : _a.pointerId) === ev.pointerId && ev.pointerType !== 'touch' && ev.buttons === 0) {
|
|
10151
|
+
this.endDrag(false);
|
|
10152
|
+
}
|
|
10153
|
+
if (((_b = this.drag) === null || _b === void 0 ? void 0 : _b.pointerId) === ev.pointerId) {
|
|
10154
|
+
const distance = ev.clientX - this.drag.startX;
|
|
10155
|
+
if (Math.abs(distance) > 4)
|
|
10156
|
+
this.drag.moved = true;
|
|
10157
|
+
const { max, min } = dragRange(restPose(this.pose));
|
|
10158
|
+
this.goal.turn = Math.max(min, Math.min(max, this.drag.startTurn + (distance / width) * dragPerWidth));
|
|
10159
|
+
this.wake();
|
|
10160
|
+
return;
|
|
10161
|
+
}
|
|
10162
|
+
this.aim();
|
|
10163
|
+
}
|
|
10164
|
+
// a drag turns the book, within limits, to see a side, and lets it go back when released
|
|
10165
|
+
pointerDownHandler(ev) {
|
|
10166
|
+
var _a;
|
|
10167
|
+
if (ev.button !== 0 || this.still())
|
|
10168
|
+
return;
|
|
10169
|
+
this.dragged = false;
|
|
10170
|
+
this.drag = {
|
|
10171
|
+
moved: false,
|
|
10172
|
+
pointerId: ev.pointerId,
|
|
10173
|
+
startTurn: this.current.turn,
|
|
10174
|
+
startX: ev.clientX,
|
|
10175
|
+
};
|
|
10176
|
+
// the drag goes on outside the book; a pointer the browser no longer tracks cannot be captured
|
|
10177
|
+
try {
|
|
10178
|
+
this.host.setPointerCapture(ev.pointerId);
|
|
10179
|
+
}
|
|
10180
|
+
catch (_b) {
|
|
10181
|
+
// the drag still follows the pointer while it stays over the book
|
|
10182
|
+
}
|
|
10183
|
+
(_a = this.scene) === null || _a === void 0 ? void 0 : _a.classList.add('scene--dragging');
|
|
10184
|
+
this.watchDrag();
|
|
10185
|
+
this.aim();
|
|
10186
|
+
}
|
|
10187
|
+
pointerUpHandler(ev) {
|
|
10188
|
+
var _a;
|
|
10189
|
+
if (((_a = this.drag) === null || _a === void 0 ? void 0 : _a.pointerId) === ev.pointerId)
|
|
10190
|
+
this.endDrag(this.drag.moved);
|
|
10191
|
+
}
|
|
10192
|
+
// the browser took the pointer back (a scroll, a gesture), or let it go out of the frame
|
|
10193
|
+
pointerLostHandler(ev) {
|
|
10194
|
+
var _a;
|
|
10195
|
+
if (((_a = this.drag) === null || _a === void 0 ? void 0 : _a.pointerId) === ev.pointerId)
|
|
10196
|
+
this.endDrag(false);
|
|
10197
|
+
}
|
|
10198
|
+
pointerLeaveHandler() {
|
|
10199
|
+
if (this.drag !== undefined)
|
|
10200
|
+
return;
|
|
10201
|
+
this.hovering = false;
|
|
10202
|
+
this.pointer = { x: 0, y: 0 };
|
|
10203
|
+
this.aim();
|
|
10204
|
+
}
|
|
10205
|
+
// a drag that turned the book is not a click: inside a link, it would follow the link
|
|
10206
|
+
clickHandler(ev) {
|
|
10207
|
+
if (!this.dragged)
|
|
10208
|
+
return;
|
|
10209
|
+
this.dragged = false;
|
|
10210
|
+
ev.preventDefault();
|
|
10211
|
+
ev.stopPropagation();
|
|
10212
|
+
}
|
|
10213
|
+
componentWillLoad() {
|
|
10214
|
+
this.warnInvalidFormat(this.format);
|
|
10215
|
+
this.warnInvalidPages(this.pages);
|
|
10216
|
+
this.current = this.goal = restPose(this.pose);
|
|
10217
|
+
}
|
|
10218
|
+
// after every render, so the faces a new binding brings take the light of the pose at once,
|
|
10219
|
+
// and a book told to keep still (a preference that changed) goes back to its pose
|
|
10220
|
+
componentDidRender() {
|
|
10221
|
+
if (!Build.isBrowser)
|
|
10222
|
+
return;
|
|
10223
|
+
if (this.still())
|
|
10224
|
+
this.current = this.goal = restPose(this.pose);
|
|
10225
|
+
this.writePose();
|
|
10226
|
+
}
|
|
10227
|
+
disconnectedCallback() {
|
|
10228
|
+
var _a;
|
|
10229
|
+
if (this.frame !== undefined)
|
|
10230
|
+
cancelAnimationFrame(this.frame);
|
|
10231
|
+
this.frame = undefined;
|
|
10232
|
+
this.drag = undefined;
|
|
10233
|
+
(_a = this.dragWatch) === null || _a === void 0 ? void 0 : _a.abort();
|
|
10234
|
+
this.dragWatch = undefined;
|
|
10235
|
+
this.hovering = false;
|
|
10236
|
+
}
|
|
10237
|
+
render() {
|
|
10238
|
+
const hardcover = this.binding === 'hardcover';
|
|
10239
|
+
if (!hardcover)
|
|
10240
|
+
this.slats = [];
|
|
10241
|
+
return (hAsync(Host, Object.assign({ key: 'bb31d3ccdd45d59a6586d179bec741c03f424137' }, this.hostRole(), { "pref-animation": preferenceStore.state.animation, "pref-consumption": preferenceStore.state.consumption,
|
|
10242
|
+
// the proportions of the book are those of the host, as an image keeps its own
|
|
10243
|
+
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: {
|
|
10244
|
+
book: true,
|
|
10245
|
+
'book--pending': this.hasImage() && this.coverUrl === undefined,
|
|
10246
|
+
}, 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()))))));
|
|
10247
|
+
}
|
|
10248
|
+
get host() { return getElement(this); }
|
|
10249
|
+
static get watchers() { return {
|
|
10250
|
+
"format": [{
|
|
10251
|
+
"formatHandler": 0
|
|
10252
|
+
}],
|
|
10253
|
+
"pages": [{
|
|
10254
|
+
"pagesHandler": 0
|
|
10255
|
+
}],
|
|
10256
|
+
"pose": [{
|
|
10257
|
+
"poseHandler": 0
|
|
10258
|
+
}],
|
|
10259
|
+
"src": [{
|
|
10260
|
+
"srcHandler": 0
|
|
10261
|
+
}]
|
|
10262
|
+
}; }
|
|
10263
|
+
static get style() { return mdsBookCss(); }
|
|
10264
|
+
static get cmpMeta() { return {
|
|
10265
|
+
"$flags$": 9,
|
|
10266
|
+
"$tagName$": "mds-book",
|
|
10267
|
+
"$members$": {
|
|
10268
|
+
"alt": [1],
|
|
10269
|
+
"author": [1],
|
|
10270
|
+
"binding": [513],
|
|
10271
|
+
"format": [513],
|
|
10272
|
+
"loading": [1],
|
|
10273
|
+
"name": [1],
|
|
10274
|
+
"pages": [2],
|
|
10275
|
+
"pose": [513],
|
|
10276
|
+
"publisher": [1],
|
|
10277
|
+
"src": [1],
|
|
10278
|
+
"coverUrl": [32],
|
|
10279
|
+
"imageError": [32],
|
|
10280
|
+
"imageRatio": [32]
|
|
10281
|
+
},
|
|
10282
|
+
"$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"]],
|
|
10283
|
+
"$lazyBundleId$": "-",
|
|
10284
|
+
"$attrsToReflect$": [["binding", "binding"], ["format", "format"], ["pose", "pose"]]
|
|
10285
|
+
}; }
|
|
10286
|
+
}
|
|
10287
|
+
|
|
9550
10288
|
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>`;
|
|
9551
10289
|
|
|
9552
10290
|
const back$3 = "Πήγαινε πίσω";
|
|
@@ -9573,6 +10311,7 @@ const mdsBreadcrumbCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
9573
10311
|
|
|
9574
10312
|
/**
|
|
9575
10313
|
* @slot - Add `mds-breadcrumb-item` element/s.
|
|
10314
|
+
* @category navigation
|
|
9576
10315
|
*/
|
|
9577
10316
|
class MdsBreadcrumb {
|
|
9578
10317
|
constructor(hostRef) {
|
|
@@ -9648,7 +10387,7 @@ class MdsBreadcrumb {
|
|
|
9648
10387
|
this.onChanged(selectedId, event.target);
|
|
9649
10388
|
}
|
|
9650
10389
|
render() {
|
|
9651
|
-
return (hAsync(Host, { key: '
|
|
10390
|
+
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' })));
|
|
9652
10391
|
}
|
|
9653
10392
|
get element() { return getElement(this); }
|
|
9654
10393
|
static get style() { return mdsBreadcrumbCss(); }
|
|
@@ -9670,6 +10409,7 @@ const mdsBreadcrumbItemCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
9670
10409
|
|
|
9671
10410
|
/**
|
|
9672
10411
|
* @part button - The `mds-button` of the item, which shows its `label`
|
|
10412
|
+
* @parent mds-breadcrumb
|
|
9673
10413
|
*/
|
|
9674
10414
|
class MdsBreadcrumbItem {
|
|
9675
10415
|
constructor(hostRef) {
|
|
@@ -9685,7 +10425,7 @@ class MdsBreadcrumbItem {
|
|
|
9685
10425
|
};
|
|
9686
10426
|
}
|
|
9687
10427
|
render() {
|
|
9688
|
-
return (hAsync(Host, { key: '
|
|
10428
|
+
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 })));
|
|
9689
10429
|
}
|
|
9690
10430
|
get element() { return getElement(this); }
|
|
9691
10431
|
static get style() { return mdsBreadcrumbItemCss(); }
|
|
@@ -9892,6 +10632,7 @@ const mdsButtonCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
9892
10632
|
* @slot notification - Add `HTML elements` or `components`, it is **recommended** to use `mds-notification` element.
|
|
9893
10633
|
* @part icon - The icon inside the component
|
|
9894
10634
|
* @part label - The text of the button: the `label`, or the default slot when `label` is not set
|
|
10635
|
+
* @category actions
|
|
9895
10636
|
*/
|
|
9896
10637
|
class MdsButton {
|
|
9897
10638
|
constructor(hostRef) {
|
|
@@ -10164,16 +10905,16 @@ class MdsButton {
|
|
|
10164
10905
|
var _a;
|
|
10165
10906
|
this.typography = ((_a = buttonSizeTypographyVariant[this.size]) !== null && _a !== void 0 ? _a : buttonSizeTypographyVariant.md);
|
|
10166
10907
|
this.hasAwaited || (this.hasAwaited = !!this.await);
|
|
10167
|
-
const label = this.label || hAsync("slot", { key: '
|
|
10168
|
-
return (hAsync(Host, { key: '
|
|
10908
|
+
const label = this.label || hAsync("slot", { key: '120c97a64a4e076e702f01500b770be0451e9bfe', onSlotchange: this.onSlotChangeHandler });
|
|
10909
|
+
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() && (
|
|
10169
10910
|
// the link under the pointer, over the whole button: the host keeps the focus, the
|
|
10170
10911
|
// role and the name, so the anchor is out of the tab order and hidden from the
|
|
10171
10912
|
// assistive technology
|
|
10172
|
-
hAsync("a", { key: '
|
|
10913
|
+
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)) : (
|
|
10173
10914
|
// a span of its own, not an mds-text: a nested component is one more to hydrate and
|
|
10174
10915
|
// its whole stylesheet in every declarative shadow root (#831). Only the animated
|
|
10175
10916
|
// label needs mds-text, which scrambles it
|
|
10176
|
-
hAsync("span", { class: "text label", part: "label" }, label)), hAsync("slot", { key: '
|
|
10917
|
+
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" }))));
|
|
10177
10918
|
}
|
|
10178
10919
|
static get formAssociated() { return true; }
|
|
10179
10920
|
get host() { return getElement(this); }
|
|
@@ -10256,6 +10997,7 @@ const mdsButtonDropdownCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
10256
10997
|
/**
|
|
10257
10998
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
10258
10999
|
* @part dropdown - The `mds-dropdown` that the arrow opens, with the default slot inside
|
|
11000
|
+
* @category actions
|
|
10259
11001
|
*/
|
|
10260
11002
|
class MdsButtonDropdown {
|
|
10261
11003
|
constructor(hostRef) {
|
|
@@ -10332,7 +11074,7 @@ class MdsButtonDropdown {
|
|
|
10332
11074
|
}
|
|
10333
11075
|
}
|
|
10334
11076
|
render() {
|
|
10335
|
-
return (hAsync(Host, { key: '
|
|
11077
|
+
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' }))));
|
|
10336
11078
|
}
|
|
10337
11079
|
static get formAssociated() { return true; }
|
|
10338
11080
|
get host() { return getElement(this); }
|
|
@@ -10368,13 +11110,14 @@ const mdsButtonGroupCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
10368
11110
|
|
|
10369
11111
|
/**
|
|
10370
11112
|
* @slot - Add `mds-button` or `mds-button-dropdown` elements to this slot.
|
|
11113
|
+
* @category actions
|
|
10371
11114
|
*/
|
|
10372
11115
|
class MdsButtonGroup {
|
|
10373
11116
|
constructor(hostRef) {
|
|
10374
11117
|
registerInstance(this, hostRef);
|
|
10375
11118
|
}
|
|
10376
11119
|
render() {
|
|
10377
|
-
return (hAsync(Host, { key: '
|
|
11120
|
+
return (hAsync(Host, { key: 'e7a492c6c438e5991d8e703c6bff0491e6734d0e' }, hAsync("slot", { key: '0fc80c7fcb6ebc6857443223017d0719dfbf85f0' })));
|
|
10378
11121
|
}
|
|
10379
11122
|
static get style() { return mdsButtonGroupCss(); }
|
|
10380
11123
|
static get cmpMeta() { return {
|
|
@@ -18589,6 +19332,7 @@ const mdsCalendarCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
18589
19332
|
|
|
18590
19333
|
/**
|
|
18591
19334
|
* @slot preselection - Add `HTML elements` or `components` shown in the calendar preselection area.
|
|
19335
|
+
* @category forms
|
|
18592
19336
|
*/
|
|
18593
19337
|
class MdsCalendar {
|
|
18594
19338
|
constructor(hostRef) {
|
|
@@ -19237,21 +19981,21 @@ class MdsCalendar {
|
|
|
19237
19981
|
return undefined;
|
|
19238
19982
|
}
|
|
19239
19983
|
render() {
|
|
19240
|
-
return (hAsync(Host, { key: '
|
|
19984
|
+
return (hAsync(Host, { key: '5ece6c00dd42e09020407a839a354c3076565a2f' }, hAsync("div", { key: '49f671efc9d432d9c4eb4d28f0c6b33b9873422d', class: clsx('calendar-preselection', this.hasPreselection &&
|
|
19241
19985
|
!this.hidePreselection &&
|
|
19242
|
-
'calendar-preselection--has-preselection') }, hAsync("slot", { key: '
|
|
19986
|
+
'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",
|
|
19243
19987
|
// the months view has nothing to move back or forward to
|
|
19244
|
-
disabled: this.currentView === 'months', icon: miBaselineBackIosNew, variant: "dark", tone: "text", onClick: this.handlePrev })), hAsync("div", { key: '
|
|
19988
|
+
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 &&
|
|
19245
19989
|
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
|
|
19246
19990
|
.setLocale(preferenceStore.state.language)
|
|
19247
19991
|
.toFormat('cccc d LLLL')
|
|
19248
|
-
.replace(/^./, (char) => char.toUpperCase()), label: dayInfo.date.toFormat('dd') })))))), this.currentView === 'months' && (hAsync("section", { key: '
|
|
19992
|
+
.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) => {
|
|
19249
19993
|
const monthName = DateTime.local()
|
|
19250
19994
|
.set({ month: index + 1 })
|
|
19251
19995
|
.setLocale(preferenceStore.state.language)
|
|
19252
19996
|
.toFormat('MMMM');
|
|
19253
19997
|
return (hAsync("mds-button", { class: "action", variant: "dark", tone: "text", label: monthName, onClick: this.handleMonthSelect(index + 1) }));
|
|
19254
|
-
})))), this.currentView === 'years' && (hAsync("section", { key: '
|
|
19998
|
+
})))), this.currentView === 'years' && (hAsync("section", { key: 'f9df821453277ca1e20fe56bb8533768b68e62b0', class: "year-selection" }, hAsync("header", { key: '4aa693be77a139bfd8bedf79b0516b17763937ce', class: "month-view__years" }, Array.from({ length: 12 }).map((_, index) => {
|
|
19255
19999
|
const year = this.selectedYear + index;
|
|
19256
20000
|
return (hAsync("mds-button", { class: "action", variant: "dark", tone: "text", label: `${year}`, onClick: this.handleYearSelect(year) }));
|
|
19257
20001
|
})))))));
|
|
@@ -19311,6 +20055,9 @@ class MdsCalendar {
|
|
|
19311
20055
|
|
|
19312
20056
|
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)}`;
|
|
19313
20057
|
|
|
20058
|
+
/**
|
|
20059
|
+
* @parent mds-calendar
|
|
20060
|
+
*/
|
|
19314
20061
|
class MdsCalendarCell {
|
|
19315
20062
|
constructor(hostRef) {
|
|
19316
20063
|
registerInstance(this, hostRef);
|
|
@@ -19339,7 +20086,7 @@ class MdsCalendarCell {
|
|
|
19339
20086
|
this.today = undefined;
|
|
19340
20087
|
}
|
|
19341
20088
|
render() {
|
|
19342
|
-
return (hAsync(Host, { key: '
|
|
20089
|
+
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 })));
|
|
19343
20090
|
}
|
|
19344
20091
|
static get style() { return mdsCalendarCellCss(); }
|
|
19345
20092
|
static get cmpMeta() { return {
|
|
@@ -19371,6 +20118,7 @@ const REGIONS = ['content', 'footer', 'header', 'media'];
|
|
|
19371
20118
|
* @slot header - Add `HTML elements` or `components`, it's responsive behaviour based on container queries is handled with `auto-grid` enabled
|
|
19372
20119
|
* @slot content - Add `HTML elements` or `components`, it's responsive behaviour based on container queries is handled with `auto-grid` enabled
|
|
19373
20120
|
* @slot footer - Add `HTML elements` or `components`, it's responsive behaviour based on container queries is handled with `auto-grid` enabled
|
|
20121
|
+
* @category structure
|
|
19374
20122
|
*/
|
|
19375
20123
|
class MdsCard {
|
|
19376
20124
|
constructor(hostRef) {
|
|
@@ -19402,7 +20150,7 @@ class MdsCard {
|
|
|
19402
20150
|
this.updateLayout();
|
|
19403
20151
|
}
|
|
19404
20152
|
render() {
|
|
19405
|
-
return (hAsync(Host, { key: '
|
|
20153
|
+
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 }))));
|
|
19406
20154
|
}
|
|
19407
20155
|
get host() { return getElement(this); }
|
|
19408
20156
|
static get style() { return mdsCardCss(); }
|
|
@@ -19423,13 +20171,14 @@ const mdsCardContentCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
19423
20171
|
|
|
19424
20172
|
/**
|
|
19425
20173
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
20174
|
+
* @parent mds-card
|
|
19426
20175
|
*/
|
|
19427
20176
|
class MdsCardContent {
|
|
19428
20177
|
constructor(hostRef) {
|
|
19429
20178
|
registerInstance(this, hostRef);
|
|
19430
20179
|
}
|
|
19431
20180
|
render() {
|
|
19432
|
-
return (hAsync(Host, { key: '
|
|
20181
|
+
return (hAsync(Host, { key: '9442d6ac5c93929fb7c33552f8ed265c0be5903d', slot: "content" }, hAsync("slot", { key: '6687d6821f4e887066dbaf83a262273be3500d21' })));
|
|
19433
20182
|
}
|
|
19434
20183
|
static get style() { return mdsCardContentCss(); }
|
|
19435
20184
|
static get cmpMeta() { return {
|
|
@@ -19446,13 +20195,14 @@ const mdsCardFooterCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
19446
20195
|
|
|
19447
20196
|
/**
|
|
19448
20197
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
20198
|
+
* @parent mds-card
|
|
19449
20199
|
*/
|
|
19450
20200
|
class MdsCardFooter {
|
|
19451
20201
|
constructor(hostRef) {
|
|
19452
20202
|
registerInstance(this, hostRef);
|
|
19453
20203
|
}
|
|
19454
20204
|
render() {
|
|
19455
|
-
return (hAsync(Host, { key: '
|
|
20205
|
+
return (hAsync(Host, { key: '1244832dcbc5ec2b4b8ea3c8f5a427559e4017e6', slot: "footer" }, hAsync("slot", { key: '6a7b42f770545ec2192b43004fa1d6bc6b8e6f5d' })));
|
|
19456
20206
|
}
|
|
19457
20207
|
static get style() { return mdsCardFooterCss(); }
|
|
19458
20208
|
static get cmpMeta() { return {
|
|
@@ -19470,6 +20220,7 @@ const mdsCardHeaderCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
19470
20220
|
/**
|
|
19471
20221
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
19472
20222
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
20223
|
+
* @parent mds-card
|
|
19473
20224
|
*/
|
|
19474
20225
|
class MdsCardHeader {
|
|
19475
20226
|
constructor(hostRef) {
|
|
@@ -19482,7 +20233,7 @@ class MdsCardHeader {
|
|
|
19482
20233
|
this.hasActions = hasChildWithSlot(this.hostElement, 'action');
|
|
19483
20234
|
}
|
|
19484
20235
|
render() {
|
|
19485
|
-
return (hAsync(Host, { key: '
|
|
20236
|
+
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 }))));
|
|
19486
20237
|
}
|
|
19487
20238
|
get hostElement() { return getElement(this); }
|
|
19488
20239
|
static get style() { return mdsCardHeaderCss(); }
|
|
@@ -19504,13 +20255,14 @@ const mdsCardMediaCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
19504
20255
|
* @slot - Add `HTML elements` or `components` to this slot, it is **recommended** to add `mds-img` element or other component which represents media contents.
|
|
19505
20256
|
* @slot content - Add `text string`, `HTML elements` or `components` to this slot, contents will be shown in front of the media element.
|
|
19506
20257
|
* @part content - The layer in front of the media that holds the `content` slot
|
|
20258
|
+
* @parent mds-card
|
|
19507
20259
|
*/
|
|
19508
20260
|
class MdsCardMedia {
|
|
19509
20261
|
constructor(hostRef) {
|
|
19510
20262
|
registerInstance(this, hostRef);
|
|
19511
20263
|
}
|
|
19512
20264
|
render() {
|
|
19513
|
-
return (hAsync(Host, { key: '
|
|
20265
|
+
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' })));
|
|
19514
20266
|
}
|
|
19515
20267
|
static get style() { return mdsCardMediaCss(); }
|
|
19516
20268
|
static get cmpMeta() { return {
|
|
@@ -19547,6 +20299,9 @@ var localeIt$H = {
|
|
|
19547
20299
|
|
|
19548
20300
|
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))}}`;
|
|
19549
20301
|
|
|
20302
|
+
/**
|
|
20303
|
+
* @category tags
|
|
20304
|
+
*/
|
|
19550
20305
|
class MdsChip {
|
|
19551
20306
|
constructor(hostRef) {
|
|
19552
20307
|
registerInstance(this, hostRef);
|
|
@@ -19639,7 +20394,7 @@ class MdsChip {
|
|
|
19639
20394
|
}
|
|
19640
20395
|
render() {
|
|
19641
20396
|
const interactive = !!this.clickable;
|
|
19642
|
-
return (hAsync(Host, { key: '
|
|
20397
|
+
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" }))));
|
|
19643
20398
|
}
|
|
19644
20399
|
get host() { return getElement(this); }
|
|
19645
20400
|
static get watchers() { return {
|
|
@@ -19681,6 +20436,7 @@ const mdsDetailsCss = () => `@layer reset,vendor,theme,base,components,utilities
|
|
|
19681
20436
|
* @part header - The header of the component
|
|
19682
20437
|
* @part title - The title of the component
|
|
19683
20438
|
* @part content - The content wrapper of the default and `action` slots
|
|
20439
|
+
* @category structure
|
|
19684
20440
|
*/
|
|
19685
20441
|
class MdsDetails {
|
|
19686
20442
|
constructor(hostRef) {
|
|
@@ -19730,7 +20486,7 @@ class MdsDetails {
|
|
|
19730
20486
|
this.km.detachClickBehavior();
|
|
19731
20487
|
}
|
|
19732
20488
|
render() {
|
|
19733
|
-
return (hAsync(Host, { key: '
|
|
20489
|
+
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" })))))));
|
|
19734
20490
|
}
|
|
19735
20491
|
get host() { return getElement(this); }
|
|
19736
20492
|
static get watchers() { return {
|
|
@@ -21802,6 +22558,7 @@ const mdsDropdownCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
21802
22558
|
|
|
21803
22559
|
/**
|
|
21804
22560
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot, elements will be shown when the component is triggered.
|
|
22561
|
+
* @category overlays
|
|
21805
22562
|
*/
|
|
21806
22563
|
class MdsDropdown {
|
|
21807
22564
|
constructor(hostRef) {
|
|
@@ -22169,9 +22926,9 @@ class MdsDropdown {
|
|
|
22169
22926
|
this.km.detachEscapeBehavior();
|
|
22170
22927
|
}
|
|
22171
22928
|
render() {
|
|
22172
|
-
return (hAsync(Host, { key: '
|
|
22929
|
+
return (hAsync(Host, { key: '9c74b0961efa29a02485dcbc7a786d34b8cca453', style: {
|
|
22173
22930
|
zIndex: `${this.zIndex}`,
|
|
22174
|
-
}, "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: '
|
|
22931
|
+
}, "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' })));
|
|
22175
22932
|
}
|
|
22176
22933
|
get host() { return getElement(this); }
|
|
22177
22934
|
static get watchers() { return {
|
|
@@ -28437,6 +29194,9 @@ var simiSvg = `<svg width="440" height="440" viewBox="0 0 440 440" fill="none" x
|
|
|
28437
29194
|
|
|
28438
29195
|
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}`;
|
|
28439
29196
|
|
|
29197
|
+
/**
|
|
29198
|
+
* @category content
|
|
29199
|
+
*/
|
|
28440
29200
|
class MdsEmoji {
|
|
28441
29201
|
constructor(hostRef) {
|
|
28442
29202
|
registerInstance(this, hostRef);
|
|
@@ -29392,7 +30152,7 @@ class MdsEmoji {
|
|
|
29392
30152
|
return element;
|
|
29393
30153
|
}
|
|
29394
30154
|
render() {
|
|
29395
|
-
return hAsync(Host, { key: '
|
|
30155
|
+
return hAsync(Host, { key: 'c833178744078d72a9d596bb8d5caded53db1627' });
|
|
29396
30156
|
}
|
|
29397
30157
|
get host() { return getElement(this); }
|
|
29398
30158
|
static get watchers() { return {
|
|
@@ -29431,6 +30191,7 @@ const mdsEntityCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
29431
30191
|
* @part spinner - The spinner element
|
|
29432
30192
|
* @part avatar - The avatar element
|
|
29433
30193
|
* @part infos - The column that stacks the name (default slot) and the `detail` row
|
|
30194
|
+
* @category data
|
|
29434
30195
|
*/
|
|
29435
30196
|
class MdsEntity {
|
|
29436
30197
|
constructor(hostRef) {
|
|
@@ -29460,7 +30221,7 @@ class MdsEntity {
|
|
|
29460
30221
|
this.onSlotChange();
|
|
29461
30222
|
}
|
|
29462
30223
|
render() {
|
|
29463
|
-
return (hAsync(Host, { key: '
|
|
30224
|
+
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 }))));
|
|
29464
30225
|
}
|
|
29465
30226
|
get hostElement() { return getElement(this); }
|
|
29466
30227
|
static get style() { return mdsEntityCss(); }
|
|
@@ -30104,6 +30865,9 @@ var fileDescriptionLocaleIt = {
|
|
|
30104
30865
|
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))}}`;
|
|
30105
30866
|
|
|
30106
30867
|
// https://stackoverflow.com/questions/1106377/detect-when-a-browser-receives-a-file-download
|
|
30868
|
+
/**
|
|
30869
|
+
* @category content
|
|
30870
|
+
*/
|
|
30107
30871
|
class MdsFile {
|
|
30108
30872
|
constructor(hostRef) {
|
|
30109
30873
|
registerInstance(this, hostRef);
|
|
@@ -30172,7 +30936,7 @@ class MdsFile {
|
|
|
30172
30936
|
}
|
|
30173
30937
|
render() {
|
|
30174
30938
|
var _a, _b;
|
|
30175
|
-
return (hAsync(Host, { key: '
|
|
30939
|
+
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') })))));
|
|
30176
30940
|
}
|
|
30177
30941
|
get host() { return getElement(this); }
|
|
30178
30942
|
static get watchers() { return {
|
|
@@ -30416,6 +31180,7 @@ const mdsFilePreviewCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
30416
31180
|
|
|
30417
31181
|
/**
|
|
30418
31182
|
* @part card - The preview of the file: its thumbnail or format icon, its name and its details
|
|
31183
|
+
* @category content
|
|
30419
31184
|
*/
|
|
30420
31185
|
class MdsFilePreview {
|
|
30421
31186
|
constructor(hostRef) {
|
|
@@ -30481,9 +31246,9 @@ class MdsFilePreview {
|
|
|
30481
31246
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
30482
31247
|
// a removed attribute or a null bound by a framework counts as not set, like an empty value
|
|
30483
31248
|
const hasMessage = ((_a = this.message) !== null && _a !== void 0 ? _a : '') !== '';
|
|
30484
|
-
return (hAsync(Host, { key: '
|
|
31249
|
+
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 : '') !== '' &&
|
|
30485
31250
|
!hasMessage &&
|
|
30486
|
-
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: '
|
|
31251
|
+
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())))))));
|
|
30487
31252
|
}
|
|
30488
31253
|
get host() { return getElement(this); }
|
|
30489
31254
|
static get watchers() { return {
|
|
@@ -30539,6 +31304,7 @@ const mdsFilterCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
30539
31304
|
|
|
30540
31305
|
/**
|
|
30541
31306
|
* @slot - Add `mds-filter-item` element/s.
|
|
31307
|
+
* @category forms
|
|
30542
31308
|
*/
|
|
30543
31309
|
class MdsFilter {
|
|
30544
31310
|
constructor(hostRef) {
|
|
@@ -30718,7 +31484,7 @@ class MdsFilter {
|
|
|
30718
31484
|
this.changedEvent.emit({ children: items, value: this.itemsValues() });
|
|
30719
31485
|
}
|
|
30720
31486
|
render() {
|
|
30721
|
-
return (hAsync(Host, { key: '
|
|
31487
|
+
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 })))))));
|
|
30722
31488
|
}
|
|
30723
31489
|
get element() { return getElement(this); }
|
|
30724
31490
|
static get style() { return mdsFilterCss(); }
|
|
@@ -30769,6 +31535,9 @@ var localeIt$D = {
|
|
|
30769
31535
|
|
|
30770
31536
|
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))}}`;
|
|
30771
31537
|
|
|
31538
|
+
/**
|
|
31539
|
+
* @parent mds-filter
|
|
31540
|
+
*/
|
|
30772
31541
|
class MdsFilterItem {
|
|
30773
31542
|
constructor(hostRef) {
|
|
30774
31543
|
registerInstance(this, hostRef);
|
|
@@ -30831,7 +31600,7 @@ class MdsFilterItem {
|
|
|
30831
31600
|
this.km.detachClickBehavior();
|
|
30832
31601
|
}
|
|
30833
31602
|
render() {
|
|
30834
|
-
return (hAsync(Host, { key: '
|
|
31603
|
+
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)))));
|
|
30835
31604
|
}
|
|
30836
31605
|
get element() { return getElement(this); }
|
|
30837
31606
|
static get style() { return mdsFilterItemCss(); }
|
|
@@ -30852,13 +31621,14 @@ class MdsFilterItem {
|
|
|
30852
31621
|
}; }
|
|
30853
31622
|
}
|
|
30854
31623
|
|
|
30855
|
-
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(
|
|
31624
|
+
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)))}}`;
|
|
30856
31625
|
|
|
30857
31626
|
// import clsx from 'clsx'
|
|
30858
31627
|
/**
|
|
30859
31628
|
* @part menu - The container element of the modal
|
|
30860
31629
|
* @slot - Add `mds-header-bar` element/s.
|
|
30861
31630
|
* @slot menu - Put actions and other contents that will be shown as mobile menu. Add `text string`, `HTML elements` or `components` to this slot.
|
|
31631
|
+
* @category structure
|
|
30862
31632
|
*/
|
|
30863
31633
|
class MdsHeader {
|
|
30864
31634
|
constructor(hostRef) {
|
|
@@ -31045,7 +31815,7 @@ class MdsHeader {
|
|
|
31045
31815
|
}
|
|
31046
31816
|
}
|
|
31047
31817
|
render() {
|
|
31048
|
-
return (hAsync(Host, { key: '
|
|
31818
|
+
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" }))))));
|
|
31049
31819
|
}
|
|
31050
31820
|
get host() { return getElement(this); }
|
|
31051
31821
|
static get watchers() { return {
|
|
@@ -31116,6 +31886,7 @@ const mdsHeaderBarCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
31116
31886
|
* @part nav - Selects the `nav` element that contains the horizontal menu
|
|
31117
31887
|
* @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.
|
|
31118
31888
|
* @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.
|
|
31889
|
+
* @parent mds-header
|
|
31119
31890
|
*/
|
|
31120
31891
|
class MdsHeaderBar {
|
|
31121
31892
|
constructor(hostRef) {
|
|
@@ -31157,7 +31928,7 @@ class MdsHeaderBar {
|
|
|
31157
31928
|
await ((_a = this.host.closest('mds-header')) === null || _a === void 0 ? void 0 : _a.setOpened(isOpened));
|
|
31158
31929
|
}
|
|
31159
31930
|
render() {
|
|
31160
|
-
return (hAsync(Host, { key: '
|
|
31931
|
+
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" }))))));
|
|
31161
31932
|
}
|
|
31162
31933
|
get host() { return getElement(this); }
|
|
31163
31934
|
static get style() { return mdsHeaderBarCss(); }
|
|
@@ -31184,6 +31955,7 @@ const mdsHelpCss = () => `@layer reset,vendor,theme,base,components,utilities;@k
|
|
|
31184
31955
|
/**
|
|
31185
31956
|
* @slot - Add `text string` to this slot, **avoid** `HTML elements` or `components`.
|
|
31186
31957
|
* @part icon - The icon that shows the help text in a tooltip
|
|
31958
|
+
* @category overlays
|
|
31187
31959
|
*/
|
|
31188
31960
|
class MdsHelp {
|
|
31189
31961
|
constructor(hostRef) {
|
|
@@ -31201,7 +31973,7 @@ class MdsHelp {
|
|
|
31201
31973
|
}
|
|
31202
31974
|
render() {
|
|
31203
31975
|
var _a;
|
|
31204
|
-
return (hAsync(Host, { key: '
|
|
31976
|
+
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' }))));
|
|
31205
31977
|
}
|
|
31206
31978
|
static get style() { return mdsHelpCss(); }
|
|
31207
31979
|
static get cmpMeta() { return {
|
|
@@ -31255,6 +32027,7 @@ const mdsHorizontalScrollCss = () => `@layer reset,vendor,theme,base,components,
|
|
|
31255
32027
|
/**
|
|
31256
32028
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
31257
32029
|
* @part content - The track that scrolls, with the default slot inside
|
|
32030
|
+
* @category structure
|
|
31258
32031
|
*/
|
|
31259
32032
|
class MdsHorizontalScroll {
|
|
31260
32033
|
constructor(hostRef) {
|
|
@@ -31456,7 +32229,7 @@ class MdsHorizontalScroll {
|
|
|
31456
32229
|
this.contents.removeEventListener('scroll', this.translateNavigationDot);
|
|
31457
32230
|
}
|
|
31458
32231
|
render() {
|
|
31459
|
-
return (hAsync(Host, { key: '
|
|
32232
|
+
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 }))));
|
|
31460
32233
|
}
|
|
31461
32234
|
get host() { return getElement(this); }
|
|
31462
32235
|
static get watchers() { return {
|
|
@@ -31484,12 +32257,15 @@ class MdsHorizontalScroll {
|
|
|
31484
32257
|
|
|
31485
32258
|
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%}`;
|
|
31486
32259
|
|
|
32260
|
+
/**
|
|
32261
|
+
* @category structure
|
|
32262
|
+
*/
|
|
31487
32263
|
class MdsHr {
|
|
31488
32264
|
constructor(hostRef) {
|
|
31489
32265
|
registerInstance(this, hostRef);
|
|
31490
32266
|
}
|
|
31491
32267
|
render() {
|
|
31492
|
-
return (hAsync(Host, { key: '
|
|
32268
|
+
return (hAsync(Host, { key: 'f37b5fd798efd5855bb821435527e712ef4e9d5e', "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }));
|
|
31493
32269
|
}
|
|
31494
32270
|
static get style() { return mdsHrCss(); }
|
|
31495
32271
|
static get cmpMeta() { return {
|
|
@@ -31819,6 +32595,7 @@ const mdsIconCss = () => `@layer reset,vendor,theme,base,components,utilities;:h
|
|
|
31819
32595
|
|
|
31820
32596
|
/**
|
|
31821
32597
|
* @part svg - The svg container of the icon
|
|
32598
|
+
* @category content
|
|
31822
32599
|
*/
|
|
31823
32600
|
class MdsIcon {
|
|
31824
32601
|
constructor(hostRef) {
|
|
@@ -31890,7 +32667,7 @@ class MdsIcon {
|
|
|
31890
32667
|
}
|
|
31891
32668
|
}
|
|
31892
32669
|
render() {
|
|
31893
|
-
return (hAsync(Host, { key: '
|
|
32670
|
+
return (hAsync(Host, { key: 'cad78449760538aff33f53ecaadc71193d7fdbb8' }, this.svgHTML && hAsync("i", { key: '5cebc9a01a40ce5cfba4508932bf2d270f061327', "aria-hidden": "true", class: "icon", part: "svg", innerHTML: this.svgHTML })));
|
|
31894
32671
|
}
|
|
31895
32672
|
get hostElement() { return getElement(this); }
|
|
31896
32673
|
static get watchers() { return {
|
|
@@ -31940,6 +32717,7 @@ const mdsImgCss = () => `@layer reset,vendor,theme,base,components,utilities;:ho
|
|
|
31940
32717
|
|
|
31941
32718
|
/**
|
|
31942
32719
|
* @part media - The native `<img>` that shows the picture
|
|
32720
|
+
* @category content
|
|
31943
32721
|
*/
|
|
31944
32722
|
class MdsImg {
|
|
31945
32723
|
constructor(hostRef) {
|
|
@@ -32809,6 +33587,7 @@ const mdsInputCss = () => `@layer reset,vendor,theme,base,components,utilities;:
|
|
|
32809
33587
|
* @part tip-count - Selects the mds-input-tip-item shown when maxlength attribute is set, can be used to hide it if needed
|
|
32810
33588
|
* @part tip-top - Selects the verbose status of input on top of element
|
|
32811
33589
|
* @part tip-bottom - Selects the verbose status of input on bottom of element
|
|
33590
|
+
* @category forms
|
|
32812
33591
|
*/
|
|
32813
33592
|
class MdsInput {
|
|
32814
33593
|
constructor(hostRef) {
|
|
@@ -33304,9 +34083,9 @@ class MdsInput {
|
|
|
33304
34083
|
}
|
|
33305
34084
|
render() {
|
|
33306
34085
|
var _a, _b, _c;
|
|
33307
|
-
return (hAsync(Host, { key: '
|
|
34086
|
+
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) => {
|
|
33308
34087
|
return hAsync("option", { key: i, value: element });
|
|
33309
|
-
}))), this.icon && !this.await && (hAsync("mds-icon", { key: '
|
|
34088
|
+
}))), 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) })));
|
|
33310
34089
|
}
|
|
33311
34090
|
static get formAssociated() { return true; }
|
|
33312
34091
|
get el() { return getElement(this); }
|
|
@@ -33421,6 +34200,7 @@ const mdsInputDateCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
33421
34200
|
// TODO add input validation manager for error message
|
|
33422
34201
|
/**
|
|
33423
34202
|
* @part input-date - The native date input
|
|
34203
|
+
* @category forms
|
|
33424
34204
|
*/
|
|
33425
34205
|
class MdsInputDate {
|
|
33426
34206
|
constructor(hostRef) {
|
|
@@ -33683,11 +34463,11 @@ class MdsInputDate {
|
|
|
33683
34463
|
this.validateValue();
|
|
33684
34464
|
}
|
|
33685
34465
|
render() {
|
|
33686
|
-
return (hAsync(Host, { key: '
|
|
34466
|
+
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",
|
|
33687
34467
|
// the default md button fills the 36px square of an md field; sm fits the 28px one
|
|
33688
34468
|
size: this.size === 'sm' ? 'sm' : undefined,
|
|
33689
34469
|
// a read-only date cannot change, from the calendar either
|
|
33690
|
-
disabled: this.isDisabled() || this.readonly, variant: "dark", tone: "text", icon: miBaselineCalendarToday, onClick: this.handleOpenCalendarClick }))), hAsync("mds-input-tip", { key: '
|
|
34470
|
+
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 } : {})))))));
|
|
33691
34471
|
}
|
|
33692
34472
|
static get formAssociated() { return true; }
|
|
33693
34473
|
get host() { return getElement(this); }
|
|
@@ -33797,6 +34577,7 @@ const mdsInputDateRangeCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
33797
34577
|
* @slot calendar-preselection - Add `HTML elements` or `components` to this slot.
|
|
33798
34578
|
* @slot start - Add `HTML elements` or `components` to this slot.
|
|
33799
34579
|
* @slot end - Add `HTML elements` or `components` to this slot.
|
|
34580
|
+
* @category forms
|
|
33800
34581
|
*/
|
|
33801
34582
|
class MdsInputDateRange {
|
|
33802
34583
|
constructor(hostRef) {
|
|
@@ -34326,9 +35107,9 @@ class MdsInputDateRange {
|
|
|
34326
35107
|
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 } : {})))));
|
|
34327
35108
|
}
|
|
34328
35109
|
render() {
|
|
34329
|
-
return (hAsync(Host, { key: '
|
|
35110
|
+
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",
|
|
34330
35111
|
// the default md button fills the 36px square of an md field; sm fits the 28px one
|
|
34331
|
-
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: '
|
|
35112
|
+
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())));
|
|
34332
35113
|
}
|
|
34333
35114
|
syncFormValue() {
|
|
34334
35115
|
var _a, _b, _c, _d;
|
|
@@ -34396,6 +35177,7 @@ const mdsInputDateRangePreselectionCss = () => `@layer reset,vendor,theme,base,c
|
|
|
34396
35177
|
* @slot - Add the `text string` of the preselection, as `Last 7 days`: it becomes the label of
|
|
34397
35178
|
* the button that applies the range. **Avoid** `HTML elements` or `components`, which end up
|
|
34398
35179
|
* inside an `mds-button`.
|
|
35180
|
+
* @parent mds-input-date-range
|
|
34399
35181
|
*/
|
|
34400
35182
|
class MdsInputDateRangePreselection {
|
|
34401
35183
|
constructor(hostRef) {
|
|
@@ -34419,7 +35201,7 @@ class MdsInputDateRangePreselection {
|
|
|
34419
35201
|
}
|
|
34420
35202
|
}
|
|
34421
35203
|
render() {
|
|
34422
|
-
return (hAsync(Host, { key: '
|
|
35204
|
+
return (hAsync(Host, { key: '202ebd20cf70d0062792763c805de5fa89c984ad' }, hAsync("mds-button", { key: '872ffe12a2244d9bd0623e57927a3d21c123c14f', onClick: this.onClick, class: "action", variant: "primary", tone: "strong" }, hAsync("slot", { key: 'd7618ad21b0cdc80afe3d39905dc8848c5f585ca' }))));
|
|
34423
35205
|
}
|
|
34424
35206
|
get host() { return getElement(this); }
|
|
34425
35207
|
static get style() { return mdsInputDateRangePreselectionCss(); }
|
|
@@ -34444,6 +35226,7 @@ const mdsInputFieldCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
34444
35226
|
* validation errors in `message`. Another control, a native `<input>` among them, gets the name
|
|
34445
35227
|
* but no validation messages.
|
|
34446
35228
|
* @part content - The wrapper of the default slot, above the message
|
|
35229
|
+
* @category forms
|
|
34447
35230
|
*/
|
|
34448
35231
|
class MdsInputField {
|
|
34449
35232
|
constructor(hostRef) {
|
|
@@ -34509,7 +35292,7 @@ class MdsInputField {
|
|
|
34509
35292
|
}
|
|
34510
35293
|
render() {
|
|
34511
35294
|
var _a;
|
|
34512
|
-
return (hAsync(Host, { key: '
|
|
35295
|
+
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)))))));
|
|
34513
35296
|
}
|
|
34514
35297
|
static get formAssociated() { return true; }
|
|
34515
35298
|
get host() { return getElement(this); }
|
|
@@ -34555,6 +35338,9 @@ var localeIt$v = {
|
|
|
34555
35338
|
|
|
34556
35339
|
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}`;
|
|
34557
35340
|
|
|
35341
|
+
/**
|
|
35342
|
+
* @category forms
|
|
35343
|
+
*/
|
|
34558
35344
|
class MdsInputOtp {
|
|
34559
35345
|
constructor(hostRef) {
|
|
34560
35346
|
registerInstance(this, hostRef);
|
|
@@ -34723,7 +35509,7 @@ class MdsInputOtp {
|
|
|
34723
35509
|
setFormValue(this.internals, this.value);
|
|
34724
35510
|
}
|
|
34725
35511
|
render() {
|
|
34726
|
-
return (hAsync(Host, { key: '
|
|
35512
|
+
return (hAsync(Host, { key: 'a2a249f0fb7eb2086f502bda3f83109ab9b58345' }, Array.from({ length: this.length }).map((_, index) => {
|
|
34727
35513
|
var _a;
|
|
34728
35514
|
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 : '' }));
|
|
34729
35515
|
})));
|
|
@@ -34760,6 +35546,7 @@ const mdsInputRangeCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
34760
35546
|
* @part header - The element containing the labels displayed over the input element
|
|
34761
35547
|
* @part track - The element containing the track of the input range
|
|
34762
35548
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
35549
|
+
* @category forms
|
|
34763
35550
|
*/
|
|
34764
35551
|
class MdsInputRange {
|
|
34765
35552
|
constructor(hostRef) {
|
|
@@ -34876,7 +35663,7 @@ class MdsInputRange {
|
|
|
34876
35663
|
}
|
|
34877
35664
|
render() {
|
|
34878
35665
|
var _a;
|
|
34879
|
-
return (hAsync(Host, { key: '
|
|
35666
|
+
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 }))));
|
|
34880
35667
|
}
|
|
34881
35668
|
static get formAssociated() { return true; }
|
|
34882
35669
|
get element() { return getElement(this); }
|
|
@@ -34924,6 +35711,7 @@ const mdsInputSelectCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
34924
35711
|
* @part select - The select HTML element
|
|
34925
35712
|
* @part tip-top - Selects the verbose status of input on top of element
|
|
34926
35713
|
* @slot - Add `option` `HTML elements` or `components` to this slot.
|
|
35714
|
+
* @category forms
|
|
34927
35715
|
*/
|
|
34928
35716
|
class MdsInputSelect {
|
|
34929
35717
|
constructor(hostRef) {
|
|
@@ -35241,12 +36029,12 @@ class MdsInputSelect {
|
|
|
35241
36029
|
}
|
|
35242
36030
|
render() {
|
|
35243
36031
|
var _a;
|
|
35244
|
-
return (hAsync(Host, { key: '
|
|
36032
|
+
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 &&
|
|
35245
36033
|
this.defaultValue !== '' &&
|
|
35246
36034
|
this.defaultValue !== 0 &&
|
|
35247
36035
|
!Number.isNaN(this.defaultValue)
|
|
35248
36036
|
? undefined
|
|
35249
|
-
: true }, this.placeholder)), hAsync("div", { key: '
|
|
36037
|
+
: 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' })))));
|
|
35250
36038
|
}
|
|
35251
36039
|
static get formAssociated() { return true; }
|
|
35252
36040
|
get host() { return getElement(this); }
|
|
@@ -35363,6 +36151,7 @@ const mdsInputSwitchCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
35363
36151
|
|
|
35364
36152
|
/**
|
|
35365
36153
|
* @slot - Put text string or elements here
|
|
36154
|
+
* @category forms
|
|
35366
36155
|
*/
|
|
35367
36156
|
class MdsInputSwitch {
|
|
35368
36157
|
constructor(hostRef) {
|
|
@@ -35530,7 +36319,7 @@ class MdsInputSwitch {
|
|
|
35530
36319
|
var _a;
|
|
35531
36320
|
const { iconChecked, iconUnchecked, iconIndeterminate } = inputSwitchIconVariant[this.type];
|
|
35532
36321
|
const iconCheckedUser = this.icon !== '' ? this.icon : iconChecked;
|
|
35533
|
-
return (hAsync(Host, { key: '
|
|
36322
|
+
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' })))));
|
|
35534
36323
|
}
|
|
35535
36324
|
static get formAssociated() { return true; }
|
|
35536
36325
|
get host() { return getElement(this); }
|
|
@@ -35579,6 +36368,7 @@ const mdsInputTipCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
35579
36368
|
|
|
35580
36369
|
/**
|
|
35581
36370
|
* @slot - Add `mds-input-tip-item` elements or `components` to this slot.
|
|
36371
|
+
* @parent mds-input mds-input-date mds-input-select
|
|
35582
36372
|
*/
|
|
35583
36373
|
class MdsInputTip {
|
|
35584
36374
|
constructor(hostRef) {
|
|
@@ -35594,7 +36384,7 @@ class MdsInputTip {
|
|
|
35594
36384
|
this.position = 'top';
|
|
35595
36385
|
}
|
|
35596
36386
|
render() {
|
|
35597
|
-
return (hAsync(Host, { key: '
|
|
36387
|
+
return (hAsync(Host, { key: 'cc4718410e2a85b943be7639677a8f0d0f672d6c', "pref-animation": preferenceStore.state.animation }, hAsync("slot", { key: '8be976189455e4097980a2f4c3fc221877c20294' })));
|
|
35598
36388
|
}
|
|
35599
36389
|
static get style() { return mdsInputTipCss(); }
|
|
35600
36390
|
static get cmpMeta() { return {
|
|
@@ -35650,6 +36440,7 @@ const mdsInputTipItemCss = () => `@layer reset,vendor,theme,base,components,util
|
|
|
35650
36440
|
|
|
35651
36441
|
/**
|
|
35652
36442
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
36443
|
+
* @parent mds-input-tip
|
|
35653
36444
|
*/
|
|
35654
36445
|
class MdsInputTipItem {
|
|
35655
36446
|
constructor(hostRef) {
|
|
@@ -35671,11 +36462,11 @@ class MdsInputTipItem {
|
|
|
35671
36462
|
}
|
|
35672
36463
|
}
|
|
35673
36464
|
render() {
|
|
35674
|
-
return (hAsync(Host, { key: '
|
|
36465
|
+
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' ||
|
|
35675
36466
|
this.variant === 'count-almost-full' ||
|
|
35676
36467
|
this.variant === 'count-empty' ||
|
|
35677
36468
|
this.variant === 'count-full' ||
|
|
35678
|
-
this.variant === 'count-incomplete') && (hAsync("mds-text", { key: '
|
|
36469
|
+
this.variant === 'count-incomplete') && (hAsync("mds-text", { key: '28834c5f189563d576f9d0bea317163f29d805c5', typography: "option", truncate: "word" }, hAsync("span", { key: '2239c511a50a48994052b7f897877c519d945391', class: "text" }, hAsync("slot", { key: '690dcd64b10679c5096766887676e1510531e071' })))))));
|
|
35679
36470
|
}
|
|
35680
36471
|
static get watchers() { return {
|
|
35681
36472
|
"expanded": [{
|
|
@@ -37080,6 +37871,9 @@ var localeIt$s = {
|
|
|
37080
37871
|
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)))}`;
|
|
37081
37872
|
|
|
37082
37873
|
const isSort = (value) => value === 'date' || value === 'status';
|
|
37874
|
+
/**
|
|
37875
|
+
* @category forms
|
|
37876
|
+
*/
|
|
37083
37877
|
class MdsInputUpload {
|
|
37084
37878
|
constructor(hostRef) {
|
|
37085
37879
|
registerInstance(this, hostRef);
|
|
@@ -37474,18 +38268,18 @@ class MdsInputUpload {
|
|
|
37474
38268
|
}
|
|
37475
38269
|
render() {
|
|
37476
38270
|
var _a;
|
|
37477
|
-
return (hAsync(Host, { key: '
|
|
38271
|
+
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
|
|
37478
38272
|
? this.t.get('dragEnter')
|
|
37479
|
-
: this.t.get('clickOrDrag', { maxFiles: this.maxFiles }) })), hAsync("div", { key: '
|
|
38273
|
+
: 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
|
|
37480
38274
|
? this.t.get('addFile', { maxFiles: this.maxFiles })
|
|
37481
|
-
: this.t.get('selectFile') }), this.files.length > 0 && (hAsync("mds-button", { key: '
|
|
38275
|
+
: 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)
|
|
37482
38276
|
? this.t.get('currentFilesWithMax', {
|
|
37483
38277
|
currentFiles: this.files.length,
|
|
37484
38278
|
maxFiles: this.maxFiles,
|
|
37485
38279
|
})
|
|
37486
|
-
: this.t.get('currentFilesNoMax', { currentFiles: this.files.length }))))), hAsync("input", { key: '
|
|
38280
|
+
: 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 !== ''
|
|
37487
38281
|
? `${this.t.get('canUpload')} ${this.extensions}`
|
|
37488
|
-
: this.t.get('canUploadAll')), hAsync("mds-text", { key: '
|
|
38282
|
+
: 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) => {
|
|
37489
38283
|
switch (file.status) {
|
|
37490
38284
|
case Status.ERROR:
|
|
37491
38285
|
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) }));
|
|
@@ -38350,10 +39144,11 @@ var keyboardKeysData = {
|
|
|
38350
39144
|
z: z
|
|
38351
39145
|
};
|
|
38352
39146
|
|
|
38353
|
-
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(
|
|
39147
|
+
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}}`;
|
|
38354
39148
|
|
|
38355
39149
|
/**
|
|
38356
39150
|
* @slot - Add `mds-keyboard-key` elements or `components` to this slot.
|
|
39151
|
+
* @category tags
|
|
38357
39152
|
*/
|
|
38358
39153
|
class MdsKeyboard {
|
|
38359
39154
|
constructor(hostRef) {
|
|
@@ -38526,7 +39321,7 @@ class MdsKeyboard {
|
|
|
38526
39321
|
}
|
|
38527
39322
|
}
|
|
38528
39323
|
render() {
|
|
38529
|
-
return (hAsync(Host, { key: '
|
|
39324
|
+
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))))))))));
|
|
38530
39325
|
}
|
|
38531
39326
|
get host() { return getElement(this); }
|
|
38532
39327
|
static get watchers() { return {
|
|
@@ -38801,8 +39596,11 @@ icons.set('windows', miSharpWindow);
|
|
|
38801
39596
|
icons.set('windowsleft', miSharpWindow);
|
|
38802
39597
|
icons.set('windowsright', miSharpWindow);
|
|
38803
39598
|
|
|
38804
|
-
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(
|
|
39599
|
+
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}`;
|
|
38805
39600
|
|
|
39601
|
+
/**
|
|
39602
|
+
* @parent mds-keyboard
|
|
39603
|
+
*/
|
|
38806
39604
|
class MdsKeyboardKey {
|
|
38807
39605
|
constructor(hostRef) {
|
|
38808
39606
|
registerInstance(this, hostRef);
|
|
@@ -38828,7 +39626,7 @@ class MdsKeyboardKey {
|
|
|
38828
39626
|
}
|
|
38829
39627
|
render() {
|
|
38830
39628
|
var _a, _b, _c, _d;
|
|
38831
|
-
return (hAsync(Host, { key: '
|
|
39629
|
+
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')))));
|
|
38832
39630
|
}
|
|
38833
39631
|
static get style() { return mdsKeyboardKeyCss(); }
|
|
38834
39632
|
static get cmpMeta() { return {
|
|
@@ -38848,13 +39646,14 @@ const mdsKpiCss = () => `@layer reset,vendor,theme,base,components,utilities;:ho
|
|
|
38848
39646
|
|
|
38849
39647
|
/**
|
|
38850
39648
|
* @slot - Add `mds-kpi-item` element/s.
|
|
39649
|
+
* @category data
|
|
38851
39650
|
*/
|
|
38852
39651
|
class MdsKpi {
|
|
38853
39652
|
constructor(hostRef) {
|
|
38854
39653
|
registerInstance(this, hostRef);
|
|
38855
39654
|
}
|
|
38856
39655
|
render() {
|
|
38857
|
-
return (hAsync(Host, { key: '
|
|
39656
|
+
return (hAsync(Host, { key: '4724a3faf067f195b0e20a8bcb0fde4040bea9da', role: "list" }, hAsync("slot", { key: 'fe0fd6805195f07f5781a6c52df53bef5c303d1e' })));
|
|
38858
39657
|
}
|
|
38859
39658
|
static get style() { return mdsKpiCss(); }
|
|
38860
39659
|
static get cmpMeta() { return {
|
|
@@ -38873,6 +39672,7 @@ const mdsKpiItemCss = () => `@layer reset,vendor,theme,base,components,utilities
|
|
|
38873
39672
|
* @part content - Selects the label and description wrapper element
|
|
38874
39673
|
* @part icon - Selects the icon element
|
|
38875
39674
|
* @part icon-container - Selects the icon wrapper element
|
|
39675
|
+
* @parent mds-kpi
|
|
38876
39676
|
*/
|
|
38877
39677
|
class MdsKpiItem {
|
|
38878
39678
|
constructor(hostRef) {
|
|
@@ -38921,7 +39721,7 @@ class MdsKpiItem {
|
|
|
38921
39721
|
}
|
|
38922
39722
|
}
|
|
38923
39723
|
render() {
|
|
38924
|
-
return (hAsync(Host, { key: '
|
|
39724
|
+
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)))));
|
|
38925
39725
|
}
|
|
38926
39726
|
get hostElement() { return getElement(this); }
|
|
38927
39727
|
static get style() { return mdsKpiItemCss(); }
|
|
@@ -38963,6 +39763,9 @@ var localeIt$p = {
|
|
|
38963
39763
|
|
|
38964
39764
|
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}}`;
|
|
38965
39765
|
|
|
39766
|
+
/**
|
|
39767
|
+
* @category tags
|
|
39768
|
+
*/
|
|
38966
39769
|
class MdsLabel {
|
|
38967
39770
|
constructor(hostRef) {
|
|
38968
39771
|
registerInstance(this, hostRef);
|
|
@@ -39000,7 +39803,7 @@ class MdsLabel {
|
|
|
39000
39803
|
};
|
|
39001
39804
|
}
|
|
39002
39805
|
render() {
|
|
39003
|
-
return (hAsync(Host, { key: '
|
|
39806
|
+
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" }))));
|
|
39004
39807
|
}
|
|
39005
39808
|
static get style() { return mdsLabelCss(); }
|
|
39006
39809
|
static get cmpMeta() { return {
|
|
@@ -39046,6 +39849,7 @@ const mdsLinkCss = () => `@layer reset,vendor,theme,base,components,utilities;@k
|
|
|
39046
39849
|
* @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.
|
|
39047
39850
|
* @part link - The element that carries the link and the focus: an anchor with `href`, an inline button without it
|
|
39048
39851
|
* @part icon - The icon of the link
|
|
39852
|
+
* @category actions
|
|
39049
39853
|
*/
|
|
39050
39854
|
class MdsLink {
|
|
39051
39855
|
constructor(hostRef) {
|
|
@@ -39153,10 +39957,10 @@ class MdsLink {
|
|
|
39153
39957
|
: { role: 'button', tabindex: '0' };
|
|
39154
39958
|
// the word joiner keeps the icon on the line of the word next to it: the icon is drawn in
|
|
39155
39959
|
// the padding of an inline box, which the line breaks with the text
|
|
39156
|
-
const icon = this.icon && (hAsync("span", { key: '
|
|
39157
|
-
return (hAsync(Host, { key: '
|
|
39960
|
+
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" })));
|
|
39961
|
+
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) => {
|
|
39158
39962
|
this.link = el;
|
|
39159
|
-
} }, attributes), this.iconPosition === 'left' && icon, this.label || hAsync("slot", { key: '
|
|
39963
|
+
} }, 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)));
|
|
39160
39964
|
}
|
|
39161
39965
|
static get delegatesFocus() { return true; }
|
|
39162
39966
|
get host() { return getElement(this); }
|
|
@@ -39184,13 +39988,14 @@ const mdsListCss = () => `@layer reset,vendor,theme,base,components,utilities;:h
|
|
|
39184
39988
|
|
|
39185
39989
|
/**
|
|
39186
39990
|
* @slot - Add `mds-list-item` element/s.
|
|
39991
|
+
* @category data
|
|
39187
39992
|
*/
|
|
39188
39993
|
class MdsList {
|
|
39189
39994
|
constructor(hostRef) {
|
|
39190
39995
|
registerInstance(this, hostRef);
|
|
39191
39996
|
}
|
|
39192
39997
|
render() {
|
|
39193
|
-
return (hAsync(Host, { key: '
|
|
39998
|
+
return (hAsync(Host, { key: 'ef292ca9948e6dc3968785bec3897ebc2290f443', role: "list" }, hAsync("slot", { key: 'af05ad9fbb06d3c8d9c0ea4c97e8ca3f2d0bafa6' })));
|
|
39194
39999
|
}
|
|
39195
40000
|
static get style() { return mdsListCss(); }
|
|
39196
40001
|
static get cmpMeta() { return {
|
|
@@ -39214,6 +40019,7 @@ const mdsListItemCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
39214
40019
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
39215
40020
|
* @part icon - The bullet icon before the text, the one `icon` sets
|
|
39216
40021
|
* @part text - The text of the item, around the default slot
|
|
40022
|
+
* @parent mds-list
|
|
39217
40023
|
*/
|
|
39218
40024
|
class MdsListItem {
|
|
39219
40025
|
constructor(hostRef) {
|
|
@@ -39229,7 +40035,7 @@ class MdsListItem {
|
|
|
39229
40035
|
}
|
|
39230
40036
|
render() {
|
|
39231
40037
|
var _a;
|
|
39232
|
-
return (hAsync(Host, { key: '
|
|
40038
|
+
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' }))));
|
|
39233
40039
|
}
|
|
39234
40040
|
static get style() { return mdsListItemCss(); }
|
|
39235
40041
|
static get cmpMeta() { return {
|
|
@@ -39270,6 +40076,9 @@ var localeIt$n = {
|
|
|
39270
40076
|
|
|
39271
40077
|
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))}`;
|
|
39272
40078
|
|
|
40079
|
+
/**
|
|
40080
|
+
* @category tags
|
|
40081
|
+
*/
|
|
39273
40082
|
class MdsMention {
|
|
39274
40083
|
constructor(hostRef) {
|
|
39275
40084
|
registerInstance(this, hostRef);
|
|
@@ -39298,7 +40107,7 @@ class MdsMention {
|
|
|
39298
40107
|
render() {
|
|
39299
40108
|
var _a, _b, _c;
|
|
39300
40109
|
const icon = (_a = this.icon) !== null && _a !== void 0 ? _a : '';
|
|
39301
|
-
return (hAsync(Host, { key: '
|
|
40110
|
+
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" }))));
|
|
39302
40111
|
}
|
|
39303
40112
|
get host() { return getElement(this); }
|
|
39304
40113
|
static get style() { return mdsMentionCss(); }
|
|
@@ -39347,6 +40156,7 @@ const mdsModalCss = () => `@layer reset,vendor,theme,base,components,utilities;:
|
|
|
39347
40156
|
* @slot - Contents that will be placed in the center of the window. Add `text string`, `HTML elements` or `components` to this slot.
|
|
39348
40157
|
* @slot top - Contents that will be placed on top of the window. Add `text string`, `HTML elements` or `components` to this slot.
|
|
39349
40158
|
* @slot window - Use directly a window component if you need it. Add `text string`, `HTML elements` or `components` to this slot.
|
|
40159
|
+
* @category overlays
|
|
39350
40160
|
*/
|
|
39351
40161
|
class MdsModal {
|
|
39352
40162
|
constructor(hostRef) {
|
|
@@ -39647,14 +40457,14 @@ class MdsModal {
|
|
|
39647
40457
|
this.opened = undefined;
|
|
39648
40458
|
}
|
|
39649
40459
|
render() {
|
|
39650
|
-
return (hAsync(Host, { key: '
|
|
40460
|
+
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) => {
|
|
39651
40461
|
this.handleBackdropClick(e);
|
|
39652
40462
|
}, onCancel: (e) => {
|
|
39653
40463
|
this.handleCancel(e);
|
|
39654
|
-
} }, hAsync("slot", { key: '
|
|
40464
|
+
} }, 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: {
|
|
39655
40465
|
paddingTop: `${this.windowHeaderHeight}px`,
|
|
39656
40466
|
paddingBottom: `${this.windowFooterHeight}px`,
|
|
39657
|
-
} }, hAsync("slot", { key: '
|
|
40467
|
+
} }, 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: () => {
|
|
39658
40468
|
this.opened = undefined;
|
|
39659
40469
|
}, part: "action-close" })))));
|
|
39660
40470
|
}
|
|
@@ -39717,6 +40527,7 @@ const mdsNoteCss = () => `@layer reset,vendor,theme,base,components,utilities;@l
|
|
|
39717
40527
|
/**
|
|
39718
40528
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
39719
40529
|
* @slot title - Add `text string`, `HTML elements` or `components` to this slot.
|
|
40530
|
+
* @category content
|
|
39720
40531
|
*/
|
|
39721
40532
|
class MdsNote {
|
|
39722
40533
|
constructor(hostRef) {
|
|
@@ -39761,7 +40572,7 @@ class MdsNote {
|
|
|
39761
40572
|
this.km.detachClickBehavior();
|
|
39762
40573
|
}
|
|
39763
40574
|
render() {
|
|
39764
|
-
return (hAsync(Host, { key: '
|
|
40575
|
+
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" })));
|
|
39765
40576
|
}
|
|
39766
40577
|
get host() { return getElement(this); }
|
|
39767
40578
|
static get style() { return mdsNoteCss(); }
|
|
@@ -39780,6 +40591,9 @@ class MdsNote {
|
|
|
39780
40591
|
|
|
39781
40592
|
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}}`;
|
|
39782
40593
|
|
|
40594
|
+
/**
|
|
40595
|
+
* @category feedback
|
|
40596
|
+
*/
|
|
39783
40597
|
class MdsNotification {
|
|
39784
40598
|
constructor(hostRef) {
|
|
39785
40599
|
registerInstance(this, hostRef);
|
|
@@ -39917,7 +40731,7 @@ class MdsNotification {
|
|
|
39917
40731
|
}
|
|
39918
40732
|
}
|
|
39919
40733
|
render() {
|
|
39920
|
-
return (hAsync(Host, { key: '
|
|
40734
|
+
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))));
|
|
39921
40735
|
}
|
|
39922
40736
|
get host() { return getElement(this); }
|
|
39923
40737
|
static get watchers() { return {
|
|
@@ -39973,6 +40787,9 @@ var localeIt$k = {
|
|
|
39973
40787
|
|
|
39974
40788
|
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}}`;
|
|
39975
40789
|
|
|
40790
|
+
/**
|
|
40791
|
+
* @category navigation
|
|
40792
|
+
*/
|
|
39976
40793
|
class MdsPaginator {
|
|
39977
40794
|
constructor(hostRef) {
|
|
39978
40795
|
registerInstance(this, hostRef);
|
|
@@ -40072,7 +40889,7 @@ class MdsPaginator {
|
|
|
40072
40889
|
}, 10);
|
|
40073
40890
|
}
|
|
40074
40891
|
render() {
|
|
40075
|
-
return (hAsync(Host, { key: '
|
|
40892
|
+
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 })));
|
|
40076
40893
|
}
|
|
40077
40894
|
get element() { return getElement(this); }
|
|
40078
40895
|
static get style() { return mdsPaginatorCss(); }
|
|
@@ -40093,6 +40910,7 @@ const mdsPaginatorItemCss = () => `@layer reset,vendor,theme,base,components,uti
|
|
|
40093
40910
|
|
|
40094
40911
|
/**
|
|
40095
40912
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
40913
|
+
* @parent mds-paginator
|
|
40096
40914
|
*/
|
|
40097
40915
|
class MdsPaginatorItem {
|
|
40098
40916
|
constructor(hostRef) {
|
|
@@ -40126,7 +40944,7 @@ class MdsPaginatorItem {
|
|
|
40126
40944
|
this.km.detachClickBehavior();
|
|
40127
40945
|
}
|
|
40128
40946
|
render() {
|
|
40129
|
-
return (hAsync(Host, { key: '
|
|
40947
|
+
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))))));
|
|
40130
40948
|
}
|
|
40131
40949
|
get host() { return getElement(this); }
|
|
40132
40950
|
static get style() { return mdsPaginatorItemCss(); }
|
|
@@ -40251,6 +41069,7 @@ const mdsPolicyAiCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
40251
41069
|
* @part chip-wrapper - Selects the wrapper of the chip and of its dropdown, will be found only if attirbute `variant` is set to `chip`.
|
|
40252
41070
|
* @part card - Selects the `card` component wrapped in shadowDOM, will be found only if attirbute `variant` is set to `card`.
|
|
40253
41071
|
* @part banner - Selects the `banner` component wrapped in shadowDOM, will be found only if attirbute `variant` is set to `banner`.
|
|
41072
|
+
* @category tags
|
|
40254
41073
|
*/
|
|
40255
41074
|
class MdsPolicyAi {
|
|
40256
41075
|
constructor(hostRef) {
|
|
@@ -40275,7 +41094,7 @@ class MdsPolicyAi {
|
|
|
40275
41094
|
}
|
|
40276
41095
|
render() {
|
|
40277
41096
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
40278
|
-
return (hAsync(Host, { key: '
|
|
41097
|
+
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')))))));
|
|
40279
41098
|
}
|
|
40280
41099
|
static get style() { return mdsPolicyAiCss(); }
|
|
40281
41100
|
static get cmpMeta() { return {
|
|
@@ -40323,7 +41142,6 @@ const mountedPrefs = new Set();
|
|
|
40323
41142
|
* @description This component is based on MdsTab component pattern
|
|
40324
41143
|
* @overview
|
|
40325
41144
|
* <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>
|
|
40326
|
-
* @category Patterns
|
|
40327
41145
|
* @tags pattern, user, tab
|
|
40328
41146
|
* @slot - Add `mds-pref-animation`, `mds-pref-consumption`, `mds-pref-contrast`, `mds-pref-language`, `mds-pref-mode` or `mds-pref-theme` element/s.
|
|
40329
41147
|
* @example <mds-pref>
|
|
@@ -40337,6 +41155,7 @@ const mountedPrefs = new Set();
|
|
|
40337
41155
|
* <mds-pref-language-item code="en"></mds-pref-language-item>
|
|
40338
41156
|
* </mds-pref-language>
|
|
40339
41157
|
* </mds-pref>
|
|
41158
|
+
* @category preferences
|
|
40340
41159
|
*/
|
|
40341
41160
|
class MdsPref {
|
|
40342
41161
|
constructor(hostRef) {
|
|
@@ -40432,7 +41251,7 @@ class MdsPref {
|
|
|
40432
41251
|
this.applySchemeLock((_a = e.detail) === null || _a === void 0 ? void 0 : _a.scheme);
|
|
40433
41252
|
}
|
|
40434
41253
|
render() {
|
|
40435
|
-
return (hAsync(Host, { key: '
|
|
41254
|
+
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'))))));
|
|
40436
41255
|
}
|
|
40437
41256
|
get host() { return getElement(this); }
|
|
40438
41257
|
static get watchers() { return {
|
|
@@ -40510,6 +41329,9 @@ var localeIt$h = {
|
|
|
40510
41329
|
|
|
40511
41330
|
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)))}}`;
|
|
40512
41331
|
|
|
41332
|
+
/**
|
|
41333
|
+
* @category preferences
|
|
41334
|
+
*/
|
|
40513
41335
|
class MdsPrefAnimation {
|
|
40514
41336
|
constructor(hostRef) {
|
|
40515
41337
|
registerInstance(this, hostRef);
|
|
@@ -40623,7 +41445,7 @@ class MdsPrefAnimation {
|
|
|
40623
41445
|
}
|
|
40624
41446
|
render() {
|
|
40625
41447
|
var _a;
|
|
40626
|
-
return (hAsync(Host, { key: '
|
|
41448
|
+
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) }))));
|
|
40627
41449
|
}
|
|
40628
41450
|
static get watchers() { return {
|
|
40629
41451
|
"mode": [{
|
|
@@ -40708,6 +41530,9 @@ var localeIt$g = {
|
|
|
40708
41530
|
|
|
40709
41531
|
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)))}}`;
|
|
40710
41532
|
|
|
41533
|
+
/**
|
|
41534
|
+
* @category preferences
|
|
41535
|
+
*/
|
|
40711
41536
|
let MdsPrefContrast$1 = class MdsPrefContrast {
|
|
40712
41537
|
constructor(hostRef) {
|
|
40713
41538
|
registerInstance(this, hostRef);
|
|
@@ -40821,7 +41646,7 @@ let MdsPrefContrast$1 = class MdsPrefContrast {
|
|
|
40821
41646
|
}
|
|
40822
41647
|
render() {
|
|
40823
41648
|
var _a;
|
|
40824
|
-
return (hAsync(Host, { key: '
|
|
41649
|
+
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) }))));
|
|
40825
41650
|
}
|
|
40826
41651
|
static get watchers() { return {
|
|
40827
41652
|
"mode": [{
|
|
@@ -40894,6 +41719,9 @@ var localeIt$f = {
|
|
|
40894
41719
|
|
|
40895
41720
|
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)))}}`;
|
|
40896
41721
|
|
|
41722
|
+
/**
|
|
41723
|
+
* @category preferences
|
|
41724
|
+
*/
|
|
40897
41725
|
class MdsPrefContrast {
|
|
40898
41726
|
constructor(hostRef) {
|
|
40899
41727
|
registerInstance(this, hostRef);
|
|
@@ -41007,7 +41835,7 @@ class MdsPrefContrast {
|
|
|
41007
41835
|
}
|
|
41008
41836
|
render() {
|
|
41009
41837
|
var _a;
|
|
41010
|
-
return (hAsync(Host, { key: '
|
|
41838
|
+
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) }))));
|
|
41011
41839
|
}
|
|
41012
41840
|
static get watchers() { return {
|
|
41013
41841
|
"mode": [{
|
|
@@ -41888,6 +42716,7 @@ const LANGUAGE_CODE = /^[a-z]{2,3}(-[A-Za-z0-9]{1,8})*$/;
|
|
|
41888
42716
|
const isLanguageCode = (value) => value != null && LANGUAGE_CODE.test(value);
|
|
41889
42717
|
/**
|
|
41890
42718
|
* @slot - Add `mds-pref-language-item` element/s.
|
|
42719
|
+
* @category preferences
|
|
41891
42720
|
*/
|
|
41892
42721
|
class MdsPrefLanguage {
|
|
41893
42722
|
constructor(hostRef) {
|
|
@@ -42005,7 +42834,7 @@ class MdsPrefLanguage {
|
|
|
42005
42834
|
}
|
|
42006
42835
|
render() {
|
|
42007
42836
|
var _a;
|
|
42008
|
-
return (hAsync(Host, { key: '
|
|
42837
|
+
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')))));
|
|
42009
42838
|
}
|
|
42010
42839
|
get element() { return getElement(this); }
|
|
42011
42840
|
static get watchers() { return {
|
|
@@ -42249,6 +43078,9 @@ var miBaselineCheckCircle = `<svg xmlns="http://www.w3.org/2000/svg" width="24"
|
|
|
42249
43078
|
|
|
42250
43079
|
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}`;
|
|
42251
43080
|
|
|
43081
|
+
/**
|
|
43082
|
+
* @parent mds-pref-language
|
|
43083
|
+
*/
|
|
42252
43084
|
class MdsPrefLanguageItem {
|
|
42253
43085
|
constructor(hostRef) {
|
|
42254
43086
|
registerInstance(this, hostRef);
|
|
@@ -42286,7 +43118,7 @@ class MdsPrefLanguageItem {
|
|
|
42286
43118
|
return (
|
|
42287
43119
|
// the item is an entry of the `menu` the mds-dropdown of the controller opens:
|
|
42288
43120
|
// without the role axe rejects it as a child of that menu (aria-required-children)
|
|
42289
|
-
hAsync(Host, { key: '
|
|
43121
|
+
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') }))));
|
|
42290
43122
|
}
|
|
42291
43123
|
static get watchers() { return {
|
|
42292
43124
|
"code": [{
|
|
@@ -42359,6 +43191,9 @@ var localeIt$c = {
|
|
|
42359
43191
|
|
|
42360
43192
|
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))}}`;
|
|
42361
43193
|
|
|
43194
|
+
/**
|
|
43195
|
+
* @category preferences
|
|
43196
|
+
*/
|
|
42362
43197
|
class MdsPrefMode {
|
|
42363
43198
|
constructor(hostRef) {
|
|
42364
43199
|
registerInstance(this, hostRef);
|
|
@@ -42587,7 +43422,7 @@ class MdsPrefMode {
|
|
|
42587
43422
|
}
|
|
42588
43423
|
render() {
|
|
42589
43424
|
var _a;
|
|
42590
|
-
return (hAsync(Host, { key: '
|
|
43425
|
+
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) }))));
|
|
42591
43426
|
}
|
|
42592
43427
|
get element() { return getElement(this); }
|
|
42593
43428
|
static get watchers() { return {
|
|
@@ -42658,6 +43493,7 @@ const mdsPrefThemeCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
42658
43493
|
|
|
42659
43494
|
/**
|
|
42660
43495
|
* @slot - Add `mds-pref-theme-item` element/s.
|
|
43496
|
+
* @category preferences
|
|
42661
43497
|
*/
|
|
42662
43498
|
class MdsPrefTheme {
|
|
42663
43499
|
constructor(hostRef) {
|
|
@@ -42897,7 +43733,7 @@ class MdsPrefTheme {
|
|
|
42897
43733
|
this.setTheme(name, scheme);
|
|
42898
43734
|
}
|
|
42899
43735
|
render() {
|
|
42900
|
-
return (hAsync(Host, { key: '
|
|
43736
|
+
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 }))));
|
|
42901
43737
|
}
|
|
42902
43738
|
get element() { return getElement(this); }
|
|
42903
43739
|
static get watchers() { return {
|
|
@@ -42930,6 +43766,9 @@ class MdsPrefTheme {
|
|
|
42930
43766
|
|
|
42931
43767
|
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))))}`;
|
|
42932
43768
|
|
|
43769
|
+
/**
|
|
43770
|
+
* @parent mds-pref-theme
|
|
43771
|
+
*/
|
|
42933
43772
|
class MdsPrefThemeItem {
|
|
42934
43773
|
constructor(hostRef) {
|
|
42935
43774
|
registerInstance(this, hostRef);
|
|
@@ -42961,7 +43800,7 @@ class MdsPrefThemeItem {
|
|
|
42961
43800
|
return (
|
|
42962
43801
|
// the item is an entry of the `menu` the mds-dropdown of the controller opens:
|
|
42963
43802
|
// without the role axe rejects it as a child of that menu (aria-required-children)
|
|
42964
|
-
hAsync(Host, { key: '
|
|
43803
|
+
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" }))));
|
|
42965
43804
|
}
|
|
42966
43805
|
static get style() { return mdsPrefThemeItemCss(); }
|
|
42967
43806
|
static get cmpMeta() { return {
|
|
@@ -42983,13 +43822,14 @@ const mdsPriceTableCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
42983
43822
|
|
|
42984
43823
|
/**
|
|
42985
43824
|
* @slot - Add `mds-price-table-list` elements or `components` to this slot.
|
|
43825
|
+
* @category data
|
|
42986
43826
|
*/
|
|
42987
43827
|
class MdsPriceTable {
|
|
42988
43828
|
constructor(hostRef) {
|
|
42989
43829
|
registerInstance(this, hostRef);
|
|
42990
43830
|
}
|
|
42991
43831
|
render() {
|
|
42992
|
-
return (hAsync(Host, { key: '
|
|
43832
|
+
return (hAsync(Host, { key: '5b2c5ebe5e79a4ee796774ac55c0d868725224f4' }, hAsync("slot", { key: 'a2bf66dfd60112fe2949cf7bc3d13f152d0934a4' })));
|
|
42993
43833
|
}
|
|
42994
43834
|
static get style() { return mdsPriceTableCss(); }
|
|
42995
43835
|
static get cmpMeta() { return {
|
|
@@ -43007,13 +43847,14 @@ const mdsPriceTableFeaturesCss = () => `@layer reset,vendor,theme,base,component
|
|
|
43007
43847
|
/**
|
|
43008
43848
|
* @part header - Selects the HTML element wrapper of label text
|
|
43009
43849
|
* @slot - Expects to slot `mds-price-table-features-row` component
|
|
43850
|
+
* @parent mds-price-table
|
|
43010
43851
|
*/
|
|
43011
43852
|
class MdsPriceTableFeatures {
|
|
43012
43853
|
constructor(hostRef) {
|
|
43013
43854
|
registerInstance(this, hostRef);
|
|
43014
43855
|
}
|
|
43015
43856
|
render() {
|
|
43016
|
-
return (hAsync(Host, { key: '
|
|
43857
|
+
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' }))))));
|
|
43017
43858
|
}
|
|
43018
43859
|
static get style() { return mdsPriceTableFeaturesCss(); }
|
|
43019
43860
|
static get cmpMeta() { return {
|
|
@@ -43036,6 +43877,7 @@ const mdsPriceTableFeaturesCellCss = () => `@layer reset,vendor,theme,base,compo
|
|
|
43036
43877
|
* @part icon - Selects the HTML element of the icon when `type` attribute when is `supported` or `unsupported`.
|
|
43037
43878
|
* @part text - Selects the HTML element wrapper of text when `type` attribute when is `text`.
|
|
43038
43879
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43880
|
+
* @parent mds-price-table-features-row
|
|
43039
43881
|
*/
|
|
43040
43882
|
class MdsPriceTableFeaturesCell {
|
|
43041
43883
|
constructor(hostRef) {
|
|
@@ -43046,7 +43888,7 @@ class MdsPriceTableFeaturesCell {
|
|
|
43046
43888
|
this.type = 'text';
|
|
43047
43889
|
}
|
|
43048
43890
|
render() {
|
|
43049
|
-
return (hAsync(Host, { key: '
|
|
43891
|
+
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' })));
|
|
43050
43892
|
}
|
|
43051
43893
|
static get style() { return mdsPriceTableFeaturesCellCss(); }
|
|
43052
43894
|
static get cmpMeta() { return {
|
|
@@ -43065,6 +43907,7 @@ const mdsPriceTableFeaturesRowCss = () => `@layer reset,vendor,theme,base,compon
|
|
|
43065
43907
|
|
|
43066
43908
|
/**
|
|
43067
43909
|
* @slot - Expects to slot `mds-price-table-features-cell` component
|
|
43910
|
+
* @parent mds-price-table-features
|
|
43068
43911
|
*/
|
|
43069
43912
|
class MdsPriceTableFeaturesRow {
|
|
43070
43913
|
constructor(hostRef) {
|
|
@@ -43078,7 +43921,7 @@ class MdsPriceTableFeaturesRow {
|
|
|
43078
43921
|
});
|
|
43079
43922
|
}
|
|
43080
43923
|
render() {
|
|
43081
|
-
return (hAsync(Host, { key: '
|
|
43924
|
+
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' })));
|
|
43082
43925
|
}
|
|
43083
43926
|
get host() { return getElement(this); }
|
|
43084
43927
|
static get style() { return mdsPriceTableFeaturesRowCss(); }
|
|
@@ -43098,13 +43941,14 @@ const mdsPriceTableHeaderCss = () => `@layer reset,vendor,theme,base,components,
|
|
|
43098
43941
|
|
|
43099
43942
|
/**
|
|
43100
43943
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43944
|
+
* @parent mds-price-table
|
|
43101
43945
|
*/
|
|
43102
43946
|
class MdsPriceTableHeader {
|
|
43103
43947
|
constructor(hostRef) {
|
|
43104
43948
|
registerInstance(this, hostRef);
|
|
43105
43949
|
}
|
|
43106
43950
|
render() {
|
|
43107
|
-
return (hAsync(Host, { key: '
|
|
43951
|
+
return (hAsync(Host, { key: 'b401e09db75feb79fdb2f9dbaae3cbeb8d8c4380' }, hAsync("slot", { key: 'fb9db117e8e948a182ba305590863a9d424f1ca4' })));
|
|
43108
43952
|
}
|
|
43109
43953
|
static get style() { return mdsPriceTableHeaderCss(); }
|
|
43110
43954
|
static get cmpMeta() { return {
|
|
@@ -43127,6 +43971,7 @@ const mdsPriceTableListCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
43127
43971
|
* @slot item - Add `mds-price-table-list-item` component, `HTML elements` or other `components` to this slot.
|
|
43128
43972
|
* @slot header - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43129
43973
|
* @slot price - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43974
|
+
* @parent mds-price-table mds-price-table-header
|
|
43130
43975
|
*/
|
|
43131
43976
|
class MdsPriceTableList {
|
|
43132
43977
|
constructor(hostRef) {
|
|
@@ -43144,7 +43989,7 @@ class MdsPriceTableList {
|
|
|
43144
43989
|
observeChildren(this.hostElement, this.updateItems);
|
|
43145
43990
|
}
|
|
43146
43991
|
render() {
|
|
43147
|
-
return (hAsync(Host, { key: '
|
|
43992
|
+
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" }))));
|
|
43148
43993
|
}
|
|
43149
43994
|
get hostElement() { return getElement(this); }
|
|
43150
43995
|
static get style() { return mdsPriceTableListCss(); }
|
|
@@ -43165,6 +44010,7 @@ const mdsPriceTableListItemCss = () => `@layer reset,vendor,theme,base,component
|
|
|
43165
44010
|
/**
|
|
43166
44011
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43167
44012
|
* @part icon - The check icon of a `supported` item, a dash when it is not
|
|
44013
|
+
* @parent mds-price-table-list
|
|
43168
44014
|
*/
|
|
43169
44015
|
class MdsPriceTableListItem {
|
|
43170
44016
|
constructor(hostRef) {
|
|
@@ -43179,7 +44025,7 @@ class MdsPriceTableListItem {
|
|
|
43179
44025
|
this.typography = 'detail';
|
|
43180
44026
|
}
|
|
43181
44027
|
render() {
|
|
43182
|
-
return (hAsync(Host, { key: '
|
|
44028
|
+
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' }))));
|
|
43183
44029
|
}
|
|
43184
44030
|
static get style() { return mdsPriceTableListItemCss(); }
|
|
43185
44031
|
static get cmpMeta() { return {
|
|
@@ -43200,6 +44046,7 @@ const mdsProgressCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
43200
44046
|
/**
|
|
43201
44047
|
* @part progress - Selects the `div` element that contains the progress bar
|
|
43202
44048
|
* @part radial-progress - Selects the `mds-radial-progress` element that contains the radial progress bar
|
|
44049
|
+
* @category feedback
|
|
43203
44050
|
*/
|
|
43204
44051
|
class MdsProgress {
|
|
43205
44052
|
constructor(hostRef) {
|
|
@@ -43272,7 +44119,7 @@ class MdsProgress {
|
|
|
43272
44119
|
this.leftOut = this.element.getAttribute('aria-hidden') === 'true';
|
|
43273
44120
|
}
|
|
43274
44121
|
render() {
|
|
43275
|
-
return (hAsync(Host, { key: '
|
|
44122
|
+
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'
|
|
43276
44123
|
? { flexGrow: `${this.clampedProgress()}` }
|
|
43277
44124
|
: { flexGrow: `${this.clampedProgress()}`, width: '100%' } }))));
|
|
43278
44125
|
}
|
|
@@ -43324,11 +44171,12 @@ var localeIt$a = {
|
|
|
43324
44171
|
clearNotifications: clearNotifications
|
|
43325
44172
|
};
|
|
43326
44173
|
|
|
43327
|
-
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(
|
|
44174
|
+
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%)}}`;
|
|
43328
44175
|
|
|
43329
44176
|
/**
|
|
43330
44177
|
* @part notifications - The container wrapper of the notifications.
|
|
43331
44178
|
* @slot - Add `HTML elements` or `components`, it is **recommended** to use `mds-push-notification` element.
|
|
44179
|
+
* @category feedback
|
|
43332
44180
|
*/
|
|
43333
44181
|
class MdsPushNotification {
|
|
43334
44182
|
constructor(hostRef) {
|
|
@@ -43480,7 +44328,7 @@ class MdsPushNotification {
|
|
|
43480
44328
|
this.visible = undefined;
|
|
43481
44329
|
}
|
|
43482
44330
|
render() {
|
|
43483
|
-
return (hAsync(Host, { key: '
|
|
44331
|
+
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) }))));
|
|
43484
44332
|
}
|
|
43485
44333
|
get host() { return getElement(this); }
|
|
43486
44334
|
static get watchers() { return {
|
|
@@ -43674,6 +44522,7 @@ const mdsPushNotificationItemCss = () => `@layer reset,vendor,theme,base,compone
|
|
|
43674
44522
|
* @part picture - The picture image added by `src` attribute
|
|
43675
44523
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
43676
44524
|
* @slot badge - Add `HTML elements` or `components`, it is **recommended** to use `mds-badge` element.
|
|
44525
|
+
* @parent mds-push-notification
|
|
43677
44526
|
*/
|
|
43678
44527
|
class MdsPushNotificationItem {
|
|
43679
44528
|
constructor(hostRef) {
|
|
@@ -43751,9 +44600,9 @@ class MdsPushNotificationItem {
|
|
|
43751
44600
|
}
|
|
43752
44601
|
render() {
|
|
43753
44602
|
var _a;
|
|
43754
|
-
return (hAsync(Host, { key: '
|
|
44603
|
+
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'
|
|
43755
44604
|
? dayjs(this.datetime).fromNow()
|
|
43756
|
-
: dayjs(this.datetime).format(this.dateFormat)))), hAsync("mds-text", { key: '
|
|
44605
|
+
: 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 }))));
|
|
43757
44606
|
}
|
|
43758
44607
|
get host() { return getElement(this); }
|
|
43759
44608
|
static get watchers() { return {
|
|
@@ -43791,6 +44640,7 @@ const mdsQuoteCss = () => `@layer reset,vendor,theme,base,components,utilities;:
|
|
|
43791
44640
|
/**
|
|
43792
44641
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
43793
44642
|
* @slot author - Add `text string`, `HTML elements` or `components` to this slot.
|
|
44643
|
+
* @category content
|
|
43794
44644
|
*/
|
|
43795
44645
|
class MdsQuote {
|
|
43796
44646
|
constructor(hostRef) {
|
|
@@ -43805,7 +44655,7 @@ class MdsQuote {
|
|
|
43805
44655
|
this.tag = 'h3';
|
|
43806
44656
|
}
|
|
43807
44657
|
render() {
|
|
43808
|
-
return (hAsync(Host, { key: '
|
|
44658
|
+
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" }))));
|
|
43809
44659
|
}
|
|
43810
44660
|
static get style() { return mdsQuoteCss(); }
|
|
43811
44661
|
static get cmpMeta() { return {
|
|
@@ -43856,6 +44706,7 @@ const mdsRadialMenuCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
43856
44706
|
/**
|
|
43857
44707
|
* @slot item - Add `mds-radial-menu-item` elements or `components` to this slot.
|
|
43858
44708
|
* @part radial-menu - The ring that lays out the `item` slot around the trigger
|
|
44709
|
+
* @category actions
|
|
43859
44710
|
*/
|
|
43860
44711
|
class MdsRadialMenu {
|
|
43861
44712
|
constructor(hostRef) {
|
|
@@ -44028,7 +44879,7 @@ class MdsRadialMenu {
|
|
|
44028
44879
|
this.listenOutside(!!newValue);
|
|
44029
44880
|
}
|
|
44030
44881
|
render() {
|
|
44031
|
-
return (hAsync(Host, { key: '
|
|
44882
|
+
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" })));
|
|
44032
44883
|
}
|
|
44033
44884
|
get hostElement() { return getElement(this); }
|
|
44034
44885
|
static get watchers() { return {
|
|
@@ -44083,6 +44934,9 @@ class MdsRadialMenu {
|
|
|
44083
44934
|
|
|
44084
44935
|
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}`;
|
|
44085
44936
|
|
|
44937
|
+
/**
|
|
44938
|
+
* @parent mds-radial-menu
|
|
44939
|
+
*/
|
|
44086
44940
|
class MdsRadialMenuItem {
|
|
44087
44941
|
constructor(hostRef) {
|
|
44088
44942
|
registerInstance(this, hostRef);
|
|
@@ -44100,7 +44954,7 @@ class MdsRadialMenuItem {
|
|
|
44100
44954
|
this.size = 'lg';
|
|
44101
44955
|
}
|
|
44102
44956
|
render() {
|
|
44103
|
-
return (hAsync(Host, { key: '
|
|
44957
|
+
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))));
|
|
44104
44958
|
}
|
|
44105
44959
|
static get style() { return mdsRadialMenuItemCss(); }
|
|
44106
44960
|
static get cmpMeta() { return {
|
|
@@ -44124,6 +44978,7 @@ const mdsRadialProgressCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
44124
44978
|
/**
|
|
44125
44979
|
* @part value-container - Selects the value container of the radial progress.
|
|
44126
44980
|
* @part icon - Selects the icon of the radial progress.
|
|
44981
|
+
* @category feedback
|
|
44127
44982
|
*/
|
|
44128
44983
|
class MdsRadialProgress {
|
|
44129
44984
|
constructor(hostRef) {
|
|
@@ -44189,7 +45044,7 @@ class MdsRadialProgress {
|
|
|
44189
45044
|
render() {
|
|
44190
45045
|
const progressVar = `${(this.animatedProgress * 100).toFixed(2)}%`;
|
|
44191
45046
|
const progressText = this.progressPercentage(this.clampProgress(this.progress));
|
|
44192
|
-
return (hAsync(Host, { key: '
|
|
45047
|
+
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)))));
|
|
44193
45048
|
}
|
|
44194
45049
|
static get watchers() { return {
|
|
44195
45050
|
"progress": [{
|
|
@@ -44215,12 +45070,15 @@ class MdsRadialProgress {
|
|
|
44215
45070
|
|
|
44216
45071
|
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}`;
|
|
44217
45072
|
|
|
45073
|
+
/**
|
|
45074
|
+
* @category structure
|
|
45075
|
+
*/
|
|
44218
45076
|
class MdsSeparator {
|
|
44219
45077
|
constructor(hostRef) {
|
|
44220
45078
|
registerInstance(this, hostRef);
|
|
44221
45079
|
}
|
|
44222
45080
|
render() {
|
|
44223
|
-
return (hAsync(Host, { key: '
|
|
45081
|
+
return (hAsync(Host, { key: 'e2899b902ebdd6bcc64be8ba65015cd7ff7ba947', "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }));
|
|
44224
45082
|
}
|
|
44225
45083
|
static get style() { return mdsSeparatorCss(); }
|
|
44226
45084
|
static get cmpMeta() { return {
|
|
@@ -44241,6 +45099,9 @@ var awaitIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2
|
|
|
44241
45099
|
|
|
44242
45100
|
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)))}}`;
|
|
44243
45101
|
|
|
45102
|
+
/**
|
|
45103
|
+
* @category feedback
|
|
45104
|
+
*/
|
|
44244
45105
|
class MdsSpinner {
|
|
44245
45106
|
constructor(hostRef) {
|
|
44246
45107
|
registerInstance(this, hostRef);
|
|
@@ -44255,7 +45116,7 @@ class MdsSpinner {
|
|
|
44255
45116
|
}
|
|
44256
45117
|
}
|
|
44257
45118
|
render() {
|
|
44258
|
-
return (hAsync(Host, { key: '
|
|
45119
|
+
return (hAsync(Host, { key: '0daacdb66e13292d526033c319cc29087bde77fb', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast }, hAsync("i", { key: '4d2a0425f4147fc2babe16c8677273bd429e7bdc', class: "await-icon", innerHTML: awaitIcon })));
|
|
44259
45120
|
}
|
|
44260
45121
|
static get watchers() { return {
|
|
44261
45122
|
"running": [{
|
|
@@ -44282,6 +45143,7 @@ const mdsStatusBarCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
44282
45143
|
* @part actions - Selects the `actions` container element wrapped in shadowDOM.
|
|
44283
45144
|
* @part status-bar - Selects the `status-bar` window component wrapped in shadowDOM.
|
|
44284
45145
|
* @part status-bar-area - Selects the `status-bar-area` which wraps `status-bar` element with darker area in shadowDOM.
|
|
45146
|
+
* @category actions
|
|
44285
45147
|
*/
|
|
44286
45148
|
class MdsStatusBar {
|
|
44287
45149
|
constructor(hostRef) {
|
|
@@ -44311,7 +45173,7 @@ class MdsStatusBar {
|
|
|
44311
45173
|
this.visible = undefined;
|
|
44312
45174
|
}
|
|
44313
45175
|
render() {
|
|
44314
|
-
return (hAsync(Host, { key: '
|
|
45176
|
+
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' })))))));
|
|
44315
45177
|
}
|
|
44316
45178
|
get host() { return getElement(this); }
|
|
44317
45179
|
static get watchers() { return {
|
|
@@ -44343,6 +45205,7 @@ const mdsStepperBarCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
44343
45205
|
* @slot content - Add `HTML elements` or `components`, one per mds-stepper-bar-item added
|
|
44344
45206
|
* @part items - Selects the `items` container element wrapped in shadowDOM.
|
|
44345
45207
|
* @part contents - Selects the `contents` container element wrapped in shadowDOM.
|
|
45208
|
+
* @category navigation
|
|
44346
45209
|
*/
|
|
44347
45210
|
class MdsStepperBar {
|
|
44348
45211
|
constructor(hostRef) {
|
|
@@ -44442,7 +45305,7 @@ class MdsStepperBar {
|
|
|
44442
45305
|
this.setCurrent(newValue);
|
|
44443
45306
|
}
|
|
44444
45307
|
render() {
|
|
44445
|
-
return (hAsync(Host, { key: '
|
|
45308
|
+
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" }))));
|
|
44446
45309
|
}
|
|
44447
45310
|
get element() { return getElement(this); }
|
|
44448
45311
|
static get watchers() { return {
|
|
@@ -44513,6 +45376,7 @@ const mdsStepperBarItemCss = () => `@layer reset,vendor,theme,base,components,ut
|
|
|
44513
45376
|
|
|
44514
45377
|
/**
|
|
44515
45378
|
* @part badge - The badge wrapper
|
|
45379
|
+
* @parent mds-stepper-bar
|
|
44516
45380
|
*/
|
|
44517
45381
|
class MdsStepperBarItem {
|
|
44518
45382
|
constructor(hostRef) {
|
|
@@ -44591,7 +45455,7 @@ class MdsStepperBarItem {
|
|
|
44591
45455
|
this.isCurrent = newValue;
|
|
44592
45456
|
}
|
|
44593
45457
|
render() {
|
|
44594
|
-
return (hAsync(Host, { key: '
|
|
45458
|
+
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()))));
|
|
44595
45459
|
}
|
|
44596
45460
|
get host() { return getElement(this); }
|
|
44597
45461
|
static get watchers() { return {
|
|
@@ -44626,7 +45490,7 @@ class MdsStepperBarItem {
|
|
|
44626
45490
|
}; }
|
|
44627
45491
|
}
|
|
44628
45492
|
|
|
44629
|
-
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}}`;
|
|
45493
|
+
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}}`;
|
|
44630
45494
|
|
|
44631
45495
|
/**
|
|
44632
45496
|
* @part contents - Selects the container of the tabbed contents elements.
|
|
@@ -44636,6 +45500,7 @@ const mdsTabCss = () => `@layer reset,vendor,theme,base,components,utilities;:ho
|
|
|
44636
45500
|
* items are links (`href`) to other pages or places and the page, not the component, shows the
|
|
44637
45501
|
* content.
|
|
44638
45502
|
* @slot - Add `mds-tab-item` element/s.
|
|
45503
|
+
* @category navigation
|
|
44639
45504
|
*/
|
|
44640
45505
|
class MdsTab {
|
|
44641
45506
|
constructor(hostRef) {
|
|
@@ -44875,12 +45740,12 @@ class MdsTab {
|
|
|
44875
45740
|
});
|
|
44876
45741
|
}
|
|
44877
45742
|
render() {
|
|
44878
|
-
return (hAsync(Host, { key: '
|
|
45743
|
+
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: {
|
|
44879
45744
|
'--mds-tab-slider-width': `${this.sliderWidth}px`,
|
|
44880
45745
|
'--mds-tab-slider-height': `${this.sliderHeight}px`,
|
|
44881
45746
|
'--mds-tab-slider-offset-x': `${this.sliderOffsetX}px`,
|
|
44882
45747
|
'--mds-tab-slider-offset-y': `${this.sliderOffsetY}px`,
|
|
44883
|
-
} })))), hAsync("div", { key: '
|
|
45748
|
+
} })))), hAsync("div", { key: '877d854bae6e40e3d64ebbcb9e56cf743b12ad5b', class: clsx('contents', !this.hasContent && 'contents--empty'), part: "contents" }, hAsync("slot", { key: '895b5f0c44848aad39a6083d44ca196b4fbf88d2', name: "content", onSlotchange: this.updateContentItems }))));
|
|
44884
45749
|
}
|
|
44885
45750
|
get element() { return getElement(this); }
|
|
44886
45751
|
static get watchers() { return {
|
|
@@ -44934,6 +45799,7 @@ const mdsTabBarCss = () => `@layer reset,vendor,theme,base,components,utilities;
|
|
|
44934
45799
|
|
|
44935
45800
|
/**
|
|
44936
45801
|
* @slot - Add `mds-tab-bar-item` element/s.
|
|
45802
|
+
* @category navigation
|
|
44937
45803
|
*/
|
|
44938
45804
|
class MdsTabBar {
|
|
44939
45805
|
constructor(hostRef) {
|
|
@@ -44961,7 +45827,7 @@ class MdsTabBar {
|
|
|
44961
45827
|
});
|
|
44962
45828
|
}
|
|
44963
45829
|
render() {
|
|
44964
|
-
return (hAsync(Host, { key: '
|
|
45830
|
+
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' })));
|
|
44965
45831
|
}
|
|
44966
45832
|
get element() { return getElement(this); }
|
|
44967
45833
|
static get style() { return mdsTabBarCss(); }
|
|
@@ -44979,6 +45845,7 @@ const mdsTabBarItemCss = () => `@layer reset,vendor,theme,base,components,utilit
|
|
|
44979
45845
|
|
|
44980
45846
|
/**
|
|
44981
45847
|
* @slot - **Deprecated**, use the `label` property instead. Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
45848
|
+
* @parent mds-tab-bar
|
|
44982
45849
|
*/
|
|
44983
45850
|
class MdsTabBarItem {
|
|
44984
45851
|
constructor(hostRef) {
|
|
@@ -45026,7 +45893,7 @@ class MdsTabBarItem {
|
|
|
45026
45893
|
this.label = sanitizeLabel(newValue);
|
|
45027
45894
|
}
|
|
45028
45895
|
render() {
|
|
45029
|
-
return (hAsync(Host, { key: '
|
|
45896
|
+
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 }))));
|
|
45030
45897
|
}
|
|
45031
45898
|
get element() { return getElement(this); }
|
|
45032
45899
|
static get watchers() { return {
|
|
@@ -45054,6 +45921,7 @@ const mdsTabItemCss = () => `@layer reset,vendor,theme,base,components,utilities
|
|
|
45054
45921
|
|
|
45055
45922
|
/**
|
|
45056
45923
|
* @part button - The `mds-button` of the tab
|
|
45924
|
+
* @parent mds-tab
|
|
45057
45925
|
*/
|
|
45058
45926
|
class MdsTabItem {
|
|
45059
45927
|
constructor(hostRef) {
|
|
@@ -45105,7 +45973,7 @@ class MdsTabItem {
|
|
|
45105
45973
|
}
|
|
45106
45974
|
render() {
|
|
45107
45975
|
var _a;
|
|
45108
|
-
return (hAsync(Host, { key: '
|
|
45976
|
+
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",
|
|
45109
45977
|
// a tab controls a panel; one with href is a link to another page or place, which
|
|
45110
45978
|
// ARIA names as such, the selected one being the current one
|
|
45111
45979
|
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,
|
|
@@ -45174,6 +46042,7 @@ const mdsTableCss = () => `@layer reset,vendor,theme,base,components,utilities;@
|
|
|
45174
46042
|
* @part table - Selects the table element
|
|
45175
46043
|
* @part batch-actions - Selects the element which wraps the batch actions
|
|
45176
46044
|
* @part batch-actions-wrapper - The bar of the batch actions, shown while the table is `selectable` and has `batch-action` content
|
|
46045
|
+
* @category data
|
|
45177
46046
|
*/
|
|
45178
46047
|
class MdsTable {
|
|
45179
46048
|
constructor(hostRef) {
|
|
@@ -45389,7 +46258,7 @@ class MdsTable {
|
|
|
45389
46258
|
(_c = this.tableBodyObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
|
|
45390
46259
|
}
|
|
45391
46260
|
render() {
|
|
45392
|
-
return (hAsync(Host, { key: '
|
|
46261
|
+
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" }))))));
|
|
45393
46262
|
}
|
|
45394
46263
|
get host() { return getElement(this); }
|
|
45395
46264
|
static get watchers() { return {
|
|
@@ -45425,13 +46294,14 @@ const mdsTableBodyCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
45425
46294
|
|
|
45426
46295
|
/**
|
|
45427
46296
|
* @slot - Put `mds-table-row` element/s.
|
|
46297
|
+
* @parent mds-table
|
|
45428
46298
|
*/
|
|
45429
46299
|
class MdsTableBody {
|
|
45430
46300
|
constructor(hostRef) {
|
|
45431
46301
|
registerInstance(this, hostRef);
|
|
45432
46302
|
}
|
|
45433
46303
|
render() {
|
|
45434
|
-
return (hAsync(Host, { key: '
|
|
46304
|
+
return (hAsync(Host, { key: '89ac1010f1ef4b0555dbd138bda1f863f012cfa6', role: "rowgroup", "pref-animation": preferenceStore.state.animation }, hAsync("slot", { key: 'cf20e44a478a9cf387a9f986c52575a7ed2e854b' })));
|
|
45435
46305
|
}
|
|
45436
46306
|
static get style() { return mdsTableBodyCss(); }
|
|
45437
46307
|
static get cmpMeta() { return {
|
|
@@ -45451,6 +46321,7 @@ const mdsTableCellCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
45451
46321
|
|
|
45452
46322
|
/**
|
|
45453
46323
|
* @slot - Add `text string`, `HTML elements` or `components` to this slot.
|
|
46324
|
+
* @parent mds-table-row mds-table-footer
|
|
45454
46325
|
*/
|
|
45455
46326
|
class MdsTableCell {
|
|
45456
46327
|
constructor(hostRef) {
|
|
@@ -45460,7 +46331,7 @@ class MdsTableCell {
|
|
|
45460
46331
|
setAttributeIfEmpty(this.host, 'role', 'cell');
|
|
45461
46332
|
}
|
|
45462
46333
|
render() {
|
|
45463
|
-
return (hAsync(Host, { key: '
|
|
46334
|
+
return (hAsync(Host, { key: 'a367bbd8d985a03897584b9cd8e8c7deac57e83c', "pref-animation": preferenceStore.state.animation }, hAsync("slot", { key: '1e10c2c1d7a582f3a33cdc6bb683200213a74462' })));
|
|
45464
46335
|
}
|
|
45465
46336
|
get host() { return getElement(this); }
|
|
45466
46337
|
static get style() { return mdsTableCellCss(); }
|
|
@@ -45480,6 +46351,7 @@ const mdsTableFooterCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
45480
46351
|
|
|
45481
46352
|
/**
|
|
45482
46353
|
* @slot - Add `mds-table-cell` element/s: the footer is itself a row, for totals and counts.
|
|
46354
|
+
* @parent mds-table
|
|
45483
46355
|
*/
|
|
45484
46356
|
class MdsTableFooter {
|
|
45485
46357
|
constructor(hostRef) {
|
|
@@ -45494,7 +46366,7 @@ class MdsTableFooter {
|
|
|
45494
46366
|
((_a = this.host.closest('mds-table')) === null || _a === void 0 ? void 0 : _a.querySelector('mds-table-row > [slot="action"]')) != null;
|
|
45495
46367
|
}
|
|
45496
46368
|
render() {
|
|
45497
|
-
return (hAsync(Host, { key: '
|
|
46369
|
+
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" })));
|
|
45498
46370
|
}
|
|
45499
46371
|
get host() { return getElement(this); }
|
|
45500
46372
|
static get style() { return mdsTableFooterCss(); }
|
|
@@ -45553,6 +46425,7 @@ const mdsTableHeaderCss = () => `@layer reset,vendor,theme,base,components,utili
|
|
|
45553
46425
|
* @slot - Add `mds-table-header-cell` element/s, one per column: the header is itself the row of
|
|
45554
46426
|
* the column headings.
|
|
45555
46427
|
* @part actions - The heading of the Actions column, shown while rows have `slot="action"` content
|
|
46428
|
+
* @parent mds-table
|
|
45556
46429
|
*/
|
|
45557
46430
|
class MdsTableHeader {
|
|
45558
46431
|
constructor(hostRef) {
|
|
@@ -45612,7 +46485,7 @@ class MdsTableHeader {
|
|
|
45612
46485
|
this.hasActions = ((_a = this.table) === null || _a === void 0 ? void 0 : _a.querySelector('mds-table-row > [slot="action"]')) != null;
|
|
45613
46486
|
}
|
|
45614
46487
|
render() {
|
|
45615
|
-
return (hAsync(Host, { key: '
|
|
46488
|
+
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') }))));
|
|
45616
46489
|
}
|
|
45617
46490
|
get host() { return getElement(this); }
|
|
45618
46491
|
static get style() { return mdsTableHeaderCss(); }
|
|
@@ -45645,6 +46518,7 @@ const naturalOrder = new WeakMap();
|
|
|
45645
46518
|
/**
|
|
45646
46519
|
* @part action - The `mds-button` that sorts the column, with the `label`: only when `sortable`
|
|
45647
46520
|
* @part label - The `label` of a column that is not `sortable`
|
|
46521
|
+
* @parent mds-table-header
|
|
45648
46522
|
*/
|
|
45649
46523
|
class MdsTableHeaderCell {
|
|
45650
46524
|
constructor(hostRef) {
|
|
@@ -45799,7 +46673,7 @@ class MdsTableHeaderCell {
|
|
|
45799
46673
|
this.applyDirection();
|
|
45800
46674
|
}
|
|
45801
46675
|
render() {
|
|
45802
|
-
return (hAsync(Host, { key: '
|
|
46676
|
+
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))));
|
|
45803
46677
|
}
|
|
45804
46678
|
get element() { return getElement(this); }
|
|
45805
46679
|
static get watchers() { return {
|
|
@@ -45860,11 +46734,12 @@ const isSafari = () => {
|
|
|
45860
46734
|
|
|
45861
46735
|
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}}`;
|
|
45862
46736
|
|
|
46737
|
+
// TODO [bug, style]: on Safari actions menu is visually broken
|
|
45863
46738
|
/**
|
|
45864
46739
|
* @slot - Put `mds-table-cell` element/s.
|
|
45865
46740
|
* @slot action - Put `mds-button` element/s or other kind of actions as aside menu for the single row.
|
|
46741
|
+
* @parent mds-table-body
|
|
45866
46742
|
*/
|
|
45867
|
-
// TODO [bug, style]: on Safari actions menu is visually broken
|
|
45868
46743
|
class MdsTableRow {
|
|
45869
46744
|
constructor(hostRef) {
|
|
45870
46745
|
registerInstance(this, hostRef);
|
|
@@ -45931,9 +46806,9 @@ class MdsTableRow {
|
|
|
45931
46806
|
void ((_a = this.host.closest('mds-table')) === null || _a === void 0 ? void 0 : _a.updateSelection());
|
|
45932
46807
|
}
|
|
45933
46808
|
render() {
|
|
45934
|
-
return (hAsync(Host, { key: '
|
|
46809
|
+
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
|
|
45935
46810
|
? { marginRight: `calc(${this.sizerWidth} + var(--mds-table-cell-padding))` }
|
|
45936
|
-
: undefined }, hAsync("slot", { key: '
|
|
46811
|
+
: undefined }, hAsync("slot", { key: 'd0e4738b292f8632c08df63c6a6f3c21df443597', name: "action", onSlotchange: this.onActionSlotChange })))))));
|
|
45937
46812
|
}
|
|
45938
46813
|
get host() { return getElement(this); }
|
|
45939
46814
|
static get watchers() { return {
|
|
@@ -46202,6 +47077,7 @@ const defaultAnimationSpeed = 0.5;
|
|
|
46202
47077
|
const defaultPlaceholderChar = ' ';
|
|
46203
47078
|
/**
|
|
46204
47079
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
47080
|
+
* @category content
|
|
46205
47081
|
*/
|
|
46206
47082
|
class MdsText {
|
|
46207
47083
|
constructor(hostRef) {
|
|
@@ -46285,7 +47161,7 @@ class MdsText {
|
|
|
46285
47161
|
}
|
|
46286
47162
|
render() {
|
|
46287
47163
|
var _a;
|
|
46288
|
-
return (hAsync(Host, { key: '
|
|
47164
|
+
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)));
|
|
46289
47165
|
}
|
|
46290
47166
|
get host() { return getElement(this); }
|
|
46291
47167
|
static get watchers() { return {
|
|
@@ -46341,6 +47217,7 @@ const mdsToastCss = () => `@layer reset,vendor,theme,base,components,utilities;@
|
|
|
46341
47217
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
46342
47218
|
* @slot icon - Insert an icon image, it can be `HTML elements` or `components`, it is **recommended** to add `mds-icon` element.
|
|
46343
47219
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
47220
|
+
* @category feedback
|
|
46344
47221
|
*/
|
|
46345
47222
|
class MdsToast {
|
|
46346
47223
|
constructor(hostRef) {
|
|
@@ -46531,7 +47408,7 @@ class MdsToast {
|
|
|
46531
47408
|
// focus. The host is the region and stays in the page, so the content that appears inside
|
|
46532
47409
|
// it is what a screen reader reads out. Inside an mds-toast-region the region is the live
|
|
46533
47410
|
// region, already in the page before any toast: a toast of its own would nest a second one
|
|
46534
|
-
return (hAsync(Host, { key: '
|
|
47411
|
+
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() })))));
|
|
46535
47412
|
}
|
|
46536
47413
|
get hostElement() { return getElement(this); }
|
|
46537
47414
|
static get watchers() { return {
|
|
@@ -46573,6 +47450,7 @@ const hasDuration = (toast) => {
|
|
|
46573
47450
|
};
|
|
46574
47451
|
/**
|
|
46575
47452
|
* @slot - Add `mds-toast` elements, one per message: the region lines up the visible ones at its edge.
|
|
47453
|
+
* @category feedback
|
|
46576
47454
|
*/
|
|
46577
47455
|
class MdsToastRegion {
|
|
46578
47456
|
constructor(hostRef) {
|
|
@@ -46665,7 +47543,7 @@ class MdsToastRegion {
|
|
|
46665
47543
|
render() {
|
|
46666
47544
|
// the live region, in the page before any message: a toast added or shown inside it is
|
|
46667
47545
|
// announced. Not atomic, or every change would read out all the toasts again
|
|
46668
|
-
return (hAsync(Host, { key: '
|
|
47546
|
+
return (hAsync(Host, { key: '50e748d8c78ea73f1607d2b46cf56a79d2918fd1', role: "status", "aria-live": "polite", "aria-atomic": "false" }, hAsync("slot", { key: '936b87f0836896888f22c46ed28337b96f634fcc' })));
|
|
46669
47547
|
}
|
|
46670
47548
|
get host() { return getElement(this); }
|
|
46671
47549
|
static get watchers() { return {
|
|
@@ -46695,11 +47573,12 @@ var arrowSvg = `<svg width="15" height="9" viewBox="0 0 15 9" xmlns="http://www.
|
|
|
46695
47573
|
</svg>
|
|
46696
47574
|
`;
|
|
46697
47575
|
|
|
46698
|
-
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)
|
|
47576
|
+
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))}}`;
|
|
46699
47577
|
|
|
46700
47578
|
/**
|
|
46701
47579
|
* @slot - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
46702
47580
|
* @part text - The text of the tooltip, around the default slot
|
|
47581
|
+
* @category overlays
|
|
46703
47582
|
*/
|
|
46704
47583
|
class MdsTooltip {
|
|
46705
47584
|
constructor(hostRef) {
|
|
@@ -46875,7 +47754,7 @@ class MdsTooltip {
|
|
|
46875
47754
|
(_a = this.floatingController) === null || _a === void 0 ? void 0 : _a.dismiss();
|
|
46876
47755
|
}
|
|
46877
47756
|
render() {
|
|
46878
|
-
return (hAsync(Host, { key: '
|
|
47757
|
+
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' }))));
|
|
46879
47758
|
}
|
|
46880
47759
|
get host() { return getElement(this); }
|
|
46881
47760
|
static get watchers() { return {
|
|
@@ -46942,6 +47821,7 @@ const mdsTreeCss = () => `@layer reset,vendor,theme,base,components,utilities;@l
|
|
|
46942
47821
|
|
|
46943
47822
|
/**
|
|
46944
47823
|
* @slot - Add `mds-tree-item` element/s.
|
|
47824
|
+
* @category navigation
|
|
46945
47825
|
*/
|
|
46946
47826
|
class MdsTree {
|
|
46947
47827
|
constructor(hostRef) {
|
|
@@ -47065,7 +47945,7 @@ class MdsTree {
|
|
|
47065
47945
|
// a list of lists: each item is an entry, and the items of an open branch are a list
|
|
47066
47946
|
// inside it, so a screen reader tells the level and the size of every branch. Not a
|
|
47067
47947
|
// role="tree", which promises the arrow keys and leaves no room for the actions of an item
|
|
47068
|
-
hAsync(Host, { key: '
|
|
47948
|
+
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 })));
|
|
47069
47949
|
}
|
|
47070
47950
|
get host() { return getElement(this); }
|
|
47071
47951
|
static get watchers() { return {
|
|
@@ -47149,6 +48029,7 @@ const mdsTreeItemCss = () => `@layer reset,vendor,theme,base,components,utilitie
|
|
|
47149
48029
|
* @slot action - Add `mds-button`, `mds-icon` or other types component and HTML element/s.
|
|
47150
48030
|
* @part actions-container - Selects the wrapper of the container of the actions.
|
|
47151
48031
|
* @part actions-list - Selects the container of the actions.
|
|
48032
|
+
* @parent mds-tree mds-tree-item
|
|
47152
48033
|
*/
|
|
47153
48034
|
class MdsTreeItem {
|
|
47154
48035
|
constructor(hostRef) {
|
|
@@ -47273,7 +48154,7 @@ class MdsTreeItem {
|
|
|
47273
48154
|
this.childrenElement.removeEventListener('transitionend', this.checkChildrenTransitionEnd);
|
|
47274
48155
|
}
|
|
47275
48156
|
render() {
|
|
47276
|
-
return (hAsync(Host, { key: '
|
|
48157
|
+
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 }))));
|
|
47277
48158
|
}
|
|
47278
48159
|
get host() { return getElement(this); }
|
|
47279
48160
|
static get watchers() { return {
|
|
@@ -47356,6 +48237,9 @@ var localeIt$1 = {
|
|
|
47356
48237
|
|
|
47357
48238
|
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))}}`;
|
|
47358
48239
|
|
|
48240
|
+
/**
|
|
48241
|
+
* @category content
|
|
48242
|
+
*/
|
|
47359
48243
|
class MdsUrlView {
|
|
47360
48244
|
constructor(hostRef) {
|
|
47361
48245
|
registerInstance(this, hostRef);
|
|
@@ -47401,7 +48285,7 @@ class MdsUrlView {
|
|
|
47401
48285
|
}
|
|
47402
48286
|
render() {
|
|
47403
48287
|
var _a, _b;
|
|
47404
|
-
return (hAsync(Host, { key: '
|
|
48288
|
+
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 }))));
|
|
47405
48289
|
}
|
|
47406
48290
|
get host() { return getElement(this); }
|
|
47407
48291
|
static get style() { return mdsUrlViewCss(); }
|
|
@@ -47482,6 +48366,7 @@ const mdsUsageCss = () => `@layer reset,vendor,theme,base,components,utilities;@
|
|
|
47482
48366
|
* @part header - The header that holds the `icon` and the `label`
|
|
47483
48367
|
* @part icon - The icon of the header, the one of `variant` unless `icon` is set
|
|
47484
48368
|
* @part label - The label of the header, the name of `variant` unless `alias` is set
|
|
48369
|
+
* @category content
|
|
47485
48370
|
*/
|
|
47486
48371
|
class MdsUsage {
|
|
47487
48372
|
constructor(hostRef) {
|
|
@@ -47501,7 +48386,7 @@ class MdsUsage {
|
|
|
47501
48386
|
var _a, _b;
|
|
47502
48387
|
// an unknown variant gets the info icon, as it gets the info styling
|
|
47503
48388
|
const icon = this.icon || ((_a = usageVariantIcon[this.variant]) !== null && _a !== void 0 ? _a : usageVariantIcon.info);
|
|
47504
|
-
return (hAsync(Host, { key: '
|
|
48389
|
+
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' }))));
|
|
47505
48390
|
}
|
|
47506
48391
|
static get style() { return mdsUsageCss(); }
|
|
47507
48392
|
static get cmpMeta() { return {
|
|
@@ -47523,6 +48408,7 @@ const mdsVideoWallCss = () => `@layer reset,vendor,theme,base,components,utiliti
|
|
|
47523
48408
|
/**
|
|
47524
48409
|
* @slot - Write browser support missing message here.
|
|
47525
48410
|
* @slot content - Add video content overlay here, add `text string`, `HTML elements` or `components` to this slot.
|
|
48411
|
+
* @category content
|
|
47526
48412
|
*/
|
|
47527
48413
|
class MdsVideoWall {
|
|
47528
48414
|
constructor(hostRef) {
|
|
@@ -47555,7 +48441,7 @@ class MdsVideoWall {
|
|
|
47555
48441
|
this.hasContent = hasChildWithSlot(this.hostElement, 'content');
|
|
47556
48442
|
}
|
|
47557
48443
|
render() {
|
|
47558
|
-
return (hAsync(Host, { key: '
|
|
48444
|
+
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 }))));
|
|
47559
48445
|
}
|
|
47560
48446
|
get hostElement() { return getElement(this); }
|
|
47561
48447
|
static get style() { return mdsVideoWallCss(); }
|
|
@@ -47586,13 +48472,14 @@ const mdsZeroCss = () => `@layer reset,vendor,theme,base,components,utilities;@l
|
|
|
47586
48472
|
* @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
47587
48473
|
* @part contents - Selects the wrapper of the elements with attribute `slot="content"`.
|
|
47588
48474
|
* @part actions - Selects the wrapper of the elements with attribute `slot="action"`.
|
|
48475
|
+
* @category feedback
|
|
47589
48476
|
*/
|
|
47590
48477
|
class MdsZero {
|
|
47591
48478
|
constructor(hostRef) {
|
|
47592
48479
|
registerInstance(this, hostRef);
|
|
47593
48480
|
}
|
|
47594
48481
|
render() {
|
|
47595
|
-
return (hAsync(Host, { key: '
|
|
48482
|
+
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" }))));
|
|
47596
48483
|
}
|
|
47597
48484
|
static get style() { return mdsZeroCss(); }
|
|
47598
48485
|
static get cmpMeta() { return {
|
|
@@ -47618,6 +48505,7 @@ registerComponents([
|
|
|
47618
48505
|
MdsBanner,
|
|
47619
48506
|
MdsBenchmarkBar,
|
|
47620
48507
|
MdsBibliography,
|
|
48508
|
+
MdsBook,
|
|
47621
48509
|
MdsBreadcrumb,
|
|
47622
48510
|
MdsBreadcrumbItem,
|
|
47623
48511
|
MdsButton,
|