@maggioli-design-system/magma 2.0.0-beta.1 → 2.0.0-beta.2
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/README.md +15 -2
- package/dist/cjs/index-CNuKb6Lv.js +4 -4
- package/dist/cjs/index.cjs.js +257 -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 +3 -3
- 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 +26 -7
- package/dist/cjs/mds-badge.cjs.entry.js +2 -2
- package/dist/cjs/mds-banner_3.cjs.entry.js +14 -8
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-bibliography.cjs.entry.js +5 -5
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +4 -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 +14 -235
- package/dist/cjs/mds-calendar_2.cjs.entry.js +276 -137
- 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 +8 -10
- package/dist/cjs/mds-details.cjs.entry.js +1 -1
- package/dist/cjs/mds-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/mds-emoji.cjs.entry.js +9 -2
- package/dist/cjs/mds-entity.cjs.entry.js +1 -1
- package/dist/cjs/mds-file-preview.cjs.entry.js +9 -1
- package/dist/cjs/mds-file.cjs.entry.js +4 -1
- package/dist/cjs/mds-filter-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-filter.cjs.entry.js +2 -2
- package/dist/cjs/mds-header-bar.cjs.entry.js +5 -1
- package/dist/cjs/mds-header.cjs.entry.js +15 -9
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +12 -9
- package/dist/cjs/mds-hr.cjs.entry.js +1 -1
- package/dist/cjs/mds-img.cjs.entry.js +6 -3
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +212 -66
- package/dist/cjs/mds-input-date.cjs.entry.js +33 -12
- package/dist/cjs/mds-input-field.cjs.entry.js +4 -4
- package/dist/cjs/mds-input-otp.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-select.cjs.entry.js +27 -13
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +5 -2
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +6 -3
- package/dist/cjs/mds-input-upload.cjs.entry.js +10 -7
- package/dist/cjs/mds-input.cjs.entry.js +24 -9
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +5 -2
- package/dist/cjs/mds-keyboard.cjs.entry.js +7 -4
- package/dist/cjs/mds-kpi-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-kpi.cjs.entry.js +1 -1
- package/dist/cjs/mds-label.cjs.entry.js +4 -1
- 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 +13 -10
- package/dist/cjs/mds-note.cjs.entry.js +4 -1
- package/dist/cjs/mds-notification.cjs.entry.js +5 -5
- package/dist/cjs/mds-paginator-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-paginator.cjs.entry.js +1 -1
- package/dist/cjs/mds-policy-ai.cjs.entry.js +4 -1
- package/dist/cjs/mds-pref-animation.cjs.entry.js +7 -4
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +7 -4
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +8 -5
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +4 -1
- package/dist/cjs/mds-pref-language.cjs.entry.js +5 -2
- package/dist/cjs/mds-pref-theme-variant-item.cjs.entry.js +5 -2
- package/dist/cjs/mds-pref-theme-variant.cjs.entry.js +6 -3
- package/dist/cjs/mds-pref-theme.cjs.entry.js +11 -8
- package/dist/cjs/mds-pref.cjs.entry.js +6 -3
- 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 +3 -3
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +6 -3
- package/dist/cjs/mds-push-notification.cjs.entry.js +16 -6
- package/dist/cjs/mds-quote.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +4 -1
- package/dist/cjs/mds-radial-menu.cjs.entry.js +3 -3
- package/dist/cjs/mds-separator.cjs.entry.js +1 -1
- package/dist/cjs/mds-status-bar.cjs.entry.js +4 -1
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +4 -1
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +5 -2
- package/dist/cjs/mds-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab_2.cjs.entry.js +5 -5
- 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 +18 -7
- package/dist/cjs/mds-table-header.cjs.entry.js +10 -2
- package/dist/cjs/mds-table-row.cjs.entry.js +9 -3
- package/dist/cjs/mds-table.cjs.entry.js +2 -2
- package/dist/cjs/mds-text.cjs.entry.js +3 -3
- package/dist/cjs/mds-toast.cjs.entry.js +3 -3
- package/dist/cjs/mds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/mds-tree-item.cjs.entry.js +7 -1
- package/dist/cjs/mds-tree.cjs.entry.js +2 -2
- package/dist/cjs/mds-url-view.cjs.entry.js +7 -4
- package/dist/cjs/mds-usage.cjs.entry.js +4 -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/components/mds-accordion/mds-accordion.js +2 -2
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +2 -2
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +4 -4
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +2 -2
- package/dist/collection/components/mds-author/mds-author.js +2 -2
- package/dist/collection/components/mds-avatar/mds-avatar.js +26 -7
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +4 -1
- package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.js +1 -1
- package/dist/collection/components/mds-badge/mds-badge.js +3 -3
- package/dist/collection/components/mds-banner/mds-banner.js +7 -4
- package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +3 -3
- package/dist/collection/components/mds-bibliography/mds-bibliography.js +5 -5
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +6 -3
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +1 -1
- package/dist/collection/components/mds-button/mds-button.js +7 -5
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +4 -1
- package/dist/collection/components/mds-button-group/mds-button-group.js +4 -1
- package/dist/collection/components/mds-calendar/mds-calendar.css +63 -5
- package/dist/collection/components/mds-calendar/mds-calendar.js +450 -143
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +1 -1
- package/dist/collection/components/mds-card/mds-card.js +8 -10
- package/dist/collection/components/mds-card-content/mds-card-content.js +2 -2
- package/dist/collection/components/mds-card-footer/mds-card-footer.js +2 -2
- package/dist/collection/components/mds-card-header/mds-card-header.js +2 -2
- package/dist/collection/components/mds-card-media/mds-card-media.js +2 -2
- package/dist/collection/components/mds-chip/mds-chip.js +9 -6
- package/dist/collection/components/mds-details/mds-details.js +2 -2
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +4 -4
- package/dist/collection/components/mds-emoji/mds-emoji.js +16 -6
- package/dist/collection/components/mds-entity/mds-entity.js +2 -2
- package/dist/collection/components/mds-file/mds-file.js +5 -2
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +10 -2
- package/dist/collection/components/mds-filter/mds-filter.js +3 -3
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +4 -4
- package/dist/collection/components/mds-header/mds-header.js +22 -13
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +12 -5
- package/dist/collection/components/mds-help/mds-help.js +2 -2
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +13 -10
- package/dist/collection/components/mds-hr/mds-hr.js +1 -1
- package/dist/collection/components/mds-icon/mds-icon.js +2 -2
- package/dist/collection/components/mds-icon/services/icons-set.service.js +33 -1
- package/dist/collection/components/mds-img/mds-img.js +7 -4
- package/dist/collection/components/mds-input/mds-input.js +42 -18
- package/dist/collection/components/mds-input-date/mds-input-date.js +48 -20
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +37 -1
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +245 -84
- package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +10 -0
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.js +4 -1
- package/dist/collection/components/mds-input-field/mds-input-field.js +7 -4
- package/dist/collection/components/mds-input-otp/mds-input-otp.js +3 -3
- package/dist/collection/components/mds-input-range/mds-input-range.js +2 -1
- package/dist/collection/components/mds-input-select/mds-input-select.js +29 -14
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +6 -3
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +4 -1
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +9 -3
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +11 -8
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +11 -5
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +6 -3
- package/dist/collection/components/mds-kpi/mds-kpi.js +2 -2
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +1 -1
- package/dist/collection/components/mds-label/mds-label.js +5 -2
- package/dist/collection/components/mds-list/mds-list.js +2 -2
- package/dist/collection/components/mds-list-item/mds-list-item.js +2 -2
- package/dist/collection/components/mds-mention/mds-mention.js +1 -1
- package/dist/collection/components/mds-modal/mds-modal.js +15 -12
- package/dist/collection/components/mds-note/mds-note.js +6 -3
- package/dist/collection/components/mds-notification/mds-notification.js +5 -5
- package/dist/collection/components/mds-paginator/mds-paginator.js +1 -1
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +5 -5
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +5 -2
- package/dist/collection/components/mds-pref/mds-pref.js +8 -5
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +8 -5
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +8 -5
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +9 -6
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +7 -4
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +5 -2
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +12 -9
- package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.js +8 -5
- package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.js +6 -3
- package/dist/collection/components/mds-price-table/mds-price-table.js +4 -1
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +2 -2
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +2 -2
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +2 -2
- package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +4 -1
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +2 -2
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +4 -1
- package/dist/collection/components/mds-progress/mds-progress.js +2 -2
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +25 -14
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +7 -4
- package/dist/collection/components/mds-quote/mds-quote.js +2 -2
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +6 -3
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +5 -2
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +1 -1
- package/dist/collection/components/mds-separator/mds-separator.js +1 -1
- package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +6 -3
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +3 -3
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +5 -2
- package/dist/collection/components/mds-tab/mds-tab.js +5 -5
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +2 -2
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +7 -4
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +1 -1
- package/dist/collection/components/mds-table/mds-table.js +5 -5
- package/dist/collection/components/mds-table-body/mds-table-body.js +4 -4
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +2 -2
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +2 -2
- package/dist/collection/components/mds-table-header/mds-table-header.js +23 -9
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +19 -8
- package/dist/collection/components/mds-table-row/mds-table-row.js +16 -10
- package/dist/collection/components/mds-text/mds-text.js +4 -4
- package/dist/collection/components/mds-toast/mds-toast.js +4 -4
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +3 -3
- package/dist/collection/components/mds-tree/mds-tree.js +3 -3
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +11 -5
- package/dist/collection/components/mds-url-view/mds-url-view.js +8 -5
- package/dist/collection/components/mds-usage/mds-usage.js +6 -3
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +2 -2
- package/dist/collection/components/mds-zero/mds-zero.js +2 -2
- package/dist/collection/index.js +15 -0
- package/dist/components/icons-set.service.js +1 -0
- 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-item2.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar2.js +1 -1
- package/dist/components/mds-badge2.js +1 -1
- package/dist/components/mds-banner2.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button-group.js +1 -1
- package/dist/components/mds-button2.js +1 -1
- package/dist/components/mds-calendar-cell2.js +1 -1
- package/dist/components/mds-calendar2.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-chip2.js +1 -1
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown2.js +1 -1
- package/dist/components/mds-emoji.js +1 -1
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview2.js +1 -1
- package/dist/components/mds-file.js +1 -1
- package/dist/components/mds-filter-item2.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-help2.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon2.js +1 -1
- package/dist/components/mds-img2.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-switch2.js +1 -1
- package/dist/components/mds-input-tip-item2.js +1 -1
- package/dist/components/mds-input-tip2.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input2.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-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-modal2.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item2.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-theme-variant-item.js +1 -1
- package/dist/components/mds-pref-theme-variant.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-progress2.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-progress2.js +1 -1
- package/dist/components/mds-separator2.js +1 -1
- package/dist/components/mds-spinner2.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-item2.js +1 -1
- package/dist/components/mds-tab2.js +1 -1
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell2.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell2.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-text2.js +1 -1
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/mds-tooltip2.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/documentation.json +824 -348
- package/dist/esm/index-CAd5312P.js +4 -4
- package/dist/esm/index.js +256 -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 +3 -3
- 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 +26 -7
- package/dist/esm/mds-badge.entry.js +2 -2
- package/dist/esm/mds-banner_3.entry.js +14 -8
- package/dist/esm/mds-benchmark-bar.entry.js +2 -2
- package/dist/esm/mds-bibliography.entry.js +5 -5
- package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm/mds-breadcrumb.entry.js +4 -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 +10 -231
- package/dist/esm/mds-calendar_2.entry.js +276 -137
- 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 +8 -10
- package/dist/esm/mds-details.entry.js +1 -1
- package/dist/esm/mds-dropdown.entry.js +3 -3
- package/dist/esm/mds-emoji.entry.js +9 -2
- package/dist/esm/mds-entity.entry.js +1 -1
- package/dist/esm/mds-file-preview.entry.js +9 -1
- package/dist/esm/mds-file.entry.js +4 -1
- package/dist/esm/mds-filter-item.entry.js +4 -4
- package/dist/esm/mds-filter.entry.js +2 -2
- package/dist/esm/mds-header-bar.entry.js +5 -1
- package/dist/esm/mds-header.entry.js +15 -9
- package/dist/esm/mds-horizontal-scroll.entry.js +12 -9
- package/dist/esm/mds-hr.entry.js +1 -1
- package/dist/esm/mds-img.entry.js +6 -3
- package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +212 -66
- package/dist/esm/mds-input-date.entry.js +33 -12
- package/dist/esm/mds-input-field.entry.js +4 -4
- package/dist/esm/mds-input-otp.entry.js +3 -3
- package/dist/esm/mds-input-range.entry.js +1 -1
- package/dist/esm/mds-input-select.entry.js +27 -13
- package/dist/esm/mds-input-switch_2.entry.js +5 -2
- package/dist/esm/mds-input-tip_2.entry.js +6 -3
- package/dist/esm/mds-input-upload.entry.js +10 -7
- package/dist/esm/mds-input.entry.js +24 -9
- package/dist/esm/mds-keyboard-key.entry.js +5 -2
- package/dist/esm/mds-keyboard.entry.js +7 -4
- package/dist/esm/mds-kpi-item.entry.js +1 -1
- package/dist/esm/mds-kpi.entry.js +1 -1
- package/dist/esm/mds-label.entry.js +4 -1
- 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 +13 -10
- package/dist/esm/mds-note.entry.js +4 -1
- package/dist/esm/mds-notification.entry.js +5 -5
- package/dist/esm/mds-paginator-item.entry.js +4 -4
- package/dist/esm/mds-paginator.entry.js +1 -1
- package/dist/esm/mds-policy-ai.entry.js +4 -1
- package/dist/esm/mds-pref-animation.entry.js +7 -4
- package/dist/esm/mds-pref-consumption.entry.js +7 -4
- package/dist/esm/mds-pref-contrast.entry.js +8 -5
- package/dist/esm/mds-pref-language-item.entry.js +4 -1
- package/dist/esm/mds-pref-language.entry.js +5 -2
- package/dist/esm/mds-pref-theme-variant-item.entry.js +5 -2
- package/dist/esm/mds-pref-theme-variant.entry.js +6 -3
- package/dist/esm/mds-pref-theme.entry.js +11 -8
- package/dist/esm/mds-pref.entry.js +6 -3
- 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 +3 -3
- package/dist/esm/mds-push-notification-item.entry.js +6 -3
- package/dist/esm/mds-push-notification.entry.js +16 -6
- package/dist/esm/mds-quote.entry.js +1 -1
- package/dist/esm/mds-radial-menu-item.entry.js +4 -1
- package/dist/esm/mds-radial-menu.entry.js +3 -3
- package/dist/esm/mds-separator.entry.js +1 -1
- package/dist/esm/mds-status-bar.entry.js +4 -1
- package/dist/esm/mds-stepper-bar-item.entry.js +4 -1
- package/dist/esm/mds-stepper-bar.entry.js +2 -2
- package/dist/esm/mds-tab-bar-item.entry.js +5 -2
- package/dist/esm/mds-tab-bar.entry.js +1 -1
- package/dist/esm/mds-tab_2.entry.js +5 -5
- 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 +18 -7
- package/dist/esm/mds-table-header.entry.js +10 -2
- package/dist/esm/mds-table-row.entry.js +9 -3
- package/dist/esm/mds-table.entry.js +2 -2
- package/dist/esm/mds-text.entry.js +3 -3
- package/dist/esm/mds-toast.entry.js +3 -3
- package/dist/esm/mds-tooltip.entry.js +2 -2
- package/dist/esm/mds-tree-item.entry.js +7 -1
- package/dist/esm/mds-tree.entry.js +2 -2
- package/dist/esm/mds-url-view.entry.js +7 -4
- package/dist/esm/mds-usage.entry.js +4 -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-CAd5312P.js +1 -1
- package/dist/esm-es5/index.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +1 -1
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +1 -1
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +1 -1
- package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm-es5/mds-bibliography.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
- package/dist/esm-es5/mds-button-dropdown.entry.js +1 -1
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +1 -1
- package/dist/esm-es5/mds-calendar_2.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +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 +1 -1
- package/dist/esm-es5/mds-input-date.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm-es5/mds-keyboard.entry.js +1 -1
- package/dist/esm-es5/mds-kpi-item.entry.js +1 -1
- 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-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +1 -1
- 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 +1 -1
- 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-theme-variant-item.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme-variant.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme.entry.js +1 -1
- 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 +1 -1
- package/dist/esm-es5/mds-push-notification-item.entry.js +1 -1
- package/dist/esm-es5/mds-push-notification.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/esm-es5/mds-table.entry.js +1 -1
- package/dist/esm-es5/mds-text.entry.js +1 -1
- package/dist/esm-es5/mds-toast.entry.js +1 -1
- package/dist/esm-es5/mds-tooltip.entry.js +1 -1
- 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 +1154 -554
- package/dist/hydrate/index.mjs +1154 -554
- package/dist/magma-components/index.esm.js +1 -0
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-1e0826f3.entry.js → p-00313884.entry.js} +1 -1
- package/dist/magma-components/{p-14359b83.entry.js → p-01dc43dd.entry.js} +1 -1
- package/dist/magma-components/{p-423bad63.entry.js → p-01dca5e8.entry.js} +1 -1
- package/dist/magma-components/p-030d45e3.entry.js +1 -0
- package/dist/magma-components/{p-49b8def9.system.entry.js → p-0328a23e.system.entry.js} +1 -1
- package/dist/magma-components/{p-513533d1.entry.js → p-08c6869a.entry.js} +1 -1
- package/dist/magma-components/{p-83f1d211.system.entry.js → p-09de9fc5.system.entry.js} +1 -1
- package/dist/magma-components/{p-a36c6db2.entry.js → p-0acb46c8.entry.js} +1 -1
- package/dist/magma-components/{p-0856948f.system.entry.js → p-0b10ef9f.system.entry.js} +1 -1
- package/dist/magma-components/p-0b11f03b.entry.js +1 -0
- package/dist/magma-components/{p-8b204fe7.system.entry.js → p-0be56202.system.entry.js} +1 -1
- package/dist/magma-components/p-0de58147.entry.js +1 -0
- package/dist/magma-components/{p-2491f1e0.system.entry.js → p-0e481e5c.system.entry.js} +1 -1
- package/dist/magma-components/{p-7e23a883.system.entry.js → p-0f104850.system.entry.js} +1 -1
- package/dist/magma-components/p-1073bf63.entry.js +1 -0
- package/dist/magma-components/p-11490a89.entry.js +1 -0
- package/dist/magma-components/{p-fa6d02de.system.entry.js → p-137b0bbe.system.entry.js} +1 -1
- package/dist/magma-components/{p-5f027f21.entry.js → p-14a98729.entry.js} +1 -1
- package/dist/magma-components/p-14d858f8.system.entry.js +1 -0
- package/dist/magma-components/{p-5011da19.system.entry.js → p-14e918de.system.entry.js} +1 -1
- package/dist/magma-components/p-154ef5b9.entry.js +1 -0
- package/dist/magma-components/p-158af6e3.entry.js +1 -0
- package/dist/magma-components/{p-9f614c7c.system.entry.js → p-17427d8a.system.entry.js} +1 -1
- package/dist/magma-components/p-1805592d.entry.js +1 -0
- package/dist/magma-components/p-18563022.entry.js +1 -0
- package/dist/magma-components/{p-ced050bf.entry.js → p-19f99447.entry.js} +1 -1
- package/dist/magma-components/{p-fd4f6135.system.entry.js → p-1a56d383.system.entry.js} +1 -1
- package/dist/magma-components/{p-cc9db7f3.system.entry.js → p-1bb7895a.system.entry.js} +1 -1
- package/dist/magma-components/{p-13de0c57.system.entry.js → p-1ce791c1.system.entry.js} +1 -1
- package/dist/magma-components/{p-de98e8b6.system.entry.js → p-1da904c3.system.entry.js} +1 -1
- package/dist/magma-components/p-20961bf1.entry.js +1 -0
- package/dist/magma-components/{p-1199b3f5.system.entry.js → p-24a9ed63.system.entry.js} +1 -1
- package/dist/magma-components/{p-39d330ea.entry.js → p-26b131cf.entry.js} +1 -1
- package/dist/magma-components/{p-78fd3283.entry.js → p-28ebb626.entry.js} +1 -1
- package/dist/magma-components/{p-37989a99.system.entry.js → p-292f4566.system.entry.js} +1 -1
- package/dist/magma-components/{p-715f92d4.system.entry.js → p-2a1d3680.system.entry.js} +1 -1
- package/dist/magma-components/{p-17bfde04.system.entry.js → p-2ab75334.system.entry.js} +1 -1
- package/dist/magma-components/{p-79fdb37f.system.entry.js → p-2ccc796b.system.entry.js} +1 -1
- package/dist/magma-components/p-2d9d0887.system.entry.js +1 -0
- package/dist/magma-components/{p-035a9b2c.system.entry.js → p-2df01d02.system.entry.js} +1 -1
- package/dist/magma-components/{p-00980a98.entry.js → p-3145c7eb.entry.js} +1 -1
- package/dist/magma-components/{p-82337997.entry.js → p-34018dfe.entry.js} +1 -1
- package/dist/magma-components/{p-64609a40.system.entry.js → p-35a9f1b4.system.entry.js} +1 -1
- package/dist/magma-components/p-35ec8bbd.entry.js +1 -0
- package/dist/magma-components/{p-93b7d9c7.system.entry.js → p-370f9463.system.entry.js} +1 -1
- package/dist/magma-components/{p-f9691a57.system.entry.js → p-387948c4.system.entry.js} +1 -1
- package/dist/magma-components/{p-663e302d.system.entry.js → p-3aeecbba.system.entry.js} +1 -1
- package/dist/magma-components/{p-7d3a54a4.system.entry.js → p-3af9132f.system.entry.js} +1 -1
- package/dist/magma-components/{p-9061a2b0.system.entry.js → p-3bfd085f.system.entry.js} +1 -1
- package/dist/magma-components/{p-dafa88ad.entry.js → p-3c246a39.entry.js} +1 -1
- package/dist/magma-components/{p-4c8d8c76.entry.js → p-3c2bf79b.entry.js} +1 -1
- package/dist/magma-components/p-3ce52f3c.entry.js +1 -0
- package/dist/magma-components/p-3e5993b4.entry.js +1 -0
- package/dist/magma-components/{p-1680682d.system.entry.js → p-3ef80cd4.system.entry.js} +1 -1
- package/dist/magma-components/{p-cb2f2f0a.entry.js → p-3fc3b8b4.entry.js} +1 -1
- package/dist/magma-components/{p-53cd2333.system.entry.js → p-423955d1.system.entry.js} +1 -1
- package/dist/magma-components/{p-7bca3e2e.system.entry.js → p-42f336df.system.entry.js} +1 -1
- package/dist/magma-components/{p-315da7d0.system.entry.js → p-45a85712.system.entry.js} +1 -1
- package/dist/magma-components/{p-239ab62b.system.entry.js → p-460cd731.system.entry.js} +1 -1
- package/dist/magma-components/{p-ca36fc65.entry.js → p-473f6954.entry.js} +1 -1
- package/dist/magma-components/{p-5eee076f.entry.js → p-47fa0ecf.entry.js} +1 -1
- package/dist/magma-components/{p-2a222f3c.entry.js → p-4b07fe37.entry.js} +1 -1
- package/dist/magma-components/p-4b884441.entry.js +1 -0
- package/dist/magma-components/{p-a69d95b7.entry.js → p-4ba583c9.entry.js} +1 -1
- package/dist/magma-components/{p-769bf50e.entry.js → p-4c08fe3e.entry.js} +1 -1
- package/dist/magma-components/p-4f490917.entry.js +1 -0
- package/dist/magma-components/{p-d4cac1a1.system.entry.js → p-4f98fdba.system.entry.js} +1 -1
- package/dist/magma-components/{p-ee149fc3.system.entry.js → p-50553954.system.entry.js} +1 -1
- package/dist/magma-components/{p-4bdc69b2.entry.js → p-523d4716.entry.js} +1 -1
- package/dist/magma-components/{p-a5451192.system.entry.js → p-52ccfafc.system.entry.js} +1 -1
- package/dist/magma-components/p-52e2f903.entry.js +1 -0
- package/dist/magma-components/{p-8f7d632c.system.entry.js → p-53195d95.system.entry.js} +1 -1
- package/dist/magma-components/{p-f62cf5a9.system.entry.js → p-5488f51f.system.entry.js} +1 -1
- package/dist/magma-components/p-553927f9.system.entry.js +1 -0
- package/dist/magma-components/{p-9eaa277f.entry.js → p-55b4bbba.entry.js} +1 -1
- package/dist/magma-components/{p-1b8b598a.entry.js → p-583f5ffa.entry.js} +1 -1
- package/dist/magma-components/{p-f8dc6a25.entry.js → p-59d65cff.entry.js} +1 -1
- package/dist/magma-components/{p-a1a16873.system.entry.js → p-59f53701.system.entry.js} +1 -1
- package/dist/magma-components/p-5b881091.entry.js +1 -0
- package/dist/magma-components/{p-24b3cc0d.entry.js → p-5c44d208.entry.js} +1 -1
- package/dist/magma-components/{p-fbe46b32.system.entry.js → p-5fdcd8e2.system.entry.js} +1 -1
- package/dist/magma-components/{p-2a134cfe.system.entry.js → p-5fe7b875.system.entry.js} +1 -1
- package/dist/magma-components/{p-aed97a03.system.entry.js → p-614e7f83.system.entry.js} +1 -1
- package/dist/magma-components/{p-f9541d6b.system.entry.js → p-62cf9003.system.entry.js} +1 -1
- package/dist/magma-components/{p-a3c123e2.entry.js → p-63898681.entry.js} +1 -1
- package/dist/magma-components/p-663a510e.entry.js +1 -0
- package/dist/magma-components/{p-851df0fb.entry.js → p-68f57bb1.entry.js} +1 -1
- package/dist/magma-components/{p-0b4684f2.system.entry.js → p-6ae4df92.system.entry.js} +1 -1
- package/dist/magma-components/p-6d268a59.entry.js +1 -0
- package/dist/magma-components/{p-281bc999.system.entry.js → p-7306b02e.system.entry.js} +1 -1
- package/dist/magma-components/{p-e6a3c03b.system.entry.js → p-75011fed.system.entry.js} +1 -1
- package/dist/magma-components/{p-6f89537f.entry.js → p-7595afcf.entry.js} +1 -1
- package/dist/magma-components/p-77e9bd68.entry.js +1 -0
- package/dist/magma-components/p-7d836722.entry.js +1 -0
- package/dist/magma-components/p-7e037cf3.entry.js +8 -0
- package/dist/magma-components/{p-51f00e4f.system.entry.js → p-8106dbfd.system.entry.js} +1 -1
- package/dist/magma-components/{p-80904595.system.entry.js → p-82deeaa0.system.entry.js} +1 -1
- package/dist/magma-components/p-83589b83.entry.js +1 -0
- package/dist/magma-components/{p-bbd19da5.entry.js → p-83721814.entry.js} +1 -1
- package/dist/magma-components/{p-61043767.system.entry.js → p-83de0e53.system.entry.js} +1 -1
- package/dist/magma-components/{p-d480bc64.system.entry.js → p-849760e7.system.entry.js} +1 -1
- package/dist/magma-components/{p-0eec989d.system.entry.js → p-85ac6e54.system.entry.js} +1 -1
- package/dist/magma-components/p-87f8a213.entry.js +1 -0
- package/dist/magma-components/{p-67027e6e.system.entry.js → p-89bf698e.system.entry.js} +1 -1
- package/dist/magma-components/{p-66b6399b.system.entry.js → p-89f96753.system.entry.js} +1 -1
- package/dist/magma-components/p-8b3065b4.entry.js +1 -0
- package/dist/magma-components/{p-a5c774e1.system.entry.js → p-8bec8ad6.system.entry.js} +1 -1
- package/dist/magma-components/{p-c08e2e11.system.entry.js → p-8d76853c.system.entry.js} +1 -1
- package/dist/magma-components/{p-d9635f96.system.entry.js → p-8f1ce3f1.system.entry.js} +1 -1
- package/dist/magma-components/p-9021fa60.entry.js +1 -0
- package/dist/magma-components/{p-701757f6.system.entry.js → p-90b72c1c.system.entry.js} +1 -1
- package/dist/magma-components/{p-7599608a.system.entry.js → p-90d5b6df.system.entry.js} +1 -1
- package/dist/magma-components/p-913372ff.entry.js +1 -0
- package/dist/magma-components/{p-f5dd0163.system.entry.js → p-94093140.system.entry.js} +1 -1
- package/dist/magma-components/{p-03d883fa.system.entry.js → p-944d9b27.system.entry.js} +1 -1
- package/dist/magma-components/{p-922cb36e.entry.js → p-94713401.entry.js} +1 -1
- package/dist/magma-components/{p-dca87306.entry.js → p-956b5ae6.entry.js} +1 -1
- package/dist/magma-components/p-95eae04e.entry.js +1 -0
- package/dist/magma-components/{p-30ecdd0e.entry.js → p-961a2531.entry.js} +1 -1
- package/dist/magma-components/p-9658cb0c.entry.js +1 -0
- package/dist/magma-components/p-96d1a168.entry.js +1 -0
- package/dist/magma-components/p-96f6a646.entry.js +1 -0
- package/dist/magma-components/{p-2df71631.system.entry.js → p-98435b90.system.entry.js} +1 -1
- package/dist/magma-components/p-988b0c7c.entry.js +1 -0
- package/dist/magma-components/{p-14faa91d.system.entry.js → p-98a05642.system.entry.js} +1 -1
- package/dist/magma-components/{p-ba01df62.system.entry.js → p-99f7a1b6.system.entry.js} +1 -1
- package/dist/magma-components/{p-b95ba099.system.entry.js → p-9a1940c1.system.entry.js} +1 -1
- package/dist/magma-components/{p-e4c4824b.system.entry.js → p-9a89bc78.system.entry.js} +1 -1
- package/dist/magma-components/{p-5a96f6a1.system.entry.js → p-9ad586a7.system.entry.js} +1 -1
- package/dist/magma-components/{p-33183e9e.system.entry.js → p-9b52918e.system.entry.js} +1 -1
- package/dist/magma-components/p-DTZViJWJ.system.js +1 -1
- package/dist/magma-components/p-a1af65e8.entry.js +1 -0
- package/dist/magma-components/{p-4813db7c.system.entry.js → p-a5473293.system.entry.js} +1 -1
- package/dist/magma-components/{p-3736ff52.system.entry.js → p-a6caafcb.system.entry.js} +1 -1
- package/dist/magma-components/{p-99e541f0.entry.js → p-a7bd4585.entry.js} +1 -1
- package/dist/magma-components/{p-778a376a.system.entry.js → p-a88fba47.system.entry.js} +1 -1
- package/dist/magma-components/{p-f8be02b6.entry.js → p-a959ade4.entry.js} +1 -1
- package/dist/magma-components/p-aa7d8972.entry.js +1 -0
- package/dist/magma-components/p-aa98652f.entry.js +1 -0
- package/dist/magma-components/{p-d441e8c5.system.entry.js → p-aaeb0ee3.system.entry.js} +1 -1
- package/dist/magma-components/{p-9210f48f.system.entry.js → p-ab89bf5b.system.entry.js} +1 -1
- package/dist/magma-components/{p-195d6b05.entry.js → p-abc720e3.entry.js} +1 -1
- package/dist/magma-components/p-abe87810.entry.js +1 -0
- package/dist/magma-components/{p-77449970.entry.js → p-ac80aca8.entry.js} +1 -1
- package/dist/magma-components/{p-d25df1ff.system.entry.js → p-acb07134.system.entry.js} +1 -1
- package/dist/magma-components/p-acd4f96a.entry.js +1 -0
- package/dist/magma-components/{p-37f4699d.entry.js → p-af49bca2.entry.js} +1 -1
- package/dist/magma-components/{p-dcc5188d.entry.js → p-af670eaf.entry.js} +1 -1
- package/dist/magma-components/{p-a96d10ed.system.entry.js → p-b14a94e0.system.entry.js} +1 -1
- package/dist/magma-components/p-b2bc194a.entry.js +1 -0
- package/dist/magma-components/{p-d44cf903.system.entry.js → p-b2e76c18.system.entry.js} +1 -1
- package/dist/magma-components/{p-1fa503c2.system.entry.js → p-b37dff80.system.entry.js} +1 -1
- package/dist/magma-components/p-b3e3226e.entry.js +1 -0
- package/dist/magma-components/p-b40f1153.entry.js +1 -0
- package/dist/magma-components/p-b4709a95.entry.js +1 -0
- package/dist/magma-components/{p-6cf5f38d.system.entry.js → p-b5db6527.system.entry.js} +1 -1
- package/dist/magma-components/p-b764defa.entry.js +1 -0
- package/dist/magma-components/{p-52253115.system.entry.js → p-b9b2501e.system.entry.js} +1 -1
- package/dist/magma-components/{p-632b1bd2.system.entry.js → p-b9b5bcdd.system.entry.js} +1 -1
- package/dist/magma-components/{p-b826e9cf.system.entry.js → p-ba2a0bc1.system.entry.js} +1 -1
- package/dist/magma-components/p-bb4380cd.entry.js +1 -0
- package/dist/magma-components/{p-07a0d14c.system.entry.js → p-bce3a8b0.system.entry.js} +1 -1
- package/dist/magma-components/{p-21790967.system.entry.js → p-bd2998e6.system.entry.js} +1 -1
- package/dist/magma-components/p-bd3dbc2d.entry.js +1 -0
- package/dist/magma-components/p-bed57abb.entry.js +1 -0
- package/dist/magma-components/{p-21af5302.entry.js → p-bfed0b7a.entry.js} +1 -1
- package/dist/magma-components/{p-c1809ec1.system.entry.js → p-c6177cb9.system.entry.js} +1 -1
- package/dist/magma-components/p-c638556c.entry.js +1 -0
- package/dist/magma-components/{p-8aa8f2e0.entry.js → p-c6fa4a21.entry.js} +1 -1
- package/dist/magma-components/{p-ce1c17ae.system.entry.js → p-c8e99385.system.entry.js} +1 -1
- package/dist/magma-components/{p-be4b1fce.entry.js → p-c9231987.entry.js} +1 -1
- package/dist/magma-components/{p-0a5a2cd7.system.entry.js → p-c9c51ba6.system.entry.js} +1 -1
- package/dist/magma-components/{p-163d0a27.entry.js → p-cc53b30c.entry.js} +1 -1
- package/dist/magma-components/{p-b5077962.entry.js → p-ccc0521c.entry.js} +1 -1
- package/dist/magma-components/{p-788669f0.system.entry.js → p-cd71630e.system.entry.js} +1 -1
- package/dist/magma-components/{p-687f9261.system.entry.js → p-cd879243.system.entry.js} +1 -1
- package/dist/magma-components/{p-ccf7878a.entry.js → p-ce064d47.entry.js} +1 -1
- package/dist/magma-components/{p-e52285f2.system.entry.js → p-d1eea8ca.system.entry.js} +1 -1
- package/dist/magma-components/{p-647ca5e1.system.entry.js → p-d2537229.system.entry.js} +1 -1
- package/dist/magma-components/p-d2617a1a.entry.js +1 -0
- package/dist/magma-components/{p-cf26c62c.system.entry.js → p-d41c4637.system.entry.js} +1 -1
- package/dist/magma-components/{p-b8bb9b2a.entry.js → p-d88f44aa.entry.js} +1 -1
- package/dist/magma-components/{p-ac42ce64.system.entry.js → p-dae9ae8e.system.entry.js} +1 -1
- package/dist/magma-components/{p-81d21afc.entry.js → p-dd860de4.entry.js} +1 -1
- package/dist/magma-components/{p-0271b1f9.system.entry.js → p-df87e2f5.system.entry.js} +1 -1
- package/dist/magma-components/{p-f02b49c5.system.entry.js → p-dfe082be.system.entry.js} +1 -1
- package/dist/magma-components/{p-fcc3ab4c.entry.js → p-e00ba5a0.entry.js} +1 -1
- package/dist/magma-components/{p-b66fe79a.system.entry.js → p-e0d12fa2.system.entry.js} +1 -1
- package/dist/magma-components/{p-003dd017.entry.js → p-e2cd11c3.entry.js} +1 -1
- package/dist/magma-components/{p-0dffa327.system.entry.js → p-e5fb3081.system.entry.js} +1 -1
- package/dist/magma-components/{p-ab63d01d.entry.js → p-e67a6452.entry.js} +1 -1
- package/dist/magma-components/{p-6705b68b.system.entry.js → p-e6d8c9e3.system.entry.js} +1 -1
- package/dist/magma-components/p-e71aecc1.entry.js +1 -0
- package/dist/magma-components/{p-a7b5398f.system.entry.js → p-eac692ea.system.entry.js} +1 -1
- package/dist/magma-components/{p-a8ca0d68.system.entry.js → p-ecf2e98d.system.entry.js} +1 -1
- package/dist/magma-components/{p-7c49ca6c.system.entry.js → p-ed6d1453.system.entry.js} +1 -1
- package/dist/magma-components/p-f289eb5a.entry.js +1 -0
- package/dist/magma-components/{p-33268316.entry.js → p-f3604c99.entry.js} +1 -1
- package/dist/magma-components/{p-e07404ae.entry.js → p-f3dbca34.entry.js} +1 -1
- package/dist/magma-components/{p-38b33737.system.entry.js → p-f4b4bdf2.system.entry.js} +1 -1
- package/dist/magma-components/{p-3b637d6f.entry.js → p-f56d16f7.entry.js} +1 -1
- package/dist/magma-components/{p-91902df2.system.entry.js → p-f8014852.system.entry.js} +1 -1
- package/dist/magma-components/{p-1dea53fc.entry.js → p-f851100d.entry.js} +1 -1
- package/dist/magma-components/{p-5ac8fc7d.entry.js → p-f8d5adce.entry.js} +1 -1
- package/dist/magma-components/{p-a5a87d9b.system.entry.js → p-fa427f75.system.entry.js} +1 -1
- package/dist/magma-components/p-fa6a05b5.entry.js +1 -0
- package/dist/magma-components/{p-e01cb161.entry.js → p-fb8b0104.entry.js} +1 -1
- package/dist/magma-components/{p-73132558.system.entry.js → p-fcf59139.system.entry.js} +1 -1
- package/dist/magma-components/{p-ef82cbb3.system.entry.js → p-fe3d5720.system.entry.js} +1 -1
- package/dist/magma-components/{p-31a78457.system.entry.js → p-fe85ad8e.system.entry.js} +1 -1
- package/dist/magma-components/p-ffae137a.entry.js +1 -0
- package/dist/magma-components/p-oCzRm29V.system.js +1 -0
- package/dist/stats.json +2461 -1671
- package/dist/types/components/mds-accordion/mds-accordion.d.ts +1 -1
- package/dist/types/components/mds-accordion-item/mds-accordion-item.d.ts +1 -1
- package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +1 -1
- package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +1 -1
- package/dist/types/components/mds-author/mds-author.d.ts +1 -1
- package/dist/types/components/mds-avatar-stack/mds-avatar-stack.d.ts +3 -0
- package/dist/types/components/mds-badge/mds-badge.d.ts +1 -1
- package/dist/types/components/mds-banner/mds-banner.d.ts +4 -1
- package/dist/types/components/mds-benchmark-bar/mds-benchmark-bar.d.ts +1 -1
- package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +4 -1
- package/dist/types/components/mds-button/mds-button.d.ts +1 -1
- package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +3 -0
- package/dist/types/components/mds-button-group/mds-button-group.d.ts +3 -0
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +75 -8
- package/dist/types/components/mds-card-content/mds-card-content.d.ts +1 -1
- package/dist/types/components/mds-card-footer/mds-card-footer.d.ts +1 -1
- package/dist/types/components/mds-card-header/mds-card-header.d.ts +1 -1
- package/dist/types/components/mds-card-media/mds-card-media.d.ts +1 -1
- package/dist/types/components/mds-chip/mds-chip.d.ts +3 -0
- package/dist/types/components/mds-details/mds-details.d.ts +1 -1
- package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +4 -4
- package/dist/types/components/mds-emoji/mds-emoji.d.ts +7 -0
- package/dist/types/components/mds-entity/mds-entity.d.ts +1 -1
- package/dist/types/components/mds-file/mds-file.d.ts +3 -0
- package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +3 -0
- package/dist/types/components/mds-filter/mds-filter.d.ts +1 -1
- package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +1 -1
- package/dist/types/components/mds-header/mds-header.d.ts +5 -1
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +5 -1
- package/dist/types/components/mds-help/mds-help.d.ts +1 -1
- package/dist/types/components/mds-horizontal-scroll/mds-horizontal-scroll.d.ts +1 -1
- package/dist/types/components/mds-icon/services/icons-set.service.d.ts +2 -1
- package/dist/types/components/mds-img/mds-img.d.ts +3 -0
- package/dist/types/components/mds-input/mds-input.d.ts +15 -0
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +19 -1
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +38 -4
- package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +12 -0
- package/dist/types/components/mds-input-date-range-preselection/mds-input-date-range-preselection.d.ts +3 -0
- package/dist/types/components/mds-input-field/mds-input-field.d.ts +3 -0
- package/dist/types/components/mds-input-range/mds-input-range.d.ts +2 -1
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +4 -0
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +4 -1
- package/dist/types/components/mds-input-tip/mds-input-tip.d.ts +3 -0
- package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +6 -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 +7 -1
- 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 -1
- package/dist/types/components/mds-label/mds-label.d.ts +4 -1
- package/dist/types/components/mds-list/mds-list.d.ts +1 -1
- package/dist/types/components/mds-list-item/mds-list-item.d.ts +1 -1
- package/dist/types/components/mds-modal/mds-modal.d.ts +4 -1
- package/dist/types/components/mds-note/mds-note.d.ts +4 -1
- package/dist/types/components/mds-paginator-item/mds-paginator-item.d.ts +2 -2
- package/dist/types/components/mds-policy-ai/mds-policy-ai.d.ts +3 -0
- package/dist/types/components/mds-pref/mds-pref.d.ts +4 -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 +4 -1
- package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +3 -0
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +3 -0
- package/dist/types/components/mds-pref-theme-variant/mds-pref-theme-variant.d.ts +4 -1
- package/dist/types/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.d.ts +3 -0
- package/dist/types/components/mds-price-table/mds-price-table.d.ts +3 -0
- package/dist/types/components/mds-price-table-features/mds-price-table-features.d.ts +1 -1
- package/dist/types/components/mds-price-table-features-cell/mds-price-table-features-cell.d.ts +1 -1
- package/dist/types/components/mds-price-table-features-row/mds-price-table-features-row.d.ts +1 -1
- package/dist/types/components/mds-price-table-header/mds-price-table-header.d.ts +3 -0
- package/dist/types/components/mds-price-table-list/mds-price-table-list.d.ts +1 -1
- package/dist/types/components/mds-price-table-list-item/mds-price-table-list-item.d.ts +3 -0
- package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +12 -4
- package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +3 -0
- package/dist/types/components/mds-quote/mds-quote.d.ts +1 -1
- package/dist/types/components/mds-radial-menu/mds-radial-menu.d.ts +3 -0
- package/dist/types/components/mds-radial-menu-item/mds-radial-menu-item.d.ts +3 -0
- package/dist/types/components/mds-status-bar/mds-status-bar.d.ts +4 -1
- package/dist/types/components/mds-stepper-bar/mds-stepper-bar.d.ts +1 -1
- package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +3 -0
- package/dist/types/components/mds-tab/mds-tab.d.ts +1 -1
- package/dist/types/components/mds-tab-bar/mds-tab-bar.d.ts +1 -1
- package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +4 -1
- package/dist/types/components/mds-table/mds-table.d.ts +5 -2
- package/dist/types/components/mds-table-body/mds-table-body.d.ts +7 -1
- package/dist/types/components/mds-table-cell/mds-table-cell.d.ts +1 -1
- package/dist/types/components/mds-table-footer/mds-table-footer.d.ts +1 -1
- package/dist/types/components/mds-table-header/mds-table-header.d.ts +12 -1
- package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +3 -0
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +19 -1
- package/dist/types/components/mds-text/mds-text.d.ts +1 -1
- package/dist/types/components/mds-toast/mds-toast.d.ts +1 -1
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +1 -1
- package/dist/types/components/mds-tree/mds-tree.d.ts +1 -1
- package/dist/types/components/mds-tree-item/mds-tree-item.d.ts +10 -1
- package/dist/types/components/mds-url-view/mds-url-view.d.ts +4 -1
- package/dist/types/components/mds-usage/mds-usage.d.ts +4 -1
- package/dist/types/components/mds-video-wall/mds-video-wall.d.ts +1 -1
- package/dist/types/components/mds-zero/mds-zero.d.ts +1 -1
- package/dist/types/components.d.ts +355 -8
- package/dist/types/index.d.ts +15 -0
- package/package.json +7 -1
- package/dist/magma-components/p-00a16156.entry.js +0 -1
- package/dist/magma-components/p-05208700.entry.js +0 -1
- package/dist/magma-components/p-065da3de.entry.js +0 -1
- package/dist/magma-components/p-0b3d7c4a.entry.js +0 -1
- package/dist/magma-components/p-11f0d03d.entry.js +0 -1
- package/dist/magma-components/p-1f61bdf7.entry.js +0 -1
- package/dist/magma-components/p-2035f817.entry.js +0 -1
- package/dist/magma-components/p-20502b9d.entry.js +0 -1
- package/dist/magma-components/p-2821c146.entry.js +0 -1
- package/dist/magma-components/p-2886d6f7.entry.js +0 -1
- package/dist/magma-components/p-2988a6c2.entry.js +0 -1
- package/dist/magma-components/p-2e0ebe5e.entry.js +0 -1
- package/dist/magma-components/p-3063ab9a.entry.js +0 -1
- package/dist/magma-components/p-3298569b.entry.js +0 -1
- package/dist/magma-components/p-37241fed.entry.js +0 -1
- package/dist/magma-components/p-3aadbc52.entry.js +0 -1
- package/dist/magma-components/p-430c41d6.entry.js +0 -1
- package/dist/magma-components/p-470e721b.entry.js +0 -1
- package/dist/magma-components/p-4a1f731e.system.entry.js +0 -1
- package/dist/magma-components/p-4cc70dac.entry.js +0 -1
- package/dist/magma-components/p-52ea2327.system.entry.js +0 -1
- package/dist/magma-components/p-57af1404.entry.js +0 -1
- package/dist/magma-components/p-5dc46946.entry.js +0 -1
- package/dist/magma-components/p-60c18f60.entry.js +0 -1
- package/dist/magma-components/p-62d83191.entry.js +0 -1
- package/dist/magma-components/p-67ab401f.entry.js +0 -1
- package/dist/magma-components/p-6a246ff8.entry.js +0 -1
- package/dist/magma-components/p-771786d1.entry.js +0 -1
- package/dist/magma-components/p-77251a16.entry.js +0 -1
- package/dist/magma-components/p-772d7b99.entry.js +0 -1
- package/dist/magma-components/p-773c04da.entry.js +0 -8
- package/dist/magma-components/p-7a166bc0.entry.js +0 -1
- package/dist/magma-components/p-825ee1e0.entry.js +0 -1
- package/dist/magma-components/p-8b1ff303.entry.js +0 -1
- package/dist/magma-components/p-8c21567b.entry.js +0 -1
- package/dist/magma-components/p-91a85141.entry.js +0 -1
- package/dist/magma-components/p-967a60aa.entry.js +0 -1
- package/dist/magma-components/p-97713e2b.entry.js +0 -1
- package/dist/magma-components/p-9cf753f5.entry.js +0 -1
- package/dist/magma-components/p-9ed636f2.entry.js +0 -1
- package/dist/magma-components/p-9f033f29.entry.js +0 -1
- package/dist/magma-components/p-YWpyar7R.system.js +0 -1
- package/dist/magma-components/p-a7fe6fd8.entry.js +0 -1
- package/dist/magma-components/p-aef79bb1.system.entry.js +0 -1
- package/dist/magma-components/p-b0bb1174.entry.js +0 -1
- package/dist/magma-components/p-b858d00e.entry.js +0 -1
- package/dist/magma-components/p-c179f3ca.entry.js +0 -1
- package/dist/magma-components/p-c4d8fe07.entry.js +0 -1
- package/dist/magma-components/p-c565e99c.entry.js +0 -1
- package/dist/magma-components/p-ca1023cf.entry.js +0 -1
- package/dist/magma-components/p-cb7a85da.entry.js +0 -1
- package/dist/magma-components/p-cfb54ef3.entry.js +0 -1
- package/dist/magma-components/p-ebd37b9e.entry.js +0 -1
- package/dist/magma-components/p-ef4393bf.entry.js +0 -1
- package/dist/magma-components/p-f950a39a.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(l,a,r,e){function o(l){return l instanceof r?l:new r((function(a){a(l)}))}return new(r||(r=Promise))((function(r,b){function t(l){try{n(e.next(l))}catch(l){b(l)}}function s(l){try{n(e["throw"](l))}catch(l){b(l)}}function n(l){l.done?r(l.value):o(l.value).then(t,s)}n((e=e.apply(l,a||[])).next())}))};var __generator=this&&this.__generator||function(l,a){var r={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},e,o,b,t=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return t.next=s(0),t["throw"]=s(1),t["return"]=s(2),typeof Symbol==="function"&&(t[Symbol.iterator]=function(){return this}),t;function s(l){return function(a){return n([l,a])}}function n(s){if(e)throw new TypeError("Generator is already executing.");while(t&&(t=0,s[0]&&(r=0)),r)try{if(e=1,o&&(b=s[0]&2?o["return"]:s[0]?o["throw"]||((b=o["return"])&&b.call(o),0):o.next)&&!(b=b.call(o,s[1])).done)return b;if(o=0,b)s=[s[0]&2,b.value];switch(s[0]){case 0:case 1:b=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;o=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(b=r.trys,b=b.length>0&&b[b.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!b||s[1]>b[0]&&s[1]<b[3])){r.label=s[1];break}if(s[0]===6&&r.label<b[1]){r.label=b[1];b=s;break}if(b&&r.label<b[2]){r.label=b[2];r.ops.push(s);break}if(b[2])r.ops.pop();r.trys.pop();continue}s=a.call(l,r)}catch(l){s=[6,l];o=0}finally{e=b=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{m as miBaselineCancel}from"./cancel-BJ8rpzfj.js";import{K as KeyboardManager}from"./keyboard-manager-BudfaWhu.js";import{L as Locale}from"./locale-a4oAcjYG.js";var remove$2="Αφαίρεση";var localeEl={remove:remove$2};var remove$1="Remove";var localeEs={remove:remove$1};var remove="Rimuovi";var localeIt={remove:remove};var mdsLabelCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-label-background:rgb(var(--label-yellow-09,89 68 3));--mds-label-color:rgb(var(--label-yellow-02,253 238 190));--mds-label-icon-color:var(--mds-label-color,rgb(var(--label-yellow-02,253 238 190)));--mds-label-radius:calc(var(--spacing,.0025rem)*150);--mds-label-selection-background:var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3)));--mds-label-selection-color:var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190)));--mds-label-button-background:rgb(var(--label-yellow-08,127 97 4));--mds-label-button-background-hover:rgb(var(--label-yellow-07,158 120 5));--mds-label-button-icon-color:rgb(var(--label-yellow-03,251 224 142));--tw-ease:initial}}}@layer reset,vendor,theme,base,components,utilities;: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,89 68 3));--mds-label-color:rgb(var(--label-yellow-02,253 238 190));--mds-label-icon-color:var(--mds-label-color,rgb(var(--label-yellow-02,253 238 190)));--mds-label-selection-background:var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3)));--mds-label-selection-color:var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190)));--mds-label-button-background:rgb(var(--label-yellow-08,127 97 4));--mds-label-button-background-hover:rgb(var(--label-yellow-07,158 120 5));--mds-label-button-icon-color:rgb(var(--label-yellow-03,251 224 142));--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-yellow-09,89 68 3)));color:var(--mds-label-color,rgb(var(--label-yellow-02,253 238 190)));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));corner-shape:round;align-items:center;border-radius:100px;display:flex;fill:var(--mds-label-icon-color,var(--mds-label-color,rgb(var(--label-yellow-02,253 238 190))));flex:1;gap:calc(var(--spacing,.0025rem)*50);max-width:min-content;min-height:calc(var(--spacing,.0025rem)*700);padding:0 calc(var(--spacing,.0025rem)*200);-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);transition-property:color,background-color,fill;--mds-label-background:rgb(var(--label-blue-08,42 77 247));--mds-label-button-background:rgb(var(--label-blue-09,7 40 196));--mds-label-button-background-hover:rgb(var(--label-blue-08,42 77 247));--mds-label-button-icon-color:rgb(var(--label-blue-04,196 206 253));--mds-label-color:rgb(var(--label-blue-02,234 238 254));--mds-label-icon-color:rgb(var(--label-blue-02,234 238 254));--mds-label-selection-background:rgb(var(--label-blue-06,121 143 250));--mds-label-selection-color:rgb(var(--label-blue-10,6 34 166))}@supports (corner-shape:bevel){:host{corner-left-shape:superellipse(.25);corner-right-shape:var(--magma-corner-shape,round);align-items:stretch;border-bottom-left-radius:100px;border-top-left-radius:100px;padding-left:calc(var(--private-bevel-size)/2);padding-right:0}}:host::selection{background-color:var(--mds-label-selection-background,var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3))));color:var(--mds-label-selection-color,var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190))))}:host([truncate=word]) .text{white-space:nowrap}.text{--mds-text-selection-background:var(--mds-label-selection-background,var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3))));--mds-text-selection-color:var(--mds-label-selection-color,var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190))));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,rgb(var(--label-yellow-08,127 97 4)));--mds-button-border-opacity:0;align-self:center;fill:var(--mds-label-button-icon-color,rgb(var(--label-yellow-03,251 224 142)));flex-shrink:0}.button-close:hover{--mds-button-background:var(--mds-label-button-background-hover,rgb(var(--label-yellow-07,158 120 5)))}:host([variant=red]){--mds-label-background:rgb(var(--label-red-04,247 195 195));--mds-label-button-background:rgb(var(--label-red-04,247 195 195));--mds-label-button-background-hover:rgb(var(--label-red-05,244 167 167));--mds-label-button-icon-color:rgb(var(--label-red-10,115 15 15));--mds-label-color:rgb(var(--label-red-10,115 15 15));--mds-label-icon-color:rgb(var(--label-red-10,115 15 15));--mds-label-selection-background:rgb(var(--label-red-08,192 25 25));--mds-label-selection-color:rgb(var(--label-red-02,252 234 234))}:host([variant=red]):host([tone=weak]){--mds-label-background:rgb(var(--label-red-08,192 25 25));--mds-label-button-background:rgb(var(--label-red-09,134 17 17));--mds-label-button-background-hover:rgb(var(--label-red-08,192 25 25));--mds-label-button-icon-color:rgb(var(--label-red-04,247 195 195));--mds-label-color:rgb(var(--label-red-02,252 234 234));--mds-label-icon-color:rgb(var(--label-red-02,252 234 234));--mds-label-selection-background:rgb(var(--label-red-06,236 110 110));--mds-label-selection-color:rgb(var(--label-red-10,115 15 15))}:host([variant=amaranth]){--mds-label-background:rgb(var(--label-amaranth-04,251 192 203));--mds-label-button-background:rgb(var(--label-amaranth-04,251 192 203));--mds-label-button-background-hover:rgb(var(--label-amaranth-05,250 163 178));--mds-label-button-icon-color:rgb(var(--label-amaranth-10,114 7 25));--mds-label-color:rgb(var(--label-amaranth-10,114 7 25));--mds-label-icon-color:rgb(var(--label-amaranth-10,114 7 25));--mds-label-selection-background:rgb(var(--label-amaranth-08,193 11 42));--mds-label-selection-color:rgb(var(--label-amaranth-02,254 233 237))}:host([variant=amaranth]):host([tone=weak]){--mds-label-background:rgb(var(--label-amaranth-08,193 11 42));--mds-label-button-background:rgb(var(--label-amaranth-09,135 8 30));--mds-label-button-background-hover:rgb(var(--label-amaranth-08,193 11 42));--mds-label-button-icon-color:rgb(var(--label-amaranth-04,251 192 203));--mds-label-color:rgb(var(--label-amaranth-02,254 233 237));--mds-label-icon-color:rgb(var(--label-amaranth-02,254 233 237));--mds-label-selection-background:rgb(var(--label-amaranth-06,246 99 125));--mds-label-selection-color:rgb(var(--label-amaranth-10,114 7 25))}:host([variant=aqua]){--mds-label-background:rgb(var(--label-aqua-04,81 225 250));--mds-label-button-background:rgb(var(--label-aqua-04,81 225 250));--mds-label-button-background-hover:rgb(var(--label-aqua-05,7 203 237));--mds-label-button-icon-color:rgb(var(--label-aqua-10,2 65 76));--mds-label-color:rgb(var(--label-aqua-10,2 65 76));--mds-label-icon-color:rgb(var(--label-aqua-10,2 65 76));--mds-label-selection-background:rgb(var(--label-aqua-08,4 110 129));--mds-label-selection-color:rgb(var(--label-aqua-02,203 246 254))}:host([variant=aqua]):host([tone=weak]){--mds-label-background:rgb(var(--label-aqua-08,4 110 129));--mds-label-button-background:rgb(var(--label-aqua-09,3 77 90));--mds-label-button-background-hover:rgb(var(--label-aqua-08,4 110 129));--mds-label-button-icon-color:rgb(var(--label-aqua-04,81 225 250));--mds-label-color:rgb(var(--label-aqua-02,203 246 254));--mds-label-icon-color:rgb(var(--label-aqua-02,203 246 254));--mds-label-selection-background:rgb(var(--label-aqua-06,5 163 190));--mds-label-selection-color:rgb(var(--label-aqua-10,2 65 76))}:host([variant=blue]){--mds-label-background:rgb(var(--label-blue-04,196 206 253));--mds-label-button-background:rgb(var(--label-blue-04,196 206 253));--mds-label-button-background-hover:rgb(var(--label-blue-05,170 184 252));--mds-label-button-icon-color:rgb(var(--label-blue-10,6 34 166));--mds-label-color:rgb(var(--label-blue-10,6 34 166));--mds-label-icon-color:rgb(var(--label-blue-10,6 34 166));--mds-label-selection-background:rgb(var(--label-blue-08,42 77 247));--mds-label-selection-color:rgb(var(--label-blue-02,234 238 254))}:host([variant=blue]):host([tone=weak]){--mds-label-background:rgb(var(--label-blue-08,42 77 247));--mds-label-button-background:rgb(var(--label-blue-09,7 40 196));--mds-label-button-background-hover:rgb(var(--label-blue-08,42 77 247));--mds-label-button-icon-color:rgb(var(--label-blue-04,196 206 253));--mds-label-color:rgb(var(--label-blue-02,234 238 254));--mds-label-icon-color:rgb(var(--label-blue-02,234 238 254));--mds-label-selection-background:rgb(var(--label-blue-06,121 143 250));--mds-label-selection-color:rgb(var(--label-blue-10,6 34 166))}:host([variant=green]){--mds-label-background:rgb(var(--label-green-04,113 230 156));--mds-label-button-background:rgb(var(--label-green-04,113 230 156));--mds-label-button-background-hover:rgb(var(--label-green-05,37 213 102));--mds-label-button-icon-color:rgb(var(--label-green-10,12 68 33));--mds-label-color:rgb(var(--label-green-10,12 68 33));--mds-label-icon-color:rgb(var(--label-green-10,12 68 33));--mds-label-selection-background:rgb(var(--label-green-08,20 116 56));--mds-label-selection-color:rgb(var(--label-green-02,211 247 224))}:host([variant=green]):host([tone=weak]){--mds-label-background:rgb(var(--label-green-08,20 116 56));--mds-label-button-background:rgb(var(--label-green-09,14 81 39));--mds-label-button-background-hover:rgb(var(--label-green-08,20 116 56));--mds-label-button-icon-color:rgb(var(--label-green-04,113 230 156));--mds-label-color:rgb(var(--label-green-02,211 247 224));--mds-label-icon-color:rgb(var(--label-green-02,211 247 224));--mds-label-selection-background:rgb(var(--label-green-06,30 171 82));--mds-label-selection-color:rgb(var(--label-green-10,12 68 33))}:host([variant=lime]){--mds-label-background:rgb(var(--label-lime-04,148 229 25));--mds-label-button-background:rgb(var(--label-lime-04,148 229 25));--mds-label-button-background-hover:rgb(var(--label-lime-05,134 207 22));--mds-label-button-icon-color:rgb(var(--label-lime-10,43 66 7));--mds-label-color:rgb(var(--label-lime-10,43 66 7));--mds-label-icon-color:rgb(var(--label-lime-10,43 66 7));--mds-label-selection-background:rgb(var(--label-lime-08,73 112 12));--mds-label-selection-color:rgb(var(--label-lime-02,223 247 185))}:host([variant=lime]):host([tone=weak]){--mds-label-background:rgb(var(--label-lime-08,73 112 12));--mds-label-button-background:rgb(var(--label-lime-09,51 79 8));--mds-label-button-background-hover:rgb(var(--label-lime-08,73 112 12));--mds-label-button-icon-color:rgb(var(--label-lime-04,148 229 25));--mds-label-color:rgb(var(--label-lime-02,223 247 185));--mds-label-icon-color:rgb(var(--label-lime-02,223 247 185));--mds-label-selection-background:rgb(var(--label-lime-06,108 167 18));--mds-label-selection-color:rgb(var(--label-lime-10,43 66 7))}:host([variant=orange]){--mds-label-background:rgb(var(--label-orange-04,252 196 158));--mds-label-button-background:rgb(var(--label-orange-04,252 196 158));--mds-label-button-background-hover:rgb(var(--label-orange-05,251 168 111));--mds-label-button-icon-color:rgb(var(--label-orange-10,99 42 3));--mds-label-color:rgb(var(--label-orange-10,99 42 3));--mds-label-icon-color:rgb(var(--label-orange-10,99 42 3));--mds-label-selection-background:rgb(var(--label-orange-08,167 71 4));--mds-label-selection-color:rgb(var(--label-orange-02,254 235 222))}:host([variant=orange]):host([tone=weak]){--mds-label-background:rgb(var(--label-orange-08,167 71 4));--mds-label-button-background:rgb(var(--label-orange-09,116 49 3));--mds-label-button-background-hover:rgb(var(--label-orange-08,167 71 4));--mds-label-button-icon-color:rgb(var(--label-orange-04,252 196 158));--mds-label-color:rgb(var(--label-orange-02,254 235 222));--mds-label-icon-color:rgb(var(--label-orange-02,254 235 222));--mds-label-selection-background:rgb(var(--label-orange-06,247 105 6));--mds-label-selection-color:rgb(var(--label-orange-10,99 42 3))}:host([variant=orchid]){--mds-label-background:rgb(var(--label-orchid-04,248 192 220));--mds-label-button-background:rgb(var(--label-orchid-04,248 192 220));--mds-label-button-background-hover:rgb(var(--label-orchid-05,245 163 203));--mds-label-button-icon-color:rgb(var(--label-orchid-10,111 12 61));--mds-label-color:rgb(var(--label-orchid-10,111 12 61));--mds-label-icon-color:rgb(var(--label-orchid-10,111 12 61));--mds-label-selection-background:rgb(var(--label-orchid-08,187 19 102));--mds-label-selection-color:rgb(var(--label-orchid-02,253 233 243))}:host([variant=orchid]):host([tone=weak]){--mds-label-background:rgb(var(--label-orchid-08,187 19 102));--mds-label-button-background:rgb(var(--label-orchid-09,131 14 71));--mds-label-button-background-hover:rgb(var(--label-orchid-08,187 19 102));--mds-label-button-icon-color:rgb(var(--label-orchid-04,248 192 220));--mds-label-color:rgb(var(--label-orchid-02,253 233 243));--mds-label-icon-color:rgb(var(--label-orchid-02,253 233 243));--mds-label-selection-background:rgb(var(--label-orchid-06,239 99 168));--mds-label-selection-color:rgb(var(--label-orchid-10,111 12 61))}:host([variant=sky]){--mds-label-background:rgb(var(--label-sky-04,148 217 249));--mds-label-button-background:rgb(var(--label-sky-04,148 217 249));--mds-label-button-background-hover:rgb(var(--label-sky-05,94 198 245));--mds-label-button-icon-color:rgb(var(--label-sky-10,5 63 90));--mds-label-color:rgb(var(--label-sky-10,5 63 90));--mds-label-icon-color:rgb(var(--label-sky-10,5 63 90));--mds-label-selection-background:rgb(var(--label-sky-08,9 107 152));--mds-label-selection-color:rgb(var(--label-sky-02,219 242 253))}:host([variant=sky]):host([tone=weak]){--mds-label-background:rgb(var(--label-sky-08,9 107 152));--mds-label-button-background:rgb(var(--label-sky-09,6 76 107));--mds-label-button-background-hover:rgb(var(--label-sky-08,9 107 152));--mds-label-button-icon-color:rgb(var(--label-sky-04,148 217 249));--mds-label-color:rgb(var(--label-sky-02,219 242 253));--mds-label-icon-color:rgb(var(--label-sky-02,219 242 253));--mds-label-selection-background:rgb(var(--label-sky-06,13 158 224));--mds-label-selection-color:rgb(var(--label-sky-10,5 63 90))}:host([variant=violet]){--mds-label-background:rgb(var(--label-violet-04,216 200 252));--mds-label-button-background:rgb(var(--label-violet-04,216 200 252));--mds-label-button-background-hover:rgb(var(--label-violet-05,198 175 251));--mds-label-button-icon-color:rgb(var(--label-violet-10,57 9 165));--mds-label-color:rgb(var(--label-violet-10,57 9 165));--mds-label-icon-color:rgb(var(--label-violet-10,57 9 165));--mds-label-selection-background:rgb(var(--label-violet-08,111 53 244));--mds-label-selection-color:rgb(var(--label-violet-02,241 235 254))}:host([variant=violet]):host([tone=weak]){--mds-label-background:rgb(var(--label-violet-08,111 53 244));--mds-label-button-background:rgb(var(--label-violet-09,67 11 195));--mds-label-button-background-hover:rgb(var(--label-violet-08,111 53 244));--mds-label-button-icon-color:rgb(var(--label-violet-04,216 200 252));--mds-label-color:rgb(var(--label-violet-02,241 235 254));--mds-label-icon-color:rgb(var(--label-violet-02,241 235 254));--mds-label-selection-background:rgb(var(--label-violet-06,166 129 248));--mds-label-selection-color:rgb(var(--label-violet-10,57 9 165))}:host([variant=purple]){--mds-label-background:rgb(var(--label-purple-04,225 196 252));--mds-label-button-background:rgb(var(--label-purple-04,225 196 252));--mds-label-button-background-hover:rgb(var(--label-purple-05,212 170 251));--mds-label-button-icon-color:rgb(var(--label-purple-10,78 7 146));--mds-label-color:rgb(var(--label-purple-10,78 7 146));--mds-label-icon-color:rgb(var(--label-purple-10,78 7 146));--mds-label-selection-background:rgb(var(--label-purple-08,133 17 244));--mds-label-selection-color:rgb(var(--label-purple-02,245 234 254))}:host([variant=purple]):host([tone=weak]){--mds-label-background:rgb(var(--label-purple-08,133 17 244));--mds-label-button-background:rgb(var(--label-purple-09,92 8 173));--mds-label-button-background-hover:rgb(var(--label-purple-08,133 17 244));--mds-label-button-icon-color:rgb(var(--label-purple-04,225 196 252));--mds-label-color:rgb(var(--label-purple-02,245 234 254));--mds-label-icon-color:rgb(var(--label-purple-02,245 234 254));--mds-label-selection-background:rgb(var(--label-purple-06,186 119 249));--mds-label-selection-color:rgb(var(--label-purple-10,78 7 146))}:host([variant=yellow]){--mds-label-background:rgb(var(--label-yellow-04,248 202 60));--mds-label-button-background:rgb(var(--label-yellow-04,248 202 60));--mds-label-button-background-hover:rgb(var(--label-yellow-05,234 179 8));--mds-label-button-icon-color:rgb(var(--label-yellow-10,75 57 3));--mds-label-color:rgb(var(--label-yellow-10,75 57 3));--mds-label-icon-color:rgb(var(--label-yellow-10,75 57 3));--mds-label-selection-background:rgb(var(--label-yellow-08,127 97 4));--mds-label-selection-color:rgb(var(--label-yellow-02,253 238 190))}:host([variant=yellow]):host([tone=weak]){--mds-label-background:rgb(var(--label-yellow-08,127 97 4));--mds-label-button-background:rgb(var(--label-yellow-09,89 68 3));--mds-label-button-background-hover:rgb(var(--label-yellow-08,127 97 4));--mds-label-button-icon-color:rgb(var(--label-yellow-04,248 202 60));--mds-label-color:rgb(var(--label-yellow-02,253 238 190));--mds-label-icon-color:rgb(var(--label-yellow-02,253 238 190));--mds-label-selection-background:rgb(var(--label-yellow-06,188 143 6));--mds-label-selection-color:rgb(var(--label-yellow-10,75 57 3))}:host([variant=error]){--mds-label-background:rgb(var(--status-error-04,254 193 189));--mds-label-button-background:rgb(var(--status-error-04,254 193 189));--mds-label-button-background-hover:rgb(var(--status-error-05,250 165 160));--mds-label-button-icon-color:rgb(var(--status-error-10,115 0 0));--mds-label-color:rgb(var(--status-error-10,115 0 0));--mds-label-icon-color:rgb(var(--status-error-10,115 0 0));--mds-label-selection-background:rgb(var(--status-error-08,182 50 54));--mds-label-selection-color:rgb(var(--status-error-02,255 234 231))}:host([variant=error]):host([tone=weak]){--mds-label-background:rgb(var(--status-error-08,182 50 54));--mds-label-button-background:rgb(var(--status-error-09,135 0 14));--mds-label-button-background-hover:rgb(var(--status-error-08,182 50 54));--mds-label-button-icon-color:rgb(var(--status-error-04,254 193 189));--mds-label-color:rgb(var(--status-error-02,255 234 231));--mds-label-icon-color:rgb(var(--status-error-02,255 234 231));--mds-label-selection-background:rgb(var(--status-error-06,239 108 105));--mds-label-selection-color:rgb(var(--status-error-10,115 0 0))}:host([variant=warning]){--mds-label-background:rgb(var(--status-warning-04,255 200 33));--mds-label-button-background:rgb(var(--status-warning-04,255 200 33));--mds-label-button-background-hover:rgb(var(--status-warning-05,237 177 0));--mds-label-button-icon-color:rgb(var(--status-warning-10,77 57 0));--mds-label-color:rgb(var(--status-warning-10,77 57 0));--mds-label-icon-color:rgb(var(--status-warning-10,77 57 0));--mds-label-selection-background:rgb(var(--status-warning-08,129 96 0));--mds-label-selection-color:rgb(var(--status-warning-02,255 237 185))}:host([variant=warning]):host([tone=weak]){--mds-label-background:rgb(var(--status-warning-08,129 96 0));--mds-label-button-background:rgb(var(--status-warning-09,90 67 0));--mds-label-button-background-hover:rgb(var(--status-warning-08,129 96 0));--mds-label-button-icon-color:rgb(var(--status-warning-04,255 200 33));--mds-label-color:rgb(var(--status-warning-02,255 237 185));--mds-label-icon-color:rgb(var(--status-warning-02,255 237 185));--mds-label-selection-background:rgb(var(--status-warning-06,190 142 0));--mds-label-selection-color:rgb(var(--status-warning-10,77 57 0))}:host([variant=success]){--mds-label-background:rgb(var(--status-success-04,158 222 181));--mds-label-button-background:rgb(var(--status-success-04,158 222 181));--mds-label-button-background-hover:rgb(var(--status-success-05,107 206 147));--mds-label-button-icon-color:rgb(var(--status-success-10,0 69 0));--mds-label-color:rgb(var(--status-success-10,0 69 0));--mds-label-icon-color:rgb(var(--status-success-10,0 69 0));--mds-label-selection-background:rgb(var(--status-success-08,0 116 46));--mds-label-selection-color:rgb(var(--status-success-02,222 244 228))}:host([variant=success]):host([tone=weak]){--mds-label-background:rgb(var(--status-success-08,0 116 46));--mds-label-button-background:rgb(var(--status-success-09,0 82 9));--mds-label-button-background-hover:rgb(var(--status-success-08,0 116 46));--mds-label-button-icon-color:rgb(var(--status-success-04,158 222 181));--mds-label-color:rgb(var(--status-success-02,222 244 228));--mds-label-icon-color:rgb(var(--status-success-02,222 244 228));--mds-label-selection-background:rgb(var(--status-success-06,0 171 97));--mds-label-selection-color:rgb(var(--status-success-10,0 69 0))}:host([variant=info]){--mds-label-background:rgb(var(--status-info-04,159 216 241));--mds-label-button-background:rgb(var(--status-info-04,159 216 241));--mds-label-button-background-hover:rgb(var(--status-info-05,112 198 234));--mds-label-button-icon-color:rgb(var(--status-info-10,0 61 103));--mds-label-color:rgb(var(--status-info-10,0 61 103));--mds-label-icon-color:rgb(var(--status-info-10,0 61 103));--mds-label-selection-background:rgb(var(--status-info-08,0 107 151));--mds-label-selection-color:rgb(var(--status-info-02,222 242 250))}:host([variant=info]):host([tone=weak]){--mds-label-background:rgb(var(--status-info-08,0 107 151));--mds-label-button-background:rgb(var(--status-info-09,0 73 116));--mds-label-button-background-hover:rgb(var(--status-info-08,0 107 151));--mds-label-button-icon-color:rgb(var(--status-info-04,159 216 241));--mds-label-color:rgb(var(--status-info-02,222 242 250));--mds-label-icon-color:rgb(var(--status-info-02,222 242 250));--mds-label-selection-background:rgb(var(--status-info-06,0 161 208));--mds-label-selection-color:rgb(var(--status-info-10,0 61 103))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)){-webkit-box-shadow:var(--shadow-outline) inset;box-shadow:var(--shadow-outline) inset}:host-context(:root.pref-contrast-more){-webkit-box-shadow:var(--shadow-outline-50) inset;box-shadow:var(--shadow-outline-50) inset}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))){-webkit-box-shadow:var(--shadow-outline) inset;box-shadow:var(--shadow-outline) inset}}@media (prefers-contrast:more){:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))){-webkit-box-shadow:var(--shadow-outline-50) inset;box-shadow:var(--shadow-outline-50) inset}}'};var MdsLabel=function(){function l(l){var a=this;registerInstance(this,l);this.deletedEvent=createEvent(this,"mdsLabelDelete");this.km=new KeyboardManager;this.t=new Locale({el:localeEl,en:localeEs,es:localeEs,it:localeIt});this.variant="sky";this.tone="weak";this.truncate="word";this.typography="caption";this.deletable=false;this.onClickDelete=function(l){l.stopPropagation();l.preventDefault();a.deletedEvent.emit()};this.handleKeyboard=function(){var l;if(a.deletable){var r=(l=a.host.shadowRoot)===null||l===void 0?void 0:l.querySelector(".close");a.km.addElement(r);a.km.attachClickBehavior();return}a.km.detachClickBehavior()}}l.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(l){this.language=this.t.lang(this.host);return[2]}))}))};l.prototype.componentDidLoad=function(){this.t.lang(this.host);this.handleKeyboard()};l.prototype.componentDidUpdate=function(){this.handleKeyboard()};l.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};l.prototype.render=function(){return h(Host,{key:"acc65a6cee82dbd04b07784b3d72555144957ea1"},h("mds-text",{key:"4922d3d7d6ba02735aadc6732f1873616192c871",class:"text",truncate:this.truncate,typography:this.typography},this.label),this.deletable&&h("mds-button",{key:"3c91c3ccea28f6c81299e77109dc36956934f1a8",class:"button-close",icon:miBaselineCancel,onClick:this.onClickDelete.bind(this),title:this.t.get("remove"),size:"sm"}))};Object.defineProperty(l.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return l}();MdsLabel.style=mdsLabelCss();export{MdsLabel as mds_label};
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(l,a,r,e){function o(l){return l instanceof r?l:new r((function(a){a(l)}))}return new(r||(r=Promise))((function(r,b){function t(l){try{n(e.next(l))}catch(l){b(l)}}function s(l){try{n(e["throw"](l))}catch(l){b(l)}}function n(l){l.done?r(l.value):o(l.value).then(t,s)}n((e=e.apply(l,a||[])).next())}))};var __generator=this&&this.__generator||function(l,a){var r={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},e,o,b,t=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return t.next=s(0),t["throw"]=s(1),t["return"]=s(2),typeof Symbol==="function"&&(t[Symbol.iterator]=function(){return this}),t;function s(l){return function(a){return n([l,a])}}function n(s){if(e)throw new TypeError("Generator is already executing.");while(t&&(t=0,s[0]&&(r=0)),r)try{if(e=1,o&&(b=s[0]&2?o["return"]:s[0]?o["throw"]||((b=o["return"])&&b.call(o),0):o.next)&&!(b=b.call(o,s[1])).done)return b;if(o=0,b)s=[s[0]&2,b.value];switch(s[0]){case 0:case 1:b=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;o=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(b=r.trys,b=b.length>0&&b[b.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!b||s[1]>b[0]&&s[1]<b[3])){r.label=s[1];break}if(s[0]===6&&r.label<b[1]){r.label=b[1];b=s;break}if(b&&r.label<b[2]){r.label=b[2];r.ops.push(s);break}if(b[2])r.ops.pop();r.trys.pop();continue}s=a.call(l,r)}catch(l){s=[6,l];o=0}finally{e=b=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{m as miBaselineCancel}from"./cancel-BJ8rpzfj.js";import{K as KeyboardManager}from"./keyboard-manager-BudfaWhu.js";import{L as Locale}from"./locale-a4oAcjYG.js";var remove$2="Αφαίρεση";var localeEl={remove:remove$2};var remove$1="Remove";var localeEs={remove:remove$1};var remove="Rimuovi";var localeIt={remove:remove};var mdsLabelCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-label-background:rgb(var(--label-yellow-09,89 68 3));--mds-label-color:rgb(var(--label-yellow-02,253 238 190));--mds-label-icon-color:var(--mds-label-color,rgb(var(--label-yellow-02,253 238 190)));--mds-label-radius:calc(var(--spacing,.0025rem)*150);--mds-label-selection-background:var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3)));--mds-label-selection-color:var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190)));--mds-label-button-background:rgb(var(--label-yellow-08,127 97 4));--mds-label-button-background-hover:rgb(var(--label-yellow-07,158 120 5));--mds-label-button-icon-color:rgb(var(--label-yellow-03,251 224 142));--tw-ease:initial}}}@layer reset,vendor,theme,base,components,utilities;: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,89 68 3));--mds-label-color:rgb(var(--label-yellow-02,253 238 190));--mds-label-icon-color:var(--mds-label-color,rgb(var(--label-yellow-02,253 238 190)));--mds-label-selection-background:var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3)));--mds-label-selection-color:var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190)));--mds-label-button-background:rgb(var(--label-yellow-08,127 97 4));--mds-label-button-background-hover:rgb(var(--label-yellow-07,158 120 5));--mds-label-button-icon-color:rgb(var(--label-yellow-03,251 224 142));--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-yellow-09,89 68 3)));color:var(--mds-label-color,rgb(var(--label-yellow-02,253 238 190)));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));corner-shape:round;align-items:center;border-radius:100px;display:flex;fill:var(--mds-label-icon-color,var(--mds-label-color,rgb(var(--label-yellow-02,253 238 190))));flex:1;gap:calc(var(--spacing,.0025rem)*50);max-width:min-content;min-height:calc(var(--spacing,.0025rem)*700);padding:0 calc(var(--spacing,.0025rem)*200);-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);transition-property:color,background-color,fill;--mds-label-background:rgb(var(--label-blue-08,42 77 247));--mds-label-button-background:rgb(var(--label-blue-09,7 40 196));--mds-label-button-background-hover:rgb(var(--label-blue-08,42 77 247));--mds-label-button-icon-color:rgb(var(--label-blue-04,196 206 253));--mds-label-color:rgb(var(--label-blue-02,234 238 254));--mds-label-icon-color:rgb(var(--label-blue-02,234 238 254));--mds-label-selection-background:rgb(var(--label-blue-06,121 143 250));--mds-label-selection-color:rgb(var(--label-blue-10,6 34 166))}@supports (corner-shape:bevel){:host{corner-left-shape:superellipse(.25);corner-right-shape:var(--magma-corner-shape,round);align-items:stretch;border-bottom-left-radius:100px;border-top-left-radius:100px;padding-left:calc(var(--private-bevel-size)/2);padding-right:0}}:host::selection{background-color:var(--mds-label-selection-background,var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3))));color:var(--mds-label-selection-color,var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190))))}:host([truncate=word]) .text{white-space:nowrap}.text{--mds-text-selection-background:var(--mds-label-selection-background,var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3))));--mds-text-selection-color:var(--mds-label-selection-color,var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190))));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,rgb(var(--label-yellow-08,127 97 4)));--mds-button-border-opacity:0;align-self:center;fill:var(--mds-label-button-icon-color,rgb(var(--label-yellow-03,251 224 142)));flex-shrink:0}.button-close:hover{--mds-button-background:var(--mds-label-button-background-hover,rgb(var(--label-yellow-07,158 120 5)))}:host([variant=red]){--mds-label-background:rgb(var(--label-red-04,247 195 195));--mds-label-button-background:rgb(var(--label-red-04,247 195 195));--mds-label-button-background-hover:rgb(var(--label-red-05,244 167 167));--mds-label-button-icon-color:rgb(var(--label-red-10,115 15 15));--mds-label-color:rgb(var(--label-red-10,115 15 15));--mds-label-icon-color:rgb(var(--label-red-10,115 15 15));--mds-label-selection-background:rgb(var(--label-red-08,192 25 25));--mds-label-selection-color:rgb(var(--label-red-02,252 234 234))}:host([variant=red]):host([tone=weak]){--mds-label-background:rgb(var(--label-red-08,192 25 25));--mds-label-button-background:rgb(var(--label-red-09,134 17 17));--mds-label-button-background-hover:rgb(var(--label-red-08,192 25 25));--mds-label-button-icon-color:rgb(var(--label-red-04,247 195 195));--mds-label-color:rgb(var(--label-red-02,252 234 234));--mds-label-icon-color:rgb(var(--label-red-02,252 234 234));--mds-label-selection-background:rgb(var(--label-red-06,236 110 110));--mds-label-selection-color:rgb(var(--label-red-10,115 15 15))}:host([variant=amaranth]){--mds-label-background:rgb(var(--label-amaranth-04,251 192 203));--mds-label-button-background:rgb(var(--label-amaranth-04,251 192 203));--mds-label-button-background-hover:rgb(var(--label-amaranth-05,250 163 178));--mds-label-button-icon-color:rgb(var(--label-amaranth-10,114 7 25));--mds-label-color:rgb(var(--label-amaranth-10,114 7 25));--mds-label-icon-color:rgb(var(--label-amaranth-10,114 7 25));--mds-label-selection-background:rgb(var(--label-amaranth-08,193 11 42));--mds-label-selection-color:rgb(var(--label-amaranth-02,254 233 237))}:host([variant=amaranth]):host([tone=weak]){--mds-label-background:rgb(var(--label-amaranth-08,193 11 42));--mds-label-button-background:rgb(var(--label-amaranth-09,135 8 30));--mds-label-button-background-hover:rgb(var(--label-amaranth-08,193 11 42));--mds-label-button-icon-color:rgb(var(--label-amaranth-04,251 192 203));--mds-label-color:rgb(var(--label-amaranth-02,254 233 237));--mds-label-icon-color:rgb(var(--label-amaranth-02,254 233 237));--mds-label-selection-background:rgb(var(--label-amaranth-06,246 99 125));--mds-label-selection-color:rgb(var(--label-amaranth-10,114 7 25))}:host([variant=aqua]){--mds-label-background:rgb(var(--label-aqua-04,81 225 250));--mds-label-button-background:rgb(var(--label-aqua-04,81 225 250));--mds-label-button-background-hover:rgb(var(--label-aqua-05,7 203 237));--mds-label-button-icon-color:rgb(var(--label-aqua-10,2 65 76));--mds-label-color:rgb(var(--label-aqua-10,2 65 76));--mds-label-icon-color:rgb(var(--label-aqua-10,2 65 76));--mds-label-selection-background:rgb(var(--label-aqua-08,4 110 129));--mds-label-selection-color:rgb(var(--label-aqua-02,203 246 254))}:host([variant=aqua]):host([tone=weak]){--mds-label-background:rgb(var(--label-aqua-08,4 110 129));--mds-label-button-background:rgb(var(--label-aqua-09,3 77 90));--mds-label-button-background-hover:rgb(var(--label-aqua-08,4 110 129));--mds-label-button-icon-color:rgb(var(--label-aqua-04,81 225 250));--mds-label-color:rgb(var(--label-aqua-02,203 246 254));--mds-label-icon-color:rgb(var(--label-aqua-02,203 246 254));--mds-label-selection-background:rgb(var(--label-aqua-06,5 163 190));--mds-label-selection-color:rgb(var(--label-aqua-10,2 65 76))}:host([variant=blue]){--mds-label-background:rgb(var(--label-blue-04,196 206 253));--mds-label-button-background:rgb(var(--label-blue-04,196 206 253));--mds-label-button-background-hover:rgb(var(--label-blue-05,170 184 252));--mds-label-button-icon-color:rgb(var(--label-blue-10,6 34 166));--mds-label-color:rgb(var(--label-blue-10,6 34 166));--mds-label-icon-color:rgb(var(--label-blue-10,6 34 166));--mds-label-selection-background:rgb(var(--label-blue-08,42 77 247));--mds-label-selection-color:rgb(var(--label-blue-02,234 238 254))}:host([variant=blue]):host([tone=weak]){--mds-label-background:rgb(var(--label-blue-08,42 77 247));--mds-label-button-background:rgb(var(--label-blue-09,7 40 196));--mds-label-button-background-hover:rgb(var(--label-blue-08,42 77 247));--mds-label-button-icon-color:rgb(var(--label-blue-04,196 206 253));--mds-label-color:rgb(var(--label-blue-02,234 238 254));--mds-label-icon-color:rgb(var(--label-blue-02,234 238 254));--mds-label-selection-background:rgb(var(--label-blue-06,121 143 250));--mds-label-selection-color:rgb(var(--label-blue-10,6 34 166))}:host([variant=green]){--mds-label-background:rgb(var(--label-green-04,113 230 156));--mds-label-button-background:rgb(var(--label-green-04,113 230 156));--mds-label-button-background-hover:rgb(var(--label-green-05,37 213 102));--mds-label-button-icon-color:rgb(var(--label-green-10,12 68 33));--mds-label-color:rgb(var(--label-green-10,12 68 33));--mds-label-icon-color:rgb(var(--label-green-10,12 68 33));--mds-label-selection-background:rgb(var(--label-green-08,20 116 56));--mds-label-selection-color:rgb(var(--label-green-02,211 247 224))}:host([variant=green]):host([tone=weak]){--mds-label-background:rgb(var(--label-green-08,20 116 56));--mds-label-button-background:rgb(var(--label-green-09,14 81 39));--mds-label-button-background-hover:rgb(var(--label-green-08,20 116 56));--mds-label-button-icon-color:rgb(var(--label-green-04,113 230 156));--mds-label-color:rgb(var(--label-green-02,211 247 224));--mds-label-icon-color:rgb(var(--label-green-02,211 247 224));--mds-label-selection-background:rgb(var(--label-green-06,30 171 82));--mds-label-selection-color:rgb(var(--label-green-10,12 68 33))}:host([variant=lime]){--mds-label-background:rgb(var(--label-lime-04,148 229 25));--mds-label-button-background:rgb(var(--label-lime-04,148 229 25));--mds-label-button-background-hover:rgb(var(--label-lime-05,134 207 22));--mds-label-button-icon-color:rgb(var(--label-lime-10,43 66 7));--mds-label-color:rgb(var(--label-lime-10,43 66 7));--mds-label-icon-color:rgb(var(--label-lime-10,43 66 7));--mds-label-selection-background:rgb(var(--label-lime-08,73 112 12));--mds-label-selection-color:rgb(var(--label-lime-02,223 247 185))}:host([variant=lime]):host([tone=weak]){--mds-label-background:rgb(var(--label-lime-08,73 112 12));--mds-label-button-background:rgb(var(--label-lime-09,51 79 8));--mds-label-button-background-hover:rgb(var(--label-lime-08,73 112 12));--mds-label-button-icon-color:rgb(var(--label-lime-04,148 229 25));--mds-label-color:rgb(var(--label-lime-02,223 247 185));--mds-label-icon-color:rgb(var(--label-lime-02,223 247 185));--mds-label-selection-background:rgb(var(--label-lime-06,108 167 18));--mds-label-selection-color:rgb(var(--label-lime-10,43 66 7))}:host([variant=orange]){--mds-label-background:rgb(var(--label-orange-04,252 196 158));--mds-label-button-background:rgb(var(--label-orange-04,252 196 158));--mds-label-button-background-hover:rgb(var(--label-orange-05,251 168 111));--mds-label-button-icon-color:rgb(var(--label-orange-10,99 42 3));--mds-label-color:rgb(var(--label-orange-10,99 42 3));--mds-label-icon-color:rgb(var(--label-orange-10,99 42 3));--mds-label-selection-background:rgb(var(--label-orange-08,167 71 4));--mds-label-selection-color:rgb(var(--label-orange-02,254 235 222))}:host([variant=orange]):host([tone=weak]){--mds-label-background:rgb(var(--label-orange-08,167 71 4));--mds-label-button-background:rgb(var(--label-orange-09,116 49 3));--mds-label-button-background-hover:rgb(var(--label-orange-08,167 71 4));--mds-label-button-icon-color:rgb(var(--label-orange-04,252 196 158));--mds-label-color:rgb(var(--label-orange-02,254 235 222));--mds-label-icon-color:rgb(var(--label-orange-02,254 235 222));--mds-label-selection-background:rgb(var(--label-orange-06,247 105 6));--mds-label-selection-color:rgb(var(--label-orange-10,99 42 3))}:host([variant=orchid]){--mds-label-background:rgb(var(--label-orchid-04,248 192 220));--mds-label-button-background:rgb(var(--label-orchid-04,248 192 220));--mds-label-button-background-hover:rgb(var(--label-orchid-05,245 163 203));--mds-label-button-icon-color:rgb(var(--label-orchid-10,111 12 61));--mds-label-color:rgb(var(--label-orchid-10,111 12 61));--mds-label-icon-color:rgb(var(--label-orchid-10,111 12 61));--mds-label-selection-background:rgb(var(--label-orchid-08,187 19 102));--mds-label-selection-color:rgb(var(--label-orchid-02,253 233 243))}:host([variant=orchid]):host([tone=weak]){--mds-label-background:rgb(var(--label-orchid-08,187 19 102));--mds-label-button-background:rgb(var(--label-orchid-09,131 14 71));--mds-label-button-background-hover:rgb(var(--label-orchid-08,187 19 102));--mds-label-button-icon-color:rgb(var(--label-orchid-04,248 192 220));--mds-label-color:rgb(var(--label-orchid-02,253 233 243));--mds-label-icon-color:rgb(var(--label-orchid-02,253 233 243));--mds-label-selection-background:rgb(var(--label-orchid-06,239 99 168));--mds-label-selection-color:rgb(var(--label-orchid-10,111 12 61))}:host([variant=sky]){--mds-label-background:rgb(var(--label-sky-04,148 217 249));--mds-label-button-background:rgb(var(--label-sky-04,148 217 249));--mds-label-button-background-hover:rgb(var(--label-sky-05,94 198 245));--mds-label-button-icon-color:rgb(var(--label-sky-10,5 63 90));--mds-label-color:rgb(var(--label-sky-10,5 63 90));--mds-label-icon-color:rgb(var(--label-sky-10,5 63 90));--mds-label-selection-background:rgb(var(--label-sky-08,9 107 152));--mds-label-selection-color:rgb(var(--label-sky-02,219 242 253))}:host([variant=sky]):host([tone=weak]){--mds-label-background:rgb(var(--label-sky-08,9 107 152));--mds-label-button-background:rgb(var(--label-sky-09,6 76 107));--mds-label-button-background-hover:rgb(var(--label-sky-08,9 107 152));--mds-label-button-icon-color:rgb(var(--label-sky-04,148 217 249));--mds-label-color:rgb(var(--label-sky-02,219 242 253));--mds-label-icon-color:rgb(var(--label-sky-02,219 242 253));--mds-label-selection-background:rgb(var(--label-sky-06,13 158 224));--mds-label-selection-color:rgb(var(--label-sky-10,5 63 90))}:host([variant=violet]){--mds-label-background:rgb(var(--label-violet-04,216 200 252));--mds-label-button-background:rgb(var(--label-violet-04,216 200 252));--mds-label-button-background-hover:rgb(var(--label-violet-05,198 175 251));--mds-label-button-icon-color:rgb(var(--label-violet-10,57 9 165));--mds-label-color:rgb(var(--label-violet-10,57 9 165));--mds-label-icon-color:rgb(var(--label-violet-10,57 9 165));--mds-label-selection-background:rgb(var(--label-violet-08,111 53 244));--mds-label-selection-color:rgb(var(--label-violet-02,241 235 254))}:host([variant=violet]):host([tone=weak]){--mds-label-background:rgb(var(--label-violet-08,111 53 244));--mds-label-button-background:rgb(var(--label-violet-09,67 11 195));--mds-label-button-background-hover:rgb(var(--label-violet-08,111 53 244));--mds-label-button-icon-color:rgb(var(--label-violet-04,216 200 252));--mds-label-color:rgb(var(--label-violet-02,241 235 254));--mds-label-icon-color:rgb(var(--label-violet-02,241 235 254));--mds-label-selection-background:rgb(var(--label-violet-06,166 129 248));--mds-label-selection-color:rgb(var(--label-violet-10,57 9 165))}:host([variant=purple]){--mds-label-background:rgb(var(--label-purple-04,225 196 252));--mds-label-button-background:rgb(var(--label-purple-04,225 196 252));--mds-label-button-background-hover:rgb(var(--label-purple-05,212 170 251));--mds-label-button-icon-color:rgb(var(--label-purple-10,78 7 146));--mds-label-color:rgb(var(--label-purple-10,78 7 146));--mds-label-icon-color:rgb(var(--label-purple-10,78 7 146));--mds-label-selection-background:rgb(var(--label-purple-08,133 17 244));--mds-label-selection-color:rgb(var(--label-purple-02,245 234 254))}:host([variant=purple]):host([tone=weak]){--mds-label-background:rgb(var(--label-purple-08,133 17 244));--mds-label-button-background:rgb(var(--label-purple-09,92 8 173));--mds-label-button-background-hover:rgb(var(--label-purple-08,133 17 244));--mds-label-button-icon-color:rgb(var(--label-purple-04,225 196 252));--mds-label-color:rgb(var(--label-purple-02,245 234 254));--mds-label-icon-color:rgb(var(--label-purple-02,245 234 254));--mds-label-selection-background:rgb(var(--label-purple-06,186 119 249));--mds-label-selection-color:rgb(var(--label-purple-10,78 7 146))}:host([variant=yellow]){--mds-label-background:rgb(var(--label-yellow-04,248 202 60));--mds-label-button-background:rgb(var(--label-yellow-04,248 202 60));--mds-label-button-background-hover:rgb(var(--label-yellow-05,234 179 8));--mds-label-button-icon-color:rgb(var(--label-yellow-10,75 57 3));--mds-label-color:rgb(var(--label-yellow-10,75 57 3));--mds-label-icon-color:rgb(var(--label-yellow-10,75 57 3));--mds-label-selection-background:rgb(var(--label-yellow-08,127 97 4));--mds-label-selection-color:rgb(var(--label-yellow-02,253 238 190))}:host([variant=yellow]):host([tone=weak]){--mds-label-background:rgb(var(--label-yellow-08,127 97 4));--mds-label-button-background:rgb(var(--label-yellow-09,89 68 3));--mds-label-button-background-hover:rgb(var(--label-yellow-08,127 97 4));--mds-label-button-icon-color:rgb(var(--label-yellow-04,248 202 60));--mds-label-color:rgb(var(--label-yellow-02,253 238 190));--mds-label-icon-color:rgb(var(--label-yellow-02,253 238 190));--mds-label-selection-background:rgb(var(--label-yellow-06,188 143 6));--mds-label-selection-color:rgb(var(--label-yellow-10,75 57 3))}:host([variant=error]){--mds-label-background:rgb(var(--status-error-04,254 193 189));--mds-label-button-background:rgb(var(--status-error-04,254 193 189));--mds-label-button-background-hover:rgb(var(--status-error-05,250 165 160));--mds-label-button-icon-color:rgb(var(--status-error-10,115 0 0));--mds-label-color:rgb(var(--status-error-10,115 0 0));--mds-label-icon-color:rgb(var(--status-error-10,115 0 0));--mds-label-selection-background:rgb(var(--status-error-08,182 50 54));--mds-label-selection-color:rgb(var(--status-error-02,255 234 231))}:host([variant=error]):host([tone=weak]){--mds-label-background:rgb(var(--status-error-08,182 50 54));--mds-label-button-background:rgb(var(--status-error-09,135 0 14));--mds-label-button-background-hover:rgb(var(--status-error-08,182 50 54));--mds-label-button-icon-color:rgb(var(--status-error-04,254 193 189));--mds-label-color:rgb(var(--status-error-02,255 234 231));--mds-label-icon-color:rgb(var(--status-error-02,255 234 231));--mds-label-selection-background:rgb(var(--status-error-06,239 108 105));--mds-label-selection-color:rgb(var(--status-error-10,115 0 0))}:host([variant=warning]){--mds-label-background:rgb(var(--status-warning-04,255 200 33));--mds-label-button-background:rgb(var(--status-warning-04,255 200 33));--mds-label-button-background-hover:rgb(var(--status-warning-05,237 177 0));--mds-label-button-icon-color:rgb(var(--status-warning-10,77 57 0));--mds-label-color:rgb(var(--status-warning-10,77 57 0));--mds-label-icon-color:rgb(var(--status-warning-10,77 57 0));--mds-label-selection-background:rgb(var(--status-warning-08,129 96 0));--mds-label-selection-color:rgb(var(--status-warning-02,255 237 185))}:host([variant=warning]):host([tone=weak]){--mds-label-background:rgb(var(--status-warning-08,129 96 0));--mds-label-button-background:rgb(var(--status-warning-09,90 67 0));--mds-label-button-background-hover:rgb(var(--status-warning-08,129 96 0));--mds-label-button-icon-color:rgb(var(--status-warning-04,255 200 33));--mds-label-color:rgb(var(--status-warning-02,255 237 185));--mds-label-icon-color:rgb(var(--status-warning-02,255 237 185));--mds-label-selection-background:rgb(var(--status-warning-06,190 142 0));--mds-label-selection-color:rgb(var(--status-warning-10,77 57 0))}:host([variant=success]){--mds-label-background:rgb(var(--status-success-04,158 222 181));--mds-label-button-background:rgb(var(--status-success-04,158 222 181));--mds-label-button-background-hover:rgb(var(--status-success-05,107 206 147));--mds-label-button-icon-color:rgb(var(--status-success-10,0 69 0));--mds-label-color:rgb(var(--status-success-10,0 69 0));--mds-label-icon-color:rgb(var(--status-success-10,0 69 0));--mds-label-selection-background:rgb(var(--status-success-08,0 116 46));--mds-label-selection-color:rgb(var(--status-success-02,222 244 228))}:host([variant=success]):host([tone=weak]){--mds-label-background:rgb(var(--status-success-08,0 116 46));--mds-label-button-background:rgb(var(--status-success-09,0 82 9));--mds-label-button-background-hover:rgb(var(--status-success-08,0 116 46));--mds-label-button-icon-color:rgb(var(--status-success-04,158 222 181));--mds-label-color:rgb(var(--status-success-02,222 244 228));--mds-label-icon-color:rgb(var(--status-success-02,222 244 228));--mds-label-selection-background:rgb(var(--status-success-06,0 171 97));--mds-label-selection-color:rgb(var(--status-success-10,0 69 0))}:host([variant=info]){--mds-label-background:rgb(var(--status-info-04,159 216 241));--mds-label-button-background:rgb(var(--status-info-04,159 216 241));--mds-label-button-background-hover:rgb(var(--status-info-05,112 198 234));--mds-label-button-icon-color:rgb(var(--status-info-10,0 61 103));--mds-label-color:rgb(var(--status-info-10,0 61 103));--mds-label-icon-color:rgb(var(--status-info-10,0 61 103));--mds-label-selection-background:rgb(var(--status-info-08,0 107 151));--mds-label-selection-color:rgb(var(--status-info-02,222 242 250))}:host([variant=info]):host([tone=weak]){--mds-label-background:rgb(var(--status-info-08,0 107 151));--mds-label-button-background:rgb(var(--status-info-09,0 73 116));--mds-label-button-background-hover:rgb(var(--status-info-08,0 107 151));--mds-label-button-icon-color:rgb(var(--status-info-04,159 216 241));--mds-label-color:rgb(var(--status-info-02,222 242 250));--mds-label-icon-color:rgb(var(--status-info-02,222 242 250));--mds-label-selection-background:rgb(var(--status-info-06,0 161 208));--mds-label-selection-color:rgb(var(--status-info-10,0 61 103))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)){-webkit-box-shadow:var(--shadow-outline) inset;box-shadow:var(--shadow-outline) inset}:host-context(:root.pref-contrast-more){-webkit-box-shadow:var(--shadow-outline-50) inset;box-shadow:var(--shadow-outline-50) inset}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))){-webkit-box-shadow:var(--shadow-outline) inset;box-shadow:var(--shadow-outline) inset}}@media (prefers-contrast:more){:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))){-webkit-box-shadow:var(--shadow-outline-50) inset;box-shadow:var(--shadow-outline-50) inset}}'};var MdsLabel=function(){function l(l){var a=this;registerInstance(this,l);this.deletedEvent=createEvent(this,"mdsLabelDelete");this.km=new KeyboardManager;this.t=new Locale({el:localeEl,en:localeEs,es:localeEs,it:localeIt});this.variant="sky";this.tone="weak";this.truncate="word";this.typography="caption";this.deletable=false;this.onClickDelete=function(l){l.stopPropagation();l.preventDefault();a.deletedEvent.emit()};this.handleKeyboard=function(){var l;if(a.deletable){var r=(l=a.host.shadowRoot)===null||l===void 0?void 0:l.querySelector(".close");a.km.addElement(r);a.km.attachClickBehavior();return}a.km.detachClickBehavior()}}l.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(l){this.language=this.t.lang(this.host);return[2]}))}))};l.prototype.componentDidLoad=function(){this.t.lang(this.host);this.handleKeyboard()};l.prototype.componentDidUpdate=function(){this.handleKeyboard()};l.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};l.prototype.render=function(){return h(Host,{key:"479ecf8ecb56445fe7ce90aaffb48a5287d7d2d8"},h("mds-text",{key:"fba92e724fd68f1fd41fc5143865eb6f0563d1d7",class:"text",truncate:this.truncate,typography:this.typography},this.label),this.deletable&&h("mds-button",{key:"dd39ea8a9f20c24663e962d1d103ee646c802880",class:"button-close",icon:miBaselineCancel,onClick:this.onClickDelete,title:this.t.get("remove"),size:"sm"}))};Object.defineProperty(l.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return l}();MdsLabel.style=mdsLabelCss();export{MdsLabel as mds_label};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-CAd5312P.js";var mggListDot='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10"/>\n</svg>\n';var mdsListItemCss=function(){return"@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-list-item-icon-margin:0 calc(var(--spacing,.0025rem)*200) 0 0}}}@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-list-item-icon-margin:0 calc(var(--spacing,.0025rem)*200) 0 0;align-items:flex-start;color:rgb(var(--tone-neutral-03,233 233 233));display:flex;justify-content:flex-start;width:100%}.icon{fill:currentColor;height:calc(var(--spacing,.0025rem)*600);margin:var(--mds-list-item-icon-margin,0 calc(var(--spacing,.0025rem)*200) 0 0);width:calc(var(--spacing,.0025rem)*600)}:host([typography=paragraph]){--mds-list-item-icon-margin:.25rem calc(var(--spacing,.0025rem)*200) 0 0}:host([typography=caption]){--mds-list-item-icon-margin:-.125rem calc(var(--spacing,.0025rem)*200) 0 0}:host([typography=label]),:host([typography=tip]){--mds-list-item-icon-margin:-.25rem calc(var(--spacing,.0025rem)*200) 0 0}:host([typography=option]){--mds-list-item-icon-margin:-.5rem calc(var(--spacing,.0025rem)*200) 0 0}:host-context(:root.pref-contrast-more){color:rgb(var(--tone-neutral-01,255 255 255))}@media (prefers-contrast:more){:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))){color:rgb(var(--tone-neutral-01,255 255 255))}}"};var MdsListItem=function(){function t(t){registerInstance(this,t);this.typography="detail";this.variant="info"}t.prototype.render=function(){var t;return h(Host,{key:"
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-CAd5312P.js";var mggListDot='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10"/>\n</svg>\n';var mdsListItemCss=function(){return"@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-list-item-icon-margin:0 calc(var(--spacing,.0025rem)*200) 0 0}}}@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-list-item-icon-margin:0 calc(var(--spacing,.0025rem)*200) 0 0;align-items:flex-start;color:rgb(var(--tone-neutral-03,233 233 233));display:flex;justify-content:flex-start;width:100%}.icon{fill:currentColor;height:calc(var(--spacing,.0025rem)*600);margin:var(--mds-list-item-icon-margin,0 calc(var(--spacing,.0025rem)*200) 0 0);width:calc(var(--spacing,.0025rem)*600)}:host([typography=paragraph]){--mds-list-item-icon-margin:.25rem calc(var(--spacing,.0025rem)*200) 0 0}:host([typography=caption]){--mds-list-item-icon-margin:-.125rem calc(var(--spacing,.0025rem)*200) 0 0}:host([typography=label]),:host([typography=tip]){--mds-list-item-icon-margin:-.25rem calc(var(--spacing,.0025rem)*200) 0 0}:host([typography=option]){--mds-list-item-icon-margin:-.5rem calc(var(--spacing,.0025rem)*200) 0 0}:host-context(:root.pref-contrast-more){color:rgb(var(--tone-neutral-01,255 255 255))}@media (prefers-contrast:more){:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))){color:rgb(var(--tone-neutral-01,255 255 255))}}"};var MdsListItem=function(){function t(t){registerInstance(this,t);this.typography="detail";this.variant="info"}t.prototype.render=function(){var t;return h(Host,{key:"07618503a5c3257ae34fdceb7273bcd8fa2ecb14",role:"listitem"},h("mds-icon",{key:"9f22170dcdb6432905df8bbd6d448cb247a394fd","aria-hidden":"true",class:"icon",name:(t=this.icon)!==null&&t!==void 0?t:mggListDot,part:"icon"}),h("mds-text",{key:"c9984a427031b24c5f0f4af33b07a836b2d81289",tag:"span",typography:this.typography,variant:this.variant,part:"text"},h("slot",{key:"3e16aba7cb14207c26a6b6b61ea895bc33cbc3de"})))};return t}();MdsListItem.style=mdsListItemCss();export{MdsListItem as mds_list_item};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-CAd5312P.js";var mdsListCss=function(){return"@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-list-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{display:grid;gap:calc(var(--spacing,.0025rem)*400);padding-left:calc(var(--spacing,.0025rem)*400)}ul{margin:calc(var(--spacing,.0025rem)*0);padding:calc(var(--spacing,.0025rem)*0)}"};var MdsList=function(){function s(s){registerInstance(this,s)}s.prototype.render=function(){return h(Host,{key:"
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-CAd5312P.js";var mdsListCss=function(){return"@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-list-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{display:grid;gap:calc(var(--spacing,.0025rem)*400);padding-left:calc(var(--spacing,.0025rem)*400)}ul{margin:calc(var(--spacing,.0025rem)*0);padding:calc(var(--spacing,.0025rem)*0)}"};var MdsList=function(){function s(s){registerInstance(this,s)}s.prototype.render=function(){return h(Host,{key:"61a4dc9195da0950bbf27a0403e37cfda7ba20ba",role:"list"},h("slot",{key:"f698fed656a47046f0b04bb9ce2f4f53a7c76033"}))};return s}();MdsList.style=mdsListCss();export{MdsList as mds_list};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-CAd5312P.js";import{m as miBaselineCancel}from"./cancel-BJ8rpzfj.js";var miBaselineAlternateEmail='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10h5v-2h-5c-4.34 0-8-3.66-8-8s3.66-8 8-8s8 3.66 8 8v1.43c0 .79-.71 1.57-1.5 1.57s-1.5-.78-1.5-1.57V12c0-2.76-2.24-5-5-5s-5 2.24-5 5s2.24 5 5 5c1.38 0 2.64-.56 3.54-1.47c.65.89 1.77 1.47 2.96 1.47c1.97 0 3.5-1.6 3.5-3.57V12c0-5.52-4.48-10-10-10zm0 13c-1.66 0-3-1.34-3-3s1.34-3 3-3s3 1.34 3 3s-1.34 3-3 3z"/></svg>';var mdsMentionCss=function(){return"@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-mention-icon-size:calc(var(--spacing,.0025rem)*600)}}}@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(--tone-neutral-09,76 76 76));border-radius:100px;color:rgb(var(--tone-neutral-03,233 233 233));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([size=sm]){--mds-mention-icon-size:calc(var(--spacing,.0025rem)*400)}:host([size=sm]) .badge{padding-left:calc(var(--spacing,.0025rem)*50);padding-right:calc(var(--spacing,.0025rem)*150)}:host([size=md]){--mds-mention-icon-size:calc(var(--spacing,.0025rem)*600)}:host([size=md]) .badge{padding-right:calc(var(--spacing,.0025rem)*200)}.action-remove{corner-shape:round;border-radius:100px;min-height:0;min-width:0;padding:0}"};var MdsMention=function(){function e(e){registerInstance(this,e);this.size="sm";this.sizeTypography={sm:"caption",md:"detail",lg:"h6"}}e.prototype.render=function(){var e;return h(Host,{key:"
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-CAd5312P.js";import{m as miBaselineCancel}from"./cancel-BJ8rpzfj.js";var miBaselineAlternateEmail='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10h5v-2h-5c-4.34 0-8-3.66-8-8s3.66-8 8-8s8 3.66 8 8v1.43c0 .79-.71 1.57-1.5 1.57s-1.5-.78-1.5-1.57V12c0-2.76-2.24-5-5-5s-5 2.24-5 5s2.24 5 5 5c1.38 0 2.64-.56 3.54-1.47c.65.89 1.77 1.47 2.96 1.47c1.97 0 3.5-1.6 3.5-3.57V12c0-5.52-4.48-10-10-10zm0 13c-1.66 0-3-1.34-3-3s1.34-3 3-3s3 1.34 3 3s-1.34 3-3 3z"/></svg>';var mdsMentionCss=function(){return"@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-mention-icon-size:calc(var(--spacing,.0025rem)*600)}}}@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(--tone-neutral-09,76 76 76));border-radius:100px;color:rgb(var(--tone-neutral-03,233 233 233));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([size=sm]){--mds-mention-icon-size:calc(var(--spacing,.0025rem)*400)}:host([size=sm]) .badge{padding-left:calc(var(--spacing,.0025rem)*50);padding-right:calc(var(--spacing,.0025rem)*150)}:host([size=md]){--mds-mention-icon-size:calc(var(--spacing,.0025rem)*600)}:host([size=md]) .badge{padding-right:calc(var(--spacing,.0025rem)*200)}.action-remove{corner-shape:round;border-radius:100px;min-height:0;min-width:0;padding:0}"};var MdsMention=function(){function e(e){registerInstance(this,e);this.size="sm";this.sizeTypography={sm:"caption",md:"detail",lg:"h6"}}e.prototype.render=function(){var e;return h(Host,{key:"47999ac9e8ee8efc5ca6a680a83681dd4f2d4010"},h("mds-icon",{key:"c8a9fceeef02c8501f9d65c90b4be304dad57318",name:this.icon!==undefined&&this.icon!==""?this.icon:miBaselineAlternateEmail}),h("mds-text",{key:"1cb65d52dc8ebd0582197a7dd9a7259c9dfdf41a",typography:this.sizeTypography[(e=this.size)!==null&&e!==void 0?e:"md"]},this.size==="lg"?this.label:h("b",null,this.label)),h("mds-button",{key:"35c8ec7025eb109f514a3d6d99a4716a86968081",class:"action-remove",title:"Remove",variant:"dark",tone:"text",size:"sm",icon:miBaselineCancel}))};return e}();MdsMention.style=mdsMentionCss();export{MdsMention as mds_mention};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,o,i,n){function e(t){return t instanceof i?t:new i((function(o){o(t)}))}return new(i||(i=Promise))((function(i,a){function s(t){try{d(n.next(t))}catch(t){a(t)}}function r(t){try{d(n["throw"](t))}catch(t){a(t)}}function d(t){t.done?i(t.value):e(t.value).then(s,r)}d((n=n.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,e,a,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=r(0),s["throw"]=r(1),s["return"]=r(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function r(t){return function(o){return d([t,o])}}function d(r){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,r[0]&&(i=0)),i)try{if(n=1,e&&(a=r[0]&2?e["return"]:r[0]?e["throw"]||((a=e["return"])&&a.call(e),0):e.next)&&!(a=a.call(e,r[1])).done)return a;if(e=0,a)r=[r[0]&2,a.value];switch(r[0]){case 0:case 1:a=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;e=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]<a[3])){i.label=r[1];break}if(r[0]===6&&i.label<a[1]){i.label=a[1];a=r;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(r);break}if(a[2])i.ops.pop();i.trys.pop();continue}r=o.call(t,i)}catch(t){r=[6,t];e=0}finally{n=a=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{c as cssDurationToMilliseconds}from"./unit-D8eZRaSQ.js";import{m as miBaselineClose}from"./close-J-ikDhyq.js";var mdsModalCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-modal-custom-closed-transform:rotateX(10deg) rotateY(0) scale(1.25) translateY(10%);--mds-modal-custom-window-distance:calc(var(--spacing,.0025rem)*600);--mds-modal-overlay-color:var(--magma-overlay-color,0 0 0);--mds-modal-overlay-opacity:var(--magma-overlay-opacity,.5);--mds-modal-transition-duration:.5s;--mds-modal-window-background:rgb(var(--tone-neutral,0 0 0));--mds-modal-window-distance:0;--mds-modal-window-max-width:33%;--mds-modal-window-min-width:400px;--mds-modal-window-overflow:auto;--mds-modal-window-radius:0;--mds-modal-z-index:var(--magma-modal-z-index);--tw-ease:initial}}}@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}@property --mds-modal-custom-closed-transform{syntax:"<transform-function>+";inherits:false;initial-value:rotateX(10deg) rotateY(0) scale(1.25) translateY(10%)}@property --mds-modal-transition-duration{syntax:"<time>";inherits:false;initial-value:.5s}@property --mds-modal-window-distance{syntax:"<length>";inherits:false;initial-value:0}@property --mds-modal-window-max-width{syntax:"<length>|<percentage>";inherits:false;initial-value:33%}@property --mds-modal-window-min-width{syntax:"<length>";inherits:false;initial-value:400px}@property --mds-modal-window-overflow{syntax:"auto|clip|hidden|scroll|visible";inherits:false;initial-value:auto}@property --mds-modal-window-radius{syntax:"<length>";inherits:false;initial-value:0}:host{--mds-modal-custom-closed-transform:rotateX(10deg) rotateY(0) scale(1.25) translateY(10%);--mds-modal-custom-window-distance:calc(var(--spacing,.0025rem)*600);--mds-modal-overlay-color:var(--magma-overlay-color,0 0 0);--mds-modal-overlay-opacity:var(--magma-overlay-opacity,.5);--mds-modal-transition-duration:.5s;--mds-modal-transition-timing-funciton:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));--mds-modal-window-background:rgb(var(--tone-neutral,0 0 0));--mds-modal-window-distance:0;--mds-modal-window-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-overflow:auto;--mds-modal-window-radius:0;--mds-modal-window-shadow:var(--shadow-2xl,0 25px 50px -12px #00000040);--mds-modal-window-max-width:33%;--mds-modal-window-min-width:400px;--mds-modal-z-index:var(--magma-modal-z-index);--private-modal-width:calc(100vw - var(--private-modal-window-close-margin));--private-modal-custom-opened-transform:translate(0);--private-modal-transition-window-transform:translate(0);--private-modal-window-close-margin:calc(var(--spacing,.0025rem)*2000);--tw-ease:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));align-items:center;background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,0 0 0))/0);display:flex;fill:rgb(var(--tone-neutral,0 0 0));inset:0;justify-content:center;perspective:600px;pointer-events:none;position:fixed;-webkit-transition-duration:var(--mds-modal-transition-duration,.5s);transition-duration:var(--mds-modal-transition-duration,.5s);transition-property:background-color;transition-timing-function:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));-webkit-transition-timing-function:var(--mds-modal-transition-timing-funciton);transition-timing-function:var(--mds-modal-transition-timing-funciton);z-index:var(--mds-modal-z-index,1000)}.action-close{--mds-button-color:rgb(var(--tone-neutral-10,60 60 60));opacity:0;pointer-events:none;position:absolute;-webkit-transition-duration:var(--mds-modal-transition-duration,.5s);transition-duration:var(--mds-modal-transition-duration,.5s);transition-property:background-color,bottom,color,fill,opacity,top,transform;-webkit-transition-timing-function:var(--mds-modal-transition-timing-function);transition-timing-function:var(--mds-modal-transition-timing-function)}.action-close::part(icon){height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}:host([position=top-left][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=top][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(0) scale(.5) translateY(-80%)}:host([position=top-right][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([position=left][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) rotate(0) scale(.5) translate(-100%)}:host([position=center][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) scale(.5) translateY(40%)}:host([position=right][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(0) rotateY(-22deg) rotate(0) scale(.5) translate(100%)}:host([position=bottom-left][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=bottom][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(22deg) rotateY(0) scale(.5) translateY(80%)}:host([position=bottom-right][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([animation=custom]:not([opened])){--private-modal-transition-window-transform:var(--mds-modal-custom-closed-transform,rotateX(10deg) rotateY(0) scale(1.25) translate(0,10%))}:host([animation=custom][opened]){--private-modal-transition-window-transform:var(--private-modal-custom-opened-transform)}:host([position=top-left][animation=slide]:not([opened])){--private-modal-transition-window-transform:translate(-50%,-100%)}:host([position=top][animation=slide]:not([opened])){--private-modal-transition-window-transform:translateY(-100%)}:host([position=top-right][animation=slide]:not([opened])){--private-modal-transition-window-transform:translate(50%,-100%)}:host([position=left][animation=slide]:not([opened])){--private-modal-transition-window-transform:translate(-100%)}:host([position=center][animation=slide]:not([opened])){--private-modal-transition-window-transform:translateY(25%)}:host([position=right][animation=slide]:not([opened])){--private-modal-transition-window-transform:translate(100%)}:host([position=bottom-left][animation=slide]:not([opened])){--private-modal-transition-window-transform:translate(-50%,100%)}:host([position=bottom][animation=slide]:not([opened])){--private-modal-transition-window-transform:translateY(50%)}:host([position=bottom-right][animation=slide]:not([opened])){--private-modal-transition-window-transform:translate(50%,100%)}:host([opened][backdrop]){--private-modal-transition-window-transform:none;background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,0 0 0))/var(--mds-modal-overlay-opacity,var(--magma-overlay-opacity,.5)));pointer-events:auto}:host ::slotted([slot=window]){margin:var(--mds-modal-custom-window-distance,calc(var(--spacing,.0025rem)*600))}.window{background-color:var(--mds-modal-window-background,rgb(var(--tone-neutral,0 0 0)));border-radius:var(--mds-modal-window-radius,0);-webkit-box-shadow:var(--mds-modal-window-shadow);box-shadow:var(--mds-modal-window-shadow);box-sizing:border-box;display:grid;gap:calc(var(--spacing,.0025rem)*0);grid-template-columns:repeat(1,minmax(0,100%));height:var(--mds-modal-window-height);margin:var(--mds-modal-window-distance,0);max-height:var(--mds-modal-window-max-height);max-width:var(--private-modal-width);min-width:var(--mds-modal-window-min-width,400px);overflow:var(--mds-modal-window-overflow,auto);position:relative;width:100%}.window-content--empty{display:none}.window-content-wrapper{max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);overflow:auto}.window-footer,.window-header{box-sizing:border-box;position:absolute}.window-header{inset:0 0 auto}.window-footer{inset:auto 0 0}:host .window,:host>::slotted([slot=window]){opacity:0;-webkit-transform:var(--private-modal-transition-window-transform);transform:var(--private-modal-transition-window-transform);-webkit-transition-duration:var(--mds-modal-transition-duration,.5s);transition-duration:var(--mds-modal-transition-duration,.5s);transition-property:transform,opacity;-webkit-transition-timing-function:var(--mds-modal-transition-timing-funciton);transition-timing-function:var(--mds-modal-transition-timing-funciton)}:host([opened]) .window,:host([opened])>::slotted([slot=window]){opacity:1;pointer-events:auto;-webkit-transition-timing-function:var(--mds-modal-transition-timing-funciton);transition-timing-function:var(--mds-modal-transition-timing-funciton)}:host([position=top]){--mds-modal-window-height:auto;align-items:flex-start;justify-content:center}:host([position=top]) .window{--mds-modal-window-max-width:100vw;--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--mds-modal-window-height:100%;--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2)}:host([position=top-left]){align-items:flex-start;justify-content:flex-start}:host([position=top-right]){align-items:flex-start;justify-content:flex-end}:host([position=left]){align-items:center;justify-content:flex-start}:host([position=left]) .action-close{right:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=left][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=left]:not([opened])) .action-close{transform:translate(-120%)rotate(-45deg)}:host([position=center]){align-items:center;justify-content:center}:host([position=right]){align-items:center;justify-content:flex-end}:host([position=right]) .action-close{left:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=right]:not([opened])) .action-close{transform:translate(120%)rotate(45deg)}:host([position=right][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=bottom-left]){align-items:flex-end;justify-content:flex-start}:host([position=bottom]){--mds-modal-window-height:auto;align-items:flex-end;justify-content:center}:host([position=bottom-right]){align-items:flex-end;justify-content:flex-end}:host-context(:root.pref-animation-reduce){--mds-modal-transition-duration:0s;transition-duration:0s!important}:is(:host-context(:root.pref-animation-reduce) .action-close,:host-context(:root.pref-animation-reduce) .window){transition-duration:0s!important}:host-context(:root.pref-contrast-more){--mds-modal-window-shadow:var(--shadow-outline-strong-50),var(--shadow-2xl,0 25px 50px -12px #00000040)}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)){--mds-modal-window-background:rgb(var(--tone-neutral-10,60 60 60));--mds-modal-window-shadow:var(--shadow-outline),var(--shadow-xl,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a)}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)) .action-close{--mds-button-color:rgb(var(--tone-neutral-01,255 255 255))}@property --tw-ease{syntax:"*";inherits:false}@media (max-width:480px){:host{--mds-modal-window-min-width:0px}:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--private-modal-width:100vw}:host([position=left]),:host([position=right]){--private-modal-width:calc(100% - var(--private-modal-window-close-margin))}}@media not all and (max-width:480px){:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--private-modal-width:var(--mds-modal-window-max-width,33%)}}@media (prefers-reduced-motion){:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))){--mds-modal-transition-duration:0s;transition-duration:0s!important}:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .action-close,:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .window{transition-duration:0s!important}}@media (prefers-contrast:more){:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))){--mds-modal-window-shadow:var(--shadow-outline-strong-50),var(--shadow-2xl,0 25px 50px -12px #00000040)}}@media (prefers-color-scheme:dark){:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))){--mds-modal-window-background:rgb(var(--tone-neutral-10,60 60 60));--mds-modal-window-shadow:var(--shadow-outline),var(--shadow-xl,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a)}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))) .action-close{--mds-button-color:rgb(var(--tone-neutral-01,255 255 255))}}'};var MdsModal=function(){function t(t){var o=this;registerInstance(this,t);this.openEvent=createEvent(this,"mdsModalOpen");this.showEvent=createEvent(this,"mdsModalShow");this.closeEvent=createEvent(this,"mdsModalClose");this.hideEvent=createEvent(this,"mdsModalHide");this.window=false;this.top=false;this.bottom=false;this.cssTransitionDuration="500";this.touchMargin=50;this.opened=false;this.backdrop=true;this.position="center";this.animating="none";this.animation="slide";this.overflow="auto";this.interaction="relaxed";this.updateCSSCustomProps=function(){var t;if(typeof window==="undefined")return;var i=window.getComputedStyle(o.host);o.cssTransitionDuration=(t=i.getPropertyValue("--mds-modal-transition-duration"))!==null&&t!==void 0?t:"500"};this.stopIntroAnimationWindow=function(){o.animating="none";o.host.setAttribute("animating","none");o.showEvent.emit();clearTimeout(o.animationDelayTimeout)};this.stopOutroAnimationWindow=function(){o.animating="none";o.host.setAttribute("animating","none");o.hideEvent.emit();clearTimeout(o.animationDelayTimeout)};this.disableOverflow=function(){if(document){if(document.body.style.overflow){o.bodyOverflow=document.body.style.overflow}document.body.style.overflow="hidden"}};this.enableOverflow=function(){if(document){if(o.bodyOverflow){document.body.style.overflow=o.bodyOverflow}else{document.body.style.removeProperty("overflow")}}};this.animateOpenWindow=function(){o.animating="intro";clearTimeout(o.animationDelayTimeout);o.animationDelayTimeout=setTimeout(o.stopIntroAnimationWindow.bind(o),cssDurationToMilliseconds(o.cssTransitionDuration))};this.animateCloseWindow=function(){o.animating="outro";clearTimeout(o.animationDelayTimeout);o.animationDelayTimeout=setTimeout(o.stopOutroAnimationWindow.bind(o),cssDurationToMilliseconds(o.cssTransitionDuration))};this.setTouchStart=function(t){o.touchStartX=t.touches[0].clientX;o.touchStartY=t.touches[0].clientY};this.setTouchEnd=function(t){var i=t.changedTouches[0].clientX;var n=t.changedTouches[0].clientY;var e=o.touchStartX-i;var a=o.touchStartY-n;if(Math.abs(e)>Math.abs(a)){if(o.position==="right"&&e>0)return;if(o.position==="left"&&e<0)return;if(Math.abs(e)>Math.abs(o.touchMargin)){o.opened=undefined}}};this.addMobileEvents=function(){o.windowElement.addEventListener("touchstart",o.setTouchStart);o.windowElement.addEventListener("touchend",o.setTouchEnd)};this.closeModal=function(t,i){var n;if(!i){if(o.interaction==="strict")return;if(((n=t.target)===null||n===void 0?void 0:n.localName)!=="mds-modal"){return}}o.opened=t.target!==t.currentTarget;if(!o.opened){o.closeEvent.emit()}}}t.prototype.componentWillLoad=function(){var t;this.bottom=this.host.querySelector(':scope > [slot="bottom"]')!==null;this.top=this.host.querySelector(':scope > [slot="top"]')!==null;this.window=this.host.querySelector(':scope > [slot="window"]')!==null;if(this.overflow==="auto"&&this.opened){this.disableOverflow()}if(this.window){(t=this.host.querySelector(':scope > [slot="window"]'))===null||t===void 0?void 0:t.setAttribute("role","dialog")}};t.prototype.componentWillRender=function(){this.animating=this.opened?"intro":"outro"};t.prototype.componentDidLoad=function(){var t,o,i;this.windowElement=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".window");this.windowHeaderElement=(o=this.host.shadowRoot)===null||o===void 0?void 0:o.querySelector(".window-header");this.windowFooterElement=(i=this.host.shadowRoot)===null||i===void 0?void 0:i.querySelector(".window-footer");if(this.windowHeaderElement){this.windowHeaderHeight=this.windowHeaderElement.offsetHeight}if(this.windowFooterElement){this.windowFooterHeight=this.windowFooterElement.offsetHeight}if(this.windowElement){this.addMobileEvents()}this.updateCSSCustomProps()};t.prototype.disconnectedCallback=function(){this.enableOverflow();if(this.windowElement){this.windowElement.removeEventListener("touchstart",this.setTouchStart);this.windowElement.removeEventListener("touchend",this.setTouchEnd)}this.enableOverflow()};t.prototype.handleOpenProp=function(t){if(t){if(this.overflow==="auto"){this.disableOverflow()}this.animateOpenWindow();this.openEvent.emit();return}this.opened=undefined;if(this.overflow==="auto"){this.enableOverflow()}this.animateCloseWindow()};t.prototype.handleBackdropProp=function(t){if(t===false){this.backdrop=undefined}};t.prototype.close=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.opened=undefined;return[2]}))}))};t.prototype.render=function(){var t=this;return h(Host,{key:"ecade8e38b83c0576b5e073cf2ec243ba7eeb30f","aria-modal":clsx(this.opened?"true":"false"),onMouseDown:function(o){t.closeModal(o)}},this.window?h("slot",{name:"window"}):h("div",{class:"window",part:"window"},h("div",{class:clsx("window-header",this.top?"":"window-content--empty")},h("slot",{name:"top"})),h("div",{class:"window-content-wrapper"},h("div",{class:"window-content",style:{paddingTop:"".concat(this.windowHeaderHeight,"px"),paddingBottom:"".concat(this.windowFooterHeight,"px")}},h("slot",null))),h("div",{class:clsx("window-footer",this.bottom?"":"window-content--empty")},h("slot",{name:"bottom"}))),!this.window&&h("mds-button",{key:"6181aec117b9b237f9749926644c7bf591367e20",class:"action-close",icon:miBaselineClose,variant:"light",tone:"text",size:"xl",onClick:function(o){t.closeModal(o,true)},part:"action-close"}))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{opened:[{handleOpenProp:0}],backdrop:[{handleBackdropProp:0}]}},enumerable:false,configurable:true});return t}();MdsModal.style=mdsModalCss();export{MdsModal as mds_modal};
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,o,i,n){function e(t){return t instanceof i?t:new i((function(o){o(t)}))}return new(i||(i=Promise))((function(i,a){function s(t){try{d(n.next(t))}catch(t){a(t)}}function r(t){try{d(n["throw"](t))}catch(t){a(t)}}function d(t){t.done?i(t.value):e(t.value).then(s,r)}d((n=n.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,e,a,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=r(0),s["throw"]=r(1),s["return"]=r(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function r(t){return function(o){return d([t,o])}}function d(r){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,r[0]&&(i=0)),i)try{if(n=1,e&&(a=r[0]&2?e["return"]:r[0]?e["throw"]||((a=e["return"])&&a.call(e),0):e.next)&&!(a=a.call(e,r[1])).done)return a;if(e=0,a)r=[r[0]&2,a.value];switch(r[0]){case 0:case 1:a=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;e=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]<a[3])){i.label=r[1];break}if(r[0]===6&&i.label<a[1]){i.label=a[1];a=r;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(r);break}if(a[2])i.ops.pop();i.trys.pop();continue}r=o.call(t,i)}catch(t){r=[6,t];e=0}finally{n=a=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{c as cssDurationToMilliseconds}from"./unit-D8eZRaSQ.js";import{m as miBaselineClose}from"./close-J-ikDhyq.js";var mdsModalCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-modal-custom-closed-transform:rotateX(10deg) rotateY(0) scale(1.25) translateY(10%);--mds-modal-custom-window-distance:calc(var(--spacing,.0025rem)*600);--mds-modal-overlay-color:var(--magma-overlay-color,0 0 0);--mds-modal-overlay-opacity:var(--magma-overlay-opacity,.5);--mds-modal-transition-duration:.5s;--mds-modal-window-background:rgb(var(--tone-neutral,0 0 0));--mds-modal-window-distance:0;--mds-modal-window-max-width:33%;--mds-modal-window-min-width:400px;--mds-modal-window-overflow:auto;--mds-modal-window-radius:0;--mds-modal-z-index:var(--magma-modal-z-index);--tw-ease:initial}}}@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}@property --mds-modal-custom-closed-transform{syntax:"<transform-function>+";inherits:false;initial-value:rotateX(10deg) rotateY(0) scale(1.25) translateY(10%)}@property --mds-modal-transition-duration{syntax:"<time>";inherits:false;initial-value:.5s}@property --mds-modal-window-distance{syntax:"<length>";inherits:false;initial-value:0}@property --mds-modal-window-max-width{syntax:"<length>|<percentage>";inherits:false;initial-value:33%}@property --mds-modal-window-min-width{syntax:"<length>";inherits:false;initial-value:400px}@property --mds-modal-window-overflow{syntax:"auto|clip|hidden|scroll|visible";inherits:false;initial-value:auto}@property --mds-modal-window-radius{syntax:"<length>";inherits:false;initial-value:0}:host{--mds-modal-custom-closed-transform:rotateX(10deg) rotateY(0) scale(1.25) translateY(10%);--mds-modal-custom-window-distance:calc(var(--spacing,.0025rem)*600);--mds-modal-overlay-color:var(--magma-overlay-color,0 0 0);--mds-modal-overlay-opacity:var(--magma-overlay-opacity,.5);--mds-modal-transition-duration:.5s;--mds-modal-transition-timing-funciton:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));--mds-modal-window-background:rgb(var(--tone-neutral,0 0 0));--mds-modal-window-distance:0;--mds-modal-window-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-overflow:auto;--mds-modal-window-radius:0;--mds-modal-window-shadow:var(--shadow-2xl,0 25px 50px -12px #00000040);--mds-modal-window-max-width:33%;--mds-modal-window-min-width:400px;--mds-modal-z-index:var(--magma-modal-z-index);--private-modal-width:calc(100vw - var(--private-modal-window-close-margin));--private-modal-custom-opened-transform:translate(0);--private-modal-transition-window-transform:translate(0);--private-modal-window-close-margin:calc(var(--spacing,.0025rem)*2000);--tw-ease:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));align-items:center;background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,0 0 0))/0);display:flex;fill:rgb(var(--tone-neutral,0 0 0));inset:0;justify-content:center;perspective:600px;pointer-events:none;position:fixed;-webkit-transition-duration:var(--mds-modal-transition-duration,.5s);transition-duration:var(--mds-modal-transition-duration,.5s);transition-property:background-color;transition-timing-function:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));-webkit-transition-timing-function:var(--mds-modal-transition-timing-funciton);transition-timing-function:var(--mds-modal-transition-timing-funciton);z-index:var(--mds-modal-z-index,1000)}.action-close{--mds-button-color:rgb(var(--tone-neutral-10,60 60 60));opacity:0;pointer-events:none;position:absolute;-webkit-transition-duration:var(--mds-modal-transition-duration,.5s);transition-duration:var(--mds-modal-transition-duration,.5s);transition-property:background-color,bottom,color,fill,opacity,top,transform;-webkit-transition-timing-function:var(--mds-modal-transition-timing-function);transition-timing-function:var(--mds-modal-transition-timing-function)}.action-close::part(icon){height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}:host([position=top-left][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=top][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(0) scale(.5) translateY(-80%)}:host([position=top-right][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([position=left][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) rotate(0) scale(.5) translate(-100%)}:host([position=center][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) scale(.5) translateY(40%)}:host([position=right][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(0) rotateY(-22deg) rotate(0) scale(.5) translate(100%)}:host([position=bottom-left][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=bottom][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(22deg) rotateY(0) scale(.5) translateY(80%)}:host([position=bottom-right][animation="3d"]:not([opened])){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([animation=custom]:not([opened])){--private-modal-transition-window-transform:var(--mds-modal-custom-closed-transform,rotateX(10deg) rotateY(0) scale(1.25) translate(0,10%))}:host([animation=custom][opened]){--private-modal-transition-window-transform:var(--private-modal-custom-opened-transform)}:host([position=top-left][animation=slide]:not([opened])){--private-modal-transition-window-transform:translate(-50%,-100%)}:host([position=top][animation=slide]:not([opened])){--private-modal-transition-window-transform:translateY(-100%)}:host([position=top-right][animation=slide]:not([opened])){--private-modal-transition-window-transform:translate(50%,-100%)}:host([position=left][animation=slide]:not([opened])){--private-modal-transition-window-transform:translate(-100%)}:host([position=center][animation=slide]:not([opened])){--private-modal-transition-window-transform:translateY(25%)}:host([position=right][animation=slide]:not([opened])){--private-modal-transition-window-transform:translate(100%)}:host([position=bottom-left][animation=slide]:not([opened])){--private-modal-transition-window-transform:translate(-50%,100%)}:host([position=bottom][animation=slide]:not([opened])){--private-modal-transition-window-transform:translateY(50%)}:host([position=bottom-right][animation=slide]:not([opened])){--private-modal-transition-window-transform:translate(50%,100%)}:host([opened][backdrop]){--private-modal-transition-window-transform:none;background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,0 0 0))/var(--mds-modal-overlay-opacity,var(--magma-overlay-opacity,.5)));pointer-events:auto}:host ::slotted([slot=window]){margin:var(--mds-modal-custom-window-distance,calc(var(--spacing,.0025rem)*600))}.window{background-color:var(--mds-modal-window-background,rgb(var(--tone-neutral,0 0 0)));border-radius:var(--mds-modal-window-radius,0);-webkit-box-shadow:var(--mds-modal-window-shadow);box-shadow:var(--mds-modal-window-shadow);box-sizing:border-box;display:grid;gap:calc(var(--spacing,.0025rem)*0);grid-template-columns:repeat(1,minmax(0,100%));height:var(--mds-modal-window-height);margin:var(--mds-modal-window-distance,0);max-height:var(--mds-modal-window-max-height);max-width:var(--private-modal-width);min-width:var(--mds-modal-window-min-width,400px);overflow:var(--mds-modal-window-overflow,auto);position:relative;width:100%}.window-content--empty{display:none}.window-content-wrapper{max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);overflow:auto}.window-footer,.window-header{box-sizing:border-box;position:absolute}.window-header{inset:0 0 auto}.window-footer{inset:auto 0 0}:host .window,:host>::slotted([slot=window]){opacity:0;-webkit-transform:var(--private-modal-transition-window-transform);transform:var(--private-modal-transition-window-transform);-webkit-transition-duration:var(--mds-modal-transition-duration,.5s);transition-duration:var(--mds-modal-transition-duration,.5s);transition-property:transform,opacity;-webkit-transition-timing-function:var(--mds-modal-transition-timing-funciton);transition-timing-function:var(--mds-modal-transition-timing-funciton)}:host([opened]) .window,:host([opened])>::slotted([slot=window]){opacity:1;pointer-events:auto;-webkit-transition-timing-function:var(--mds-modal-transition-timing-funciton);transition-timing-function:var(--mds-modal-transition-timing-funciton)}:host([position=top]){--mds-modal-window-height:auto;align-items:flex-start;justify-content:center}:host([position=top]) .window{--mds-modal-window-max-width:100vw;--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--mds-modal-window-height:100%;--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2)}:host([position=top-left]){align-items:flex-start;justify-content:flex-start}:host([position=top-right]){align-items:flex-start;justify-content:flex-end}:host([position=left]){align-items:center;justify-content:flex-start}:host([position=left]) .action-close{right:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=left][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=left]:not([opened])) .action-close{transform:translate(-120%)rotate(-45deg)}:host([position=center]){align-items:center;justify-content:center}:host([position=right]){align-items:center;justify-content:flex-end}:host([position=right]) .action-close{left:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=right]:not([opened])) .action-close{transform:translate(120%)rotate(45deg)}:host([position=right][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=bottom-left]){align-items:flex-end;justify-content:flex-start}:host([position=bottom]){--mds-modal-window-height:auto;align-items:flex-end;justify-content:center}:host([position=bottom-right]){align-items:flex-end;justify-content:flex-end}:host-context(:root.pref-animation-reduce){--mds-modal-transition-duration:0s;transition-duration:0s!important}:is(:host-context(:root.pref-animation-reduce) .action-close,:host-context(:root.pref-animation-reduce) .window){transition-duration:0s!important}:host-context(:root.pref-contrast-more){--mds-modal-window-shadow:var(--shadow-outline-strong-50),var(--shadow-2xl,0 25px 50px -12px #00000040)}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)){--mds-modal-window-background:rgb(var(--tone-neutral-10,60 60 60));--mds-modal-window-shadow:var(--shadow-outline),var(--shadow-xl,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a)}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)) .action-close{--mds-button-color:rgb(var(--tone-neutral-01,255 255 255))}@property --tw-ease{syntax:"*";inherits:false}@media (max-width:480px){:host{--mds-modal-window-min-width:0px}:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--private-modal-width:100vw}:host([position=left]),:host([position=right]){--private-modal-width:calc(100% - var(--private-modal-window-close-margin))}}@media not all and (max-width:480px){:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--private-modal-width:var(--mds-modal-window-max-width,33%)}}@media (prefers-reduced-motion){:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))){--mds-modal-transition-duration:0s;transition-duration:0s!important}:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .action-close,:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .window{transition-duration:0s!important}}@media (prefers-contrast:more){:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))){--mds-modal-window-shadow:var(--shadow-outline-strong-50),var(--shadow-2xl,0 25px 50px -12px #00000040)}}@media (prefers-color-scheme:dark){:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))){--mds-modal-window-background:rgb(var(--tone-neutral-10,60 60 60));--mds-modal-window-shadow:var(--shadow-outline),var(--shadow-xl,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a)}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))) .action-close{--mds-button-color:rgb(var(--tone-neutral-01,255 255 255))}}'};var MdsModal=function(){function t(t){var o=this;registerInstance(this,t);this.openEvent=createEvent(this,"mdsModalOpen");this.showEvent=createEvent(this,"mdsModalShow");this.closeEvent=createEvent(this,"mdsModalClose");this.hideEvent=createEvent(this,"mdsModalHide");this.window=false;this.top=false;this.bottom=false;this.cssTransitionDuration="500";this.touchMargin=50;this.opened=false;this.backdrop=true;this.position="center";this.animating="none";this.animation="slide";this.overflow="auto";this.interaction="relaxed";this.updateCSSCustomProps=function(){var t;if(typeof window==="undefined")return;var i=window.getComputedStyle(o.host);o.cssTransitionDuration=(t=i.getPropertyValue("--mds-modal-transition-duration"))!==null&&t!==void 0?t:"500"};this.stopIntroAnimationWindow=function(){o.animating="none";o.host.setAttribute("animating","none");o.showEvent.emit();clearTimeout(o.animationDelayTimeout)};this.stopOutroAnimationWindow=function(){o.animating="none";o.host.setAttribute("animating","none");o.hideEvent.emit();clearTimeout(o.animationDelayTimeout)};this.disableOverflow=function(){if(typeof document!=="undefined"){if(document.body.style.overflow!==""){o.bodyOverflow=document.body.style.overflow}document.body.style.overflow="hidden"}};this.enableOverflow=function(){if(typeof document!=="undefined"){if(o.bodyOverflow!==""){document.body.style.overflow=o.bodyOverflow}else{document.body.style.removeProperty("overflow")}}};this.animateOpenWindow=function(){o.animating="intro";clearTimeout(o.animationDelayTimeout);o.animationDelayTimeout=setTimeout(o.stopIntroAnimationWindow.bind(o),cssDurationToMilliseconds(o.cssTransitionDuration))};this.animateCloseWindow=function(){o.animating="outro";clearTimeout(o.animationDelayTimeout);o.animationDelayTimeout=setTimeout(o.stopOutroAnimationWindow.bind(o),cssDurationToMilliseconds(o.cssTransitionDuration))};this.setTouchStart=function(t){o.touchStartX=t.touches[0].clientX;o.touchStartY=t.touches[0].clientY};this.setTouchEnd=function(t){var i=t.changedTouches[0].clientX;var n=t.changedTouches[0].clientY;var e=o.touchStartX-i;var a=o.touchStartY-n;if(Math.abs(e)>Math.abs(a)){if(o.position==="right"&&e>0)return;if(o.position==="left"&&e<0)return;if(Math.abs(e)>Math.abs(o.touchMargin)){o.opened=undefined}}};this.addMobileEvents=function(){o.windowElement.addEventListener("touchstart",o.setTouchStart);o.windowElement.addEventListener("touchend",o.setTouchEnd)};this.closeModal=function(t,i){var n;if(!i){if(o.interaction==="strict")return;if(((n=t.target)===null||n===void 0?void 0:n.localName)!=="mds-modal"){return}}o.opened=t.target!==t.currentTarget;if(!o.opened){o.closeEvent.emit()}}}t.prototype.componentWillLoad=function(){var t;this.bottom=this.host.querySelector(':scope > [slot="bottom"]')!==null;this.top=this.host.querySelector(':scope > [slot="top"]')!==null;this.window=this.host.querySelector(':scope > [slot="window"]')!==null;if(this.overflow==="auto"&&this.opened){this.disableOverflow()}if(this.window){(t=this.host.querySelector(':scope > [slot="window"]'))===null||t===void 0?void 0:t.setAttribute("role","dialog")}};t.prototype.componentWillRender=function(){this.animating=this.opened?"intro":"outro"};t.prototype.componentDidLoad=function(){var t,o,i;this.windowElement=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".window");this.windowHeaderElement=(o=this.host.shadowRoot)===null||o===void 0?void 0:o.querySelector(".window-header");this.windowFooterElement=(i=this.host.shadowRoot)===null||i===void 0?void 0:i.querySelector(".window-footer");if(this.windowHeaderElement!=null){this.windowHeaderHeight=this.windowHeaderElement.offsetHeight}if(this.windowFooterElement!=null){this.windowFooterHeight=this.windowFooterElement.offsetHeight}if(this.windowElement!=null){this.addMobileEvents()}this.updateCSSCustomProps()};t.prototype.disconnectedCallback=function(){this.enableOverflow();if(this.windowElement!=null){this.windowElement.removeEventListener("touchstart",this.setTouchStart);this.windowElement.removeEventListener("touchend",this.setTouchEnd)}this.enableOverflow()};t.prototype.handleOpenProp=function(t){if(t){if(this.overflow==="auto"){this.disableOverflow()}this.animateOpenWindow();this.openEvent.emit();return}this.opened=undefined;if(this.overflow==="auto"){this.enableOverflow()}this.animateCloseWindow()};t.prototype.handleBackdropProp=function(t){if(t===false){this.backdrop=undefined}};t.prototype.close=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.opened=undefined;return[2]}))}))};t.prototype.render=function(){var t=this;return h(Host,{key:"9f4be0a30b1d3cae73348bf48a30dc180f0ac82f","aria-modal":clsx(this.opened?"true":"false"),onMouseDown:function(o){t.closeModal(o)}},this.window?h("slot",{name:"window"}):h("div",{class:"window",part:"window"},h("div",{class:clsx("window-header",this.top?"":"window-content--empty")},h("slot",{name:"top"})),h("div",{class:"window-content-wrapper"},h("div",{class:"window-content",style:{paddingTop:"".concat(this.windowHeaderHeight,"px"),paddingBottom:"".concat(this.windowFooterHeight,"px")}},h("slot",null))),h("div",{class:clsx("window-footer",this.bottom?"":"window-content--empty")},h("slot",{name:"bottom"}))),!this.window&&h("mds-button",{key:"37ff9d4c6556052e4c53c69d3b14d4f4f57eba5c",class:"action-close",icon:miBaselineClose,variant:"light",tone:"text",size:"xl",onClick:function(o){t.closeModal(o,true)},part:"action-close"}))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{opened:[{handleOpenProp:0}],backdrop:[{handleBackdropProp:0}]}},enumerable:false,configurable:true});return t}();MdsModal.style=mdsModalCss();export{MdsModal as mds_modal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,o,t,r){function a(e){return e instanceof t?e:new t((function(o){o(e)}))}return new(t||(t=Promise))((function(t,l){function n(e){try{i(r.next(e))}catch(e){l(e)}}function s(e){try{i(r["throw"](e))}catch(e){l(e)}}function i(e){e.done?t(e.value):a(e.value).then(n,s)}i((r=r.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var t={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,n=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return n.next=s(0),n["throw"]=s(1),n["return"]=s(2),typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(o){return i([e,o])}}function i(s){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(t=0)),t)try{if(r=1,a&&(l=s[0]&2?a["return"]:s[0]?a["throw"]||((l=a["return"])&&l.call(a),0):a.next)&&!(l=l.call(a,s[1])).done)return l;if(a=0,l)s=[s[0]&2,l.value];switch(s[0]){case 0:case 1:l=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;a=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(l=t.trys,l=l.length>0&&l[l.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!l||s[1]>l[0]&&s[1]<l[3])){t.label=s[1];break}if(s[0]===6&&t.label<l[1]){t.label=l[1];l=s;break}if(l&&t.label<l[2]){t.label=l[2];t.ops.push(s);break}if(l[2])t.ops.pop();t.trys.pop();continue}s=o.call(e,t)}catch(e){s=[6,e];a=0}finally{r=l=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{m as miBaselineClose}from"./close-J-ikDhyq.js";import{K as KeyboardManager}from"./keyboard-manager-BudfaWhu.js";import{L as Locale}from"./locale-a4oAcjYG.js";var deleteLabel$3="Αφαίρεση";var localeEl={deleteLabel:deleteLabel$3};var deleteLabel$2="Remove";var localeEn={deleteLabel:deleteLabel$2};var deleteLabel$1="Eliminar";var localeEs={deleteLabel:deleteLabel$1};var deleteLabel="Rimuovi";var localeIt={deleteLabel:deleteLabel};var mdsNoteCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-note-background:rgb(var(--label-yellow-10,75 57 3));--mds-note-color:rgb(var(--label-yellow-02,253 238 190));--mds-note-fold-color:rgb(var(--tone-neutral-10,60 60 60));--mds-note-fold-size:40px;--mds-note-selection-background:var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3)));--mds-note-selection-color:var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190)));--tw-ease:initial}}}@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}@property --mds-note-fold-size{syntax:"<length>";inherits:false;initial-value:40px}:host{--mds-note-background:rgb(var(--label-yellow-10,75 57 3));--mds-note-color:rgb(var(--label-yellow-02,253 238 190));--mds-note-fold-color:rgb(var(--tone-neutral-10,60 60 60));--mds-note-fold-size:40px;--mds-note-selection-background:var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3)));--mds-note-selection-color:var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190)));gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*600);--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:var(--mds-note-background,rgb(var(--label-yellow-10,75 57 3)));border-radius:.25rem;color:var(--mds-note-color,rgb(var(--label-yellow-02,253 238 190)));display:grid;overflow:hidden;position:relative;-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:color,background-color;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host ::slotted(mds-text){--mds-text-selection-background:var(--mds-note-selection-background,var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3))));--mds-text-selection-color:var(--mds-note-selection-color,var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190))))}:host([deletable]:not([deletable=false])){padding-right:calc(var(--spacing,.0025rem)*1600)}:host([deletable]:not([deletable=false])) .button-close{position:absolute;right:calc(var(--spacing,.0025rem)*400);top:calc(var(--spacing,.0025rem)*400)}.fold{border-color:transparent transparent var(--mds-note-fold-color,rgb(var(--tone-neutral-10,60 60 60))) transparent;border-style:solid;border-width:0 0 var(--mds-note-fold-size,40px) var(--mds-note-fold-size,40px);bottom:0;display:block;filter:drop-shadow(0 0 var(--mds-note-fold-size,40px) var(--mds-note-color,rgb(var(--label-yellow-02,253 238 190))));height:calc(var(--spacing,.0025rem)*0);opacity:.4;pointer-events:none;position:absolute;right:0;-webkit-transition-duration:inherit;transition-duration:inherit;transition-property:border;width:calc(var(--spacing,.0025rem)*0)}.button-close{border-radius:var(--radius-full,1000px);padding:calc(var(--spacing,.0025rem)*100);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:#0000;cursor:pointer;fill:var(--mds-note-color,rgb(var(--label-yellow-02,253 238 190)));-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);transition-property:background-color,fill,outline,outline-offset;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.button-close:hover{background-color:rgb(var(--tone-neutral,0 0 0)/.5)}.title{align-items:flex-start;display:flex;gap:calc(var(--spacing,.0025rem)*400)}.title .button-close{margin-left:auto}:host([variant=amaranth]){--mds-note-background:rgb(var(--label-amaranth-09,135 8 30));--mds-note-color:rgb(var(--label-amaranth-02,254 233 237));--mds-note-selection-background:rgb(var(--label-amaranth-08,193 11 42));--mds-note-selection-color:rgb(var(--label-amaranth-04,251 192 203))}:host([variant=aqua]){--mds-note-background:rgb(var(--label-aqua-09,3 77 90));--mds-note-color:rgb(var(--label-aqua-02,203 246 254));--mds-note-selection-background:rgb(var(--label-aqua-08,4 110 129));--mds-note-selection-color:rgb(var(--label-aqua-04,81 225 250))}:host([variant=blue]){--mds-note-background:rgb(var(--label-blue-09,7 40 196));--mds-note-color:rgb(var(--label-blue-02,234 238 254));--mds-note-selection-background:rgb(var(--label-blue-08,42 77 247));--mds-note-selection-color:rgb(var(--label-blue-04,196 206 253))}:host([variant=green]){--mds-note-background:rgb(var(--label-green-09,14 81 39));--mds-note-color:rgb(var(--label-green-02,211 247 224));--mds-note-selection-background:rgb(var(--label-green-08,20 116 56));--mds-note-selection-color:rgb(var(--label-green-04,113 230 156))}:host([variant=lime]){--mds-note-background:rgb(var(--label-lime-09,51 79 8));--mds-note-color:rgb(var(--label-lime-02,223 247 185));--mds-note-selection-background:rgb(var(--label-lime-08,73 112 12));--mds-note-selection-color:rgb(var(--label-lime-04,148 229 25))}:host([variant=orange]){--mds-note-background:rgb(var(--label-orange-09,116 49 3));--mds-note-color:rgb(var(--label-orange-02,254 235 222));--mds-note-selection-background:rgb(var(--label-orange-08,167 71 4));--mds-note-selection-color:rgb(var(--label-orange-04,252 196 158))}:host([variant=orchid]){--mds-note-background:rgb(var(--label-orchid-09,131 14 71));--mds-note-color:rgb(var(--label-orchid-02,253 233 243));--mds-note-selection-background:rgb(var(--label-orchid-08,187 19 102));--mds-note-selection-color:rgb(var(--label-orchid-04,248 192 220))}:host([variant=sky]){--mds-note-background:rgb(var(--label-sky-09,6 76 107));--mds-note-color:rgb(var(--label-sky-02,219 242 253));--mds-note-selection-background:rgb(var(--label-sky-08,9 107 152));--mds-note-selection-color:rgb(var(--label-sky-04,148 217 249))}:host([variant=violet]){--mds-note-background:rgb(var(--label-violet-09,67 11 195));--mds-note-color:rgb(var(--label-violet-02,241 235 254));--mds-note-selection-background:rgb(var(--label-violet-08,111 53 244));--mds-note-selection-color:rgb(var(--label-violet-04,216 200 252))}:host([variant=yellow]){--mds-note-background:rgb(var(--label-yellow-09,89 68 3));--mds-note-color:rgb(var(--label-yellow-02,253 238 190));--mds-note-selection-background:rgb(var(--label-yellow-08,127 97 4));--mds-note-selection-color:rgb(var(--label-yellow-04,248 202 60))}:host-context(:root.pref-animation-reduce){transition-duration:0s}:host-context(:root.pref-animation-reduce) .fold{transition-duration:0s}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)){-webkit-box-shadow:var(--shadow-outline) inset;box-shadow:var(--shadow-outline) inset}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=amaranth]){--mds-note-background:rgb(var(--label-amaranth-08,193 11 42));--mds-note-fold-color:rgb(var(--label-amaranth-06,246 99 125));--mds-note-color:rgb(var(--label-amaranth-02,254 233 237));--mds-note-selection-background:rgb(var(--label-amaranth-07,239 14 52));--mds-note-selection-color:rgb(var(--label-amaranth-03,253 217 223))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=aqua]){--mds-note-background:rgb(var(--label-aqua-08,4 110 129));--mds-note-fold-color:rgb(var(--label-aqua-06,5 163 190));--mds-note-color:rgb(var(--label-aqua-02,203 246 254));--mds-note-selection-background:rgb(var(--label-aqua-07,5 137 160));--mds-note-selection-color:rgb(var(--label-aqua-03,158 238 252))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=blue]){--mds-note-background:rgb(var(--label-blue-08,42 77 247));--mds-note-fold-color:rgb(var(--label-blue-06,121 143 250));--mds-note-color:rgb(var(--label-blue-02,234 238 254));--mds-note-selection-background:rgb(var(--label-blue-07,85 113 249));--mds-note-selection-color:rgb(var(--label-blue-03,218 224 254))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=green]){--mds-note-background:rgb(var(--label-green-08,20 116 56));--mds-note-fold-color:rgb(var(--label-green-06,30 171 82));--mds-note-color:rgb(var(--label-green-02,211 247 224));--mds-note-selection-background:rgb(var(--label-green-07,25 145 69));--mds-note-selection-color:rgb(var(--label-green-03,173 241 198))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=lime]){--mds-note-background:rgb(var(--label-lime-08,73 112 12));--mds-note-fold-color:rgb(var(--label-lime-06,108 167 18));--mds-note-color:rgb(var(--label-lime-02,223 247 185));--mds-note-selection-background:rgb(var(--label-lime-07,90 139 15));--mds-note-selection-color:rgb(var(--label-lime-03,193 241 122))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=orange]){--mds-note-background:rgb(var(--label-orange-08,167 71 4));--mds-note-fold-color:rgb(var(--label-orange-06,247 105 6));--mds-note-color:rgb(var(--label-orange-02,254 235 222));--mds-note-selection-background:rgb(var(--label-orange-07,208 88 5));--mds-note-selection-color:rgb(var(--label-orange-03,253 219 196))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=orchid]){--mds-note-background:rgb(var(--label-orchid-08,187 19 102));--mds-note-fold-color:rgb(var(--label-orchid-06,239 99 168));--mds-note-color:rgb(var(--label-orchid-02,253 233 243));--mds-note-selection-background:rgb(var(--label-orchid-07,231 28 129));--mds-note-selection-color:rgb(var(--label-orchid-03,251 216 234))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=sky]){--mds-note-background:rgb(var(--label-sky-08,9 107 152));--mds-note-fold-color:rgb(var(--label-sky-06,13 158 224));--mds-note-color:rgb(var(--label-sky-02,219 242 253));--mds-note-selection-background:rgb(var(--label-sky-07,11 133 188));--mds-note-selection-color:rgb(var(--label-sky-03,191 232 251))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=violet]){--mds-note-background:rgb(var(--label-violet-08,111 53 244));--mds-note-fold-color:rgb(var(--label-violet-06,166 129 248));--mds-note-color:rgb(var(--label-violet-02,241 235 254));--mds-note-selection-background:rgb(var(--label-violet-07,141 95 246));--mds-note-selection-color:rgb(var(--label-violet-03,231 221 253))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=yellow]){--mds-note-background:rgb(var(--label-yellow-08,127 97 4));--mds-note-fold-color:rgb(var(--label-yellow-06,188 143 6));--mds-note-color:rgb(var(--label-yellow-02,253 238 190));--mds-note-selection-background:rgb(var(--label-yellow-07,158 120 5));--mds-note-selection-color:rgb(var(--label-yellow-03,251 224 142))}:host-context(:root.pref-contrast-more){-webkit-box-shadow:var(--shadow-outline-50) inset;box-shadow:var(--shadow-outline-50) inset}:host-context(:root.pref-contrast-more) .fold{bottom:calc(var(--spacing,.0025rem)*50);right:calc(var(--spacing,.0025rem)*50)}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion){:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))),:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .fold{transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))){-webkit-box-shadow:var(--shadow-outline) inset;box-shadow:var(--shadow-outline) inset}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=amaranth]){--mds-note-background:rgb(var(--label-amaranth-08,193 11 42));--mds-note-fold-color:rgb(var(--label-amaranth-06,246 99 125));--mds-note-color:rgb(var(--label-amaranth-02,254 233 237));--mds-note-selection-background:rgb(var(--label-amaranth-07,239 14 52));--mds-note-selection-color:rgb(var(--label-amaranth-03,253 217 223))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=aqua]){--mds-note-background:rgb(var(--label-aqua-08,4 110 129));--mds-note-fold-color:rgb(var(--label-aqua-06,5 163 190));--mds-note-color:rgb(var(--label-aqua-02,203 246 254));--mds-note-selection-background:rgb(var(--label-aqua-07,5 137 160));--mds-note-selection-color:rgb(var(--label-aqua-03,158 238 252))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=blue]){--mds-note-background:rgb(var(--label-blue-08,42 77 247));--mds-note-fold-color:rgb(var(--label-blue-06,121 143 250));--mds-note-color:rgb(var(--label-blue-02,234 238 254));--mds-note-selection-background:rgb(var(--label-blue-07,85 113 249));--mds-note-selection-color:rgb(var(--label-blue-03,218 224 254))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=green]){--mds-note-background:rgb(var(--label-green-08,20 116 56));--mds-note-fold-color:rgb(var(--label-green-06,30 171 82));--mds-note-color:rgb(var(--label-green-02,211 247 224));--mds-note-selection-background:rgb(var(--label-green-07,25 145 69));--mds-note-selection-color:rgb(var(--label-green-03,173 241 198))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=lime]){--mds-note-background:rgb(var(--label-lime-08,73 112 12));--mds-note-fold-color:rgb(var(--label-lime-06,108 167 18));--mds-note-color:rgb(var(--label-lime-02,223 247 185));--mds-note-selection-background:rgb(var(--label-lime-07,90 139 15));--mds-note-selection-color:rgb(var(--label-lime-03,193 241 122))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=orange]){--mds-note-background:rgb(var(--label-orange-08,167 71 4));--mds-note-fold-color:rgb(var(--label-orange-06,247 105 6));--mds-note-color:rgb(var(--label-orange-02,254 235 222));--mds-note-selection-background:rgb(var(--label-orange-07,208 88 5));--mds-note-selection-color:rgb(var(--label-orange-03,253 219 196))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=orchid]){--mds-note-background:rgb(var(--label-orchid-08,187 19 102));--mds-note-fold-color:rgb(var(--label-orchid-06,239 99 168));--mds-note-color:rgb(var(--label-orchid-02,253 233 243));--mds-note-selection-background:rgb(var(--label-orchid-07,231 28 129));--mds-note-selection-color:rgb(var(--label-orchid-03,251 216 234))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=sky]){--mds-note-background:rgb(var(--label-sky-08,9 107 152));--mds-note-fold-color:rgb(var(--label-sky-06,13 158 224));--mds-note-color:rgb(var(--label-sky-02,219 242 253));--mds-note-selection-background:rgb(var(--label-sky-07,11 133 188));--mds-note-selection-color:rgb(var(--label-sky-03,191 232 251))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=violet]){--mds-note-background:rgb(var(--label-violet-08,111 53 244));--mds-note-fold-color:rgb(var(--label-violet-06,166 129 248));--mds-note-color:rgb(var(--label-violet-02,241 235 254));--mds-note-selection-background:rgb(var(--label-violet-07,141 95 246));--mds-note-selection-color:rgb(var(--label-violet-03,231 221 253))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=yellow]){--mds-note-background:rgb(var(--label-yellow-08,127 97 4));--mds-note-fold-color:rgb(var(--label-yellow-06,188 143 6));--mds-note-color:rgb(var(--label-yellow-02,253 238 190));--mds-note-selection-background:rgb(var(--label-yellow-07,158 120 5));--mds-note-selection-color:rgb(var(--label-yellow-03,251 224 142))}}@media (prefers-contrast:more){:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))){-webkit-box-shadow:var(--shadow-outline-50) inset;box-shadow:var(--shadow-outline-50) inset}:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .fold{bottom:calc(var(--spacing,.0025rem)*50);right:calc(var(--spacing,.0025rem)*50)}}'};var MdsNote=function(){function e(e){var o=this;registerInstance(this,e);this.deleteEvent=createEvent(this,"mdsNoteDelete");this.km=new KeyboardManager;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.deletable=false;this.variant="yellow";this.onClickClose=function(){o.deleteEvent.emit()}}e.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.language=this.t.lang(this.host);return[2]}))}))};e.prototype.componentWillLoad=function(){this.t.lang(this.host)};e.prototype.componentDidLoad=function(){this.km.addElement(this.host);this.km.attachClickBehavior()};e.prototype.componentDidUpdate=function(){if(this.deletable){this.km.addElement(this.host);this.km.attachClickBehavior();return}this.km.detachClickBehavior()};e.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};e.prototype.render=function(){return h(Host,{key:"bb7105ecd6e6a7fe003e2b4aafde387305eb7ca4",role:"note"},this.deletable&&h("mds-button",{key:"8770db0d4b69a2abf27d9a27d49b2db0a7e659b5",title:this.t.get("deleteLabel"),icon:miBaselineClose,class:"button-close",variant:"dark",tone:"text",onClick:this.onClickClose.bind(this)}),h("slot",{key:"74ddb954eb7b8919c414a6cbc2279746f55992bd",name:"title"}),h("slot",{key:"088ab53a3820f94d61951b9147cdce50f1a45304"}),h("div",{key:"c1cfcab4a0657963b6b7846ccd145afc62934541","aria-hidden":"true",class:"fold"}))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsNote.style=mdsNoteCss();export{MdsNote as mds_note};
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,o,t,r){function a(e){return e instanceof t?e:new t((function(o){o(e)}))}return new(t||(t=Promise))((function(t,l){function n(e){try{i(r.next(e))}catch(e){l(e)}}function s(e){try{i(r["throw"](e))}catch(e){l(e)}}function i(e){e.done?t(e.value):a(e.value).then(n,s)}i((r=r.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var t={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,n=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return n.next=s(0),n["throw"]=s(1),n["return"]=s(2),typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(o){return i([e,o])}}function i(s){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(t=0)),t)try{if(r=1,a&&(l=s[0]&2?a["return"]:s[0]?a["throw"]||((l=a["return"])&&l.call(a),0):a.next)&&!(l=l.call(a,s[1])).done)return l;if(a=0,l)s=[s[0]&2,l.value];switch(s[0]){case 0:case 1:l=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;a=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(l=t.trys,l=l.length>0&&l[l.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!l||s[1]>l[0]&&s[1]<l[3])){t.label=s[1];break}if(s[0]===6&&t.label<l[1]){t.label=l[1];l=s;break}if(l&&t.label<l[2]){t.label=l[2];t.ops.push(s);break}if(l[2])t.ops.pop();t.trys.pop();continue}s=o.call(e,t)}catch(e){s=[6,e];a=0}finally{r=l=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{m as miBaselineClose}from"./close-J-ikDhyq.js";import{K as KeyboardManager}from"./keyboard-manager-BudfaWhu.js";import{L as Locale}from"./locale-a4oAcjYG.js";var deleteLabel$3="Αφαίρεση";var localeEl={deleteLabel:deleteLabel$3};var deleteLabel$2="Remove";var localeEn={deleteLabel:deleteLabel$2};var deleteLabel$1="Eliminar";var localeEs={deleteLabel:deleteLabel$1};var deleteLabel="Rimuovi";var localeIt={deleteLabel:deleteLabel};var mdsNoteCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-note-background:rgb(var(--label-yellow-10,75 57 3));--mds-note-color:rgb(var(--label-yellow-02,253 238 190));--mds-note-fold-color:rgb(var(--tone-neutral-10,60 60 60));--mds-note-fold-size:40px;--mds-note-selection-background:var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3)));--mds-note-selection-color:var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190)));--tw-ease:initial}}}@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}@property --mds-note-fold-size{syntax:"<length>";inherits:false;initial-value:40px}:host{--mds-note-background:rgb(var(--label-yellow-10,75 57 3));--mds-note-color:rgb(var(--label-yellow-02,253 238 190));--mds-note-fold-color:rgb(var(--tone-neutral-10,60 60 60));--mds-note-fold-size:40px;--mds-note-selection-background:var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3)));--mds-note-selection-color:var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190)));gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*600);--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:var(--mds-note-background,rgb(var(--label-yellow-10,75 57 3)));border-radius:.25rem;color:var(--mds-note-color,rgb(var(--label-yellow-02,253 238 190)));display:grid;overflow:hidden;position:relative;-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:color,background-color;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host ::slotted(mds-text){--mds-text-selection-background:var(--mds-note-selection-background,var(--magma-selection-background,rgb(var(--label-yellow-09,89 68 3))));--mds-text-selection-color:var(--mds-note-selection-color,var(--magma-selection-color,rgb(var(--label-yellow-02,253 238 190))))}:host([deletable]:not([deletable=false])){padding-right:calc(var(--spacing,.0025rem)*1600)}:host([deletable]:not([deletable=false])) .button-close{position:absolute;right:calc(var(--spacing,.0025rem)*400);top:calc(var(--spacing,.0025rem)*400)}.fold{border-color:transparent transparent var(--mds-note-fold-color,rgb(var(--tone-neutral-10,60 60 60))) transparent;border-style:solid;border-width:0 0 var(--mds-note-fold-size,40px) var(--mds-note-fold-size,40px);bottom:0;display:block;filter:drop-shadow(0 0 var(--mds-note-fold-size,40px) var(--mds-note-color,rgb(var(--label-yellow-02,253 238 190))));height:calc(var(--spacing,.0025rem)*0);opacity:.4;pointer-events:none;position:absolute;right:0;-webkit-transition-duration:inherit;transition-duration:inherit;transition-property:border;width:calc(var(--spacing,.0025rem)*0)}.button-close{border-radius:var(--radius-full,1000px);padding:calc(var(--spacing,.0025rem)*100);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:#0000;cursor:pointer;fill:var(--mds-note-color,rgb(var(--label-yellow-02,253 238 190)));-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);transition-property:background-color,fill,outline,outline-offset;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.button-close:hover{background-color:rgb(var(--tone-neutral,0 0 0)/.5)}.title{align-items:flex-start;display:flex;gap:calc(var(--spacing,.0025rem)*400)}.title .button-close{margin-left:auto}:host([variant=amaranth]){--mds-note-background:rgb(var(--label-amaranth-09,135 8 30));--mds-note-color:rgb(var(--label-amaranth-02,254 233 237));--mds-note-selection-background:rgb(var(--label-amaranth-08,193 11 42));--mds-note-selection-color:rgb(var(--label-amaranth-04,251 192 203))}:host([variant=aqua]){--mds-note-background:rgb(var(--label-aqua-09,3 77 90));--mds-note-color:rgb(var(--label-aqua-02,203 246 254));--mds-note-selection-background:rgb(var(--label-aqua-08,4 110 129));--mds-note-selection-color:rgb(var(--label-aqua-04,81 225 250))}:host([variant=blue]){--mds-note-background:rgb(var(--label-blue-09,7 40 196));--mds-note-color:rgb(var(--label-blue-02,234 238 254));--mds-note-selection-background:rgb(var(--label-blue-08,42 77 247));--mds-note-selection-color:rgb(var(--label-blue-04,196 206 253))}:host([variant=green]){--mds-note-background:rgb(var(--label-green-09,14 81 39));--mds-note-color:rgb(var(--label-green-02,211 247 224));--mds-note-selection-background:rgb(var(--label-green-08,20 116 56));--mds-note-selection-color:rgb(var(--label-green-04,113 230 156))}:host([variant=lime]){--mds-note-background:rgb(var(--label-lime-09,51 79 8));--mds-note-color:rgb(var(--label-lime-02,223 247 185));--mds-note-selection-background:rgb(var(--label-lime-08,73 112 12));--mds-note-selection-color:rgb(var(--label-lime-04,148 229 25))}:host([variant=orange]){--mds-note-background:rgb(var(--label-orange-09,116 49 3));--mds-note-color:rgb(var(--label-orange-02,254 235 222));--mds-note-selection-background:rgb(var(--label-orange-08,167 71 4));--mds-note-selection-color:rgb(var(--label-orange-04,252 196 158))}:host([variant=orchid]){--mds-note-background:rgb(var(--label-orchid-09,131 14 71));--mds-note-color:rgb(var(--label-orchid-02,253 233 243));--mds-note-selection-background:rgb(var(--label-orchid-08,187 19 102));--mds-note-selection-color:rgb(var(--label-orchid-04,248 192 220))}:host([variant=sky]){--mds-note-background:rgb(var(--label-sky-09,6 76 107));--mds-note-color:rgb(var(--label-sky-02,219 242 253));--mds-note-selection-background:rgb(var(--label-sky-08,9 107 152));--mds-note-selection-color:rgb(var(--label-sky-04,148 217 249))}:host([variant=violet]){--mds-note-background:rgb(var(--label-violet-09,67 11 195));--mds-note-color:rgb(var(--label-violet-02,241 235 254));--mds-note-selection-background:rgb(var(--label-violet-08,111 53 244));--mds-note-selection-color:rgb(var(--label-violet-04,216 200 252))}:host([variant=yellow]){--mds-note-background:rgb(var(--label-yellow-09,89 68 3));--mds-note-color:rgb(var(--label-yellow-02,253 238 190));--mds-note-selection-background:rgb(var(--label-yellow-08,127 97 4));--mds-note-selection-color:rgb(var(--label-yellow-04,248 202 60))}:host-context(:root.pref-animation-reduce){transition-duration:0s}:host-context(:root.pref-animation-reduce) .fold{transition-duration:0s}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)){-webkit-box-shadow:var(--shadow-outline) inset;box-shadow:var(--shadow-outline) inset}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=amaranth]){--mds-note-background:rgb(var(--label-amaranth-08,193 11 42));--mds-note-fold-color:rgb(var(--label-amaranth-06,246 99 125));--mds-note-color:rgb(var(--label-amaranth-02,254 233 237));--mds-note-selection-background:rgb(var(--label-amaranth-07,239 14 52));--mds-note-selection-color:rgb(var(--label-amaranth-03,253 217 223))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=aqua]){--mds-note-background:rgb(var(--label-aqua-08,4 110 129));--mds-note-fold-color:rgb(var(--label-aqua-06,5 163 190));--mds-note-color:rgb(var(--label-aqua-02,203 246 254));--mds-note-selection-background:rgb(var(--label-aqua-07,5 137 160));--mds-note-selection-color:rgb(var(--label-aqua-03,158 238 252))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=blue]){--mds-note-background:rgb(var(--label-blue-08,42 77 247));--mds-note-fold-color:rgb(var(--label-blue-06,121 143 250));--mds-note-color:rgb(var(--label-blue-02,234 238 254));--mds-note-selection-background:rgb(var(--label-blue-07,85 113 249));--mds-note-selection-color:rgb(var(--label-blue-03,218 224 254))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=green]){--mds-note-background:rgb(var(--label-green-08,20 116 56));--mds-note-fold-color:rgb(var(--label-green-06,30 171 82));--mds-note-color:rgb(var(--label-green-02,211 247 224));--mds-note-selection-background:rgb(var(--label-green-07,25 145 69));--mds-note-selection-color:rgb(var(--label-green-03,173 241 198))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=lime]){--mds-note-background:rgb(var(--label-lime-08,73 112 12));--mds-note-fold-color:rgb(var(--label-lime-06,108 167 18));--mds-note-color:rgb(var(--label-lime-02,223 247 185));--mds-note-selection-background:rgb(var(--label-lime-07,90 139 15));--mds-note-selection-color:rgb(var(--label-lime-03,193 241 122))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=orange]){--mds-note-background:rgb(var(--label-orange-08,167 71 4));--mds-note-fold-color:rgb(var(--label-orange-06,247 105 6));--mds-note-color:rgb(var(--label-orange-02,254 235 222));--mds-note-selection-background:rgb(var(--label-orange-07,208 88 5));--mds-note-selection-color:rgb(var(--label-orange-03,253 219 196))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=orchid]){--mds-note-background:rgb(var(--label-orchid-08,187 19 102));--mds-note-fold-color:rgb(var(--label-orchid-06,239 99 168));--mds-note-color:rgb(var(--label-orchid-02,253 233 243));--mds-note-selection-background:rgb(var(--label-orchid-07,231 28 129));--mds-note-selection-color:rgb(var(--label-orchid-03,251 216 234))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=sky]){--mds-note-background:rgb(var(--label-sky-08,9 107 152));--mds-note-fold-color:rgb(var(--label-sky-06,13 158 224));--mds-note-color:rgb(var(--label-sky-02,219 242 253));--mds-note-selection-background:rgb(var(--label-sky-07,11 133 188));--mds-note-selection-color:rgb(var(--label-sky-03,191 232 251))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=violet]){--mds-note-background:rgb(var(--label-violet-08,111 53 244));--mds-note-fold-color:rgb(var(--label-violet-06,166 129 248));--mds-note-color:rgb(var(--label-violet-02,241 235 254));--mds-note-selection-background:rgb(var(--label-violet-07,141 95 246));--mds-note-selection-color:rgb(var(--label-violet-03,231 221 253))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)):host([variant=yellow]){--mds-note-background:rgb(var(--label-yellow-08,127 97 4));--mds-note-fold-color:rgb(var(--label-yellow-06,188 143 6));--mds-note-color:rgb(var(--label-yellow-02,253 238 190));--mds-note-selection-background:rgb(var(--label-yellow-07,158 120 5));--mds-note-selection-color:rgb(var(--label-yellow-03,251 224 142))}:host-context(:root.pref-contrast-more){-webkit-box-shadow:var(--shadow-outline-50) inset;box-shadow:var(--shadow-outline-50) inset}:host-context(:root.pref-contrast-more) .fold{bottom:calc(var(--spacing,.0025rem)*50);right:calc(var(--spacing,.0025rem)*50)}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion){:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))),:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .fold{transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))){-webkit-box-shadow:var(--shadow-outline) inset;box-shadow:var(--shadow-outline) inset}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=amaranth]){--mds-note-background:rgb(var(--label-amaranth-08,193 11 42));--mds-note-fold-color:rgb(var(--label-amaranth-06,246 99 125));--mds-note-color:rgb(var(--label-amaranth-02,254 233 237));--mds-note-selection-background:rgb(var(--label-amaranth-07,239 14 52));--mds-note-selection-color:rgb(var(--label-amaranth-03,253 217 223))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=aqua]){--mds-note-background:rgb(var(--label-aqua-08,4 110 129));--mds-note-fold-color:rgb(var(--label-aqua-06,5 163 190));--mds-note-color:rgb(var(--label-aqua-02,203 246 254));--mds-note-selection-background:rgb(var(--label-aqua-07,5 137 160));--mds-note-selection-color:rgb(var(--label-aqua-03,158 238 252))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=blue]){--mds-note-background:rgb(var(--label-blue-08,42 77 247));--mds-note-fold-color:rgb(var(--label-blue-06,121 143 250));--mds-note-color:rgb(var(--label-blue-02,234 238 254));--mds-note-selection-background:rgb(var(--label-blue-07,85 113 249));--mds-note-selection-color:rgb(var(--label-blue-03,218 224 254))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=green]){--mds-note-background:rgb(var(--label-green-08,20 116 56));--mds-note-fold-color:rgb(var(--label-green-06,30 171 82));--mds-note-color:rgb(var(--label-green-02,211 247 224));--mds-note-selection-background:rgb(var(--label-green-07,25 145 69));--mds-note-selection-color:rgb(var(--label-green-03,173 241 198))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=lime]){--mds-note-background:rgb(var(--label-lime-08,73 112 12));--mds-note-fold-color:rgb(var(--label-lime-06,108 167 18));--mds-note-color:rgb(var(--label-lime-02,223 247 185));--mds-note-selection-background:rgb(var(--label-lime-07,90 139 15));--mds-note-selection-color:rgb(var(--label-lime-03,193 241 122))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=orange]){--mds-note-background:rgb(var(--label-orange-08,167 71 4));--mds-note-fold-color:rgb(var(--label-orange-06,247 105 6));--mds-note-color:rgb(var(--label-orange-02,254 235 222));--mds-note-selection-background:rgb(var(--label-orange-07,208 88 5));--mds-note-selection-color:rgb(var(--label-orange-03,253 219 196))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=orchid]){--mds-note-background:rgb(var(--label-orchid-08,187 19 102));--mds-note-fold-color:rgb(var(--label-orchid-06,239 99 168));--mds-note-color:rgb(var(--label-orchid-02,253 233 243));--mds-note-selection-background:rgb(var(--label-orchid-07,231 28 129));--mds-note-selection-color:rgb(var(--label-orchid-03,251 216 234))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=sky]){--mds-note-background:rgb(var(--label-sky-08,9 107 152));--mds-note-fold-color:rgb(var(--label-sky-06,13 158 224));--mds-note-color:rgb(var(--label-sky-02,219 242 253));--mds-note-selection-background:rgb(var(--label-sky-07,11 133 188));--mds-note-selection-color:rgb(var(--label-sky-03,191 232 251))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=violet]){--mds-note-background:rgb(var(--label-violet-08,111 53 244));--mds-note-fold-color:rgb(var(--label-violet-06,166 129 248));--mds-note-color:rgb(var(--label-violet-02,241 235 254));--mds-note-selection-background:rgb(var(--label-violet-07,141 95 246));--mds-note-selection-color:rgb(var(--label-violet-03,231 221 253))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))):host([variant=yellow]){--mds-note-background:rgb(var(--label-yellow-08,127 97 4));--mds-note-fold-color:rgb(var(--label-yellow-06,188 143 6));--mds-note-color:rgb(var(--label-yellow-02,253 238 190));--mds-note-selection-background:rgb(var(--label-yellow-07,158 120 5));--mds-note-selection-color:rgb(var(--label-yellow-03,251 224 142))}}@media (prefers-contrast:more){:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))){-webkit-box-shadow:var(--shadow-outline-50) inset;box-shadow:var(--shadow-outline-50) inset}:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .fold{bottom:calc(var(--spacing,.0025rem)*50);right:calc(var(--spacing,.0025rem)*50)}}'};var MdsNote=function(){function e(e){var o=this;registerInstance(this,e);this.deleteEvent=createEvent(this,"mdsNoteDelete");this.km=new KeyboardManager;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.deletable=false;this.variant="yellow";this.onClickClose=function(){o.deleteEvent.emit()}}e.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.language=this.t.lang(this.host);return[2]}))}))};e.prototype.componentWillLoad=function(){this.t.lang(this.host)};e.prototype.componentDidLoad=function(){this.km.addElement(this.host);this.km.attachClickBehavior()};e.prototype.componentDidUpdate=function(){if(this.deletable){this.km.addElement(this.host);this.km.attachClickBehavior();return}this.km.detachClickBehavior()};e.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};e.prototype.render=function(){return h(Host,{key:"50df66ebc4a5d691ec06b2afbe6aa3a8359e18a7",role:"note"},this.deletable&&h("mds-button",{key:"06dd4061821acea5f5b060f216693e9f42f10990",title:this.t.get("deleteLabel"),icon:miBaselineClose,class:"button-close",variant:"dark",tone:"text",onClick:this.onClickClose}),h("slot",{key:"1d070ff5a29efac7dd04928fc4e6a6a172f4a649",name:"title"}),h("slot",{key:"e90c46a1dc161ca4b1c42628d0d3e6fa5a2080bb"}),h("div",{key:"9019e08441d708477ef9d9099e283479ae49e4ae","aria-hidden":"true",class:"fold"}))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsNote.style=mdsNoteCss();export{MdsNote as mds_note};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{o as offset,s as shift,c as computePosition,d as autoUpdate}from"./floating-ui.dom-8RYXTPXs.js";var mdsNotificationCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@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{--mds-notification-color:rgb(var(--tone-neutral,0 0 0));--mds-notification-dot-background:rgb(var(--status-error-05,250 165 160));--mds-notification-dot-padding:6px;--mds-notification-min-width:var(--mds-notification-size,20px);--mds-notification-ring-color:rgb(var(--tone-neutral,0 0 0));--mds-notification-ring-size:2px;--mds-notification-size:20px;--mds-notification-transition-duration:.2s;--mds-notification-translate-offset-x:-1.75;--mds-notification-translate-offset-y:-2;--mds-notification-translate:translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)));--tw-duration:initial;--tw-ease:initial}}}@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}@property --mds-notification-dot-padding{syntax:"<length>";inherits:false;initial-value:6px}@property --mds-notification-ring-size{syntax:"<length>";inherits:false;initial-value:2px}@property --mds-notification-size{syntax:"<length>";inherits:false;initial-value:20px}@property --mds-notification-transition-duration{syntax:"<time>";inherits:false;initial-value:.2s}@property --mds-notification-translate-offset-x{syntax:"<number>";inherits:false;initial-value:-1.75}@property --mds-notification-translate-offset-y{syntax:"<number>";inherits:false;initial-value:-2}:host{--mds-notification-color:rgb(var(--tone-neutral,0 0 0));--mds-notification-dot-background:rgb(var(--status-error-05,250 165 160));--mds-notification-dot-padding:6px;--mds-notification-min-width:var(--mds-notification-size,20px);--mds-notification-ring-color:rgb(var(--tone-neutral,0 0 0));--mds-notification-ring-size:2px;--mds-notification-size:20px;--mds-notification-transition-duration:.2s;--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,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)));align-items:center;border-radius:var(--radius-full,1000px);bottom:100%;color:var(--mds-notification-color,rgb(var(--tone-neutral,0 0 0)));display:inline-flex;height:var(--mds-notification-size,20px);justify-content:flex-end;min-width:max-content;pointer-events:none;width:var(--mds-notification-size,20px);z-index:10}:host([strategy=absolute]),:host([strategy=fixed]){opacity:0;right:100%;-webkit-transform:var(--mds-notification-translate,translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)))) scale(0);transform:var(--mds-notification-translate,translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)))) scale(0);-webkit-transform-origin:calc(100% - var(--mds-notification-size,20px)/2) 50%;transform-origin:calc(100% - var(--mds-notification-size,20px)/2) 50%;-webkit-transition-duration:var(--mds-notification-transition-duration,.2s);transition-duration:var(--mds-notification-transition-duration,.2s);transition-property:color,height,opacity,transform,width;-webkit-transition-timing-function:var(--mds-notification-transition-timing-function);transition-timing-function:var(--mds-notification-transition-timing-function)}:host([strategy=absolute]){position:absolute}:host([strategy=fixed]){position:fixed}.dot{border-radius:var(--radius-full,1000px);--tw-duration:.3s;--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-notification-dot-background,rgb(var(--status-error-05,250 165 160)));-webkit-box-shadow:0 0 0 var(--mds-notification-ring-size,2px) var(--mds-notification-ring-color,rgb(var(--tone-neutral,0 0 0)));box-shadow:0 0 0 var(--mds-notification-ring-size,2px) var(--mds-notification-ring-color,rgb(var(--tone-neutral,0 0 0)));box-sizing:border-box;display:inline-flex;justify-content:center;line-height:var(--mds-notification-size,20px);min-width:var(--mds-notification-min-width,var(--mds-notification-size,20px));padding-left:var(--mds-notification-dot-padding,6px);padding-right:var(--mds-notification-dot-padding,6px);position:static;transition-duration:.3s;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,20px);width:var(--mds-notification-min-width,var(--mds-notification-size,20px))}:host([visible=false][strategy=absolute]),:host([visible=false][strategy=fixed]){opacity:1;--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));-webkit-transform:var(--mds-notification-translate,translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)))) scale(0);transform:var(--mds-notification-translate,translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)))) scale(0);transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}:host([strategy=absolute]:not([visible=false])),:host([strategy=fixed]:not([visible=false])),:host([visible=true][strategy=absolute]),:host([visible=true][strategy=fixed]){opacity:1;--tw-ease:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));-webkit-transform:var(--mds-notification-translate,translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)))) scale(1);transform:var(--mds-notification-translate,translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-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);-webkit-transform-origin:unset;transform-origin:unset;transition-duration:0s}:host(:not([target])) .dot,:host([strategy=disabled]) .dot{position:static}:host-context(.pref-animation-reduce){transition-duration:0s}:host-context(.pref-animation-reduce) .dot{transition-duration:0s}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion){:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))),:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .dot{transition-duration:0s}}'};var MdsNotification=function(){function t(t){var i=this;registerInstance(this,t);this.value=0;this.visible=true;this.strategy="fixed";this.placement="right-start";this.updatePosition=function(){var t=new Array;var n=i.strategy==="disabled"?"absolute":"fixed";t.push(offset(0));t.push(shift({padding:0}));computePosition(i.caller,i.host,{middleware:t,placement:i.placement,strategy:n}).then((function(t){var n=t.x,a=t.y;Object.assign(i.host.style,{left:"".concat(n,"px"),top:"".concat(a,"px")})}))};this.clean=function(t){if(i.max){if(t>i.max){return"+".concat(Number(i.max).toLocaleString())}}return Number(t).toLocaleString()}}t.prototype.componentDidRender=function(){if(
|
|
1
|
+
import{r as registerInstance,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{o as offset,s as shift,c as computePosition,d as autoUpdate}from"./floating-ui.dom-8RYXTPXs.js";var mdsNotificationCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@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{--mds-notification-color:rgb(var(--tone-neutral,0 0 0));--mds-notification-dot-background:rgb(var(--status-error-05,250 165 160));--mds-notification-dot-padding:6px;--mds-notification-min-width:var(--mds-notification-size,20px);--mds-notification-ring-color:rgb(var(--tone-neutral,0 0 0));--mds-notification-ring-size:2px;--mds-notification-size:20px;--mds-notification-transition-duration:.2s;--mds-notification-translate-offset-x:-1.75;--mds-notification-translate-offset-y:-2;--mds-notification-translate:translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)));--tw-duration:initial;--tw-ease:initial}}}@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}@property --mds-notification-dot-padding{syntax:"<length>";inherits:false;initial-value:6px}@property --mds-notification-ring-size{syntax:"<length>";inherits:false;initial-value:2px}@property --mds-notification-size{syntax:"<length>";inherits:false;initial-value:20px}@property --mds-notification-transition-duration{syntax:"<time>";inherits:false;initial-value:.2s}@property --mds-notification-translate-offset-x{syntax:"<number>";inherits:false;initial-value:-1.75}@property --mds-notification-translate-offset-y{syntax:"<number>";inherits:false;initial-value:-2}:host{--mds-notification-color:rgb(var(--tone-neutral,0 0 0));--mds-notification-dot-background:rgb(var(--status-error-05,250 165 160));--mds-notification-dot-padding:6px;--mds-notification-min-width:var(--mds-notification-size,20px);--mds-notification-ring-color:rgb(var(--tone-neutral,0 0 0));--mds-notification-ring-size:2px;--mds-notification-size:20px;--mds-notification-transition-duration:.2s;--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,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)));align-items:center;border-radius:var(--radius-full,1000px);bottom:100%;color:var(--mds-notification-color,rgb(var(--tone-neutral,0 0 0)));display:inline-flex;height:var(--mds-notification-size,20px);justify-content:flex-end;min-width:max-content;pointer-events:none;width:var(--mds-notification-size,20px);z-index:10}:host([strategy=absolute]),:host([strategy=fixed]){opacity:0;right:100%;-webkit-transform:var(--mds-notification-translate,translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)))) scale(0);transform:var(--mds-notification-translate,translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)))) scale(0);-webkit-transform-origin:calc(100% - var(--mds-notification-size,20px)/2) 50%;transform-origin:calc(100% - var(--mds-notification-size,20px)/2) 50%;-webkit-transition-duration:var(--mds-notification-transition-duration,.2s);transition-duration:var(--mds-notification-transition-duration,.2s);transition-property:color,height,opacity,transform,width;-webkit-transition-timing-function:var(--mds-notification-transition-timing-function);transition-timing-function:var(--mds-notification-transition-timing-function)}:host([strategy=absolute]){position:absolute}:host([strategy=fixed]){position:fixed}.dot{border-radius:var(--radius-full,1000px);--tw-duration:.3s;--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-notification-dot-background,rgb(var(--status-error-05,250 165 160)));-webkit-box-shadow:0 0 0 var(--mds-notification-ring-size,2px) var(--mds-notification-ring-color,rgb(var(--tone-neutral,0 0 0)));box-shadow:0 0 0 var(--mds-notification-ring-size,2px) var(--mds-notification-ring-color,rgb(var(--tone-neutral,0 0 0)));box-sizing:border-box;display:inline-flex;justify-content:center;line-height:var(--mds-notification-size,20px);min-width:var(--mds-notification-min-width,var(--mds-notification-size,20px));padding-left:var(--mds-notification-dot-padding,6px);padding-right:var(--mds-notification-dot-padding,6px);position:static;transition-duration:.3s;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,20px);width:var(--mds-notification-min-width,var(--mds-notification-size,20px))}:host([visible=false][strategy=absolute]),:host([visible=false][strategy=fixed]){opacity:1;--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));-webkit-transform:var(--mds-notification-translate,translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)))) scale(0);transform:var(--mds-notification-translate,translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)))) scale(0);transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}:host([strategy=absolute]:not([visible=false])),:host([strategy=fixed]:not([visible=false])),:host([visible=true][strategy=absolute]),:host([visible=true][strategy=fixed]){opacity:1;--tw-ease:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));-webkit-transform:var(--mds-notification-translate,translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-2)))) scale(1);transform:var(--mds-notification-translate,translate(calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-x,-1.75)),calc(var(--mds-notification-size,20px)/var(--mds-notification-translate-offset-y,-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);-webkit-transform-origin:unset;transform-origin:unset;transition-duration:0s}:host(:not([target])) .dot,:host([strategy=disabled]) .dot{position:static}:host-context(.pref-animation-reduce){transition-duration:0s}:host-context(.pref-animation-reduce) .dot{transition-duration:0s}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion){:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))),:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .dot{transition-duration:0s}}'};var MdsNotification=function(){function t(t){var i=this;registerInstance(this,t);this.value=0;this.visible=true;this.strategy="fixed";this.placement="right-start";this.updatePosition=function(){var t=new Array;var n=i.strategy==="disabled"?"absolute":"fixed";t.push(offset(0));t.push(shift({padding:0}));computePosition(i.caller,i.host,{middleware:t,placement:i.placement,strategy:n}).then((function(t){var n=t.x,a=t.y;Object.assign(i.host.style,{left:"".concat(n,"px"),top:"".concat(a,"px")})}))};this.clean=function(t){if(i.max!==undefined&&i.max!==0&&!Number.isNaN(i.max)){if(t>i.max){return"+".concat(Number(i.max).toLocaleString())}}return Number(t).toLocaleString()}}t.prototype.componentDidRender=function(){if(this.target===""){this.strategy="disabled";return}var t=document.querySelector(this.target);if(t==null)throw new Error("No valid target found");this.caller=t};t.prototype.componentDidLoad=function(){var t=this;if(this.strategy==="disabled"){return}if(this.target!==""&&this.cleanupAutoUpdate==null){setTimeout((function(){t.cleanupAutoUpdate=autoUpdate(t.caller,t.host,t.updatePosition)}),100)}};t.prototype.disconnectedCallback=function(){this.cleanupAutoUpdate=function(){}};t.prototype.strategyHandler=function(t){if(t==="disabled"){this.cleanupAutoUpdate=function(){}}};t.prototype.render=function(){var t;return h(Host,{key:"e4caa7112453beaebfde8d5144636410bed9121c","aria-labelledby":this.target,"aria-label":(t=this.value)!==null&&t!==void 0?t:"0"},h("mds-text",{key:"66204d238173dd8cf2db564907f8977728abf6c4",typography:"caption",class:"dot","aria-hidden":"true"},this.value!==0&&!Number.isNaN(this.value)?this.clean(this.value):""))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{strategy:[{strategyHandler:0}]}},enumerable:false,configurable:true});return t}();MdsNotification.style=mdsNotificationCss();export{MdsNotification as mds_notification};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{K as KeyboardManager}from"./keyboard-manager-BudfaWhu.js";var mdsPaginatorItemCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09,76 76 76));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08,107 107 107));--mds-paginator-item-background-selected:rgb(var(--variant-primary-03,211 226 255));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06,158 158 158));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-color-selected:rgb(var(--tone-neutral,0 0 0));--mds-paginator-item-color:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-radius:200px;--mds-paginator-item-size:calc(var(--spacing,.0025rem)*900);--tw-ease:initial}}}@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}@property --mds-paginator-item-background{syntax:"<color>";inherits:false;initial-value:#0000}@property --mds-paginator-item-radius{syntax:"<length>";inherits:false;initial-value:200px}:host{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09,76 76 76));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08,107 107 107));--mds-paginator-item-background-selected:rgb(var(--variant-primary-03,211 226 255));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06,158 158 158));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-color-selected:rgb(var(--tone-neutral,0 0 0));--mds-paginator-item-color:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-radius:200px;--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:var(--shadow-md-sharp,0 0 1px 1px #0000000f,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f);--mds-paginator-item-shadow:none;--mds-paginator-item-size:calc(var(--spacing,.0025rem)*900);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));padding-inline:calc(var(--spacing,.0025rem)*300);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));align-items:center;background-color:var(--mds-paginator-item-background,transparent);border-radius:var(--mds-paginator-item-radius,200px);-webkit-box-shadow:var(--mds-paginator-item-shadow);box-shadow:var(--mds-paginator-item-shadow);box-sizing:border-box;color:var(--mds-paginator-item-color,rgb(var(--tone-neutral-02,244 244 244)));cursor:pointer;display:inline-flex;flex-shrink:0;height:var(--mds-paginator-item-size,calc(var(--spacing,.0025rem)*900));justify-content:center;min-width:var(--mds-paginator-item-size,calc(var(--spacing,.0025rem)*900));transition-duration:.2s;-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);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-bezier(0,0,.2,1));-webkit-user-select:none;user-select:none}: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){background-color:var(--mds-paginator-item-background-hover,rgb(var(--tone-neutral-08,107 107 107)));-webkit-box-shadow:var(--mds-paginator-item-shadow-hover);box-shadow:var(--mds-paginator-item-shadow-hover);color:var(--mds-paginator-item-color-hover,rgb(var(--tone-neutral-02,244 244 244)));fill:var(--mds-paginator-item-color-hover,rgb(var(--tone-neutral-02,244 244 244)))}:host([icon]){padding:calc(var(--spacing,.0025rem)*0)}:host([selected]){background-color:var(--mds-paginator-item-background-selected,rgb(var(--variant-primary-03,211 226 255)));-webkit-box-shadow:var(--mds-paginator-item-shadow-selected);box-shadow:var(--mds-paginator-item-shadow-selected);color:var(--mds-paginator-item-color-selected,rgb(var(--tone-neutral,0 0 0)));fill:var(--mds-paginator-item-color-selected,rgb(var(--tone-neutral,0 0 0)));pointer-events:none}:host([disabled]){background-color:var(--mds-paginator-item-background-disabled,rgb(var(--tone-neutral-09,76 76 76)));-webkit-box-shadow:var(--mds-paginator-item-shadow-disabled);box-shadow:var(--mds-paginator-item-shadow-disabled);color:var(--mds-paginator-item-color-disabled,rgb(var(--tone-neutral-06,158 158 158)));fill:var(--mds-paginator-item-color-disabled,rgb(var(--tone-neutral-06,158 158 158)));pointer-events:none}.icon{fill:currentColor;padding-inline:calc(var(--spacing,.0025rem)*0)}:host-context(:root.pref-animation-reduce){transition-duration:0s}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)){--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09,76 76 76));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08,107 107 107));--mds-paginator-item-background-selected:rgb(var(--variant-primary-03,211 226 255));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06,158 158 158));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-color-selected:rgb(var(--tone-neutral,0 0 0));--mds-paginator-item-color:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:var(--shadow-md-sharp,0 0 1px 1px #0000000f,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f);--mds-paginator-item-shadow:none}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion){:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))){transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))){--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09,76 76 76));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08,107 107 107));--mds-paginator-item-background-selected:rgb(var(--variant-primary-03,211 226 255));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06,158 158 158));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-color-selected:rgb(var(--tone-neutral,0 0 0));--mds-paginator-item-color:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:var(--shadow-md-sharp,0 0 1px 1px #0000000f,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f);--mds-paginator-item-shadow:none}}'};var MdsPaginatorItem=function(){function a(a){
|
|
1
|
+
import{r as registerInstance,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{K as KeyboardManager}from"./keyboard-manager-BudfaWhu.js";var mdsPaginatorItemCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09,76 76 76));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08,107 107 107));--mds-paginator-item-background-selected:rgb(var(--variant-primary-03,211 226 255));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06,158 158 158));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-color-selected:rgb(var(--tone-neutral,0 0 0));--mds-paginator-item-color:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-radius:200px;--mds-paginator-item-size:calc(var(--spacing,.0025rem)*900);--tw-ease:initial}}}@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}@property --mds-paginator-item-background{syntax:"<color>";inherits:false;initial-value:#0000}@property --mds-paginator-item-radius{syntax:"<length>";inherits:false;initial-value:200px}:host{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09,76 76 76));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08,107 107 107));--mds-paginator-item-background-selected:rgb(var(--variant-primary-03,211 226 255));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06,158 158 158));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-color-selected:rgb(var(--tone-neutral,0 0 0));--mds-paginator-item-color:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-radius:200px;--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:var(--shadow-md-sharp,0 0 1px 1px #0000000f,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f);--mds-paginator-item-shadow:none;--mds-paginator-item-size:calc(var(--spacing,.0025rem)*900);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));padding-inline:calc(var(--spacing,.0025rem)*300);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));align-items:center;background-color:var(--mds-paginator-item-background,transparent);border-radius:var(--mds-paginator-item-radius,200px);-webkit-box-shadow:var(--mds-paginator-item-shadow);box-shadow:var(--mds-paginator-item-shadow);box-sizing:border-box;color:var(--mds-paginator-item-color,rgb(var(--tone-neutral-02,244 244 244)));cursor:pointer;display:inline-flex;flex-shrink:0;height:var(--mds-paginator-item-size,calc(var(--spacing,.0025rem)*900));justify-content:center;min-width:var(--mds-paginator-item-size,calc(var(--spacing,.0025rem)*900));transition-duration:.2s;-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);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-bezier(0,0,.2,1));-webkit-user-select:none;user-select:none}: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){background-color:var(--mds-paginator-item-background-hover,rgb(var(--tone-neutral-08,107 107 107)));-webkit-box-shadow:var(--mds-paginator-item-shadow-hover);box-shadow:var(--mds-paginator-item-shadow-hover);color:var(--mds-paginator-item-color-hover,rgb(var(--tone-neutral-02,244 244 244)));fill:var(--mds-paginator-item-color-hover,rgb(var(--tone-neutral-02,244 244 244)))}:host([icon]){padding:calc(var(--spacing,.0025rem)*0)}:host([selected]){background-color:var(--mds-paginator-item-background-selected,rgb(var(--variant-primary-03,211 226 255)));-webkit-box-shadow:var(--mds-paginator-item-shadow-selected);box-shadow:var(--mds-paginator-item-shadow-selected);color:var(--mds-paginator-item-color-selected,rgb(var(--tone-neutral,0 0 0)));fill:var(--mds-paginator-item-color-selected,rgb(var(--tone-neutral,0 0 0)));pointer-events:none}:host([disabled]){background-color:var(--mds-paginator-item-background-disabled,rgb(var(--tone-neutral-09,76 76 76)));-webkit-box-shadow:var(--mds-paginator-item-shadow-disabled);box-shadow:var(--mds-paginator-item-shadow-disabled);color:var(--mds-paginator-item-color-disabled,rgb(var(--tone-neutral-06,158 158 158)));fill:var(--mds-paginator-item-color-disabled,rgb(var(--tone-neutral-06,158 158 158)));pointer-events:none}.icon{fill:currentColor;padding-inline:calc(var(--spacing,.0025rem)*0)}:host-context(:root.pref-animation-reduce){transition-duration:0s}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)){--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09,76 76 76));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08,107 107 107));--mds-paginator-item-background-selected:rgb(var(--variant-primary-03,211 226 255));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06,158 158 158));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-color-selected:rgb(var(--tone-neutral,0 0 0));--mds-paginator-item-color:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:var(--shadow-md-sharp,0 0 1px 1px #0000000f,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f);--mds-paginator-item-shadow:none}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion){:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))){transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))){--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09,76 76 76));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08,107 107 107));--mds-paginator-item-background-selected:rgb(var(--variant-primary-03,211 226 255));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06,158 158 158));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-color-selected:rgb(var(--tone-neutral,0 0 0));--mds-paginator-item-color:rgb(var(--tone-neutral-02,244 244 244));--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:var(--shadow-md-sharp,0 0 1px 1px #0000000f,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f);--mds-paginator-item-shadow:none}}'};var MdsPaginatorItem=function(){function a(a){registerInstance(this,a);this.km=new KeyboardManager}a.prototype.componentDidLoad=function(){this.km.addElement(this.host);this.km.attachClickBehavior()};a.prototype.componentDidUpdate=function(){if(!this.disabled&&!this.selected){this.km.attachClickBehavior();return}this.km.detachClickBehavior()};a.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};a.prototype.render=function(){return h(Host,{key:"a3ce23954b5e1d520399f1b21d70d585ee016d47",tabindex:"0"},this.icon!==undefined?h("mds-icon",{class:"icon",name:this.icon}):h("mds-text",{class:"text",typography:"caption"},h("b",null,h("slot",null))))};Object.defineProperty(a.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return a}();MdsPaginatorItem.style=mdsPaginatorItemCss();export{MdsPaginatorItem as mds_paginator_item};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{m as miBaselineArrowBack}from"./arrow-back-DnEUG7st.js";import{m as miBaselineArrowForward}from"./arrow-forward-Bd0uuNDE.js";var mdsPaginatorCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-paginator-background:rgb(var(--tone-neutral-09,76 76 76));--mds-paginator-scroll-behavior:smooth;--tw-duration:initial;--tw-ease:initial}}}@layer reset,vendor,theme,base,components,utilities;: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}@property --mds-paginator-scroll-behavior{syntax:"smooth|auto";inherits:false;initial-value:smooth}:host{--mds-paginator-background:rgb(var(--tone-neutral-09,76 76 76));--mds-paginator-scroll-behavior:smooth;align-items:center;display:flex;gap:calc(var(--spacing,.0025rem)*100)}.pages{margin-inline:calc(var(--spacing,.0025rem)*200);-webkit-overflow-scrolling:touch;-ms-overflow-style:none;border-radius:var(--radius-full,1000px);padding:calc(var(--spacing,.0025rem)*200);scrollbar-width:none;--tw-duration:.2s;--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-paginator-background,rgb(var(--tone-neutral-09,76 76 76)));display:flex;flex-shrink:1;gap:2px;overflow:auto;scroll-behavior:var(--mds-paginator-scroll-behavior,smooth);transition-duration:.2s;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-context(:root.pref-animation-reduce){--mds-paginator-scroll-behavior:auto;transition-duration:0s}:host-context(:root.pref-animation-reduce) .pages{--mds-paginator-scroll-behavior:auto;transition-duration:0s}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)){--mds-paginator-background:rgb(var(--tone-neutral-09,76 76 76))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)) .pages{-webkit-box-shadow:var(--shadow-outline) inset;box-shadow:var(--shadow-outline) inset}:host-context(:root.pref-contrast-more) .pages{-webkit-box-shadow:var(--shadow-outline-50) inset;box-shadow:var(--shadow-outline-50) inset}:host-context(:root.pref-contrast-more) .item{--mds-paginator-item-background-hover:rgb(var(--tone-neutral,0 0 0));--mds-paginator-item-shadow-hover:var(--shadow-outline-50) inset;--mds-paginator-item-shadow:none}:is(:host-context(:root.pref-contrast-more) .item-first,:host-context(:root.pref-contrast-more) .item-last,:host-context(:root.pref-contrast-more) .item-icon){--mds-paginator-item-shadow-disabled:var(--shadow-outline-50) inset;--mds-paginator-item-shadow-hover:var(--shadow-outline-50) inset;--mds-paginator-item-shadow:var(--shadow-outline-50) inset}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion){:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))),:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .pages{--mds-paginator-scroll-behavior:auto;transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))){--mds-paginator-background:rgb(var(--tone-neutral-09,76 76 76))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))) .pages{-webkit-box-shadow:var(--shadow-outline) inset;box-shadow:var(--shadow-outline) inset}}@media (prefers-contrast:more){:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .pages{-webkit-box-shadow:var(--shadow-outline-50) inset;box-shadow:var(--shadow-outline-50) inset}:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .item{--mds-paginator-item-background-hover:rgb(var(--tone-neutral,0 0 0));--mds-paginator-item-shadow-hover:var(--shadow-outline-50) inset;--mds-paginator-item-shadow:none}:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .item-first,:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .item-icon,:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .item-last{--mds-paginator-item-shadow-disabled:var(--shadow-outline-50) inset;--mds-paginator-item-shadow-hover:var(--shadow-outline-50) inset;--mds-paginator-item-shadow:var(--shadow-outline-50) inset}}'};var MdsPaginator=function(){function t(t){var o=this;registerInstance(this,t);this.pageChangedEvent=createEvent(this,"mdsPaginatorChange");this.pages=0;this.currentPage=1;this.scrollPage=function(t){var e;var a=t;var r=(e=o.element.shadowRoot)===null||e===void 0?void 0:e.querySelector(".pages");var s=r===null||r===void 0?void 0:r.querySelectorAll("mds-paginator-item");if(!r||!s)return;if(a<0){r.scrollLeft=0;return}if(a>s.length-1){var i=s[s.length-1];r.scrollLeft=i.offsetLeft-r.offsetLeft;return}var n=s[a];r.scrollLeft=n.offsetLeft-r.offsetLeft-r.offsetWidth/2+n.offsetWidth/2};this.focus=function(t){var e;var a=(e=o.element.shadowRoot)===null||e===void 0?void 0:e.querySelector(".pages");var r=a===null||a===void 0?void 0:a.querySelectorAll("mds-paginator-item");if(r&&t.target){var s=Array.from(r);var i=s.indexOf(t.target);o.scrollPage(i)}};this.goToPage=function(t,e){if(t<1||t>o.pages){return}o.currentPage=t;if(o.pages>2){o.scrollPage(o.currentPage-2)}o.pageChangedEvent.emit({page:o.currentPage,caller:e})}}t.prototype.componentDidLoad=function(){var t=this;setTimeout((function(){t.goToPage(t.currentPage)}),10)};t.prototype.render=function(){var t=this;return h(Host,{key:"
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{m as miBaselineArrowBack}from"./arrow-back-DnEUG7st.js";import{m as miBaselineArrowForward}from"./arrow-forward-Bd0uuNDE.js";var mdsPaginatorCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@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{--mds-paginator-background:rgb(var(--tone-neutral-09,76 76 76));--mds-paginator-scroll-behavior:smooth;--tw-duration:initial;--tw-ease:initial}}}@layer reset,vendor,theme,base,components,utilities;: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}@property --mds-paginator-scroll-behavior{syntax:"smooth|auto";inherits:false;initial-value:smooth}:host{--mds-paginator-background:rgb(var(--tone-neutral-09,76 76 76));--mds-paginator-scroll-behavior:smooth;align-items:center;display:flex;gap:calc(var(--spacing,.0025rem)*100)}.pages{margin-inline:calc(var(--spacing,.0025rem)*200);-webkit-overflow-scrolling:touch;-ms-overflow-style:none;border-radius:var(--radius-full,1000px);padding:calc(var(--spacing,.0025rem)*200);scrollbar-width:none;--tw-duration:.2s;--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-paginator-background,rgb(var(--tone-neutral-09,76 76 76)));display:flex;flex-shrink:1;gap:2px;overflow:auto;scroll-behavior:var(--mds-paginator-scroll-behavior,smooth);transition-duration:.2s;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-context(:root.pref-animation-reduce){--mds-paginator-scroll-behavior:auto;transition-duration:0s}:host-context(:root.pref-animation-reduce) .pages{--mds-paginator-scroll-behavior:auto;transition-duration:0s}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)){--mds-paginator-background:rgb(var(--tone-neutral-09,76 76 76))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)) .pages{-webkit-box-shadow:var(--shadow-outline) inset;box-shadow:var(--shadow-outline) inset}:host-context(:root.pref-contrast-more) .pages{-webkit-box-shadow:var(--shadow-outline-50) inset;box-shadow:var(--shadow-outline-50) inset}:host-context(:root.pref-contrast-more) .item{--mds-paginator-item-background-hover:rgb(var(--tone-neutral,0 0 0));--mds-paginator-item-shadow-hover:var(--shadow-outline-50) inset;--mds-paginator-item-shadow:none}:is(:host-context(:root.pref-contrast-more) .item-first,:host-context(:root.pref-contrast-more) .item-last,:host-context(:root.pref-contrast-more) .item-icon){--mds-paginator-item-shadow-disabled:var(--shadow-outline-50) inset;--mds-paginator-item-shadow-hover:var(--shadow-outline-50) inset;--mds-paginator-item-shadow:var(--shadow-outline-50) inset}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion){:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))),:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .pages{--mds-paginator-scroll-behavior:auto;transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))){--mds-paginator-background:rgb(var(--tone-neutral-09,76 76 76))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))) .pages{-webkit-box-shadow:var(--shadow-outline) inset;box-shadow:var(--shadow-outline) inset}}@media (prefers-contrast:more){:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .pages{-webkit-box-shadow:var(--shadow-outline-50) inset;box-shadow:var(--shadow-outline-50) inset}:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .item{--mds-paginator-item-background-hover:rgb(var(--tone-neutral,0 0 0));--mds-paginator-item-shadow-hover:var(--shadow-outline-50) inset;--mds-paginator-item-shadow:none}:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .item-first,:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .item-icon,:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .item-last{--mds-paginator-item-shadow-disabled:var(--shadow-outline-50) inset;--mds-paginator-item-shadow-hover:var(--shadow-outline-50) inset;--mds-paginator-item-shadow:var(--shadow-outline-50) inset}}'};var MdsPaginator=function(){function t(t){var o=this;registerInstance(this,t);this.pageChangedEvent=createEvent(this,"mdsPaginatorChange");this.pages=0;this.currentPage=1;this.scrollPage=function(t){var e;var a=t;var r=(e=o.element.shadowRoot)===null||e===void 0?void 0:e.querySelector(".pages");var s=r===null||r===void 0?void 0:r.querySelectorAll("mds-paginator-item");if(!r||!s)return;if(a<0){r.scrollLeft=0;return}if(a>s.length-1){var i=s[s.length-1];r.scrollLeft=i.offsetLeft-r.offsetLeft;return}var n=s[a];r.scrollLeft=n.offsetLeft-r.offsetLeft-r.offsetWidth/2+n.offsetWidth/2};this.focus=function(t){var e;var a=(e=o.element.shadowRoot)===null||e===void 0?void 0:e.querySelector(".pages");var r=a===null||a===void 0?void 0:a.querySelectorAll("mds-paginator-item");if(r&&t.target){var s=Array.from(r);var i=s.indexOf(t.target);o.scrollPage(i)}};this.goToPage=function(t,e){if(t<1||t>o.pages){return}o.currentPage=t;if(o.pages>2){o.scrollPage(o.currentPage-2)}o.pageChangedEvent.emit({page:o.currentPage,caller:e})}}t.prototype.componentDidLoad=function(){var t=this;setTimeout((function(){t.goToPage(t.currentPage)}),10)};t.prototype.render=function(){var t=this;return h(Host,{key:"4ed1b9e1dba19bfa2d273b9a6e97acdf70bcbd98"},h("mds-paginator-item",{key:"61c2c9e923a9685a13521dce6e62f200346ac0f5",class:"item-icon",icon:miBaselineArrowBack,disabled:this.currentPage===1,onClick:function(o){return t.goToPage(t.currentPage-1,o.target)}}),this.pages>0&&h("mds-paginator-item",{key:"add4aed4b4db4a9f80be51c5725831a5da470e5d",class:"item-first",selected:this.currentPage===1,onClick:function(o){return t.goToPage(1,o.target)}},"1"),this.pages>2&&h("div",{key:"d0dc076d524c9069d5698861f8c04027d4c1533a",class:"pages"},Array.from(Array(this.pages-2).keys()).map((function(o){return h("mds-paginator-item",{key:o,class:"item",selected:t.currentPage===o+2,onClick:function(e){return t.goToPage(o+2,e.target)},onFocus:t.focus},o+2)}))),this.pages>1&&h("mds-paginator-item",{key:"1df645052a85be2f27c51204a2e6bb62c3d38100",class:"item-last",selected:this.currentPage===this.pages,onClick:function(o){return t.goToPage(t.pages,o.target)}},this.pages),h("mds-paginator-item",{key:"68bbe209171c987c6ca3df09347ad430ad2bd179",class:"item-icon",icon:miBaselineArrowForward,disabled:this.currentPage===this.pages,onClick:function(o){return t.goToPage(t.currentPage+1,o.target)}}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();MdsPaginator.style=mdsPaginatorCss();export{MdsPaginator as mds_paginator};
|