@maggioli-design-system/magma 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +71 -0
- package/agents/anti-patterns.md +39 -0
- package/agents/assets.md +203 -0
- package/agents/color.md +193 -0
- package/agents/components.md +129 -0
- package/agents/conventions.md +188 -0
- package/agents/install.md +152 -0
- package/agents/theming.md +140 -0
- package/agents/typography.md +32 -0
- package/agents/variants.md +112 -0
- package/dist/cjs/floating-controller-uOCBLTk2.js +369 -0
- package/dist/cjs/form-Bk2OHlHM.js +46 -0
- package/dist/cjs/index-MyEb-PfD.js +198 -0
- package/dist/cjs/index-UmmmCMIG.js +5184 -0
- package/dist/cjs/index.cjs.js +65 -23
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/locale-CnorkBwF.js +816 -0
- package/dist/cjs/magma-components.cjs.js +2 -2
- package/dist/cjs/mds-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion.cjs.entry.js +2 -2
- package/dist/cjs/mds-author.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +29 -34
- package/dist/cjs/mds-badge.cjs.entry.js +5 -4
- package/dist/cjs/mds-banner_3.cjs.entry.js +3 -3
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +4 -3
- package/dist/cjs/mds-bibliography.cjs.entry.js +5 -4
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +38 -4
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +42 -15
- package/dist/cjs/mds-calendar_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +2 -2
- package/dist/cjs/mds-details.cjs.entry.js +2 -2
- package/dist/cjs/mds-dropdown.cjs.entry.js +7 -6
- package/dist/cjs/mds-emoji.cjs.entry.js +2 -2
- package/dist/cjs/mds-entity.cjs.entry.js +3 -3
- package/dist/cjs/mds-file-preview.cjs.entry.js +20 -20
- package/dist/cjs/mds-file.cjs.entry.js +3 -3
- package/dist/cjs/mds-filter-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-filter.cjs.entry.js +2 -2
- package/dist/cjs/mds-header-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-header.cjs.entry.js +19 -10
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/mds-hr.cjs.entry.js +2 -2
- package/dist/cjs/mds-img.cjs.entry.js +6 -6
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +95 -13
- package/dist/cjs/mds-input-date.cjs.entry.js +124 -27
- package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-otp.cjs.entry.js +65 -19
- package/dist/cjs/mds-input-range.cjs.entry.js +32 -16
- package/dist/cjs/mds-input-select.cjs.entry.js +166 -35
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +63 -21
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-upload.cjs.entry.js +141 -68
- package/dist/cjs/mds-input.cjs.entry.js +320 -36
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +11 -8
- package/dist/cjs/mds-keyboard.cjs.entry.js +9 -6
- package/dist/cjs/mds-kpi-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-kpi.cjs.entry.js +1 -1
- package/dist/cjs/mds-label.cjs.entry.js +3 -3
- package/dist/cjs/mds-list-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-list.cjs.entry.js +1 -1
- package/dist/cjs/mds-mention.cjs.entry.js +6 -5
- package/dist/cjs/mds-modal.cjs.entry.js +2 -2
- package/dist/cjs/mds-note.cjs.entry.js +3 -3
- package/dist/cjs/mds-notification.cjs.entry.js +13 -10
- package/dist/cjs/mds-paginator-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-paginator.cjs.entry.js +2 -2
- package/dist/cjs/mds-policy-ai.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-animation.cjs.entry.js +29 -5
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +29 -5
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +27 -6
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +6 -5
- package/dist/cjs/mds-pref-language.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-mode.cjs.entry.js +30 -7
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +4 -3
- package/dist/cjs/mds-pref-theme.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref.cjs.entry.js +10 -5
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-features.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-progress_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-push-notification.cjs.entry.js +2 -2
- package/dist/cjs/mds-quote.cjs.entry.js +2 -2
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu.cjs.entry.js +2 -2
- package/dist/cjs/mds-separator.cjs.entry.js +2 -2
- package/dist/cjs/mds-status-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +6 -4
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +5 -4
- package/dist/cjs/mds-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-tab_2.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-body.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +4 -4
- package/dist/cjs/mds-table-header.cjs.entry.js +3 -3
- package/dist/cjs/mds-table-row.cjs.entry.js +3 -3
- package/dist/cjs/mds-table.cjs.entry.js +3 -3
- package/dist/cjs/mds-text.cjs.entry.js +4 -3
- package/dist/cjs/mds-toast.cjs.entry.js +11 -5
- package/dist/cjs/mds-tooltip.cjs.entry.js +7 -7
- package/dist/cjs/mds-tree-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-tree.cjs.entry.js +1 -1
- package/dist/cjs/mds-url-view.cjs.entry.js +3 -3
- package/dist/cjs/mds-usage.cjs.entry.js +3 -3
- package/dist/cjs/mds-video-wall.cjs.entry.js +1 -1
- package/dist/cjs/mds-zero.cjs.entry.js +2 -2
- package/dist/cjs/preference-DRkzNp5a.js +389 -0
- package/dist/collection/common/form.js +24 -1
- package/dist/collection/common/validity/index.js +42 -0
- package/dist/collection/components/mds-accordion/AGENTS.md +65 -0
- package/dist/collection/components/mds-accordion/antipattern.md +123 -0
- package/dist/collection/components/mds-accordion/documentation.json +172 -0
- package/dist/collection/components/mds-accordion/pattern.md +150 -0
- package/dist/collection/components/mds-accordion-item/AGENTS.md +76 -0
- package/dist/collection/components/mds-accordion-item/antipattern.md +137 -0
- package/dist/collection/components/mds-accordion-item/documentation.json +288 -0
- package/dist/collection/components/mds-accordion-item/pattern.md +156 -0
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +65 -0
- package/dist/collection/components/mds-accordion-timer/antipattern.md +133 -0
- package/dist/collection/components/mds-accordion-timer/documentation.json +168 -0
- package/dist/collection/components/mds-accordion-timer/pattern.md +137 -0
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +82 -0
- package/dist/collection/components/mds-accordion-timer-item/antipattern.md +143 -0
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +400 -0
- package/dist/collection/components/mds-accordion-timer-item/pattern.md +136 -0
- package/dist/collection/components/mds-author/AGENTS.md +40 -0
- package/dist/collection/components/mds-author/antipattern.md +106 -0
- package/dist/collection/components/mds-author/documentation.json +51 -0
- package/dist/collection/components/mds-author/pattern.md +101 -0
- package/dist/collection/components/mds-avatar/AGENTS.md +70 -0
- package/dist/collection/components/mds-avatar/antipattern.md +96 -0
- package/dist/collection/components/mds-avatar/documentation.json +362 -0
- package/dist/collection/components/mds-avatar/mds-avatar.js +27 -32
- package/dist/collection/components/mds-avatar/pattern.md +108 -0
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +65 -0
- package/dist/collection/components/mds-avatar-stack/antipattern.md +122 -0
- package/dist/collection/components/mds-avatar-stack/documentation.json +196 -0
- package/dist/collection/components/mds-avatar-stack/pattern.md +125 -0
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +60 -0
- package/dist/collection/components/mds-avatar-stack-item/antipattern.md +113 -0
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +315 -0
- package/dist/collection/components/mds-avatar-stack-item/pattern.md +105 -0
- package/dist/collection/components/mds-badge/AGENTS.md +63 -0
- package/dist/collection/components/mds-badge/antipattern.md +104 -0
- package/dist/collection/components/mds-badge/documentation.json +316 -0
- package/dist/collection/components/mds-badge/mds-badge.js +3 -2
- package/dist/collection/components/mds-badge/pattern.md +130 -0
- package/dist/collection/components/mds-banner/AGENTS.md +87 -0
- package/dist/collection/components/mds-banner/antipattern.md +141 -0
- package/dist/collection/components/mds-banner/documentation.json +378 -0
- package/dist/collection/components/mds-banner/pattern.md +176 -0
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +59 -0
- package/dist/collection/components/mds-benchmark-bar/antipattern.md +77 -0
- package/dist/collection/components/mds-benchmark-bar/documentation.json +313 -0
- package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +3 -2
- package/dist/collection/components/mds-benchmark-bar/pattern.md +102 -0
- package/dist/collection/components/mds-bibliography/AGENTS.md +61 -0
- package/dist/collection/components/mds-bibliography/antipattern.md +130 -0
- package/dist/collection/components/mds-bibliography/documentation.json +407 -0
- package/dist/collection/components/mds-bibliography/mds-bibliography.js +4 -3
- package/dist/collection/components/mds-bibliography/pattern.md +142 -0
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +68 -0
- package/dist/collection/components/mds-breadcrumb/antipattern.md +112 -0
- package/dist/collection/components/mds-breadcrumb/documentation.json +156 -0
- package/dist/collection/components/mds-breadcrumb/pattern.md +103 -0
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +67 -0
- package/dist/collection/components/mds-breadcrumb-item/antipattern.md +109 -0
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +160 -0
- package/dist/collection/components/mds-breadcrumb-item/pattern.md +85 -0
- package/dist/collection/components/mds-button/AGENTS.md +102 -0
- package/dist/collection/components/mds-button/antipattern.md +126 -0
- package/dist/collection/components/mds-button/documentation.json +922 -0
- package/dist/collection/components/mds-button/mds-button.css +4 -1
- package/dist/collection/components/mds-button/mds-button.js +48 -8
- package/dist/collection/components/mds-button/pattern.md +172 -0
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +88 -0
- package/dist/collection/components/mds-button-dropdown/antipattern.md +158 -0
- package/dist/collection/components/mds-button-dropdown/documentation.json +614 -0
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +94 -6
- package/dist/collection/components/mds-button-dropdown/pattern.md +164 -0
- package/dist/collection/components/mds-button-group/AGENTS.md +33 -0
- package/dist/collection/components/mds-button-group/antipattern.md +105 -0
- package/dist/collection/components/mds-button-group/documentation.json +43 -0
- package/dist/collection/components/mds-button-group/pattern.md +89 -0
- package/dist/collection/components/mds-calendar/AGENTS.md +96 -0
- package/dist/collection/components/mds-calendar/antipattern.md +113 -0
- package/dist/collection/components/mds-calendar/documentation.json +626 -0
- package/dist/collection/components/mds-calendar/pattern.md +128 -0
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +94 -0
- package/dist/collection/components/mds-calendar-cell/antipattern.md +58 -0
- package/dist/collection/components/mds-calendar-cell/documentation.json +539 -0
- package/dist/collection/components/mds-calendar-cell/pattern.md +82 -0
- package/dist/collection/components/mds-card/AGENTS.md +60 -0
- package/dist/collection/components/mds-card/antipattern.md +133 -0
- package/dist/collection/components/mds-card/documentation.json +117 -0
- package/dist/collection/components/mds-card/pattern.md +160 -0
- package/dist/collection/components/mds-card-content/AGENTS.md +34 -0
- package/dist/collection/components/mds-card-content/antipattern.md +110 -0
- package/dist/collection/components/mds-card-content/documentation.json +43 -0
- package/dist/collection/components/mds-card-content/pattern.md +91 -0
- package/dist/collection/components/mds-card-footer/AGENTS.md +34 -0
- package/dist/collection/components/mds-card-footer/antipattern.md +112 -0
- package/dist/collection/components/mds-card-footer/documentation.json +43 -0
- package/dist/collection/components/mds-card-footer/pattern.md +95 -0
- package/dist/collection/components/mds-card-header/AGENTS.md +38 -0
- package/dist/collection/components/mds-card-header/antipattern.md +114 -0
- package/dist/collection/components/mds-card-header/documentation.json +51 -0
- package/dist/collection/components/mds-card-header/pattern.md +143 -0
- package/dist/collection/components/mds-card-media/AGENTS.md +46 -0
- package/dist/collection/components/mds-card-media/antipattern.md +128 -0
- package/dist/collection/components/mds-card-media/documentation.json +56 -0
- package/dist/collection/components/mds-card-media/pattern.md +93 -0
- package/dist/collection/components/mds-chip/AGENTS.md +84 -0
- package/dist/collection/components/mds-chip/antipattern.md +119 -0
- package/dist/collection/components/mds-chip/documentation.json +535 -0
- package/dist/collection/components/mds-chip/pattern.md +166 -0
- package/dist/collection/components/mds-details/AGENTS.md +72 -0
- package/dist/collection/components/mds-details/antipattern.md +128 -0
- package/dist/collection/components/mds-details/documentation.json +153 -0
- package/dist/collection/components/mds-details/pattern.md +138 -0
- package/dist/collection/components/mds-dropdown/AGENTS.md +95 -0
- package/dist/collection/components/mds-dropdown/antipattern.md +137 -0
- package/dist/collection/components/mds-dropdown/documentation.json +701 -0
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +4 -3
- package/dist/collection/components/mds-dropdown/pattern.md +201 -0
- package/dist/collection/components/mds-emoji/AGENTS.md +88 -0
- package/dist/collection/components/mds-emoji/antipattern.md +134 -0
- package/dist/collection/components/mds-emoji/documentation.json +506 -0
- package/dist/collection/components/mds-emoji/pattern.md +219 -0
- package/dist/collection/components/mds-entity/AGENTS.md +76 -0
- package/dist/collection/components/mds-entity/antipattern.md +112 -0
- package/dist/collection/components/mds-entity/documentation.json +365 -0
- package/dist/collection/components/mds-entity/pattern.md +125 -0
- package/dist/collection/components/mds-file/AGENTS.md +63 -0
- package/dist/collection/components/mds-file/antipattern.md +92 -0
- package/dist/collection/components/mds-file/documentation.json +484 -0
- package/dist/collection/components/mds-file/pattern.md +109 -0
- package/dist/collection/components/mds-file-preview/AGENTS.md +88 -0
- package/dist/collection/components/mds-file-preview/antipattern.md +129 -0
- package/dist/collection/components/mds-file-preview/documentation.json +780 -0
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +6 -7
- package/dist/collection/components/mds-file-preview/pattern.md +164 -0
- package/dist/collection/components/mds-filter/AGENTS.md +72 -0
- package/dist/collection/components/mds-filter/antipattern.md +140 -0
- package/dist/collection/components/mds-filter/documentation.json +239 -0
- package/dist/collection/components/mds-filter/pattern.md +129 -0
- package/dist/collection/components/mds-filter-item/AGENTS.md +64 -0
- package/dist/collection/components/mds-filter-item/antipattern.md +127 -0
- package/dist/collection/components/mds-filter-item/documentation.json +240 -0
- package/dist/collection/components/mds-filter-item/pattern.md +125 -0
- package/dist/collection/components/mds-header/AGENTS.md +95 -0
- package/dist/collection/components/mds-header/antipattern.md +120 -0
- package/dist/collection/components/mds-header/documentation.json +491 -0
- package/dist/collection/components/mds-header/mds-header.js +17 -8
- package/dist/collection/components/mds-header/pattern.md +182 -0
- package/dist/collection/components/mds-header-bar/AGENTS.md +80 -0
- package/dist/collection/components/mds-header-bar/antipattern.md +119 -0
- package/dist/collection/components/mds-header-bar/documentation.json +251 -0
- package/dist/collection/components/mds-header-bar/pattern.md +134 -0
- package/dist/collection/components/mds-help/AGENTS.md +65 -0
- package/dist/collection/components/mds-help/antipattern.md +73 -0
- package/dist/collection/components/mds-help/documentation.json +228 -0
- package/dist/collection/components/mds-help/pattern.md +106 -0
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +72 -0
- package/dist/collection/components/mds-horizontal-scroll/antipattern.md +120 -0
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +279 -0
- package/dist/collection/components/mds-horizontal-scroll/pattern.md +154 -0
- package/dist/collection/components/mds-hr/AGENTS.md +27 -0
- package/dist/collection/components/mds-hr/antipattern.md +84 -0
- package/dist/collection/components/mds-hr/documentation.json +33 -0
- package/dist/collection/components/mds-hr/pattern.md +88 -0
- package/dist/collection/components/mds-icon/AGENTS.md +52 -0
- package/dist/collection/components/mds-icon/antipattern.md +118 -0
- package/dist/collection/components/mds-icon/documentation.json +205 -0
- package/dist/collection/components/mds-icon/mds-icon.js +29 -4
- package/dist/collection/components/mds-icon/pattern.md +135 -0
- package/dist/collection/components/mds-icon/services/icons-set.service.js +47 -18
- package/dist/collection/components/mds-img/AGENTS.md +78 -0
- package/dist/collection/components/mds-img/antipattern.md +106 -0
- package/dist/collection/components/mds-img/documentation.json +470 -0
- package/dist/collection/components/mds-img/mds-img.js +3 -3
- package/dist/collection/components/mds-img/pattern.md +128 -0
- package/dist/collection/components/mds-input/AGENTS.md +138 -0
- package/dist/collection/components/mds-input/antipattern.md +128 -0
- package/dist/collection/components/mds-input/documentation.json +1574 -0
- package/dist/collection/components/mds-input/mds-input.js +185 -30
- package/dist/collection/components/mds-input/meta/input-type/InputValidationManager.js +8 -1
- package/dist/collection/components/mds-input/meta/validators.js +100 -2
- package/dist/collection/components/mds-input/meta/validity.js +35 -0
- package/dist/collection/components/mds-input/pattern.md +252 -0
- package/dist/collection/components/mds-input-date/AGENTS.md +98 -0
- package/dist/collection/components/mds-input-date/antipattern.md +107 -0
- package/dist/collection/components/mds-input-date/documentation.json +638 -0
- package/dist/collection/components/mds-input-date/mds-input-date.js +130 -24
- package/dist/collection/components/mds-input-date/pattern.md +158 -0
- package/dist/collection/components/mds-input-date-range/AGENTS.md +90 -0
- package/dist/collection/components/mds-input-date-range/antipattern.md +168 -0
- package/dist/collection/components/mds-input-date-range/documentation.json +502 -0
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +13 -0
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +112 -9
- package/dist/collection/components/mds-input-date-range/pattern.md +122 -0
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +62 -0
- package/dist/collection/components/mds-input-date-range-preselection/antipattern.md +147 -0
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +176 -0
- package/dist/collection/components/mds-input-date-range-preselection/pattern.md +101 -0
- package/dist/collection/components/mds-input-field/AGENTS.md +60 -0
- package/dist/collection/components/mds-input-field/antipattern.md +115 -0
- package/dist/collection/components/mds-input-field/documentation.json +178 -0
- package/dist/collection/components/mds-input-field/pattern.md +95 -0
- package/dist/collection/components/mds-input-otp/AGENTS.md +48 -0
- package/dist/collection/components/mds-input-otp/antipattern.md +105 -0
- package/dist/collection/components/mds-input-otp/documentation.json +203 -0
- package/dist/collection/components/mds-input-otp/mds-input-otp.css +4 -1
- package/dist/collection/components/mds-input-otp/mds-input-otp.js +88 -15
- package/dist/collection/components/mds-input-otp/pattern.md +107 -0
- package/dist/collection/components/mds-input-range/AGENTS.md +84 -0
- package/dist/collection/components/mds-input-range/antipattern.md +127 -0
- package/dist/collection/components/mds-input-range/documentation.json +315 -0
- package/dist/collection/components/mds-input-range/mds-input-range.css +6 -2
- package/dist/collection/components/mds-input-range/mds-input-range.js +30 -13
- package/dist/collection/components/mds-input-range/pattern.md +110 -0
- package/dist/collection/components/mds-input-select/AGENTS.md +99 -0
- package/dist/collection/components/mds-input-select/antipattern.md +126 -0
- package/dist/collection/components/mds-input-select/documentation.json +552 -0
- package/dist/collection/components/mds-input-select/mds-input-select.js +171 -40
- package/dist/collection/components/mds-input-select/meta/event-detail.js +1 -0
- package/dist/collection/components/mds-input-select/pattern.md +168 -0
- package/dist/collection/components/mds-input-switch/AGENTS.md +106 -0
- package/dist/collection/components/mds-input-switch/antipattern.md +117 -0
- package/dist/collection/components/mds-input-switch/documentation.json +638 -0
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +4 -1
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +59 -16
- package/dist/collection/components/mds-input-switch/pattern.md +133 -0
- package/dist/collection/components/mds-input-tip/AGENTS.md +56 -0
- package/dist/collection/components/mds-input-tip/antipattern.md +108 -0
- package/dist/collection/components/mds-input-tip/documentation.json +160 -0
- package/dist/collection/components/mds-input-tip/pattern.md +125 -0
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +58 -0
- package/dist/collection/components/mds-input-tip-item/antipattern.md +98 -0
- package/dist/collection/components/mds-input-tip-item/documentation.json +181 -0
- package/dist/collection/components/mds-input-tip-item/pattern.md +107 -0
- package/dist/collection/components/mds-input-upload/AGENTS.md +78 -0
- package/dist/collection/components/mds-input-upload/antipattern.md +144 -0
- package/dist/collection/components/mds-input-upload/documentation.json +425 -0
- package/dist/collection/components/mds-input-upload/mds-input-upload.css +15 -0
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +181 -67
- package/dist/collection/components/mds-input-upload/pattern.md +165 -0
- package/dist/collection/components/mds-keyboard/AGENTS.md +76 -0
- package/dist/collection/components/mds-keyboard/antipattern.md +111 -0
- package/dist/collection/components/mds-keyboard/documentation.json +227 -0
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +6 -3
- package/dist/collection/components/mds-keyboard/pattern.md +129 -0
- package/dist/collection/components/mds-keyboard-key/AGENTS.md +55 -0
- package/dist/collection/components/mds-keyboard-key/antipattern.md +117 -0
- package/dist/collection/components/mds-keyboard-key/documentation.json +450 -0
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +8 -5
- package/dist/collection/components/mds-keyboard-key/pattern.md +98 -0
- package/dist/collection/components/mds-kpi/AGENTS.md +44 -0
- package/dist/collection/components/mds-kpi/antipattern.md +93 -0
- package/dist/collection/components/mds-kpi/documentation.json +54 -0
- package/dist/collection/components/mds-kpi/pattern.md +109 -0
- package/dist/collection/components/mds-kpi-item/AGENTS.md +62 -0
- package/dist/collection/components/mds-kpi-item/antipattern.md +119 -0
- package/dist/collection/components/mds-kpi-item/documentation.json +199 -0
- package/dist/collection/components/mds-kpi-item/pattern.md +115 -0
- package/dist/collection/components/mds-label/AGENTS.md +71 -0
- package/dist/collection/components/mds-label/antipattern.md +92 -0
- package/dist/collection/components/mds-label/documentation.json +388 -0
- package/dist/collection/components/mds-label/pattern.md +111 -0
- package/dist/collection/components/mds-list/AGENTS.md +33 -0
- package/dist/collection/components/mds-list/antipattern.md +117 -0
- package/dist/collection/components/mds-list/documentation.json +43 -0
- package/dist/collection/components/mds-list/pattern.md +104 -0
- package/dist/collection/components/mds-list-item/AGENTS.md +60 -0
- package/dist/collection/components/mds-list-item/antipattern.md +118 -0
- package/dist/collection/components/mds-list-item/documentation.json +200 -0
- package/dist/collection/components/mds-list-item/pattern.md +101 -0
- package/dist/collection/components/mds-mention/AGENTS.md +55 -0
- package/dist/collection/components/mds-mention/antipattern.md +86 -0
- package/dist/collection/components/mds-mention/documentation.json +203 -0
- package/dist/collection/components/mds-mention/mds-mention.js +3 -2
- package/dist/collection/components/mds-mention/pattern.md +91 -0
- package/dist/collection/components/mds-modal/AGENTS.md +107 -0
- package/dist/collection/components/mds-modal/antipattern.md +96 -0
- package/dist/collection/components/mds-modal/documentation.json +552 -0
- package/dist/collection/components/mds-modal/pattern.md +228 -0
- package/dist/collection/components/mds-note/AGENTS.md +68 -0
- package/dist/collection/components/mds-note/antipattern.md +99 -0
- package/dist/collection/components/mds-note/documentation.json +220 -0
- package/dist/collection/components/mds-note/pattern.md +108 -0
- package/dist/collection/components/mds-notification/AGENTS.md +67 -0
- package/dist/collection/components/mds-notification/antipattern.md +86 -0
- package/dist/collection/components/mds-notification/documentation.json +253 -0
- package/dist/collection/components/mds-notification/mds-notification.js +11 -8
- package/dist/collection/components/mds-notification/pattern.md +98 -0
- package/dist/collection/components/mds-paginator/AGENTS.md +57 -0
- package/dist/collection/components/mds-paginator/antipattern.md +95 -0
- package/dist/collection/components/mds-paginator/documentation.json +135 -0
- package/dist/collection/components/mds-paginator/pattern.md +92 -0
- package/dist/collection/components/mds-paginator-item/AGENTS.md +74 -0
- package/dist/collection/components/mds-paginator-item/antipattern.md +95 -0
- package/dist/collection/components/mds-paginator-item/documentation.json +206 -0
- package/dist/collection/components/mds-paginator-item/pattern.md +75 -0
- package/dist/collection/components/mds-policy-ai/AGENTS.md +58 -0
- package/dist/collection/components/mds-policy-ai/antipattern.md +97 -0
- package/dist/collection/components/mds-policy-ai/documentation.json +244 -0
- package/dist/collection/components/mds-policy-ai/pattern.md +102 -0
- package/dist/collection/components/mds-pref/AGENTS.md +50 -0
- package/dist/collection/components/mds-pref/antipattern.md +85 -0
- package/dist/collection/components/mds-pref/documentation.json +138 -0
- package/dist/collection/components/mds-pref/mds-pref.js +7 -2
- package/dist/collection/components/mds-pref/pattern.md +93 -0
- package/dist/collection/components/mds-pref-animation/AGENTS.md +48 -0
- package/dist/collection/components/mds-pref-animation/antipattern.md +67 -0
- package/dist/collection/components/mds-pref-animation/documentation.json +154 -0
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +26 -2
- package/dist/collection/components/mds-pref-animation/pattern.md +86 -0
- package/dist/collection/components/mds-pref-consumption/AGENTS.md +47 -0
- package/dist/collection/components/mds-pref-consumption/antipattern.md +84 -0
- package/dist/collection/components/mds-pref-consumption/documentation.json +154 -0
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +26 -2
- package/dist/collection/components/mds-pref-consumption/pattern.md +70 -0
- package/dist/collection/components/mds-pref-contrast/AGENTS.md +50 -0
- package/dist/collection/components/mds-pref-contrast/antipattern.md +71 -0
- package/dist/collection/components/mds-pref-contrast/documentation.json +154 -0
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +24 -3
- package/dist/collection/components/mds-pref-contrast/pattern.md +82 -0
- package/dist/collection/components/mds-pref-language/AGENTS.md +56 -0
- package/dist/collection/components/mds-pref-language/antipattern.md +130 -0
- package/dist/collection/components/mds-pref-language/documentation.json +174 -0
- package/dist/collection/components/mds-pref-language/pattern.md +104 -0
- package/dist/collection/components/mds-pref-language-item/AGENTS.md +48 -0
- package/dist/collection/components/mds-pref-language-item/antipattern.md +99 -0
- package/dist/collection/components/mds-pref-language-item/documentation.json +122 -0
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +3 -2
- package/dist/collection/components/mds-pref-language-item/pattern.md +85 -0
- package/dist/collection/components/mds-pref-mode/AGENTS.md +53 -0
- package/dist/collection/components/mds-pref-mode/antipattern.md +104 -0
- package/dist/collection/components/mds-pref-mode/documentation.json +241 -0
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +27 -4
- package/dist/collection/components/mds-pref-mode/pattern.md +94 -0
- package/dist/collection/components/mds-pref-theme/AGENTS.md +60 -0
- package/dist/collection/components/mds-pref-theme/antipattern.md +104 -0
- package/dist/collection/components/mds-pref-theme/documentation.json +277 -0
- package/dist/collection/components/mds-pref-theme/pattern.md +97 -0
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +60 -0
- package/dist/collection/components/mds-pref-theme-item/antipattern.md +98 -0
- package/dist/collection/components/mds-pref-theme-item/documentation.json +228 -0
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +3 -2
- package/dist/collection/components/mds-pref-theme-item/pattern.md +98 -0
- package/dist/collection/components/mds-price-table/AGENTS.md +34 -0
- package/dist/collection/components/mds-price-table/antipattern.md +131 -0
- package/dist/collection/components/mds-price-table/documentation.json +43 -0
- package/dist/collection/components/mds-price-table/pattern.md +182 -0
- package/dist/collection/components/mds-price-table-features/AGENTS.md +61 -0
- package/dist/collection/components/mds-price-table-features/antipattern.md +152 -0
- package/dist/collection/components/mds-price-table-features/documentation.json +96 -0
- package/dist/collection/components/mds-price-table-features/pattern.md +157 -0
- package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +69 -0
- package/dist/collection/components/mds-price-table-features-cell/antipattern.md +105 -0
- package/dist/collection/components/mds-price-table-features-cell/documentation.json +154 -0
- package/dist/collection/components/mds-price-table-features-cell/pattern.md +128 -0
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +43 -0
- package/dist/collection/components/mds-price-table-features-row/antipattern.md +135 -0
- package/dist/collection/components/mds-price-table-features-row/documentation.json +64 -0
- package/dist/collection/components/mds-price-table-features-row/pattern.md +125 -0
- package/dist/collection/components/mds-price-table-header/AGENTS.md +34 -0
- package/dist/collection/components/mds-price-table-header/antipattern.md +133 -0
- package/dist/collection/components/mds-price-table-header/documentation.json +43 -0
- package/dist/collection/components/mds-price-table-header/pattern.md +176 -0
- package/dist/collection/components/mds-price-table-list/AGENTS.md +63 -0
- package/dist/collection/components/mds-price-table-list/antipattern.md +133 -0
- package/dist/collection/components/mds-price-table-list/documentation.json +104 -0
- package/dist/collection/components/mds-price-table-list/pattern.md +134 -0
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +61 -0
- package/dist/collection/components/mds-price-table-list-item/antipattern.md +90 -0
- package/dist/collection/components/mds-price-table-list-item/documentation.json +145 -0
- package/dist/collection/components/mds-price-table-list-item/pattern.md +105 -0
- package/dist/collection/components/mds-progress/AGENTS.md +68 -0
- package/dist/collection/components/mds-progress/antipattern.md +94 -0
- package/dist/collection/components/mds-progress/documentation.json +375 -0
- package/dist/collection/components/mds-progress/pattern.md +139 -0
- package/dist/collection/components/mds-push-notification/AGENTS.md +88 -0
- package/dist/collection/components/mds-push-notification/antipattern.md +154 -0
- package/dist/collection/components/mds-push-notification/documentation.json +306 -0
- package/dist/collection/components/mds-push-notification/pattern.md +203 -0
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +91 -0
- package/dist/collection/components/mds-push-notification-item/antipattern.md +129 -0
- package/dist/collection/components/mds-push-notification-item/documentation.json +586 -0
- package/dist/collection/components/mds-push-notification-item/pattern.md +201 -0
- package/dist/collection/components/mds-quote/AGENTS.md +51 -0
- package/dist/collection/components/mds-quote/antipattern.md +122 -0
- package/dist/collection/components/mds-quote/documentation.json +176 -0
- package/dist/collection/components/mds-quote/pattern.md +108 -0
- package/dist/collection/components/mds-radial-menu/AGENTS.md +87 -0
- package/dist/collection/components/mds-radial-menu/antipattern.md +104 -0
- package/dist/collection/components/mds-radial-menu/documentation.json +581 -0
- package/dist/collection/components/mds-radial-menu/pattern.md +150 -0
- package/dist/collection/components/mds-radial-menu-item/AGENTS.md +51 -0
- package/dist/collection/components/mds-radial-menu-item/antipattern.md +106 -0
- package/dist/collection/components/mds-radial-menu-item/documentation.json +294 -0
- package/dist/collection/components/mds-radial-menu-item/pattern.md +98 -0
- package/dist/collection/components/mds-radial-progress/AGENTS.md +58 -0
- package/dist/collection/components/mds-radial-progress/antipattern.md +99 -0
- package/dist/collection/components/mds-radial-progress/documentation.json +232 -0
- package/dist/collection/components/mds-radial-progress/pattern.md +132 -0
- package/dist/collection/components/mds-separator/AGENTS.md +39 -0
- package/dist/collection/components/mds-separator/antipattern.md +98 -0
- package/dist/collection/components/mds-separator/documentation.json +45 -0
- package/dist/collection/components/mds-separator/pattern.md +82 -0
- package/dist/collection/components/mds-spinner/AGENTS.md +49 -0
- package/dist/collection/components/mds-spinner/antipattern.md +93 -0
- package/dist/collection/components/mds-spinner/documentation.json +86 -0
- package/dist/collection/components/mds-spinner/pattern.md +102 -0
- package/dist/collection/components/mds-status-bar/AGENTS.md +75 -0
- package/dist/collection/components/mds-status-bar/antipattern.md +128 -0
- package/dist/collection/components/mds-status-bar/documentation.json +262 -0
- package/dist/collection/components/mds-status-bar/pattern.md +123 -0
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +74 -0
- package/dist/collection/components/mds-stepper-bar/antipattern.md +123 -0
- package/dist/collection/components/mds-stepper-bar/documentation.json +208 -0
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +5 -3
- package/dist/collection/components/mds-stepper-bar/pattern.md +182 -0
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +84 -0
- package/dist/collection/components/mds-stepper-bar-item/antipattern.md +115 -0
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +453 -0
- package/dist/collection/components/mds-stepper-bar-item/pattern.md +203 -0
- package/dist/collection/components/mds-tab/AGENTS.md +109 -0
- package/dist/collection/components/mds-tab/antipattern.md +164 -0
- package/dist/collection/components/mds-tab/documentation.json +495 -0
- package/dist/collection/components/mds-tab/pattern.md +201 -0
- package/dist/collection/components/mds-tab-bar/AGENTS.md +46 -0
- package/dist/collection/components/mds-tab-bar/antipattern.md +105 -0
- package/dist/collection/components/mds-tab-bar/documentation.json +71 -0
- package/dist/collection/components/mds-tab-bar/pattern.md +87 -0
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +67 -0
- package/dist/collection/components/mds-tab-bar-item/antipattern.md +116 -0
- package/dist/collection/components/mds-tab-bar-item/documentation.json +210 -0
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +3 -2
- package/dist/collection/components/mds-tab-bar-item/pattern.md +110 -0
- package/dist/collection/components/mds-tab-item/AGENTS.md +82 -0
- package/dist/collection/components/mds-tab-item/antipattern.md +138 -0
- package/dist/collection/components/mds-tab-item/documentation.json +577 -0
- package/dist/collection/components/mds-tab-item/pattern.md +155 -0
- package/dist/collection/components/mds-table/AGENTS.md +90 -0
- package/dist/collection/components/mds-table/antipattern.md +169 -0
- package/dist/collection/components/mds-table/documentation.json +304 -0
- package/dist/collection/components/mds-table/pattern.md +288 -0
- package/dist/collection/components/mds-table-body/AGENTS.md +55 -0
- package/dist/collection/components/mds-table-body/antipattern.md +118 -0
- package/dist/collection/components/mds-table-body/documentation.json +122 -0
- package/dist/collection/components/mds-table-body/pattern.md +154 -0
- package/dist/collection/components/mds-table-cell/AGENTS.md +56 -0
- package/dist/collection/components/mds-table-cell/antipattern.md +100 -0
- package/dist/collection/components/mds-table-cell/documentation.json +104 -0
- package/dist/collection/components/mds-table-cell/pattern.md +168 -0
- package/dist/collection/components/mds-table-footer/AGENTS.md +33 -0
- package/dist/collection/components/mds-table-footer/antipattern.md +114 -0
- package/dist/collection/components/mds-table-footer/documentation.json +43 -0
- package/dist/collection/components/mds-table-footer/pattern.md +116 -0
- package/dist/collection/components/mds-table-header/AGENTS.md +61 -0
- package/dist/collection/components/mds-table-header/antipattern.md +157 -0
- package/dist/collection/components/mds-table-header/documentation.json +156 -0
- package/dist/collection/components/mds-table-header/pattern.md +158 -0
- package/dist/collection/components/mds-table-header-cell/AGENTS.md +51 -0
- package/dist/collection/components/mds-table-header-cell/antipattern.md +108 -0
- package/dist/collection/components/mds-table-header-cell/documentation.json +158 -0
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +2 -2
- package/dist/collection/components/mds-table-header-cell/pattern.md +145 -0
- package/dist/collection/components/mds-table-row/AGENTS.md +68 -0
- package/dist/collection/components/mds-table-row/antipattern.md +142 -0
- package/dist/collection/components/mds-table-row/documentation.json +252 -0
- package/dist/collection/components/mds-table-row/pattern.md +157 -0
- package/dist/collection/components/mds-text/AGENTS.md +64 -0
- package/dist/collection/components/mds-text/antipattern.md +113 -0
- package/dist/collection/components/mds-text/documentation.json +746 -0
- package/dist/collection/components/mds-text/mds-text.js +2 -1
- package/dist/collection/components/mds-text/pattern.md +139 -0
- package/dist/collection/components/mds-toast/AGENTS.md +78 -0
- package/dist/collection/components/mds-toast/antipattern.md +131 -0
- package/dist/collection/components/mds-toast/documentation.json +339 -0
- package/dist/collection/components/mds-toast/mds-toast.js +9 -3
- package/dist/collection/components/mds-toast/pattern.md +161 -0
- package/dist/collection/components/mds-tooltip/AGENTS.md +80 -0
- package/dist/collection/components/mds-tooltip/antipattern.md +108 -0
- package/dist/collection/components/mds-tooltip/documentation.json +483 -0
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +4 -4
- package/dist/collection/components/mds-tooltip/pattern.md +128 -0
- package/dist/collection/components/mds-tree/AGENTS.md +88 -0
- package/dist/collection/components/mds-tree/antipattern.md +153 -0
- package/dist/collection/components/mds-tree/documentation.json +472 -0
- package/dist/collection/components/mds-tree/pattern.md +198 -0
- package/dist/collection/components/mds-tree-item/AGENTS.md +119 -0
- package/dist/collection/components/mds-tree-item/antipattern.md +152 -0
- package/dist/collection/components/mds-tree-item/documentation.json +646 -0
- package/dist/collection/components/mds-tree-item/pattern.md +201 -0
- package/dist/collection/components/mds-url-view/AGENTS.md +63 -0
- package/dist/collection/components/mds-url-view/antipattern.md +107 -0
- package/dist/collection/components/mds-url-view/documentation.json +209 -0
- package/dist/collection/components/mds-url-view/pattern.md +106 -0
- package/dist/collection/components/mds-usage/AGENTS.md +70 -0
- package/dist/collection/components/mds-usage/antipattern.md +87 -0
- package/dist/collection/components/mds-usage/documentation.json +156 -0
- package/dist/collection/components/mds-usage/pattern.md +117 -0
- package/dist/collection/components/mds-video-wall/AGENTS.md +65 -0
- package/dist/collection/components/mds-video-wall/antipattern.md +97 -0
- package/dist/collection/components/mds-video-wall/documentation.json +316 -0
- package/dist/collection/components/mds-video-wall/pattern.md +101 -0
- package/dist/collection/components/mds-zero/AGENTS.md +55 -0
- package/dist/collection/components/mds-zero/antipattern.md +106 -0
- package/dist/collection/components/mds-zero/documentation.json +82 -0
- package/dist/collection/components/mds-zero/pattern.md +118 -0
- package/dist/collection/dictionary/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-author.js +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-badge.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button-group.js +1 -1
- package/dist/components/mds-button.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-card-content.js +1 -1
- package/dist/components/mds-card-footer.js +1 -1
- package/dist/components/mds-card-header.js +1 -1
- package/dist/components/mds-card-media.js +1 -1
- package/dist/components/mds-card.js +1 -1
- package/dist/components/mds-chip.js +1 -1
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown.js +1 -1
- package/dist/components/mds-emoji.js +3 -3
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +3 -3
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-tip.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme-item.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features-row.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-header.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-price-table-list.js +1 -1
- package/dist/components/mds-price-table.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-separator.js +1 -1
- package/dist/components/mds-spinner.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-bar.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-tab.js +1 -1
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/mds-tooltip.js +1 -1
- package/dist/components/mds-tree-item.js +1 -1
- package/dist/components/mds-tree.js +1 -1
- package/dist/components/mds-url-view.js +1 -1
- package/dist/components/mds-usage.js +1 -1
- package/dist/components/mds-video-wall.js +1 -1
- package/dist/components/mds-zero.js +1 -1
- package/dist/components/p--miH951G.js +5 -0
- package/dist/components/p-1aH7xiMs.js +1 -0
- package/dist/components/p-B05zwjTY.js +1 -0
- package/dist/components/p-BOu_NOgd.js +1 -0
- package/dist/components/p-BTpjOy0A.js +1 -0
- package/dist/components/p-BVw5aqzn.js +1 -0
- package/dist/components/p-BW24ByN-.js +1 -0
- package/dist/components/p-BWpSxp3h.js +1 -0
- package/dist/components/p-BXPIlPIF.js +1 -0
- package/dist/components/p-BzvYQBdf.js +1 -0
- package/dist/components/p-C3Sn8bRc.js +1 -0
- package/dist/components/p-CGkSDkOY.js +1 -0
- package/dist/components/p-CIcshx6K.js +1 -0
- package/dist/components/p-CKS4r32k.js +1 -0
- package/dist/components/p-COkF_8bh.js +1 -0
- package/dist/components/p-CmHMhHMt.js +1 -0
- package/dist/components/p-Cnt6G6GK.js +1 -0
- package/dist/components/p-CsL9U6eU.js +1 -0
- package/dist/components/p-Cyj1BFxx.js +1 -0
- package/dist/components/p-DQqUzCGR.js +1 -0
- package/dist/components/p-DR46G4-6.js +1 -0
- package/dist/components/p-DcW0iRnZ.js +1 -0
- package/dist/components/p-DebgFlHq.js +1 -0
- package/dist/components/p-DmPLOktp.js +1 -0
- package/dist/components/p-Dpf8NWF9.js +1 -0
- package/dist/components/p-DwA-5c8G.js +1 -0
- package/dist/components/p-Dws02cT2.js +8 -0
- package/dist/components/p-K3QNYRhf.js +1 -0
- package/dist/components/p-PQ_EO5-U.js +1 -0
- package/dist/components/p-akEzGmDD.js +1 -0
- package/dist/components/p-bDVBqkn0.js +1 -0
- package/dist/components/p-faViX-qz.js +1 -0
- package/dist/components/p-pBvN1uAc.js +3 -0
- package/dist/components/p-wI0alRSO.js +1 -0
- package/dist/components/p-x_c_51aL.js +1 -0
- package/dist/components/p-zHpei4x6.js +1 -0
- package/dist/documentation.json +618 -360
- package/dist/esm/floating-controller-BTYkH_Ih.js +366 -0
- package/dist/esm/form-wI0alRSO.js +42 -0
- package/dist/esm/index-BhCZiGfL.js +196 -0
- package/dist/esm/index-BxPbQB28.js +5149 -0
- package/dist/esm/index.js +65 -23
- package/dist/esm/loader.js +3 -3
- package/dist/esm/locale-CVJm6KFD.js +814 -0
- package/dist/esm/magma-components.js +3 -3
- package/dist/esm/mds-accordion-item.entry.js +2 -2
- package/dist/esm/mds-accordion-timer-item.entry.js +2 -2
- package/dist/esm/mds-accordion-timer.entry.js +1 -1
- package/dist/esm/mds-accordion.entry.js +2 -2
- package/dist/esm/mds-author.entry.js +1 -1
- package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm/mds-avatar-stack.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +29 -34
- package/dist/esm/mds-badge.entry.js +5 -4
- package/dist/esm/mds-banner_3.entry.js +3 -3
- package/dist/esm/mds-benchmark-bar.entry.js +4 -3
- package/dist/esm/mds-bibliography.entry.js +5 -4
- package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm/mds-breadcrumb.entry.js +3 -3
- package/dist/esm/mds-button-dropdown.entry.js +38 -4
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +42 -15
- package/dist/esm/mds-calendar_2.entry.js +2 -2
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +2 -2
- package/dist/esm/mds-details.entry.js +2 -2
- package/dist/esm/mds-dropdown.entry.js +7 -6
- package/dist/esm/mds-emoji.entry.js +2 -2
- package/dist/esm/mds-entity.entry.js +3 -3
- package/dist/esm/mds-file-preview.entry.js +20 -20
- package/dist/esm/mds-file.entry.js +3 -3
- package/dist/esm/mds-filter-item.entry.js +2 -2
- package/dist/esm/mds-filter.entry.js +2 -2
- package/dist/esm/mds-header-bar.entry.js +2 -2
- package/dist/esm/mds-header.entry.js +19 -10
- package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm/mds-hr.entry.js +2 -2
- package/dist/esm/mds-img.entry.js +6 -6
- package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +95 -13
- package/dist/esm/mds-input-date.entry.js +124 -27
- package/dist/esm/mds-input-field.entry.js +1 -1
- package/dist/esm/mds-input-otp.entry.js +65 -19
- package/dist/esm/mds-input-range.entry.js +32 -16
- package/dist/esm/mds-input-select.entry.js +166 -35
- package/dist/esm/mds-input-switch_2.entry.js +63 -21
- package/dist/esm/mds-input-tip_2.entry.js +3 -3
- package/dist/esm/mds-input-upload.entry.js +141 -68
- package/dist/esm/mds-input.entry.js +320 -36
- package/dist/esm/mds-keyboard-key.entry.js +11 -8
- package/dist/esm/mds-keyboard.entry.js +9 -6
- package/dist/esm/mds-kpi-item.entry.js +2 -2
- package/dist/esm/mds-kpi.entry.js +1 -1
- package/dist/esm/mds-label.entry.js +3 -3
- package/dist/esm/mds-list-item.entry.js +2 -2
- package/dist/esm/mds-list.entry.js +1 -1
- package/dist/esm/mds-mention.entry.js +6 -5
- package/dist/esm/mds-modal.entry.js +2 -2
- package/dist/esm/mds-note.entry.js +3 -3
- package/dist/esm/mds-notification.entry.js +13 -10
- package/dist/esm/mds-paginator-item.entry.js +2 -2
- package/dist/esm/mds-paginator.entry.js +2 -2
- package/dist/esm/mds-policy-ai.entry.js +3 -3
- package/dist/esm/mds-pref-animation.entry.js +29 -5
- package/dist/esm/mds-pref-consumption.entry.js +29 -5
- package/dist/esm/mds-pref-contrast.entry.js +27 -6
- package/dist/esm/mds-pref-language-item.entry.js +6 -5
- package/dist/esm/mds-pref-language.entry.js +3 -3
- package/dist/esm/mds-pref-mode.entry.js +30 -7
- package/dist/esm/mds-pref-theme-item.entry.js +4 -3
- package/dist/esm/mds-pref-theme.entry.js +3 -3
- package/dist/esm/mds-pref.entry.js +10 -5
- package/dist/esm/mds-price-table-features-cell.entry.js +2 -2
- package/dist/esm/mds-price-table-features-row.entry.js +2 -2
- package/dist/esm/mds-price-table-features.entry.js +2 -2
- package/dist/esm/mds-price-table-header.entry.js +1 -1
- package/dist/esm/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm/mds-price-table-list.entry.js +2 -2
- package/dist/esm/mds-price-table.entry.js +1 -1
- package/dist/esm/mds-progress_2.entry.js +2 -2
- package/dist/esm/mds-push-notification-item.entry.js +4 -4
- package/dist/esm/mds-push-notification.entry.js +2 -2
- package/dist/esm/mds-quote.entry.js +2 -2
- package/dist/esm/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm/mds-radial-menu.entry.js +2 -2
- package/dist/esm/mds-separator.entry.js +2 -2
- package/dist/esm/mds-status-bar.entry.js +2 -2
- package/dist/esm/mds-stepper-bar-item.entry.js +3 -3
- package/dist/esm/mds-stepper-bar.entry.js +6 -4
- package/dist/esm/mds-tab-bar-item.entry.js +5 -4
- package/dist/esm/mds-tab-bar.entry.js +2 -2
- package/dist/esm/mds-tab_2.entry.js +2 -2
- package/dist/esm/mds-table-body.entry.js +2 -2
- package/dist/esm/mds-table-footer.entry.js +2 -2
- package/dist/esm/mds-table-header-cell.entry.js +4 -4
- package/dist/esm/mds-table-header.entry.js +3 -3
- package/dist/esm/mds-table-row.entry.js +3 -3
- package/dist/esm/mds-table.entry.js +3 -3
- package/dist/esm/mds-text.entry.js +4 -3
- package/dist/esm/mds-toast.entry.js +11 -5
- package/dist/esm/mds-tooltip.entry.js +7 -7
- package/dist/esm/mds-tree-item.entry.js +3 -3
- package/dist/esm/mds-tree.entry.js +1 -1
- package/dist/esm/mds-url-view.entry.js +3 -3
- package/dist/esm/mds-usage.entry.js +3 -3
- package/dist/esm/mds-video-wall.entry.js +1 -1
- package/dist/esm/mds-zero.entry.js +2 -2
- package/dist/esm/preference-DNNqH7BU.js +385 -0
- package/dist/esm-es5/floating-controller-BTYkH_Ih.js +66 -0
- package/dist/esm-es5/form-wI0alRSO.js +16 -0
- package/dist/esm-es5/index-BhCZiGfL.js +10 -0
- package/dist/esm-es5/index-BxPbQB28.js +371 -0
- package/dist/esm-es5/index.js +37 -26
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/locale-CVJm6KFD.js +230 -0
- package/dist/esm-es5/magma-components.js +2 -2
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +1 -1
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +5 -3
- package/dist/esm-es5/mds-badge.entry.js +3 -4
- package/dist/esm-es5/mds-banner_3.entry.js +1 -1
- package/dist/esm-es5/mds-benchmark-bar.entry.js +3 -4
- package/dist/esm-es5/mds-bibliography.entry.js +2 -2
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +2 -2
- package/dist/esm-es5/mds-button-dropdown.entry.js +10 -4
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +14 -9
- package/dist/esm-es5/mds-calendar_2.entry.js +1 -1
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +1 -1
- package/dist/esm-es5/mds-details.entry.js +1 -1
- package/dist/esm-es5/mds-dropdown.entry.js +3 -3
- package/dist/esm-es5/mds-emoji.entry.js +1 -1
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +16 -14
- package/dist/esm-es5/mds-file.entry.js +11 -11
- package/dist/esm-es5/mds-filter-item.entry.js +1 -1
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-header-bar.entry.js +1 -1
- package/dist/esm-es5/mds-header.entry.js +8 -6
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +2 -2
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +35 -6
- package/dist/esm-es5/mds-input-date.entry.js +47 -7
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-otp.entry.js +21 -4
- package/dist/esm-es5/mds-input-range.entry.js +15 -7
- package/dist/esm-es5/mds-input-select.entry.js +39 -6
- package/dist/esm-es5/mds-input-switch_2.entry.js +24 -4
- package/dist/esm-es5/mds-input-tip_2.entry.js +1 -1
- package/dist/esm-es5/mds-input-upload.entry.js +43 -17
- package/dist/esm-es5/mds-input.entry.js +105 -22
- package/dist/esm-es5/mds-keyboard-key.entry.js +3 -1
- package/dist/esm-es5/mds-keyboard.entry.js +4 -2
- package/dist/esm-es5/mds-kpi-item.entry.js +1 -1
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +1 -1
- package/dist/esm-es5/mds-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +2 -2
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-note.entry.js +1 -1
- package/dist/esm-es5/mds-notification.entry.js +5 -3
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +1 -1
- package/dist/esm-es5/mds-policy-ai.entry.js +1 -1
- package/dist/esm-es5/mds-pref-animation.entry.js +7 -1
- package/dist/esm-es5/mds-pref-consumption.entry.js +7 -1
- package/dist/esm-es5/mds-pref-contrast.entry.js +8 -2
- package/dist/esm-es5/mds-pref-language-item.entry.js +3 -3
- package/dist/esm-es5/mds-pref-language.entry.js +1 -1
- package/dist/esm-es5/mds-pref-mode.entry.js +10 -2
- package/dist/esm-es5/mds-pref-theme-item.entry.js +3 -3
- package/dist/esm-es5/mds-pref-theme.entry.js +1 -1
- package/dist/esm-es5/mds-pref.entry.js +6 -3
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +1 -1
- package/dist/esm-es5/mds-push-notification-item.entry.js +1 -1
- package/dist/esm-es5/mds-push-notification.entry.js +1 -1
- package/dist/esm-es5/mds-quote.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu.entry.js +1 -1
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar.entry.js +4 -4
- package/dist/esm-es5/mds-tab-bar-item.entry.js +3 -4
- package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab_2.entry.js +1 -1
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +1 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +2 -2
- package/dist/esm-es5/mds-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/esm-es5/mds-table.entry.js +1 -1
- package/dist/esm-es5/mds-text.entry.js +2 -2
- package/dist/esm-es5/mds-toast.entry.js +5 -3
- package/dist/esm-es5/mds-tooltip.entry.js +3 -3
- package/dist/esm-es5/mds-tree-item.entry.js +1 -1
- package/dist/esm-es5/mds-tree.entry.js +1 -1
- package/dist/esm-es5/mds-url-view.entry.js +1 -1
- package/dist/esm-es5/mds-usage.entry.js +1 -1
- package/dist/esm-es5/mds-video-wall.entry.js +1 -1
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/esm-es5/preference-DNNqH7BU.js +58 -0
- package/dist/hydrate/index.js +1687 -459
- package/dist/hydrate/index.mjs +1687 -459
- package/dist/magma-components/index.esm.js +1 -1
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/magma-components.js +1 -1
- package/dist/magma-components/p-00e47e49.system.entry.js +14 -0
- package/dist/magma-components/p-0141c597.system.entry.js +15 -0
- package/dist/magma-components/p-021f96f8.entry.js +1 -0
- package/dist/magma-components/p-0255924b.system.entry.js +22 -0
- package/dist/magma-components/p-03c2060d.entry.js +1 -0
- package/dist/magma-components/p-05014374.entry.js +1 -0
- package/dist/magma-components/p-05f73994.entry.js +1 -0
- package/dist/magma-components/p-0646392d.entry.js +1 -0
- package/dist/magma-components/p-0a38e4ce.system.entry.js +1 -0
- package/dist/magma-components/p-0a551e86.entry.js +1 -0
- package/dist/magma-components/p-0a904a12.entry.js +1 -0
- package/dist/magma-components/p-0a9fb138.system.entry.js +1 -0
- package/dist/magma-components/p-106f39c6.entry.js +1 -0
- package/dist/magma-components/p-10ad73e3.system.entry.js +19 -0
- package/dist/magma-components/p-1150ffb8.system.entry.js +10 -0
- package/dist/magma-components/p-12c5ae26.entry.js +1 -0
- package/dist/magma-components/p-13a1d35f.entry.js +1 -0
- package/dist/magma-components/p-15d4846d.entry.js +1 -0
- package/dist/magma-components/p-1673225e.system.entry.js +8 -0
- package/dist/magma-components/p-188f4b1d.system.entry.js +7 -0
- package/dist/magma-components/p-18c8628c.entry.js +1 -0
- package/dist/magma-components/p-1be45c75.entry.js +1 -0
- package/dist/magma-components/p-1cb495d3.entry.js +1 -0
- package/dist/magma-components/p-1e3d89cd.system.entry.js +1 -0
- package/dist/magma-components/p-1e700f0a.entry.js +1 -0
- package/dist/magma-components/p-20e4f7dd.system.entry.js +15 -0
- package/dist/magma-components/p-21865dd2.entry.js +1 -0
- package/dist/magma-components/p-218d8254.system.entry.js +1 -0
- package/dist/magma-components/p-21c46e74.system.entry.js +4 -0
- package/dist/magma-components/p-231b604f.system.entry.js +1 -0
- package/dist/magma-components/p-2507f5cf.entry.js +1 -0
- package/dist/magma-components/p-2723caa7.system.entry.js +13 -0
- package/dist/magma-components/p-277444bc.entry.js +1 -0
- package/dist/magma-components/p-283b0548.system.entry.js +102 -0
- package/dist/magma-components/p-2c44c961.system.entry.js +10 -0
- package/dist/magma-components/p-2ec0db8e.entry.js +1 -0
- package/dist/magma-components/p-2f520704.entry.js +1 -0
- package/dist/magma-components/p-30c3872d.entry.js +1 -0
- package/dist/magma-components/p-314abfba.entry.js +1 -0
- package/dist/magma-components/p-322a5452.entry.js +1 -0
- package/dist/magma-components/p-3231a6a3.entry.js +1 -0
- package/dist/magma-components/p-34401d35.entry.js +1 -0
- package/dist/magma-components/p-35aa29c5.entry.js +1 -0
- package/dist/magma-components/p-35ee2d77.entry.js +1 -0
- package/dist/magma-components/p-36a67b51.entry.js +1 -0
- package/dist/magma-components/p-3a1339bb.system.entry.js +4 -0
- package/dist/magma-components/p-3d56e3f4.entry.js +1 -0
- package/dist/magma-components/p-3e0eed90.system.entry.js +12 -0
- package/dist/magma-components/p-3ecade3c.system.entry.js +11 -0
- package/dist/magma-components/p-3eefca33.system.entry.js +16 -0
- package/dist/magma-components/p-4211ce6c.system.entry.js +1 -0
- package/dist/magma-components/p-436f9b27.system.entry.js +38 -0
- package/dist/magma-components/p-439c9ce3.system.entry.js +10 -0
- package/dist/magma-components/p-44e2a945.system.entry.js +1 -0
- package/dist/magma-components/p-4658154f.entry.js +1 -0
- package/dist/magma-components/p-474047fa.system.entry.js +10 -0
- package/dist/magma-components/p-474c5d53.system.entry.js +11 -0
- package/dist/magma-components/p-493fb2f4.system.entry.js +7 -0
- package/dist/magma-components/p-4ac94b84.system.entry.js +32 -0
- package/dist/magma-components/p-4c73f14b.system.entry.js +14 -0
- package/dist/magma-components/p-4cb88b06.system.entry.js +1 -0
- package/dist/magma-components/p-4dd6a39b.entry.js +1 -0
- package/dist/magma-components/p-4e7f21ac.entry.js +1 -0
- package/dist/magma-components/p-4f14a166.entry.js +1 -0
- package/dist/magma-components/p-50ea11c9.system.entry.js +32 -0
- package/dist/magma-components/p-514d0fcb.entry.js +1 -0
- package/dist/magma-components/p-52793bdb.system.entry.js +1 -0
- package/dist/magma-components/p-5299f709.system.entry.js +26 -0
- package/dist/magma-components/p-57762bae.entry.js +1 -0
- package/dist/magma-components/p-577db922.entry.js +1 -0
- package/dist/magma-components/p-58b82b40.system.entry.js +10 -0
- package/dist/magma-components/p-5a7267e8.system.entry.js +4 -0
- package/dist/magma-components/p-5a911e7b.system.entry.js +13 -0
- package/dist/magma-components/p-5ac9e2f4.entry.js +1 -0
- package/dist/magma-components/p-5c94e0c2.system.entry.js +7 -0
- package/dist/magma-components/p-5ccf493c.system.entry.js +7 -0
- package/dist/magma-components/p-5d119459.entry.js +1 -0
- package/dist/magma-components/p-5f1132b8.entry.js +1 -0
- package/dist/magma-components/p-5fd04ce1.entry.js +1 -0
- package/dist/magma-components/p-60f67c37.entry.js +1 -0
- package/dist/magma-components/p-61bedbe7.system.entry.js +68 -0
- package/dist/magma-components/p-632bc44c.entry.js +1 -0
- package/dist/magma-components/p-64f78149.system.entry.js +1 -0
- package/dist/magma-components/p-69c21eae.entry.js +1 -0
- package/dist/magma-components/p-6a6326c6.entry.js +1 -0
- package/dist/magma-components/p-6c18c40e.system.entry.js +89 -0
- package/dist/magma-components/p-6c800411.entry.js +1 -0
- package/dist/magma-components/p-6e03b83a.entry.js +1 -0
- package/dist/magma-components/p-6ed05d99.entry.js +1 -0
- package/dist/magma-components/p-6f74cdf5.system.entry.js +12 -0
- package/dist/magma-components/p-6fdb3fe7.system.entry.js +27 -0
- package/dist/magma-components/p-6ff8be3e.system.entry.js +30 -0
- package/dist/magma-components/p-7-TP6wnI.js +1 -0
- package/dist/magma-components/p-73fde271.system.entry.js +72 -0
- package/dist/magma-components/p-74b51db8.entry.js +1 -0
- package/dist/magma-components/p-76ecad2f.entry.js +18 -0
- package/dist/magma-components/p-774ce1d2.entry.js +1 -0
- package/dist/magma-components/p-77615947.system.entry.js +1 -0
- package/dist/magma-components/p-7770b989.system.entry.js +1 -0
- package/dist/magma-components/p-7787ebaf.system.entry.js +1 -0
- package/dist/magma-components/p-789c1b93.system.entry.js +1 -0
- package/dist/magma-components/p-7927010f.system.entry.js +25 -0
- package/dist/magma-components/p-79421ee1.system.entry.js +11 -0
- package/dist/magma-components/p-7ab15184.entry.js +1 -0
- package/dist/magma-components/p-7afec7ee.entry.js +1 -0
- package/dist/magma-components/p-7e085c82.entry.js +1 -0
- package/dist/magma-components/p-7e7cf986.system.entry.js +7 -0
- package/dist/magma-components/p-7ffda4f5.entry.js +1 -0
- package/dist/magma-components/p-809adece.system.entry.js +17 -0
- package/dist/magma-components/p-8183b7ed.entry.js +1 -0
- package/dist/magma-components/p-832883c4.entry.js +1 -0
- package/dist/magma-components/p-83394280.system.entry.js +32 -0
- package/dist/magma-components/p-835fc007.entry.js +1 -0
- package/dist/magma-components/p-837fbbf7.system.entry.js +1 -0
- package/dist/magma-components/p-84645c60.system.entry.js +1 -0
- package/dist/magma-components/p-86f4b6eb.system.entry.js +20 -0
- package/dist/magma-components/p-87026d34.entry.js +1 -0
- package/dist/magma-components/p-87faaa8e.system.entry.js +16 -0
- package/dist/magma-components/p-88287207.system.entry.js +13 -0
- package/dist/magma-components/p-883c223a.system.entry.js +4 -0
- package/dist/magma-components/p-88f99a4f.system.entry.js +81 -0
- package/dist/magma-components/p-8a3d2259.system.entry.js +17 -0
- package/dist/magma-components/p-8aafbfdf.system.entry.js +49 -0
- package/dist/magma-components/p-8afc9bc4.system.entry.js +2838 -0
- package/dist/magma-components/p-8ca1d30d.system.entry.js +1 -0
- package/dist/magma-components/p-8ccd187a.entry.js +1 -0
- package/dist/magma-components/p-8d53bd61.system.entry.js +4 -0
- package/dist/magma-components/p-8yWTOQiz.js +1 -0
- package/dist/magma-components/p-90993b0b.system.entry.js +68 -0
- package/dist/magma-components/p-915c5f06.system.entry.js +47 -0
- package/dist/magma-components/p-91c4015f.system.entry.js +4 -0
- package/dist/magma-components/p-91ff1560.system.entry.js +7 -0
- package/dist/magma-components/p-92d9b537.entry.js +1 -0
- package/dist/magma-components/p-932620b6.entry.js +1 -0
- package/dist/magma-components/p-9344a234.entry.js +1 -0
- package/dist/magma-components/p-93d39066.entry.js +1 -0
- package/dist/magma-components/p-97f6166e.system.entry.js +28 -0
- package/dist/magma-components/p-9d1cdb42.system.entry.js +15 -0
- package/dist/magma-components/p-9dcfc247.entry.js +1 -0
- package/dist/magma-components/p-9eb1e154.system.entry.js +14 -0
- package/dist/magma-components/p-9fe14430.system.entry.js +7 -0
- package/dist/magma-components/p-BPNsbMrg.system.js +67 -0
- package/dist/magma-components/p-BS7eEvwu.system.js +17 -0
- package/dist/magma-components/p-BTF_aRDG.system.js +231 -0
- package/dist/magma-components/p-BpVYIPkx.js +1 -0
- package/dist/magma-components/p-BxPbQB28.js +3 -0
- package/dist/magma-components/p-CdsZyFQ-.system.js +10 -0
- package/dist/magma-components/p-D7BrzK-C.system.js +90 -0
- package/dist/magma-components/p-DaONbL_w.system.js +162 -0
- package/dist/magma-components/p-Kv1yahtR.js +5 -0
- package/dist/magma-components/p-ZDRIVCAt.system.js +5 -0
- package/dist/magma-components/p-a41e52f7.entry.js +1 -0
- package/dist/magma-components/p-a462aadd.entry.js +1 -0
- package/dist/magma-components/p-a4a83a63.entry.js +1 -0
- package/dist/magma-components/p-a64bbb36.system.entry.js +40 -0
- package/dist/magma-components/p-a6af4083.system.entry.js +32 -0
- package/dist/magma-components/p-a7e7f2c0.entry.js +1 -0
- package/dist/magma-components/p-aba96089.entry.js +1 -0
- package/dist/magma-components/p-ac81f63a.system.entry.js +913 -0
- package/dist/magma-components/p-aed8b119.entry.js +1 -0
- package/dist/magma-components/p-b24b5179.entry.js +1 -0
- package/dist/magma-components/p-b295e4ab.system.entry.js +1 -0
- package/dist/magma-components/p-b2c62b6e.system.entry.js +7 -0
- package/dist/magma-components/p-b431ca8a.entry.js +1 -0
- package/dist/magma-components/p-b5559b28.system.entry.js +1 -0
- package/dist/magma-components/p-b626c69f.system.entry.js +1 -0
- package/dist/magma-components/p-b897c97d.entry.js +1 -0
- package/dist/magma-components/p-bab4c75e.system.entry.js +45 -0
- package/dist/magma-components/p-bba04b08.system.entry.js +14 -0
- package/dist/magma-components/p-bc53c19e.entry.js +8 -0
- package/dist/magma-components/p-bf2fe278.system.entry.js +16 -0
- package/dist/magma-components/p-c0136138.entry.js +1 -0
- package/dist/magma-components/p-c166ec50.system.entry.js +47 -0
- package/dist/magma-components/p-c22887f7.system.entry.js +90 -0
- package/dist/magma-components/p-c28fce23.entry.js +1 -0
- package/dist/magma-components/p-c34d9e61.system.entry.js +1 -0
- package/dist/magma-components/p-c48bad95.entry.js +1 -0
- package/dist/magma-components/p-cb2c5f1b.entry.js +1 -0
- package/dist/magma-components/p-cc0c6ae7.entry.js +1 -0
- package/dist/magma-components/p-cc2a09f2.system.entry.js +16 -0
- package/dist/magma-components/p-cc9d9458.entry.js +1 -0
- package/dist/magma-components/p-ccb14076.system.entry.js +217 -0
- package/dist/magma-components/p-ccb6898a.system.entry.js +4 -0
- package/dist/magma-components/p-d04ac65d.entry.js +1 -0
- package/dist/magma-components/p-d07d227b.system.entry.js +8 -0
- package/dist/magma-components/p-d1faf129.entry.js +1 -0
- package/dist/magma-components/p-d282a929.entry.js +1 -0
- package/dist/magma-components/p-d2f134ac.entry.js +1 -0
- package/dist/magma-components/p-d47df503.system.entry.js +37 -0
- package/dist/magma-components/p-d5bd6bef.entry.js +1 -0
- package/dist/magma-components/p-d9804d2f.entry.js +1 -0
- package/dist/magma-components/p-dc06b29e.entry.js +1 -0
- package/dist/magma-components/p-dc59b764.entry.js +1 -0
- package/dist/magma-components/p-dc7bada4.entry.js +1 -0
- package/dist/magma-components/p-dcc3be64.system.entry.js +7 -0
- package/dist/magma-components/p-dd58f9ee.entry.js +18 -0
- package/dist/magma-components/p-de091be7.system.entry.js +7 -0
- package/dist/magma-components/p-dfe8552c.system.entry.js +11 -0
- package/dist/magma-components/p-e1e69217.system.entry.js +1 -0
- package/dist/magma-components/p-e213640b.entry.js +1 -0
- package/dist/magma-components/p-e2ef1d6f.entry.js +1 -0
- package/dist/magma-components/p-e2ef5996.entry.js +1 -0
- package/dist/magma-components/p-e7751639.entry.js +1 -0
- package/dist/magma-components/p-e887a14c.entry.js +1 -0
- package/dist/magma-components/p-e8cd2b93.system.entry.js +4 -0
- package/dist/magma-components/p-e8ed096b.entry.js +1 -0
- package/dist/magma-components/p-eaff7300.entry.js +1 -0
- package/dist/magma-components/p-eb681207.system.entry.js +1 -0
- package/dist/magma-components/p-ec9cc7b9.entry.js +1 -0
- package/dist/magma-components/p-eca99a0a.system.entry.js +1 -0
- package/dist/magma-components/p-ecd3c27f.entry.js +1 -0
- package/dist/magma-components/p-ed897f9f.entry.js +1 -0
- package/dist/magma-components/p-ee1e7f07.system.entry.js +3 -0
- package/dist/magma-components/p-ef3424e3.entry.js +1 -0
- package/dist/magma-components/p-f29a059d.system.entry.js +15 -0
- package/dist/magma-components/p-f5bb8c0c.entry.js +1 -0
- package/dist/magma-components/p-f654eafe.entry.js +1 -0
- package/dist/magma-components/p-f733ae92.system.entry.js +16 -0
- package/dist/magma-components/p-f8eb19b3.entry.js +1 -0
- package/dist/magma-components/p-f8feee93.system.entry.js +4 -0
- package/dist/magma-components/p-faa1f22c.entry.js +1 -0
- package/dist/magma-components/p-ffa1a0b4.system.entry.js +1 -0
- package/dist/magma-components/p-hVpoPUxI.system.js +58 -0
- package/dist/magma-components/p-wI0alRSO.js +1 -0
- package/dist/stats.json +3303 -2650
- package/dist/types/common/form.d.ts +8 -1
- package/dist/types/common/preference.d.ts +1 -1
- package/dist/types/common/validity/index.d.ts +22 -0
- package/dist/types/components/mds-avatar/mds-avatar.d.ts +2 -0
- package/dist/types/components/mds-button/mds-button.d.ts +9 -0
- package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +23 -1
- package/dist/types/components/mds-header/mds-header.d.ts +1 -0
- package/dist/types/components/mds-icon/mds-icon.d.ts +5 -0
- package/dist/types/components/mds-icon/services/icons-set.service.d.ts +10 -9
- package/dist/types/components/mds-input/mds-input.d.ts +41 -2
- package/dist/types/components/mds-input/meta/validators.d.ts +22 -0
- package/dist/types/components/mds-input/meta/validity.d.ts +14 -0
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +38 -0
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +26 -0
- package/dist/types/components/mds-input-otp/mds-input-otp.d.ts +21 -2
- package/dist/types/components/mds-input-range/mds-input-range.d.ts +8 -1
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +42 -4
- package/dist/types/components/mds-input-select/meta/event-detail.d.ts +8 -0
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +17 -0
- package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +27 -5
- package/dist/types/components/mds-keyboard-key/meta/icons.d.ts +1 -1
- package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +10 -1
- package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +10 -1
- package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +10 -1
- package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +10 -1
- package/dist/types/components/mds-toast/mds-toast.d.ts +1 -0
- package/dist/types/components.d.ts +102 -19
- package/package.json +33 -20
- package/dist/cjs/floating-controller-Cd_vNLLD.js +0 -369
- package/dist/cjs/form-DTCBh5WK.js +0 -22
- package/dist/cjs/index--6wz7eWi.js +0 -5183
- package/dist/cjs/locale-CB5_Z7PE.js +0 -816
- package/dist/cjs/preference-eJcbLLAn.js +0 -389
- package/dist/components/p--8aaJX-p.js +0 -1
- package/dist/components/p-A9TZf0Ii.js +0 -1
- package/dist/components/p-B2A_hlV2.js +0 -1
- package/dist/components/p-B9DJLgwr.js +0 -1
- package/dist/components/p-BH3bWzRT.js +0 -1
- package/dist/components/p-BJNK4p33.js +0 -1
- package/dist/components/p-BNHXZ-JR.js +0 -1
- package/dist/components/p-BSxuG1vZ.js +0 -1
- package/dist/components/p-BTHR4xXu.js +0 -1
- package/dist/components/p-BhFTcUD0.js +0 -3
- package/dist/components/p-BouRLCYL.js +0 -1
- package/dist/components/p-Bss3F51Q.js +0 -5
- package/dist/components/p-Bt4xX5ww.js +0 -1
- package/dist/components/p-C03KYHGv.js +0 -1
- package/dist/components/p-C58NKMEE.js +0 -1
- package/dist/components/p-CBLAz3_J.js +0 -1
- package/dist/components/p-CVgKDZPF.js +0 -1
- package/dist/components/p-CVpjH8Un.js +0 -1
- package/dist/components/p-Caksrfcd.js +0 -1
- package/dist/components/p-CatD1iUY.js +0 -1
- package/dist/components/p-CbufYCNj.js +0 -1
- package/dist/components/p-Cehcn85x.js +0 -1
- package/dist/components/p-ClKNADBg.js +0 -8
- package/dist/components/p-CvIFS8oA.js +0 -1
- package/dist/components/p-D3-GP4KF.js +0 -1
- package/dist/components/p-D8I1RblC.js +0 -1
- package/dist/components/p-DLE5TNTp.js +0 -1
- package/dist/components/p-DaI5QqNu.js +0 -1
- package/dist/components/p-Deh5Aia-.js +0 -1
- package/dist/components/p-Dj_oN194.js +0 -1
- package/dist/components/p-DmELzfvf.js +0 -1
- package/dist/components/p-DtxB7DYE.js +0 -1
- package/dist/components/p-cBZsPiMJ.js +0 -1
- package/dist/components/p-sqRs6oj4.js +0 -1
- package/dist/components/p-wq6nWuWE.js +0 -1
- package/dist/esm/floating-controller-DVldZ5mh.js +0 -366
- package/dist/esm/form-A9TZf0Ii.js +0 -19
- package/dist/esm/index-DIiEV39g.js +0 -5149
- package/dist/esm/locale-CbJbTW_c.js +0 -814
- package/dist/esm/preference-CKerJx2M.js +0 -385
- package/dist/esm-es5/floating-controller-DVldZ5mh.js +0 -66
- package/dist/esm-es5/form-A9TZf0Ii.js +0 -8
- package/dist/esm-es5/index-DIiEV39g.js +0 -371
- package/dist/esm-es5/locale-CbJbTW_c.js +0 -230
- package/dist/esm-es5/preference-CKerJx2M.js +0 -58
- package/dist/magma-components/p-03be5c0c.entry.js +0 -1
- package/dist/magma-components/p-0715a2cb.system.entry.js +0 -12
- package/dist/magma-components/p-071f18c6.system.entry.js +0 -27
- package/dist/magma-components/p-0798b0bf.system.entry.js +0 -24
- package/dist/magma-components/p-07fde74d.system.entry.js +0 -39
- package/dist/magma-components/p-086fb3aa.entry.js +0 -1
- package/dist/magma-components/p-0a088e7d.system.entry.js +0 -10
- package/dist/magma-components/p-0a691082.entry.js +0 -1
- package/dist/magma-components/p-0ad3b4da.system.entry.js +0 -102
- package/dist/magma-components/p-0af8d821.entry.js +0 -1
- package/dist/magma-components/p-0ec21574.system.entry.js +0 -10
- package/dist/magma-components/p-0f6bb54d.system.entry.js +0 -22
- package/dist/magma-components/p-102d3bd3.system.entry.js +0 -1
- package/dist/magma-components/p-10704ede.system.entry.js +0 -4
- package/dist/magma-components/p-15f63bf3.entry.js +0 -1
- package/dist/magma-components/p-16e9fb14.system.entry.js +0 -7
- package/dist/magma-components/p-1780b8ba.entry.js +0 -1
- package/dist/magma-components/p-181dfb04.entry.js +0 -1
- package/dist/magma-components/p-184720be.system.entry.js +0 -1
- package/dist/magma-components/p-18f7b970.system.entry.js +0 -4
- package/dist/magma-components/p-1a8c5086.system.entry.js +0 -19
- package/dist/magma-components/p-1afc0452.entry.js +0 -1
- package/dist/magma-components/p-1c0a7e24.system.entry.js +0 -30
- package/dist/magma-components/p-1cce738a.system.entry.js +0 -32
- package/dist/magma-components/p-1dcfb13e.entry.js +0 -1
- package/dist/magma-components/p-1df6ac96.system.entry.js +0 -7
- package/dist/magma-components/p-209063b6.system.entry.js +0 -50
- package/dist/magma-components/p-216f95cc.system.entry.js +0 -1
- package/dist/magma-components/p-21891a24.entry.js +0 -1
- package/dist/magma-components/p-21d6687a.system.entry.js +0 -7
- package/dist/magma-components/p-231505e8.entry.js +0 -1
- package/dist/magma-components/p-23e61db9.system.entry.js +0 -4
- package/dist/magma-components/p-241dbf61.entry.js +0 -1
- package/dist/magma-components/p-25935d33.system.entry.js +0 -1
- package/dist/magma-components/p-27ea99ee.entry.js +0 -8
- package/dist/magma-components/p-284c40cd.system.entry.js +0 -4
- package/dist/magma-components/p-29684655.system.entry.js +0 -16
- package/dist/magma-components/p-2b73fee6.entry.js +0 -1
- package/dist/magma-components/p-2d5aadba.system.entry.js +0 -7
- package/dist/magma-components/p-2de17848.entry.js +0 -1
- package/dist/magma-components/p-34482514.entry.js +0 -1
- package/dist/magma-components/p-34c0890e.entry.js +0 -1
- package/dist/magma-components/p-3635eca6.system.entry.js +0 -1
- package/dist/magma-components/p-3b0c1202.entry.js +0 -1
- package/dist/magma-components/p-3d8e63a2.system.entry.js +0 -63
- package/dist/magma-components/p-3db23b5f.system.entry.js +0 -16
- package/dist/magma-components/p-3ec7d3ea.entry.js +0 -1
- package/dist/magma-components/p-3f7d3060.system.entry.js +0 -42
- package/dist/magma-components/p-40563e33.entry.js +0 -1
- package/dist/magma-components/p-41bf6f25.system.entry.js +0 -81
- package/dist/magma-components/p-421a630e.entry.js +0 -1
- package/dist/magma-components/p-4297da23.system.entry.js +0 -1
- package/dist/magma-components/p-4299b76b.system.entry.js +0 -4
- package/dist/magma-components/p-4543501c.entry.js +0 -1
- package/dist/magma-components/p-454c4774.entry.js +0 -1
- package/dist/magma-components/p-4616bc07.entry.js +0 -1
- package/dist/magma-components/p-46786d71.system.entry.js +0 -14
- package/dist/magma-components/p-470e5ac8.system.entry.js +0 -1
- package/dist/magma-components/p-481008e9.system.entry.js +0 -13
- package/dist/magma-components/p-48d37230.entry.js +0 -1
- package/dist/magma-components/p-4b3a8132.system.entry.js +0 -13
- package/dist/magma-components/p-4c8316a8.entry.js +0 -1
- package/dist/magma-components/p-4c95442e.entry.js +0 -1
- package/dist/magma-components/p-4e4bdbf8.entry.js +0 -1
- package/dist/magma-components/p-4e5ab0e4.system.entry.js +0 -16
- package/dist/magma-components/p-4f107cb2.system.entry.js +0 -2838
- package/dist/magma-components/p-54b995c2.system.entry.js +0 -4
- package/dist/magma-components/p-56ad5bf2.entry.js +0 -1
- package/dist/magma-components/p-59de81ac.entry.js +0 -1
- package/dist/magma-components/p-5a7ead55.system.entry.js +0 -37
- package/dist/magma-components/p-5e43274a.system.entry.js +0 -15
- package/dist/magma-components/p-5f545f85.system.entry.js +0 -1
- package/dist/magma-components/p-61a5ac3d.system.entry.js +0 -17
- package/dist/magma-components/p-636cc471.entry.js +0 -1
- package/dist/magma-components/p-66ce2dee.entry.js +0 -1
- package/dist/magma-components/p-67d80d37.system.entry.js +0 -1
- package/dist/magma-components/p-6937f340.entry.js +0 -1
- package/dist/magma-components/p-69d1b815.entry.js +0 -1
- package/dist/magma-components/p-6b7e449f.entry.js +0 -1
- package/dist/magma-components/p-6c417ea1.system.entry.js +0 -913
- package/dist/magma-components/p-6cd7cfe3.entry.js +0 -1
- package/dist/magma-components/p-6ce60d59.entry.js +0 -1
- package/dist/magma-components/p-6cf760ea.system.entry.js +0 -45
- package/dist/magma-components/p-6dc27543.entry.js +0 -1
- package/dist/magma-components/p-6de37588.entry.js +0 -1
- package/dist/magma-components/p-6edc4f16.system.entry.js +0 -14
- package/dist/magma-components/p-6f6b5eb5.entry.js +0 -1
- package/dist/magma-components/p-7090184f.entry.js +0 -1
- package/dist/magma-components/p-716ad14c.entry.js +0 -1
- package/dist/magma-components/p-71804224.entry.js +0 -1
- package/dist/magma-components/p-735dc594.system.entry.js +0 -1
- package/dist/magma-components/p-739fdf76.system.entry.js +0 -1
- package/dist/magma-components/p-74b0902a.entry.js +0 -1
- package/dist/magma-components/p-7530a2f2.entry.js +0 -1
- package/dist/magma-components/p-75dd012a.system.entry.js +0 -11
- package/dist/magma-components/p-75fcf1a4.entry.js +0 -1
- package/dist/magma-components/p-76ae22d6.entry.js +0 -1
- package/dist/magma-components/p-78248693.entry.js +0 -1
- package/dist/magma-components/p-78fef00a.entry.js +0 -1
- package/dist/magma-components/p-7c0d202c.entry.js +0 -1
- package/dist/magma-components/p-7fc29447.entry.js +0 -1
- package/dist/magma-components/p-81b72b6e.entry.js +0 -1
- package/dist/magma-components/p-859ab5a2.entry.js +0 -18
- package/dist/magma-components/p-896ae0ee.entry.js +0 -1
- package/dist/magma-components/p-89a3bc7a.system.entry.js +0 -16
- package/dist/magma-components/p-8b7fa8d7.entry.js +0 -1
- package/dist/magma-components/p-8c4fb7ec.system.entry.js +0 -30
- package/dist/magma-components/p-8dff6606.system.entry.js +0 -11
- package/dist/magma-components/p-8e40eda3.system.entry.js +0 -9
- package/dist/magma-components/p-91b9d4e7.system.entry.js +0 -4
- package/dist/magma-components/p-92e1001f.entry.js +0 -1
- package/dist/magma-components/p-9378b373.system.entry.js +0 -49
- package/dist/magma-components/p-960dc9b5.system.entry.js +0 -15
- package/dist/magma-components/p-9626eaff.system.entry.js +0 -134
- package/dist/magma-components/p-9741d95e.system.entry.js +0 -7
- package/dist/magma-components/p-97ea9e6e.system.entry.js +0 -68
- package/dist/magma-components/p-9846fe89.system.entry.js +0 -1
- package/dist/magma-components/p-998721b9.system.entry.js +0 -1
- package/dist/magma-components/p-9a5296c0.system.entry.js +0 -7
- package/dist/magma-components/p-9b2ee3fe.entry.js +0 -1
- package/dist/magma-components/p-9be4a736.entry.js +0 -1
- package/dist/magma-components/p-9ca7932d.system.entry.js +0 -8
- package/dist/magma-components/p-9d86477d.system.entry.js +0 -1
- package/dist/magma-components/p-9e3bc553.system.entry.js +0 -26
- package/dist/magma-components/p-9e58467e.system.entry.js +0 -10
- package/dist/magma-components/p-9e9a1ebd.system.entry.js +0 -15
- package/dist/magma-components/p-A9TZf0Ii.js +0 -1
- package/dist/magma-components/p-BFnx_0hM.js +0 -5
- package/dist/magma-components/p-BbMKuVem.js +0 -1
- package/dist/magma-components/p-C2FHijr2.system.js +0 -231
- package/dist/magma-components/p-CBam2PI8.system.js +0 -79
- package/dist/magma-components/p-CDTiTqY0.system.js +0 -58
- package/dist/magma-components/p-CI85vVs8.system.js +0 -9
- package/dist/magma-components/p-CnXBPjmc.system.js +0 -5
- package/dist/magma-components/p-DB8Rm54c.js +0 -1
- package/dist/magma-components/p-DIiEV39g.js +0 -3
- package/dist/magma-components/p-DmC-b-ZK.system.js +0 -67
- package/dist/magma-components/p-MGv0i39Y.system.js +0 -162
- package/dist/magma-components/p-a3279a73.system.entry.js +0 -11
- package/dist/magma-components/p-a3b0f586.entry.js +0 -1
- package/dist/magma-components/p-a3fc2ea4.system.entry.js +0 -39
- package/dist/magma-components/p-a5ac5e0b.entry.js +0 -1
- package/dist/magma-components/p-a8ec3080.system.entry.js +0 -27
- package/dist/magma-components/p-a906a02f.system.entry.js +0 -16
- package/dist/magma-components/p-a93b2a39.entry.js +0 -1
- package/dist/magma-components/p-aa267e7b.entry.js +0 -1
- package/dist/magma-components/p-ab9095ae.system.entry.js +0 -4
- package/dist/magma-components/p-ac544ab1.entry.js +0 -1
- package/dist/magma-components/p-ace198e9.entry.js +0 -1
- package/dist/magma-components/p-ad3983b2.entry.js +0 -1
- package/dist/magma-components/p-af41c8b8.system.entry.js +0 -1
- package/dist/magma-components/p-af45f0a5.system.entry.js +0 -20
- package/dist/magma-components/p-b23a6c83.entry.js +0 -1
- package/dist/magma-components/p-b35c26f8.entry.js +0 -18
- package/dist/magma-components/p-b3a3578c.entry.js +0 -1
- package/dist/magma-components/p-b49e0321.system.entry.js +0 -1
- package/dist/magma-components/p-b71e0d51.entry.js +0 -1
- package/dist/magma-components/p-b8d4a14e.entry.js +0 -1
- package/dist/magma-components/p-b9fecfd5.entry.js +0 -1
- package/dist/magma-components/p-ba035f90.entry.js +0 -1
- package/dist/magma-components/p-bc51d310.system.entry.js +0 -1
- package/dist/magma-components/p-bd490a8e.entry.js +0 -1
- package/dist/magma-components/p-be198039.system.entry.js +0 -4
- package/dist/magma-components/p-be692266.system.entry.js +0 -13
- package/dist/magma-components/p-bf7168b4.entry.js +0 -1
- package/dist/magma-components/p-bf84d9fa.entry.js +0 -1
- package/dist/magma-components/p-c1fb2eb7.entry.js +0 -1
- package/dist/magma-components/p-c4e58240.entry.js +0 -1
- package/dist/magma-components/p-c573de10.entry.js +0 -1
- package/dist/magma-components/p-c6be3db7.system.entry.js +0 -1
- package/dist/magma-components/p-c70d7159.entry.js +0 -1
- package/dist/magma-components/p-c7517884.system.entry.js +0 -38
- package/dist/magma-components/p-c9be79bd.entry.js +0 -1
- package/dist/magma-components/p-c9e12c2b.system.entry.js +0 -7
- package/dist/magma-components/p-cb6a1908.entry.js +0 -1
- package/dist/magma-components/p-cbd5aef4.system.entry.js +0 -14
- package/dist/magma-components/p-cd21137b.system.entry.js +0 -1
- package/dist/magma-components/p-cd5866c8.entry.js +0 -1
- package/dist/magma-components/p-ce0ecc75.system.entry.js +0 -15
- package/dist/magma-components/p-ce4e1a41.system.entry.js +0 -1
- package/dist/magma-components/p-d3116844.entry.js +0 -1
- package/dist/magma-components/p-d38165ed.system.entry.js +0 -1
- package/dist/magma-components/p-d3933a22.entry.js +0 -1
- package/dist/magma-components/p-d44c49d6.system.entry.js +0 -8
- package/dist/magma-components/p-d4a529ce.entry.js +0 -1
- package/dist/magma-components/p-d6d4aa1a.entry.js +0 -1
- package/dist/magma-components/p-d81e7100.system.entry.js +0 -15
- package/dist/magma-components/p-d8c27f4b.entry.js +0 -1
- package/dist/magma-components/p-d921d876.entry.js +0 -1
- package/dist/magma-components/p-da1ac3e1.entry.js +0 -1
- package/dist/magma-components/p-ddbdce09.entry.js +0 -1
- package/dist/magma-components/p-de6bc3c8.entry.js +0 -1
- package/dist/magma-components/p-df2b7607.system.entry.js +0 -4
- package/dist/magma-components/p-e05d2df8.system.entry.js +0 -4
- package/dist/magma-components/p-e0b2ef8f.system.entry.js +0 -1
- package/dist/magma-components/p-e0c50a2d.entry.js +0 -1
- package/dist/magma-components/p-e1277efe.system.entry.js +0 -1
- package/dist/magma-components/p-e1e6dd97.entry.js +0 -1
- package/dist/magma-components/p-e2f7a9bd.system.entry.js +0 -1
- package/dist/magma-components/p-e3e893c4.entry.js +0 -1
- package/dist/magma-components/p-e4868ade.entry.js +0 -1
- package/dist/magma-components/p-e5c6f9a9.system.entry.js +0 -7
- package/dist/magma-components/p-e5da7036.entry.js +0 -1
- package/dist/magma-components/p-e6dccab5.system.entry.js +0 -1
- package/dist/magma-components/p-ec59ec9a.entry.js +0 -1
- package/dist/magma-components/p-eddcef53.system.entry.js +0 -1
- package/dist/magma-components/p-eed00e7f.system.entry.js +0 -1
- package/dist/magma-components/p-ef8cb401.entry.js +0 -1
- package/dist/magma-components/p-efe8d359.entry.js +0 -1
- package/dist/magma-components/p-f070a5b5.system.entry.js +0 -11
- package/dist/magma-components/p-f0a168f4.system.entry.js +0 -13
- package/dist/magma-components/p-f1462410.system.entry.js +0 -9
- package/dist/magma-components/p-f23d4974.entry.js +0 -1
- package/dist/magma-components/p-f542246f.system.entry.js +0 -1
- package/dist/magma-components/p-f5c680dd.entry.js +0 -1
- package/dist/magma-components/p-f60c6e8e.system.entry.js +0 -40
- package/dist/magma-components/p-f8369939.entry.js +0 -1
- package/dist/magma-components/p-f97ede3e.system.entry.js +0 -19
- package/dist/magma-components/p-f97ff5b2.entry.js +0 -1
- package/dist/magma-components/p-fe1662e8.system.entry.js +0 -28
- package/dist/magma-components/p-ff133cbd.entry.js +0 -1
- package/dist/magma-components/p-fff44704.entry.js +0 -1
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
2
|
import { setFormValue } from "../../common/form";
|
|
3
|
+
import { updateValidity } from "../../common/validity/index";
|
|
3
4
|
import miBaselineCalendarToday from "@icon/mi/baseline/calendar-today.svg";
|
|
4
5
|
import { DateTime } from "luxon";
|
|
5
6
|
import { preferenceStore } from "../../common/preference";
|
|
6
7
|
// TODO add input validation manager for error message
|
|
7
8
|
export class MdsInputDate {
|
|
8
9
|
constructor() {
|
|
10
|
+
// the disabled state of the host as a form control: its own disabled, or a disabled fieldset
|
|
11
|
+
// around it, which disables the host but not the native control in its shadow root
|
|
12
|
+
this.formDisabled = false;
|
|
9
13
|
this.isSlotted = false;
|
|
14
|
+
// the value at load, which a form reset brings back as the value attribute of a native input
|
|
15
|
+
this.defaultValue = '';
|
|
10
16
|
this.empty = undefined;
|
|
17
|
+
// true once the user has edited or left the field, or a stopped submit pointed at it: from then
|
|
18
|
+
// on the validation drives the variant, like :user-invalid on a native control
|
|
11
19
|
this.touched = false;
|
|
12
20
|
/**
|
|
13
21
|
* Specifies the value of the input
|
|
@@ -51,6 +59,7 @@ export class MdsInputDate {
|
|
|
51
59
|
this.required = false;
|
|
52
60
|
this.calendarKey = 0;
|
|
53
61
|
this.hasFocus = false;
|
|
62
|
+
this.isDisabled = () => !!this.disabled || this.formDisabled;
|
|
54
63
|
this.handleChange = (event) => {
|
|
55
64
|
const input = event.target;
|
|
56
65
|
this.touched = true;
|
|
@@ -62,6 +71,7 @@ export class MdsInputDate {
|
|
|
62
71
|
this.onBlur = (ev) => {
|
|
63
72
|
const input = ev.target;
|
|
64
73
|
this.hasFocus = false;
|
|
74
|
+
this.touched = true;
|
|
65
75
|
this.value = input.value;
|
|
66
76
|
this.validateValue(input.validity.badInput);
|
|
67
77
|
};
|
|
@@ -80,6 +90,7 @@ export class MdsInputDate {
|
|
|
80
90
|
this.calendarKey += 1;
|
|
81
91
|
};
|
|
82
92
|
this.handleCalendarChange = (ev) => {
|
|
93
|
+
this.touched = true;
|
|
83
94
|
this.value = ev.detail.startDate;
|
|
84
95
|
if (this.delay === 0)
|
|
85
96
|
return;
|
|
@@ -95,27 +106,67 @@ export class MdsInputDate {
|
|
|
95
106
|
this.valueChange.emit(this.value);
|
|
96
107
|
this.validateValue();
|
|
97
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Checks the value: the validity reported to the form and the required tip follow it at once,
|
|
111
|
+
* the variant and `mdsInputValidation` only once the field is touched.
|
|
112
|
+
*/
|
|
98
113
|
validateValue(hasBadInput = false) {
|
|
99
114
|
const date = DateTime.fromISO(this.value);
|
|
100
115
|
const hasValue = Boolean(this.value);
|
|
101
116
|
const hasInvalidValue = hasValue && !date.isValid;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
117
|
+
this.problem = this.findProblem(date, hasBadInput || hasInvalidValue);
|
|
118
|
+
this.isValid = this.problem === undefined;
|
|
119
|
+
setFormValue(this.internals, this.isValid ? this.value : null);
|
|
120
|
+
this.empty = hasBadInput || hasInvalidValue ? true : undefined;
|
|
121
|
+
this.updateFormValidity();
|
|
122
|
+
if (!this.touched)
|
|
123
|
+
return;
|
|
124
|
+
this.variant = this.isValid ? 'primary' : 'error';
|
|
125
|
+
this.validationEvent.emit(this.isValid);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* A submit stopped by an invalid date, or a `checkValidity()` of its form, touches the field, so
|
|
129
|
+
* that it shows what is wrong.
|
|
130
|
+
*/
|
|
131
|
+
invalidHandler() {
|
|
132
|
+
this.touched = true;
|
|
133
|
+
this.validateValue();
|
|
134
|
+
}
|
|
135
|
+
/** The rule the value breaks, `undefined` when it breaks none. */
|
|
136
|
+
findProblem(date, isBadInput) {
|
|
137
|
+
var _a, _b, _c;
|
|
138
|
+
if (isBadInput)
|
|
139
|
+
return { rule: 'invalidDate' };
|
|
140
|
+
if (this.required && ((_a = this.value) !== null && _a !== void 0 ? _a : '') === '')
|
|
141
|
+
return { rule: 'required' };
|
|
142
|
+
if (!date.isValid)
|
|
143
|
+
return undefined;
|
|
144
|
+
if (((_b = this.max) !== null && _b !== void 0 ? _b : '') !== '' && DateTime.fromISO(this.max) < date) {
|
|
145
|
+
return { rule: 'maxDate', context: { max: this.formatDate(this.max) } };
|
|
111
146
|
}
|
|
112
|
-
|
|
113
|
-
this.
|
|
114
|
-
this.variant = 'primary';
|
|
115
|
-
setFormValue(this.internals, this.value);
|
|
116
|
-
this.empty = undefined;
|
|
147
|
+
if (((_c = this.min) !== null && _c !== void 0 ? _c : '') !== '' && DateTime.fromISO(this.min) > date) {
|
|
148
|
+
return { rule: 'minDate', context: { min: this.formatDate(this.min) } };
|
|
117
149
|
}
|
|
118
|
-
|
|
150
|
+
return undefined;
|
|
151
|
+
}
|
|
152
|
+
/** An ISO date as the page language writes it, for the messages. */
|
|
153
|
+
formatDate(iso) {
|
|
154
|
+
return DateTime.fromISO(iso)
|
|
155
|
+
.setLocale(preferenceStore.state.language)
|
|
156
|
+
.toLocaleString(DateTime.DATE_SHORT);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Reports the validity of the value to the form, with the rules that drive the variant: like a
|
|
160
|
+
* native control, an invalid date stops the submit of its form.
|
|
161
|
+
*/
|
|
162
|
+
updateFormValidity() {
|
|
163
|
+
var _a, _b;
|
|
164
|
+
const input = (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.input')) !== null && _b !== void 0 ? _b : undefined;
|
|
165
|
+
updateValidity(this.internals, this.problem, input);
|
|
166
|
+
}
|
|
167
|
+
componentDidRender() {
|
|
168
|
+
// the native input the message points at exists from the first render on
|
|
169
|
+
this.updateFormValidity();
|
|
119
170
|
}
|
|
120
171
|
/**
|
|
121
172
|
* Sets focus on the underlying input element.
|
|
@@ -141,24 +192,60 @@ export class MdsInputDate {
|
|
|
141
192
|
async getErrors() {
|
|
142
193
|
return Promise.resolve(this.isValid ? null : { error: '' });
|
|
143
194
|
}
|
|
195
|
+
formDisabledCallback(disabled) {
|
|
196
|
+
this.formDisabled = disabled;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Like a native input, a form reset brings back the value of load and forgets the interaction:
|
|
200
|
+
* the field looks pristine until the user edits or leaves it again.
|
|
201
|
+
*/
|
|
144
202
|
formResetCallback() {
|
|
145
|
-
|
|
203
|
+
var _a;
|
|
204
|
+
const { touched } = this;
|
|
205
|
+
this.touched = false;
|
|
206
|
+
// the native input can hold a partial date that never reached the value
|
|
207
|
+
const input = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.input');
|
|
208
|
+
if (input)
|
|
209
|
+
input.value = this.defaultValue;
|
|
210
|
+
this.value = this.defaultValue;
|
|
211
|
+
this.validateValue();
|
|
212
|
+
if (touched)
|
|
213
|
+
this.variant = 'primary';
|
|
146
214
|
}
|
|
147
215
|
componentWillLoad() {
|
|
148
216
|
this.isSlotted = !(this.host.getAttribute('slot') === null || this.host.getAttribute('slot') === '');
|
|
149
217
|
this.value = this.value || '';
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
218
|
+
this.defaultValue = this.value;
|
|
219
|
+
this.clampRange();
|
|
220
|
+
this.validateValue();
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Snaps `max` to `min` when the range is reversed.
|
|
224
|
+
* @returns true when `max` changed
|
|
225
|
+
*/
|
|
226
|
+
clampRange() {
|
|
227
|
+
if (this.min === null || this.min === '' || this.max === null || this.max === '')
|
|
228
|
+
return false;
|
|
229
|
+
if (DateTime.fromISO(this.max) < DateTime.fromISO(this.min)) {
|
|
230
|
+
this.max = this.min;
|
|
231
|
+
return true;
|
|
157
232
|
}
|
|
233
|
+
return false;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Validates again when a rule changes after load, as it does with the React wrappers under SSR,
|
|
237
|
+
* which set the props on an element that has already loaded.
|
|
238
|
+
*/
|
|
239
|
+
validationRulesChanged() {
|
|
240
|
+
// a reversed range snaps max to min, and that change runs this watcher again
|
|
241
|
+
if (this.clampRange())
|
|
242
|
+
return;
|
|
158
243
|
this.validateValue();
|
|
159
244
|
}
|
|
160
245
|
render() {
|
|
161
|
-
return (h(Host, { key: '
|
|
246
|
+
return (h(Host, { key: 'bb6ce788477995704deb7554cec8363e0e219418', empty: this.empty, "pref-animation": preferenceStore.state.animation, "pref-contrast": preferenceStore.state.contrast, "pref-mode": preferenceStore.state.mode, "pref-theme-scheme": preferenceStore.state['theme-scheme'] }, h("input", { key: 'ff6e84704788c49a01491dc042a349c95a5b6ce2', "aria-label": this.accessibleName, value: this.value, id: "dateInput", class: "input", part: "input-date", type: "date", disabled: this.isDisabled(), name: this.name, readOnly: this.readonly, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.handleChange, onChange: this.handleChange }), !this.isSlotted && (h("div", { key: 'e7fa728f2f5ede454ef7cf43da5885484a47a201', class: "action-open-calendar-wrapper" }, h("mds-button", { key: '0c67d5ed8fc65af85a21010be65f37409e1125bc', id: "calendar-dropdown", class: "action-open-calendar",
|
|
247
|
+
// a read-only date cannot change, from the calendar either
|
|
248
|
+
disabled: this.isDisabled() || this.readonly, variant: "dark", tone: "text", icon: miBaselineCalendarToday, onClick: this.handleOpenCalendarClick }))), h("mds-input-tip", { key: '43e3767bc9f70ea31883f5d7d562e102b4bcc3c9', position: "top", active: this.hasFocus }, this.isDisabled() && (h("mds-input-tip-item", { key: '6cedaa989e6ec5899d73fc6d4f8c68f798408dae', expanded: true, variant: "disabled" })), this.readonly && h("mds-input-tip-item", { key: '4f067b4c600e75f78fa7bef72a28d5cb1e4ad9e4', expanded: true, variant: "readonly" }), this.required && (h("mds-input-tip-item", { key: '28419231c5a20cd36b9c4c5e668c99707a20c485', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' }))), !this.isSlotted && (h("mds-dropdown", { key: '3f9cdf80cc2167a864e6b7cc4435e6623d5858e2', placement: "bottom-end", "disable-auto-placement": true, ref: (el) => (this.dropdownRef = el), role: "group", target: "#calendar-dropdown" }, h("mds-calendar", Object.assign({ key: this.calendarKey, singlePicker: true, hideToday: this.hideToday, onMdsCalendarChange: this.handleCalendarChange, startDate: this.value }, (this.min !== null && this.min !== '' ? { min: this.min } : {}), (this.max !== null && this.max !== '' ? { max: this.max } : {})))))));
|
|
162
249
|
}
|
|
163
250
|
static get is() { return "mds-input-date"; }
|
|
164
251
|
static get encapsulation() { return "shadow"; }
|
|
@@ -416,6 +503,7 @@ export class MdsInputDate {
|
|
|
416
503
|
}
|
|
417
504
|
static get states() {
|
|
418
505
|
return {
|
|
506
|
+
"formDisabled": {},
|
|
419
507
|
"empty": {},
|
|
420
508
|
"isValid": {},
|
|
421
509
|
"touched": {},
|
|
@@ -537,6 +625,24 @@ export class MdsInputDate {
|
|
|
537
625
|
return [{
|
|
538
626
|
"propName": "value",
|
|
539
627
|
"methodName": "handleValue"
|
|
628
|
+
}, {
|
|
629
|
+
"propName": "max",
|
|
630
|
+
"methodName": "validationRulesChanged"
|
|
631
|
+
}, {
|
|
632
|
+
"propName": "min",
|
|
633
|
+
"methodName": "validationRulesChanged"
|
|
634
|
+
}, {
|
|
635
|
+
"propName": "required",
|
|
636
|
+
"methodName": "validationRulesChanged"
|
|
637
|
+
}];
|
|
638
|
+
}
|
|
639
|
+
static get listeners() {
|
|
640
|
+
return [{
|
|
641
|
+
"name": "invalid",
|
|
642
|
+
"method": "invalidHandler",
|
|
643
|
+
"target": undefined,
|
|
644
|
+
"capture": false,
|
|
645
|
+
"passive": false
|
|
540
646
|
}];
|
|
541
647
|
}
|
|
542
648
|
static get attachInternalsMemberName() { return "internals"; }
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
GENERATED FILE - do not edit by hand.
|
|
3
|
+
Source of truth: src/components/mds-input-date/usage/ in the magma monorepo.
|
|
4
|
+
-->
|
|
5
|
+
|
|
6
|
+
# mds-input-date - patterns
|
|
7
|
+
|
|
8
|
+
> The API of this component: [`AGENTS.md`](AGENTS.md).
|
|
9
|
+
|
|
10
|
+
Correct and idiomatic ways to use the `<mds-input-date>` component, ordered from most common to most specialized. Patterns assume a working knowledge of the variant ladder documented in [`agents/variants.md`](../../../../agents/variants.md) and the shared component rules in [`agents/conventions.md`](../../../../agents/conventions.md).
|
|
11
|
+
|
|
12
|
+
#### Basic Date Input
|
|
13
|
+
|
|
14
|
+
The simplest form. Wrap in [`mds-input-field`](../mds-input-field/AGENTS.md) to attach a visible label. Use `name` so the value is submitted with the form.
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<mds-input-field label="Data di nascita">
|
|
18
|
+
<mds-input-date name="birthdate"></mds-input-date>
|
|
19
|
+
</mds-input-field>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
#### Pre-filled Value
|
|
23
|
+
|
|
24
|
+
Set `value` to an ISO date string (`YYYY-MM-DD`) to initialize the picker with a known date. Do not use other date formats.
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<mds-input-date name="dataScadenza" value="2026-12-31"></mds-input-date>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
#### Required Field
|
|
31
|
+
|
|
32
|
+
Add `required` to make an empty or invalid date fail validation. The component surfaces a tip on focus; the field stops the submit while empty, and turns to `'error'` once the user leaves it empty or a stopped submit points at it, until a valid date is entered.
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<mds-input-field label="Data di inizio *">
|
|
36
|
+
<mds-input-date name="startDate" required></mds-input-date>
|
|
37
|
+
</mds-input-field>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
#### Bounded Date Range
|
|
41
|
+
|
|
42
|
+
Use `min` and `max` (both ISO strings) to restrict the selectable range. Dates outside the range invalidate the field and, once it is touched, emit `mdsInputValidation` with `false`. If `max` is earlier than `min` at load time, the component snaps `max` to equal `min`.
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<mds-input-date
|
|
46
|
+
name="dataSopralluogo"
|
|
47
|
+
min="2026-01-01"
|
|
48
|
+
max="2026-12-31"
|
|
49
|
+
></mds-input-date>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
#### Listening to Value Changes
|
|
53
|
+
|
|
54
|
+
Listen to `mdsInputDateSelect` (fires with the new ISO string) for every value change - whether typed or picked from the calendar. Listen to `mdsInputValidation` to react to validity changes.
|
|
55
|
+
|
|
56
|
+
```html
|
|
57
|
+
<mds-input-date id="picker" name="dataEvento"></mds-input-date>
|
|
58
|
+
|
|
59
|
+
<script>
|
|
60
|
+
const picker = document.getElementById('picker');
|
|
61
|
+
|
|
62
|
+
picker.addEventListener('mdsInputDateSelect', (e) => {
|
|
63
|
+
console.log('Data selezionata:', e.detail); // "2026-06-15"
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
picker.addEventListener('mdsInputValidation', (e) => {
|
|
67
|
+
console.log('Valido:', e.detail); // true | false
|
|
68
|
+
});
|
|
69
|
+
</script>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
#### Programmatic Value via `setValue`
|
|
73
|
+
|
|
74
|
+
Use the `setValue` method to set the value from JavaScript; it emits `mdsInputDateSelect` and checks the value. Unlike a user interaction it does not touch the field: on a pristine field the validity reaches the form, but the variant and `mdsInputValidation` wait for the user.
|
|
75
|
+
|
|
76
|
+
```html
|
|
77
|
+
<mds-input-date id="datePicker" name="dataConsegna"></mds-input-date>
|
|
78
|
+
|
|
79
|
+
<script>
|
|
80
|
+
document.getElementById('datePicker').setValue('2026-09-01');
|
|
81
|
+
</script>
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
#### Controlling Calendar Auto-close Delay
|
|
85
|
+
|
|
86
|
+
The calendar dropdown closes `delay` milliseconds after a date is picked (default 500 ms). Set `delay="0"` to keep it open after selection - useful when the picker is used inside a form where the user might want to confirm before the overlay disappears.
|
|
87
|
+
|
|
88
|
+
```html
|
|
89
|
+
<!-- Default: closes 500 ms after pick -->
|
|
90
|
+
<mds-input-date name="dataRiunione" delay="500"></mds-input-date>
|
|
91
|
+
|
|
92
|
+
<!-- Keep open until the user dismisses manually -->
|
|
93
|
+
<mds-input-date name="dataRiunione" delay="0"></mds-input-date>
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
#### Disabled and Read-only States
|
|
97
|
+
|
|
98
|
+
`disabled` blocks all interaction and removes the field from the tab sequence. `readonly` keeps the field in the tab sequence and selects its text on focus, but the date cannot be changed: the native input is read-only and the calendar button disabled. Both surface a contextual tip.
|
|
99
|
+
|
|
100
|
+
```html
|
|
101
|
+
<!-- Disabled: no interaction at all -->
|
|
102
|
+
<mds-input-date name="dataArchiviazione" disabled value="2025-01-01"></mds-input-date>
|
|
103
|
+
|
|
104
|
+
<!-- Read-only: focusable, not editable -->
|
|
105
|
+
<mds-input-date name="dataCreazione" readonly value="2024-06-01"></mds-input-date>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
#### Form Participation
|
|
109
|
+
|
|
110
|
+
`<mds-input-date>` is form-associated and submits its ISO value under `name`. A missing `required` date, or one out of the `min`/`max` range, stops the submit like a native control. A form reset brings back the date of load, both shown and submitted.
|
|
111
|
+
|
|
112
|
+
```html
|
|
113
|
+
<form action="/prenota" method="post">
|
|
114
|
+
<mds-input-field label="Data prenotazione">
|
|
115
|
+
<mds-input-date name="bookingDate" required></mds-input-date>
|
|
116
|
+
</mds-input-field>
|
|
117
|
+
<mds-button type="submit" label="Conferma" variant="primary" tone="strong"></mds-button>
|
|
118
|
+
</form>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### Slotted Mode Inside a Compound Field
|
|
122
|
+
|
|
123
|
+
When the host carries a `slot` attribute, the component renders only the bare native input - the calendar button, dropdown, and calendar are suppressed. This is the correct way to embed the date input inside [`mds-input-date-range`](../mds-input-date-range/AGENTS.md) or a custom compound field.
|
|
124
|
+
|
|
125
|
+
```html
|
|
126
|
+
<mds-input-date-range>
|
|
127
|
+
<mds-input-date slot="start" name="rangeStart"></mds-input-date>
|
|
128
|
+
<mds-input-date slot="end" name="rangeEnd"></mds-input-date>
|
|
129
|
+
</mds-input-date-range>
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
#### Variant Override for External State Signalling
|
|
133
|
+
|
|
134
|
+
`variant` is driven automatically by validation (`'error'` on invalid, `'primary'` on valid) once the field is touched. To communicate an external state, write it in the markup or set it from script: it lasts until the user edits or leaves the field. Values follow the theme input ladder: `primary` (default), `error`, `success`, `warning`, `info`, `ai`.
|
|
135
|
+
|
|
136
|
+
```html
|
|
137
|
+
<mds-input-date id="dataConferma" name="dataConferma" value="2026-03-15"></mds-input-date>
|
|
138
|
+
|
|
139
|
+
<script>
|
|
140
|
+
// Pre-mark as success when the date was already validated server-side
|
|
141
|
+
const field = document.getElementById('dataConferma');
|
|
142
|
+
field.componentOnReady().then(() => {
|
|
143
|
+
field.variant = 'success';
|
|
144
|
+
});
|
|
145
|
+
</script>
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
#### Styling Customization
|
|
149
|
+
|
|
150
|
+
Style the component only through its documented `--mds-input-date-*` CSS custom properties. Use the semantic color roles via `rgb(var(--magma-<role>))` so dark mode and high-contrast work automatically.
|
|
151
|
+
|
|
152
|
+
```css
|
|
153
|
+
.booking-widget mds-input-date {
|
|
154
|
+
--mds-input-date-background: rgb(var(--magma-wash-base));
|
|
155
|
+
--mds-input-date-icon-color: rgb(var(--magma-accent-fg));
|
|
156
|
+
--mds-input-date-ring: 0 0 0 2px rgb(var(--magma-border-focus) / 0.5);
|
|
157
|
+
}
|
|
158
|
+
```
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
GENERATED FILE - do not edit by hand.
|
|
3
|
+
Source of truth: src/components/mds-input-date-range/ in the magma monorepo (usage/*.md and the
|
|
4
|
+
component's JSDoc). Regenerated on every stencil build (scripts/component-docs.ts).
|
|
5
|
+
-->
|
|
6
|
+
|
|
7
|
+
# mds-input-date-range
|
|
8
|
+
|
|
9
|
+
> `@maggioli-design-system/magma` 2.1.0. Shadow DOM: style it only through the CSS custom properties and parts below.
|
|
10
|
+
|
|
11
|
+
The `<mds-input-date-range>` web component is the Magma Design System control for capturing a start/end date pair, composing two slotted `<mds-input-date>` fields with a shared pop-up `mds-calendar` (in range mode) and optional quick-pick presets. It is a form-associated compound parent that orchestrates its children rather than rendering its own native inputs.
|
|
12
|
+
|
|
13
|
+
#### Semantic Behavior
|
|
14
|
+
|
|
15
|
+
- **Compound parent**: Expects exactly two `<mds-input-date>` children assigned to the `start` and `end` named slots; the host keeps both in sync as a single range - it is not meant to be used with a default (text) slot.
|
|
16
|
+
- **Form association**: The submitted value is a JSON string `{ startDate, endDate }`; an empty range submits no value. On form reset it restores the start/end dates present at first load.
|
|
17
|
+
- **Disabled fieldset**: A disabled `<fieldset>` around the component disables its calendar button as `disabled` does, while the slotted fields, being inside the fieldset too, follow it themselves: the range cannot be changed and is left out of the form, until the fieldset is enabled.
|
|
18
|
+
- **Range coercion**: When both dates are valid and the end falls before the start, the end is snapped to equal the start, also for a preselection that ends before it starts, so the committed range is never inverted.
|
|
19
|
+
- **Min/max guard**: If `max` is earlier than `min` at load, `max` is clamped up to `min`; both bounds are forwarded to the calendar to block out-of-range selection, and to the slotted fields, which flag a date typed outside them and stop the submit; such a range is not emitted.
|
|
20
|
+
- **Commit on blur**: Leaving the component validates the range, syncs the form value, and - when both dates are valid - emits selection.
|
|
21
|
+
- **Calendar selection**: Picking a complete range in the pop-up calendar emits selection and, unless `delay` is `0`, auto-closes the dropdown after the delay.
|
|
22
|
+
- **Preselection sync**: Slotted `mds-input-date-range-preselection` children act as quick-picks; activating one applies its range, and any external/calendar change re-evaluates which preset (if any) is marked selected; a preset matching the dates of load is marked selected from the start.
|
|
23
|
+
- **Emitted events**: `mdsInputDateRangeValueChange` fires when a full, valid range is committed (calendar pick, preset, or focus-out with two valid dates) and either bound actually changed since the last emit.
|
|
24
|
+
- **Focus management**: Clicking the host or either field label focuses the corresponding date input; a built-in calendar icon button toggles the calendar dropdown.
|
|
25
|
+
- **Localization**: The "from"/"to" field labels and the calendar honor the resolved language (el/en/es/it).
|
|
26
|
+
|
|
27
|
+
#### Properties & Visual Configurations
|
|
28
|
+
|
|
29
|
+
- **`startDate` / `endDate`** are the controlled range bounds in ISO `YYYY-MM-DD` form; changing them externally re-syncs the slotted inputs and the calendar.
|
|
30
|
+
- **`min` / `max`** define the selectable window: the calendar blocks the dates outside it, and the host passes both bounds to the slotted fields, which check a typed date against them. A bound the range does not set leaves the one written on a field alone; one changed after load reaches both fields.
|
|
31
|
+
- **`disabled`** disables the range, like a disabled native input: the calendar button is disabled, a calendar left open closes, and the dates are left out of the form. It disables the two slotted fields too: at load only when it is set, so a field disabled on its own stays disabled; a change after load reaches both fields.
|
|
32
|
+
- **`delay`** is the auto-close grace period (ms) after a complete selection; set it to `0` to keep the calendar open until the user dismisses it manually.
|
|
33
|
+
|
|
34
|
+
## Read next
|
|
35
|
+
|
|
36
|
+
- [`pattern.md`](pattern.md) - correct usage, with examples
|
|
37
|
+
- [`antipattern.md`](antipattern.md) - mistakes to avoid
|
|
38
|
+
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`anti-patterns.md`](../../../../agents/anti-patterns.md) - the rules shared by every component
|
|
39
|
+
|
|
40
|
+
## Props
|
|
41
|
+
|
|
42
|
+
| Prop | Attribute | Type | Default | Description |
|
|
43
|
+
| --- | --- | --- | --- | --- |
|
|
44
|
+
| `accessibleName` | `aria-label` | `string \| undefined` | - | The accessible name of the range: each of the two fields is named after it and after the end of the range it covers, the visible "from" and "to" labels living in this shadow root, where no IDREF of the slotted fields could reach them. |
|
|
45
|
+
| `delay` | `delay` | `number` | `500` | Specifies the delay in milliseconds before closing the calendar dropdown, if the value is 0 the dropdown will not close |
|
|
46
|
+
| `disabled` | `disabled` | `boolean \| undefined` | `false` | Disables the range, like a disabled native input: the dates cannot be changed, from the fields or from the calendar, and are left out of the form. It disables the two slotted fields too. A disabled `<fieldset>` around the component does the same. |
|
|
47
|
+
| `dualCalendar` | `dual-calendar` | `boolean` | `false` | Enables the linked dual-calendar range picker behavior. |
|
|
48
|
+
| `endDate` | `end-date` | `string` | `''` | Specifies the end date of the range |
|
|
49
|
+
| `hideToday` | `hide-today` | `boolean` | `false` | Hides the highlight on today's date in the calendar. |
|
|
50
|
+
| `max` | `max` | `null \| string` | `null` | Specifies the max date of the range, user cannot set dates after this date |
|
|
51
|
+
| `min` | `min` | `null \| string` | `null` | Specifies the min date of the range, user cannot set dates before this date |
|
|
52
|
+
| `name` | `name` | `string \| undefined` | - | Is needed to reference the form data after the form is submitted |
|
|
53
|
+
| `startDate` | `start-date` | `string` | `''` | Specifies the start date of the range |
|
|
54
|
+
|
|
55
|
+
## Events
|
|
56
|
+
|
|
57
|
+
| Event | Detail | Description |
|
|
58
|
+
| --- | --- | --- |
|
|
59
|
+
| `mdsInputDateRangeValueChange` | `{ startDate: string; endDate: string; }` | Emitted when the selected start or end date changes. |
|
|
60
|
+
|
|
61
|
+
## Methods
|
|
62
|
+
|
|
63
|
+
| Method | Signature | Description |
|
|
64
|
+
| --- | --- | --- |
|
|
65
|
+
| `preselect` | `preselect(event: EventDate) => Promise<void>` | Applies the given preselection range to the input. |
|
|
66
|
+
|
|
67
|
+
## Slots
|
|
68
|
+
|
|
69
|
+
| Slot | Description |
|
|
70
|
+
| --- | --- |
|
|
71
|
+
| `calendar-preselection` | Add `HTML elements` or `components` to this slot. |
|
|
72
|
+
| `end` | Add `HTML elements` or `components` to this slot. |
|
|
73
|
+
| `start` | Add `HTML elements` or `components` to this slot. |
|
|
74
|
+
|
|
75
|
+
## CSS custom properties
|
|
76
|
+
|
|
77
|
+
| Property | Description |
|
|
78
|
+
| --- | --- |
|
|
79
|
+
| `--mds-input-date-range-background` | Sets the background-color of the component |
|
|
80
|
+
| `--mds-input-date-range-calendar-width` | Sets the width of each calendar shown in the dropdown |
|
|
81
|
+
| `--mds-input-date-range-fields-firefox-justify-content` | Sets the justify-content of the component in Firefox |
|
|
82
|
+
| `--mds-input-date-range-fields-gap` | Sets the gap between the fields of the component |
|
|
83
|
+
| `--mds-input-date-range-icon-color` | Sets the icon color of the component |
|
|
84
|
+
| `--mds-input-date-range-ring` | Sets the box-shadow of the component's input to perform the ring effect |
|
|
85
|
+
| `--mds-input-date-range-shadow` | Sets the box-shadow of the component's input |
|
|
86
|
+
| `--mds-input-date-range-variant-color-rgb` | Sets the variant colors of the component |
|
|
87
|
+
|
|
88
|
+
## Dependencies
|
|
89
|
+
|
|
90
|
+
Uses: `mds-calendar`, `mds-text`, `mds-button`, `mds-dropdown`.
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
GENERATED FILE - do not edit by hand.
|
|
3
|
+
Source of truth: src/components/mds-input-date-range/usage/ in the magma monorepo.
|
|
4
|
+
-->
|
|
5
|
+
|
|
6
|
+
# mds-input-date-range - anti-patterns
|
|
7
|
+
|
|
8
|
+
> The API of this component: [`AGENTS.md`](AGENTS.md).
|
|
9
|
+
|
|
10
|
+
Common incorrect uses of `<mds-input-date-range>`. Each entry pairs the wrong form with the right one and a one-line reason. System-wide rules (boolean-as-string, shadow piercing, Tailwind color utilities, raw native event listening) live in [`agents/anti-patterns.md`](../../../../agents/anti-patterns.md) - they apply here too but are not repeated.
|
|
11
|
+
|
|
12
|
+
#### Do Not Omit the Named Slots
|
|
13
|
+
|
|
14
|
+
The host renders two named slots (`start` and `end`) and wires them together internally. Without slotted `<mds-input-date>` children the component has no visible inputs and no data to commit.
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<!-- INCORRECT -->
|
|
18
|
+
<mds-input-date-range start-date="2026-01-01" end-date="2026-01-31">
|
|
19
|
+
</mds-input-date-range>
|
|
20
|
+
|
|
21
|
+
<!-- CORRECT -->
|
|
22
|
+
<mds-input-date-range start-date="2026-01-01" end-date="2026-01-31">
|
|
23
|
+
<mds-input-date slot="start"></mds-input-date>
|
|
24
|
+
<mds-input-date slot="end"></mds-input-date>
|
|
25
|
+
</mds-input-date-range>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
#### Do Not Slot Raw `<input>` Elements
|
|
29
|
+
|
|
30
|
+
The `start` and `end` slots expect [`mds-input-date`](../mds-input-date/AGENTS.md) children. The host calls `.setValue()` and `.focusInput()` on the assigned element; a native `<input>` does not expose those methods and will break internal orchestration.
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<!-- INCORRECT -->
|
|
34
|
+
<mds-input-date-range>
|
|
35
|
+
<input type="date" slot="start" />
|
|
36
|
+
<input type="date" slot="end" />
|
|
37
|
+
</mds-input-date-range>
|
|
38
|
+
|
|
39
|
+
<!-- CORRECT -->
|
|
40
|
+
<mds-input-date-range>
|
|
41
|
+
<mds-input-date slot="start"></mds-input-date>
|
|
42
|
+
<mds-input-date slot="end"></mds-input-date>
|
|
43
|
+
</mds-input-date-range>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
#### Do Not Disable the Fields Instead of the Range
|
|
47
|
+
|
|
48
|
+
Disabling the slotted fields leaves the calendar button of the range enabled, and the user can still change the dates from the calendar. Set `disabled` on the range: it disables its calendar button and the two fields, and leaves the dates out of the form.
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<!-- INCORRECT -->
|
|
52
|
+
<mds-input-date-range name="period">
|
|
53
|
+
<mds-input-date slot="start" disabled></mds-input-date>
|
|
54
|
+
<mds-input-date slot="end" disabled></mds-input-date>
|
|
55
|
+
</mds-input-date-range>
|
|
56
|
+
|
|
57
|
+
<!-- CORRECT -->
|
|
58
|
+
<mds-input-date-range name="period" disabled>
|
|
59
|
+
<mds-input-date slot="start"></mds-input-date>
|
|
60
|
+
<mds-input-date slot="end"></mds-input-date>
|
|
61
|
+
</mds-input-date-range>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
#### Do Not Use Non-ISO Date Strings
|
|
65
|
+
|
|
66
|
+
`startDate`, `endDate`, `min`, and `max` all require `YYYY-MM-DD` ISO format. Passing a locale-formatted string (e.g. `"01/06/2026"`) is silently invalid for Luxon's `DateTime.fromISO()` and leaves the range empty or unguarded.
|
|
67
|
+
|
|
68
|
+
```html
|
|
69
|
+
<!-- INCORRECT -->
|
|
70
|
+
<mds-input-date-range start-date="01/06/2026" end-date="30/06/2026" min="01/01/2026">
|
|
71
|
+
<mds-input-date slot="start"></mds-input-date>
|
|
72
|
+
<mds-input-date slot="end"></mds-input-date>
|
|
73
|
+
</mds-input-date-range>
|
|
74
|
+
|
|
75
|
+
<!-- CORRECT -->
|
|
76
|
+
<mds-input-date-range start-date="2026-06-01" end-date="2026-06-30" min="2026-01-01">
|
|
77
|
+
<mds-input-date slot="start"></mds-input-date>
|
|
78
|
+
<mds-input-date slot="end"></mds-input-date>
|
|
79
|
+
</mds-input-date-range>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
#### Do Not Listen to Native `change` or `input` Events
|
|
83
|
+
|
|
84
|
+
The component emits `mdsInputDateRangeValueChange` as a documented custom event. Native `change` / `input` events originate from inside the shadow DOM and do not bubble out reliably.
|
|
85
|
+
|
|
86
|
+
```html
|
|
87
|
+
<!-- INCORRECT -->
|
|
88
|
+
<mds-input-date-range id="range">
|
|
89
|
+
<mds-input-date slot="start"></mds-input-date>
|
|
90
|
+
<mds-input-date slot="end"></mds-input-date>
|
|
91
|
+
</mds-input-date-range>
|
|
92
|
+
<script>
|
|
93
|
+
document.querySelector('#range').addEventListener('change', handler);
|
|
94
|
+
</script>
|
|
95
|
+
|
|
96
|
+
<!-- CORRECT -->
|
|
97
|
+
<mds-input-date-range id="range">
|
|
98
|
+
<mds-input-date slot="start"></mds-input-date>
|
|
99
|
+
<mds-input-date slot="end"></mds-input-date>
|
|
100
|
+
</mds-input-date-range>
|
|
101
|
+
<script>
|
|
102
|
+
document.querySelector('#range').addEventListener('mdsInputDateRangeValueChange', handler);
|
|
103
|
+
</script>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
#### Do Not Set `delay="false"` to Disable Auto-Close
|
|
107
|
+
|
|
108
|
+
`delay` is a numeric prop, not a boolean. The string `"false"` is parsed as `NaN`, which is not `0`: the dropdown then closes at once instead of staying open. Use `delay="0"` to keep the calendar open after selection.
|
|
109
|
+
|
|
110
|
+
```html
|
|
111
|
+
<!-- INCORRECT -->
|
|
112
|
+
<mds-input-date-range delay="false">
|
|
113
|
+
<mds-input-date slot="start"></mds-input-date>
|
|
114
|
+
<mds-input-date slot="end"></mds-input-date>
|
|
115
|
+
</mds-input-date-range>
|
|
116
|
+
|
|
117
|
+
<!-- CORRECT -->
|
|
118
|
+
<mds-input-date-range delay="0">
|
|
119
|
+
<mds-input-date slot="start"></mds-input-date>
|
|
120
|
+
<mds-input-date slot="end"></mds-input-date>
|
|
121
|
+
</mds-input-date-range>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
#### Do Not Slot Preselection Elements Without the Component's Calendar
|
|
125
|
+
|
|
126
|
+
[`mds-input-date-range-preselection`](../mds-input-date-range-preselection/AGENTS.md) children must be direct children of `<mds-input-date-range>`. Outside the component a click finds no range to apply (the preset looks for its closest `mds-input-date-range`); inside a wrapper div the preset is not slotted into the calendar dropdown and never shows.
|
|
127
|
+
|
|
128
|
+
```html
|
|
129
|
+
<!-- INCORRECT -->
|
|
130
|
+
<mds-input-date-range>
|
|
131
|
+
<mds-input-date slot="start"></mds-input-date>
|
|
132
|
+
<mds-input-date slot="end"></mds-input-date>
|
|
133
|
+
</mds-input-date-range>
|
|
134
|
+
<mds-input-date-range-preselection start="2026-06-01" end="2026-06-30">
|
|
135
|
+
Questo mese
|
|
136
|
+
</mds-input-date-range-preselection>
|
|
137
|
+
|
|
138
|
+
<!-- CORRECT -->
|
|
139
|
+
<mds-input-date-range>
|
|
140
|
+
<mds-input-date slot="start"></mds-input-date>
|
|
141
|
+
<mds-input-date slot="end"></mds-input-date>
|
|
142
|
+
<mds-input-date-range-preselection start="2026-06-01" end="2026-06-30">
|
|
143
|
+
Questo mese
|
|
144
|
+
</mds-input-date-range-preselection>
|
|
145
|
+
</mds-input-date-range>
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
#### Do Not Omit `name` When Inside a Form
|
|
149
|
+
|
|
150
|
+
Without `name` the component is form-associated but submits no named field, so the date range is invisible to the server and to `FormData`.
|
|
151
|
+
|
|
152
|
+
```html
|
|
153
|
+
<!-- INCORRECT -->
|
|
154
|
+
<form action="/filtra" method="get">
|
|
155
|
+
<mds-input-date-range>
|
|
156
|
+
<mds-input-date slot="start"></mds-input-date>
|
|
157
|
+
<mds-input-date slot="end"></mds-input-date>
|
|
158
|
+
</mds-input-date-range>
|
|
159
|
+
</form>
|
|
160
|
+
|
|
161
|
+
<!-- CORRECT -->
|
|
162
|
+
<form action="/filtra" method="get">
|
|
163
|
+
<mds-input-date-range name="periodo">
|
|
164
|
+
<mds-input-date slot="start"></mds-input-date>
|
|
165
|
+
<mds-input-date slot="end"></mds-input-date>
|
|
166
|
+
</mds-input-date-range>
|
|
167
|
+
</form>
|
|
168
|
+
```
|