@maggioli-design-system/magma 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +16 -0
- package/LICENSE +21 -0
- package/agents/conventions.md +7 -0
- package/dist/cjs/{index-CWTZb9W2.js → index-Bg68W-da.js} +1 -1
- package/dist/cjs/{locale-Os4wg65H.js → locale-CaR39iYg.js} +12 -6
- package/dist/cjs/mds-banner_3.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/mds-calendar_2.cjs.entry.js +1 -1
- package/dist/cjs/mds-emoji.cjs.entry.js +1 -1
- package/dist/cjs/mds-file-preview.cjs.entry.js +1 -1
- package/dist/cjs/mds-file.cjs.entry.js +1 -1
- package/dist/cjs/mds-filter-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-filter.cjs.entry.js +1 -1
- package/dist/cjs/mds-header-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/mds-img.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-otp.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-select.cjs.entry.js +9 -5
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-upload.cjs.entry.js +1 -1
- package/dist/cjs/mds-input.cjs.entry.js +154 -37
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +1 -1
- package/dist/cjs/mds-keyboard.cjs.entry.js +7 -3
- package/dist/cjs/mds-label.cjs.entry.js +1 -1
- package/dist/cjs/mds-link.cjs.entry.js +1 -1
- package/dist/cjs/mds-mention.cjs.entry.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +1 -1
- package/dist/cjs/mds-note.cjs.entry.js +1 -1
- package/dist/cjs/mds-paginator.cjs.entry.js +1 -1
- package/dist/cjs/mds-policy-ai.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-animation.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-language.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-mode.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-theme.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref.cjs.entry.js +1 -1
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-push-notification.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu.cjs.entry.js +1 -1
- package/dist/cjs/mds-status-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +7 -5
- package/dist/cjs/mds-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-table-row.cjs.entry.js +1 -1
- package/dist/cjs/mds-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-toast.cjs.entry.js +1 -1
- package/dist/cjs/mds-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-url-view.cjs.entry.js +1 -1
- package/dist/cjs/mds-usage.cjs.entry.js +1 -1
- package/dist/collection/common/locale.js +12 -6
- package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-item/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +1 -1
- package/dist/collection/components/mds-author/AGENTS.md +1 -1
- package/dist/collection/components/mds-author/documentation.json +1 -1
- package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar/documentation.json +1 -1
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack/documentation.json +1 -1
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +1 -1
- package/dist/collection/components/mds-badge/AGENTS.md +1 -1
- package/dist/collection/components/mds-badge/documentation.json +1 -1
- package/dist/collection/components/mds-banner/AGENTS.md +1 -1
- package/dist/collection/components/mds-banner/documentation.json +1 -1
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-benchmark-bar/documentation.json +1 -1
- package/dist/collection/components/mds-bibliography/AGENTS.md +1 -1
- package/dist/collection/components/mds-bibliography/documentation.json +1 -1
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb/documentation.json +1 -1
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +1 -1
- package/dist/collection/components/mds-button/AGENTS.md +1 -1
- package/dist/collection/components/mds-button/documentation.json +1 -1
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +1 -1
- package/dist/collection/components/mds-button-dropdown/documentation.json +1 -1
- package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
- package/dist/collection/components/mds-button-group/documentation.json +1 -1
- package/dist/collection/components/mds-calendar/AGENTS.md +1 -1
- package/dist/collection/components/mds-calendar/documentation.json +1 -1
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-calendar-cell/documentation.json +1 -1
- package/dist/collection/components/mds-card/AGENTS.md +1 -1
- package/dist/collection/components/mds-card/documentation.json +1 -1
- package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-content/documentation.json +1 -1
- package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-footer/documentation.json +1 -1
- package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-header/documentation.json +1 -1
- package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-media/documentation.json +1 -1
- package/dist/collection/components/mds-chip/AGENTS.md +1 -1
- package/dist/collection/components/mds-chip/documentation.json +1 -1
- package/dist/collection/components/mds-details/AGENTS.md +1 -1
- package/dist/collection/components/mds-details/documentation.json +1 -1
- package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
- package/dist/collection/components/mds-dropdown/documentation.json +1 -1
- package/dist/collection/components/mds-emoji/AGENTS.md +1 -1
- package/dist/collection/components/mds-emoji/documentation.json +1 -1
- package/dist/collection/components/mds-emoji/mds-emoji.css +0 -1
- package/dist/collection/components/mds-entity/AGENTS.md +1 -1
- package/dist/collection/components/mds-entity/documentation.json +1 -1
- package/dist/collection/components/mds-file/AGENTS.md +1 -1
- package/dist/collection/components/mds-file/documentation.json +1 -1
- package/dist/collection/components/mds-file-preview/AGENTS.md +1 -1
- package/dist/collection/components/mds-file-preview/documentation.json +1 -1
- package/dist/collection/components/mds-filter/AGENTS.md +1 -1
- package/dist/collection/components/mds-filter/documentation.json +1 -1
- package/dist/collection/components/mds-filter-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-filter-item/documentation.json +1 -1
- package/dist/collection/components/mds-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-header/documentation.json +1 -1
- package/dist/collection/components/mds-header-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-header-bar/documentation.json +1 -1
- package/dist/collection/components/mds-help/AGENTS.md +1 -1
- package/dist/collection/components/mds-help/documentation.json +1 -1
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +1 -1
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +1 -1
- package/dist/collection/components/mds-hr/AGENTS.md +1 -1
- package/dist/collection/components/mds-hr/documentation.json +1 -1
- package/dist/collection/components/mds-icon/AGENTS.md +1 -1
- package/dist/collection/components/mds-icon/documentation.json +1 -1
- package/dist/collection/components/mds-img/AGENTS.md +1 -1
- package/dist/collection/components/mds-img/documentation.json +1 -1
- package/dist/collection/components/mds-input/AGENTS.md +4 -2
- package/dist/collection/components/mds-input/documentation.json +2 -2
- package/dist/collection/components/mds-input/mds-input.js +12 -7
- package/dist/collection/components/mds-input/meta/input-type/InputValidationManager.js +3 -3
- package/dist/collection/components/mds-input/meta/validators.js +28 -13
- package/dist/collection/components/mds-input/meta/validity.js +8 -10
- package/dist/collection/components/mds-input-date/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date/documentation.json +1 -1
- package/dist/collection/components/mds-input-date-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range/documentation.json +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +1 -1
- package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-field/documentation.json +1 -1
- package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-otp/documentation.json +1 -1
- package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-range/documentation.json +1 -1
- package/dist/collection/components/mds-input-range/mds-input-range.css +26 -19
- package/dist/collection/components/mds-input-select/AGENTS.md +2 -2
- package/dist/collection/components/mds-input-select/documentation.json +2 -2
- package/dist/collection/components/mds-input-select/mds-input-select.js +7 -3
- package/dist/collection/components/mds-input-switch/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-switch/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
- package/dist/collection/components/mds-input-upload/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-upload/documentation.json +1 -1
- package/dist/collection/components/mds-keyboard/AGENTS.md +2 -2
- package/dist/collection/components/mds-keyboard/documentation.json +2 -2
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +6 -2
- package/dist/collection/components/mds-keyboard-key/AGENTS.md +1 -1
- package/dist/collection/components/mds-keyboard-key/documentation.json +1 -1
- package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi/documentation.json +1 -1
- package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi-item/documentation.json +1 -1
- package/dist/collection/components/mds-label/AGENTS.md +1 -1
- package/dist/collection/components/mds-label/documentation.json +1 -1
- package/dist/collection/components/mds-link/AGENTS.md +1 -1
- package/dist/collection/components/mds-link/documentation.json +1 -1
- package/dist/collection/components/mds-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-list/documentation.json +1 -1
- package/dist/collection/components/mds-list-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-list-item/documentation.json +1 -1
- package/dist/collection/components/mds-mention/AGENTS.md +1 -1
- package/dist/collection/components/mds-mention/documentation.json +1 -1
- package/dist/collection/components/mds-modal/AGENTS.md +1 -1
- package/dist/collection/components/mds-modal/documentation.json +1 -1
- package/dist/collection/components/mds-note/AGENTS.md +1 -1
- package/dist/collection/components/mds-note/documentation.json +1 -1
- package/dist/collection/components/mds-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-notification/documentation.json +1 -1
- package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
- package/dist/collection/components/mds-paginator/documentation.json +1 -1
- package/dist/collection/components/mds-paginator-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-paginator-item/documentation.json +1 -1
- package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
- package/dist/collection/components/mds-policy-ai/documentation.json +1 -1
- package/dist/collection/components/mds-pref/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref/documentation.json +1 -1
- package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +1 -1
- package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-consumption/documentation.json +1 -1
- package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-contrast/documentation.json +1 -1
- package/dist/collection/components/mds-pref-language/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-language/documentation.json +1 -1
- package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-language-item/documentation.json +1 -1
- package/dist/collection/components/mds-pref-mode/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-mode/documentation.json +1 -1
- package/dist/collection/components/mds-pref-theme/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-theme/documentation.json +1 -1
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-theme-item/documentation.json +1 -1
- package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-cell/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-row/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-header/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list-item/documentation.json +1 -1
- package/dist/collection/components/mds-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-progress/documentation.json +1 -1
- package/dist/collection/components/mds-push-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification/documentation.json +1 -1
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification-item/documentation.json +1 -1
- package/dist/collection/components/mds-quote/AGENTS.md +1 -1
- package/dist/collection/components/mds-quote/documentation.json +1 -1
- package/dist/collection/components/mds-radial-menu/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-menu/documentation.json +1 -1
- package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-menu-item/documentation.json +1 -1
- package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
- package/dist/collection/components/mds-separator/AGENTS.md +1 -1
- package/dist/collection/components/mds-separator/documentation.json +1 -1
- package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
- package/dist/collection/components/mds-spinner/documentation.json +1 -1
- package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-status-bar/documentation.json +1 -1
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +1 -0
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-stepper-bar/documentation.json +1 -1
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +1 -1
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +6 -4
- package/dist/collection/components/mds-tab/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar-item/documentation.json +1 -1
- package/dist/collection/components/mds-tab-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-item/documentation.json +1 -1
- package/dist/collection/components/mds-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-table/documentation.json +1 -1
- package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-body/documentation.json +1 -1
- package/dist/collection/components/mds-table-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-cell/documentation.json +1 -1
- package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-footer/documentation.json +1 -1
- package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-header/documentation.json +1 -1
- package/dist/collection/components/mds-table-header-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-header-cell/documentation.json +1 -1
- package/dist/collection/components/mds-table-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-row/documentation.json +1 -1
- package/dist/collection/components/mds-text/AGENTS.md +1 -1
- package/dist/collection/components/mds-text/documentation.json +1 -1
- package/dist/collection/components/mds-toast/AGENTS.md +1 -1
- package/dist/collection/components/mds-toast/documentation.json +1 -1
- package/dist/collection/components/mds-toast-region/AGENTS.md +1 -1
- package/dist/collection/components/mds-toast-region/documentation.json +1 -1
- package/dist/collection/components/mds-tooltip/AGENTS.md +1 -1
- package/dist/collection/components/mds-tooltip/documentation.json +1 -1
- package/dist/collection/components/mds-tree/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree/documentation.json +1 -1
- package/dist/collection/components/mds-tree-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree-item/documentation.json +1 -1
- package/dist/collection/components/mds-url-view/AGENTS.md +1 -1
- package/dist/collection/components/mds-url-view/documentation.json +1 -1
- package/dist/collection/components/mds-usage/AGENTS.md +1 -1
- package/dist/collection/components/mds-usage/documentation.json +1 -1
- package/dist/collection/components/mds-video-wall/AGENTS.md +1 -1
- package/dist/collection/components/mds-video-wall/documentation.json +1 -1
- package/dist/collection/components/mds-zero/AGENTS.md +1 -1
- package/dist/collection/components/mds-zero/documentation.json +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-chip.js +1 -1
- package/dist/components/mds-emoji.js +1 -1
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +1 -1
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-img.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-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-link.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.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-radial-menu.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-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-toast.js +1 -1
- package/dist/components/mds-tree-item.js +1 -1
- package/dist/components/mds-url-view.js +1 -1
- package/dist/components/mds-usage.js +1 -1
- package/dist/components/{p-DF3PrYBI.js → p-5lLueiFt.js} +1 -1
- package/dist/components/{p-CLe_N2_H.js → p-BO-jHv-F.js} +1 -1
- package/dist/components/{p-CNZ8_QvE.js → p-BbgQG1UL.js} +2 -2
- package/dist/components/{p-DCrdKrky.js → p-CJYY4da7.js} +1 -1
- package/dist/components/{p-C1CTahjH.js → p-CPvuXO7s.js} +1 -1
- package/dist/components/{p-B8x-d2fx.js → p-CZjwSwe5.js} +1 -1
- package/dist/components/{p-Cd8id3Br.js → p-CaROqeeK.js} +1 -1
- package/dist/components/{p-CfQETwAK.js → p-Cu5nEwMu.js} +1 -1
- package/dist/components/{p-nsbhb0lz.js → p-D0A8gS-P.js} +1 -1
- package/dist/components/{p-C99SMdU_.js → p-DFD4E9zJ.js} +1 -1
- package/dist/components/{p-DiUUZ7ZA.js → p-DTtmr_Y9.js} +1 -1
- package/dist/components/{p-D2d9eOLi.js → p-DkYDXDkD.js} +1 -1
- package/dist/components/{p-uqwixjju.js → p-DucY18_e.js} +1 -1
- package/dist/components/p-yNPPTJ7i.js +1 -0
- package/dist/documentation.json +4 -4
- package/dist/esm/{index-D2_gI0qp.js → index-BJVvHlvf.js} +1 -1
- package/dist/esm/{locale-BQmO6K_S.js → locale-B6cOkl4I.js} +12 -6
- package/dist/esm/mds-banner_3.entry.js +1 -1
- package/dist/esm/mds-breadcrumb.entry.js +1 -1
- package/dist/esm/mds-button-dropdown.entry.js +1 -1
- package/dist/esm/mds-calendar_2.entry.js +1 -1
- package/dist/esm/mds-emoji.entry.js +1 -1
- package/dist/esm/mds-file-preview.entry.js +1 -1
- package/dist/esm/mds-file.entry.js +1 -1
- package/dist/esm/mds-filter-item.entry.js +1 -1
- package/dist/esm/mds-filter.entry.js +1 -1
- package/dist/esm/mds-header-bar.entry.js +1 -1
- package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm/mds-img.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +1 -1
- package/dist/esm/mds-input-date.entry.js +2 -2
- package/dist/esm/mds-input-otp.entry.js +1 -1
- package/dist/esm/mds-input-range.entry.js +1 -1
- package/dist/esm/mds-input-select.entry.js +9 -5
- package/dist/esm/mds-input-switch_2.entry.js +1 -1
- package/dist/esm/mds-input-tip_2.entry.js +1 -1
- package/dist/esm/mds-input-upload.entry.js +1 -1
- package/dist/esm/mds-input.entry.js +154 -37
- package/dist/esm/mds-keyboard-key.entry.js +1 -1
- package/dist/esm/mds-keyboard.entry.js +7 -3
- package/dist/esm/mds-label.entry.js +1 -1
- package/dist/esm/mds-link.entry.js +1 -1
- package/dist/esm/mds-mention.entry.js +1 -1
- package/dist/esm/mds-modal.entry.js +1 -1
- package/dist/esm/mds-note.entry.js +1 -1
- package/dist/esm/mds-paginator.entry.js +1 -1
- package/dist/esm/mds-policy-ai.entry.js +1 -1
- package/dist/esm/mds-pref-animation.entry.js +1 -1
- package/dist/esm/mds-pref-consumption.entry.js +1 -1
- package/dist/esm/mds-pref-contrast.entry.js +1 -1
- package/dist/esm/mds-pref-language-item.entry.js +1 -1
- package/dist/esm/mds-pref-language.entry.js +1 -1
- package/dist/esm/mds-pref-mode.entry.js +1 -1
- package/dist/esm/mds-pref-theme.entry.js +1 -1
- package/dist/esm/mds-pref.entry.js +1 -1
- package/dist/esm/mds-push-notification-item.entry.js +1 -1
- package/dist/esm/mds-push-notification.entry.js +1 -1
- package/dist/esm/mds-radial-menu.entry.js +1 -1
- package/dist/esm/mds-status-bar.entry.js +1 -1
- package/dist/esm/mds-stepper-bar-item.entry.js +7 -5
- package/dist/esm/mds-table-header.entry.js +1 -1
- package/dist/esm/mds-table-row.entry.js +1 -1
- package/dist/esm/mds-table.entry.js +1 -1
- package/dist/esm/mds-toast.entry.js +1 -1
- package/dist/esm/mds-tree-item.entry.js +1 -1
- package/dist/esm/mds-url-view.entry.js +1 -1
- package/dist/esm/mds-usage.entry.js +1 -1
- package/dist/esm-es5/{index-D2_gI0qp.js → index-BJVvHlvf.js} +1 -1
- package/dist/esm-es5/{locale-BQmO6K_S.js → locale-B6cOkl4I.js} +22 -18
- package/dist/esm-es5/mds-banner_3.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-calendar_2.entry.js +1 -1
- package/dist/esm-es5/mds-emoji.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +5 -5
- 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-horizontal-scroll.entry.js +1 -1
- package/dist/esm-es5/mds-img.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-otp.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +7 -7
- package/dist/esm-es5/mds-input-select.entry.js +5 -4
- package/dist/esm-es5/mds-input-switch_2.entry.js +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 +53 -50
- package/dist/esm-es5/mds-keyboard-key.entry.js +1 -1
- package/dist/esm-es5/mds-keyboard.entry.js +6 -3
- package/dist/esm-es5/mds-label.entry.js +1 -1
- package/dist/esm-es5/mds-link.entry.js +1 -1
- package/dist/esm-es5/mds-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-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-mode.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-push-notification-item.entry.js +1 -1
- package/dist/esm-es5/mds-push-notification.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu.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 +6 -3
- 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-toast.entry.js +1 -1
- package/dist/esm-es5/mds-tree-item.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/hydrate/index.js +190 -57
- package/dist/hydrate/index.mjs +190 -57
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-2a964578.entry.js → p-0193734e.entry.js} +1 -1
- package/dist/magma-components/{p-ae3bf24c.system.entry.js → p-046697e4.system.entry.js} +1 -1
- package/dist/magma-components/{p-81e02997.system.entry.js → p-071f5c7b.system.entry.js} +2 -2
- package/dist/magma-components/{p-a9ba496d.entry.js → p-075acd04.entry.js} +1 -1
- package/dist/magma-components/{p-94289f3d.system.entry.js → p-07a3c63c.system.entry.js} +5 -5
- package/dist/magma-components/{p-57839384.system.entry.js → p-093b8fbc.system.entry.js} +9 -6
- package/dist/magma-components/{p-a8e1ce2f.entry.js → p-0e2cd21e.entry.js} +1 -1
- package/dist/magma-components/{p-0eb3558a.entry.js → p-11320427.entry.js} +1 -1
- package/dist/magma-components/p-14635a8f.entry.js +1 -0
- package/dist/magma-components/{p-23c057a9.entry.js → p-168d5fad.entry.js} +1 -1
- package/dist/magma-components/{p-254ee71d.entry.js → p-17ec24dc.entry.js} +1 -1
- package/dist/magma-components/{p-f670ed20.entry.js → p-198ea5d8.entry.js} +1 -1
- package/dist/magma-components/p-1c2c4670.entry.js +1 -0
- package/dist/magma-components/{p-42e50f25.system.entry.js → p-1ea582a9.system.entry.js} +3 -3
- package/dist/magma-components/{p-2d3b5eb5.entry.js → p-227f57e6.entry.js} +1 -1
- package/dist/magma-components/{p-5c4e41d3.system.entry.js → p-2752b45a.system.entry.js} +1 -1
- package/dist/magma-components/{p-068e30a5.entry.js → p-29971e1d.entry.js} +1 -1
- package/dist/magma-components/{p-8d6470fb.system.entry.js → p-2a4d22c9.system.entry.js} +1 -1
- package/dist/magma-components/{p-d0a93a14.system.entry.js → p-2c3f518c.system.entry.js} +6 -3
- package/dist/magma-components/{p-1908f808.entry.js → p-2d9c9ef9.entry.js} +1 -1
- package/dist/magma-components/p-35528bdd.system.entry.js +225 -0
- package/dist/magma-components/{p-74f515c3.system.entry.js → p-37487e8b.system.entry.js} +2 -2
- package/dist/magma-components/{p-47717251.system.entry.js → p-38b16983.system.entry.js} +3 -3
- package/dist/magma-components/{p-ca1969c5.entry.js → p-3c669cfb.entry.js} +1 -1
- package/dist/magma-components/{p-4bc47ff0.system.entry.js → p-3e18b181.system.entry.js} +1 -1
- package/dist/magma-components/{p-000c315c.entry.js → p-3f68ddca.entry.js} +1 -1
- package/dist/magma-components/{p-0d32e196.system.entry.js → p-44333d50.system.entry.js} +5 -4
- package/dist/magma-components/{p-2eb4efcd.system.entry.js → p-44998584.system.entry.js} +2 -2
- package/dist/magma-components/{p-84777b38.system.entry.js → p-50705d36.system.entry.js} +2 -2
- package/dist/magma-components/{p-0148cf0a.entry.js → p-521ba3a8.entry.js} +1 -1
- package/dist/magma-components/{p-577ae081.system.entry.js → p-5472f18d.system.entry.js} +1 -1
- package/dist/magma-components/{p-396d95a1.system.entry.js → p-55b10b70.system.entry.js} +2 -2
- package/dist/magma-components/{p-617370e7.system.entry.js → p-624a3909.system.entry.js} +6 -6
- package/dist/magma-components/{p-5533b60d.system.entry.js → p-62e94d78.system.entry.js} +1 -1
- package/dist/magma-components/{p-b738d3c1.entry.js → p-69badbba.entry.js} +1 -1
- package/dist/magma-components/{p-29ab84bf.system.entry.js → p-6af00399.system.entry.js} +4 -4
- package/dist/magma-components/{p-3dc81ab9.system.entry.js → p-6dff107d.system.entry.js} +2 -2
- package/dist/magma-components/{p-70d38284.entry.js → p-770b3c4b.entry.js} +1 -1
- package/dist/magma-components/p-77545238.entry.js +1 -0
- package/dist/magma-components/{p-05ed801b.system.entry.js → p-79f543fc.system.entry.js} +1 -1
- package/dist/magma-components/p-7ad68b2f.entry.js +1 -0
- package/dist/magma-components/{p-336f56a4.entry.js → p-7b300282.entry.js} +1 -1
- package/dist/magma-components/{p-e5950aee.entry.js → p-7be0d28b.entry.js} +1 -1
- package/dist/magma-components/{p-15ffdcf6.entry.js → p-7ca73c56.entry.js} +1 -1
- package/dist/magma-components/{p-358aa5e7.entry.js → p-7d0c8177.entry.js} +1 -1
- package/dist/magma-components/{p-80eea067.system.entry.js → p-803957de.system.entry.js} +1 -1
- package/dist/magma-components/{p-cbb80188.entry.js → p-85a31141.entry.js} +1 -1
- package/dist/magma-components/{p-dbd34e3b.entry.js → p-85fb1d08.entry.js} +1 -1
- package/dist/magma-components/{p-5da14e81.entry.js → p-87baf82a.entry.js} +1 -1
- package/dist/magma-components/{p-3fd8ff0e.system.entry.js → p-88460d31.system.entry.js} +1 -1
- package/dist/magma-components/{p-fc2d1134.entry.js → p-8b501f92.entry.js} +1 -1
- package/dist/magma-components/{p-d980c3d2.system.entry.js → p-8ca2e879.system.entry.js} +1 -1
- package/dist/magma-components/{p-8680f63e.entry.js → p-8d14f146.entry.js} +1 -1
- package/dist/magma-components/{p-244676d3.system.entry.js → p-8f47eb63.system.entry.js} +1 -1
- package/dist/magma-components/{p-8173ed07.entry.js → p-93d7485d.entry.js} +2 -2
- package/dist/magma-components/{p-1eee93c8.system.entry.js → p-94439d8b.system.entry.js} +1 -1
- package/dist/magma-components/{p-4c6da1db.system.entry.js → p-947fcf74.system.entry.js} +3 -3
- package/dist/magma-components/{p-458eb34c.system.entry.js → p-97eb734a.system.entry.js} +2 -2
- package/dist/magma-components/{p-835d79e5.system.entry.js → p-99bfa07e.system.entry.js} +1 -1
- package/dist/magma-components/{p-26b9f2b7.system.entry.js → p-9cf81575.system.entry.js} +1 -1
- package/dist/magma-components/{p-8645533a.entry.js → p-9f6c502b.entry.js} +1 -1
- package/dist/magma-components/p-B8zYiZQY.system.js +1 -1
- package/dist/magma-components/{p-OOCOFWC0.system.js → p-CuHZXISO.system.js} +7 -3
- package/dist/magma-components/{p-DXAjcaHM.system.js → p-CxTugGM9.system.js} +1 -1
- package/dist/magma-components/{p-U5iXN1wy.js → p-Dx_cCOTw.js} +1 -1
- package/dist/magma-components/{p-Raj-urIN.js → p-OafT80hV.js} +1 -1
- package/dist/magma-components/{p-2cbd532a.system.entry.js → p-a0612465.system.entry.js} +1 -1
- package/dist/magma-components/{p-26451eb6.entry.js → p-a8a0a9ba.entry.js} +1 -1
- package/dist/magma-components/{p-d37fe692.system.entry.js → p-a987086b.system.entry.js} +1 -1
- package/dist/magma-components/{p-2cdf450c.system.entry.js → p-ad05ef26.system.entry.js} +1 -1
- package/dist/magma-components/{p-29162c98.entry.js → p-b01118cc.entry.js} +1 -1
- package/dist/magma-components/{p-791a6a6f.entry.js → p-b373cc32.entry.js} +1 -1
- package/dist/magma-components/{p-8279056b.system.entry.js → p-b4633c9c.system.entry.js} +1 -1
- package/dist/magma-components/{p-55746791.entry.js → p-b467f737.entry.js} +1 -1
- package/dist/magma-components/{p-bf0cb77d.system.entry.js → p-b5cc09c7.system.entry.js} +1 -1
- package/dist/magma-components/{p-87ce9d6c.entry.js → p-b69c3126.entry.js} +1 -1
- package/dist/magma-components/{p-29450db3.entry.js → p-b8a59768.entry.js} +1 -1
- package/dist/magma-components/{p-ab00b7b9.entry.js → p-b9ca6c2e.entry.js} +1 -1
- package/dist/magma-components/{p-77939a25.system.entry.js → p-bb282bc1.system.entry.js} +1 -1
- package/dist/magma-components/{p-6f81c9ef.system.entry.js → p-be6e156a.system.entry.js} +2 -2
- package/dist/magma-components/{p-729c89f9.system.entry.js → p-c03fc4fe.system.entry.js} +1 -1
- package/dist/magma-components/{p-2aac4003.entry.js → p-c40ad03a.entry.js} +1 -1
- package/dist/magma-components/{p-471227f2.system.entry.js → p-cc954b22.system.entry.js} +2 -2
- package/dist/magma-components/{p-1faa4f71.entry.js → p-ced3ebb8.entry.js} +1 -1
- package/dist/magma-components/{p-41a28f2a.system.entry.js → p-d254de66.system.entry.js} +2 -2
- package/dist/magma-components/{p-a76a9f92.system.entry.js → p-d3491226.system.entry.js} +1 -1
- package/dist/magma-components/{p-919f9dce.entry.js → p-d608b79c.entry.js} +1 -1
- package/dist/magma-components/{p-f2f992c2.system.entry.js → p-da93a00b.system.entry.js} +2 -2
- package/dist/magma-components/{p-287601bb.entry.js → p-dbca23af.entry.js} +1 -1
- package/dist/magma-components/{p-9855b517.entry.js → p-de1ae02c.entry.js} +1 -1
- package/dist/magma-components/{p-f1aafe07.entry.js → p-dedbf8d6.entry.js} +1 -1
- package/dist/magma-components/{p-0b3e4a97.system.entry.js → p-e2fa6300.system.entry.js} +1 -1
- package/dist/magma-components/{p-860bce85.system.entry.js → p-eb92312f.system.entry.js} +3 -3
- package/dist/magma-components/{p-b5789a7c.entry.js → p-ec635255.entry.js} +1 -1
- package/dist/magma-components/{p-d561062f.system.entry.js → p-f0285a1e.system.entry.js} +1 -1
- package/dist/magma-components/{p-b476435f.entry.js → p-f09b08f9.entry.js} +1 -1
- package/dist/magma-components/{p-481897a7.entry.js → p-f306b5c1.entry.js} +1 -1
- package/dist/magma-components/{p-d0bfdb44.system.entry.js → p-f39416e9.system.entry.js} +1 -1
- package/dist/magma-components/{p-f889d413.system.entry.js → p-f5326224.system.entry.js} +1 -1
- package/dist/magma-components/{p-73833405.entry.js → p-f5a33058.entry.js} +1 -1
- package/dist/magma-components/{p-96bb36b9.entry.js → p-f616f467.entry.js} +1 -1
- package/dist/magma-components/{p-34c2daa9.system.entry.js → p-f75935ed.system.entry.js} +1 -1
- package/dist/magma-components/{p-71cbc840.entry.js → p-f901c844.entry.js} +1 -1
- package/dist/magma-components/{p-656b00df.system.entry.js → p-fc22f5e0.system.entry.js} +8 -8
- package/dist/magma-components/{p-357724ab.entry.js → p-ffbf7448.entry.js} +1 -1
- package/dist/stats.json +777 -771
- package/dist/types/common/locale.d.ts +5 -0
- package/dist/types/components/mds-input/meta/validators.d.ts +7 -2
- package/dist/types/components/mds-input/meta/validity.d.ts +3 -2
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +2 -1
- package/package.json +1 -1
- package/dist/components/p-BbTcXgbr.js +0 -1
- package/dist/magma-components/p-632ad925.system.entry.js +0 -222
- package/dist/magma-components/p-644e64a0.entry.js +0 -1
- package/dist/magma-components/p-7ec1ea2e.entry.js +0 -1
- package/dist/magma-components/p-da24a265.entry.js +0 -1
- package/dist/magma-components/p-f78c1699.entry.js +0 -1
package/dist/hydrate/index.mjs
CHANGED
|
@@ -9126,10 +9126,18 @@ let Locale$1 = class Locale {
|
|
|
9126
9126
|
this.set = (configData) => {
|
|
9127
9127
|
this.config = configData;
|
|
9128
9128
|
};
|
|
9129
|
+
/**
|
|
9130
|
+
* The texts of a language: its own, those of its base language, or the ones of
|
|
9131
|
+
* `rollbackLanguage`. The page can name a region (`it-IT`), the config only has languages (`it`).
|
|
9132
|
+
*/
|
|
9133
|
+
this.texts = (language) => {
|
|
9134
|
+
var _a, _b;
|
|
9135
|
+
const configs = this.config;
|
|
9136
|
+
const code = language.toLowerCase();
|
|
9137
|
+
return (_b = (_a = configs[code]) !== null && _a !== void 0 ? _a : configs[code.split(/[-_]/)[0]]) !== null && _b !== void 0 ? _b : configs[this.rollbackLanguage];
|
|
9138
|
+
};
|
|
9129
9139
|
this.pluralize = (tag, context, language) => {
|
|
9130
|
-
const languagePhrase = this.
|
|
9131
|
-
? this.config[language][tag]
|
|
9132
|
-
: this.config[this.rollbackLanguage][tag];
|
|
9140
|
+
const languagePhrase = this.texts(language)[tag];
|
|
9133
9141
|
const phrases = [];
|
|
9134
9142
|
if (Array.isArray(languagePhrase)) {
|
|
9135
9143
|
phrases.push(languagePhrase[0]);
|
|
@@ -9158,9 +9166,7 @@ let Locale$1 = class Locale {
|
|
|
9158
9166
|
if (context) {
|
|
9159
9167
|
return this.pluralize(tag, context, language);
|
|
9160
9168
|
}
|
|
9161
|
-
return this.
|
|
9162
|
-
? this.config[language][tag]
|
|
9163
|
-
: this.config[this.rollbackLanguage][tag];
|
|
9169
|
+
return this.texts(language)[tag];
|
|
9164
9170
|
};
|
|
9165
9171
|
if (configData) {
|
|
9166
9172
|
this.set(configData);
|
|
@@ -28427,7 +28433,7 @@ var simiSvg = `<svg width="440" height="440" viewBox="0 0 440 440" fill="none" x
|
|
|
28427
28433
|
</svg>
|
|
28428
28434
|
`;
|
|
28429
28435
|
|
|
28430
|
-
const mdsEmojiCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-emoji-expression-follow-mouse-traits-duration:var(--duration-200,.2s);--mds-emoji-expression-follow-mouse-head-duration:var(--duration-300,.3s);--mds-emoji-expression-max-rotation:16deg;--mds-emoji-perspective:calc(var(--spacing,.0025rem)*10000);align-items:stretch;aspect-ratio:1;display:flex;height:calc(var(--spacing,.0025rem)*1200);justify-content:stretch;perspective:var(--mds-emoji-perspective,calc(var(--spacing,.0025rem)*10000));perspective-origin:50%;width:calc(var(--spacing,.0025rem)*1200)}svg{height:100%;overflow:visible;
|
|
28436
|
+
const mdsEmojiCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-emoji-expression-follow-mouse-traits-duration:var(--duration-200,.2s);--mds-emoji-expression-follow-mouse-head-duration:var(--duration-300,.3s);--mds-emoji-expression-max-rotation:16deg;--mds-emoji-perspective:calc(var(--spacing,.0025rem)*10000);align-items:stretch;aspect-ratio:1;display:flex;height:calc(var(--spacing,.0025rem)*1200);justify-content:stretch;perspective:var(--mds-emoji-perspective,calc(var(--spacing,.0025rem)*10000));perspective-origin:50%;width:calc(var(--spacing,.0025rem)*1200)}svg{height:100%;overflow:visible;transition:transform var(--duration-200,.2s) ease-out;width:100%}:host([name=mia]){--mds-emoji-mia-eyes-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242)));--mds-emoji-mia-hands-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-emoji-mia-head-color:rgb(var(--magma-accent-ai-surface-hover,var(--variant-ai-08,219 205 252)));--mds-emoji-mia-head-stroke-color:rgb(var(--magma-accent-ai-border,var(--variant-ai-06,184 156 250)));--mds-emoji-mia-head-stroke-width:0px;--mds-emoji-mia-mouth-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-emoji-offset-eyes:1px;--mds-emoji-offset-gadget:1px;--mds-emoji-offset-hands:2px;--mds-emoji-offset-head:0;--mds-emoji-offset-mouth:1px;container-type:size}:host([name=simi]){--mds-emoji-offset-ears:0;--mds-emoji-offset-eyebrows:10px;--mds-emoji-offset-eyes:7px;--mds-emoji-offset-gadget:14px;--mds-emoji-offset-hands:18px;--mds-emoji-offset-head:5px;--mds-emoji-offset-mouth:16px;--mds-emoji-simi-eye-light:#fff;--mds-emoji-simi-eye:#40281b;--mds-emoji-simi-eyebrow:#feefd8;--mds-emoji-simi-gadget:#2b1c15;--mds-emoji-simi-mouth-teeth:#fff;--mds-emoji-simi-mouth-throat:#c3481b;--mds-emoji-simi-mouth:#2b1c15;--mds-emoji-simi-nose-light:#7e695f;--mds-emoji-simi-nose:#2b1c15;--mds-emoji-simi-outline:#2b1c15;--mds-emoji-simi-skin-dark:#c3481b;--mds-emoji-simi-skin-light:#feefd8;--mds-emoji-simi-skin:#f36320}`;
|
|
28431
28437
|
|
|
28432
28438
|
class MdsEmoji {
|
|
28433
28439
|
constructor(hostRef) {
|
|
@@ -32263,9 +32269,9 @@ const flags = {
|
|
|
32263
32269
|
url: 'typeMismatch',
|
|
32264
32270
|
vatNumber: 'typeMismatch',
|
|
32265
32271
|
};
|
|
32266
|
-
const messages = new Locale$1({ el: localeEl$y, en: localeEn$z, es: localeEs$y, it: localeIt$z });
|
|
32272
|
+
const messages$1 = new Locale$1({ el: localeEl$y, en: localeEn$z, es: localeEs$y, it: localeIt$z });
|
|
32267
32273
|
/** The message of a problem, in the language of the page. */
|
|
32268
|
-
const validityMessage = ({ rule, context, message }) => message || messages.get(rule, context);
|
|
32274
|
+
const validityMessage = ({ rule, context, message }) => message || messages$1.get(rule, context);
|
|
32269
32275
|
/**
|
|
32270
32276
|
* Reports to the form the problem of a form-associated component, or clears it when there is
|
|
32271
32277
|
* none: like a native control, an invalid component matches `:invalid` and stops the submit of
|
|
@@ -32289,6 +32295,19 @@ const showPassword$3 = "Εμφάνιση κωδικού";
|
|
|
32289
32295
|
const speechToTextError$3 = "Η φωνητική υπαγόρευση δεν υποστηρίζεται από αυτό το πρόγραμμα περιήγησης";
|
|
32290
32296
|
const speechToTextOff$3 = "Διακοπή φωνητικής υπαγόρευσης";
|
|
32291
32297
|
const speechToTextOn$3 = "Έναρξη φωνητικής υπαγόρευσης";
|
|
32298
|
+
const validationCc$3 = "Μη έγκυρος αριθμός κάρτας";
|
|
32299
|
+
const validationCfLength$3 = "Ο φορολογικός κωδικός πρέπει να έχει 16 χαρακτήρες";
|
|
32300
|
+
const validationCfRegex$3 = "Ο φορολογικός κωδικός που εισαγάγατε δεν είναι σωστός";
|
|
32301
|
+
const validationEmail$3 = "Μη έγκυρη διεύθυνση email";
|
|
32302
|
+
const validationIsbn$3 = "Μη έγκυρος κωδικός ISBN";
|
|
32303
|
+
const validationIsbnFormat$3 = "Μη έγκυρη μορφή ISBN";
|
|
32304
|
+
const validationMax$3 = "Η μέγιστη τιμή είναι {{max}}";
|
|
32305
|
+
const validationMaxlength$3 = "Το μέγιστο αποδεκτό μήκος είναι {{maxlength}}";
|
|
32306
|
+
const validationMin$3 = "Η ελάχιστη τιμή είναι {{min}}";
|
|
32307
|
+
const validationMinlength$3 = "Το ελάχιστο αποδεκτό μήκος είναι {{minlength}}";
|
|
32308
|
+
const validationPattern$3 = "Μη έγκυρη μορφή";
|
|
32309
|
+
const validationPiva$3 = "Μη έγκυρος αριθμός ΦΠΑ";
|
|
32310
|
+
const validationUrl$3 = "Μη έγκυρη διεύθυνση URL";
|
|
32292
32311
|
var localeEl$x = {
|
|
32293
32312
|
decrease: decrease$3,
|
|
32294
32313
|
hidePassword: hidePassword$3,
|
|
@@ -32296,7 +32315,20 @@ var localeEl$x = {
|
|
|
32296
32315
|
showPassword: showPassword$3,
|
|
32297
32316
|
speechToTextError: speechToTextError$3,
|
|
32298
32317
|
speechToTextOff: speechToTextOff$3,
|
|
32299
|
-
speechToTextOn: speechToTextOn$3
|
|
32318
|
+
speechToTextOn: speechToTextOn$3,
|
|
32319
|
+
validationCc: validationCc$3,
|
|
32320
|
+
validationCfLength: validationCfLength$3,
|
|
32321
|
+
validationCfRegex: validationCfRegex$3,
|
|
32322
|
+
validationEmail: validationEmail$3,
|
|
32323
|
+
validationIsbn: validationIsbn$3,
|
|
32324
|
+
validationIsbnFormat: validationIsbnFormat$3,
|
|
32325
|
+
validationMax: validationMax$3,
|
|
32326
|
+
validationMaxlength: validationMaxlength$3,
|
|
32327
|
+
validationMin: validationMin$3,
|
|
32328
|
+
validationMinlength: validationMinlength$3,
|
|
32329
|
+
validationPattern: validationPattern$3,
|
|
32330
|
+
validationPiva: validationPiva$3,
|
|
32331
|
+
validationUrl: validationUrl$3
|
|
32300
32332
|
};
|
|
32301
32333
|
|
|
32302
32334
|
const decrease$2 = "Decrease";
|
|
@@ -32306,6 +32338,19 @@ const showPassword$2 = "Show password";
|
|
|
32306
32338
|
const speechToTextError$2 = "Voice dictation is not supported by this browser";
|
|
32307
32339
|
const speechToTextOff$2 = "Stop voice dictation";
|
|
32308
32340
|
const speechToTextOn$2 = "Start voice dictation";
|
|
32341
|
+
const validationCc$2 = "Invalid card number";
|
|
32342
|
+
const validationCfLength$2 = "The tax code must be 16 characters long";
|
|
32343
|
+
const validationCfRegex$2 = "The tax code entered is not correct";
|
|
32344
|
+
const validationEmail$2 = "Invalid email address";
|
|
32345
|
+
const validationIsbn$2 = "Invalid ISBN code";
|
|
32346
|
+
const validationIsbnFormat$2 = "Invalid ISBN format";
|
|
32347
|
+
const validationMax$2 = "The maximum value is {{max}}";
|
|
32348
|
+
const validationMaxlength$2 = "The maximum length accepted is {{maxlength}}";
|
|
32349
|
+
const validationMin$2 = "The minimum value is {{min}}";
|
|
32350
|
+
const validationMinlength$2 = "The minimum length accepted is {{minlength}}";
|
|
32351
|
+
const validationPattern$2 = "Invalid format";
|
|
32352
|
+
const validationPiva$2 = "Invalid VAT number";
|
|
32353
|
+
const validationUrl$2 = "Invalid URL";
|
|
32309
32354
|
var localeEn$y = {
|
|
32310
32355
|
decrease: decrease$2,
|
|
32311
32356
|
hidePassword: hidePassword$2,
|
|
@@ -32313,7 +32358,20 @@ var localeEn$y = {
|
|
|
32313
32358
|
showPassword: showPassword$2,
|
|
32314
32359
|
speechToTextError: speechToTextError$2,
|
|
32315
32360
|
speechToTextOff: speechToTextOff$2,
|
|
32316
|
-
speechToTextOn: speechToTextOn$2
|
|
32361
|
+
speechToTextOn: speechToTextOn$2,
|
|
32362
|
+
validationCc: validationCc$2,
|
|
32363
|
+
validationCfLength: validationCfLength$2,
|
|
32364
|
+
validationCfRegex: validationCfRegex$2,
|
|
32365
|
+
validationEmail: validationEmail$2,
|
|
32366
|
+
validationIsbn: validationIsbn$2,
|
|
32367
|
+
validationIsbnFormat: validationIsbnFormat$2,
|
|
32368
|
+
validationMax: validationMax$2,
|
|
32369
|
+
validationMaxlength: validationMaxlength$2,
|
|
32370
|
+
validationMin: validationMin$2,
|
|
32371
|
+
validationMinlength: validationMinlength$2,
|
|
32372
|
+
validationPattern: validationPattern$2,
|
|
32373
|
+
validationPiva: validationPiva$2,
|
|
32374
|
+
validationUrl: validationUrl$2
|
|
32317
32375
|
};
|
|
32318
32376
|
|
|
32319
32377
|
const decrease$1 = "Disminuir";
|
|
@@ -32323,6 +32381,19 @@ const showPassword$1 = "Mostrar contraseña";
|
|
|
32323
32381
|
const speechToTextError$1 = "El dictado por voz no es compatible con este navegador";
|
|
32324
32382
|
const speechToTextOff$1 = "Detener dictado por voz";
|
|
32325
32383
|
const speechToTextOn$1 = "Iniciar dictado por voz";
|
|
32384
|
+
const validationCc$1 = "Número de tarjeta no válido";
|
|
32385
|
+
const validationCfLength$1 = "El código fiscal debe tener 16 caracteres";
|
|
32386
|
+
const validationCfRegex$1 = "El código fiscal introducido no es correcto";
|
|
32387
|
+
const validationEmail$1 = "Dirección de correo electrónico no válida";
|
|
32388
|
+
const validationIsbn$1 = "Código ISBN no válido";
|
|
32389
|
+
const validationIsbnFormat$1 = "Formato ISBN no válido";
|
|
32390
|
+
const validationMax$1 = "El valor máximo es {{max}}";
|
|
32391
|
+
const validationMaxlength$1 = "La longitud máxima aceptada es {{maxlength}}";
|
|
32392
|
+
const validationMin$1 = "El valor mínimo es {{min}}";
|
|
32393
|
+
const validationMinlength$1 = "La longitud mínima aceptada es {{minlength}}";
|
|
32394
|
+
const validationPattern$1 = "Formato no válido";
|
|
32395
|
+
const validationPiva$1 = "Número de IVA no válido";
|
|
32396
|
+
const validationUrl$1 = "URL no válida";
|
|
32326
32397
|
var localeEs$x = {
|
|
32327
32398
|
decrease: decrease$1,
|
|
32328
32399
|
hidePassword: hidePassword$1,
|
|
@@ -32330,7 +32401,20 @@ var localeEs$x = {
|
|
|
32330
32401
|
showPassword: showPassword$1,
|
|
32331
32402
|
speechToTextError: speechToTextError$1,
|
|
32332
32403
|
speechToTextOff: speechToTextOff$1,
|
|
32333
|
-
speechToTextOn: speechToTextOn$1
|
|
32404
|
+
speechToTextOn: speechToTextOn$1,
|
|
32405
|
+
validationCc: validationCc$1,
|
|
32406
|
+
validationCfLength: validationCfLength$1,
|
|
32407
|
+
validationCfRegex: validationCfRegex$1,
|
|
32408
|
+
validationEmail: validationEmail$1,
|
|
32409
|
+
validationIsbn: validationIsbn$1,
|
|
32410
|
+
validationIsbnFormat: validationIsbnFormat$1,
|
|
32411
|
+
validationMax: validationMax$1,
|
|
32412
|
+
validationMaxlength: validationMaxlength$1,
|
|
32413
|
+
validationMin: validationMin$1,
|
|
32414
|
+
validationMinlength: validationMinlength$1,
|
|
32415
|
+
validationPattern: validationPattern$1,
|
|
32416
|
+
validationPiva: validationPiva$1,
|
|
32417
|
+
validationUrl: validationUrl$1
|
|
32334
32418
|
};
|
|
32335
32419
|
|
|
32336
32420
|
const decrease = "Diminuisci";
|
|
@@ -32340,6 +32424,19 @@ const showPassword = "Visualizza password";
|
|
|
32340
32424
|
const speechToTextError = "Dettatura vocale non supportata da questo browser";
|
|
32341
32425
|
const speechToTextOff = "Ferma dettatura vocale";
|
|
32342
32426
|
const speechToTextOn = "Inizia dettatura vocale";
|
|
32427
|
+
const validationCc = "numero di carta non valido";
|
|
32428
|
+
const validationCfLength = "Codice fiscale deve essere lungo 16 caratteri";
|
|
32429
|
+
const validationCfRegex = "Codice fiscale inserito non corretto";
|
|
32430
|
+
const validationEmail = "indirizzo email non valido";
|
|
32431
|
+
const validationIsbn = "codice isbn non valido";
|
|
32432
|
+
const validationIsbnFormat = "formato isbn non corretto";
|
|
32433
|
+
const validationMax = "valore massimo {{max}}";
|
|
32434
|
+
const validationMaxlength = "La lunghezza massima accettata è {{maxlength}}";
|
|
32435
|
+
const validationMin = "valore minimo {{min}}";
|
|
32436
|
+
const validationMinlength = "La lunghezza minima accettata è {{minlength}}";
|
|
32437
|
+
const validationPattern = "formato non valido";
|
|
32438
|
+
const validationPiva = "partita iva non valida";
|
|
32439
|
+
const validationUrl = "url non valido";
|
|
32343
32440
|
var localeIt$y = {
|
|
32344
32441
|
decrease: decrease,
|
|
32345
32442
|
hidePassword: hidePassword,
|
|
@@ -32347,9 +32444,28 @@ var localeIt$y = {
|
|
|
32347
32444
|
showPassword: showPassword,
|
|
32348
32445
|
speechToTextError: speechToTextError,
|
|
32349
32446
|
speechToTextOff: speechToTextOff,
|
|
32350
|
-
speechToTextOn: speechToTextOn
|
|
32351
|
-
|
|
32352
|
-
|
|
32447
|
+
speechToTextOn: speechToTextOn,
|
|
32448
|
+
validationCc: validationCc,
|
|
32449
|
+
validationCfLength: validationCfLength,
|
|
32450
|
+
validationCfRegex: validationCfRegex,
|
|
32451
|
+
validationEmail: validationEmail,
|
|
32452
|
+
validationIsbn: validationIsbn,
|
|
32453
|
+
validationIsbnFormat: validationIsbnFormat,
|
|
32454
|
+
validationMax: validationMax,
|
|
32455
|
+
validationMaxlength: validationMaxlength,
|
|
32456
|
+
validationMin: validationMin,
|
|
32457
|
+
validationMinlength: validationMinlength,
|
|
32458
|
+
validationPattern: validationPattern,
|
|
32459
|
+
validationPiva: validationPiva,
|
|
32460
|
+
validationUrl: validationUrl
|
|
32461
|
+
};
|
|
32462
|
+
|
|
32463
|
+
const messages = new Locale$1({ el: localeEl$x, en: localeEn$y, es: localeEs$x, it: localeIt$y });
|
|
32464
|
+
/**
|
|
32465
|
+
* The message of a failed validation, in the language of the page when the value is validated: a
|
|
32466
|
+
* validator is built once, and the language can change after that.
|
|
32467
|
+
*/
|
|
32468
|
+
const validationMessage = (tag, context) => messages.get(tag, context);
|
|
32353
32469
|
const NullValidator = () => null;
|
|
32354
32470
|
const requiredValidor = (input) => {
|
|
32355
32471
|
return input.length > 0 ? null : { required: '' };
|
|
@@ -32362,7 +32478,9 @@ const maxValidator = (max) => {
|
|
|
32362
32478
|
const value = parseFloat(input);
|
|
32363
32479
|
// Controls with NaN values after parsing should be treated as not having a
|
|
32364
32480
|
// maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max
|
|
32365
|
-
return !isNaN(value) && value > max
|
|
32481
|
+
return !isNaN(value) && value > max
|
|
32482
|
+
? { max: validationMessage('validationMax', { max }) }
|
|
32483
|
+
: null;
|
|
32366
32484
|
};
|
|
32367
32485
|
};
|
|
32368
32486
|
const minValidator = (min) => {
|
|
@@ -32373,26 +32491,28 @@ const minValidator = (min) => {
|
|
|
32373
32491
|
const value = parseFloat(input);
|
|
32374
32492
|
// Controls with NaN values after parsing should be treated as not having a
|
|
32375
32493
|
// minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min
|
|
32376
|
-
return !isNaN(value) && value < min
|
|
32494
|
+
return !isNaN(value) && value < min
|
|
32495
|
+
? { min: validationMessage('validationMin', { min }) }
|
|
32496
|
+
: null;
|
|
32377
32497
|
};
|
|
32378
32498
|
};
|
|
32379
|
-
const
|
|
32499
|
+
const maxLengthValidator = (length) => {
|
|
32380
32500
|
return (input) => {
|
|
32381
32501
|
if (input === '' || length === null) {
|
|
32382
32502
|
return null; // don't validate empty values to allow optional controls
|
|
32383
32503
|
}
|
|
32384
32504
|
return input.length > length
|
|
32385
|
-
? {
|
|
32505
|
+
? { maxlength: validationMessage('validationMaxlength', { maxlength: length }) }
|
|
32386
32506
|
: null;
|
|
32387
32507
|
};
|
|
32388
32508
|
};
|
|
32389
|
-
const
|
|
32509
|
+
const minLengthValidator = (length) => {
|
|
32390
32510
|
return (input) => {
|
|
32391
32511
|
if (input === '' || length === null) {
|
|
32392
32512
|
return null; // don't validate empty values to allow optional controls
|
|
32393
32513
|
}
|
|
32394
32514
|
return input.length < length
|
|
32395
|
-
? {
|
|
32515
|
+
? { minlength: validationMessage('validationMinlength', { minlength: length }) }
|
|
32396
32516
|
: null;
|
|
32397
32517
|
};
|
|
32398
32518
|
};
|
|
@@ -32420,7 +32540,7 @@ const patternValidator = (pattern) => {
|
|
|
32420
32540
|
return (input) => {
|
|
32421
32541
|
if (input === '')
|
|
32422
32542
|
return null; // don't validate empty values to allow optional controls
|
|
32423
|
-
return expression.test(input) ? null : { pattern: '
|
|
32543
|
+
return expression.test(input) ? null : { pattern: validationMessage('validationPattern') };
|
|
32424
32544
|
};
|
|
32425
32545
|
};
|
|
32426
32546
|
// the valid email address of the HTML spec, the one a native type="email" checks
|
|
@@ -32428,7 +32548,7 @@ const emailExpression = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z
|
|
|
32428
32548
|
const emailValidatorFn = (input) => {
|
|
32429
32549
|
if (input === '')
|
|
32430
32550
|
return null; // don't validate empty values to allow optional controls
|
|
32431
|
-
return emailExpression.test(input) ? null : { email: '
|
|
32551
|
+
return emailExpression.test(input) ? null : { email: validationMessage('validationEmail') };
|
|
32432
32552
|
};
|
|
32433
32553
|
// a native type="url" accepts an absolute URL, the one the URL parser reads without a base
|
|
32434
32554
|
const urlValidatorFn = (input) => {
|
|
@@ -32439,7 +32559,7 @@ const urlValidatorFn = (input) => {
|
|
|
32439
32559
|
return null;
|
|
32440
32560
|
}
|
|
32441
32561
|
catch (_a) {
|
|
32442
|
-
return { url: '
|
|
32562
|
+
return { url: validationMessage('validationUrl') };
|
|
32443
32563
|
}
|
|
32444
32564
|
};
|
|
32445
32565
|
/**
|
|
@@ -32449,7 +32569,7 @@ const urlValidatorFn = (input) => {
|
|
|
32449
32569
|
const pivaValidatorFn = (input) => {
|
|
32450
32570
|
if (input === '')
|
|
32451
32571
|
return null; // don't validate empty values to allow optional controls
|
|
32452
|
-
const error = { piva: '
|
|
32572
|
+
const error = { piva: validationMessage('validationPiva') };
|
|
32453
32573
|
if (!/^\d{11}$/.test(input))
|
|
32454
32574
|
return error;
|
|
32455
32575
|
const digits = input.split('').map(Number);
|
|
@@ -32468,7 +32588,7 @@ const pivaValidatorFn = (input) => {
|
|
|
32468
32588
|
const ccValidatorFn = (input) => {
|
|
32469
32589
|
if (input === '')
|
|
32470
32590
|
return null; // don't validate empty values to allow optional controls
|
|
32471
|
-
const error = { cc: '
|
|
32591
|
+
const error = { cc: validationMessage('validationCc') };
|
|
32472
32592
|
if (!/^\d+(?:[ -]\d+)*$/.test(input))
|
|
32473
32593
|
return error;
|
|
32474
32594
|
const digits = input.replace(/[ -]/g, '');
|
|
@@ -32491,7 +32611,7 @@ const isbnValidatorFn = (input) => {
|
|
|
32491
32611
|
if (input === '')
|
|
32492
32612
|
return null; // don't validate empty values to allow optional controls
|
|
32493
32613
|
if (Number.isNaN(input.slice(0, -1)) || (input.length !== 10 && input.length !== 13))
|
|
32494
|
-
return { 'isbn-error': '
|
|
32614
|
+
return { 'isbn-error': validationMessage('validationIsbnFormat') };
|
|
32495
32615
|
const v = input.split('').map((v) => (v === 'X' ? 10 : Number(v)));
|
|
32496
32616
|
let check = 0;
|
|
32497
32617
|
// check isbn-10
|
|
@@ -32509,7 +32629,7 @@ const isbnValidatorFn = (input) => {
|
|
|
32509
32629
|
}, 0);
|
|
32510
32630
|
check = numVerify % 10;
|
|
32511
32631
|
}
|
|
32512
|
-
return check === 0 ? null : { 'isbn-error': '
|
|
32632
|
+
return check === 0 ? null : { 'isbn-error': validationMessage('validationIsbn') };
|
|
32513
32633
|
};
|
|
32514
32634
|
class Validator {
|
|
32515
32635
|
constructor() {
|
|
@@ -32616,14 +32736,14 @@ function createInputValidationManager(type) {
|
|
|
32616
32736
|
return null; // don't validate empty values to allow optional controls
|
|
32617
32737
|
return InputMaskPattern.CF_Regex.test(input)
|
|
32618
32738
|
? null
|
|
32619
|
-
: { 'cf-regex': '
|
|
32739
|
+
: { 'cf-regex': validationMessage('validationCfRegex') };
|
|
32620
32740
|
});
|
|
32621
32741
|
inputManager.validator.addValidator((input) => {
|
|
32622
32742
|
if (input === '')
|
|
32623
32743
|
return null; // don't validate empty values to allow optional controls
|
|
32624
32744
|
return input.length === 16
|
|
32625
32745
|
? null
|
|
32626
|
-
: { 'cf-length': '
|
|
32746
|
+
: { 'cf-length': validationMessage('validationCfLength') };
|
|
32627
32747
|
});
|
|
32628
32748
|
break;
|
|
32629
32749
|
case 'isbn':
|
|
@@ -32640,14 +32760,13 @@ function createInputValidationManager(type) {
|
|
|
32640
32760
|
return inputManager;
|
|
32641
32761
|
}
|
|
32642
32762
|
|
|
32643
|
-
// the validators of the type carry an Italian message: the form gets the localized one instead
|
|
32644
|
-
const typeErrors = ['cf-length', 'cf-regex', 'isbn-error'];
|
|
32645
32763
|
/**
|
|
32646
32764
|
* The problem reported to the form for the errors of a value. The first validator that fails
|
|
32647
32765
|
* decides it: the ones of the type come first, then required, max, min, maxlength, minlength,
|
|
32648
|
-
* pattern and the custom ones last,
|
|
32766
|
+
* pattern and the custom ones last. The codice fiscale and ISBN validators, like the custom ones,
|
|
32767
|
+
* give the form their own message, already in the language of the page.
|
|
32649
32768
|
*/
|
|
32650
|
-
const validityProblem = (errors,
|
|
32769
|
+
const validityProblem = (errors, constraints) => {
|
|
32651
32770
|
const [key] = Object.keys(errors);
|
|
32652
32771
|
switch (key) {
|
|
32653
32772
|
case 'required':
|
|
@@ -32656,11 +32775,10 @@ const validityProblem = (errors, value, constraints) => {
|
|
|
32656
32775
|
return { rule: 'max', context: { max: constraints.max } };
|
|
32657
32776
|
case 'min':
|
|
32658
32777
|
return { rule: 'min', context: { min: constraints.min } };
|
|
32659
|
-
|
|
32660
|
-
|
|
32661
|
-
|
|
32662
|
-
|
|
32663
|
-
: { rule: 'minlength', context: { minlength: constraints.minlength } };
|
|
32778
|
+
case 'maxlength':
|
|
32779
|
+
return { rule: 'maxlength', context: { maxlength: constraints.maxlength } };
|
|
32780
|
+
case 'minlength':
|
|
32781
|
+
return { rule: 'minlength', context: { minlength: constraints.minlength } };
|
|
32664
32782
|
case 'pattern':
|
|
32665
32783
|
return { rule: 'pattern' };
|
|
32666
32784
|
case 'email':
|
|
@@ -32672,7 +32790,7 @@ const validityProblem = (errors, value, constraints) => {
|
|
|
32672
32790
|
case 'cc':
|
|
32673
32791
|
return { rule: 'cardNumber' };
|
|
32674
32792
|
default:
|
|
32675
|
-
return { rule: 'invalid', message:
|
|
32793
|
+
return { rule: 'invalid', message: errors[key] };
|
|
32676
32794
|
}
|
|
32677
32795
|
};
|
|
32678
32796
|
|
|
@@ -32997,9 +33115,9 @@ class MdsInput {
|
|
|
32997
33115
|
if (min !== undefined)
|
|
32998
33116
|
validator.addValidator(minValidator(min));
|
|
32999
33117
|
if (this.maxlength !== undefined && this.maxlength !== 0 && !Number.isNaN(this.maxlength))
|
|
33000
|
-
validator.addValidator(
|
|
33118
|
+
validator.addValidator(maxLengthValidator(this.maxlength));
|
|
33001
33119
|
if (this.minlength !== undefined && this.minlength !== 0 && !Number.isNaN(this.minlength))
|
|
33002
|
-
validator.addValidator(
|
|
33120
|
+
validator.addValidator(minLengthValidator(this.minlength));
|
|
33003
33121
|
const pattern = this.patternApplies() ? patternValidator((_b = this.pattern) !== null && _b !== void 0 ? _b : '') : null;
|
|
33004
33122
|
if (pattern)
|
|
33005
33123
|
validator.addValidator(pattern);
|
|
@@ -33029,7 +33147,7 @@ class MdsInput {
|
|
|
33029
33147
|
const value = (_a = this.value) !== null && _a !== void 0 ? _a : '';
|
|
33030
33148
|
const errors = this.inputValidation.validator.check(value);
|
|
33031
33149
|
const problem = errors
|
|
33032
|
-
? validityProblem(errors,
|
|
33150
|
+
? validityProblem(errors, {
|
|
33033
33151
|
max: this.numericBound(this.max),
|
|
33034
33152
|
maxlength: this.maxlength,
|
|
33035
33153
|
min: this.numericBound(this.min),
|
|
@@ -33071,13 +33189,18 @@ class MdsInput {
|
|
|
33071
33189
|
* Emits the change event when the component value changes
|
|
33072
33190
|
*/
|
|
33073
33191
|
valueChanged() {
|
|
33074
|
-
var _a;
|
|
33192
|
+
var _a, _b;
|
|
33075
33193
|
this.changeEvent.emit({ value: this.value });
|
|
33076
33194
|
setFormValue(this.internals, (_a = this.value) !== null && _a !== void 0 ? _a : null);
|
|
33077
33195
|
this.updateFormValidity();
|
|
33078
33196
|
if (this.maxlength !== undefined) {
|
|
33079
33197
|
this.countMaxLength();
|
|
33080
33198
|
}
|
|
33199
|
+
if (!this.validated) {
|
|
33200
|
+
// pristine field: only the required tip follows, the variant waits for the first blur
|
|
33201
|
+
this.isValid = !(this.required && ((_b = this.value) !== null && _b !== void 0 ? _b : '') === '');
|
|
33202
|
+
return;
|
|
33203
|
+
}
|
|
33081
33204
|
// if is necessary for skip validation when reset input to retype correct value, validation is always onBlur
|
|
33082
33205
|
if (this.value === '')
|
|
33083
33206
|
return;
|
|
@@ -33179,9 +33302,9 @@ class MdsInput {
|
|
|
33179
33302
|
}
|
|
33180
33303
|
render() {
|
|
33181
33304
|
var _a, _b, _c;
|
|
33182
|
-
return (hAsync(Host, { key: '
|
|
33305
|
+
return (hAsync(Host, { key: '5c6cffc948d7b76fe55febf75fbfebd742174e2f', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, this.type === 'number' && this.controlsLayout === 'horizontal' && (hAsync("mds-button", { key: '61d6e02f0a86d8cb54c03c0c9958a7cdc24e2872', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineKeyboardArrowDown : miBaselineRemove, disabled: !this.canEdit(), onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), variant: "dark", tone: "text", part: "counter-button-decrease" })), this.type === 'textarea' ? (hAsync("textarea", { "aria-label": this.accessibleName, class: clsx('input', ((_a = this.icon) !== null && _a !== void 0 ? _a : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoFocus: this.autofocus, disabled: this.isDisabled(), maxLength: this.maxlength, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyDown: this.onKeyDown, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: (input) => (this.nativeInput = input), required: this.required, tabIndex: this.tabindex, value: this.value })) : (hAsync("input", { "aria-label": this.accessibleName, class: clsx('input', ((_b = this.icon) !== null && _b !== void 0 ? _b : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoComplete: this.autocomplete, autoFocus: this.autofocus, disabled: this.isDisabled(), max: this.max, maxLength: this.maxlength, min: this.min, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyDown: this.onKeyDown, pattern: this.pattern, list: this.datalistId, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: (input) => (this.nativeInput = input), required: this.required, step: this.step, tabIndex: this.tabindex, type: this.type === 'password' && this.isPasswordVisible ? 'text' : this.type, value: this.value })), this.type === 'number' && this.controlsLayout === 'vertical' && (hAsync("div", { key: 'af496730c2302a17477e1994ab5c7fd79fd8cc20', class: "counter counter--vertical" }, hAsync("mds-button", { key: 'fb498f8604881bb2f065dbdd2559e397998a2628', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineKeyboardArrowUp : miBaselineAdd, disabled: !this.canEdit(), onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), variant: "dark", size: "sm", tone: "text", part: "counter-button-increase" }), hAsync("mds-button", { key: '5ade145d05883ae99931d7148facf5adad4fe4fe', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineKeyboardArrowDown : miBaselineRemove, disabled: !this.canEdit(), onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), variant: "dark", size: "sm", tone: "text", part: "counter-button-decrease" }))), this.type === 'number' && this.controlsLayout === 'horizontal' && (hAsync("mds-button", { key: '90a0bd020222ab7571fbfd5a09a2f87e3cbba350', class: "counter-button counter-button--horizontal counter-button--increase", variant: "dark", tone: "text", icon: this.controlsIcon === 'arrow' ? miBaselineKeyboardArrowUp : miBaselineAdd, disabled: !this.canEdit(), onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" })), this.type === 'password' && (hAsync("mds-button", { key: '1fe84cb2da7422fa1d7a058c4e25afcbf589a0ab', class: "password-toggle-button", size: this.buttonSize(), variant: "dark", tone: "text", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, disabled: this.isDisabled(), onClick: this.handlePasswordToggleClick, tabindex: "0", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" })), this.type === 'password' && !this.isPasswordVisible && ((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) > 0 && (hAsync("div", { key: '4afd281972e3af569fb4cd4cb01b1af98d86a92e', class: "password-mask" }, hAsync("div", { key: 'ca27f52f3c16eba0e221759b6608f2d252586b80', class: "password-mask-items", part: "password-mask-items" }, Array.from({ length: this.value.length }).map((_, index) => (hAsync("div", { key: index, class: "password-mask-item", part: "password-mask-item" })))))), this.mic && (hAsync("mds-button", { key: 'f4660d79f8156b20a568fddc2d6fad86e5e60ea2', class: clsx('mic-toggle-button', this.isRecording && 'mic-toggle-button--recording'), size: this.buttonSize(), icon: this.speechToTextIcon, disabled: !this.canEdit(), onClick: this.toggleTextRecognition, tabindex: "0", title: this.t.get(this.speechToTextLabelKey), variant: "dark", tone: "text", part: "mic-toggle-button" })), hAsync("mds-input-tip", { key: 'a1604ac4ffa67a652d85aa176de84f93d00e3812', position: "top", active: this.hasFocus, part: "tip-top" }, this.isDisabled() && (hAsync("mds-input-tip-item", { key: 'b6180fb526346747972fdb976105f655b30cc9d5', expanded: true, variant: "disabled" })), this.readonly && hAsync("mds-input-tip-item", { key: '003649ade3f41ec1531e5e43cdb5d2b16aeeb71d', expanded: true, variant: "readonly" }), this.required && (hAsync("mds-input-tip-item", { key: 'a978def1dcc891c369b613a220ffadfd94eaeb17', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' }))), hAsync("mds-input-tip", { key: '98d5251c729d9027135ffca4e8f53fbbfb6782be', position: "bottom", active: this.hasFocus, part: "tip-bottom" }, this.tip && (hAsync("mds-input-tip-item", { key: '4159b3c1b04dcacabf6475e62ef8640c7ace6c42', expanded: true, variant: "text" }, this.tip)), this.maxlength && (hAsync("mds-input-tip-item", { key: '1f6fc0d71569dc2eaf5bc3bbc1da684facf03805', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel))), this.datalist && (hAsync("datalist", { key: '285ac8bd661be1ae27a653c726b83111939197a3', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
|
|
33183
33306
|
return hAsync("option", { key: i, value: element });
|
|
33184
|
-
}))), this.icon && !this.await && (hAsync("mds-icon", { key: '
|
|
33307
|
+
}))), this.icon && !this.await && (hAsync("mds-icon", { key: 'fb198016da6c8ebba88206a8fc5b5ec831d0036f', class: clsx('icon', this.variant), name: this.icon })), hAsync("mds-spinner", { key: 'df2bfea69039e8eb9a34baa5d84525a6191a8e93', running: this.await, class: clsx('await', this.variant) })));
|
|
33185
33308
|
}
|
|
33186
33309
|
static get formAssociated() { return true; }
|
|
33187
33310
|
get el() { return getElement(this); }
|
|
@@ -34629,7 +34752,7 @@ class MdsInputOtp {
|
|
|
34629
34752
|
}; }
|
|
34630
34753
|
}
|
|
34631
34754
|
|
|
34632
|
-
const mdsInputRangeCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-range-transition-duration:var(--duration-300,.3s);--private-input-range-transition-duration:var(--mds-input-range-transition-duration);--mds-input-range-thumb-background-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-thumb-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-input-range-thumb-cursor:col-resize;--mds-input-range-thumb-size:calc(var(--spacing,.0025rem)*400);--mds-input-range-track-background-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-progress-background-disabled:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-input-range-track-size:calc(var(--spacing,.0025rem)*600);--private-border-width:calc(var(--mds-input-range-track-size)/2 - var(--mds-input-range-thumb-size)/2);--private-thumb-size:calc(var(--mds-input-range-thumb-size) + var(--private-border-width)*2);display:grid;gap:calc(var(--spacing,.0025rem)*200);transition-duration:var(--private-input-range-transition-duration);transition-property:color;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1))}.header{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{align-items:center;display:flex;height:var(--private-thumb-size);position:relative}.track{box-sizing:border-box;position:absolute;width:100%}.field{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));appearance:none;background-color:#0000;border-radius:var(--magma-radius-full,var(--radius-full,1000px));flex-grow:1;height:calc(var(--spacing,.0025rem)*400);margin:0;outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;z-index:20}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.field::-webkit-slider-thumb{appearance:none;background-color:var(--mds-input-range-thumb-background);border-color:var(--mds-input-range-track-progress-background);border-radius:var(--mds-input-range-thumb-size);border-style:solid;border-width:var(--private-border-width);cursor:var(--mds-input-range-thumb-cursor);height:var(--private-thumb-size);line-height:0;transform:translateY(-50%);transition-property:background-color,border;width:var(--private-thumb-size)}.field::-webkit-slider-runnable-track{appearance:none;border:0;height:0;width:100%}.track-progress{background-color:var(--mds-input-range-track-progress-background);width:calc((100% - var(--mds-input-range-track-size))*(var(--mds-input-range-progress,0)*0.01) + var(--mds-input-range-track-size)/2)}.track-progress,.track-total{display:flex;height:var(--mds-input-range-track-size);transition-duration:var(--private-input-range-transition-duration);transition-property:background-color}.track-total{background-color:var(--mds-input-range-track-background);overflow:hidden;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1));width:100%}.contrast-area,.track-total{border-radius:var(--mds-input-range-track-size)}.contrast-area{margin-left:calc(var(--spacing,.0025rem)*100);margin-right:calc(var(--spacing,.0025rem)*100)}:host(
|
|
34755
|
+
const mdsInputRangeCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-range-transition-duration:var(--duration-300,.3s);--private-input-range-transition-duration:var(--mds-input-range-transition-duration);--mds-input-range-thumb-background-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-thumb-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-input-range-thumb-cursor:col-resize;--mds-input-range-thumb-size:calc(var(--spacing,.0025rem)*400);--mds-input-range-track-background-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-progress-background-disabled:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-input-range-track-size:calc(var(--spacing,.0025rem)*600);--private-border-width:calc(var(--mds-input-range-track-size)/2 - var(--mds-input-range-thumb-size)/2);--private-thumb-size:calc(var(--mds-input-range-thumb-size) + var(--private-border-width)*2);display:grid;gap:calc(var(--spacing,.0025rem)*200);transition-duration:var(--private-input-range-transition-duration);transition-property:color;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1))}.header{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{align-items:center;display:flex;height:var(--private-thumb-size);position:relative}.track{box-sizing:border-box;position:absolute;width:100%}.field{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));appearance:none;background-color:#0000;border-radius:var(--magma-radius-full,var(--radius-full,1000px));flex-grow:1;height:calc(var(--spacing,.0025rem)*400);margin:0;outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;z-index:20}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.field::-webkit-slider-thumb{appearance:none;background-color:var(--mds-input-range-thumb-background);border-color:var(--mds-input-range-track-progress-background);border-radius:var(--mds-input-range-thumb-size);border-style:solid;border-width:var(--private-border-width);cursor:var(--mds-input-range-thumb-cursor);height:var(--private-thumb-size);line-height:0;transform:translateY(-50%);transition-property:background-color,border;width:var(--private-thumb-size)}.field::-webkit-slider-runnable-track{appearance:none;border:0;height:0;width:100%}.track-progress{background-color:var(--mds-input-range-track-progress-background);width:calc((100% - var(--mds-input-range-track-size))*(var(--mds-input-range-progress,0)*0.01) + var(--mds-input-range-track-size)/2)}.track-progress,.track-total{display:flex;height:var(--mds-input-range-track-size);transition-duration:var(--private-input-range-transition-duration);transition-property:background-color}.track-total{background-color:var(--mds-input-range-track-background);overflow:hidden;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1));width:100%}.contrast-area,.track-total{border-radius:var(--mds-input-range-track-size)}.contrast-area{margin-left:calc(var(--spacing,.0025rem)*100);margin-right:calc(var(--spacing,.0025rem)*100)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-range-thumb-background:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([pref-contrast=more]){color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host(:disabled:not([disabled=false])),:host([disabled]:not([disabled=false])){--mds-input-range-thumb-background:var(--mds-input-range-thumb-background-disabled);--mds-input-range-track-background:var(--mds-input-range-track-background-disabled);--mds-input-range-track-progress-background:var(--mds-input-range-track-progress-background-disabled)}:host([disabled]:not([disabled=false])) .field::-webkit-slider-thumb{cursor:not-allowed}:host(:disabled:not([disabled=false])) .field::-webkit-slider-thumb{cursor:not-allowed}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-range-thumb-background:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}`;
|
|
34633
34756
|
|
|
34634
34757
|
/**
|
|
34635
34758
|
* @part header - The element containing the labels displayed over the input element
|
|
@@ -34932,7 +35055,8 @@ class MdsInputSelect {
|
|
|
34932
35055
|
/**
|
|
34933
35056
|
* Reports the selection to the form and emits the change, once per selection: a single select
|
|
34934
35057
|
* submits its value, a multiple one an entry per selected option under `name`, as a native
|
|
34935
|
-
* select.
|
|
35058
|
+
* select. The first selection, the one of load, is recorded without a change: as on a native
|
|
35059
|
+
* select, nothing has been chosen yet.
|
|
34936
35060
|
*/
|
|
34937
35061
|
syncSelection() {
|
|
34938
35062
|
var _a;
|
|
@@ -34943,7 +35067,10 @@ class MdsInputSelect {
|
|
|
34943
35067
|
const selection = JSON.stringify([value, values]);
|
|
34944
35068
|
if (selection === this.emittedSelection)
|
|
34945
35069
|
return;
|
|
35070
|
+
const loading = this.emittedSelection === undefined;
|
|
34946
35071
|
this.emittedSelection = selection;
|
|
35072
|
+
if (loading)
|
|
35073
|
+
return;
|
|
34947
35074
|
this.changeEvent.emit({ value, values });
|
|
34948
35075
|
}
|
|
34949
35076
|
updateFormValue(values) {
|
|
@@ -35112,12 +35239,12 @@ class MdsInputSelect {
|
|
|
35112
35239
|
}
|
|
35113
35240
|
render() {
|
|
35114
35241
|
var _a;
|
|
35115
|
-
return (hAsync(Host, { key: '
|
|
35242
|
+
return (hAsync(Host, { key: '8f7131a5ac5e7e6c398d060d1cf17de1b65d0b95', "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("select", { key: '40850af3aea61f82c8cf95e5b7e8559524ec37cb', "aria-label": this.accessibleName, class: "input", onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.isDisabled(), multiple: this.multiple, size: this.rows || this.legacyRows() || 0, part: "select", ref: (el) => (this.selectEl = el) }, hAsync("option", { key: '02dd4058f848557e9e44a0b13694df8ea29f5f09', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue != null &&
|
|
35116
35243
|
this.defaultValue !== '' &&
|
|
35117
35244
|
this.defaultValue !== 0 &&
|
|
35118
35245
|
!Number.isNaN(this.defaultValue)
|
|
35119
35246
|
? undefined
|
|
35120
|
-
: true }, this.placeholder)), hAsync("div", { key: '
|
|
35247
|
+
: true }, this.placeholder)), hAsync("div", { key: '606ce4acbc43476392c3d65d9bdf73d45c5d7da2', class: "icon-container" }, hAsync("mds-icon", { key: '844fe12e9494c7baaf11306090a5475e5041aab9', class: "icon", name: miBaselineKeyboardArrowDown })), hAsync("div", { key: 'ccb1fc6353ea3e62b7baa65f05fee83ad19c2745', class: "option-container" }, hAsync("slot", { key: '466546a17018cf6658fa6035048990afee0a4097', onSlotchange: this.onSlotChangeHandler })), hAsync("mds-input-tip", { key: '72f16cbf02d298614cb36fde62a9cba23b836071', position: "top", active: this.hasFocus, part: "tip-top" }, this.isDisabled() && (hAsync("mds-input-tip-item", { key: '4be88932616cae7f72f043006b36267c8b4e3fdc', expanded: true, variant: "disabled" })), this.required && (hAsync("mds-input-tip-item", { key: '5686e299d11f8622c2a5e7d12b497db5d3c097d2', expanded: this.hasFocus, variant: ((_a = this.value) !== null && _a !== void 0 ? _a : '') === '' ? 'required' : 'required-success' })))));
|
|
35121
35248
|
}
|
|
35122
35249
|
static get formAssociated() { return true; }
|
|
35123
35250
|
get host() { return getElement(this); }
|
|
@@ -38282,7 +38409,11 @@ class MdsKeyboard {
|
|
|
38282
38409
|
}
|
|
38283
38410
|
return undefined;
|
|
38284
38411
|
};
|
|
38285
|
-
this.checkKeyboardShortcut = () => {
|
|
38412
|
+
this.checkKeyboardShortcut = (event) => {
|
|
38413
|
+
// a key released with no press of its own in this run belongs to whatever started the run:
|
|
38414
|
+
// the trigger clicks on the keydown of Enter, so the keyup of that Enter lands here
|
|
38415
|
+
if (!this.pressedKeys.has(event.code))
|
|
38416
|
+
return;
|
|
38286
38417
|
this.stopKeyboardShortcutTest();
|
|
38287
38418
|
// console.log('json keys x', this.keyCombination)
|
|
38288
38419
|
// console.log('os output x', this.pressedKeys)
|
|
@@ -38393,7 +38524,7 @@ class MdsKeyboard {
|
|
|
38393
38524
|
}
|
|
38394
38525
|
}
|
|
38395
38526
|
render() {
|
|
38396
|
-
return (hAsync(Host, { key: '
|
|
38527
|
+
return (hAsync(Host, { key: '1f231ef79ed9656b342fca33611bbbdd976bc9d2', "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, hAsync("div", { key: '9037a96c3c9136fad5342b11cebe7cb38a6f5a99', class: "shortcuts" }, hAsync("slot", { key: '2e8799bbc36901e834f810ba482b3399fb82682b' })), this.try && (hAsync("mds-button", { key: 'c410330f2c0e029362da347813539279667aed6a', icon: this.getButtonIcon(), "aria-label": this.t.get('testKeyCombination'), class: "combination-checker", variant: "dark", tone: "text", onClick: this.startKeyboardShortcutTest })), this.try && (hAsync("mds-tooltip", { key: '47250e279c6b16baf09e77960455699016dd5bb9', target: ".combination-checker" }, this.testPassed === undefined && this.t.get('testKeyCombination'), this.testPassed === true && this.t.get('testPassed'), this.testPassed === false && (hAsync("div", { key: '5f12c35e7d1db034af048ee3c9f4ebe4eb848ab0', class: "errors" }, [...this.errors].map((error) => (hAsync("mds-text", { typography: "tip" }, this.t.get(error))))))))));
|
|
38397
38528
|
}
|
|
38398
38529
|
get host() { return getElement(this); }
|
|
38399
38530
|
static get watchers() { return {
|
|
@@ -44142,7 +44273,7 @@ class MdsSpinner {
|
|
|
44142
44273
|
}; }
|
|
44143
44274
|
}
|
|
44144
44275
|
|
|
44145
|
-
const mdsStatusBarCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-modal,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-status-bar-max-width:calc(var(--spacing,.0025rem)*12500);--mds-status-bar-backdrop:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.1);--mds-status-bar-backdrop-filter:blur(calc(var(--spacing,.0025rem)*250));display:block}mds-modal{--mds-modal-custom-window-distance:0;--mds-modal-custom-closed-transform:translateY(100%)}.status-bar-area{-webkit-backdrop-filter:var(--mds-status-bar-backdrop-filter);backdrop-filter:var(--mds-status-bar-backdrop-filter);background-color:var(--mds-status-bar-backdrop,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.1));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px)) var(--magma-radius-xl,var(--radius-squircle-xl,36px)) 0 0;corner-shape:var(--magma-corner-shape,squircle);margin-left:calc(var(--spacing,.0025rem)*600);margin-right:calc(var(--spacing,.0025rem)*600);padding:calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*600);transition-property:background-color,transform,opacity}.status-bar{background-color:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-shadow:var(--shadow-md,0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a);corner-shape:var(--magma-corner-shape,squircle);align-items:flex-start;max-width:var(--mds-status-bar-max-width,calc(var(--spacing,.0025rem)*12500));padding:calc(var(--spacing,.0025rem)*600)}.actions,.status-bar{display:inline-flex;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*400)}.actions{flex-grow:1}:host([pref-consumption=medium]){--mds-status-bar-backdrop-filter:none}:host([pref-contrast=more]){--mds-status-bar-backdrop:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .status-bar{box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15))}@media (max-width:480px){.status-bar-area{border-radius:0;margin-left:0;margin-right:0;padding:calc(var(--spacing,.0025rem)*400);width:100%}.status-bar{width:100%}.actions{gap:calc(var(--spacing,.0025rem)*200)}::slotted(*){flex-grow:1}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-status-bar-backdrop:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .status-bar{box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15))}}`;
|
|
44276
|
+
const mdsStatusBarCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-modal,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-status-bar-max-width:calc(var(--spacing,.0025rem)*12500);--mds-status-bar-backdrop:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.1);--mds-status-bar-backdrop-filter:blur(calc(var(--spacing,.0025rem)*250));display:block}mds-modal{--mds-modal-custom-window-distance:0;--mds-modal-custom-closed-transform:translateY(100%)}.status-bar-area{-webkit-backdrop-filter:var(--mds-status-bar-backdrop-filter);backdrop-filter:var(--mds-status-bar-backdrop-filter);background-color:var(--mds-status-bar-backdrop,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.1));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px)) var(--magma-radius-xl,var(--radius-squircle-xl,36px)) 0 0;corner-shape:var(--magma-corner-shape,squircle);margin-left:calc(var(--spacing,.0025rem)*600);margin-right:calc(var(--spacing,.0025rem)*600);padding:calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*600);transition-property:background-color,transform,opacity}.status-bar{background-color:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-shadow:var(--shadow-md,0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a);box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);align-items:flex-start;max-width:var(--mds-status-bar-max-width,calc(var(--spacing,.0025rem)*12500));padding:calc(var(--spacing,.0025rem)*600)}.actions,.status-bar{display:inline-flex;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*400)}.actions{flex-grow:1}:host([pref-consumption=medium]){--mds-status-bar-backdrop-filter:none}:host([pref-contrast=more]){--mds-status-bar-backdrop:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .status-bar{box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15))}@media (max-width:480px){.status-bar-area{border-radius:0;margin-left:0;margin-right:0;padding:calc(var(--spacing,.0025rem)*400);width:100%}.status-bar{width:100%}.actions{gap:calc(var(--spacing,.0025rem)*200)}::slotted(*){flex-grow:1}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-status-bar-backdrop:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .status-bar{box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15))}}`;
|
|
44146
44277
|
|
|
44147
44278
|
/**
|
|
44148
44279
|
* @slot - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
@@ -44420,14 +44551,16 @@ class MdsStepperBarItem {
|
|
|
44420
44551
|
return;
|
|
44421
44552
|
this.doneEvent.emit({ value: (_a = this.value) !== null && _a !== void 0 ? _a : '' });
|
|
44422
44553
|
};
|
|
44554
|
+
// the status goes through label, a watched prop: the badge reads its deprecated slot once, and
|
|
44555
|
+
// the render reuses the same badge from one status to the next
|
|
44423
44556
|
this.showBadge = () => {
|
|
44424
44557
|
if (this.isDone) {
|
|
44425
|
-
return (hAsync("mds-badge", { class: "badge", variant: "success", tone: "weak", typography: "option"
|
|
44558
|
+
return (hAsync("mds-badge", { class: "badge", variant: "success", tone: "weak", typography: "option", label: this.t.get('badgeDone') }));
|
|
44426
44559
|
}
|
|
44427
44560
|
if (this.isCurrent) {
|
|
44428
|
-
return (hAsync("mds-badge", { class: "badge", variant: "info", tone: "weak", typography: "option"
|
|
44561
|
+
return (hAsync("mds-badge", { class: "badge", variant: "info", tone: "weak", typography: "option", label: this.t.get('badgeCurrent') }));
|
|
44429
44562
|
}
|
|
44430
|
-
return (hAsync("mds-badge", { class: "badge", variant: "dark", tone: "weak", typography: "option"
|
|
44563
|
+
return (hAsync("mds-badge", { class: "badge", variant: "dark", tone: "weak", typography: "option", label: this.t.get('badgeQueued') }));
|
|
44431
44564
|
};
|
|
44432
44565
|
}
|
|
44433
44566
|
componentWillLoad() {
|
|
@@ -44456,7 +44589,7 @@ class MdsStepperBarItem {
|
|
|
44456
44589
|
this.isCurrent = newValue;
|
|
44457
44590
|
}
|
|
44458
44591
|
render() {
|
|
44459
|
-
return (hAsync(Host, { key: '
|
|
44592
|
+
return (hAsync(Host, { key: '9cf20fc8e76dc295e6879414f1eba7326780d2e0', onClick: this.handleClick, "pref-animation": preferenceStore.state.animation, role: this.isReachable() ? 'button' : undefined, tabindex: this.isReachable() ? '0' : undefined }, hAsync("div", { key: '8f0efd3d0108b90d300e6f20932e4e270823af26', class: "header" }, hAsync("mds-icon", { key: 'b7e9f7f33557435162e443c47835d162bfd0fd1c', class: "icon", name: clsx(this.isDone && !this.isCurrent ? this.iconChecked : this.icon) }), hAsync("mds-progress", { key: 'f4b1e28133f320a42e0ad0df749c4c51edafcef9', "aria-hidden": "true", class: "progress", progress: this.isDone ? 1 : 0 })), hAsync("div", { key: 'fdff81858fe7cc698ce80f3c84bcb5b46dff06ba', class: "infos" }, this.step && (hAsync("mds-text", { key: '11b13a0669fdde5f65bedd8c7d79e219e820b6cd', class: "step", typography: "option" }, this.t.get('step', { index: this.index + 1 }))), this.label && (hAsync("mds-text", { key: 'e033f89c6690fde689f4fabf63a052415d5b6f35', class: "text", typography: this.typography }, this.label)), this.badge && hAsync("div", { key: '5c533760dbdc199bf88e5169a08449e43508dc18', part: "badge" }, this.showBadge()))));
|
|
44460
44593
|
}
|
|
44461
44594
|
get host() { return getElement(this); }
|
|
44462
44595
|
static get watchers() { return {
|