@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.js
CHANGED
|
@@ -9128,10 +9128,18 @@ let Locale$1 = class Locale {
|
|
|
9128
9128
|
this.set = (configData) => {
|
|
9129
9129
|
this.config = configData;
|
|
9130
9130
|
};
|
|
9131
|
+
/**
|
|
9132
|
+
* The texts of a language: its own, those of its base language, or the ones of
|
|
9133
|
+
* `rollbackLanguage`. The page can name a region (`it-IT`), the config only has languages (`it`).
|
|
9134
|
+
*/
|
|
9135
|
+
this.texts = (language) => {
|
|
9136
|
+
var _a, _b;
|
|
9137
|
+
const configs = this.config;
|
|
9138
|
+
const code = language.toLowerCase();
|
|
9139
|
+
return (_b = (_a = configs[code]) !== null && _a !== void 0 ? _a : configs[code.split(/[-_]/)[0]]) !== null && _b !== void 0 ? _b : configs[this.rollbackLanguage];
|
|
9140
|
+
};
|
|
9131
9141
|
this.pluralize = (tag, context, language) => {
|
|
9132
|
-
const languagePhrase = this.
|
|
9133
|
-
? this.config[language][tag]
|
|
9134
|
-
: this.config[this.rollbackLanguage][tag];
|
|
9142
|
+
const languagePhrase = this.texts(language)[tag];
|
|
9135
9143
|
const phrases = [];
|
|
9136
9144
|
if (Array.isArray(languagePhrase)) {
|
|
9137
9145
|
phrases.push(languagePhrase[0]);
|
|
@@ -9160,9 +9168,7 @@ let Locale$1 = class Locale {
|
|
|
9160
9168
|
if (context) {
|
|
9161
9169
|
return this.pluralize(tag, context, language);
|
|
9162
9170
|
}
|
|
9163
|
-
return this.
|
|
9164
|
-
? this.config[language][tag]
|
|
9165
|
-
: this.config[this.rollbackLanguage][tag];
|
|
9171
|
+
return this.texts(language)[tag];
|
|
9166
9172
|
};
|
|
9167
9173
|
if (configData) {
|
|
9168
9174
|
this.set(configData);
|
|
@@ -28429,7 +28435,7 @@ var simiSvg = `<svg width="440" height="440" viewBox="0 0 440 440" fill="none" x
|
|
|
28429
28435
|
</svg>
|
|
28430
28436
|
`;
|
|
28431
28437
|
|
|
28432
|
-
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;
|
|
28438
|
+
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}`;
|
|
28433
28439
|
|
|
28434
28440
|
class MdsEmoji {
|
|
28435
28441
|
constructor(hostRef) {
|
|
@@ -32265,9 +32271,9 @@ const flags = {
|
|
|
32265
32271
|
url: 'typeMismatch',
|
|
32266
32272
|
vatNumber: 'typeMismatch',
|
|
32267
32273
|
};
|
|
32268
|
-
const messages = new Locale$1({ el: localeEl$y, en: localeEn$z, es: localeEs$y, it: localeIt$z });
|
|
32274
|
+
const messages$1 = new Locale$1({ el: localeEl$y, en: localeEn$z, es: localeEs$y, it: localeIt$z });
|
|
32269
32275
|
/** The message of a problem, in the language of the page. */
|
|
32270
|
-
const validityMessage = ({ rule, context, message }) => message || messages.get(rule, context);
|
|
32276
|
+
const validityMessage = ({ rule, context, message }) => message || messages$1.get(rule, context);
|
|
32271
32277
|
/**
|
|
32272
32278
|
* Reports to the form the problem of a form-associated component, or clears it when there is
|
|
32273
32279
|
* none: like a native control, an invalid component matches `:invalid` and stops the submit of
|
|
@@ -32291,6 +32297,19 @@ const showPassword$3 = "Εμφάνιση κωδικού";
|
|
|
32291
32297
|
const speechToTextError$3 = "Η φωνητική υπαγόρευση δεν υποστηρίζεται από αυτό το πρόγραμμα περιήγησης";
|
|
32292
32298
|
const speechToTextOff$3 = "Διακοπή φωνητικής υπαγόρευσης";
|
|
32293
32299
|
const speechToTextOn$3 = "Έναρξη φωνητικής υπαγόρευσης";
|
|
32300
|
+
const validationCc$3 = "Μη έγκυρος αριθμός κάρτας";
|
|
32301
|
+
const validationCfLength$3 = "Ο φορολογικός κωδικός πρέπει να έχει 16 χαρακτήρες";
|
|
32302
|
+
const validationCfRegex$3 = "Ο φορολογικός κωδικός που εισαγάγατε δεν είναι σωστός";
|
|
32303
|
+
const validationEmail$3 = "Μη έγκυρη διεύθυνση email";
|
|
32304
|
+
const validationIsbn$3 = "Μη έγκυρος κωδικός ISBN";
|
|
32305
|
+
const validationIsbnFormat$3 = "Μη έγκυρη μορφή ISBN";
|
|
32306
|
+
const validationMax$3 = "Η μέγιστη τιμή είναι {{max}}";
|
|
32307
|
+
const validationMaxlength$3 = "Το μέγιστο αποδεκτό μήκος είναι {{maxlength}}";
|
|
32308
|
+
const validationMin$3 = "Η ελάχιστη τιμή είναι {{min}}";
|
|
32309
|
+
const validationMinlength$3 = "Το ελάχιστο αποδεκτό μήκος είναι {{minlength}}";
|
|
32310
|
+
const validationPattern$3 = "Μη έγκυρη μορφή";
|
|
32311
|
+
const validationPiva$3 = "Μη έγκυρος αριθμός ΦΠΑ";
|
|
32312
|
+
const validationUrl$3 = "Μη έγκυρη διεύθυνση URL";
|
|
32294
32313
|
var localeEl$x = {
|
|
32295
32314
|
decrease: decrease$3,
|
|
32296
32315
|
hidePassword: hidePassword$3,
|
|
@@ -32298,7 +32317,20 @@ var localeEl$x = {
|
|
|
32298
32317
|
showPassword: showPassword$3,
|
|
32299
32318
|
speechToTextError: speechToTextError$3,
|
|
32300
32319
|
speechToTextOff: speechToTextOff$3,
|
|
32301
|
-
speechToTextOn: speechToTextOn$3
|
|
32320
|
+
speechToTextOn: speechToTextOn$3,
|
|
32321
|
+
validationCc: validationCc$3,
|
|
32322
|
+
validationCfLength: validationCfLength$3,
|
|
32323
|
+
validationCfRegex: validationCfRegex$3,
|
|
32324
|
+
validationEmail: validationEmail$3,
|
|
32325
|
+
validationIsbn: validationIsbn$3,
|
|
32326
|
+
validationIsbnFormat: validationIsbnFormat$3,
|
|
32327
|
+
validationMax: validationMax$3,
|
|
32328
|
+
validationMaxlength: validationMaxlength$3,
|
|
32329
|
+
validationMin: validationMin$3,
|
|
32330
|
+
validationMinlength: validationMinlength$3,
|
|
32331
|
+
validationPattern: validationPattern$3,
|
|
32332
|
+
validationPiva: validationPiva$3,
|
|
32333
|
+
validationUrl: validationUrl$3
|
|
32302
32334
|
};
|
|
32303
32335
|
|
|
32304
32336
|
const decrease$2 = "Decrease";
|
|
@@ -32308,6 +32340,19 @@ const showPassword$2 = "Show password";
|
|
|
32308
32340
|
const speechToTextError$2 = "Voice dictation is not supported by this browser";
|
|
32309
32341
|
const speechToTextOff$2 = "Stop voice dictation";
|
|
32310
32342
|
const speechToTextOn$2 = "Start voice dictation";
|
|
32343
|
+
const validationCc$2 = "Invalid card number";
|
|
32344
|
+
const validationCfLength$2 = "The tax code must be 16 characters long";
|
|
32345
|
+
const validationCfRegex$2 = "The tax code entered is not correct";
|
|
32346
|
+
const validationEmail$2 = "Invalid email address";
|
|
32347
|
+
const validationIsbn$2 = "Invalid ISBN code";
|
|
32348
|
+
const validationIsbnFormat$2 = "Invalid ISBN format";
|
|
32349
|
+
const validationMax$2 = "The maximum value is {{max}}";
|
|
32350
|
+
const validationMaxlength$2 = "The maximum length accepted is {{maxlength}}";
|
|
32351
|
+
const validationMin$2 = "The minimum value is {{min}}";
|
|
32352
|
+
const validationMinlength$2 = "The minimum length accepted is {{minlength}}";
|
|
32353
|
+
const validationPattern$2 = "Invalid format";
|
|
32354
|
+
const validationPiva$2 = "Invalid VAT number";
|
|
32355
|
+
const validationUrl$2 = "Invalid URL";
|
|
32311
32356
|
var localeEn$y = {
|
|
32312
32357
|
decrease: decrease$2,
|
|
32313
32358
|
hidePassword: hidePassword$2,
|
|
@@ -32315,7 +32360,20 @@ var localeEn$y = {
|
|
|
32315
32360
|
showPassword: showPassword$2,
|
|
32316
32361
|
speechToTextError: speechToTextError$2,
|
|
32317
32362
|
speechToTextOff: speechToTextOff$2,
|
|
32318
|
-
speechToTextOn: speechToTextOn$2
|
|
32363
|
+
speechToTextOn: speechToTextOn$2,
|
|
32364
|
+
validationCc: validationCc$2,
|
|
32365
|
+
validationCfLength: validationCfLength$2,
|
|
32366
|
+
validationCfRegex: validationCfRegex$2,
|
|
32367
|
+
validationEmail: validationEmail$2,
|
|
32368
|
+
validationIsbn: validationIsbn$2,
|
|
32369
|
+
validationIsbnFormat: validationIsbnFormat$2,
|
|
32370
|
+
validationMax: validationMax$2,
|
|
32371
|
+
validationMaxlength: validationMaxlength$2,
|
|
32372
|
+
validationMin: validationMin$2,
|
|
32373
|
+
validationMinlength: validationMinlength$2,
|
|
32374
|
+
validationPattern: validationPattern$2,
|
|
32375
|
+
validationPiva: validationPiva$2,
|
|
32376
|
+
validationUrl: validationUrl$2
|
|
32319
32377
|
};
|
|
32320
32378
|
|
|
32321
32379
|
const decrease$1 = "Disminuir";
|
|
@@ -32325,6 +32383,19 @@ const showPassword$1 = "Mostrar contraseña";
|
|
|
32325
32383
|
const speechToTextError$1 = "El dictado por voz no es compatible con este navegador";
|
|
32326
32384
|
const speechToTextOff$1 = "Detener dictado por voz";
|
|
32327
32385
|
const speechToTextOn$1 = "Iniciar dictado por voz";
|
|
32386
|
+
const validationCc$1 = "Número de tarjeta no válido";
|
|
32387
|
+
const validationCfLength$1 = "El código fiscal debe tener 16 caracteres";
|
|
32388
|
+
const validationCfRegex$1 = "El código fiscal introducido no es correcto";
|
|
32389
|
+
const validationEmail$1 = "Dirección de correo electrónico no válida";
|
|
32390
|
+
const validationIsbn$1 = "Código ISBN no válido";
|
|
32391
|
+
const validationIsbnFormat$1 = "Formato ISBN no válido";
|
|
32392
|
+
const validationMax$1 = "El valor máximo es {{max}}";
|
|
32393
|
+
const validationMaxlength$1 = "La longitud máxima aceptada es {{maxlength}}";
|
|
32394
|
+
const validationMin$1 = "El valor mínimo es {{min}}";
|
|
32395
|
+
const validationMinlength$1 = "La longitud mínima aceptada es {{minlength}}";
|
|
32396
|
+
const validationPattern$1 = "Formato no válido";
|
|
32397
|
+
const validationPiva$1 = "Número de IVA no válido";
|
|
32398
|
+
const validationUrl$1 = "URL no válida";
|
|
32328
32399
|
var localeEs$x = {
|
|
32329
32400
|
decrease: decrease$1,
|
|
32330
32401
|
hidePassword: hidePassword$1,
|
|
@@ -32332,7 +32403,20 @@ var localeEs$x = {
|
|
|
32332
32403
|
showPassword: showPassword$1,
|
|
32333
32404
|
speechToTextError: speechToTextError$1,
|
|
32334
32405
|
speechToTextOff: speechToTextOff$1,
|
|
32335
|
-
speechToTextOn: speechToTextOn$1
|
|
32406
|
+
speechToTextOn: speechToTextOn$1,
|
|
32407
|
+
validationCc: validationCc$1,
|
|
32408
|
+
validationCfLength: validationCfLength$1,
|
|
32409
|
+
validationCfRegex: validationCfRegex$1,
|
|
32410
|
+
validationEmail: validationEmail$1,
|
|
32411
|
+
validationIsbn: validationIsbn$1,
|
|
32412
|
+
validationIsbnFormat: validationIsbnFormat$1,
|
|
32413
|
+
validationMax: validationMax$1,
|
|
32414
|
+
validationMaxlength: validationMaxlength$1,
|
|
32415
|
+
validationMin: validationMin$1,
|
|
32416
|
+
validationMinlength: validationMinlength$1,
|
|
32417
|
+
validationPattern: validationPattern$1,
|
|
32418
|
+
validationPiva: validationPiva$1,
|
|
32419
|
+
validationUrl: validationUrl$1
|
|
32336
32420
|
};
|
|
32337
32421
|
|
|
32338
32422
|
const decrease = "Diminuisci";
|
|
@@ -32342,6 +32426,19 @@ const showPassword = "Visualizza password";
|
|
|
32342
32426
|
const speechToTextError = "Dettatura vocale non supportata da questo browser";
|
|
32343
32427
|
const speechToTextOff = "Ferma dettatura vocale";
|
|
32344
32428
|
const speechToTextOn = "Inizia dettatura vocale";
|
|
32429
|
+
const validationCc = "numero di carta non valido";
|
|
32430
|
+
const validationCfLength = "Codice fiscale deve essere lungo 16 caratteri";
|
|
32431
|
+
const validationCfRegex = "Codice fiscale inserito non corretto";
|
|
32432
|
+
const validationEmail = "indirizzo email non valido";
|
|
32433
|
+
const validationIsbn = "codice isbn non valido";
|
|
32434
|
+
const validationIsbnFormat = "formato isbn non corretto";
|
|
32435
|
+
const validationMax = "valore massimo {{max}}";
|
|
32436
|
+
const validationMaxlength = "La lunghezza massima accettata è {{maxlength}}";
|
|
32437
|
+
const validationMin = "valore minimo {{min}}";
|
|
32438
|
+
const validationMinlength = "La lunghezza minima accettata è {{minlength}}";
|
|
32439
|
+
const validationPattern = "formato non valido";
|
|
32440
|
+
const validationPiva = "partita iva non valida";
|
|
32441
|
+
const validationUrl = "url non valido";
|
|
32345
32442
|
var localeIt$y = {
|
|
32346
32443
|
decrease: decrease,
|
|
32347
32444
|
hidePassword: hidePassword,
|
|
@@ -32349,9 +32446,28 @@ var localeIt$y = {
|
|
|
32349
32446
|
showPassword: showPassword,
|
|
32350
32447
|
speechToTextError: speechToTextError,
|
|
32351
32448
|
speechToTextOff: speechToTextOff,
|
|
32352
|
-
speechToTextOn: speechToTextOn
|
|
32353
|
-
|
|
32354
|
-
|
|
32449
|
+
speechToTextOn: speechToTextOn,
|
|
32450
|
+
validationCc: validationCc,
|
|
32451
|
+
validationCfLength: validationCfLength,
|
|
32452
|
+
validationCfRegex: validationCfRegex,
|
|
32453
|
+
validationEmail: validationEmail,
|
|
32454
|
+
validationIsbn: validationIsbn,
|
|
32455
|
+
validationIsbnFormat: validationIsbnFormat,
|
|
32456
|
+
validationMax: validationMax,
|
|
32457
|
+
validationMaxlength: validationMaxlength,
|
|
32458
|
+
validationMin: validationMin,
|
|
32459
|
+
validationMinlength: validationMinlength,
|
|
32460
|
+
validationPattern: validationPattern,
|
|
32461
|
+
validationPiva: validationPiva,
|
|
32462
|
+
validationUrl: validationUrl
|
|
32463
|
+
};
|
|
32464
|
+
|
|
32465
|
+
const messages = new Locale$1({ el: localeEl$x, en: localeEn$y, es: localeEs$x, it: localeIt$y });
|
|
32466
|
+
/**
|
|
32467
|
+
* The message of a failed validation, in the language of the page when the value is validated: a
|
|
32468
|
+
* validator is built once, and the language can change after that.
|
|
32469
|
+
*/
|
|
32470
|
+
const validationMessage = (tag, context) => messages.get(tag, context);
|
|
32355
32471
|
const NullValidator = () => null;
|
|
32356
32472
|
const requiredValidor = (input) => {
|
|
32357
32473
|
return input.length > 0 ? null : { required: '' };
|
|
@@ -32364,7 +32480,9 @@ const maxValidator = (max) => {
|
|
|
32364
32480
|
const value = parseFloat(input);
|
|
32365
32481
|
// Controls with NaN values after parsing should be treated as not having a
|
|
32366
32482
|
// maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max
|
|
32367
|
-
return !isNaN(value) && value > max
|
|
32483
|
+
return !isNaN(value) && value > max
|
|
32484
|
+
? { max: validationMessage('validationMax', { max }) }
|
|
32485
|
+
: null;
|
|
32368
32486
|
};
|
|
32369
32487
|
};
|
|
32370
32488
|
const minValidator = (min) => {
|
|
@@ -32375,26 +32493,28 @@ const minValidator = (min) => {
|
|
|
32375
32493
|
const value = parseFloat(input);
|
|
32376
32494
|
// Controls with NaN values after parsing should be treated as not having a
|
|
32377
32495
|
// minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min
|
|
32378
|
-
return !isNaN(value) && value < min
|
|
32496
|
+
return !isNaN(value) && value < min
|
|
32497
|
+
? { min: validationMessage('validationMin', { min }) }
|
|
32498
|
+
: null;
|
|
32379
32499
|
};
|
|
32380
32500
|
};
|
|
32381
|
-
const
|
|
32501
|
+
const maxLengthValidator = (length) => {
|
|
32382
32502
|
return (input) => {
|
|
32383
32503
|
if (input === '' || length === null) {
|
|
32384
32504
|
return null; // don't validate empty values to allow optional controls
|
|
32385
32505
|
}
|
|
32386
32506
|
return input.length > length
|
|
32387
|
-
? {
|
|
32507
|
+
? { maxlength: validationMessage('validationMaxlength', { maxlength: length }) }
|
|
32388
32508
|
: null;
|
|
32389
32509
|
};
|
|
32390
32510
|
};
|
|
32391
|
-
const
|
|
32511
|
+
const minLengthValidator = (length) => {
|
|
32392
32512
|
return (input) => {
|
|
32393
32513
|
if (input === '' || length === null) {
|
|
32394
32514
|
return null; // don't validate empty values to allow optional controls
|
|
32395
32515
|
}
|
|
32396
32516
|
return input.length < length
|
|
32397
|
-
? {
|
|
32517
|
+
? { minlength: validationMessage('validationMinlength', { minlength: length }) }
|
|
32398
32518
|
: null;
|
|
32399
32519
|
};
|
|
32400
32520
|
};
|
|
@@ -32422,7 +32542,7 @@ const patternValidator = (pattern) => {
|
|
|
32422
32542
|
return (input) => {
|
|
32423
32543
|
if (input === '')
|
|
32424
32544
|
return null; // don't validate empty values to allow optional controls
|
|
32425
|
-
return expression.test(input) ? null : { pattern: '
|
|
32545
|
+
return expression.test(input) ? null : { pattern: validationMessage('validationPattern') };
|
|
32426
32546
|
};
|
|
32427
32547
|
};
|
|
32428
32548
|
// the valid email address of the HTML spec, the one a native type="email" checks
|
|
@@ -32430,7 +32550,7 @@ const emailExpression = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z
|
|
|
32430
32550
|
const emailValidatorFn = (input) => {
|
|
32431
32551
|
if (input === '')
|
|
32432
32552
|
return null; // don't validate empty values to allow optional controls
|
|
32433
|
-
return emailExpression.test(input) ? null : { email: '
|
|
32553
|
+
return emailExpression.test(input) ? null : { email: validationMessage('validationEmail') };
|
|
32434
32554
|
};
|
|
32435
32555
|
// a native type="url" accepts an absolute URL, the one the URL parser reads without a base
|
|
32436
32556
|
const urlValidatorFn = (input) => {
|
|
@@ -32441,7 +32561,7 @@ const urlValidatorFn = (input) => {
|
|
|
32441
32561
|
return null;
|
|
32442
32562
|
}
|
|
32443
32563
|
catch (_a) {
|
|
32444
|
-
return { url: '
|
|
32564
|
+
return { url: validationMessage('validationUrl') };
|
|
32445
32565
|
}
|
|
32446
32566
|
};
|
|
32447
32567
|
/**
|
|
@@ -32451,7 +32571,7 @@ const urlValidatorFn = (input) => {
|
|
|
32451
32571
|
const pivaValidatorFn = (input) => {
|
|
32452
32572
|
if (input === '')
|
|
32453
32573
|
return null; // don't validate empty values to allow optional controls
|
|
32454
|
-
const error = { piva: '
|
|
32574
|
+
const error = { piva: validationMessage('validationPiva') };
|
|
32455
32575
|
if (!/^\d{11}$/.test(input))
|
|
32456
32576
|
return error;
|
|
32457
32577
|
const digits = input.split('').map(Number);
|
|
@@ -32470,7 +32590,7 @@ const pivaValidatorFn = (input) => {
|
|
|
32470
32590
|
const ccValidatorFn = (input) => {
|
|
32471
32591
|
if (input === '')
|
|
32472
32592
|
return null; // don't validate empty values to allow optional controls
|
|
32473
|
-
const error = { cc: '
|
|
32593
|
+
const error = { cc: validationMessage('validationCc') };
|
|
32474
32594
|
if (!/^\d+(?:[ -]\d+)*$/.test(input))
|
|
32475
32595
|
return error;
|
|
32476
32596
|
const digits = input.replace(/[ -]/g, '');
|
|
@@ -32493,7 +32613,7 @@ const isbnValidatorFn = (input) => {
|
|
|
32493
32613
|
if (input === '')
|
|
32494
32614
|
return null; // don't validate empty values to allow optional controls
|
|
32495
32615
|
if (Number.isNaN(input.slice(0, -1)) || (input.length !== 10 && input.length !== 13))
|
|
32496
|
-
return { 'isbn-error': '
|
|
32616
|
+
return { 'isbn-error': validationMessage('validationIsbnFormat') };
|
|
32497
32617
|
const v = input.split('').map((v) => (v === 'X' ? 10 : Number(v)));
|
|
32498
32618
|
let check = 0;
|
|
32499
32619
|
// check isbn-10
|
|
@@ -32511,7 +32631,7 @@ const isbnValidatorFn = (input) => {
|
|
|
32511
32631
|
}, 0);
|
|
32512
32632
|
check = numVerify % 10;
|
|
32513
32633
|
}
|
|
32514
|
-
return check === 0 ? null : { 'isbn-error': '
|
|
32634
|
+
return check === 0 ? null : { 'isbn-error': validationMessage('validationIsbn') };
|
|
32515
32635
|
};
|
|
32516
32636
|
class Validator {
|
|
32517
32637
|
constructor() {
|
|
@@ -32618,14 +32738,14 @@ function createInputValidationManager(type) {
|
|
|
32618
32738
|
return null; // don't validate empty values to allow optional controls
|
|
32619
32739
|
return InputMaskPattern.CF_Regex.test(input)
|
|
32620
32740
|
? null
|
|
32621
|
-
: { 'cf-regex': '
|
|
32741
|
+
: { 'cf-regex': validationMessage('validationCfRegex') };
|
|
32622
32742
|
});
|
|
32623
32743
|
inputManager.validator.addValidator((input) => {
|
|
32624
32744
|
if (input === '')
|
|
32625
32745
|
return null; // don't validate empty values to allow optional controls
|
|
32626
32746
|
return input.length === 16
|
|
32627
32747
|
? null
|
|
32628
|
-
: { 'cf-length': '
|
|
32748
|
+
: { 'cf-length': validationMessage('validationCfLength') };
|
|
32629
32749
|
});
|
|
32630
32750
|
break;
|
|
32631
32751
|
case 'isbn':
|
|
@@ -32642,14 +32762,13 @@ function createInputValidationManager(type) {
|
|
|
32642
32762
|
return inputManager;
|
|
32643
32763
|
}
|
|
32644
32764
|
|
|
32645
|
-
// the validators of the type carry an Italian message: the form gets the localized one instead
|
|
32646
|
-
const typeErrors = ['cf-length', 'cf-regex', 'isbn-error'];
|
|
32647
32765
|
/**
|
|
32648
32766
|
* The problem reported to the form for the errors of a value. The first validator that fails
|
|
32649
32767
|
* decides it: the ones of the type come first, then required, max, min, maxlength, minlength,
|
|
32650
|
-
* pattern and the custom ones last,
|
|
32768
|
+
* pattern and the custom ones last. The codice fiscale and ISBN validators, like the custom ones,
|
|
32769
|
+
* give the form their own message, already in the language of the page.
|
|
32651
32770
|
*/
|
|
32652
|
-
const validityProblem = (errors,
|
|
32771
|
+
const validityProblem = (errors, constraints) => {
|
|
32653
32772
|
const [key] = Object.keys(errors);
|
|
32654
32773
|
switch (key) {
|
|
32655
32774
|
case 'required':
|
|
@@ -32658,11 +32777,10 @@ const validityProblem = (errors, value, constraints) => {
|
|
|
32658
32777
|
return { rule: 'max', context: { max: constraints.max } };
|
|
32659
32778
|
case 'min':
|
|
32660
32779
|
return { rule: 'min', context: { min: constraints.min } };
|
|
32661
|
-
|
|
32662
|
-
|
|
32663
|
-
|
|
32664
|
-
|
|
32665
|
-
: { rule: 'minlength', context: { minlength: constraints.minlength } };
|
|
32780
|
+
case 'maxlength':
|
|
32781
|
+
return { rule: 'maxlength', context: { maxlength: constraints.maxlength } };
|
|
32782
|
+
case 'minlength':
|
|
32783
|
+
return { rule: 'minlength', context: { minlength: constraints.minlength } };
|
|
32666
32784
|
case 'pattern':
|
|
32667
32785
|
return { rule: 'pattern' };
|
|
32668
32786
|
case 'email':
|
|
@@ -32674,7 +32792,7 @@ const validityProblem = (errors, value, constraints) => {
|
|
|
32674
32792
|
case 'cc':
|
|
32675
32793
|
return { rule: 'cardNumber' };
|
|
32676
32794
|
default:
|
|
32677
|
-
return { rule: 'invalid', message:
|
|
32795
|
+
return { rule: 'invalid', message: errors[key] };
|
|
32678
32796
|
}
|
|
32679
32797
|
};
|
|
32680
32798
|
|
|
@@ -32999,9 +33117,9 @@ class MdsInput {
|
|
|
32999
33117
|
if (min !== undefined)
|
|
33000
33118
|
validator.addValidator(minValidator(min));
|
|
33001
33119
|
if (this.maxlength !== undefined && this.maxlength !== 0 && !Number.isNaN(this.maxlength))
|
|
33002
|
-
validator.addValidator(
|
|
33120
|
+
validator.addValidator(maxLengthValidator(this.maxlength));
|
|
33003
33121
|
if (this.minlength !== undefined && this.minlength !== 0 && !Number.isNaN(this.minlength))
|
|
33004
|
-
validator.addValidator(
|
|
33122
|
+
validator.addValidator(minLengthValidator(this.minlength));
|
|
33005
33123
|
const pattern = this.patternApplies() ? patternValidator((_b = this.pattern) !== null && _b !== void 0 ? _b : '') : null;
|
|
33006
33124
|
if (pattern)
|
|
33007
33125
|
validator.addValidator(pattern);
|
|
@@ -33031,7 +33149,7 @@ class MdsInput {
|
|
|
33031
33149
|
const value = (_a = this.value) !== null && _a !== void 0 ? _a : '';
|
|
33032
33150
|
const errors = this.inputValidation.validator.check(value);
|
|
33033
33151
|
const problem = errors
|
|
33034
|
-
? validityProblem(errors,
|
|
33152
|
+
? validityProblem(errors, {
|
|
33035
33153
|
max: this.numericBound(this.max),
|
|
33036
33154
|
maxlength: this.maxlength,
|
|
33037
33155
|
min: this.numericBound(this.min),
|
|
@@ -33073,13 +33191,18 @@ class MdsInput {
|
|
|
33073
33191
|
* Emits the change event when the component value changes
|
|
33074
33192
|
*/
|
|
33075
33193
|
valueChanged() {
|
|
33076
|
-
var _a;
|
|
33194
|
+
var _a, _b;
|
|
33077
33195
|
this.changeEvent.emit({ value: this.value });
|
|
33078
33196
|
setFormValue(this.internals, (_a = this.value) !== null && _a !== void 0 ? _a : null);
|
|
33079
33197
|
this.updateFormValidity();
|
|
33080
33198
|
if (this.maxlength !== undefined) {
|
|
33081
33199
|
this.countMaxLength();
|
|
33082
33200
|
}
|
|
33201
|
+
if (!this.validated) {
|
|
33202
|
+
// pristine field: only the required tip follows, the variant waits for the first blur
|
|
33203
|
+
this.isValid = !(this.required && ((_b = this.value) !== null && _b !== void 0 ? _b : '') === '');
|
|
33204
|
+
return;
|
|
33205
|
+
}
|
|
33083
33206
|
// if is necessary for skip validation when reset input to retype correct value, validation is always onBlur
|
|
33084
33207
|
if (this.value === '')
|
|
33085
33208
|
return;
|
|
@@ -33181,9 +33304,9 @@ class MdsInput {
|
|
|
33181
33304
|
}
|
|
33182
33305
|
render() {
|
|
33183
33306
|
var _a, _b, _c;
|
|
33184
|
-
return (hAsync(Host, { key: '
|
|
33307
|
+
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) => {
|
|
33185
33308
|
return hAsync("option", { key: i, value: element });
|
|
33186
|
-
}))), this.icon && !this.await && (hAsync("mds-icon", { key: '
|
|
33309
|
+
}))), 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) })));
|
|
33187
33310
|
}
|
|
33188
33311
|
static get formAssociated() { return true; }
|
|
33189
33312
|
get el() { return getElement(this); }
|
|
@@ -34631,7 +34754,7 @@ class MdsInputOtp {
|
|
|
34631
34754
|
}; }
|
|
34632
34755
|
}
|
|
34633
34756
|
|
|
34634
|
-
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(
|
|
34757
|
+
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)))}}`;
|
|
34635
34758
|
|
|
34636
34759
|
/**
|
|
34637
34760
|
* @part header - The element containing the labels displayed over the input element
|
|
@@ -34934,7 +35057,8 @@ class MdsInputSelect {
|
|
|
34934
35057
|
/**
|
|
34935
35058
|
* Reports the selection to the form and emits the change, once per selection: a single select
|
|
34936
35059
|
* submits its value, a multiple one an entry per selected option under `name`, as a native
|
|
34937
|
-
* select.
|
|
35060
|
+
* select. The first selection, the one of load, is recorded without a change: as on a native
|
|
35061
|
+
* select, nothing has been chosen yet.
|
|
34938
35062
|
*/
|
|
34939
35063
|
syncSelection() {
|
|
34940
35064
|
var _a;
|
|
@@ -34945,7 +35069,10 @@ class MdsInputSelect {
|
|
|
34945
35069
|
const selection = JSON.stringify([value, values]);
|
|
34946
35070
|
if (selection === this.emittedSelection)
|
|
34947
35071
|
return;
|
|
35072
|
+
const loading = this.emittedSelection === undefined;
|
|
34948
35073
|
this.emittedSelection = selection;
|
|
35074
|
+
if (loading)
|
|
35075
|
+
return;
|
|
34949
35076
|
this.changeEvent.emit({ value, values });
|
|
34950
35077
|
}
|
|
34951
35078
|
updateFormValue(values) {
|
|
@@ -35114,12 +35241,12 @@ class MdsInputSelect {
|
|
|
35114
35241
|
}
|
|
35115
35242
|
render() {
|
|
35116
35243
|
var _a;
|
|
35117
|
-
return (hAsync(Host, { key: '
|
|
35244
|
+
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 &&
|
|
35118
35245
|
this.defaultValue !== '' &&
|
|
35119
35246
|
this.defaultValue !== 0 &&
|
|
35120
35247
|
!Number.isNaN(this.defaultValue)
|
|
35121
35248
|
? undefined
|
|
35122
|
-
: true }, this.placeholder)), hAsync("div", { key: '
|
|
35249
|
+
: 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' })))));
|
|
35123
35250
|
}
|
|
35124
35251
|
static get formAssociated() { return true; }
|
|
35125
35252
|
get host() { return getElement(this); }
|
|
@@ -38284,7 +38411,11 @@ class MdsKeyboard {
|
|
|
38284
38411
|
}
|
|
38285
38412
|
return undefined;
|
|
38286
38413
|
};
|
|
38287
|
-
this.checkKeyboardShortcut = () => {
|
|
38414
|
+
this.checkKeyboardShortcut = (event) => {
|
|
38415
|
+
// a key released with no press of its own in this run belongs to whatever started the run:
|
|
38416
|
+
// the trigger clicks on the keydown of Enter, so the keyup of that Enter lands here
|
|
38417
|
+
if (!this.pressedKeys.has(event.code))
|
|
38418
|
+
return;
|
|
38288
38419
|
this.stopKeyboardShortcutTest();
|
|
38289
38420
|
// console.log('json keys x', this.keyCombination)
|
|
38290
38421
|
// console.log('os output x', this.pressedKeys)
|
|
@@ -38395,7 +38526,7 @@ class MdsKeyboard {
|
|
|
38395
38526
|
}
|
|
38396
38527
|
}
|
|
38397
38528
|
render() {
|
|
38398
|
-
return (hAsync(Host, { key: '
|
|
38529
|
+
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))))))))));
|
|
38399
38530
|
}
|
|
38400
38531
|
get host() { return getElement(this); }
|
|
38401
38532
|
static get watchers() { return {
|
|
@@ -44144,7 +44275,7 @@ class MdsSpinner {
|
|
|
44144
44275
|
}; }
|
|
44145
44276
|
}
|
|
44146
44277
|
|
|
44147
|
-
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))}}`;
|
|
44278
|
+
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))}}`;
|
|
44148
44279
|
|
|
44149
44280
|
/**
|
|
44150
44281
|
* @slot - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element.
|
|
@@ -44422,14 +44553,16 @@ class MdsStepperBarItem {
|
|
|
44422
44553
|
return;
|
|
44423
44554
|
this.doneEvent.emit({ value: (_a = this.value) !== null && _a !== void 0 ? _a : '' });
|
|
44424
44555
|
};
|
|
44556
|
+
// the status goes through label, a watched prop: the badge reads its deprecated slot once, and
|
|
44557
|
+
// the render reuses the same badge from one status to the next
|
|
44425
44558
|
this.showBadge = () => {
|
|
44426
44559
|
if (this.isDone) {
|
|
44427
|
-
return (hAsync("mds-badge", { class: "badge", variant: "success", tone: "weak", typography: "option"
|
|
44560
|
+
return (hAsync("mds-badge", { class: "badge", variant: "success", tone: "weak", typography: "option", label: this.t.get('badgeDone') }));
|
|
44428
44561
|
}
|
|
44429
44562
|
if (this.isCurrent) {
|
|
44430
|
-
return (hAsync("mds-badge", { class: "badge", variant: "info", tone: "weak", typography: "option"
|
|
44563
|
+
return (hAsync("mds-badge", { class: "badge", variant: "info", tone: "weak", typography: "option", label: this.t.get('badgeCurrent') }));
|
|
44431
44564
|
}
|
|
44432
|
-
return (hAsync("mds-badge", { class: "badge", variant: "dark", tone: "weak", typography: "option"
|
|
44565
|
+
return (hAsync("mds-badge", { class: "badge", variant: "dark", tone: "weak", typography: "option", label: this.t.get('badgeQueued') }));
|
|
44433
44566
|
};
|
|
44434
44567
|
}
|
|
44435
44568
|
componentWillLoad() {
|
|
@@ -44458,7 +44591,7 @@ class MdsStepperBarItem {
|
|
|
44458
44591
|
this.isCurrent = newValue;
|
|
44459
44592
|
}
|
|
44460
44593
|
render() {
|
|
44461
|
-
return (hAsync(Host, { key: '
|
|
44594
|
+
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()))));
|
|
44462
44595
|
}
|
|
44463
44596
|
get host() { return getElement(this); }
|
|
44464
44597
|
static get watchers() { return {
|