@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
|
@@ -2,8 +2,8 @@ import { r as registerInstance, d as createEvent, h, e as Host, g as getElement
|
|
|
2
2
|
import { p as preferenceStore } from './preference-C5XjgGCb.js';
|
|
3
3
|
import { m as miBaselineKeyboardArrowDown } from './keyboard-arrow-down-DiWN48aq.js';
|
|
4
4
|
import { s as setFormValue } from './form-wI0alRSO.js';
|
|
5
|
-
import { u as updateValidity } from './index-
|
|
6
|
-
import './locale-
|
|
5
|
+
import { u as updateValidity } from './index-BJVvHlvf.js';
|
|
6
|
+
import './locale-B6cOkl4I.js';
|
|
7
7
|
|
|
8
8
|
const mdsInputSelectCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-input-tip,mds-input-tip-item):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-select-variant-color-rgb:var(--magma-text-default,var(--text-neutral-default,5 5 5));--mds-input-select-ring:0 0 0 1px rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.1);--mds-input-select-shadow:0 1px calc(var(--spacing,.0025rem)*75) 0 rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.1),0 1px calc(var(--spacing,.0025rem)*50) 0 rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.06);--mds-input-select-arrow-icon-background-color:var(--mds-input-select-arrow-icon-blur-background-color,#0000);--mds-input-select-arrow-icon-blur-background-color:rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/0);--mds-input-select-arrow-icon-blur-color:rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.5);--mds-input-select-arrow-icon-color:var(--mds-input-select-arrow-icon-blur-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-select-arrow-icon-hover-background-color:rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.5);--mds-input-select-arrow-icon-hover-color:rgb(var(--mds-input-select-variant-color-rgb,0 0 0));--mds-input-tip-horizontal-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*1000);--mds-input-tip-vertical-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-input-select-transition-duration:var(--duration-300,.3s);--mds-input-select-icon-transition-duration:var(--duration-200,.2s);--private-input-select-transition-duration:var(--mds-input-select-transition-duration);--private-input-select-icon-transition-duration:var(--mds-input-select-icon-transition-duration);--private-input-select-height:calc(var(--spacing,.0025rem)*1200);--private-input-select-padding-inline:calc(var(--spacing,.0025rem)*400);--private-input-select-arrow-area:calc(var(--spacing,.0025rem)*1200);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:min(var(--magma-radius-xl,var(--radius-squircle-xl,36px)),var(--magma-corner-cap,.5) * var(--private-input-select-height));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));corner-shape:var(--magma-corner-shape,squircle);display:flex;position:relative;-webkit-user-select:none;user-select:none;--mds-input-select-variant-color-rgb:0 0 0;--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}:host([required]:not([required=false]):focus-within) .icon{transform:translate(calc(var(--spacing,.0025rem)*150),calc(var(--spacing,.0025rem)*150))}:host(:focus-within),:host(:hover){--mds-input-select-variant-color-rgb:var(--magma-accent-fg,var(--variant-primary-03,7 76 204));--mds-input-select-shadow:0 calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*150) -1px rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.1),0 calc(var(--spacing,.0025rem)*50) calc(var(--spacing,.0025rem)*100) -1px rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.06);--mds-input-select-arrow-icon-background-color:var(--mds-input-select-arrow-icon-hover-background-color,#0000);--mds-input-select-arrow-icon-color:var(--mds-input-select-arrow-icon-hover-color,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-select-variant-color-rgb:var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))}:host(:focus-within) .input,:host(:hover) .input{--mds-input-select-ring:0 0 0 calc(var(--spacing,.0025rem)*75) rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/1)}.input{font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;appearance:none;background-color:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));border-radius:inherit;box-shadow:var(--mds-input-select-ring),var(--mds-input-select-shadow);box-sizing:border-box;color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));corner-shape:inherit;border:0;cursor:pointer;margin:0;min-height:var(--private-input-select-height);overflow:hidden;padding-left:var(--private-input-select-padding-inline);padding-right:var(--private-input-select-arrow-area);text-overflow:ellipsis;transition-property:background-color,border-color,box-shadow,color,fill;width:100%}.input,.input:focus,.input:hover{transition-duration:var(--private-input-select-transition-duration);transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input:focus,.input:hover{--tw-outline-style:none;color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));outline-style:none}:host([value]:not([value=""])) .input{color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([required]:not([required=false])) .input{color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)))}.input:disabled{background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));opacity:1}:host([disabled]:not([disabled=false])),:host([disabled]:not([disabled=false])) .input{pointer-events:none}:host([disabled]:not([disabled=false])) .icon{fill:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));transform:translate(calc(var(--spacing,.0025rem)*250),calc(var(--spacing,.0025rem)*200))}.icon-container{align-items:center;color:inherit;display:flex;height:var(--private-input-select-height);pointer-events:none;position:absolute;right:var(--private-input-select-padding-inline)}.icon{background-color:var(--mds-input-select-arrow-icon-background-color,#0000);border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:flex;fill:var(--mds-input-select-arrow-icon-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));transition-duration:var(--private-input-select-icon-transition-duration);transition-property:background-color,fill}.icon svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}.option-container{display:none}mds-input-tip{--mds-input-tip-horizontal-offset:inherit;--mds-input-tip-horizontal-offset-focused:inherit;--mds-input-tip-vertical-offset:inherit;--mds-input-tip-background:inherit}@container (max-width:210px){:host .tip__content,:host(:focus-within) .tip__content{grid-template-columns:0fr;opacity:0}:host .tip{padding-left:0;padding-right:0}}:host([size=md]){--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*800);--private-input-select-height:calc(var(--spacing,.0025rem)*900);--private-input-select-padding-inline:calc(var(--spacing,.0025rem)*300);--private-input-select-arrow-area:calc(var(--spacing,.0025rem)*1000)}:host([size=sm]){--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*600);--private-input-select-height:calc(var(--spacing,.0025rem)*700);--private-input-select-padding-inline:calc(var(--spacing,.0025rem)*200);--private-input-select-arrow-area:calc(var(--spacing,.0025rem)*800)}:host([size=sm]) .icon{height:calc(var(--spacing,.0025rem)*400);width:calc(var(--spacing,.0025rem)*400)}:host([variant=info]){--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-select-variant-color-rgb:0 0 0}:host([variant=info]:focus-within),:host([variant=info]:hover){--mds-input-select-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-select-variant-color-rgb:0 0 0}:host([variant=success]:focus-within),:host([variant=success]:hover){--mds-input-select-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-select-variant-color-rgb:0 0 0}:host([variant=warning]:focus-within),:host([variant=warning]:hover){--mds-input-select-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-select-variant-color-rgb:0 0 0}:host([variant=error]:focus-within),:host([variant=error]:hover){--mds-input-select-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}: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-select-transition-duration:0s;--private-input-select-icon-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-select-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .input{color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([pref-contrast=more]){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}:host([pref-contrast=more]) .input{color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-contrast=more][pref-mode=dark]){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}@media (forced-colors:active){.input:focus,.input:hover{outline:2px solid #0000;outline-offset:2px}}@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-select-transition-duration:0s;--private-input-select-icon-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-select-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .input{color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([pref-contrast=more]:not([pref-mode])),:host([pref-contrast=more][pref-mode=system]){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input{color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-contrast=system][pref-mode=dark]),:host([pref-mode=dark]:not([pref-contrast])){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){:host(:not([pref-contrast]):not([pref-mode])),:host([pref-contrast=system]:not([pref-mode])),:host([pref-contrast=system][pref-mode=system]),:host([pref-mode=system]:not([pref-contrast])){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}}`;
|
|
9
9
|
|
|
@@ -139,7 +139,8 @@ const MdsInputSelect = class {
|
|
|
139
139
|
/**
|
|
140
140
|
* Reports the selection to the form and emits the change, once per selection: a single select
|
|
141
141
|
* submits its value, a multiple one an entry per selected option under `name`, as a native
|
|
142
|
-
* select.
|
|
142
|
+
* select. The first selection, the one of load, is recorded without a change: as on a native
|
|
143
|
+
* select, nothing has been chosen yet.
|
|
143
144
|
*/
|
|
144
145
|
syncSelection() {
|
|
145
146
|
var _a;
|
|
@@ -150,7 +151,10 @@ const MdsInputSelect = class {
|
|
|
150
151
|
const selection = JSON.stringify([value, values]);
|
|
151
152
|
if (selection === this.emittedSelection)
|
|
152
153
|
return;
|
|
154
|
+
const loading = this.emittedSelection === undefined;
|
|
153
155
|
this.emittedSelection = selection;
|
|
156
|
+
if (loading)
|
|
157
|
+
return;
|
|
154
158
|
this.changeEvent.emit({ value, values });
|
|
155
159
|
}
|
|
156
160
|
updateFormValue(values) {
|
|
@@ -319,12 +323,12 @@ const MdsInputSelect = class {
|
|
|
319
323
|
}
|
|
320
324
|
render() {
|
|
321
325
|
var _a;
|
|
322
|
-
return (h(Host, { key: '
|
|
326
|
+
return (h(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'] }, h("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) }, h("option", { key: '02dd4058f848557e9e44a0b13694df8ea29f5f09', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue != null &&
|
|
323
327
|
this.defaultValue !== '' &&
|
|
324
328
|
this.defaultValue !== 0 &&
|
|
325
329
|
!Number.isNaN(this.defaultValue)
|
|
326
330
|
? undefined
|
|
327
|
-
: true }, this.placeholder)), h("div", { key: '
|
|
331
|
+
: true }, this.placeholder)), h("div", { key: '606ce4acbc43476392c3d65d9bdf73d45c5d7da2', class: "icon-container" }, h("mds-icon", { key: '844fe12e9494c7baaf11306090a5475e5041aab9', class: "icon", name: miBaselineKeyboardArrowDown })), h("div", { key: 'ccb1fc6353ea3e62b7baa65f05fee83ad19c2745', class: "option-container" }, h("slot", { key: '466546a17018cf6658fa6035048990afee0a4097', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: '72f16cbf02d298614cb36fde62a9cba23b836071', position: "top", active: this.hasFocus, part: "tip-top" }, this.isDisabled() && (h("mds-input-tip-item", { key: '4be88932616cae7f72f043006b36267c8b4e3fdc', expanded: true, variant: "disabled" })), this.required && (h("mds-input-tip-item", { key: '5686e299d11f8622c2a5e7d12b497db5d3c097d2', expanded: this.hasFocus, variant: ((_a = this.value) !== null && _a !== void 0 ? _a : '') === '' ? 'required' : 'required-success' })))));
|
|
328
332
|
}
|
|
329
333
|
static get formAssociated() { return true; }
|
|
330
334
|
get host() { return getElement(this); }
|
|
@@ -4,7 +4,7 @@ import { m as miBaselineRemove } from './remove-D17B058a.js';
|
|
|
4
4
|
import { s as setFormValue } from './form-wI0alRSO.js';
|
|
5
5
|
import { K as KeyboardManager } from './keyboard-manager-CGrPq3C4.js';
|
|
6
6
|
import { c as hasSlotted } from './slot-AEckDMXh.js';
|
|
7
|
-
import { L as Locale } from './locale-
|
|
7
|
+
import { L as Locale } from './locale-B6cOkl4I.js';
|
|
8
8
|
import { p as preferenceStore } from './preference-C5XjgGCb.js';
|
|
9
9
|
import { s as setAttributeIfEmpty } from './aria-Cvhn9asj.js';
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, e as Host } from './index-CvLLN-QH.js';
|
|
2
2
|
import { p as preferenceStore } from './preference-C5XjgGCb.js';
|
|
3
3
|
import { m as miBaselineDone } from './done-CvUz9jjh.js';
|
|
4
|
-
import { L as Locale } from './locale-
|
|
4
|
+
import { L as Locale } from './locale-B6cOkl4I.js';
|
|
5
5
|
|
|
6
6
|
const mdsInputTipCss = () => `@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-input-tip-item:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-tip-transition-duration:var(--duration-300,.3s);--private-input-tip-transition-duration:var(--mds-input-tip-transition-duration);--mds-input-tip-active-translate:translate(0,0);--mds-input-tip-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-input-tip-horizontal-offset-focused:0px;--mds-input-tip-horizontal-offset:calc(var(--spacing,.0025rem)*400);--mds-input-tip-vertical-offset:calc(var(--spacing,.0025rem)*100);display:flex;gap:calc(var(--spacing,.0025rem)*100);justify-content:flex-end;left:var(--mds-input-tip-horizontal-offset,calc(var(--spacing,.0025rem)*400));pointer-events:none;position:absolute;right:var(--mds-input-tip-horizontal-offset,calc(var(--spacing,.0025rem)*400));transform:var(--mds-input-tip-active-translate,translate(0,0));transition-duration:var(--private-input-tip-transition-duration);transition-property:transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}:host(:empty){display:none}:host([position=top]){top:var(--mds-input-tip-vertical-offset,calc(var(--spacing,.0025rem)*100))}:host([position=bottom]){bottom:var(--mds-input-tip-vertical-offset,calc(var(--spacing,.0025rem)*100))}:host([position=top][active]:not([active=false])){--mds-input-tip-active-translate:translate(calc(var(--mds-input-tip-horizontal-offset-focused,0px) * -1),calc(var(--mds-input-tip-vertical-offset,calc(var(--spacing,.0025rem) * 100)) * -1))}:host([position=top][active]:not([active=false])) ::slotted(mds-input-tip-item){border-top-left-radius:0;border-top-right-radius:0}:host([position=bottom][active]:not([active=false])){--mds-input-tip-active-translate:translate(calc(var(--mds-input-tip-horizontal-offset-focused,0px)*-1),var(--mds-input-tip-vertical-offset,calc(var(--spacing,.0025rem)*100)))}:host([position=bottom][active]:not([active=false])) ::slotted(mds-input-tip-item){border-bottom-left-radius:0;border-bottom-right-radius:0}: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-tip-transition-duration:0s}@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-tip-transition-duration:0s}}`;
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, d as createEvent, f as forceUpdate, h, e as Host
|
|
|
2
2
|
import { c as clsx } from './clsx-ChV9xqsO.js';
|
|
3
3
|
import { s as setFormValue, a as setValidity } from './form-wI0alRSO.js';
|
|
4
4
|
import { g as genericMimeToExt } from './file-extensions-BxIk5ZFV.js';
|
|
5
|
-
import { L as Locale } from './locale-
|
|
5
|
+
import { L as Locale } from './locale-B6cOkl4I.js';
|
|
6
6
|
import './preference-C5XjgGCb.js';
|
|
7
7
|
|
|
8
8
|
const types$1 = {
|
|
@@ -5,8 +5,8 @@ import { m as miBaselineKeyboardArrowUp } from './keyboard-arrow-up-Ccz0jCNB.js'
|
|
|
5
5
|
import { m as miBaselineRemove } from './remove-D17B058a.js';
|
|
6
6
|
import { m as miBaselineDone } from './done-CvUz9jjh.js';
|
|
7
7
|
import { s as setFormValue } from './form-wI0alRSO.js';
|
|
8
|
-
import { u as updateValidity } from './index-
|
|
9
|
-
import { L as Locale } from './locale-
|
|
8
|
+
import { u as updateValidity } from './index-BJVvHlvf.js';
|
|
9
|
+
import { L as Locale } from './locale-B6cOkl4I.js';
|
|
10
10
|
import { h as hashRandomValue } from './aria-Cvhn9asj.js';
|
|
11
11
|
import { p as preferenceStore } from './preference-C5XjgGCb.js';
|
|
12
12
|
|
|
@@ -34,6 +34,19 @@ const showPassword$3 = "Εμφάνιση κωδικού";
|
|
|
34
34
|
const speechToTextError$3 = "Η φωνητική υπαγόρευση δεν υποστηρίζεται από αυτό το πρόγραμμα περιήγησης";
|
|
35
35
|
const speechToTextOff$3 = "Διακοπή φωνητικής υπαγόρευσης";
|
|
36
36
|
const speechToTextOn$3 = "Έναρξη φωνητικής υπαγόρευσης";
|
|
37
|
+
const validationCc$3 = "Μη έγκυρος αριθμός κάρτας";
|
|
38
|
+
const validationCfLength$3 = "Ο φορολογικός κωδικός πρέπει να έχει 16 χαρακτήρες";
|
|
39
|
+
const validationCfRegex$3 = "Ο φορολογικός κωδικός που εισαγάγατε δεν είναι σωστός";
|
|
40
|
+
const validationEmail$3 = "Μη έγκυρη διεύθυνση email";
|
|
41
|
+
const validationIsbn$3 = "Μη έγκυρος κωδικός ISBN";
|
|
42
|
+
const validationIsbnFormat$3 = "Μη έγκυρη μορφή ISBN";
|
|
43
|
+
const validationMax$3 = "Η μέγιστη τιμή είναι {{max}}";
|
|
44
|
+
const validationMaxlength$3 = "Το μέγιστο αποδεκτό μήκος είναι {{maxlength}}";
|
|
45
|
+
const validationMin$3 = "Η ελάχιστη τιμή είναι {{min}}";
|
|
46
|
+
const validationMinlength$3 = "Το ελάχιστο αποδεκτό μήκος είναι {{minlength}}";
|
|
47
|
+
const validationPattern$3 = "Μη έγκυρη μορφή";
|
|
48
|
+
const validationPiva$3 = "Μη έγκυρος αριθμός ΦΠΑ";
|
|
49
|
+
const validationUrl$3 = "Μη έγκυρη διεύθυνση URL";
|
|
37
50
|
var localeEl = {
|
|
38
51
|
decrease: decrease$3,
|
|
39
52
|
hidePassword: hidePassword$3,
|
|
@@ -41,7 +54,20 @@ var localeEl = {
|
|
|
41
54
|
showPassword: showPassword$3,
|
|
42
55
|
speechToTextError: speechToTextError$3,
|
|
43
56
|
speechToTextOff: speechToTextOff$3,
|
|
44
|
-
speechToTextOn: speechToTextOn$3
|
|
57
|
+
speechToTextOn: speechToTextOn$3,
|
|
58
|
+
validationCc: validationCc$3,
|
|
59
|
+
validationCfLength: validationCfLength$3,
|
|
60
|
+
validationCfRegex: validationCfRegex$3,
|
|
61
|
+
validationEmail: validationEmail$3,
|
|
62
|
+
validationIsbn: validationIsbn$3,
|
|
63
|
+
validationIsbnFormat: validationIsbnFormat$3,
|
|
64
|
+
validationMax: validationMax$3,
|
|
65
|
+
validationMaxlength: validationMaxlength$3,
|
|
66
|
+
validationMin: validationMin$3,
|
|
67
|
+
validationMinlength: validationMinlength$3,
|
|
68
|
+
validationPattern: validationPattern$3,
|
|
69
|
+
validationPiva: validationPiva$3,
|
|
70
|
+
validationUrl: validationUrl$3
|
|
45
71
|
};
|
|
46
72
|
|
|
47
73
|
const decrease$2 = "Decrease";
|
|
@@ -51,6 +77,19 @@ const showPassword$2 = "Show password";
|
|
|
51
77
|
const speechToTextError$2 = "Voice dictation is not supported by this browser";
|
|
52
78
|
const speechToTextOff$2 = "Stop voice dictation";
|
|
53
79
|
const speechToTextOn$2 = "Start voice dictation";
|
|
80
|
+
const validationCc$2 = "Invalid card number";
|
|
81
|
+
const validationCfLength$2 = "The tax code must be 16 characters long";
|
|
82
|
+
const validationCfRegex$2 = "The tax code entered is not correct";
|
|
83
|
+
const validationEmail$2 = "Invalid email address";
|
|
84
|
+
const validationIsbn$2 = "Invalid ISBN code";
|
|
85
|
+
const validationIsbnFormat$2 = "Invalid ISBN format";
|
|
86
|
+
const validationMax$2 = "The maximum value is {{max}}";
|
|
87
|
+
const validationMaxlength$2 = "The maximum length accepted is {{maxlength}}";
|
|
88
|
+
const validationMin$2 = "The minimum value is {{min}}";
|
|
89
|
+
const validationMinlength$2 = "The minimum length accepted is {{minlength}}";
|
|
90
|
+
const validationPattern$2 = "Invalid format";
|
|
91
|
+
const validationPiva$2 = "Invalid VAT number";
|
|
92
|
+
const validationUrl$2 = "Invalid URL";
|
|
54
93
|
var localeEn = {
|
|
55
94
|
decrease: decrease$2,
|
|
56
95
|
hidePassword: hidePassword$2,
|
|
@@ -58,7 +97,20 @@ var localeEn = {
|
|
|
58
97
|
showPassword: showPassword$2,
|
|
59
98
|
speechToTextError: speechToTextError$2,
|
|
60
99
|
speechToTextOff: speechToTextOff$2,
|
|
61
|
-
speechToTextOn: speechToTextOn$2
|
|
100
|
+
speechToTextOn: speechToTextOn$2,
|
|
101
|
+
validationCc: validationCc$2,
|
|
102
|
+
validationCfLength: validationCfLength$2,
|
|
103
|
+
validationCfRegex: validationCfRegex$2,
|
|
104
|
+
validationEmail: validationEmail$2,
|
|
105
|
+
validationIsbn: validationIsbn$2,
|
|
106
|
+
validationIsbnFormat: validationIsbnFormat$2,
|
|
107
|
+
validationMax: validationMax$2,
|
|
108
|
+
validationMaxlength: validationMaxlength$2,
|
|
109
|
+
validationMin: validationMin$2,
|
|
110
|
+
validationMinlength: validationMinlength$2,
|
|
111
|
+
validationPattern: validationPattern$2,
|
|
112
|
+
validationPiva: validationPiva$2,
|
|
113
|
+
validationUrl: validationUrl$2
|
|
62
114
|
};
|
|
63
115
|
|
|
64
116
|
const decrease$1 = "Disminuir";
|
|
@@ -68,6 +120,19 @@ const showPassword$1 = "Mostrar contraseña";
|
|
|
68
120
|
const speechToTextError$1 = "El dictado por voz no es compatible con este navegador";
|
|
69
121
|
const speechToTextOff$1 = "Detener dictado por voz";
|
|
70
122
|
const speechToTextOn$1 = "Iniciar dictado por voz";
|
|
123
|
+
const validationCc$1 = "Número de tarjeta no válido";
|
|
124
|
+
const validationCfLength$1 = "El código fiscal debe tener 16 caracteres";
|
|
125
|
+
const validationCfRegex$1 = "El código fiscal introducido no es correcto";
|
|
126
|
+
const validationEmail$1 = "Dirección de correo electrónico no válida";
|
|
127
|
+
const validationIsbn$1 = "Código ISBN no válido";
|
|
128
|
+
const validationIsbnFormat$1 = "Formato ISBN no válido";
|
|
129
|
+
const validationMax$1 = "El valor máximo es {{max}}";
|
|
130
|
+
const validationMaxlength$1 = "La longitud máxima aceptada es {{maxlength}}";
|
|
131
|
+
const validationMin$1 = "El valor mínimo es {{min}}";
|
|
132
|
+
const validationMinlength$1 = "La longitud mínima aceptada es {{minlength}}";
|
|
133
|
+
const validationPattern$1 = "Formato no válido";
|
|
134
|
+
const validationPiva$1 = "Número de IVA no válido";
|
|
135
|
+
const validationUrl$1 = "URL no válida";
|
|
71
136
|
var localeEs = {
|
|
72
137
|
decrease: decrease$1,
|
|
73
138
|
hidePassword: hidePassword$1,
|
|
@@ -75,7 +140,20 @@ var localeEs = {
|
|
|
75
140
|
showPassword: showPassword$1,
|
|
76
141
|
speechToTextError: speechToTextError$1,
|
|
77
142
|
speechToTextOff: speechToTextOff$1,
|
|
78
|
-
speechToTextOn: speechToTextOn$1
|
|
143
|
+
speechToTextOn: speechToTextOn$1,
|
|
144
|
+
validationCc: validationCc$1,
|
|
145
|
+
validationCfLength: validationCfLength$1,
|
|
146
|
+
validationCfRegex: validationCfRegex$1,
|
|
147
|
+
validationEmail: validationEmail$1,
|
|
148
|
+
validationIsbn: validationIsbn$1,
|
|
149
|
+
validationIsbnFormat: validationIsbnFormat$1,
|
|
150
|
+
validationMax: validationMax$1,
|
|
151
|
+
validationMaxlength: validationMaxlength$1,
|
|
152
|
+
validationMin: validationMin$1,
|
|
153
|
+
validationMinlength: validationMinlength$1,
|
|
154
|
+
validationPattern: validationPattern$1,
|
|
155
|
+
validationPiva: validationPiva$1,
|
|
156
|
+
validationUrl: validationUrl$1
|
|
79
157
|
};
|
|
80
158
|
|
|
81
159
|
const decrease = "Diminuisci";
|
|
@@ -85,6 +163,19 @@ const showPassword = "Visualizza password";
|
|
|
85
163
|
const speechToTextError = "Dettatura vocale non supportata da questo browser";
|
|
86
164
|
const speechToTextOff = "Ferma dettatura vocale";
|
|
87
165
|
const speechToTextOn = "Inizia dettatura vocale";
|
|
166
|
+
const validationCc = "numero di carta non valido";
|
|
167
|
+
const validationCfLength = "Codice fiscale deve essere lungo 16 caratteri";
|
|
168
|
+
const validationCfRegex = "Codice fiscale inserito non corretto";
|
|
169
|
+
const validationEmail = "indirizzo email non valido";
|
|
170
|
+
const validationIsbn = "codice isbn non valido";
|
|
171
|
+
const validationIsbnFormat = "formato isbn non corretto";
|
|
172
|
+
const validationMax = "valore massimo {{max}}";
|
|
173
|
+
const validationMaxlength = "La lunghezza massima accettata è {{maxlength}}";
|
|
174
|
+
const validationMin = "valore minimo {{min}}";
|
|
175
|
+
const validationMinlength = "La lunghezza minima accettata è {{minlength}}";
|
|
176
|
+
const validationPattern = "formato non valido";
|
|
177
|
+
const validationPiva = "partita iva non valida";
|
|
178
|
+
const validationUrl = "url non valido";
|
|
88
179
|
var localeIt = {
|
|
89
180
|
decrease: decrease,
|
|
90
181
|
hidePassword: hidePassword,
|
|
@@ -92,9 +183,28 @@ var localeIt = {
|
|
|
92
183
|
showPassword: showPassword,
|
|
93
184
|
speechToTextError: speechToTextError,
|
|
94
185
|
speechToTextOff: speechToTextOff,
|
|
95
|
-
speechToTextOn: speechToTextOn
|
|
186
|
+
speechToTextOn: speechToTextOn,
|
|
187
|
+
validationCc: validationCc,
|
|
188
|
+
validationCfLength: validationCfLength,
|
|
189
|
+
validationCfRegex: validationCfRegex,
|
|
190
|
+
validationEmail: validationEmail,
|
|
191
|
+
validationIsbn: validationIsbn,
|
|
192
|
+
validationIsbnFormat: validationIsbnFormat,
|
|
193
|
+
validationMax: validationMax,
|
|
194
|
+
validationMaxlength: validationMaxlength,
|
|
195
|
+
validationMin: validationMin,
|
|
196
|
+
validationMinlength: validationMinlength,
|
|
197
|
+
validationPattern: validationPattern,
|
|
198
|
+
validationPiva: validationPiva,
|
|
199
|
+
validationUrl: validationUrl
|
|
96
200
|
};
|
|
97
201
|
|
|
202
|
+
const messages = new Locale({ el: localeEl, en: localeEn, es: localeEs, it: localeIt });
|
|
203
|
+
/**
|
|
204
|
+
* The message of a failed validation, in the language of the page when the value is validated: a
|
|
205
|
+
* validator is built once, and the language can change after that.
|
|
206
|
+
*/
|
|
207
|
+
const validationMessage = (tag, context) => messages.get(tag, context);
|
|
98
208
|
const NullValidator = () => null;
|
|
99
209
|
const requiredValidor = (input) => {
|
|
100
210
|
return input.length > 0 ? null : { required: '' };
|
|
@@ -107,7 +217,9 @@ const maxValidator = (max) => {
|
|
|
107
217
|
const value = parseFloat(input);
|
|
108
218
|
// Controls with NaN values after parsing should be treated as not having a
|
|
109
219
|
// maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max
|
|
110
|
-
return !isNaN(value) && value > max
|
|
220
|
+
return !isNaN(value) && value > max
|
|
221
|
+
? { max: validationMessage('validationMax', { max }) }
|
|
222
|
+
: null;
|
|
111
223
|
};
|
|
112
224
|
};
|
|
113
225
|
const minValidator = (min) => {
|
|
@@ -118,26 +230,28 @@ const minValidator = (min) => {
|
|
|
118
230
|
const value = parseFloat(input);
|
|
119
231
|
// Controls with NaN values after parsing should be treated as not having a
|
|
120
232
|
// minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min
|
|
121
|
-
return !isNaN(value) && value < min
|
|
233
|
+
return !isNaN(value) && value < min
|
|
234
|
+
? { min: validationMessage('validationMin', { min }) }
|
|
235
|
+
: null;
|
|
122
236
|
};
|
|
123
237
|
};
|
|
124
|
-
const
|
|
238
|
+
const maxLengthValidator = (length) => {
|
|
125
239
|
return (input) => {
|
|
126
240
|
if (input === '' || length === null) {
|
|
127
241
|
return null; // don't validate empty values to allow optional controls
|
|
128
242
|
}
|
|
129
243
|
return input.length > length
|
|
130
|
-
? {
|
|
244
|
+
? { maxlength: validationMessage('validationMaxlength', { maxlength: length }) }
|
|
131
245
|
: null;
|
|
132
246
|
};
|
|
133
247
|
};
|
|
134
|
-
const
|
|
248
|
+
const minLengthValidator = (length) => {
|
|
135
249
|
return (input) => {
|
|
136
250
|
if (input === '' || length === null) {
|
|
137
251
|
return null; // don't validate empty values to allow optional controls
|
|
138
252
|
}
|
|
139
253
|
return input.length < length
|
|
140
|
-
? {
|
|
254
|
+
? { minlength: validationMessage('validationMinlength', { minlength: length }) }
|
|
141
255
|
: null;
|
|
142
256
|
};
|
|
143
257
|
};
|
|
@@ -165,7 +279,7 @@ const patternValidator = (pattern) => {
|
|
|
165
279
|
return (input) => {
|
|
166
280
|
if (input === '')
|
|
167
281
|
return null; // don't validate empty values to allow optional controls
|
|
168
|
-
return expression.test(input) ? null : { pattern: '
|
|
282
|
+
return expression.test(input) ? null : { pattern: validationMessage('validationPattern') };
|
|
169
283
|
};
|
|
170
284
|
};
|
|
171
285
|
// the valid email address of the HTML spec, the one a native type="email" checks
|
|
@@ -173,7 +287,7 @@ const emailExpression = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z
|
|
|
173
287
|
const emailValidatorFn = (input) => {
|
|
174
288
|
if (input === '')
|
|
175
289
|
return null; // don't validate empty values to allow optional controls
|
|
176
|
-
return emailExpression.test(input) ? null : { email: '
|
|
290
|
+
return emailExpression.test(input) ? null : { email: validationMessage('validationEmail') };
|
|
177
291
|
};
|
|
178
292
|
// a native type="url" accepts an absolute URL, the one the URL parser reads without a base
|
|
179
293
|
const urlValidatorFn = (input) => {
|
|
@@ -184,7 +298,7 @@ const urlValidatorFn = (input) => {
|
|
|
184
298
|
return null;
|
|
185
299
|
}
|
|
186
300
|
catch (_a) {
|
|
187
|
-
return { url: '
|
|
301
|
+
return { url: validationMessage('validationUrl') };
|
|
188
302
|
}
|
|
189
303
|
};
|
|
190
304
|
/**
|
|
@@ -194,7 +308,7 @@ const urlValidatorFn = (input) => {
|
|
|
194
308
|
const pivaValidatorFn = (input) => {
|
|
195
309
|
if (input === '')
|
|
196
310
|
return null; // don't validate empty values to allow optional controls
|
|
197
|
-
const error = { piva: '
|
|
311
|
+
const error = { piva: validationMessage('validationPiva') };
|
|
198
312
|
if (!/^\d{11}$/.test(input))
|
|
199
313
|
return error;
|
|
200
314
|
const digits = input.split('').map(Number);
|
|
@@ -213,7 +327,7 @@ const pivaValidatorFn = (input) => {
|
|
|
213
327
|
const ccValidatorFn = (input) => {
|
|
214
328
|
if (input === '')
|
|
215
329
|
return null; // don't validate empty values to allow optional controls
|
|
216
|
-
const error = { cc: '
|
|
330
|
+
const error = { cc: validationMessage('validationCc') };
|
|
217
331
|
if (!/^\d+(?:[ -]\d+)*$/.test(input))
|
|
218
332
|
return error;
|
|
219
333
|
const digits = input.replace(/[ -]/g, '');
|
|
@@ -236,7 +350,7 @@ const isbnValidatorFn = (input) => {
|
|
|
236
350
|
if (input === '')
|
|
237
351
|
return null; // don't validate empty values to allow optional controls
|
|
238
352
|
if (Number.isNaN(input.slice(0, -1)) || (input.length !== 10 && input.length !== 13))
|
|
239
|
-
return { 'isbn-error': '
|
|
353
|
+
return { 'isbn-error': validationMessage('validationIsbnFormat') };
|
|
240
354
|
const v = input.split('').map((v) => (v === 'X' ? 10 : Number(v)));
|
|
241
355
|
let check = 0;
|
|
242
356
|
// check isbn-10
|
|
@@ -254,7 +368,7 @@ const isbnValidatorFn = (input) => {
|
|
|
254
368
|
}, 0);
|
|
255
369
|
check = numVerify % 10;
|
|
256
370
|
}
|
|
257
|
-
return check === 0 ? null : { 'isbn-error': '
|
|
371
|
+
return check === 0 ? null : { 'isbn-error': validationMessage('validationIsbn') };
|
|
258
372
|
};
|
|
259
373
|
class Validator {
|
|
260
374
|
constructor() {
|
|
@@ -361,14 +475,14 @@ function createInputValidationManager(type) {
|
|
|
361
475
|
return null; // don't validate empty values to allow optional controls
|
|
362
476
|
return InputMaskPattern.CF_Regex.test(input)
|
|
363
477
|
? null
|
|
364
|
-
: { 'cf-regex': '
|
|
478
|
+
: { 'cf-regex': validationMessage('validationCfRegex') };
|
|
365
479
|
});
|
|
366
480
|
inputManager.validator.addValidator((input) => {
|
|
367
481
|
if (input === '')
|
|
368
482
|
return null; // don't validate empty values to allow optional controls
|
|
369
483
|
return input.length === 16
|
|
370
484
|
? null
|
|
371
|
-
: { 'cf-length': '
|
|
485
|
+
: { 'cf-length': validationMessage('validationCfLength') };
|
|
372
486
|
});
|
|
373
487
|
break;
|
|
374
488
|
case 'isbn':
|
|
@@ -385,14 +499,13 @@ function createInputValidationManager(type) {
|
|
|
385
499
|
return inputManager;
|
|
386
500
|
}
|
|
387
501
|
|
|
388
|
-
// the validators of the type carry an Italian message: the form gets the localized one instead
|
|
389
|
-
const typeErrors = ['cf-length', 'cf-regex', 'isbn-error'];
|
|
390
502
|
/**
|
|
391
503
|
* The problem reported to the form for the errors of a value. The first validator that fails
|
|
392
504
|
* decides it: the ones of the type come first, then required, max, min, maxlength, minlength,
|
|
393
|
-
* pattern and the custom ones last,
|
|
505
|
+
* pattern and the custom ones last. The codice fiscale and ISBN validators, like the custom ones,
|
|
506
|
+
* give the form their own message, already in the language of the page.
|
|
394
507
|
*/
|
|
395
|
-
const validityProblem = (errors,
|
|
508
|
+
const validityProblem = (errors, constraints) => {
|
|
396
509
|
const [key] = Object.keys(errors);
|
|
397
510
|
switch (key) {
|
|
398
511
|
case 'required':
|
|
@@ -401,11 +514,10 @@ const validityProblem = (errors, value, constraints) => {
|
|
|
401
514
|
return { rule: 'max', context: { max: constraints.max } };
|
|
402
515
|
case 'min':
|
|
403
516
|
return { rule: 'min', context: { min: constraints.min } };
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
: { rule: 'minlength', context: { minlength: constraints.minlength } };
|
|
517
|
+
case 'maxlength':
|
|
518
|
+
return { rule: 'maxlength', context: { maxlength: constraints.maxlength } };
|
|
519
|
+
case 'minlength':
|
|
520
|
+
return { rule: 'minlength', context: { minlength: constraints.minlength } };
|
|
409
521
|
case 'pattern':
|
|
410
522
|
return { rule: 'pattern' };
|
|
411
523
|
case 'email':
|
|
@@ -417,7 +529,7 @@ const validityProblem = (errors, value, constraints) => {
|
|
|
417
529
|
case 'cc':
|
|
418
530
|
return { rule: 'cardNumber' };
|
|
419
531
|
default:
|
|
420
|
-
return { rule: 'invalid', message:
|
|
532
|
+
return { rule: 'invalid', message: errors[key] };
|
|
421
533
|
}
|
|
422
534
|
};
|
|
423
535
|
|
|
@@ -730,9 +842,9 @@ const MdsInput = class {
|
|
|
730
842
|
if (min !== undefined)
|
|
731
843
|
validator.addValidator(minValidator(min));
|
|
732
844
|
if (this.maxlength !== undefined && this.maxlength !== 0 && !Number.isNaN(this.maxlength))
|
|
733
|
-
validator.addValidator(
|
|
845
|
+
validator.addValidator(maxLengthValidator(this.maxlength));
|
|
734
846
|
if (this.minlength !== undefined && this.minlength !== 0 && !Number.isNaN(this.minlength))
|
|
735
|
-
validator.addValidator(
|
|
847
|
+
validator.addValidator(minLengthValidator(this.minlength));
|
|
736
848
|
const pattern = this.patternApplies() ? patternValidator((_b = this.pattern) !== null && _b !== void 0 ? _b : '') : null;
|
|
737
849
|
if (pattern)
|
|
738
850
|
validator.addValidator(pattern);
|
|
@@ -762,7 +874,7 @@ const MdsInput = class {
|
|
|
762
874
|
const value = (_a = this.value) !== null && _a !== void 0 ? _a : '';
|
|
763
875
|
const errors = this.inputValidation.validator.check(value);
|
|
764
876
|
const problem = errors
|
|
765
|
-
? validityProblem(errors,
|
|
877
|
+
? validityProblem(errors, {
|
|
766
878
|
max: this.numericBound(this.max),
|
|
767
879
|
maxlength: this.maxlength,
|
|
768
880
|
min: this.numericBound(this.min),
|
|
@@ -804,13 +916,18 @@ const MdsInput = class {
|
|
|
804
916
|
* Emits the change event when the component value changes
|
|
805
917
|
*/
|
|
806
918
|
valueChanged() {
|
|
807
|
-
var _a;
|
|
919
|
+
var _a, _b;
|
|
808
920
|
this.changeEvent.emit({ value: this.value });
|
|
809
921
|
setFormValue(this.internals, (_a = this.value) !== null && _a !== void 0 ? _a : null);
|
|
810
922
|
this.updateFormValidity();
|
|
811
923
|
if (this.maxlength !== undefined) {
|
|
812
924
|
this.countMaxLength();
|
|
813
925
|
}
|
|
926
|
+
if (!this.validated) {
|
|
927
|
+
// pristine field: only the required tip follows, the variant waits for the first blur
|
|
928
|
+
this.isValid = !(this.required && ((_b = this.value) !== null && _b !== void 0 ? _b : '') === '');
|
|
929
|
+
return;
|
|
930
|
+
}
|
|
814
931
|
// if is necessary for skip validation when reset input to retype correct value, validation is always onBlur
|
|
815
932
|
if (this.value === '')
|
|
816
933
|
return;
|
|
@@ -912,9 +1029,9 @@ const MdsInput = class {
|
|
|
912
1029
|
}
|
|
913
1030
|
render() {
|
|
914
1031
|
var _a, _b, _c;
|
|
915
|
-
return (h(Host, { key: '
|
|
1032
|
+
return (h(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' && (h("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' ? (h("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 })) : (h("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' && (h("div", { key: 'af496730c2302a17477e1994ab5c7fd79fd8cc20', class: "counter counter--vertical" }, h("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" }), h("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' && (h("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' && (h("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 && (h("div", { key: '4afd281972e3af569fb4cd4cb01b1af98d86a92e', class: "password-mask" }, h("div", { key: 'ca27f52f3c16eba0e221759b6608f2d252586b80', class: "password-mask-items", part: "password-mask-items" }, Array.from({ length: this.value.length }).map((_, index) => (h("div", { key: index, class: "password-mask-item", part: "password-mask-item" })))))), this.mic && (h("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" })), h("mds-input-tip", { key: 'a1604ac4ffa67a652d85aa176de84f93d00e3812', position: "top", active: this.hasFocus, part: "tip-top" }, this.isDisabled() && (h("mds-input-tip-item", { key: 'b6180fb526346747972fdb976105f655b30cc9d5', expanded: true, variant: "disabled" })), this.readonly && h("mds-input-tip-item", { key: '003649ade3f41ec1531e5e43cdb5d2b16aeeb71d', expanded: true, variant: "readonly" }), this.required && (h("mds-input-tip-item", { key: 'a978def1dcc891c369b613a220ffadfd94eaeb17', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' }))), h("mds-input-tip", { key: '98d5251c729d9027135ffca4e8f53fbbfb6782be', position: "bottom", active: this.hasFocus, part: "tip-bottom" }, this.tip && (h("mds-input-tip-item", { key: '4159b3c1b04dcacabf6475e62ef8640c7ace6c42', expanded: true, variant: "text" }, this.tip)), this.maxlength && (h("mds-input-tip-item", { key: '1f6fc0d71569dc2eaf5bc3bbc1da684facf03805', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel))), this.datalist && (h("datalist", { key: '285ac8bd661be1ae27a653c726b83111939197a3', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
|
|
916
1033
|
return h("option", { key: i, value: element });
|
|
917
|
-
}))), this.icon && !this.await && (h("mds-icon", { key: '
|
|
1034
|
+
}))), this.icon && !this.await && (h("mds-icon", { key: 'fb198016da6c8ebba88206a8fc5b5ec831d0036f', class: clsx('icon', this.variant), name: this.icon })), h("mds-spinner", { key: 'df2bfea69039e8eb9a34baa5d84525a6191a8e93', running: this.await, class: clsx('await', this.variant) })));
|
|
918
1035
|
}
|
|
919
1036
|
static get formAssociated() { return true; }
|
|
920
1037
|
get el() { return getElement(this); }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, e as Host } from './index-CvLLN-QH.js';
|
|
2
2
|
import { k as keyboardKeysData } from './keys-C4ckbXOl.js';
|
|
3
|
-
import { L as Locale } from './locale-
|
|
3
|
+
import { L as Locale } from './locale-B6cOkl4I.js';
|
|
4
4
|
import { m as miBaselineBrokenImage } from './broken-image-0FAG3rkw.js';
|
|
5
5
|
import { m as miBaselineKeyboardArrowDown } from './keyboard-arrow-down-DiWN48aq.js';
|
|
6
6
|
import { m as miBaselineKeyboardArrowUp } from './keyboard-arrow-up-Ccz0jCNB.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, e as Host, g as getElement } from './index-CvLLN-QH.js';
|
|
2
2
|
import { m as miBaselineDone } from './done-CvUz9jjh.js';
|
|
3
3
|
import { m as miBaselineClose } from './close-J-ikDhyq.js';
|
|
4
|
-
import { L as Locale } from './locale-
|
|
4
|
+
import { L as Locale } from './locale-B6cOkl4I.js';
|
|
5
5
|
import { p as preferenceStore } from './preference-C5XjgGCb.js';
|
|
6
6
|
import { k as keyboardKeysData } from './keys-C4ckbXOl.js';
|
|
7
7
|
|
|
@@ -101,7 +101,11 @@ const MdsKeyboard = class {
|
|
|
101
101
|
}
|
|
102
102
|
return undefined;
|
|
103
103
|
};
|
|
104
|
-
this.checkKeyboardShortcut = () => {
|
|
104
|
+
this.checkKeyboardShortcut = (event) => {
|
|
105
|
+
// a key released with no press of its own in this run belongs to whatever started the run:
|
|
106
|
+
// the trigger clicks on the keydown of Enter, so the keyup of that Enter lands here
|
|
107
|
+
if (!this.pressedKeys.has(event.code))
|
|
108
|
+
return;
|
|
105
109
|
this.stopKeyboardShortcutTest();
|
|
106
110
|
// console.log('json keys x', this.keyCombination)
|
|
107
111
|
// console.log('os output x', this.pressedKeys)
|
|
@@ -212,7 +216,7 @@ const MdsKeyboard = class {
|
|
|
212
216
|
}
|
|
213
217
|
}
|
|
214
218
|
render() {
|
|
215
|
-
return (h(Host, { key: '
|
|
219
|
+
return (h(Host, { key: '1f231ef79ed9656b342fca33611bbbdd976bc9d2', "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, h("div", { key: '9037a96c3c9136fad5342b11cebe7cb38a6f5a99', class: "shortcuts" }, h("slot", { key: '2e8799bbc36901e834f810ba482b3399fb82682b' })), this.try && (h("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 && (h("mds-tooltip", { key: '47250e279c6b16baf09e77960455699016dd5bb9', target: ".combination-checker" }, this.testPassed === undefined && this.t.get('testKeyCombination'), this.testPassed === true && this.t.get('testPassed'), this.testPassed === false && (h("div", { key: '5f12c35e7d1db034af048ee3c9f4ebe4eb848ab0', class: "errors" }, [...this.errors].map((error) => (h("mds-text", { typography: "tip" }, this.t.get(error))))))))));
|
|
216
220
|
}
|
|
217
221
|
get host() { return getElement(this); }
|
|
218
222
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, e as Host } from './index-CvLLN-QH.js';
|
|
2
2
|
import { m as miBaselineCancel } from './cancel-BJ8rpzfj.js';
|
|
3
|
-
import { L as Locale } from './locale-
|
|
3
|
+
import { L as Locale } from './locale-B6cOkl4I.js';
|
|
4
4
|
import { p as preferenceStore } from './preference-C5XjgGCb.js';
|
|
5
5
|
|
|
6
6
|
const remove$3 = "Αφαίρεση";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, e as Host, g as getElement } from './index-CvLLN-QH.js';
|
|
2
2
|
import { K as KeyboardManager } from './keyboard-manager-CGrPq3C4.js';
|
|
3
|
-
import { L as Locale } from './locale-
|
|
3
|
+
import { L as Locale } from './locale-B6cOkl4I.js';
|
|
4
4
|
import { N as NavigationService } from './navigation-Bz1eiKqd.js';
|
|
5
5
|
import { p as preferenceStore } from './preference-C5XjgGCb.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, e as Host, g as getElement } from './index-CvLLN-QH.js';
|
|
2
2
|
import { m as miBaselineCancel } from './cancel-BJ8rpzfj.js';
|
|
3
|
-
import { L as Locale } from './locale-
|
|
3
|
+
import { L as Locale } from './locale-B6cOkl4I.js';
|
|
4
4
|
import './preference-C5XjgGCb.js';
|
|
5
5
|
|
|
6
6
|
var miBaselineAlternateEmail = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10h5v-2h-5c-4.34 0-8-3.66-8-8s3.66-8 8-8s8 3.66 8 8v1.43c0 .79-.71 1.57-1.5 1.57s-1.5-.78-1.5-1.57V12c0-2.76-2.24-5-5-5s-5 2.24-5 5s2.24 5 5 5c1.38 0 2.64-.56 3.54-1.47c.65.89 1.77 1.47 2.96 1.47c1.97 0 3.5-1.6 3.5-3.57V12c0-5.52-4.48-10-10-10zm0 13c-1.66 0-3-1.34-3-3s1.34-3 3-3s3 1.34 3 3s-1.34 3-3 3z"/></svg>`;
|
|
@@ -4,7 +4,7 @@ import { h as hasChildWithSlot } from './slot-AEckDMXh.js';
|
|
|
4
4
|
import { c as cssDurationToMilliseconds } from './unit-CWk1SCJg.js';
|
|
5
5
|
import { p as preferenceStore } from './preference-C5XjgGCb.js';
|
|
6
6
|
import { m as miBaselineClose } from './close-J-ikDhyq.js';
|
|
7
|
-
import { L as Locale } from './locale-
|
|
7
|
+
import { L as Locale } from './locale-B6cOkl4I.js';
|
|
8
8
|
|
|
9
9
|
const close$3 = "Κλείσιμο";
|
|
10
10
|
var localeEl = {
|