@maggioli-design-system/magma 2.0.1 → 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.
Files changed (1512) hide show
  1. package/AGENTS.md +71 -0
  2. package/agents/anti-patterns.md +39 -0
  3. package/agents/assets.md +203 -0
  4. package/agents/color.md +193 -0
  5. package/agents/components.md +129 -0
  6. package/agents/conventions.md +188 -0
  7. package/agents/install.md +152 -0
  8. package/agents/theming.md +140 -0
  9. package/agents/typography.md +32 -0
  10. package/agents/variants.md +112 -0
  11. package/dist/cjs/floating-controller-uOCBLTk2.js +369 -0
  12. package/dist/cjs/form-Bk2OHlHM.js +46 -0
  13. package/dist/cjs/index-MyEb-PfD.js +198 -0
  14. package/dist/cjs/index-UmmmCMIG.js +5184 -0
  15. package/dist/cjs/index.cjs.js +1 -1
  16. package/dist/cjs/loader.cjs.js +2 -2
  17. package/dist/cjs/locale-CnorkBwF.js +816 -0
  18. package/dist/cjs/magma-components.cjs.js +2 -2
  19. package/dist/cjs/mds-accordion-item.cjs.entry.js +2 -2
  20. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +2 -2
  21. package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
  22. package/dist/cjs/mds-accordion.cjs.entry.js +2 -2
  23. package/dist/cjs/mds-author.cjs.entry.js +1 -1
  24. package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
  25. package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
  26. package/dist/cjs/mds-avatar.cjs.entry.js +2 -2
  27. package/dist/cjs/mds-badge.cjs.entry.js +2 -2
  28. package/dist/cjs/mds-banner_3.cjs.entry.js +3 -3
  29. package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
  31. package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
  32. package/dist/cjs/mds-breadcrumb.cjs.entry.js +3 -3
  33. package/dist/cjs/mds-button-dropdown.cjs.entry.js +38 -4
  34. package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
  35. package/dist/cjs/mds-button_3.cjs.entry.js +7 -6
  36. package/dist/cjs/mds-calendar_2.cjs.entry.js +2 -2
  37. package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
  38. package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
  39. package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
  40. package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
  41. package/dist/cjs/mds-card.cjs.entry.js +2 -2
  42. package/dist/cjs/mds-details.cjs.entry.js +2 -2
  43. package/dist/cjs/mds-dropdown.cjs.entry.js +3 -3
  44. package/dist/cjs/mds-emoji.cjs.entry.js +2 -2
  45. package/dist/cjs/mds-entity.cjs.entry.js +2 -2
  46. package/dist/cjs/mds-file-preview.cjs.entry.js +3 -3
  47. package/dist/cjs/mds-file.cjs.entry.js +3 -3
  48. package/dist/cjs/mds-filter-item.cjs.entry.js +2 -2
  49. package/dist/cjs/mds-filter.cjs.entry.js +2 -2
  50. package/dist/cjs/mds-header-bar.cjs.entry.js +2 -2
  51. package/dist/cjs/mds-header.cjs.entry.js +2 -2
  52. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
  53. package/dist/cjs/mds-hr.cjs.entry.js +2 -2
  54. package/dist/cjs/mds-img.cjs.entry.js +3 -3
  55. package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
  56. package/dist/cjs/mds-input-date-range.cjs.entry.js +89 -9
  57. package/dist/cjs/mds-input-date.cjs.entry.js +124 -27
  58. package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
  59. package/dist/cjs/mds-input-otp.cjs.entry.js +65 -19
  60. package/dist/cjs/mds-input-range.cjs.entry.js +32 -16
  61. package/dist/cjs/mds-input-select.cjs.entry.js +159 -30
  62. package/dist/cjs/mds-input-switch_2.cjs.entry.js +63 -21
  63. package/dist/cjs/mds-input-tip_2.cjs.entry.js +3 -3
  64. package/dist/cjs/mds-input-upload.cjs.entry.js +136 -67
  65. package/dist/cjs/mds-input.cjs.entry.js +320 -36
  66. package/dist/cjs/mds-keyboard-key.cjs.entry.js +3 -3
  67. package/dist/cjs/mds-keyboard.cjs.entry.js +3 -3
  68. package/dist/cjs/mds-kpi-item.cjs.entry.js +2 -2
  69. package/dist/cjs/mds-kpi.cjs.entry.js +1 -1
  70. package/dist/cjs/mds-label.cjs.entry.js +3 -3
  71. package/dist/cjs/mds-list-item.cjs.entry.js +2 -2
  72. package/dist/cjs/mds-list.cjs.entry.js +1 -1
  73. package/dist/cjs/mds-mention.cjs.entry.js +3 -3
  74. package/dist/cjs/mds-modal.cjs.entry.js +2 -2
  75. package/dist/cjs/mds-note.cjs.entry.js +3 -3
  76. package/dist/cjs/mds-notification.cjs.entry.js +2 -2
  77. package/dist/cjs/mds-paginator-item.cjs.entry.js +2 -2
  78. package/dist/cjs/mds-paginator.cjs.entry.js +2 -2
  79. package/dist/cjs/mds-policy-ai.cjs.entry.js +3 -3
  80. package/dist/cjs/mds-pref-animation.cjs.entry.js +29 -5
  81. package/dist/cjs/mds-pref-consumption.cjs.entry.js +29 -5
  82. package/dist/cjs/mds-pref-contrast.cjs.entry.js +27 -6
  83. package/dist/cjs/mds-pref-language-item.cjs.entry.js +3 -3
  84. package/dist/cjs/mds-pref-language.cjs.entry.js +3 -3
  85. package/dist/cjs/mds-pref-mode.cjs.entry.js +30 -7
  86. package/dist/cjs/mds-pref-theme-item.cjs.entry.js +1 -1
  87. package/dist/cjs/mds-pref-theme.cjs.entry.js +3 -3
  88. package/dist/cjs/mds-pref.cjs.entry.js +10 -5
  89. package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +2 -2
  90. package/dist/cjs/mds-price-table-features-row.cjs.entry.js +2 -2
  91. package/dist/cjs/mds-price-table-features.cjs.entry.js +2 -2
  92. package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
  93. package/dist/cjs/mds-price-table-list-item.cjs.entry.js +1 -1
  94. package/dist/cjs/mds-price-table-list.cjs.entry.js +2 -2
  95. package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
  96. package/dist/cjs/mds-progress_2.cjs.entry.js +2 -2
  97. package/dist/cjs/mds-push-notification-item.cjs.entry.js +3 -3
  98. package/dist/cjs/mds-push-notification.cjs.entry.js +2 -2
  99. package/dist/cjs/mds-quote.cjs.entry.js +2 -2
  100. package/dist/cjs/mds-radial-menu-item.cjs.entry.js +1 -1
  101. package/dist/cjs/mds-radial-menu.cjs.entry.js +2 -2
  102. package/dist/cjs/mds-separator.cjs.entry.js +2 -2
  103. package/dist/cjs/mds-status-bar.cjs.entry.js +2 -2
  104. package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +3 -3
  105. package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
  106. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +2 -2
  107. package/dist/cjs/mds-tab-bar.cjs.entry.js +2 -2
  108. package/dist/cjs/mds-tab_2.cjs.entry.js +2 -2
  109. package/dist/cjs/mds-table-body.cjs.entry.js +2 -2
  110. package/dist/cjs/mds-table-footer.cjs.entry.js +2 -2
  111. package/dist/cjs/mds-table-header-cell.cjs.entry.js +2 -2
  112. package/dist/cjs/mds-table-header.cjs.entry.js +3 -3
  113. package/dist/cjs/mds-table-row.cjs.entry.js +3 -3
  114. package/dist/cjs/mds-table.cjs.entry.js +3 -3
  115. package/dist/cjs/mds-text.cjs.entry.js +2 -2
  116. package/dist/cjs/mds-toast.cjs.entry.js +2 -2
  117. package/dist/cjs/mds-tooltip.cjs.entry.js +3 -3
  118. package/dist/cjs/mds-tree-item.cjs.entry.js +3 -3
  119. package/dist/cjs/mds-tree.cjs.entry.js +1 -1
  120. package/dist/cjs/mds-url-view.cjs.entry.js +3 -3
  121. package/dist/cjs/mds-usage.cjs.entry.js +3 -3
  122. package/dist/cjs/mds-video-wall.cjs.entry.js +1 -1
  123. package/dist/cjs/mds-zero.cjs.entry.js +2 -2
  124. package/dist/cjs/preference-DRkzNp5a.js +389 -0
  125. package/dist/collection/common/form.js +24 -1
  126. package/dist/collection/common/validity/index.js +42 -0
  127. package/dist/collection/components/mds-accordion/AGENTS.md +65 -0
  128. package/dist/collection/components/mds-accordion/antipattern.md +123 -0
  129. package/dist/collection/components/mds-accordion/documentation.json +172 -0
  130. package/dist/collection/components/mds-accordion/pattern.md +150 -0
  131. package/dist/collection/components/mds-accordion-item/AGENTS.md +76 -0
  132. package/dist/collection/components/mds-accordion-item/antipattern.md +137 -0
  133. package/dist/collection/components/mds-accordion-item/documentation.json +288 -0
  134. package/dist/collection/components/mds-accordion-item/pattern.md +156 -0
  135. package/dist/collection/components/mds-accordion-timer/AGENTS.md +65 -0
  136. package/dist/collection/components/mds-accordion-timer/antipattern.md +133 -0
  137. package/dist/collection/components/mds-accordion-timer/documentation.json +168 -0
  138. package/dist/collection/components/mds-accordion-timer/pattern.md +137 -0
  139. package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +82 -0
  140. package/dist/collection/components/mds-accordion-timer-item/antipattern.md +143 -0
  141. package/dist/collection/components/mds-accordion-timer-item/documentation.json +400 -0
  142. package/dist/collection/components/mds-accordion-timer-item/pattern.md +136 -0
  143. package/dist/collection/components/mds-author/AGENTS.md +40 -0
  144. package/dist/collection/components/mds-author/antipattern.md +106 -0
  145. package/dist/collection/components/mds-author/documentation.json +51 -0
  146. package/dist/collection/components/mds-author/pattern.md +101 -0
  147. package/dist/collection/components/mds-avatar/AGENTS.md +70 -0
  148. package/dist/collection/components/mds-avatar/antipattern.md +96 -0
  149. package/dist/collection/components/mds-avatar/documentation.json +362 -0
  150. package/dist/collection/components/mds-avatar/pattern.md +108 -0
  151. package/dist/collection/components/mds-avatar-stack/AGENTS.md +65 -0
  152. package/dist/collection/components/mds-avatar-stack/antipattern.md +122 -0
  153. package/dist/collection/components/mds-avatar-stack/documentation.json +196 -0
  154. package/dist/collection/components/mds-avatar-stack/pattern.md +125 -0
  155. package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +60 -0
  156. package/dist/collection/components/mds-avatar-stack-item/antipattern.md +113 -0
  157. package/dist/collection/components/mds-avatar-stack-item/documentation.json +315 -0
  158. package/dist/collection/components/mds-avatar-stack-item/pattern.md +105 -0
  159. package/dist/collection/components/mds-badge/AGENTS.md +63 -0
  160. package/dist/collection/components/mds-badge/antipattern.md +104 -0
  161. package/dist/collection/components/mds-badge/documentation.json +316 -0
  162. package/dist/collection/components/mds-badge/pattern.md +130 -0
  163. package/dist/collection/components/mds-banner/AGENTS.md +87 -0
  164. package/dist/collection/components/mds-banner/antipattern.md +141 -0
  165. package/dist/collection/components/mds-banner/documentation.json +378 -0
  166. package/dist/collection/components/mds-banner/pattern.md +176 -0
  167. package/dist/collection/components/mds-benchmark-bar/AGENTS.md +59 -0
  168. package/dist/collection/components/mds-benchmark-bar/antipattern.md +77 -0
  169. package/dist/collection/components/mds-benchmark-bar/documentation.json +313 -0
  170. package/dist/collection/components/mds-benchmark-bar/pattern.md +102 -0
  171. package/dist/collection/components/mds-bibliography/AGENTS.md +61 -0
  172. package/dist/collection/components/mds-bibliography/antipattern.md +130 -0
  173. package/dist/collection/components/mds-bibliography/documentation.json +407 -0
  174. package/dist/collection/components/mds-bibliography/pattern.md +142 -0
  175. package/dist/collection/components/mds-breadcrumb/AGENTS.md +68 -0
  176. package/dist/collection/components/mds-breadcrumb/antipattern.md +112 -0
  177. package/dist/collection/components/mds-breadcrumb/documentation.json +156 -0
  178. package/dist/collection/components/mds-breadcrumb/pattern.md +103 -0
  179. package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +67 -0
  180. package/dist/collection/components/mds-breadcrumb-item/antipattern.md +109 -0
  181. package/dist/collection/components/mds-breadcrumb-item/documentation.json +160 -0
  182. package/dist/collection/components/mds-breadcrumb-item/pattern.md +85 -0
  183. package/dist/collection/components/mds-button/AGENTS.md +102 -0
  184. package/dist/collection/components/mds-button/antipattern.md +126 -0
  185. package/dist/collection/components/mds-button/documentation.json +922 -0
  186. package/dist/collection/components/mds-button/mds-button.css +4 -1
  187. package/dist/collection/components/mds-button/mds-button.js +42 -3
  188. package/dist/collection/components/mds-button/pattern.md +172 -0
  189. package/dist/collection/components/mds-button-dropdown/AGENTS.md +88 -0
  190. package/dist/collection/components/mds-button-dropdown/antipattern.md +158 -0
  191. package/dist/collection/components/mds-button-dropdown/documentation.json +614 -0
  192. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +94 -6
  193. package/dist/collection/components/mds-button-dropdown/pattern.md +164 -0
  194. package/dist/collection/components/mds-button-group/AGENTS.md +33 -0
  195. package/dist/collection/components/mds-button-group/antipattern.md +105 -0
  196. package/dist/collection/components/mds-button-group/documentation.json +43 -0
  197. package/dist/collection/components/mds-button-group/pattern.md +89 -0
  198. package/dist/collection/components/mds-calendar/AGENTS.md +96 -0
  199. package/dist/collection/components/mds-calendar/antipattern.md +113 -0
  200. package/dist/collection/components/mds-calendar/documentation.json +626 -0
  201. package/dist/collection/components/mds-calendar/pattern.md +128 -0
  202. package/dist/collection/components/mds-calendar-cell/AGENTS.md +94 -0
  203. package/dist/collection/components/mds-calendar-cell/antipattern.md +58 -0
  204. package/dist/collection/components/mds-calendar-cell/documentation.json +539 -0
  205. package/dist/collection/components/mds-calendar-cell/pattern.md +82 -0
  206. package/dist/collection/components/mds-card/AGENTS.md +60 -0
  207. package/dist/collection/components/mds-card/antipattern.md +133 -0
  208. package/dist/collection/components/mds-card/documentation.json +117 -0
  209. package/dist/collection/components/mds-card/pattern.md +160 -0
  210. package/dist/collection/components/mds-card-content/AGENTS.md +34 -0
  211. package/dist/collection/components/mds-card-content/antipattern.md +110 -0
  212. package/dist/collection/components/mds-card-content/documentation.json +43 -0
  213. package/dist/collection/components/mds-card-content/pattern.md +91 -0
  214. package/dist/collection/components/mds-card-footer/AGENTS.md +34 -0
  215. package/dist/collection/components/mds-card-footer/antipattern.md +112 -0
  216. package/dist/collection/components/mds-card-footer/documentation.json +43 -0
  217. package/dist/collection/components/mds-card-footer/pattern.md +95 -0
  218. package/dist/collection/components/mds-card-header/AGENTS.md +38 -0
  219. package/dist/collection/components/mds-card-header/antipattern.md +114 -0
  220. package/dist/collection/components/mds-card-header/documentation.json +51 -0
  221. package/dist/collection/components/mds-card-header/pattern.md +143 -0
  222. package/dist/collection/components/mds-card-media/AGENTS.md +46 -0
  223. package/dist/collection/components/mds-card-media/antipattern.md +128 -0
  224. package/dist/collection/components/mds-card-media/documentation.json +56 -0
  225. package/dist/collection/components/mds-card-media/pattern.md +93 -0
  226. package/dist/collection/components/mds-chip/AGENTS.md +84 -0
  227. package/dist/collection/components/mds-chip/antipattern.md +119 -0
  228. package/dist/collection/components/mds-chip/documentation.json +535 -0
  229. package/dist/collection/components/mds-chip/pattern.md +166 -0
  230. package/dist/collection/components/mds-details/AGENTS.md +72 -0
  231. package/dist/collection/components/mds-details/antipattern.md +128 -0
  232. package/dist/collection/components/mds-details/documentation.json +153 -0
  233. package/dist/collection/components/mds-details/pattern.md +138 -0
  234. package/dist/collection/components/mds-dropdown/AGENTS.md +95 -0
  235. package/dist/collection/components/mds-dropdown/antipattern.md +137 -0
  236. package/dist/collection/components/mds-dropdown/documentation.json +701 -0
  237. package/dist/collection/components/mds-dropdown/pattern.md +201 -0
  238. package/dist/collection/components/mds-emoji/AGENTS.md +88 -0
  239. package/dist/collection/components/mds-emoji/antipattern.md +134 -0
  240. package/dist/collection/components/mds-emoji/documentation.json +506 -0
  241. package/dist/collection/components/mds-emoji/pattern.md +219 -0
  242. package/dist/collection/components/mds-entity/AGENTS.md +76 -0
  243. package/dist/collection/components/mds-entity/antipattern.md +112 -0
  244. package/dist/collection/components/mds-entity/documentation.json +365 -0
  245. package/dist/collection/components/mds-entity/pattern.md +125 -0
  246. package/dist/collection/components/mds-file/AGENTS.md +63 -0
  247. package/dist/collection/components/mds-file/antipattern.md +92 -0
  248. package/dist/collection/components/mds-file/documentation.json +484 -0
  249. package/dist/collection/components/mds-file/pattern.md +109 -0
  250. package/dist/collection/components/mds-file-preview/AGENTS.md +88 -0
  251. package/dist/collection/components/mds-file-preview/antipattern.md +129 -0
  252. package/dist/collection/components/mds-file-preview/documentation.json +780 -0
  253. package/dist/collection/components/mds-file-preview/pattern.md +164 -0
  254. package/dist/collection/components/mds-filter/AGENTS.md +72 -0
  255. package/dist/collection/components/mds-filter/antipattern.md +140 -0
  256. package/dist/collection/components/mds-filter/documentation.json +239 -0
  257. package/dist/collection/components/mds-filter/pattern.md +129 -0
  258. package/dist/collection/components/mds-filter-item/AGENTS.md +64 -0
  259. package/dist/collection/components/mds-filter-item/antipattern.md +127 -0
  260. package/dist/collection/components/mds-filter-item/documentation.json +240 -0
  261. package/dist/collection/components/mds-filter-item/pattern.md +125 -0
  262. package/dist/collection/components/mds-header/AGENTS.md +95 -0
  263. package/dist/collection/components/mds-header/antipattern.md +120 -0
  264. package/dist/collection/components/mds-header/documentation.json +491 -0
  265. package/dist/collection/components/mds-header/pattern.md +182 -0
  266. package/dist/collection/components/mds-header-bar/AGENTS.md +80 -0
  267. package/dist/collection/components/mds-header-bar/antipattern.md +119 -0
  268. package/dist/collection/components/mds-header-bar/documentation.json +251 -0
  269. package/dist/collection/components/mds-header-bar/pattern.md +134 -0
  270. package/dist/collection/components/mds-help/AGENTS.md +65 -0
  271. package/dist/collection/components/mds-help/antipattern.md +73 -0
  272. package/dist/collection/components/mds-help/documentation.json +228 -0
  273. package/dist/collection/components/mds-help/pattern.md +106 -0
  274. package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +72 -0
  275. package/dist/collection/components/mds-horizontal-scroll/antipattern.md +120 -0
  276. package/dist/collection/components/mds-horizontal-scroll/documentation.json +279 -0
  277. package/dist/collection/components/mds-horizontal-scroll/pattern.md +154 -0
  278. package/dist/collection/components/mds-hr/AGENTS.md +27 -0
  279. package/dist/collection/components/mds-hr/antipattern.md +84 -0
  280. package/dist/collection/components/mds-hr/documentation.json +33 -0
  281. package/dist/collection/components/mds-hr/pattern.md +88 -0
  282. package/dist/collection/components/mds-icon/AGENTS.md +52 -0
  283. package/dist/collection/components/mds-icon/antipattern.md +118 -0
  284. package/dist/collection/components/mds-icon/documentation.json +205 -0
  285. package/dist/collection/components/mds-icon/pattern.md +135 -0
  286. package/dist/collection/components/mds-img/AGENTS.md +78 -0
  287. package/dist/collection/components/mds-img/antipattern.md +106 -0
  288. package/dist/collection/components/mds-img/documentation.json +470 -0
  289. package/dist/collection/components/mds-img/pattern.md +128 -0
  290. package/dist/collection/components/mds-input/AGENTS.md +138 -0
  291. package/dist/collection/components/mds-input/antipattern.md +128 -0
  292. package/dist/collection/components/mds-input/documentation.json +1574 -0
  293. package/dist/collection/components/mds-input/mds-input.js +185 -30
  294. package/dist/collection/components/mds-input/meta/input-type/InputValidationManager.js +8 -1
  295. package/dist/collection/components/mds-input/meta/validators.js +100 -2
  296. package/dist/collection/components/mds-input/meta/validity.js +35 -0
  297. package/dist/collection/components/mds-input/pattern.md +252 -0
  298. package/dist/collection/components/mds-input-date/AGENTS.md +98 -0
  299. package/dist/collection/components/mds-input-date/antipattern.md +107 -0
  300. package/dist/collection/components/mds-input-date/documentation.json +638 -0
  301. package/dist/collection/components/mds-input-date/mds-input-date.js +130 -24
  302. package/dist/collection/components/mds-input-date/pattern.md +158 -0
  303. package/dist/collection/components/mds-input-date-range/AGENTS.md +90 -0
  304. package/dist/collection/components/mds-input-date-range/antipattern.md +168 -0
  305. package/dist/collection/components/mds-input-date-range/documentation.json +502 -0
  306. package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +13 -0
  307. package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +106 -5
  308. package/dist/collection/components/mds-input-date-range/pattern.md +122 -0
  309. package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +62 -0
  310. package/dist/collection/components/mds-input-date-range-preselection/antipattern.md +147 -0
  311. package/dist/collection/components/mds-input-date-range-preselection/documentation.json +176 -0
  312. package/dist/collection/components/mds-input-date-range-preselection/pattern.md +101 -0
  313. package/dist/collection/components/mds-input-field/AGENTS.md +60 -0
  314. package/dist/collection/components/mds-input-field/antipattern.md +115 -0
  315. package/dist/collection/components/mds-input-field/documentation.json +178 -0
  316. package/dist/collection/components/mds-input-field/pattern.md +95 -0
  317. package/dist/collection/components/mds-input-otp/AGENTS.md +48 -0
  318. package/dist/collection/components/mds-input-otp/antipattern.md +105 -0
  319. package/dist/collection/components/mds-input-otp/documentation.json +203 -0
  320. package/dist/collection/components/mds-input-otp/mds-input-otp.css +4 -1
  321. package/dist/collection/components/mds-input-otp/mds-input-otp.js +88 -15
  322. package/dist/collection/components/mds-input-otp/pattern.md +107 -0
  323. package/dist/collection/components/mds-input-range/AGENTS.md +84 -0
  324. package/dist/collection/components/mds-input-range/antipattern.md +127 -0
  325. package/dist/collection/components/mds-input-range/documentation.json +315 -0
  326. package/dist/collection/components/mds-input-range/mds-input-range.css +6 -2
  327. package/dist/collection/components/mds-input-range/mds-input-range.js +30 -13
  328. package/dist/collection/components/mds-input-range/pattern.md +110 -0
  329. package/dist/collection/components/mds-input-select/AGENTS.md +99 -0
  330. package/dist/collection/components/mds-input-select/antipattern.md +126 -0
  331. package/dist/collection/components/mds-input-select/documentation.json +552 -0
  332. package/dist/collection/components/mds-input-select/mds-input-select.js +164 -35
  333. package/dist/collection/components/mds-input-select/meta/event-detail.js +1 -0
  334. package/dist/collection/components/mds-input-select/pattern.md +168 -0
  335. package/dist/collection/components/mds-input-switch/AGENTS.md +106 -0
  336. package/dist/collection/components/mds-input-switch/antipattern.md +117 -0
  337. package/dist/collection/components/mds-input-switch/documentation.json +638 -0
  338. package/dist/collection/components/mds-input-switch/mds-input-switch.css +4 -1
  339. package/dist/collection/components/mds-input-switch/mds-input-switch.js +59 -16
  340. package/dist/collection/components/mds-input-switch/pattern.md +133 -0
  341. package/dist/collection/components/mds-input-tip/AGENTS.md +56 -0
  342. package/dist/collection/components/mds-input-tip/antipattern.md +108 -0
  343. package/dist/collection/components/mds-input-tip/documentation.json +160 -0
  344. package/dist/collection/components/mds-input-tip/pattern.md +125 -0
  345. package/dist/collection/components/mds-input-tip-item/AGENTS.md +58 -0
  346. package/dist/collection/components/mds-input-tip-item/antipattern.md +98 -0
  347. package/dist/collection/components/mds-input-tip-item/documentation.json +181 -0
  348. package/dist/collection/components/mds-input-tip-item/pattern.md +107 -0
  349. package/dist/collection/components/mds-input-upload/AGENTS.md +78 -0
  350. package/dist/collection/components/mds-input-upload/antipattern.md +144 -0
  351. package/dist/collection/components/mds-input-upload/documentation.json +425 -0
  352. package/dist/collection/components/mds-input-upload/mds-input-upload.css +15 -0
  353. package/dist/collection/components/mds-input-upload/mds-input-upload.js +176 -66
  354. package/dist/collection/components/mds-input-upload/pattern.md +165 -0
  355. package/dist/collection/components/mds-keyboard/AGENTS.md +76 -0
  356. package/dist/collection/components/mds-keyboard/antipattern.md +111 -0
  357. package/dist/collection/components/mds-keyboard/documentation.json +227 -0
  358. package/dist/collection/components/mds-keyboard/pattern.md +129 -0
  359. package/dist/collection/components/mds-keyboard-key/AGENTS.md +55 -0
  360. package/dist/collection/components/mds-keyboard-key/antipattern.md +117 -0
  361. package/dist/collection/components/mds-keyboard-key/documentation.json +450 -0
  362. package/dist/collection/components/mds-keyboard-key/pattern.md +98 -0
  363. package/dist/collection/components/mds-kpi/AGENTS.md +44 -0
  364. package/dist/collection/components/mds-kpi/antipattern.md +93 -0
  365. package/dist/collection/components/mds-kpi/documentation.json +54 -0
  366. package/dist/collection/components/mds-kpi/pattern.md +109 -0
  367. package/dist/collection/components/mds-kpi-item/AGENTS.md +62 -0
  368. package/dist/collection/components/mds-kpi-item/antipattern.md +119 -0
  369. package/dist/collection/components/mds-kpi-item/documentation.json +199 -0
  370. package/dist/collection/components/mds-kpi-item/pattern.md +115 -0
  371. package/dist/collection/components/mds-label/AGENTS.md +71 -0
  372. package/dist/collection/components/mds-label/antipattern.md +92 -0
  373. package/dist/collection/components/mds-label/documentation.json +388 -0
  374. package/dist/collection/components/mds-label/pattern.md +111 -0
  375. package/dist/collection/components/mds-list/AGENTS.md +33 -0
  376. package/dist/collection/components/mds-list/antipattern.md +117 -0
  377. package/dist/collection/components/mds-list/documentation.json +43 -0
  378. package/dist/collection/components/mds-list/pattern.md +104 -0
  379. package/dist/collection/components/mds-list-item/AGENTS.md +60 -0
  380. package/dist/collection/components/mds-list-item/antipattern.md +118 -0
  381. package/dist/collection/components/mds-list-item/documentation.json +200 -0
  382. package/dist/collection/components/mds-list-item/pattern.md +101 -0
  383. package/dist/collection/components/mds-mention/AGENTS.md +55 -0
  384. package/dist/collection/components/mds-mention/antipattern.md +86 -0
  385. package/dist/collection/components/mds-mention/documentation.json +203 -0
  386. package/dist/collection/components/mds-mention/pattern.md +91 -0
  387. package/dist/collection/components/mds-modal/AGENTS.md +107 -0
  388. package/dist/collection/components/mds-modal/antipattern.md +96 -0
  389. package/dist/collection/components/mds-modal/documentation.json +552 -0
  390. package/dist/collection/components/mds-modal/pattern.md +228 -0
  391. package/dist/collection/components/mds-note/AGENTS.md +68 -0
  392. package/dist/collection/components/mds-note/antipattern.md +99 -0
  393. package/dist/collection/components/mds-note/documentation.json +220 -0
  394. package/dist/collection/components/mds-note/pattern.md +108 -0
  395. package/dist/collection/components/mds-notification/AGENTS.md +67 -0
  396. package/dist/collection/components/mds-notification/antipattern.md +86 -0
  397. package/dist/collection/components/mds-notification/documentation.json +253 -0
  398. package/dist/collection/components/mds-notification/pattern.md +98 -0
  399. package/dist/collection/components/mds-paginator/AGENTS.md +57 -0
  400. package/dist/collection/components/mds-paginator/antipattern.md +95 -0
  401. package/dist/collection/components/mds-paginator/documentation.json +135 -0
  402. package/dist/collection/components/mds-paginator/pattern.md +92 -0
  403. package/dist/collection/components/mds-paginator-item/AGENTS.md +74 -0
  404. package/dist/collection/components/mds-paginator-item/antipattern.md +95 -0
  405. package/dist/collection/components/mds-paginator-item/documentation.json +206 -0
  406. package/dist/collection/components/mds-paginator-item/pattern.md +75 -0
  407. package/dist/collection/components/mds-policy-ai/AGENTS.md +58 -0
  408. package/dist/collection/components/mds-policy-ai/antipattern.md +97 -0
  409. package/dist/collection/components/mds-policy-ai/documentation.json +244 -0
  410. package/dist/collection/components/mds-policy-ai/pattern.md +102 -0
  411. package/dist/collection/components/mds-pref/AGENTS.md +50 -0
  412. package/dist/collection/components/mds-pref/antipattern.md +85 -0
  413. package/dist/collection/components/mds-pref/documentation.json +138 -0
  414. package/dist/collection/components/mds-pref/mds-pref.js +7 -2
  415. package/dist/collection/components/mds-pref/pattern.md +93 -0
  416. package/dist/collection/components/mds-pref-animation/AGENTS.md +48 -0
  417. package/dist/collection/components/mds-pref-animation/antipattern.md +67 -0
  418. package/dist/collection/components/mds-pref-animation/documentation.json +154 -0
  419. package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +26 -2
  420. package/dist/collection/components/mds-pref-animation/pattern.md +86 -0
  421. package/dist/collection/components/mds-pref-consumption/AGENTS.md +47 -0
  422. package/dist/collection/components/mds-pref-consumption/antipattern.md +84 -0
  423. package/dist/collection/components/mds-pref-consumption/documentation.json +154 -0
  424. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +26 -2
  425. package/dist/collection/components/mds-pref-consumption/pattern.md +70 -0
  426. package/dist/collection/components/mds-pref-contrast/AGENTS.md +50 -0
  427. package/dist/collection/components/mds-pref-contrast/antipattern.md +71 -0
  428. package/dist/collection/components/mds-pref-contrast/documentation.json +154 -0
  429. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +24 -3
  430. package/dist/collection/components/mds-pref-contrast/pattern.md +82 -0
  431. package/dist/collection/components/mds-pref-language/AGENTS.md +56 -0
  432. package/dist/collection/components/mds-pref-language/antipattern.md +130 -0
  433. package/dist/collection/components/mds-pref-language/documentation.json +174 -0
  434. package/dist/collection/components/mds-pref-language/pattern.md +104 -0
  435. package/dist/collection/components/mds-pref-language-item/AGENTS.md +48 -0
  436. package/dist/collection/components/mds-pref-language-item/antipattern.md +99 -0
  437. package/dist/collection/components/mds-pref-language-item/documentation.json +122 -0
  438. package/dist/collection/components/mds-pref-language-item/pattern.md +85 -0
  439. package/dist/collection/components/mds-pref-mode/AGENTS.md +53 -0
  440. package/dist/collection/components/mds-pref-mode/antipattern.md +104 -0
  441. package/dist/collection/components/mds-pref-mode/documentation.json +241 -0
  442. package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +27 -4
  443. package/dist/collection/components/mds-pref-mode/pattern.md +94 -0
  444. package/dist/collection/components/mds-pref-theme/AGENTS.md +60 -0
  445. package/dist/collection/components/mds-pref-theme/antipattern.md +104 -0
  446. package/dist/collection/components/mds-pref-theme/documentation.json +277 -0
  447. package/dist/collection/components/mds-pref-theme/pattern.md +97 -0
  448. package/dist/collection/components/mds-pref-theme-item/AGENTS.md +60 -0
  449. package/dist/collection/components/mds-pref-theme-item/antipattern.md +98 -0
  450. package/dist/collection/components/mds-pref-theme-item/documentation.json +228 -0
  451. package/dist/collection/components/mds-pref-theme-item/pattern.md +98 -0
  452. package/dist/collection/components/mds-price-table/AGENTS.md +34 -0
  453. package/dist/collection/components/mds-price-table/antipattern.md +131 -0
  454. package/dist/collection/components/mds-price-table/documentation.json +43 -0
  455. package/dist/collection/components/mds-price-table/pattern.md +182 -0
  456. package/dist/collection/components/mds-price-table-features/AGENTS.md +61 -0
  457. package/dist/collection/components/mds-price-table-features/antipattern.md +152 -0
  458. package/dist/collection/components/mds-price-table-features/documentation.json +96 -0
  459. package/dist/collection/components/mds-price-table-features/pattern.md +157 -0
  460. package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +69 -0
  461. package/dist/collection/components/mds-price-table-features-cell/antipattern.md +105 -0
  462. package/dist/collection/components/mds-price-table-features-cell/documentation.json +154 -0
  463. package/dist/collection/components/mds-price-table-features-cell/pattern.md +128 -0
  464. package/dist/collection/components/mds-price-table-features-row/AGENTS.md +43 -0
  465. package/dist/collection/components/mds-price-table-features-row/antipattern.md +135 -0
  466. package/dist/collection/components/mds-price-table-features-row/documentation.json +64 -0
  467. package/dist/collection/components/mds-price-table-features-row/pattern.md +125 -0
  468. package/dist/collection/components/mds-price-table-header/AGENTS.md +34 -0
  469. package/dist/collection/components/mds-price-table-header/antipattern.md +133 -0
  470. package/dist/collection/components/mds-price-table-header/documentation.json +43 -0
  471. package/dist/collection/components/mds-price-table-header/pattern.md +176 -0
  472. package/dist/collection/components/mds-price-table-list/AGENTS.md +63 -0
  473. package/dist/collection/components/mds-price-table-list/antipattern.md +133 -0
  474. package/dist/collection/components/mds-price-table-list/documentation.json +104 -0
  475. package/dist/collection/components/mds-price-table-list/pattern.md +134 -0
  476. package/dist/collection/components/mds-price-table-list-item/AGENTS.md +61 -0
  477. package/dist/collection/components/mds-price-table-list-item/antipattern.md +90 -0
  478. package/dist/collection/components/mds-price-table-list-item/documentation.json +145 -0
  479. package/dist/collection/components/mds-price-table-list-item/pattern.md +105 -0
  480. package/dist/collection/components/mds-progress/AGENTS.md +68 -0
  481. package/dist/collection/components/mds-progress/antipattern.md +94 -0
  482. package/dist/collection/components/mds-progress/documentation.json +375 -0
  483. package/dist/collection/components/mds-progress/pattern.md +139 -0
  484. package/dist/collection/components/mds-push-notification/AGENTS.md +88 -0
  485. package/dist/collection/components/mds-push-notification/antipattern.md +154 -0
  486. package/dist/collection/components/mds-push-notification/documentation.json +306 -0
  487. package/dist/collection/components/mds-push-notification/pattern.md +203 -0
  488. package/dist/collection/components/mds-push-notification-item/AGENTS.md +91 -0
  489. package/dist/collection/components/mds-push-notification-item/antipattern.md +129 -0
  490. package/dist/collection/components/mds-push-notification-item/documentation.json +586 -0
  491. package/dist/collection/components/mds-push-notification-item/pattern.md +201 -0
  492. package/dist/collection/components/mds-quote/AGENTS.md +51 -0
  493. package/dist/collection/components/mds-quote/antipattern.md +122 -0
  494. package/dist/collection/components/mds-quote/documentation.json +176 -0
  495. package/dist/collection/components/mds-quote/pattern.md +108 -0
  496. package/dist/collection/components/mds-radial-menu/AGENTS.md +87 -0
  497. package/dist/collection/components/mds-radial-menu/antipattern.md +104 -0
  498. package/dist/collection/components/mds-radial-menu/documentation.json +581 -0
  499. package/dist/collection/components/mds-radial-menu/pattern.md +150 -0
  500. package/dist/collection/components/mds-radial-menu-item/AGENTS.md +51 -0
  501. package/dist/collection/components/mds-radial-menu-item/antipattern.md +106 -0
  502. package/dist/collection/components/mds-radial-menu-item/documentation.json +294 -0
  503. package/dist/collection/components/mds-radial-menu-item/pattern.md +98 -0
  504. package/dist/collection/components/mds-radial-progress/AGENTS.md +58 -0
  505. package/dist/collection/components/mds-radial-progress/antipattern.md +99 -0
  506. package/dist/collection/components/mds-radial-progress/documentation.json +232 -0
  507. package/dist/collection/components/mds-radial-progress/pattern.md +132 -0
  508. package/dist/collection/components/mds-separator/AGENTS.md +39 -0
  509. package/dist/collection/components/mds-separator/antipattern.md +98 -0
  510. package/dist/collection/components/mds-separator/documentation.json +45 -0
  511. package/dist/collection/components/mds-separator/pattern.md +82 -0
  512. package/dist/collection/components/mds-spinner/AGENTS.md +49 -0
  513. package/dist/collection/components/mds-spinner/antipattern.md +93 -0
  514. package/dist/collection/components/mds-spinner/documentation.json +86 -0
  515. package/dist/collection/components/mds-spinner/pattern.md +102 -0
  516. package/dist/collection/components/mds-status-bar/AGENTS.md +75 -0
  517. package/dist/collection/components/mds-status-bar/antipattern.md +128 -0
  518. package/dist/collection/components/mds-status-bar/documentation.json +262 -0
  519. package/dist/collection/components/mds-status-bar/pattern.md +123 -0
  520. package/dist/collection/components/mds-stepper-bar/AGENTS.md +74 -0
  521. package/dist/collection/components/mds-stepper-bar/antipattern.md +123 -0
  522. package/dist/collection/components/mds-stepper-bar/documentation.json +208 -0
  523. package/dist/collection/components/mds-stepper-bar/pattern.md +182 -0
  524. package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +84 -0
  525. package/dist/collection/components/mds-stepper-bar-item/antipattern.md +115 -0
  526. package/dist/collection/components/mds-stepper-bar-item/documentation.json +453 -0
  527. package/dist/collection/components/mds-stepper-bar-item/pattern.md +203 -0
  528. package/dist/collection/components/mds-tab/AGENTS.md +109 -0
  529. package/dist/collection/components/mds-tab/antipattern.md +164 -0
  530. package/dist/collection/components/mds-tab/documentation.json +495 -0
  531. package/dist/collection/components/mds-tab/pattern.md +201 -0
  532. package/dist/collection/components/mds-tab-bar/AGENTS.md +46 -0
  533. package/dist/collection/components/mds-tab-bar/antipattern.md +105 -0
  534. package/dist/collection/components/mds-tab-bar/documentation.json +71 -0
  535. package/dist/collection/components/mds-tab-bar/pattern.md +87 -0
  536. package/dist/collection/components/mds-tab-bar-item/AGENTS.md +67 -0
  537. package/dist/collection/components/mds-tab-bar-item/antipattern.md +116 -0
  538. package/dist/collection/components/mds-tab-bar-item/documentation.json +210 -0
  539. package/dist/collection/components/mds-tab-bar-item/pattern.md +110 -0
  540. package/dist/collection/components/mds-tab-item/AGENTS.md +82 -0
  541. package/dist/collection/components/mds-tab-item/antipattern.md +138 -0
  542. package/dist/collection/components/mds-tab-item/documentation.json +577 -0
  543. package/dist/collection/components/mds-tab-item/pattern.md +155 -0
  544. package/dist/collection/components/mds-table/AGENTS.md +90 -0
  545. package/dist/collection/components/mds-table/antipattern.md +169 -0
  546. package/dist/collection/components/mds-table/documentation.json +304 -0
  547. package/dist/collection/components/mds-table/pattern.md +288 -0
  548. package/dist/collection/components/mds-table-body/AGENTS.md +55 -0
  549. package/dist/collection/components/mds-table-body/antipattern.md +118 -0
  550. package/dist/collection/components/mds-table-body/documentation.json +122 -0
  551. package/dist/collection/components/mds-table-body/pattern.md +154 -0
  552. package/dist/collection/components/mds-table-cell/AGENTS.md +56 -0
  553. package/dist/collection/components/mds-table-cell/antipattern.md +100 -0
  554. package/dist/collection/components/mds-table-cell/documentation.json +104 -0
  555. package/dist/collection/components/mds-table-cell/pattern.md +168 -0
  556. package/dist/collection/components/mds-table-footer/AGENTS.md +33 -0
  557. package/dist/collection/components/mds-table-footer/antipattern.md +114 -0
  558. package/dist/collection/components/mds-table-footer/documentation.json +43 -0
  559. package/dist/collection/components/mds-table-footer/pattern.md +116 -0
  560. package/dist/collection/components/mds-table-header/AGENTS.md +61 -0
  561. package/dist/collection/components/mds-table-header/antipattern.md +157 -0
  562. package/dist/collection/components/mds-table-header/documentation.json +156 -0
  563. package/dist/collection/components/mds-table-header/pattern.md +158 -0
  564. package/dist/collection/components/mds-table-header-cell/AGENTS.md +51 -0
  565. package/dist/collection/components/mds-table-header-cell/antipattern.md +108 -0
  566. package/dist/collection/components/mds-table-header-cell/documentation.json +158 -0
  567. package/dist/collection/components/mds-table-header-cell/pattern.md +145 -0
  568. package/dist/collection/components/mds-table-row/AGENTS.md +68 -0
  569. package/dist/collection/components/mds-table-row/antipattern.md +142 -0
  570. package/dist/collection/components/mds-table-row/documentation.json +252 -0
  571. package/dist/collection/components/mds-table-row/pattern.md +157 -0
  572. package/dist/collection/components/mds-text/AGENTS.md +64 -0
  573. package/dist/collection/components/mds-text/antipattern.md +113 -0
  574. package/dist/collection/components/mds-text/documentation.json +746 -0
  575. package/dist/collection/components/mds-text/pattern.md +139 -0
  576. package/dist/collection/components/mds-toast/AGENTS.md +78 -0
  577. package/dist/collection/components/mds-toast/antipattern.md +131 -0
  578. package/dist/collection/components/mds-toast/documentation.json +339 -0
  579. package/dist/collection/components/mds-toast/pattern.md +161 -0
  580. package/dist/collection/components/mds-tooltip/AGENTS.md +80 -0
  581. package/dist/collection/components/mds-tooltip/antipattern.md +108 -0
  582. package/dist/collection/components/mds-tooltip/documentation.json +483 -0
  583. package/dist/collection/components/mds-tooltip/pattern.md +128 -0
  584. package/dist/collection/components/mds-tree/AGENTS.md +88 -0
  585. package/dist/collection/components/mds-tree/antipattern.md +153 -0
  586. package/dist/collection/components/mds-tree/documentation.json +472 -0
  587. package/dist/collection/components/mds-tree/pattern.md +198 -0
  588. package/dist/collection/components/mds-tree-item/AGENTS.md +119 -0
  589. package/dist/collection/components/mds-tree-item/antipattern.md +152 -0
  590. package/dist/collection/components/mds-tree-item/documentation.json +646 -0
  591. package/dist/collection/components/mds-tree-item/pattern.md +201 -0
  592. package/dist/collection/components/mds-url-view/AGENTS.md +63 -0
  593. package/dist/collection/components/mds-url-view/antipattern.md +107 -0
  594. package/dist/collection/components/mds-url-view/documentation.json +209 -0
  595. package/dist/collection/components/mds-url-view/pattern.md +106 -0
  596. package/dist/collection/components/mds-usage/AGENTS.md +70 -0
  597. package/dist/collection/components/mds-usage/antipattern.md +87 -0
  598. package/dist/collection/components/mds-usage/documentation.json +156 -0
  599. package/dist/collection/components/mds-usage/pattern.md +117 -0
  600. package/dist/collection/components/mds-video-wall/AGENTS.md +65 -0
  601. package/dist/collection/components/mds-video-wall/antipattern.md +97 -0
  602. package/dist/collection/components/mds-video-wall/documentation.json +316 -0
  603. package/dist/collection/components/mds-video-wall/pattern.md +101 -0
  604. package/dist/collection/components/mds-zero/AGENTS.md +55 -0
  605. package/dist/collection/components/mds-zero/antipattern.md +106 -0
  606. package/dist/collection/components/mds-zero/documentation.json +82 -0
  607. package/dist/collection/components/mds-zero/pattern.md +118 -0
  608. package/dist/components/index.js +1 -1
  609. package/dist/components/mds-accordion-item.js +1 -1
  610. package/dist/components/mds-accordion-timer-item.js +1 -1
  611. package/dist/components/mds-accordion-timer.js +1 -1
  612. package/dist/components/mds-accordion.js +1 -1
  613. package/dist/components/mds-author.js +1 -1
  614. package/dist/components/mds-avatar-stack-item.js +1 -1
  615. package/dist/components/mds-avatar-stack.js +1 -1
  616. package/dist/components/mds-avatar.js +1 -1
  617. package/dist/components/mds-badge.js +1 -1
  618. package/dist/components/mds-banner.js +1 -1
  619. package/dist/components/mds-benchmark-bar.js +1 -1
  620. package/dist/components/mds-bibliography.js +1 -1
  621. package/dist/components/mds-breadcrumb-item.js +1 -1
  622. package/dist/components/mds-breadcrumb.js +1 -1
  623. package/dist/components/mds-button-dropdown.js +1 -1
  624. package/dist/components/mds-button-group.js +1 -1
  625. package/dist/components/mds-button.js +1 -1
  626. package/dist/components/mds-calendar-cell.js +1 -1
  627. package/dist/components/mds-calendar.js +1 -1
  628. package/dist/components/mds-card-content.js +1 -1
  629. package/dist/components/mds-card-footer.js +1 -1
  630. package/dist/components/mds-card-header.js +1 -1
  631. package/dist/components/mds-card-media.js +1 -1
  632. package/dist/components/mds-card.js +1 -1
  633. package/dist/components/mds-chip.js +1 -1
  634. package/dist/components/mds-details.js +1 -1
  635. package/dist/components/mds-dropdown.js +1 -1
  636. package/dist/components/mds-emoji.js +3 -3
  637. package/dist/components/mds-entity.js +1 -1
  638. package/dist/components/mds-file-preview.js +1 -1
  639. package/dist/components/mds-file.js +3 -3
  640. package/dist/components/mds-filter-item.js +1 -1
  641. package/dist/components/mds-filter.js +1 -1
  642. package/dist/components/mds-header-bar.js +1 -1
  643. package/dist/components/mds-header.js +1 -1
  644. package/dist/components/mds-help.js +1 -1
  645. package/dist/components/mds-horizontal-scroll.js +1 -1
  646. package/dist/components/mds-hr.js +1 -1
  647. package/dist/components/mds-icon.js +1 -1
  648. package/dist/components/mds-img.js +1 -1
  649. package/dist/components/mds-input-date-range-preselection.js +1 -1
  650. package/dist/components/mds-input-date-range.js +1 -1
  651. package/dist/components/mds-input-date.js +1 -1
  652. package/dist/components/mds-input-field.js +1 -1
  653. package/dist/components/mds-input-otp.js +1 -1
  654. package/dist/components/mds-input-range.js +1 -1
  655. package/dist/components/mds-input-select.js +1 -1
  656. package/dist/components/mds-input-switch.js +1 -1
  657. package/dist/components/mds-input-tip-item.js +1 -1
  658. package/dist/components/mds-input-tip.js +1 -1
  659. package/dist/components/mds-input-upload.js +1 -1
  660. package/dist/components/mds-input.js +1 -1
  661. package/dist/components/mds-keyboard-key.js +1 -1
  662. package/dist/components/mds-keyboard.js +1 -1
  663. package/dist/components/mds-kpi-item.js +1 -1
  664. package/dist/components/mds-kpi.js +1 -1
  665. package/dist/components/mds-label.js +1 -1
  666. package/dist/components/mds-list-item.js +1 -1
  667. package/dist/components/mds-list.js +1 -1
  668. package/dist/components/mds-mention.js +1 -1
  669. package/dist/components/mds-modal.js +1 -1
  670. package/dist/components/mds-note.js +1 -1
  671. package/dist/components/mds-notification.js +1 -1
  672. package/dist/components/mds-paginator-item.js +1 -1
  673. package/dist/components/mds-paginator.js +1 -1
  674. package/dist/components/mds-policy-ai.js +1 -1
  675. package/dist/components/mds-pref-animation.js +1 -1
  676. package/dist/components/mds-pref-consumption.js +1 -1
  677. package/dist/components/mds-pref-contrast.js +1 -1
  678. package/dist/components/mds-pref-language-item.js +1 -1
  679. package/dist/components/mds-pref-language.js +1 -1
  680. package/dist/components/mds-pref-mode.js +1 -1
  681. package/dist/components/mds-pref-theme-item.js +1 -1
  682. package/dist/components/mds-pref-theme.js +1 -1
  683. package/dist/components/mds-pref.js +1 -1
  684. package/dist/components/mds-price-table-features-cell.js +1 -1
  685. package/dist/components/mds-price-table-features-row.js +1 -1
  686. package/dist/components/mds-price-table-features.js +1 -1
  687. package/dist/components/mds-price-table-header.js +1 -1
  688. package/dist/components/mds-price-table-list-item.js +1 -1
  689. package/dist/components/mds-price-table-list.js +1 -1
  690. package/dist/components/mds-price-table.js +1 -1
  691. package/dist/components/mds-progress.js +1 -1
  692. package/dist/components/mds-push-notification-item.js +1 -1
  693. package/dist/components/mds-push-notification.js +1 -1
  694. package/dist/components/mds-quote.js +1 -1
  695. package/dist/components/mds-radial-menu-item.js +1 -1
  696. package/dist/components/mds-radial-menu.js +1 -1
  697. package/dist/components/mds-radial-progress.js +1 -1
  698. package/dist/components/mds-separator.js +1 -1
  699. package/dist/components/mds-spinner.js +1 -1
  700. package/dist/components/mds-status-bar.js +1 -1
  701. package/dist/components/mds-stepper-bar-item.js +1 -1
  702. package/dist/components/mds-stepper-bar.js +1 -1
  703. package/dist/components/mds-tab-bar-item.js +1 -1
  704. package/dist/components/mds-tab-bar.js +1 -1
  705. package/dist/components/mds-tab-item.js +1 -1
  706. package/dist/components/mds-tab.js +1 -1
  707. package/dist/components/mds-table-body.js +1 -1
  708. package/dist/components/mds-table-cell.js +1 -1
  709. package/dist/components/mds-table-footer.js +1 -1
  710. package/dist/components/mds-table-header-cell.js +1 -1
  711. package/dist/components/mds-table-header.js +1 -1
  712. package/dist/components/mds-table-row.js +1 -1
  713. package/dist/components/mds-table.js +1 -1
  714. package/dist/components/mds-text.js +1 -1
  715. package/dist/components/mds-toast.js +1 -1
  716. package/dist/components/mds-tooltip.js +1 -1
  717. package/dist/components/mds-tree-item.js +1 -1
  718. package/dist/components/mds-tree.js +1 -1
  719. package/dist/components/mds-url-view.js +1 -1
  720. package/dist/components/mds-usage.js +1 -1
  721. package/dist/components/mds-video-wall.js +1 -1
  722. package/dist/components/mds-zero.js +1 -1
  723. package/dist/components/p--miH951G.js +5 -0
  724. package/dist/components/p-1aH7xiMs.js +1 -0
  725. package/dist/components/p-B05zwjTY.js +1 -0
  726. package/dist/components/p-BOu_NOgd.js +1 -0
  727. package/dist/components/p-BTpjOy0A.js +1 -0
  728. package/dist/components/p-BVw5aqzn.js +1 -0
  729. package/dist/components/p-BW24ByN-.js +1 -0
  730. package/dist/components/p-BWpSxp3h.js +1 -0
  731. package/dist/components/p-BXPIlPIF.js +1 -0
  732. package/dist/components/p-BzvYQBdf.js +1 -0
  733. package/dist/components/p-C3Sn8bRc.js +1 -0
  734. package/dist/components/p-CGkSDkOY.js +1 -0
  735. package/dist/components/p-CIcshx6K.js +1 -0
  736. package/dist/components/p-CKS4r32k.js +1 -0
  737. package/dist/components/p-COkF_8bh.js +1 -0
  738. package/dist/components/p-CmHMhHMt.js +1 -0
  739. package/dist/components/p-Cnt6G6GK.js +1 -0
  740. package/dist/components/p-CsL9U6eU.js +1 -0
  741. package/dist/components/p-Cyj1BFxx.js +1 -0
  742. package/dist/components/p-DQqUzCGR.js +1 -0
  743. package/dist/components/p-DR46G4-6.js +1 -0
  744. package/dist/components/p-DcW0iRnZ.js +1 -0
  745. package/dist/components/p-DebgFlHq.js +1 -0
  746. package/dist/components/p-DmPLOktp.js +1 -0
  747. package/dist/components/p-Dpf8NWF9.js +1 -0
  748. package/dist/components/p-DwA-5c8G.js +1 -0
  749. package/dist/components/p-Dws02cT2.js +8 -0
  750. package/dist/components/p-K3QNYRhf.js +1 -0
  751. package/dist/components/p-PQ_EO5-U.js +1 -0
  752. package/dist/components/p-akEzGmDD.js +1 -0
  753. package/dist/components/p-bDVBqkn0.js +1 -0
  754. package/dist/components/p-faViX-qz.js +1 -0
  755. package/dist/components/p-pBvN1uAc.js +3 -0
  756. package/dist/components/p-wI0alRSO.js +1 -0
  757. package/dist/components/p-x_c_51aL.js +1 -0
  758. package/dist/components/p-zHpei4x6.js +1 -0
  759. package/dist/documentation.json +618 -360
  760. package/dist/esm/floating-controller-BTYkH_Ih.js +366 -0
  761. package/dist/esm/form-wI0alRSO.js +42 -0
  762. package/dist/esm/index-BhCZiGfL.js +196 -0
  763. package/dist/esm/index-BxPbQB28.js +5149 -0
  764. package/dist/esm/index.js +1 -1
  765. package/dist/esm/loader.js +3 -3
  766. package/dist/esm/locale-CVJm6KFD.js +814 -0
  767. package/dist/esm/magma-components.js +3 -3
  768. package/dist/esm/mds-accordion-item.entry.js +2 -2
  769. package/dist/esm/mds-accordion-timer-item.entry.js +2 -2
  770. package/dist/esm/mds-accordion-timer.entry.js +1 -1
  771. package/dist/esm/mds-accordion.entry.js +2 -2
  772. package/dist/esm/mds-author.entry.js +1 -1
  773. package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
  774. package/dist/esm/mds-avatar-stack.entry.js +1 -1
  775. package/dist/esm/mds-avatar.entry.js +2 -2
  776. package/dist/esm/mds-badge.entry.js +2 -2
  777. package/dist/esm/mds-banner_3.entry.js +3 -3
  778. package/dist/esm/mds-benchmark-bar.entry.js +1 -1
  779. package/dist/esm/mds-bibliography.entry.js +1 -1
  780. package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
  781. package/dist/esm/mds-breadcrumb.entry.js +3 -3
  782. package/dist/esm/mds-button-dropdown.entry.js +38 -4
  783. package/dist/esm/mds-button-group.entry.js +1 -1
  784. package/dist/esm/mds-button_3.entry.js +7 -6
  785. package/dist/esm/mds-calendar_2.entry.js +2 -2
  786. package/dist/esm/mds-card-content.entry.js +1 -1
  787. package/dist/esm/mds-card-footer.entry.js +1 -1
  788. package/dist/esm/mds-card-header.entry.js +1 -1
  789. package/dist/esm/mds-card-media.entry.js +1 -1
  790. package/dist/esm/mds-card.entry.js +2 -2
  791. package/dist/esm/mds-details.entry.js +2 -2
  792. package/dist/esm/mds-dropdown.entry.js +3 -3
  793. package/dist/esm/mds-emoji.entry.js +2 -2
  794. package/dist/esm/mds-entity.entry.js +2 -2
  795. package/dist/esm/mds-file-preview.entry.js +3 -3
  796. package/dist/esm/mds-file.entry.js +3 -3
  797. package/dist/esm/mds-filter-item.entry.js +2 -2
  798. package/dist/esm/mds-filter.entry.js +2 -2
  799. package/dist/esm/mds-header-bar.entry.js +2 -2
  800. package/dist/esm/mds-header.entry.js +2 -2
  801. package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
  802. package/dist/esm/mds-hr.entry.js +2 -2
  803. package/dist/esm/mds-img.entry.js +3 -3
  804. package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
  805. package/dist/esm/mds-input-date-range.entry.js +89 -9
  806. package/dist/esm/mds-input-date.entry.js +124 -27
  807. package/dist/esm/mds-input-field.entry.js +1 -1
  808. package/dist/esm/mds-input-otp.entry.js +65 -19
  809. package/dist/esm/mds-input-range.entry.js +32 -16
  810. package/dist/esm/mds-input-select.entry.js +159 -30
  811. package/dist/esm/mds-input-switch_2.entry.js +63 -21
  812. package/dist/esm/mds-input-tip_2.entry.js +3 -3
  813. package/dist/esm/mds-input-upload.entry.js +136 -67
  814. package/dist/esm/mds-input.entry.js +320 -36
  815. package/dist/esm/mds-keyboard-key.entry.js +3 -3
  816. package/dist/esm/mds-keyboard.entry.js +3 -3
  817. package/dist/esm/mds-kpi-item.entry.js +2 -2
  818. package/dist/esm/mds-kpi.entry.js +1 -1
  819. package/dist/esm/mds-label.entry.js +3 -3
  820. package/dist/esm/mds-list-item.entry.js +2 -2
  821. package/dist/esm/mds-list.entry.js +1 -1
  822. package/dist/esm/mds-mention.entry.js +3 -3
  823. package/dist/esm/mds-modal.entry.js +2 -2
  824. package/dist/esm/mds-note.entry.js +3 -3
  825. package/dist/esm/mds-notification.entry.js +2 -2
  826. package/dist/esm/mds-paginator-item.entry.js +2 -2
  827. package/dist/esm/mds-paginator.entry.js +2 -2
  828. package/dist/esm/mds-policy-ai.entry.js +3 -3
  829. package/dist/esm/mds-pref-animation.entry.js +29 -5
  830. package/dist/esm/mds-pref-consumption.entry.js +29 -5
  831. package/dist/esm/mds-pref-contrast.entry.js +27 -6
  832. package/dist/esm/mds-pref-language-item.entry.js +3 -3
  833. package/dist/esm/mds-pref-language.entry.js +3 -3
  834. package/dist/esm/mds-pref-mode.entry.js +30 -7
  835. package/dist/esm/mds-pref-theme-item.entry.js +1 -1
  836. package/dist/esm/mds-pref-theme.entry.js +3 -3
  837. package/dist/esm/mds-pref.entry.js +10 -5
  838. package/dist/esm/mds-price-table-features-cell.entry.js +2 -2
  839. package/dist/esm/mds-price-table-features-row.entry.js +2 -2
  840. package/dist/esm/mds-price-table-features.entry.js +2 -2
  841. package/dist/esm/mds-price-table-header.entry.js +1 -1
  842. package/dist/esm/mds-price-table-list-item.entry.js +1 -1
  843. package/dist/esm/mds-price-table-list.entry.js +2 -2
  844. package/dist/esm/mds-price-table.entry.js +1 -1
  845. package/dist/esm/mds-progress_2.entry.js +2 -2
  846. package/dist/esm/mds-push-notification-item.entry.js +3 -3
  847. package/dist/esm/mds-push-notification.entry.js +2 -2
  848. package/dist/esm/mds-quote.entry.js +2 -2
  849. package/dist/esm/mds-radial-menu-item.entry.js +1 -1
  850. package/dist/esm/mds-radial-menu.entry.js +2 -2
  851. package/dist/esm/mds-separator.entry.js +2 -2
  852. package/dist/esm/mds-status-bar.entry.js +2 -2
  853. package/dist/esm/mds-stepper-bar-item.entry.js +3 -3
  854. package/dist/esm/mds-stepper-bar.entry.js +1 -1
  855. package/dist/esm/mds-tab-bar-item.entry.js +2 -2
  856. package/dist/esm/mds-tab-bar.entry.js +2 -2
  857. package/dist/esm/mds-tab_2.entry.js +2 -2
  858. package/dist/esm/mds-table-body.entry.js +2 -2
  859. package/dist/esm/mds-table-footer.entry.js +2 -2
  860. package/dist/esm/mds-table-header-cell.entry.js +2 -2
  861. package/dist/esm/mds-table-header.entry.js +3 -3
  862. package/dist/esm/mds-table-row.entry.js +3 -3
  863. package/dist/esm/mds-table.entry.js +3 -3
  864. package/dist/esm/mds-text.entry.js +2 -2
  865. package/dist/esm/mds-toast.entry.js +2 -2
  866. package/dist/esm/mds-tooltip.entry.js +3 -3
  867. package/dist/esm/mds-tree-item.entry.js +3 -3
  868. package/dist/esm/mds-tree.entry.js +1 -1
  869. package/dist/esm/mds-url-view.entry.js +3 -3
  870. package/dist/esm/mds-usage.entry.js +3 -3
  871. package/dist/esm/mds-video-wall.entry.js +1 -1
  872. package/dist/esm/mds-zero.entry.js +2 -2
  873. package/dist/esm/preference-DNNqH7BU.js +385 -0
  874. package/dist/esm-es5/floating-controller-BTYkH_Ih.js +66 -0
  875. package/dist/esm-es5/form-wI0alRSO.js +16 -0
  876. package/dist/esm-es5/index-BhCZiGfL.js +10 -0
  877. package/dist/esm-es5/index-BxPbQB28.js +371 -0
  878. package/dist/esm-es5/index.js +1 -1
  879. package/dist/esm-es5/loader.js +1 -1
  880. package/dist/esm-es5/locale-CVJm6KFD.js +230 -0
  881. package/dist/esm-es5/magma-components.js +2 -2
  882. package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
  883. package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
  884. package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
  885. package/dist/esm-es5/mds-accordion.entry.js +1 -1
  886. package/dist/esm-es5/mds-author.entry.js +1 -1
  887. package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
  888. package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
  889. package/dist/esm-es5/mds-avatar.entry.js +2 -2
  890. package/dist/esm-es5/mds-badge.entry.js +1 -1
  891. package/dist/esm-es5/mds-banner_3.entry.js +1 -1
  892. package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
  893. package/dist/esm-es5/mds-bibliography.entry.js +1 -1
  894. package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
  895. package/dist/esm-es5/mds-breadcrumb.entry.js +2 -2
  896. package/dist/esm-es5/mds-button-dropdown.entry.js +10 -4
  897. package/dist/esm-es5/mds-button-group.entry.js +1 -1
  898. package/dist/esm-es5/mds-button_3.entry.js +3 -3
  899. package/dist/esm-es5/mds-calendar_2.entry.js +1 -1
  900. package/dist/esm-es5/mds-card-content.entry.js +1 -1
  901. package/dist/esm-es5/mds-card-footer.entry.js +1 -1
  902. package/dist/esm-es5/mds-card-header.entry.js +1 -1
  903. package/dist/esm-es5/mds-card-media.entry.js +1 -1
  904. package/dist/esm-es5/mds-card.entry.js +1 -1
  905. package/dist/esm-es5/mds-details.entry.js +1 -1
  906. package/dist/esm-es5/mds-dropdown.entry.js +1 -1
  907. package/dist/esm-es5/mds-emoji.entry.js +1 -1
  908. package/dist/esm-es5/mds-entity.entry.js +1 -1
  909. package/dist/esm-es5/mds-file-preview.entry.js +11 -11
  910. package/dist/esm-es5/mds-file.entry.js +11 -11
  911. package/dist/esm-es5/mds-filter-item.entry.js +1 -1
  912. package/dist/esm-es5/mds-filter.entry.js +1 -1
  913. package/dist/esm-es5/mds-header-bar.entry.js +1 -1
  914. package/dist/esm-es5/mds-header.entry.js +1 -1
  915. package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
  916. package/dist/esm-es5/mds-hr.entry.js +1 -1
  917. package/dist/esm-es5/mds-img.entry.js +1 -1
  918. package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
  919. package/dist/esm-es5/mds-input-date-range.entry.js +33 -6
  920. package/dist/esm-es5/mds-input-date.entry.js +47 -7
  921. package/dist/esm-es5/mds-input-field.entry.js +1 -1
  922. package/dist/esm-es5/mds-input-otp.entry.js +21 -4
  923. package/dist/esm-es5/mds-input-range.entry.js +15 -7
  924. package/dist/esm-es5/mds-input-select.entry.js +37 -6
  925. package/dist/esm-es5/mds-input-switch_2.entry.js +24 -4
  926. package/dist/esm-es5/mds-input-tip_2.entry.js +1 -1
  927. package/dist/esm-es5/mds-input-upload.entry.js +42 -18
  928. package/dist/esm-es5/mds-input.entry.js +105 -22
  929. package/dist/esm-es5/mds-keyboard-key.entry.js +1 -1
  930. package/dist/esm-es5/mds-keyboard.entry.js +1 -1
  931. package/dist/esm-es5/mds-kpi-item.entry.js +1 -1
  932. package/dist/esm-es5/mds-kpi.entry.js +1 -1
  933. package/dist/esm-es5/mds-label.entry.js +1 -1
  934. package/dist/esm-es5/mds-list-item.entry.js +1 -1
  935. package/dist/esm-es5/mds-list.entry.js +1 -1
  936. package/dist/esm-es5/mds-mention.entry.js +1 -1
  937. package/dist/esm-es5/mds-modal.entry.js +1 -1
  938. package/dist/esm-es5/mds-note.entry.js +1 -1
  939. package/dist/esm-es5/mds-notification.entry.js +1 -1
  940. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  941. package/dist/esm-es5/mds-paginator.entry.js +1 -1
  942. package/dist/esm-es5/mds-policy-ai.entry.js +1 -1
  943. package/dist/esm-es5/mds-pref-animation.entry.js +7 -1
  944. package/dist/esm-es5/mds-pref-consumption.entry.js +7 -1
  945. package/dist/esm-es5/mds-pref-contrast.entry.js +8 -2
  946. package/dist/esm-es5/mds-pref-language-item.entry.js +1 -1
  947. package/dist/esm-es5/mds-pref-language.entry.js +1 -1
  948. package/dist/esm-es5/mds-pref-mode.entry.js +10 -2
  949. package/dist/esm-es5/mds-pref-theme-item.entry.js +1 -1
  950. package/dist/esm-es5/mds-pref-theme.entry.js +1 -1
  951. package/dist/esm-es5/mds-pref.entry.js +6 -3
  952. package/dist/esm-es5/mds-price-table-features-cell.entry.js +1 -1
  953. package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
  954. package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
  955. package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
  956. package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
  957. package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
  958. package/dist/esm-es5/mds-price-table.entry.js +1 -1
  959. package/dist/esm-es5/mds-progress_2.entry.js +1 -1
  960. package/dist/esm-es5/mds-push-notification-item.entry.js +1 -1
  961. package/dist/esm-es5/mds-push-notification.entry.js +1 -1
  962. package/dist/esm-es5/mds-quote.entry.js +1 -1
  963. package/dist/esm-es5/mds-radial-menu-item.entry.js +1 -1
  964. package/dist/esm-es5/mds-radial-menu.entry.js +1 -1
  965. package/dist/esm-es5/mds-separator.entry.js +1 -1
  966. package/dist/esm-es5/mds-status-bar.entry.js +1 -1
  967. package/dist/esm-es5/mds-stepper-bar-item.entry.js +1 -1
  968. package/dist/esm-es5/mds-stepper-bar.entry.js +1 -1
  969. package/dist/esm-es5/mds-tab-bar-item.entry.js +1 -1
  970. package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
  971. package/dist/esm-es5/mds-tab_2.entry.js +1 -1
  972. package/dist/esm-es5/mds-table-body.entry.js +1 -1
  973. package/dist/esm-es5/mds-table-footer.entry.js +1 -1
  974. package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
  975. package/dist/esm-es5/mds-table-header.entry.js +1 -1
  976. package/dist/esm-es5/mds-table-row.entry.js +1 -1
  977. package/dist/esm-es5/mds-table.entry.js +1 -1
  978. package/dist/esm-es5/mds-text.entry.js +1 -1
  979. package/dist/esm-es5/mds-toast.entry.js +1 -1
  980. package/dist/esm-es5/mds-tooltip.entry.js +1 -1
  981. package/dist/esm-es5/mds-tree-item.entry.js +1 -1
  982. package/dist/esm-es5/mds-tree.entry.js +1 -1
  983. package/dist/esm-es5/mds-url-view.entry.js +1 -1
  984. package/dist/esm-es5/mds-usage.entry.js +1 -1
  985. package/dist/esm-es5/mds-video-wall.entry.js +1 -1
  986. package/dist/esm-es5/mds-zero.entry.js +1 -1
  987. package/dist/esm-es5/preference-DNNqH7BU.js +58 -0
  988. package/dist/hydrate/index.js +1431 -309
  989. package/dist/hydrate/index.mjs +1431 -309
  990. package/dist/magma-components/index.esm.js +1 -1
  991. package/dist/magma-components/magma-components.esm.js +1 -1
  992. package/dist/magma-components/magma-components.js +1 -1
  993. package/dist/magma-components/p-00e47e49.system.entry.js +14 -0
  994. package/dist/magma-components/p-0141c597.system.entry.js +15 -0
  995. package/dist/magma-components/p-021f96f8.entry.js +1 -0
  996. package/dist/magma-components/p-0255924b.system.entry.js +22 -0
  997. package/dist/magma-components/p-03c2060d.entry.js +1 -0
  998. package/dist/magma-components/p-05014374.entry.js +1 -0
  999. package/dist/magma-components/p-05f73994.entry.js +1 -0
  1000. package/dist/magma-components/p-0646392d.entry.js +1 -0
  1001. package/dist/magma-components/p-0a38e4ce.system.entry.js +1 -0
  1002. package/dist/magma-components/p-0a551e86.entry.js +1 -0
  1003. package/dist/magma-components/p-0a904a12.entry.js +1 -0
  1004. package/dist/magma-components/p-0a9fb138.system.entry.js +1 -0
  1005. package/dist/magma-components/p-106f39c6.entry.js +1 -0
  1006. package/dist/magma-components/p-10ad73e3.system.entry.js +19 -0
  1007. package/dist/magma-components/p-1150ffb8.system.entry.js +10 -0
  1008. package/dist/magma-components/p-12c5ae26.entry.js +1 -0
  1009. package/dist/magma-components/p-13a1d35f.entry.js +1 -0
  1010. package/dist/magma-components/p-15d4846d.entry.js +1 -0
  1011. package/dist/magma-components/p-1673225e.system.entry.js +8 -0
  1012. package/dist/magma-components/p-188f4b1d.system.entry.js +7 -0
  1013. package/dist/magma-components/p-18c8628c.entry.js +1 -0
  1014. package/dist/magma-components/p-1be45c75.entry.js +1 -0
  1015. package/dist/magma-components/p-1cb495d3.entry.js +1 -0
  1016. package/dist/magma-components/p-1e3d89cd.system.entry.js +1 -0
  1017. package/dist/magma-components/p-1e700f0a.entry.js +1 -0
  1018. package/dist/magma-components/p-20e4f7dd.system.entry.js +15 -0
  1019. package/dist/magma-components/p-21865dd2.entry.js +1 -0
  1020. package/dist/magma-components/p-218d8254.system.entry.js +1 -0
  1021. package/dist/magma-components/p-21c46e74.system.entry.js +4 -0
  1022. package/dist/magma-components/p-231b604f.system.entry.js +1 -0
  1023. package/dist/magma-components/p-2507f5cf.entry.js +1 -0
  1024. package/dist/magma-components/p-2723caa7.system.entry.js +13 -0
  1025. package/dist/magma-components/p-277444bc.entry.js +1 -0
  1026. package/dist/magma-components/p-283b0548.system.entry.js +102 -0
  1027. package/dist/magma-components/p-2c44c961.system.entry.js +10 -0
  1028. package/dist/magma-components/p-2ec0db8e.entry.js +1 -0
  1029. package/dist/magma-components/p-2f520704.entry.js +1 -0
  1030. package/dist/magma-components/p-30c3872d.entry.js +1 -0
  1031. package/dist/magma-components/p-314abfba.entry.js +1 -0
  1032. package/dist/magma-components/p-322a5452.entry.js +1 -0
  1033. package/dist/magma-components/p-3231a6a3.entry.js +1 -0
  1034. package/dist/magma-components/p-34401d35.entry.js +1 -0
  1035. package/dist/magma-components/p-35aa29c5.entry.js +1 -0
  1036. package/dist/magma-components/p-35ee2d77.entry.js +1 -0
  1037. package/dist/magma-components/p-36a67b51.entry.js +1 -0
  1038. package/dist/magma-components/p-3a1339bb.system.entry.js +4 -0
  1039. package/dist/magma-components/p-3d56e3f4.entry.js +1 -0
  1040. package/dist/magma-components/p-3e0eed90.system.entry.js +12 -0
  1041. package/dist/magma-components/p-3ecade3c.system.entry.js +11 -0
  1042. package/dist/magma-components/p-3eefca33.system.entry.js +16 -0
  1043. package/dist/magma-components/p-4211ce6c.system.entry.js +1 -0
  1044. package/dist/magma-components/p-436f9b27.system.entry.js +38 -0
  1045. package/dist/magma-components/p-439c9ce3.system.entry.js +10 -0
  1046. package/dist/magma-components/p-44e2a945.system.entry.js +1 -0
  1047. package/dist/magma-components/p-4658154f.entry.js +1 -0
  1048. package/dist/magma-components/p-474047fa.system.entry.js +10 -0
  1049. package/dist/magma-components/p-474c5d53.system.entry.js +11 -0
  1050. package/dist/magma-components/p-493fb2f4.system.entry.js +7 -0
  1051. package/dist/magma-components/p-4ac94b84.system.entry.js +32 -0
  1052. package/dist/magma-components/p-4c73f14b.system.entry.js +14 -0
  1053. package/dist/magma-components/p-4cb88b06.system.entry.js +1 -0
  1054. package/dist/magma-components/p-4dd6a39b.entry.js +1 -0
  1055. package/dist/magma-components/p-4e7f21ac.entry.js +1 -0
  1056. package/dist/magma-components/p-4f14a166.entry.js +1 -0
  1057. package/dist/magma-components/p-50ea11c9.system.entry.js +32 -0
  1058. package/dist/magma-components/p-514d0fcb.entry.js +1 -0
  1059. package/dist/magma-components/p-52793bdb.system.entry.js +1 -0
  1060. package/dist/magma-components/p-5299f709.system.entry.js +26 -0
  1061. package/dist/magma-components/p-57762bae.entry.js +1 -0
  1062. package/dist/magma-components/p-577db922.entry.js +1 -0
  1063. package/dist/magma-components/p-58b82b40.system.entry.js +10 -0
  1064. package/dist/magma-components/p-5a7267e8.system.entry.js +4 -0
  1065. package/dist/magma-components/p-5a911e7b.system.entry.js +13 -0
  1066. package/dist/magma-components/p-5ac9e2f4.entry.js +1 -0
  1067. package/dist/magma-components/p-5c94e0c2.system.entry.js +7 -0
  1068. package/dist/magma-components/p-5ccf493c.system.entry.js +7 -0
  1069. package/dist/magma-components/p-5d119459.entry.js +1 -0
  1070. package/dist/magma-components/p-5f1132b8.entry.js +1 -0
  1071. package/dist/magma-components/p-5fd04ce1.entry.js +1 -0
  1072. package/dist/magma-components/p-60f67c37.entry.js +1 -0
  1073. package/dist/magma-components/p-61bedbe7.system.entry.js +68 -0
  1074. package/dist/magma-components/p-632bc44c.entry.js +1 -0
  1075. package/dist/magma-components/p-64f78149.system.entry.js +1 -0
  1076. package/dist/magma-components/p-69c21eae.entry.js +1 -0
  1077. package/dist/magma-components/p-6a6326c6.entry.js +1 -0
  1078. package/dist/magma-components/p-6c18c40e.system.entry.js +89 -0
  1079. package/dist/magma-components/p-6c800411.entry.js +1 -0
  1080. package/dist/magma-components/p-6e03b83a.entry.js +1 -0
  1081. package/dist/magma-components/p-6ed05d99.entry.js +1 -0
  1082. package/dist/magma-components/p-6f74cdf5.system.entry.js +12 -0
  1083. package/dist/magma-components/p-6fdb3fe7.system.entry.js +27 -0
  1084. package/dist/magma-components/p-6ff8be3e.system.entry.js +30 -0
  1085. package/dist/magma-components/p-7-TP6wnI.js +1 -0
  1086. package/dist/magma-components/p-73fde271.system.entry.js +72 -0
  1087. package/dist/magma-components/p-74b51db8.entry.js +1 -0
  1088. package/dist/magma-components/p-76ecad2f.entry.js +18 -0
  1089. package/dist/magma-components/p-774ce1d2.entry.js +1 -0
  1090. package/dist/magma-components/p-77615947.system.entry.js +1 -0
  1091. package/dist/magma-components/p-7770b989.system.entry.js +1 -0
  1092. package/dist/magma-components/p-7787ebaf.system.entry.js +1 -0
  1093. package/dist/magma-components/p-789c1b93.system.entry.js +1 -0
  1094. package/dist/magma-components/p-7927010f.system.entry.js +25 -0
  1095. package/dist/magma-components/p-79421ee1.system.entry.js +11 -0
  1096. package/dist/magma-components/p-7ab15184.entry.js +1 -0
  1097. package/dist/magma-components/p-7afec7ee.entry.js +1 -0
  1098. package/dist/magma-components/p-7e085c82.entry.js +1 -0
  1099. package/dist/magma-components/p-7e7cf986.system.entry.js +7 -0
  1100. package/dist/magma-components/p-7ffda4f5.entry.js +1 -0
  1101. package/dist/magma-components/p-809adece.system.entry.js +17 -0
  1102. package/dist/magma-components/p-8183b7ed.entry.js +1 -0
  1103. package/dist/magma-components/p-832883c4.entry.js +1 -0
  1104. package/dist/magma-components/p-83394280.system.entry.js +32 -0
  1105. package/dist/magma-components/p-835fc007.entry.js +1 -0
  1106. package/dist/magma-components/p-837fbbf7.system.entry.js +1 -0
  1107. package/dist/magma-components/p-84645c60.system.entry.js +1 -0
  1108. package/dist/magma-components/p-86f4b6eb.system.entry.js +20 -0
  1109. package/dist/magma-components/p-87026d34.entry.js +1 -0
  1110. package/dist/magma-components/p-87faaa8e.system.entry.js +16 -0
  1111. package/dist/magma-components/p-88287207.system.entry.js +13 -0
  1112. package/dist/magma-components/p-883c223a.system.entry.js +4 -0
  1113. package/dist/magma-components/p-88f99a4f.system.entry.js +81 -0
  1114. package/dist/magma-components/p-8a3d2259.system.entry.js +17 -0
  1115. package/dist/magma-components/p-8aafbfdf.system.entry.js +49 -0
  1116. package/dist/magma-components/p-8afc9bc4.system.entry.js +2838 -0
  1117. package/dist/magma-components/p-8ca1d30d.system.entry.js +1 -0
  1118. package/dist/magma-components/p-8ccd187a.entry.js +1 -0
  1119. package/dist/magma-components/p-8d53bd61.system.entry.js +4 -0
  1120. package/dist/magma-components/p-8yWTOQiz.js +1 -0
  1121. package/dist/magma-components/p-90993b0b.system.entry.js +68 -0
  1122. package/dist/magma-components/p-915c5f06.system.entry.js +47 -0
  1123. package/dist/magma-components/p-91c4015f.system.entry.js +4 -0
  1124. package/dist/magma-components/p-91ff1560.system.entry.js +7 -0
  1125. package/dist/magma-components/p-92d9b537.entry.js +1 -0
  1126. package/dist/magma-components/p-932620b6.entry.js +1 -0
  1127. package/dist/magma-components/p-9344a234.entry.js +1 -0
  1128. package/dist/magma-components/p-93d39066.entry.js +1 -0
  1129. package/dist/magma-components/p-97f6166e.system.entry.js +28 -0
  1130. package/dist/magma-components/p-9d1cdb42.system.entry.js +15 -0
  1131. package/dist/magma-components/p-9dcfc247.entry.js +1 -0
  1132. package/dist/magma-components/p-9eb1e154.system.entry.js +14 -0
  1133. package/dist/magma-components/p-9fe14430.system.entry.js +7 -0
  1134. package/dist/magma-components/p-BPNsbMrg.system.js +67 -0
  1135. package/dist/magma-components/p-BS7eEvwu.system.js +17 -0
  1136. package/dist/magma-components/p-BTF_aRDG.system.js +231 -0
  1137. package/dist/magma-components/p-BpVYIPkx.js +1 -0
  1138. package/dist/magma-components/p-BxPbQB28.js +3 -0
  1139. package/dist/magma-components/p-CdsZyFQ-.system.js +10 -0
  1140. package/dist/magma-components/p-D7BrzK-C.system.js +90 -0
  1141. package/dist/magma-components/p-DaONbL_w.system.js +162 -0
  1142. package/dist/magma-components/p-Kv1yahtR.js +5 -0
  1143. package/dist/magma-components/p-ZDRIVCAt.system.js +5 -0
  1144. package/dist/magma-components/p-a41e52f7.entry.js +1 -0
  1145. package/dist/magma-components/p-a462aadd.entry.js +1 -0
  1146. package/dist/magma-components/p-a4a83a63.entry.js +1 -0
  1147. package/dist/magma-components/p-a64bbb36.system.entry.js +40 -0
  1148. package/dist/magma-components/p-a6af4083.system.entry.js +32 -0
  1149. package/dist/magma-components/p-a7e7f2c0.entry.js +1 -0
  1150. package/dist/magma-components/p-aba96089.entry.js +1 -0
  1151. package/dist/magma-components/p-ac81f63a.system.entry.js +913 -0
  1152. package/dist/magma-components/p-aed8b119.entry.js +1 -0
  1153. package/dist/magma-components/p-b24b5179.entry.js +1 -0
  1154. package/dist/magma-components/p-b295e4ab.system.entry.js +1 -0
  1155. package/dist/magma-components/p-b2c62b6e.system.entry.js +7 -0
  1156. package/dist/magma-components/p-b431ca8a.entry.js +1 -0
  1157. package/dist/magma-components/p-b5559b28.system.entry.js +1 -0
  1158. package/dist/magma-components/p-b626c69f.system.entry.js +1 -0
  1159. package/dist/magma-components/p-b897c97d.entry.js +1 -0
  1160. package/dist/magma-components/p-bab4c75e.system.entry.js +45 -0
  1161. package/dist/magma-components/p-bba04b08.system.entry.js +14 -0
  1162. package/dist/magma-components/p-bc53c19e.entry.js +8 -0
  1163. package/dist/magma-components/p-bf2fe278.system.entry.js +16 -0
  1164. package/dist/magma-components/p-c0136138.entry.js +1 -0
  1165. package/dist/magma-components/p-c166ec50.system.entry.js +47 -0
  1166. package/dist/magma-components/p-c22887f7.system.entry.js +90 -0
  1167. package/dist/magma-components/p-c28fce23.entry.js +1 -0
  1168. package/dist/magma-components/p-c34d9e61.system.entry.js +1 -0
  1169. package/dist/magma-components/p-c48bad95.entry.js +1 -0
  1170. package/dist/magma-components/p-cb2c5f1b.entry.js +1 -0
  1171. package/dist/magma-components/p-cc0c6ae7.entry.js +1 -0
  1172. package/dist/magma-components/p-cc2a09f2.system.entry.js +16 -0
  1173. package/dist/magma-components/p-cc9d9458.entry.js +1 -0
  1174. package/dist/magma-components/p-ccb14076.system.entry.js +217 -0
  1175. package/dist/magma-components/p-ccb6898a.system.entry.js +4 -0
  1176. package/dist/magma-components/p-d04ac65d.entry.js +1 -0
  1177. package/dist/magma-components/p-d07d227b.system.entry.js +8 -0
  1178. package/dist/magma-components/p-d1faf129.entry.js +1 -0
  1179. package/dist/magma-components/p-d282a929.entry.js +1 -0
  1180. package/dist/magma-components/p-d2f134ac.entry.js +1 -0
  1181. package/dist/magma-components/p-d47df503.system.entry.js +37 -0
  1182. package/dist/magma-components/p-d5bd6bef.entry.js +1 -0
  1183. package/dist/magma-components/p-d9804d2f.entry.js +1 -0
  1184. package/dist/magma-components/p-dc06b29e.entry.js +1 -0
  1185. package/dist/magma-components/p-dc59b764.entry.js +1 -0
  1186. package/dist/magma-components/p-dc7bada4.entry.js +1 -0
  1187. package/dist/magma-components/p-dcc3be64.system.entry.js +7 -0
  1188. package/dist/magma-components/p-dd58f9ee.entry.js +18 -0
  1189. package/dist/magma-components/p-de091be7.system.entry.js +7 -0
  1190. package/dist/magma-components/p-dfe8552c.system.entry.js +11 -0
  1191. package/dist/magma-components/p-e1e69217.system.entry.js +1 -0
  1192. package/dist/magma-components/p-e213640b.entry.js +1 -0
  1193. package/dist/magma-components/p-e2ef1d6f.entry.js +1 -0
  1194. package/dist/magma-components/p-e2ef5996.entry.js +1 -0
  1195. package/dist/magma-components/p-e7751639.entry.js +1 -0
  1196. package/dist/magma-components/p-e887a14c.entry.js +1 -0
  1197. package/dist/magma-components/p-e8cd2b93.system.entry.js +4 -0
  1198. package/dist/magma-components/p-e8ed096b.entry.js +1 -0
  1199. package/dist/magma-components/p-eaff7300.entry.js +1 -0
  1200. package/dist/magma-components/p-eb681207.system.entry.js +1 -0
  1201. package/dist/magma-components/p-ec9cc7b9.entry.js +1 -0
  1202. package/dist/magma-components/p-eca99a0a.system.entry.js +1 -0
  1203. package/dist/magma-components/p-ecd3c27f.entry.js +1 -0
  1204. package/dist/magma-components/p-ed897f9f.entry.js +1 -0
  1205. package/dist/magma-components/p-ee1e7f07.system.entry.js +3 -0
  1206. package/dist/magma-components/p-ef3424e3.entry.js +1 -0
  1207. package/dist/magma-components/p-f29a059d.system.entry.js +15 -0
  1208. package/dist/magma-components/p-f5bb8c0c.entry.js +1 -0
  1209. package/dist/magma-components/p-f654eafe.entry.js +1 -0
  1210. package/dist/magma-components/p-f733ae92.system.entry.js +16 -0
  1211. package/dist/magma-components/p-f8eb19b3.entry.js +1 -0
  1212. package/dist/magma-components/p-f8feee93.system.entry.js +4 -0
  1213. package/dist/magma-components/p-faa1f22c.entry.js +1 -0
  1214. package/dist/magma-components/p-ffa1a0b4.system.entry.js +1 -0
  1215. package/dist/magma-components/p-hVpoPUxI.system.js +58 -0
  1216. package/dist/magma-components/p-wI0alRSO.js +1 -0
  1217. package/dist/stats.json +3191 -2538
  1218. package/dist/types/common/form.d.ts +8 -1
  1219. package/dist/types/common/preference.d.ts +1 -1
  1220. package/dist/types/common/validity/index.d.ts +22 -0
  1221. package/dist/types/components/mds-button/mds-button.d.ts +9 -0
  1222. package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +23 -1
  1223. package/dist/types/components/mds-input/mds-input.d.ts +41 -2
  1224. package/dist/types/components/mds-input/meta/validators.d.ts +22 -0
  1225. package/dist/types/components/mds-input/meta/validity.d.ts +14 -0
  1226. package/dist/types/components/mds-input-date/mds-input-date.d.ts +38 -0
  1227. package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +26 -0
  1228. package/dist/types/components/mds-input-otp/mds-input-otp.d.ts +21 -2
  1229. package/dist/types/components/mds-input-range/mds-input-range.d.ts +8 -1
  1230. package/dist/types/components/mds-input-select/mds-input-select.d.ts +41 -4
  1231. package/dist/types/components/mds-input-select/meta/event-detail.d.ts +8 -0
  1232. package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +17 -0
  1233. package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +27 -5
  1234. package/dist/types/components/mds-keyboard-key/meta/icons.d.ts +1 -1
  1235. package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +10 -1
  1236. package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +10 -1
  1237. package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +10 -1
  1238. package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +10 -1
  1239. package/dist/types/components.d.ts +102 -19
  1240. package/package.json +25 -12
  1241. package/dist/cjs/floating-controller-Cd_vNLLD.js +0 -369
  1242. package/dist/cjs/form-DTCBh5WK.js +0 -22
  1243. package/dist/cjs/index--6wz7eWi.js +0 -5183
  1244. package/dist/cjs/locale-CB5_Z7PE.js +0 -816
  1245. package/dist/cjs/preference-eJcbLLAn.js +0 -389
  1246. package/dist/components/p-6K9sFzLr.js +0 -1
  1247. package/dist/components/p-A9TZf0Ii.js +0 -1
  1248. package/dist/components/p-BBhbQT2f.js +0 -1
  1249. package/dist/components/p-BFpRu7yD.js +0 -1
  1250. package/dist/components/p-BL63WAAq.js +0 -8
  1251. package/dist/components/p-BNHXZ-JR.js +0 -1
  1252. package/dist/components/p-BShLEry5.js +0 -1
  1253. package/dist/components/p-BSxuG1vZ.js +0 -1
  1254. package/dist/components/p-BTHR4xXu.js +0 -1
  1255. package/dist/components/p-BYxxgEE_.js +0 -1
  1256. package/dist/components/p-BZFyAX-6.js +0 -1
  1257. package/dist/components/p-BhFTcUD0.js +0 -3
  1258. package/dist/components/p-Bss3F51Q.js +0 -5
  1259. package/dist/components/p-BtMdmkID.js +0 -1
  1260. package/dist/components/p-ByaUOMp0.js +0 -1
  1261. package/dist/components/p-C1xZO_fq.js +0 -1
  1262. package/dist/components/p-C58NKMEE.js +0 -1
  1263. package/dist/components/p-C6Q4zFh6.js +0 -1
  1264. package/dist/components/p-CUQ7WIXh.js +0 -1
  1265. package/dist/components/p-CVpjH8Un.js +0 -1
  1266. package/dist/components/p-Cd_8zD_I.js +0 -1
  1267. package/dist/components/p-CnAeawmf.js +0 -1
  1268. package/dist/components/p-CvIFS8oA.js +0 -1
  1269. package/dist/components/p-DCrjf0F0.js +0 -1
  1270. package/dist/components/p-DlHJvYE7.js +0 -1
  1271. package/dist/components/p-DlaJNPdd.js +0 -1
  1272. package/dist/components/p-DnrQaRnh.js +0 -1
  1273. package/dist/components/p-OPg_Naue.js +0 -1
  1274. package/dist/components/p-RS4yyl41.js +0 -1
  1275. package/dist/components/p-gv3eu44S.js +0 -1
  1276. package/dist/components/p-kff6xSdW.js +0 -1
  1277. package/dist/components/p-pys1EQ60.js +0 -1
  1278. package/dist/components/p-qketFgr0.js +0 -1
  1279. package/dist/components/p-wq6nWuWE.js +0 -1
  1280. package/dist/components/p-zml3K7nx.js +0 -1
  1281. package/dist/esm/floating-controller-DVldZ5mh.js +0 -366
  1282. package/dist/esm/form-A9TZf0Ii.js +0 -19
  1283. package/dist/esm/index-DIiEV39g.js +0 -5149
  1284. package/dist/esm/locale-CbJbTW_c.js +0 -814
  1285. package/dist/esm/preference-CKerJx2M.js +0 -385
  1286. package/dist/esm-es5/floating-controller-DVldZ5mh.js +0 -66
  1287. package/dist/esm-es5/form-A9TZf0Ii.js +0 -8
  1288. package/dist/esm-es5/index-DIiEV39g.js +0 -371
  1289. package/dist/esm-es5/locale-CbJbTW_c.js +0 -230
  1290. package/dist/esm-es5/preference-CKerJx2M.js +0 -58
  1291. package/dist/magma-components/p-005172ba.entry.js +0 -1
  1292. package/dist/magma-components/p-05fa40aa.system.entry.js +0 -10
  1293. package/dist/magma-components/p-071f18c6.system.entry.js +0 -27
  1294. package/dist/magma-components/p-0798b0bf.system.entry.js +0 -24
  1295. package/dist/magma-components/p-0827a5bd.entry.js +0 -1
  1296. package/dist/magma-components/p-086fb3aa.entry.js +0 -1
  1297. package/dist/magma-components/p-0a088e7d.system.entry.js +0 -10
  1298. package/dist/magma-components/p-0a691082.entry.js +0 -1
  1299. package/dist/magma-components/p-0ec21574.system.entry.js +0 -10
  1300. package/dist/magma-components/p-0f6bb54d.system.entry.js +0 -22
  1301. package/dist/magma-components/p-102d3bd3.system.entry.js +0 -1
  1302. package/dist/magma-components/p-10704ede.system.entry.js +0 -4
  1303. package/dist/magma-components/p-15c77a98.system.entry.js +0 -19
  1304. package/dist/magma-components/p-15f63bf3.entry.js +0 -1
  1305. package/dist/magma-components/p-16e9fb14.system.entry.js +0 -7
  1306. package/dist/magma-components/p-181dfb04.entry.js +0 -1
  1307. package/dist/magma-components/p-184720be.system.entry.js +0 -1
  1308. package/dist/magma-components/p-18473d2f.entry.js +0 -1
  1309. package/dist/magma-components/p-18667ae7.system.entry.js +0 -13
  1310. package/dist/magma-components/p-18f7b970.system.entry.js +0 -4
  1311. package/dist/magma-components/p-19adde9d.entry.js +0 -1
  1312. package/dist/magma-components/p-1afc0452.entry.js +0 -1
  1313. package/dist/magma-components/p-1cce738a.system.entry.js +0 -32
  1314. package/dist/magma-components/p-1df6ac96.system.entry.js +0 -7
  1315. package/dist/magma-components/p-209063b6.system.entry.js +0 -50
  1316. package/dist/magma-components/p-216f95cc.system.entry.js +0 -1
  1317. package/dist/magma-components/p-21891a24.entry.js +0 -1
  1318. package/dist/magma-components/p-21d6687a.system.entry.js +0 -7
  1319. package/dist/magma-components/p-2217a7be.entry.js +0 -1
  1320. package/dist/magma-components/p-231505e8.entry.js +0 -1
  1321. package/dist/magma-components/p-2386f0d6.system.entry.js +0 -37
  1322. package/dist/magma-components/p-23e61db9.system.entry.js +0 -4
  1323. package/dist/magma-components/p-25935d33.system.entry.js +0 -1
  1324. package/dist/magma-components/p-284c40cd.system.entry.js +0 -4
  1325. package/dist/magma-components/p-29684655.system.entry.js +0 -16
  1326. package/dist/magma-components/p-2b56fc14.entry.js +0 -1
  1327. package/dist/magma-components/p-2b73fee6.entry.js +0 -1
  1328. package/dist/magma-components/p-2d5aadba.system.entry.js +0 -7
  1329. package/dist/magma-components/p-2de17848.entry.js +0 -1
  1330. package/dist/magma-components/p-34482514.entry.js +0 -1
  1331. package/dist/magma-components/p-34c0890e.entry.js +0 -1
  1332. package/dist/magma-components/p-3635eca6.system.entry.js +0 -1
  1333. package/dist/magma-components/p-3b0c1202.entry.js +0 -1
  1334. package/dist/magma-components/p-3db23b5f.system.entry.js +0 -16
  1335. package/dist/magma-components/p-3ec7d3ea.entry.js +0 -1
  1336. package/dist/magma-components/p-3f747a63.system.entry.js +0 -1
  1337. package/dist/magma-components/p-3ff30842.system.entry.js +0 -16
  1338. package/dist/magma-components/p-40563e33.entry.js +0 -1
  1339. package/dist/magma-components/p-41bf6f25.system.entry.js +0 -81
  1340. package/dist/magma-components/p-421a630e.entry.js +0 -1
  1341. package/dist/magma-components/p-4299b76b.system.entry.js +0 -4
  1342. package/dist/magma-components/p-4543501c.entry.js +0 -1
  1343. package/dist/magma-components/p-4616bc07.entry.js +0 -1
  1344. package/dist/magma-components/p-46786d71.system.entry.js +0 -14
  1345. package/dist/magma-components/p-470e5ac8.system.entry.js +0 -1
  1346. package/dist/magma-components/p-48d37230.entry.js +0 -1
  1347. package/dist/magma-components/p-49b120cb.system.entry.js +0 -13
  1348. package/dist/magma-components/p-4af76eb3.entry.js +0 -1
  1349. package/dist/magma-components/p-4b3a8132.system.entry.js +0 -13
  1350. package/dist/magma-components/p-4ba6cb3f.entry.js +0 -1
  1351. package/dist/magma-components/p-4c8316a8.entry.js +0 -1
  1352. package/dist/magma-components/p-4c95442e.entry.js +0 -1
  1353. package/dist/magma-components/p-4cadbd49.entry.js +0 -1
  1354. package/dist/magma-components/p-4e4bdbf8.entry.js +0 -1
  1355. package/dist/magma-components/p-4e5ab0e4.system.entry.js +0 -16
  1356. package/dist/magma-components/p-4f107cb2.system.entry.js +0 -2838
  1357. package/dist/magma-components/p-518b55f3.entry.js +0 -1
  1358. package/dist/magma-components/p-56ad5bf2.entry.js +0 -1
  1359. package/dist/magma-components/p-5eec629c.system.entry.js +0 -17
  1360. package/dist/magma-components/p-5f545f85.system.entry.js +0 -1
  1361. package/dist/magma-components/p-61a5ac3d.system.entry.js +0 -17
  1362. package/dist/magma-components/p-636cc471.entry.js +0 -1
  1363. package/dist/magma-components/p-646034cb.system.entry.js +0 -27
  1364. package/dist/magma-components/p-677ab154.system.entry.js +0 -3
  1365. package/dist/magma-components/p-67d80d37.system.entry.js +0 -1
  1366. package/dist/magma-components/p-6937f340.entry.js +0 -1
  1367. package/dist/magma-components/p-6b7e449f.entry.js +0 -1
  1368. package/dist/magma-components/p-6c417ea1.system.entry.js +0 -913
  1369. package/dist/magma-components/p-6ce60d59.entry.js +0 -1
  1370. package/dist/magma-components/p-6cf760ea.system.entry.js +0 -45
  1371. package/dist/magma-components/p-6dc27543.entry.js +0 -1
  1372. package/dist/magma-components/p-6de37588.entry.js +0 -1
  1373. package/dist/magma-components/p-6f6b5eb5.entry.js +0 -1
  1374. package/dist/magma-components/p-7090184f.entry.js +0 -1
  1375. package/dist/magma-components/p-716ad14c.entry.js +0 -1
  1376. package/dist/magma-components/p-71804224.entry.js +0 -1
  1377. package/dist/magma-components/p-735dc594.system.entry.js +0 -1
  1378. package/dist/magma-components/p-739fdf76.system.entry.js +0 -1
  1379. package/dist/magma-components/p-74b0902a.entry.js +0 -1
  1380. package/dist/magma-components/p-7530a2f2.entry.js +0 -1
  1381. package/dist/magma-components/p-759133b3.entry.js +0 -1
  1382. package/dist/magma-components/p-75dd012a.system.entry.js +0 -11
  1383. package/dist/magma-components/p-76ae22d6.entry.js +0 -1
  1384. package/dist/magma-components/p-78248693.entry.js +0 -1
  1385. package/dist/magma-components/p-7912f877.entry.js +0 -1
  1386. package/dist/magma-components/p-7c0d202c.entry.js +0 -1
  1387. package/dist/magma-components/p-7d304fd4.system.entry.js +0 -65
  1388. package/dist/magma-components/p-7f6d708c.system.entry.js +0 -41
  1389. package/dist/magma-components/p-81b72b6e.entry.js +0 -1
  1390. package/dist/magma-components/p-859ab5a2.entry.js +0 -18
  1391. package/dist/magma-components/p-88564e9b.system.entry.js +0 -14
  1392. package/dist/magma-components/p-896ae0ee.entry.js +0 -1
  1393. package/dist/magma-components/p-89a3bc7a.system.entry.js +0 -16
  1394. package/dist/magma-components/p-8b1abf81.system.entry.js +0 -32
  1395. package/dist/magma-components/p-8bbee38d.entry.js +0 -1
  1396. package/dist/magma-components/p-8bf680d6.system.entry.js +0 -15
  1397. package/dist/magma-components/p-8cb3a071.system.entry.js +0 -15
  1398. package/dist/magma-components/p-8dff6606.system.entry.js +0 -11
  1399. package/dist/magma-components/p-8e40eda3.system.entry.js +0 -9
  1400. package/dist/magma-components/p-8f229eaf.entry.js +0 -1
  1401. package/dist/magma-components/p-91b9d4e7.system.entry.js +0 -4
  1402. package/dist/magma-components/p-92e1001f.entry.js +0 -1
  1403. package/dist/magma-components/p-9378b373.system.entry.js +0 -49
  1404. package/dist/magma-components/p-94fa3396.system.entry.js +0 -47
  1405. package/dist/magma-components/p-9741d95e.system.entry.js +0 -7
  1406. package/dist/magma-components/p-97ea9e6e.system.entry.js +0 -68
  1407. package/dist/magma-components/p-9846fe89.system.entry.js +0 -1
  1408. package/dist/magma-components/p-998721b9.system.entry.js +0 -1
  1409. package/dist/magma-components/p-9a5296c0.system.entry.js +0 -7
  1410. package/dist/magma-components/p-9bbd4193.system.entry.js +0 -102
  1411. package/dist/magma-components/p-9be4a736.entry.js +0 -1
  1412. package/dist/magma-components/p-9caffe14.entry.js +0 -1
  1413. package/dist/magma-components/p-9d86477d.system.entry.js +0 -1
  1414. package/dist/magma-components/p-9de1ac7f.entry.js +0 -1
  1415. package/dist/magma-components/p-9e3bc553.system.entry.js +0 -26
  1416. package/dist/magma-components/p-9e58467e.system.entry.js +0 -10
  1417. package/dist/magma-components/p-9e9a1ebd.system.entry.js +0 -15
  1418. package/dist/magma-components/p-A9TZf0Ii.js +0 -1
  1419. package/dist/magma-components/p-BFnx_0hM.js +0 -5
  1420. package/dist/magma-components/p-BbMKuVem.js +0 -1
  1421. package/dist/magma-components/p-C2FHijr2.system.js +0 -231
  1422. package/dist/magma-components/p-CDTiTqY0.system.js +0 -58
  1423. package/dist/magma-components/p-CI85vVs8.system.js +0 -9
  1424. package/dist/magma-components/p-CnXBPjmc.system.js +0 -5
  1425. package/dist/magma-components/p-DB8Rm54c.js +0 -1
  1426. package/dist/magma-components/p-DIiEV39g.js +0 -3
  1427. package/dist/magma-components/p-DVd2EM-q.system.js +0 -90
  1428. package/dist/magma-components/p-DmC-b-ZK.system.js +0 -67
  1429. package/dist/magma-components/p-MGv0i39Y.system.js +0 -162
  1430. package/dist/magma-components/p-a15da479.system.entry.js +0 -8
  1431. package/dist/magma-components/p-a3b0f586.entry.js +0 -1
  1432. package/dist/magma-components/p-a93b2a39.entry.js +0 -1
  1433. package/dist/magma-components/p-aa267e7b.entry.js +0 -1
  1434. package/dist/magma-components/p-ab9095ae.system.entry.js +0 -4
  1435. package/dist/magma-components/p-ab997243.system.entry.js +0 -4
  1436. package/dist/magma-components/p-ace198e9.entry.js +0 -1
  1437. package/dist/magma-components/p-ad3983b2.entry.js +0 -1
  1438. package/dist/magma-components/p-aea6081f.entry.js +0 -1
  1439. package/dist/magma-components/p-af41c8b8.system.entry.js +0 -1
  1440. package/dist/magma-components/p-af45f0a5.system.entry.js +0 -20
  1441. package/dist/magma-components/p-b0539d61.system.entry.js +0 -32
  1442. package/dist/magma-components/p-b35c26f8.entry.js +0 -18
  1443. package/dist/magma-components/p-b3a3578c.entry.js +0 -1
  1444. package/dist/magma-components/p-b49e0321.system.entry.js +0 -1
  1445. package/dist/magma-components/p-b71e0d51.entry.js +0 -1
  1446. package/dist/magma-components/p-b8d4a14e.entry.js +0 -1
  1447. package/dist/magma-components/p-ba035f90.entry.js +0 -1
  1448. package/dist/magma-components/p-bc51d310.system.entry.js +0 -1
  1449. package/dist/magma-components/p-bd490a8e.entry.js +0 -1
  1450. package/dist/magma-components/p-be198039.system.entry.js +0 -4
  1451. package/dist/magma-components/p-bf7168b4.entry.js +0 -1
  1452. package/dist/magma-components/p-bf84d9fa.entry.js +0 -1
  1453. package/dist/magma-components/p-c4e58240.entry.js +0 -1
  1454. package/dist/magma-components/p-c573de10.entry.js +0 -1
  1455. package/dist/magma-components/p-c6be3db7.system.entry.js +0 -1
  1456. package/dist/magma-components/p-c7517884.system.entry.js +0 -38
  1457. package/dist/magma-components/p-c9be79bd.entry.js +0 -1
  1458. package/dist/magma-components/p-c9e12c2b.system.entry.js +0 -7
  1459. package/dist/magma-components/p-cb6a1908.entry.js +0 -1
  1460. package/dist/magma-components/p-cbd5aef4.system.entry.js +0 -14
  1461. package/dist/magma-components/p-cc033985.system.entry.js +0 -14
  1462. package/dist/magma-components/p-cd21137b.system.entry.js +0 -1
  1463. package/dist/magma-components/p-cd84a264.system.entry.js +0 -41
  1464. package/dist/magma-components/p-d0457835.entry.js +0 -1
  1465. package/dist/magma-components/p-d3116844.entry.js +0 -1
  1466. package/dist/magma-components/p-d38165ed.system.entry.js +0 -1
  1467. package/dist/magma-components/p-d3933a22.entry.js +0 -1
  1468. package/dist/magma-components/p-d44c49d6.system.entry.js +0 -8
  1469. package/dist/magma-components/p-d4a529ce.entry.js +0 -1
  1470. package/dist/magma-components/p-d64311e2.entry.js +0 -1
  1471. package/dist/magma-components/p-d6d4aa1a.entry.js +0 -1
  1472. package/dist/magma-components/p-d81e7100.system.entry.js +0 -15
  1473. package/dist/magma-components/p-d8c27f4b.entry.js +0 -1
  1474. package/dist/magma-components/p-d921d876.entry.js +0 -1
  1475. package/dist/magma-components/p-da1ac3e1.entry.js +0 -1
  1476. package/dist/magma-components/p-da4dc390.system.entry.js +0 -4
  1477. package/dist/magma-components/p-dda7a33b.entry.js +0 -1
  1478. package/dist/magma-components/p-de6bc3c8.entry.js +0 -1
  1479. package/dist/magma-components/p-df2b7607.system.entry.js +0 -4
  1480. package/dist/magma-components/p-e0b2ef8f.system.entry.js +0 -1
  1481. package/dist/magma-components/p-e0c50a2d.entry.js +0 -1
  1482. package/dist/magma-components/p-e1277efe.system.entry.js +0 -1
  1483. package/dist/magma-components/p-e1e6dd97.entry.js +0 -1
  1484. package/dist/magma-components/p-e2f7a9bd.system.entry.js +0 -1
  1485. package/dist/magma-components/p-e375c8b1.entry.js +0 -1
  1486. package/dist/magma-components/p-e3fce8ca.entry.js +0 -1
  1487. package/dist/magma-components/p-e5c6f9a9.system.entry.js +0 -7
  1488. package/dist/magma-components/p-e5da7036.entry.js +0 -1
  1489. package/dist/magma-components/p-e6dccab5.system.entry.js +0 -1
  1490. package/dist/magma-components/p-e9a16f22.system.entry.js +0 -134
  1491. package/dist/magma-components/p-ea0091b6.entry.js +0 -1
  1492. package/dist/magma-components/p-ec00defc.system.entry.js +0 -13
  1493. package/dist/magma-components/p-ec59ec9a.entry.js +0 -1
  1494. package/dist/magma-components/p-eddcef53.system.entry.js +0 -1
  1495. package/dist/magma-components/p-edfb0d7a.entry.js +0 -1
  1496. package/dist/magma-components/p-eed00e7f.system.entry.js +0 -1
  1497. package/dist/magma-components/p-ef8cb401.entry.js +0 -1
  1498. package/dist/magma-components/p-f070a5b5.system.entry.js +0 -11
  1499. package/dist/magma-components/p-f23d4974.entry.js +0 -1
  1500. package/dist/magma-components/p-f542246f.system.entry.js +0 -1
  1501. package/dist/magma-components/p-f5c680dd.entry.js +0 -1
  1502. package/dist/magma-components/p-f60c6e8e.system.entry.js +0 -40
  1503. package/dist/magma-components/p-f8369939.entry.js +0 -1
  1504. package/dist/magma-components/p-f97ede3e.system.entry.js +0 -19
  1505. package/dist/magma-components/p-f97ff5b2.entry.js +0 -1
  1506. package/dist/magma-components/p-f9d9cf7c.system.entry.js +0 -11
  1507. package/dist/magma-components/p-fa163e86.entry.js +0 -1
  1508. package/dist/magma-components/p-fe1662e8.system.entry.js +0 -28
  1509. package/dist/magma-components/p-fe19080a.entry.js +0 -8
  1510. package/dist/magma-components/p-ff133cbd.entry.js +0 -1
  1511. package/dist/magma-components/p-ff49fb35.entry.js +0 -1
  1512. package/dist/magma-components/p-fff44704.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{s as setAttributeIfEmpty}from"./aria-CSCy6TMW.js";import{m as miBaselinePanorama}from"./panorama-b1ORvfSX.js";import{m as miBaselineBrokenImage}from"./broken-image-0FAG3rkw.js";import{L as Locale}from"./locale-CbJbTW_c.js";import"./preference-CKerJx2M.js";var clickToLoad$3="Φόρτωση εικόνας";var localeEl={clickToLoad:clickToLoad$3};var clickToLoad$2="Load image";var localeEn={clickToLoad:clickToLoad$2};var clickToLoad$1="Cargar imagen";var localeEs={clickToLoad:clickToLoad$1};var clickToLoad="Carica immagine";var localeIt={clickToLoad:clickToLoad};var mdsImgCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-img-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-img-color:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-img-icon-color:rgb(var(--magma-accent-border,var(--magma-tint-accent-border,var(--variant-primary-06,148 172 218))));--mds-img-error-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-img-error-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-img-error-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));display:flex;height:auto;-o-object-fit:contain;object-fit:contain;overflow:hidden;position:relative;width:100%}img{height:inherit;-o-object-fit:inherit;object-fit:inherit;width:inherit}.alt-text-container{align-items:center;background-color:var(--mds-img-background,rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))));color:var(--mds-img-color,rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)))));display:flex;flex-direction:column;gap:calc(var(--spacing,.0025rem)*600);justify-content:center;padding:calc(var(--spacing,.0025rem)*600);text-align:center}.alt-text-container--absolute{cursor:pointer;inset:0;position:absolute}.alt-text-container--error{--mds-img-background:var(--mds-img-error-background,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))));--mds-img-color:var(--mds-img-error-color,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))));--mds-img-icon-color:var(--mds-img-error-icon-color,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))));cursor:not-allowed}.alt-text-container--default-aspect-ratio{cursor:pointer;width:100%}.click-to-load{pointer-events:none}.icon{fill:var(--mds-img-icon-color,rgb(var(--magma-accent-border,var(--magma-tint-accent-border,var(--variant-primary-06,148 172 218)))));width:calc(var(--spacing,.0025rem)*900)}"};var MdsImg=/** @class */function(){function t(t){var a=this;registerInstance(this,t);this.loadErrorEvent=createEvent(this,"mdsImgLoadError",7);this.loadSuccessEvent=createEvent(this,"mdsImgLoadSuccess",7);this.imageConsumptionLoaded=false;this.imageError=false;this.consumptionMode="high";this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});
1
+ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{s as setAttributeIfEmpty}from"./aria-CSCy6TMW.js";import{m as miBaselinePanorama}from"./panorama-b1ORvfSX.js";import{m as miBaselineBrokenImage}from"./broken-image-0FAG3rkw.js";import{L as Locale}from"./locale-CVJm6KFD.js";import"./preference-DNNqH7BU.js";var clickToLoad$3="Φόρτωση εικόνας";var localeEl={clickToLoad:clickToLoad$3};var clickToLoad$2="Load image";var localeEn={clickToLoad:clickToLoad$2};var clickToLoad$1="Cargar imagen";var localeEs={clickToLoad:clickToLoad$1};var clickToLoad="Carica immagine";var localeIt={clickToLoad:clickToLoad};var mdsImgCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-img-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-img-color:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-img-icon-color:rgb(var(--magma-accent-border,var(--magma-tint-accent-border,var(--variant-primary-06,148 172 218))));--mds-img-error-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-img-error-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-img-error-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));display:flex;height:auto;-o-object-fit:contain;object-fit:contain;overflow:hidden;position:relative;width:100%}img{height:inherit;-o-object-fit:inherit;object-fit:inherit;width:inherit}.alt-text-container{align-items:center;background-color:var(--mds-img-background,rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))));color:var(--mds-img-color,rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231)))));display:flex;flex-direction:column;gap:calc(var(--spacing,.0025rem)*600);justify-content:center;padding:calc(var(--spacing,.0025rem)*600);text-align:center}.alt-text-container--absolute{cursor:pointer;inset:0;position:absolute}.alt-text-container--error{--mds-img-background:var(--mds-img-error-background,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))));--mds-img-color:var(--mds-img-error-color,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))));--mds-img-icon-color:var(--mds-img-error-icon-color,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))));cursor:not-allowed}.alt-text-container--default-aspect-ratio{cursor:pointer;width:100%}.click-to-load{pointer-events:none}.icon{fill:var(--mds-img-icon-color,rgb(var(--magma-accent-border,var(--magma-tint-accent-border,var(--variant-primary-06,148 172 218)))));width:calc(var(--spacing,.0025rem)*900)}"};var MdsImg=/** @class */function(){function t(t){var a=this;registerInstance(this,t);this.loadErrorEvent=createEvent(this,"mdsImgLoadError",7);this.loadSuccessEvent=createEvent(this,"mdsImgLoadSuccess",7);this.imageConsumptionLoaded=false;this.imageError=false;this.consumptionMode="high";this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});
2
2
  /**
3
3
  * Specifies an alternate text for an image
4
4
  */this.alt="";
@@ -1 +1 @@
1
- import{r as registerInstance,h,e as Host,g as getElement}from"./index-DIiEV39g.js";var mdsInputDateRangePreselectionCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-date-range-preselection-default-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))/0);--mds-date-range-preselection-default-border:var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196)));--mds-date-range-preselection-default-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-date-range-preselection-selected-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-date-range-preselection-selected-border:var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-date-range-preselection-selected-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-date-range-preselection-hover-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-date-range-preselection-hover-border:var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237)));--mds-date-range-preselection-hover-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-date-range-preselection-background:var(--mds-date-range-preselection-default-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))/0));--mds-date-range-preselection-border:var(--mds-date-range-preselection-default-border,var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196))));--mds-date-range-preselection-color:var(--mds-date-range-preselection-default-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));display:inline-flex;justify-self:start}:host .action{--mds-button-background:var(--mds-date-range-preselection-background);--mds-button-border-color-rgb:var(--mds-date-range-preselection-border);--mds-button-color:var(--mds-date-range-preselection-color)}:host .action:hover{--mds-date-range-preselection-background:var(--mds-date-range-preselection-hover-background,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237)))));--mds-date-range-preselection-border:var(--mds-date-range-preselection-hover-border,var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-date-range-preselection-color:var(--mds-date-range-preselection-hover-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))))}:host([selected]) .action{--mds-date-range-preselection-background:var(--mds-date-range-preselection-selected-background,rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))));--mds-date-range-preselection-border:var(--mds-date-range-preselection-selected-border,var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-date-range-preselection-color:var(--mds-date-range-preselection-selected-color,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));pointer-events:none}"};var MdsInputDateRangePreselection=/** @class */function(){function e(e){var a=this;registerInstance(this,e);this.onClick=function(e){var t;e.stopPropagation();var r=(t=a.host)===null||t===void 0?void 0:t.closest("mds-input-date-range");if(r){r.preselect({caller:a.host,start:a.start,end:a.end});a.selected=true}}}e.prototype.render=function(){return h(Host,{key:"e5571b251d0b86eccf975c07af016fd0e25387d3",slot:"calendar-preselection"},h("mds-button",{key:"95b8be91464b8e283c623c191514f7c293b941af",onClick:this.onClick,class:"action",variant:"primary",tone:"strong"},h("slot",{key:"6a96b556f736d867ab858ffba7307c45fb15dd65"})))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsInputDateRangePreselection.style=mdsInputDateRangePreselectionCss();export{MdsInputDateRangePreselection as mds_input_date_range_preselection};
1
+ import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.js";var mdsInputDateRangePreselectionCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-date-range-preselection-default-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))/0);--mds-date-range-preselection-default-border:var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196)));--mds-date-range-preselection-default-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-date-range-preselection-selected-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-date-range-preselection-selected-border:var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-date-range-preselection-selected-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-date-range-preselection-hover-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-date-range-preselection-hover-border:var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237)));--mds-date-range-preselection-hover-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-date-range-preselection-background:var(--mds-date-range-preselection-default-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))/0));--mds-date-range-preselection-border:var(--mds-date-range-preselection-default-border,var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196))));--mds-date-range-preselection-color:var(--mds-date-range-preselection-default-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));display:inline-flex;justify-self:start}:host .action{--mds-button-background:var(--mds-date-range-preselection-background);--mds-button-border-color-rgb:var(--mds-date-range-preselection-border);--mds-button-color:var(--mds-date-range-preselection-color)}:host .action:hover{--mds-date-range-preselection-background:var(--mds-date-range-preselection-hover-background,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237)))));--mds-date-range-preselection-border:var(--mds-date-range-preselection-hover-border,var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-date-range-preselection-color:var(--mds-date-range-preselection-hover-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))))}:host([selected]) .action{--mds-date-range-preselection-background:var(--mds-date-range-preselection-selected-background,rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204)))));--mds-date-range-preselection-border:var(--mds-date-range-preselection-selected-border,var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-date-range-preselection-color:var(--mds-date-range-preselection-selected-color,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));pointer-events:none}"};var MdsInputDateRangePreselection=/** @class */function(){function e(e){var a=this;registerInstance(this,e);this.onClick=function(e){var t;e.stopPropagation();var r=(t=a.host)===null||t===void 0?void 0:t.closest("mds-input-date-range");if(r){r.preselect({caller:a.host,start:a.start,end:a.end});a.selected=true}}}e.prototype.render=function(){return h(Host,{key:"e5571b251d0b86eccf975c07af016fd0e25387d3",slot:"calendar-preselection"},h("mds-button",{key:"95b8be91464b8e283c623c191514f7c293b941af",onClick:this.onClick,class:"action",variant:"primary",tone:"strong"},h("slot",{key:"6a96b556f736d867ab858ffba7307c45fb15dd65"})))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsInputDateRangePreselection.style=mdsInputDateRangePreselectionCss();export{MdsInputDateRangePreselection as mds_input_date_range_preselection};
@@ -1,4 +1,7 @@
1
- var __awaiter=this&&this.__awaiter||function(t,a,e,r){function i(t){return t instanceof e?t:new e((function(a){a(t)}))}return new(e||(e=Promise))((function(e,n){function s(t){try{d(r.next(t))}catch(t){n(t)}}function o(t){try{d(r["throw"](t))}catch(t){n(t)}}function d(t){t.done?e(t.value):i(t.value).then(s,o)}d((r=r.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(a){return d([t,a])}}function d(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(e=0)),e)try{if(r=1,i&&(n=o[0]&2?i["return"]:o[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;if(i=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(n=e.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){e.label=o[1];break}if(o[0]===6&&e.label<n[1]){e.label=n[1];n=o;break}if(n&&e.label<n[2]){e.label=n[2];e.ops.push(o);break}if(n[2])e.ops.pop();e.trys.pop();continue}o=a.call(t,e)}catch(t){o=[6,t];i=0}finally{r=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{s as setAttributeIfEmpty}from"./aria-CSCy6TMW.js";import{s as setFormValue}from"./form-A9TZf0Ii.js";import{m as miBaselineCalendarToday}from"./calendar-today-BVQMG7KJ.js";import{D as DateTime}from"./datetime-BJtA1qmE.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{L as Locale}from"./locale-CbJbTW_c.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";var endDate$3="Ημερομηνία λήξης";var from$3="Από";var startDate$3="Ημερομηνία έναρξης";var to$3="έως";var localeEl={endDate:endDate$3,from:from$3,startDate:startDate$3,to:to$3};var endDate$2="End date";var from$2="From";var startDate$2="Start date";var to$2="to";var localeEn={endDate:endDate$2,from:from$2,startDate:startDate$2,to:to$2};var endDate$1="Fecha de fin";var from$1="De";var startDate$1="Fecha de inicio";var to$1="a";var localeEs={endDate:endDate$1,from:from$1,startDate:startDate$1,to:to$1};var endDate="Data di fine";var from="Dal";var startDate="Data di inizio";var to="al";var localeIt={endDate:endDate,from:from,startDate:startDate,to:to};var mdsInputDateRangeCss=function(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar,mds-dropdown,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-date-range-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-input-date-range-calendar-width:22rem;--mds-input-date-range-fields-firefox-justify-content:start;--mds-input-date-range-fields-gap:0 calc(var(--spacing,.0025rem)*200);--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-date-range-ring:0 0 0 1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1);--mds-input-date-range-shadow:0 1px 3px 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 1px 2px 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);--mds-input-date-range-transition-duration:var(--duration-300,.3s);--private-input-date-range-transition-duration:var(--mds-input-date-range-transition-duration);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));corner-shape:var(--magma-corner-shape,squircle);container-type:inline-size;cursor:text;display:flex;gap:calc(var(--spacing,.0025rem)*200);overflow:visible;position:relative;--mds-input-date-range-icon-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-date-range-variant-color-rgb:0 0 0}.date-preselection{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.inputs{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-hack,.875rem);font-weight:var(--tw-font-weight,var(--text-size-code-hack--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-hack--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--mds-input-date-range-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));border-radius:inherit;-webkit-box-shadow:var(--mds-input-date-range-ring),var(--mds-input-date-range-shadow);box-shadow:var(--mds-input-date-range-ring),var(--mds-input-date-range-shadow);box-sizing:border-box;color:inherit;corner-shape:inherit;align-items:center;border:0;display:inline-flex;flex-wrap:wrap;gap:var(--mds-input-date-range-fields-gap,0 calc(var(--spacing,.0025rem)*200));margin:0;min-height:3rem;overflow:hidden;padding-left:calc(var(--spacing,.0025rem)*400);padding-right:calc(var(--spacing,.0025rem)*1200);text-overflow:ellipsis;-webkit-transition-duration:var(--private-input-date-range-transition-duration);transition-duration:var(--private-input-date-range-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:100%}.input-element{align-items:baseline;display:inline-flex}:host(:focus-within) .inputs{--tw-outline-style:none;outline-style:none;transition-duration:var(--default-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--default-transition-timing-function);--mds-input-date-range-ring:0 0 0 3px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/1);--mds-input-date-range-shadow:0 4px 6px 3px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 2px 4px -1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input-wrapper{display:flex;flex-shrink:0}:host ::slotted(mds-input-date){color:inherit}.date-label{margin-left:calc(var(--spacing,.0025rem)*50);margin-right:calc(var(--spacing,.0025rem)*50);min-width:min-content;white-space:nowrap}.date-label:first-child{margin-left:0}.calendars{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}.calendar-preselection-panel{align-content:start;background-color:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-sizing:border-box;display:grid;min-inline-size:max-content;padding:calc(var(--spacing,.0025rem)*400)}.calendar-single{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}:is(.calendar-single,.calendars) mds-calendar{-ms-flex:0 0 var(--mds-input-date-range-calendar-width,22rem);flex:0 0 var(--mds-input-date-range-calendar-width,22rem);inline-size:var(--mds-input-date-range-calendar-width,22rem);max-inline-size:var(--mds-input-date-range-calendar-width,22rem);min-inline-size:var(--mds-input-date-range-calendar-width,22rem)}.action-open-calendar-wrapper{align-items:center;aspect-ratio:1;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0}.action-open-calendar{--mds-button-color:var(--mds-input-date-range-icon-color,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));align-self:center}mds-dropdown{padding:0}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-date-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}:host([pref-contrast=more]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([pref-contrast=more]) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}@supports ((-moz-appearance:none)){.action-open-calendar{display:none}.inputs{-ms-flex-pack:var(--mds-input-date-range-fields-firefox-justify-content,start);justify-content:var(--mds-input-date-range-fields-firefox-justify-content,start);padding-right:calc(var(--spacing,.0025rem)*400)}}:host(:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-date-range-variant-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([variant=ai]){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-input-tip-background:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=ai]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-date-range-variant-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)))}:host([variant=info]){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=info]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=success]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=warning]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=error]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}@media (forced-colors:active){:host(:focus-within) .inputs{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-date-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::-webkit-input-placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}}'};var MdsInputDateRange=/** @class */function(){function t(t){var a=this;registerInstance(this,t);this.valueChanged=createEvent(this,"mdsInputDateRangeValueChange",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.calendarKey=0;this.internalStartDate="";this.internalEndDate="";this.visibleCalendarDate="";this.hasPreselection=false;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});
1
+ var __awaiter=this&&this.__awaiter||function(t,a,e,i){function r(t){return t instanceof e?t:new e((function(a){a(t)}))}return new(e||(e=Promise))((function(e,n){function s(t){try{d(i.next(t))}catch(t){n(t)}}function o(t){try{d(i["throw"](t))}catch(t){n(t)}}function d(t){t.done?e(t.value):r(t.value).then(s,o)}d((i=i.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(a){return d([t,a])}}function d(o){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(e=0)),e)try{if(i=1,r&&(n=o[0]&2?r["return"]:o[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,o[1])).done)return n;if(r=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;r=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(n=e.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){e.label=o[1];break}if(o[0]===6&&e.label<n[1]){e.label=n[1];n=o;break}if(n&&e.label<n[2]){e.label=n[2];e.ops.push(o);break}if(n[2])e.ops.pop();e.trys.pop();continue}o=a.call(t,e)}catch(t){o=[6,t];r=0}finally{i=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{s as setAttributeIfEmpty}from"./aria-CSCy6TMW.js";import{s as setFormValue}from"./form-wI0alRSO.js";import{m as miBaselineCalendarToday}from"./calendar-today-BVQMG7KJ.js";import{D as DateTime}from"./datetime-BJtA1qmE.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{L as Locale}from"./locale-CVJm6KFD.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var endDate$3="Ημερομηνία λήξης";var from$3="Από";var startDate$3="Ημερομηνία έναρξης";var to$3="έως";var localeEl={endDate:endDate$3,from:from$3,startDate:startDate$3,to:to$3};var endDate$2="End date";var from$2="From";var startDate$2="Start date";var to$2="to";var localeEn={endDate:endDate$2,from:from$2,startDate:startDate$2,to:to$2};var endDate$1="Fecha de fin";var from$1="De";var startDate$1="Fecha de inicio";var to$1="a";var localeEs={endDate:endDate$1,from:from$1,startDate:startDate$1,to:to$1};var endDate="Data di fine";var from="Dal";var startDate="Data di inizio";var to="al";var localeIt={endDate:endDate,from:from,startDate:startDate,to:to};var mdsInputDateRangeCss=function(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar,mds-dropdown,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-date-range-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-input-date-range-calendar-width:22rem;--mds-input-date-range-fields-firefox-justify-content:start;--mds-input-date-range-fields-gap:0 calc(var(--spacing,.0025rem)*200);--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-date-range-ring:0 0 0 1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1);--mds-input-date-range-shadow:0 1px 3px 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 1px 2px 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);--mds-input-date-range-transition-duration:var(--duration-300,.3s);--private-input-date-range-transition-duration:var(--mds-input-date-range-transition-duration);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));corner-shape:var(--magma-corner-shape,squircle);container-type:inline-size;cursor:text;display:flex;gap:calc(var(--spacing,.0025rem)*200);overflow:visible;position:relative;--mds-input-date-range-icon-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-date-range-variant-color-rgb:0 0 0}.date-preselection{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.inputs{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-hack,.875rem);font-weight:var(--tw-font-weight,var(--text-size-code-hack--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-hack--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--mds-input-date-range-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));border-radius:inherit;-webkit-box-shadow:var(--mds-input-date-range-ring),var(--mds-input-date-range-shadow);box-shadow:var(--mds-input-date-range-ring),var(--mds-input-date-range-shadow);box-sizing:border-box;color:inherit;corner-shape:inherit;align-items:center;border:0;display:inline-flex;flex-wrap:wrap;gap:var(--mds-input-date-range-fields-gap,0 calc(var(--spacing,.0025rem)*200));margin:0;min-height:3rem;overflow:hidden;padding-left:calc(var(--spacing,.0025rem)*400);padding-right:calc(var(--spacing,.0025rem)*1200);text-overflow:ellipsis;-webkit-transition-duration:var(--private-input-date-range-transition-duration);transition-duration:var(--private-input-date-range-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:100%}.input-element{align-items:baseline;display:inline-flex}:host(:focus-within) .inputs{--tw-outline-style:none;outline-style:none;transition-duration:var(--default-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--default-transition-timing-function);--mds-input-date-range-ring:0 0 0 3px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/1);--mds-input-date-range-shadow:0 4px 6px 3px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 2px 4px -1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input-wrapper{display:flex;flex-shrink:0}:host ::slotted(mds-input-date){color:inherit}.date-label{margin-left:calc(var(--spacing,.0025rem)*50);margin-right:calc(var(--spacing,.0025rem)*50);min-width:min-content;white-space:nowrap}.date-label:first-child{margin-left:0}.calendars{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}.calendar-preselection-panel{align-content:start;background-color:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-sizing:border-box;display:grid;min-inline-size:max-content;padding:calc(var(--spacing,.0025rem)*400)}.calendar-single{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}:is(.calendar-single,.calendars) mds-calendar{-ms-flex:0 0 var(--mds-input-date-range-calendar-width,22rem);flex:0 0 var(--mds-input-date-range-calendar-width,22rem);inline-size:var(--mds-input-date-range-calendar-width,22rem);max-inline-size:var(--mds-input-date-range-calendar-width,22rem);min-inline-size:var(--mds-input-date-range-calendar-width,22rem)}.action-open-calendar-wrapper{align-items:center;aspect-ratio:1;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0}.action-open-calendar{--mds-button-color:var(--mds-input-date-range-icon-color,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));align-self:center}mds-dropdown{padding:0}:host(:disabled:not([disabled=false])),:host([disabled]:not([disabled=false])){color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));cursor:default}:host(:disabled:not([disabled=false])) .inputs,:host([disabled]:not([disabled=false])) .inputs{background-color:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-date-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}:host([pref-contrast=more]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([pref-contrast=more]) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}@supports ((-moz-appearance:none)){.action-open-calendar{display:none}.inputs{-ms-flex-pack:var(--mds-input-date-range-fields-firefox-justify-content,start);justify-content:var(--mds-input-date-range-fields-firefox-justify-content,start);padding-right:calc(var(--spacing,.0025rem)*400)}}:host(:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-date-range-variant-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([variant=ai]){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-input-tip-background:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=ai]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-date-range-variant-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)))}:host([variant=info]){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=info]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=success]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=warning]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=error]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}@media (forced-colors:active){:host(:focus-within) .inputs{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-date-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::-webkit-input-placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}}'};var MdsInputDateRange=/** @class */function(){function t(t){var a=this;registerInstance(this,t);this.valueChanged=createEvent(this,"mdsInputDateRangeValueChange",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.calendarKey=0;this.internalStartDate="";this.internalEndDate="";this.visibleCalendarDate="";this.hasPreselection=false;
2
+ // the disabled state of the host as a form control: its own disabled, or a disabled fieldset
3
+ // around it, which disables the host but not the calendar button in its shadow root
4
+ this.formDisabled=false;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});
2
5
  /**
3
6
  * Specifies the start date of the range
4
7
  * @description It's in ISO format (YYYY-MM-DD).
@@ -24,18 +27,42 @@ var __awaiter=this&&this.__awaiter||function(t,a,e,r){function i(t){return t ins
24
27
  */this.hideToday=false;
25
28
  /**
26
29
  * Enables the linked dual-calendar range picker behavior.
27
- */this.dualCalendar=false;this.lastEmittedStartDate=null;this.lastEmittedEndDate=null;this.initialStartDate="";this.initialEndDate="";this.hoveredCalendarDate=null;this.syncingInputSlots=new Set;this.handleFocusOut=function(t){if(!a.host.contains(t.relatedTarget)){var e=DateTime.fromISO(a.internalStartDate).isValid;var r=DateTime.fromISO(a.internalEndDate).isValid;if(e&&r){a.validateDateRange();a.syncFormValue();a.checkPreselections();a.emitValueChanged()}}};this.focusInput=function(t){t.focusInput()};this.focusDateInput=function(t){if(t.target!==a.host){return}a.focusStartDateInput(t)};this.focusStartDateInput=function(t){t.preventDefault();t.stopPropagation();a.focusInput(a.host.querySelector('mds-input-date[slot="start"]'))};this.focusEndDateInput=function(t){t.preventDefault();t.stopPropagation();a.focusInput(a.host.querySelector('mds-input-date[slot="end"]'))};
30
+ */this.dualCalendar=false;
31
+ /**
32
+ * Disables the range, like a disabled native input: the dates cannot be changed, from the fields
33
+ * or from the calendar, and are left out of the form. It disables the two slotted fields too. A
34
+ * disabled `<fieldset>` around the component does the same.
35
+ */this.disabled=false;this.lastEmittedStartDate=null;this.lastEmittedEndDate=null;this.initialStartDate="";this.initialEndDate="";this.hoveredCalendarDate=null;this.syncingInputSlots=new Set;this.handleFocusOut=function(t){if(!a.host.contains(t.relatedTarget)){var e=DateTime.fromISO(a.internalStartDate).isValid;var i=DateTime.fromISO(a.internalEndDate).isValid;if(e&&i){a.validateDateRange();a.syncFormValue();a.checkPreselections();a.emitValueChanged()}}};this.focusInput=function(t){t.focusInput()};this.focusDateInput=function(t){if(t.target!==a.host){return}a.focusStartDateInput(t)};this.focusStartDateInput=function(t){t.preventDefault();t.stopPropagation();a.focusInput(a.host.querySelector('mds-input-date[slot="start"]'))};this.focusEndDateInput=function(t){t.preventDefault();t.stopPropagation();a.focusInput(a.host.querySelector('mds-input-date[slot="end"]'))};
28
36
  // the two fields render their native input in their own shadow root, out of reach of the
29
37
  // visible labels of this one: each is named after the range and the end it covers
30
- this.nameSlottedFields=function(){[["start",a.t.get("startDate")],["end",a.t.get("endDate")]].forEach((function(t){var e=t[0],r=t[1];var i;var n=a.host.querySelector('[slot="'.concat(e,'"]'));if(n===null)return;setAttributeIfEmpty(n,"aria-label",((i=a.accessibleName)!==null&&i!==void 0?i:"")!==""?"".concat(a.accessibleName,", ").concat(r):r)}))};this.handleCalendarHover=function(t){if(a.internalStartDate===""||a.internalEndDate!==""){a.clearHoverPreview();return}var e=t.detail.hoverDate;if(a.hoveredCalendarDate===e)return;a.hoveredCalendarDate=e;a.syncCalendarsHoverAttributes()};this.handleCalendarChange=function(t){a.clearHoverPreview();a.internalStartDate=t.detail.startDate;a.updateInputValue("start",a.internalStartDate);if(t.detail.endDate!==undefined&&t.detail.endDate!==""){a.internalEndDate=t.detail.endDate;a.updateInputValue("end",a.internalEndDate)}else{a.internalEndDate="";a.updateInputValue("end",a.internalEndDate)}a.syncFormValue();a.syncCalendarsSelectionAttributes();if(a.internalStartDate!==""&&a.internalEndDate!==""){a.emitValueChanged();a.closeDropdownAfterSelection()}};this.handleCalendarNavigate=function(t){if(!a.dualCalendar)return;var e=a.getCalendars();var r=e.indexOf(t.target);var i=DateTime.fromISO(t.detail.currentDate);if(!i.isValid)return;a.visibleCalendarDate=i.minus({months:r===1?1:0}).startOf("month").toISODate()};this.handleCalendarPreselect=function(){a.checkPreselections()};this.handleOpenCalendarClick=function(){a.calendarKey+=1}}t.prototype.getCalendars=function(){var t,a;return Array.from((a=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("mds-calendar"))!==null&&a!==void 0?a:[])};t.prototype.resolveVisibleCalendarDate=function(t,a){var e;var r=[t,a].map((function(t){return DateTime.fromISO(t!==null&&t!==void 0?t:"")})).filter((function(t){return t.isValid}));var i=(e=r[0])!==null&&e!==void 0?e:DateTime.now();return i.startOf("month").toISODate()};t.prototype.getCalendarViewDate=function(t){if(t===void 0){t=0}var a=DateTime.fromISO(this.visibleCalendarDate);var e=DateTime.fromISO(this.internalStartDate);var r=DateTime.now();if(a.isValid){r=a}else if(e.isValid){r=e}return r.startOf("month").plus({months:t}).toISODate()};t.prototype.setVisibleCalendarDate=function(t){var a=DateTime.fromISO(t);if(a.isValid){this.visibleCalendarDate=a.startOf("month").toISODate()}};t.prototype.closeDropdownAfterSelection=function(){if(this.delay===0)return;var t=this.dropdownRef;if(t){setTimeout((function(){t.visible=false}),this.delay)}};t.prototype.syncCalendarsSelectionAttributes=function(){var t=this;var a;(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("mds-calendar").forEach((function(a){if(t.internalStartDate!==""){a.setAttribute("start-date",t.internalStartDate)}else{a.removeAttribute("start-date")}if(t.internalEndDate!==""){a.setAttribute("end-date",t.internalEndDate)}else{a.removeAttribute("end-date")}}));this.syncCalendarsHoverAttributes()};t.prototype.syncCalendarsHoverAttributes=function(){var t=this;var a;(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("mds-calendar").forEach((function(a){if(t.hoveredCalendarDate!==null&&t.hoveredCalendarDate!==""){a.setAttribute("hover-date",t.hoveredCalendarDate)}else{a.removeAttribute("hover-date")}}))};t.prototype.clearHoverPreview=function(){if(this.hoveredCalendarDate===null)return;this.hoveredCalendarDate=null;this.syncCalendarsHoverAttributes()};t.prototype.getEmittableDateRangeDetail=function(){var t=DateTime.fromISO(this.internalStartDate);var a=DateTime.fromISO(this.internalEndDate);if(!t.isValid||!a.isValid){return null}return{startDate:this.internalStartDate,endDate:this.internalEndDate}};t.prototype.emitValueChanged=function(){var t=this.getEmittableDateRangeDetail();if(!t)return false;if(t.startDate===this.lastEmittedStartDate&&t.endDate===this.lastEmittedEndDate){return false}this.valueChanged.emit(t);this.lastEmittedStartDate=t.startDate;this.lastEmittedEndDate=t.endDate;return true};t.prototype.handleStartDateChange=function(t){this.syncExternalDate("start",t)};t.prototype.handleEndDateChange=function(t){this.syncExternalDate("end",t)};t.prototype.componentWillLoad=function(){var t,a;
38
+ this.nameSlottedFields=function(){[["start",a.t.get("startDate")],["end",a.t.get("endDate")]].forEach((function(t){var e=t[0],i=t[1];var r;var n=a.host.querySelector('[slot="'.concat(e,'"]'));if(n===null)return;setAttributeIfEmpty(n,"aria-label",((r=a.accessibleName)!==null&&r!==void 0?r:"")!==""?"".concat(a.accessibleName,", ").concat(i):i)}))};this.isDisabled=function(){return!!a.disabled||a.formDisabled};this.handleCalendarHover=function(t){if(a.internalStartDate===""||a.internalEndDate!==""){a.clearHoverPreview();return}var e=t.detail.hoverDate;if(a.hoveredCalendarDate===e)return;a.hoveredCalendarDate=e;a.syncCalendarsHoverAttributes()};this.handleCalendarChange=function(t){a.clearHoverPreview();a.internalStartDate=t.detail.startDate;a.updateInputValue("start",a.internalStartDate);if(t.detail.endDate!==undefined&&t.detail.endDate!==""){a.internalEndDate=t.detail.endDate;a.updateInputValue("end",a.internalEndDate)}else{a.internalEndDate="";a.updateInputValue("end",a.internalEndDate)}a.syncFormValue();a.syncCalendarsSelectionAttributes();if(a.internalStartDate!==""&&a.internalEndDate!==""){a.emitValueChanged();a.closeDropdownAfterSelection()}};this.handleCalendarNavigate=function(t){if(!a.dualCalendar)return;var e=a.getCalendars();var i=e.indexOf(t.target);var r=DateTime.fromISO(t.detail.currentDate);if(!r.isValid)return;a.visibleCalendarDate=r.minus({months:i===1?1:0}).startOf("month").toISODate()};this.handleCalendarPreselect=function(){a.checkPreselections()};this.handleOpenCalendarClick=function(){a.calendarKey+=1}}t.prototype.getCalendars=function(){var t,a;return Array.from((a=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("mds-calendar"))!==null&&a!==void 0?a:[])};t.prototype.resolveVisibleCalendarDate=function(t,a){var e;var i=[t,a].map((function(t){return DateTime.fromISO(t!==null&&t!==void 0?t:"")})).filter((function(t){return t.isValid}));var r=(e=i[0])!==null&&e!==void 0?e:DateTime.now();return r.startOf("month").toISODate()};t.prototype.getCalendarViewDate=function(t){if(t===void 0){t=0}var a=DateTime.fromISO(this.visibleCalendarDate);var e=DateTime.fromISO(this.internalStartDate);var i=DateTime.now();if(a.isValid){i=a}else if(e.isValid){i=e}return i.startOf("month").plus({months:t}).toISODate()};t.prototype.setVisibleCalendarDate=function(t){var a=DateTime.fromISO(t);if(a.isValid){this.visibleCalendarDate=a.startOf("month").toISODate()}};t.prototype.closeDropdownAfterSelection=function(){if(this.delay===0)return;var t=this.dropdownRef;if(t){setTimeout((function(){t.visible=false}),this.delay)}};t.prototype.syncCalendarsSelectionAttributes=function(){var t=this;var a;(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("mds-calendar").forEach((function(a){if(t.internalStartDate!==""){a.setAttribute("start-date",t.internalStartDate)}else{a.removeAttribute("start-date")}if(t.internalEndDate!==""){a.setAttribute("end-date",t.internalEndDate)}else{a.removeAttribute("end-date")}}));this.syncCalendarsHoverAttributes()};t.prototype.syncCalendarsHoverAttributes=function(){var t=this;var a;(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("mds-calendar").forEach((function(a){if(t.hoveredCalendarDate!==null&&t.hoveredCalendarDate!==""){a.setAttribute("hover-date",t.hoveredCalendarDate)}else{a.removeAttribute("hover-date")}}))};t.prototype.clearHoverPreview=function(){if(this.hoveredCalendarDate===null)return;this.hoveredCalendarDate=null;this.syncCalendarsHoverAttributes()};
39
+ /** A date inside `min` and `max`, the bounds that are set. */t.prototype.isWithinRange=function(t){var a,e;var i=DateTime.fromISO((a=this.min)!==null&&a!==void 0?a:"");var r=DateTime.fromISO((e=this.max)!==null&&e!==void 0?e:"");return!(i.isValid&&t<i)&&!(r.isValid&&t>r)};t.prototype.getEmittableDateRangeDetail=function(){var t=DateTime.fromISO(this.internalStartDate);var a=DateTime.fromISO(this.internalEndDate);if(!t.isValid||!a.isValid){return null}
40
+ // a date typed outside the window is flagged by its field, not emitted as a range
41
+ if(!this.isWithinRange(t)||!this.isWithinRange(a)){return null}return{startDate:this.internalStartDate,endDate:this.internalEndDate}};t.prototype.emitValueChanged=function(){var t=this.getEmittableDateRangeDetail();if(!t)return false;if(t.startDate===this.lastEmittedStartDate&&t.endDate===this.lastEmittedEndDate){return false}this.valueChanged.emit(t);this.lastEmittedStartDate=t.startDate;this.lastEmittedEndDate=t.endDate;return true};t.prototype.handleStartDateChange=function(t){this.syncExternalDate("start",t)};t.prototype.handleEndDateChange=function(t){this.syncExternalDate("end",t)};t.prototype.handleRangeChange=function(){this.forwardRange(true)};t.prototype.handleDisabledChange=function(){this.forwardDisabled(true)};
42
+ /**
43
+ * Bounds both fields, as the range promises: min and max reach the slotted dates, which flag a
44
+ * date typed outside them and report it to the form. At load a bound the range does not set
45
+ * leaves the one written on the field alone; a bound changed later always reaches the fields.
46
+ */t.prototype.forwardRange=function(t){var a=this;["start","end"].forEach((function(e){var i,r;var n=a.slottedField(e);if(n==null)return;if(t||((i=a.min)!==null&&i!==void 0?i:"")!=="")n.min=a.min;if(t||((r=a.max)!==null&&r!==void 0?r:"")!=="")n.max=a.max}))};
47
+ /**
48
+ * Disables both fields with the range. At load a range that is not disabled leaves a field
49
+ * disabled on its own alone; a disabled changed later always reaches the fields. A disabled
50
+ * fieldset needs no forwarding: the fields are inside it and follow it themselves.
51
+ */t.prototype.forwardDisabled=function(t){var a=this;["start","end"].forEach((function(e){var i=a.slottedField(e);if(i!=null&&(t||a.disabled))i.disabled=!!a.disabled}))};t.prototype.slottedField=function(t){var a;var e=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelector('slot[name="'.concat(t,'"]'));return e===null||e===void 0?void 0:e.assignedElements()[0]};t.prototype.componentWillLoad=function(){var t,a;
31
52
  // a null bound by a framework counts as no date, as the watchers already do
32
53
  this.internalStartDate=(t=this.startDate)!==null&&t!==void 0?t:"";this.internalEndDate=(a=this.endDate)!==null&&a!==void 0?a:"";this.initialStartDate=this.internalStartDate;this.initialEndDate=this.internalEndDate;this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.internalStartDate,this.internalEndDate);
33
54
  // Se max è precedente a min, imposto max uguale a min
34
- if(this.min!==null&&this.min!==""&&this.max!==null&&this.max!==""){var e=DateTime.fromISO(this.min);var r=DateTime.fromISO(this.max);if(r<e){this.max=this.min}}this.syncFormValue()};t.prototype.disconnectedCallback=function(){var t;this.host.removeEventListener("focusout",this.handleFocusOut);(t=this.host.shadowRoot)===null||t===void 0?void 0:t.removeEventListener("mdsCalendarHover",this.handleCalendarHover)};
55
+ if(this.min!==null&&this.min!==""&&this.max!==null&&this.max!==""){var e=DateTime.fromISO(this.min);var i=DateTime.fromISO(this.max);if(i<e){this.max=this.min}}this.syncFormValue()};t.prototype.disconnectedCallback=function(){var t;this.host.removeEventListener("focusout",this.handleFocusOut);(t=this.host.shadowRoot)===null||t===void 0?void 0:t.removeEventListener("mdsCalendarHover",this.handleCalendarHover)};
35
56
  /**
36
57
  * Applies the given preselection range to the input.
37
58
  * @param event the preselection range to apply
38
- */t.prototype.preselect=function(t){return __awaiter(this,void 0,void 0,(function(){var a,e,r;var i=this;return __generator(this,(function(n){switch(n.label){case 0:if(this.togglePreselection==null){this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))}this.togglePreselection.forEach((function(t){t.selected=false}));t.caller.selected=true;this.clearHoverPreview();a=DateTime.fromISO(t.start);if(a.isValid){this.internalStartDate=t.start;this.setVisibleCalendarDate(this.internalStartDate);this.updateInputValue("start",this.internalStartDate)}if(t.end!==undefined){e=DateTime.fromISO(t.end);if(e.isValid){this.internalEndDate=t.end}}else{this.internalEndDate=t.start}this.updateInputValue("end",this.internalEndDate);this.syncFormValue();r=this.getCalendars();if(!(r.length!==0))return[3/*break*/,2];return[4/*yield*/,Promise.all(r.map((function(t,a){return t.updateCurrentDate(i.getCalendarViewDate(a))})))];case 1:n.sent();this.closeDropdownAfterSelection();n.label=2;case 2:this.emitValueChanged();return[2/*return*/,Promise.resolve()]}}))}))};t.prototype.componentDidLoad=function(){var t;this.nameSlottedFields();this.updateInputListeners();this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.syncFormValue();this.host.addEventListener("focusout",this.handleFocusOut);(t=this.host.shadowRoot)===null||t===void 0?void 0:t.addEventListener("mdsCalendarHover",this.handleCalendarHover)};t.prototype.formResetCallback=function(){this.clearHoverPreview();this.internalStartDate=this.initialStartDate;this.internalEndDate=this.initialEndDate;this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.initialStartDate,this.initialEndDate);this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.checkPreselections();this.syncFormValue()};t.prototype.syncExternalDate=function(t,a){var e=a!==null&&a!==void 0?a:"";this.clearHoverPreview();if(t==="start"){if(e===this.internalStartDate)return;this.internalStartDate=e;this.setVisibleCalendarDate(this.internalStartDate)}else{if(e===this.internalEndDate)return;this.internalEndDate=e}this.validateDateRange();this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.checkPreselections();this.syncFormValue()};t.prototype.updateInputValue=function(t,a){var e=this;var r;var i=(r=this.host.shadowRoot)===null||r===void 0?void 0:r.querySelector('slot[name="'.concat(t,'"]'));var n=i===null||i===void 0?void 0:i.assignedElements()[0];if(n!=null){this.syncingInputSlots.add(t);n.setValue(a).finally((function(){requestAnimationFrame((function(){e.syncingInputSlots.delete(t)}))}))}};t.prototype.updateInputListeners=function(){var t,a;var e=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector('slot[name="start"]');var r=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelector('slot[name="end"]');this.hasPreselection=this.host.querySelector("mds-input-date-range-preselection")!==null;
59
+ */t.prototype.preselect=function(t){return __awaiter(this,void 0,void 0,(function(){var a,e,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:if(this.togglePreselection==null){this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))}this.togglePreselection.forEach((function(t){t.selected=false}));t.caller.selected=true;this.clearHoverPreview();a=DateTime.fromISO(t.start);if(a.isValid){this.internalStartDate=t.start;this.setVisibleCalendarDate(this.internalStartDate);this.updateInputValue("start",this.internalStartDate)}if(t.end!==undefined){e=DateTime.fromISO(t.end);if(e.isValid){this.internalEndDate=t.end}}else{this.internalEndDate=t.start}
60
+ // a preset ending before it starts snaps its end to the start, as a typed range does
61
+ this.validateDateRange();this.updateInputValue("end",this.internalEndDate);this.syncFormValue();i=this.getCalendars();if(!(i.length!==0))return[3/*break*/,2];return[4/*yield*/,Promise.all(i.map((function(t,a){return t.updateCurrentDate(r.getCalendarViewDate(a))})))];case 1:n.sent();this.closeDropdownAfterSelection();n.label=2;case 2:this.emitValueChanged();return[2/*return*/,Promise.resolve()]}}))}))};t.prototype.componentDidLoad=function(){var t;this.nameSlottedFields();this.forwardRange(false);this.forwardDisabled(false);this.updateInputListeners();this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);
62
+ // a preset matching the dates of load shows selected from the start
63
+ this.checkPreselections();this.syncFormValue();this.host.addEventListener("focusout",this.handleFocusOut);(t=this.host.shadowRoot)===null||t===void 0?void 0:t.addEventListener("mdsCalendarHover",this.handleCalendarHover)};t.prototype.formDisabledCallback=function(t){this.formDisabled=t;
64
+ // a calendar left open would still change the dates
65
+ if(t&&this.dropdownRef)this.dropdownRef.visible=false};t.prototype.formResetCallback=function(){this.clearHoverPreview();this.internalStartDate=this.initialStartDate;this.internalEndDate=this.initialEndDate;this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.initialStartDate,this.initialEndDate);this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.checkPreselections();this.syncFormValue()};t.prototype.syncExternalDate=function(t,a){var e=a!==null&&a!==void 0?a:"";this.clearHoverPreview();if(t==="start"){if(e===this.internalStartDate)return;this.internalStartDate=e;this.setVisibleCalendarDate(this.internalStartDate)}else{if(e===this.internalEndDate)return;this.internalEndDate=e}this.validateDateRange();this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.checkPreselections();this.syncFormValue()};t.prototype.updateInputValue=function(t,a){var e=this;var i=this.slottedField(t);if(i!=null){this.syncingInputSlots.add(t);i.setValue(a).finally((function(){requestAnimationFrame((function(){e.syncingInputSlots.delete(t)}))}))}};t.prototype.updateInputListeners=function(){var t,a;var e=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector('slot[name="start"]');var i=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelector('slot[name="end"]');this.hasPreselection=this.host.querySelector("mds-input-date-range-preselection")!==null;
39
66
  // assignedElements() is empty in the hydrate/SSR runtime (mock-doc):
40
67
  // listener wiring happens on the client
41
- var i=e===null||e===void 0?void 0:e.assignedElements()[0];if(i!=null){i.addEventListener("mdsInputDateSelect",this.createFocusoutListener("start"))}var n=r===null||r===void 0?void 0:r.assignedElements()[0];if(n!=null){n.addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}};t.prototype.createFocusoutListener=function(t){var a=this;return function(e){if(a.syncingInputSlots.has(t)){return}var r=e;a.clearHoverPreview();if(t==="start"){a.internalStartDate=r.detail;a.setVisibleCalendarDate(a.internalStartDate)}else{a.internalEndDate=r.detail}a.syncFormValue()}};t.prototype.validateDateRange=function(){if(this.internalStartDate!==""&&this.internalEndDate!==""){var t=DateTime.fromISO(this.internalStartDate);var a=DateTime.fromISO(this.internalEndDate);if(a<t){this.internalEndDate=this.internalStartDate;this.updateInputValue("end",this.internalEndDate)}}};t.prototype.checkPreselections=function(){var t=this;var a=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));if(a!=null){a.forEach((function(a){var e=a;var r=e.start===t.internalStartDate&&e.end===t.internalEndDate;var i=e.start===t.internalStartDate&&t.internalStartDate===t.internalEndDate&&e.end===undefined;if(r||i){e.selected=true}else{e.selected=false}}))}};t.prototype.renderCalendarPreselectionPanel=function(){if(!this.hasPreselection)return null;return h("div",{class:"calendar-preselection-panel"},h("div",{class:clsx("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},h("slot",{name:"calendar-preselection"})))};t.prototype.renderSingleCalendar=function(){return h("div",{class:"calendar-single"},this.renderCalendarPreselectionPanel(),h("mds-calendar",Object.assign({key:this.calendarKey,hideToday:this.hideToday,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{})))};t.prototype.renderDualCalendars=function(){return h("div",{class:"calendars"},this.renderCalendarPreselectionPanel(),h("mds-calendar",Object.assign({key:"".concat(this.calendarKey,"-start"),hideToday:this.hideToday,hideNextButton:true,disableMonthYearSelection:true,viewDate:this.getCalendarViewDate(),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{})),h("mds-calendar",Object.assign({key:"".concat(this.calendarKey,"-end"),hideToday:this.hideToday,hidePreviousButton:true,disableMonthYearSelection:true,viewDate:this.getCalendarViewDate(1),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{})))};t.prototype.render=function(){var t=this;return h(Host,{key:"718cf4ea938605b2569a5fa19e264cf176282a80",onClick:this.focusDateInput,"pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"f8dade2fe985e70d2943aee08d6f84123e53f38b",class:"inputs"},h("div",{key:"be2dd565a6364f3ccf287514ea5726e332577389",class:"input-element"},h("mds-text",{key:"a6c3e21e613ee60986acb06edc852f110357fc31",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),h("div",{key:"08cdedb27bcdcfd35b94e90ae261f64d8694b0ef",class:"input-wrapper"},h("slot",{key:"da01b0a0fc65c8cf7094cf0db83be1d942b332b1",name:"start"}))),h("div",{key:"63e620c85a9a23660645a0e28648912cbcd79919",class:"input-element"},h("mds-text",{key:"801f3a01f11502a5878e0ede645f238ef80fa388",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),h("div",{key:"fa57d66e7f8318685256e1febf35b291f7b59f19",class:"input-wrapper"},h("slot",{key:"68e860a29b253276b3ebb29b502e7c432bb1ea9c",name:"end"})))),h("div",{key:"cb145bf4822dda4e6dbe07240089944740b090fe",class:"action-open-calendar-wrapper"},h("mds-button",{key:"9216baaff6c990532db1c8366b054655065a399f",class:"action-open-calendar",variant:"dark",tone:"text",icon:miBaselineCalendarToday,id:"calendar-dropdown",onClick:this.handleOpenCalendarClick})),h("mds-dropdown",{key:"94f181ff090a617de824cd46ea21981806f7f40a",ref:function(a){return t.dropdownRef=a},target:"#calendar-dropdown","disable-auto-placement":true,placement:"bottom-end",role:"group"},this.dualCalendar?this.renderDualCalendars():this.renderSingleCalendar()))};t.prototype.syncFormValue=function(){var t,a,e,r;var i=(a=(t=this.internalStartDate)===null||t===void 0?void 0:t.trim())!==null&&a!==void 0?a:"";var n=(r=(e=this.internalEndDate)===null||e===void 0?void 0:e.trim())!==null&&r!==void 0?r:"";if(i===""&&n===""){setFormValue(this.internals,null);return}setFormValue(this.internals,JSON.stringify({startDate:i,endDate:n}))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}]}},enumerable:false,configurable:true});return t}();MdsInputDateRange.style=mdsInputDateRangeCss();export{MdsInputDateRange as mds_input_date_range};
68
+ var r=e===null||e===void 0?void 0:e.assignedElements()[0];if(r!=null){r.addEventListener("mdsInputDateSelect",this.createFocusoutListener("start"))}var n=i===null||i===void 0?void 0:i.assignedElements()[0];if(n!=null){n.addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}};t.prototype.createFocusoutListener=function(t){var a=this;return function(e){if(a.syncingInputSlots.has(t)){return}var i=e;a.clearHoverPreview();if(t==="start"){a.internalStartDate=i.detail;a.setVisibleCalendarDate(a.internalStartDate)}else{a.internalEndDate=i.detail}a.syncFormValue()}};t.prototype.validateDateRange=function(){if(this.internalStartDate!==""&&this.internalEndDate!==""){var t=DateTime.fromISO(this.internalStartDate);var a=DateTime.fromISO(this.internalEndDate);if(a<t){this.internalEndDate=this.internalStartDate;this.updateInputValue("end",this.internalEndDate)}}};t.prototype.checkPreselections=function(){var t=this;var a=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));if(a!=null){a.forEach((function(a){var e=a;var i=e.start===t.internalStartDate&&e.end===t.internalEndDate;var r=e.start===t.internalStartDate&&t.internalStartDate===t.internalEndDate&&e.end===undefined;if(i||r){e.selected=true}else{e.selected=false}}))}};t.prototype.renderCalendarPreselectionPanel=function(){if(!this.hasPreselection)return null;return h("div",{class:"calendar-preselection-panel"},h("div",{class:clsx("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},h("slot",{name:"calendar-preselection"})))};t.prototype.renderSingleCalendar=function(){return h("div",{class:"calendar-single"},this.renderCalendarPreselectionPanel(),h("mds-calendar",Object.assign({key:this.calendarKey,hideToday:this.hideToday,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{})))};t.prototype.renderDualCalendars=function(){return h("div",{class:"calendars"},this.renderCalendarPreselectionPanel(),h("mds-calendar",Object.assign({key:"".concat(this.calendarKey,"-start"),hideToday:this.hideToday,hideNextButton:true,disableMonthYearSelection:true,viewDate:this.getCalendarViewDate(),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{})),h("mds-calendar",Object.assign({key:"".concat(this.calendarKey,"-end"),hideToday:this.hideToday,hidePreviousButton:true,disableMonthYearSelection:true,viewDate:this.getCalendarViewDate(1),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{})))};t.prototype.render=function(){var t=this;return h(Host,{key:"a4e8ec428307b1f97e36c7bb9043161492402c55",onClick:this.focusDateInput,"pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"b268dca893e7aed56b485ab2d4aac7da87cd2281",class:"inputs"},h("div",{key:"956cd85c968e0b390643e7faba8dbdb129c8f7ca",class:"input-element"},h("mds-text",{key:"c87e22b6dca6c6128d01cfa0344650839727b457",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),h("div",{key:"ee0e90044817fab1ea582e8a21bcb886771f5e28",class:"input-wrapper"},h("slot",{key:"85362085edd727aca5c20e969294c8d3e79f2c8a",name:"start"}))),h("div",{key:"e3839ed897233bf7a3f10f37304abc636bb9f595",class:"input-element"},h("mds-text",{key:"674476a4fcb3c532f4b06f55518d01405e1ade51",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),h("div",{key:"f50b01476fa382d240b620e1036c05f7726f12b5",class:"input-wrapper"},h("slot",{key:"f114e11c0715a6257374d40a16c2f8ab74ca68a2",name:"end"})))),h("div",{key:"641ea2c039b9c275b0bcf37237fab78d17f9f0b2",class:"action-open-calendar-wrapper"},h("mds-button",{key:"d24d7b2d4b0ba45e87388208499181031785ceb3",class:"action-open-calendar",disabled:this.isDisabled(),variant:"dark",tone:"text",icon:miBaselineCalendarToday,id:"calendar-dropdown",onClick:this.handleOpenCalendarClick})),h("mds-dropdown",{key:"74b9b52ea2c08752de62593cc7d92db3552502ed",ref:function(a){return t.dropdownRef=a},target:"#calendar-dropdown","disable-auto-placement":true,placement:"bottom-end",role:"group"},this.dualCalendar?this.renderDualCalendars():this.renderSingleCalendar()))};t.prototype.syncFormValue=function(){var t,a,e,i;var r=(a=(t=this.internalStartDate)===null||t===void 0?void 0:t.trim())!==null&&a!==void 0?a:"";var n=(i=(e=this.internalEndDate)===null||e===void 0?void 0:e.trim())!==null&&i!==void 0?i:"";if(r===""&&n===""){setFormValue(this.internals,null);return}setFormValue(this.internals,JSON.stringify({startDate:r,endDate:n}))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}],min:[{handleRangeChange:0}],max:[{handleRangeChange:0}],disabled:[{handleDisabledChange:0}]}},enumerable:false,configurable:true});return t}();MdsInputDateRange.style=mdsInputDateRangeCss();export{MdsInputDateRange as mds_input_date_range};
@@ -1,4 +1,12 @@
1
- var __awaiter=this&&this.__awaiter||function(t,a,e,r){function i(t){return t instanceof e?t:new e((function(a){a(t)}))}return new(e||(e=Promise))((function(e,n){function s(t){try{d(r.next(t))}catch(t){n(t)}}function o(t){try{d(r["throw"](t))}catch(t){n(t)}}function d(t){t.done?e(t.value):i(t.value).then(s,o)}d((r=r.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(a){return d([t,a])}}function d(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(e=0)),e)try{if(r=1,i&&(n=o[0]&2?i["return"]:o[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;if(i=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(n=e.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){e.label=o[1];break}if(o[0]===6&&e.label<n[1]){e.label=n[1];n=o;break}if(n&&e.label<n[2]){e.label=n[2];e.ops.push(o);break}if(n[2])e.ops.pop();e.trys.pop();continue}o=a.call(t,e)}catch(t){o=[6,t];i=0}finally{r=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{s as setFormValue}from"./form-A9TZf0Ii.js";import{m as miBaselineCalendarToday}from"./calendar-today-BVQMG7KJ.js";import{D as DateTime}from"./datetime-BJtA1qmE.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";var mdsInputDateCss=function(){return'@layer reset,vendor,theme,base,components,utilities;:host{--mds-input-date-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-date-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-input-date-field-background-empty:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-input-date-field-color-empty:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-input-date-icon-color-rgb:var(--mds-input-date-variant-color-rgb,0 0 0);--mds-input-date-ring:0 0 0 1px rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.1);--mds-input-date-shadow:0 1px 3px 0 rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.1),0 1px 2px 0 rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.06);--mds-input-tip-horizontal-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*1000);--mds-input-tip-vertical-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))));--mds-input-date-transition-duration:var(--duration-300,.3s);--private-input-date-transition-duration:var(--mds-input-date-transition-duration);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));corner-shape:var(--magma-corner-shape,squircle);container-type:inline-size;display:flex;gap:calc(var(--spacing,.0025rem)*200);overflow:visible;position:relative;--mds-input-date-icon-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-date-variant-color-rgb:0 0 0}.input::-webkit-calendar-picker-indicator{appearance:textfield;display:none}.input{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-hack,.875rem);font-weight:var(--tw-font-weight,var(--text-size-code-hack--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-hack--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:inherit;box-sizing:border-box;color:inherit;corner-shape:inherit;background-color:#0000;border:0;margin:0;overflow:hidden;text-overflow:ellipsis;-webkit-transition-duration:var(--private-input-date-transition-duration);transition-duration:var(--private-input-date-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:min-content}:host([empty]) .input{background-color:var(--mds-input-date-field-background-empty,rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230))));color:var(--mds-input-date-field-color-empty,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))))}:host([slot]){color:inherit;display:contents}:host([slot]) .input{cursor:text;text-align:center}:host(:not([slot])) .input{background-color:var(--mds-input-date-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));-webkit-box-shadow:var(--mds-input-date-ring),var(--mds-input-date-shadow);box-shadow:var(--mds-input-date-ring),var(--mds-input-date-shadow);min-height:3rem;padding-left:calc(var(--spacing,.0025rem)*400);padding-right:calc(var(--spacing,.0025rem)*1200);width:100%}:host(:focus-within) .input{--tw-outline-style:none;outline-style:none;transition-duration:var(--default-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--default-transition-timing-function);--mds-input-date-ring:0 0 0 3px rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/1);--mds-input-date-shadow:0 4px 6px 3px rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.1),0 2px 4px -1px rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.06);-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}.input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}.input::-webkit-inner-spin-button,.input::-webkit-outer-spin-button{appearance:none;display:none;margin:0}.input:disabled{background-color:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))}.input:disabled::placeholder{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:disabled:-ms-placeholder-shown{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:disabled::-moz-placeholder{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:disabled,.input:disabled::placeholder{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.action-open-calendar-wrapper{align-items:center;aspect-ratio:1;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0}.action-open-calendar{--mds-button-color:var(--mds-input-date-icon-color,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));align-self:center}mds-calendar{min-width:min-content;width:100cqw}mds-dropdown{padding:0}mds-input-tip{--mds-input-tip-horizontal-offset:inherit;--mds-input-tip-horizontal-offset-focused:inherit;--mds-input-tip-vertical-offset:inherit;--mds-input-tip-background:inherit}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar,mds-dropdown,mds-input-tip,mds-input-tip-item):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-date-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-date-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}:host([pref-contrast=more]){--mds-input-date-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([pref-contrast=more]) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}@supports ((-moz-appearance:none)){.action-open-calendar{display:none}:host(:not([slot])) .input{padding-right:calc(var(--spacing,.0025rem)*400)}}:host(:focus){--mds-input-date-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-date-variant-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([variant=ai]){--mds-input-date-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-input-tip-background:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=ai]:focus){--mds-input-date-icon-color:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-date-variant-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)))}:host([variant=info]){--mds-input-date-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=info]:focus){--mds-input-date-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-date-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=success]:focus){--mds-input-date-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-date-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=warning]:focus){--mds-input-date-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-date-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=error]:focus){--mds-input-date-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}@media (forced-colors:active){:host(:focus-within) .input{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-date-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-date-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-date-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::-webkit-input-placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}}'};var MdsInputDate=/** @class */function(){function t(t){var a=this;registerInstance(this,t);this.validationEvent=createEvent(this,"mdsInputValidation",7);this.valueChange=createEvent(this,"mdsInputDateSelect",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.isSlotted=false;this.empty=undefined;this.touched=false;
1
+ var __awaiter=this&&this.__awaiter||function(t,a,e,r){function i(t){return t instanceof e?t:new e((function(a){a(t)}))}return new(e||(e=Promise))((function(e,n){function s(t){try{d(r.next(t))}catch(t){n(t)}}function o(t){try{d(r["throw"](t))}catch(t){n(t)}}function d(t){t.done?e(t.value):i(t.value).then(s,o)}d((r=r.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(a){return d([t,a])}}function d(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(e=0)),e)try{if(r=1,i&&(n=o[0]&2?i["return"]:o[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;if(i=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(n=e.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){e.label=o[1];break}if(o[0]===6&&e.label<n[1]){e.label=n[1];n=o;break}if(n&&e.label<n[2]){e.label=n[2];e.ops.push(o);break}if(n[2])e.ops.pop();e.trys.pop();continue}o=a.call(t,e)}catch(t){o=[6,t];i=0}finally{r=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{s as setFormValue}from"./form-wI0alRSO.js";import{u as updateValidity}from"./index-BhCZiGfL.js";import{m as miBaselineCalendarToday}from"./calendar-today-BVQMG7KJ.js";import{D as DateTime}from"./datetime-BJtA1qmE.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";import"./locale-CVJm6KFD.js";var mdsInputDateCss=function(){return'@layer reset,vendor,theme,base,components,utilities;:host{--mds-input-date-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-date-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-input-date-field-background-empty:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-input-date-field-color-empty:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-input-date-icon-color-rgb:var(--mds-input-date-variant-color-rgb,0 0 0);--mds-input-date-ring:0 0 0 1px rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.1);--mds-input-date-shadow:0 1px 3px 0 rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.1),0 1px 2px 0 rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.06);--mds-input-tip-horizontal-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*1000);--mds-input-tip-vertical-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))));--mds-input-date-transition-duration:var(--duration-300,.3s);--private-input-date-transition-duration:var(--mds-input-date-transition-duration);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));corner-shape:var(--magma-corner-shape,squircle);container-type:inline-size;display:flex;gap:calc(var(--spacing,.0025rem)*200);overflow:visible;position:relative;--mds-input-date-icon-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-date-variant-color-rgb:0 0 0}.input::-webkit-calendar-picker-indicator{appearance:textfield;display:none}.input{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-hack,.875rem);font-weight:var(--tw-font-weight,var(--text-size-code-hack--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-hack--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:inherit;box-sizing:border-box;color:inherit;corner-shape:inherit;background-color:#0000;border:0;margin:0;overflow:hidden;text-overflow:ellipsis;-webkit-transition-duration:var(--private-input-date-transition-duration);transition-duration:var(--private-input-date-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:min-content}:host([empty]) .input{background-color:var(--mds-input-date-field-background-empty,rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230))));color:var(--mds-input-date-field-color-empty,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))))}:host([slot]){color:inherit;display:contents}:host([slot]) .input{cursor:text;text-align:center}:host(:not([slot])) .input{background-color:var(--mds-input-date-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));-webkit-box-shadow:var(--mds-input-date-ring),var(--mds-input-date-shadow);box-shadow:var(--mds-input-date-ring),var(--mds-input-date-shadow);min-height:3rem;padding-left:calc(var(--spacing,.0025rem)*400);padding-right:calc(var(--spacing,.0025rem)*1200);width:100%}:host(:focus-within) .input{--tw-outline-style:none;outline-style:none;transition-duration:var(--default-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--default-transition-timing-function);--mds-input-date-ring:0 0 0 3px rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/1);--mds-input-date-shadow:0 4px 6px 3px rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.1),0 2px 4px -1px rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.06);-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}.input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}.input::-webkit-inner-spin-button,.input::-webkit-outer-spin-button{appearance:none;display:none;margin:0}.input:disabled{background-color:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))}.input:disabled::placeholder{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:disabled:-ms-placeholder-shown{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:disabled::-moz-placeholder{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:disabled,.input:disabled::placeholder{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.action-open-calendar-wrapper{align-items:center;aspect-ratio:1;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0}.action-open-calendar{--mds-button-color:var(--mds-input-date-icon-color,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));align-self:center}mds-calendar{min-width:min-content;width:100cqw}mds-dropdown{padding:0}mds-input-tip{--mds-input-tip-horizontal-offset:inherit;--mds-input-tip-horizontal-offset-focused:inherit;--mds-input-tip-vertical-offset:inherit;--mds-input-tip-background:inherit}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar,mds-dropdown,mds-input-tip,mds-input-tip-item):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-date-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-date-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}:host([pref-contrast=more]){--mds-input-date-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([pref-contrast=more]) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}@supports ((-moz-appearance:none)){.action-open-calendar{display:none}:host(:not([slot])) .input{padding-right:calc(var(--spacing,.0025rem)*400)}}:host(:focus){--mds-input-date-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-date-variant-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([variant=ai]){--mds-input-date-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-input-tip-background:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=ai]:focus){--mds-input-date-icon-color:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-date-variant-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)))}:host([variant=info]){--mds-input-date-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=info]:focus){--mds-input-date-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-date-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=success]:focus){--mds-input-date-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-date-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=warning]:focus){--mds-input-date-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-date-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=error]:focus){--mds-input-date-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}@media (forced-colors:active){:host(:focus-within) .input{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-date-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-date-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-date-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::-webkit-input-placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}}'};var MdsInputDate=/** @class */function(){function t(t){var a=this;registerInstance(this,t);this.validationEvent=createEvent(this,"mdsInputValidation",7);this.valueChange=createEvent(this,"mdsInputDateSelect",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}
2
+ // the disabled state of the host as a form control: its own disabled, or a disabled fieldset
3
+ // around it, which disables the host but not the native control in its shadow root
4
+ this.formDisabled=false;this.isSlotted=false;
5
+ // the value at load, which a form reset brings back as the value attribute of a native input
6
+ this.defaultValue="";this.empty=undefined;
7
+ // true once the user has edited or left the field, or a stopped submit pointed at it: from then
8
+ // on the validation drives the variant, like :user-invalid on a native control
9
+ this.touched=false;
2
10
  /**
3
11
  * Specifies the value of the input
4
12
  * @description It's in ISO format (YYYY-MM-DD).
@@ -29,12 +37,28 @@ var __awaiter=this&&this.__awaiter||function(t,a,e,r){function i(t){return t ins
29
37
  */this.readonly=false;
30
38
  /**
31
39
  * Specifies that the element must be filled out before submitting the form
32
- */this.required=false;this.calendarKey=0;this.hasFocus=false;this.handleChange=function(t){var e=t.target;a.touched=true;
40
+ */this.required=false;this.calendarKey=0;this.hasFocus=false;this.isDisabled=function(){return!!a.disabled||a.formDisabled};this.handleChange=function(t){var e=t.target;a.touched=true;
33
41
  // manage case when i insert 0 on date and default input behavior change in 01 instead of resetting all date
34
- if(e.value!=="")a.value=e.value;a.validateValue(e.validity.badInput)};this.onBlur=function(t){var e=t.target;a.hasFocus=false;a.value=e.value;a.validateValue(e.validity.badInput)};this.onFocus=function(t){var e=t.target;a.hasFocus=true;if(a.readonly){
42
+ if(e.value!=="")a.value=e.value;a.validateValue(e.validity.badInput)};this.onBlur=function(t){var e=t.target;a.hasFocus=false;a.touched=true;a.value=e.value;a.validateValue(e.validity.badInput)};this.onFocus=function(t){var e=t.target;a.hasFocus=true;if(a.readonly){
35
43
  // setTimeout to avoid Safari 14.1.2
36
44
  // to unselect text when mouse is clicked slowly
37
- setTimeout((function(){e.select()}),10)}};this.handleOpenCalendarClick=function(){a.calendarKey+=1};this.handleCalendarChange=function(t){a.value=t.detail.startDate;if(a.delay===0)return;var e=a.dropdownRef;if(e){setTimeout((function(){e.visible=false}),a.delay)}}}t.prototype.handleValue=function(){this.valueChange.emit(this.value);this.validateValue()};t.prototype.validateValue=function(t){if(t===void 0){t=false}var a=DateTime.fromISO(this.value);var e=Boolean(this.value);var r=e&&!a.isValid;var i=this.required&&!e;var n=a.isValid&&(this.max&&DateTime.fromISO(this.max)<a||this.min&&DateTime.fromISO(this.min)>a);if(t||r||i||n){this.isValid=false;this.variant="error";setFormValue(this.internals,null);this.empty=t||r?true:undefined}else{this.isValid=true;this.variant="primary";setFormValue(this.internals,this.value);this.empty=undefined}this.validationEvent.emit(this.isValid)};
45
+ setTimeout((function(){e.select()}),10)}};this.handleOpenCalendarClick=function(){a.calendarKey+=1};this.handleCalendarChange=function(t){a.touched=true;a.value=t.detail.startDate;if(a.delay===0)return;var e=a.dropdownRef;if(e){setTimeout((function(){e.visible=false}),a.delay)}}}t.prototype.handleValue=function(){this.valueChange.emit(this.value);this.validateValue()};
46
+ /**
47
+ * Checks the value: the validity reported to the form and the required tip follow it at once,
48
+ * the variant and `mdsInputValidation` only once the field is touched.
49
+ */t.prototype.validateValue=function(t){if(t===void 0){t=false}var a=DateTime.fromISO(this.value);var e=Boolean(this.value);var r=e&&!a.isValid;this.problem=this.findProblem(a,t||r);this.isValid=this.problem===undefined;setFormValue(this.internals,this.isValid?this.value:null);this.empty=t||r?true:undefined;this.updateFormValidity();if(!this.touched)return;this.variant=this.isValid?"primary":"error";this.validationEvent.emit(this.isValid)};
50
+ /**
51
+ * A submit stopped by an invalid date, or a `checkValidity()` of its form, touches the field, so
52
+ * that it shows what is wrong.
53
+ */t.prototype.invalidHandler=function(){this.touched=true;this.validateValue()};
54
+ /** The rule the value breaks, `undefined` when it breaks none. */t.prototype.findProblem=function(t,a){var e,r,i;if(a)return{rule:"invalidDate"};if(this.required&&((e=this.value)!==null&&e!==void 0?e:"")==="")return{rule:"required"};if(!t.isValid)return undefined;if(((r=this.max)!==null&&r!==void 0?r:"")!==""&&DateTime.fromISO(this.max)<t){return{rule:"maxDate",context:{max:this.formatDate(this.max)}}}if(((i=this.min)!==null&&i!==void 0?i:"")!==""&&DateTime.fromISO(this.min)>t){return{rule:"minDate",context:{min:this.formatDate(this.min)}}}return undefined};
55
+ /** An ISO date as the page language writes it, for the messages. */t.prototype.formatDate=function(t){return DateTime.fromISO(t).setLocale(preferenceStore.state.language).toLocaleString(DateTime.DATE_SHORT)};
56
+ /**
57
+ * Reports the validity of the value to the form, with the rules that drive the variant: like a
58
+ * native control, an invalid date stops the submit of its form.
59
+ */t.prototype.updateFormValidity=function(){var t,a;var e=(a=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".input"))!==null&&a!==void 0?a:undefined;updateValidity(this.internals,this.problem,e)};t.prototype.componentDidRender=function(){
60
+ // the native input the message points at exists from the first render on
61
+ this.updateFormValidity()};
38
62
  /**
39
63
  * Sets focus on the underlying input element.
40
64
  */t.prototype.focusInput=function(){return __awaiter(this,void 0,void 0,(function(){var t,a;return __generator(this,(function(e){a=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".input");a.focus();return[2/*return*/]}))}))};
@@ -45,6 +69,22 @@ setTimeout((function(){e.select()}),10)}};this.handleOpenCalendarClick=function(
45
69
  /**
46
70
  * Returns the current validation errors, or `null` if the value is valid.
47
71
  * @returns the validation errors, or `null` when valid
48
- */t.prototype.getErrors=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2/*return*/,Promise.resolve(this.isValid?null:{error:""})]}))}))};t.prototype.formResetCallback=function(){setFormValue(this.internals,"")};t.prototype.componentWillLoad=function(){this.isSlotted=!(this.host.getAttribute("slot")===null||this.host.getAttribute("slot")==="");this.value=this.value||"";
49
- // Se max è precedente a min, imposto max uguale a min
50
- if(this.min!==null&&this.min!==""&&this.max!==null&&this.max!==""){var t=DateTime.fromISO(this.min);var a=DateTime.fromISO(this.max);if(a<t){this.max=this.min}}this.validateValue()};t.prototype.render=function(){var t=this;return h(Host,{key:"7deeee86a7a4e6e1012355daf9a8c1f20699dc79",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:"5638b0605b339535385d0d8fdb5b5b404697b814","aria-label":this.accessibleName,value:this.value,id:"dateInput",class:"input",part:"input-date",type:"date",disabled:this.disabled,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.handleChange,onChange:this.handleChange}),!this.isSlotted&&h("div",{key:"d86699480eeb7d0b0fa9550533433ccdedfe2cb8",class:"action-open-calendar-wrapper"},h("mds-button",{key:"d944ac7e9773439413e1124a78d251206009996f",id:"calendar-dropdown",class:"action-open-calendar",disabled:this.disabled,variant:"dark",tone:"text",icon:miBaselineCalendarToday,onClick:this.handleOpenCalendarClick})),h("mds-input-tip",{key:"f4a794937ef3456f9a1c8c78b287041a997a89cd",position:"top",active:this.hasFocus},this.disabled&&h("mds-input-tip-item",{key:"69b8aa28e6c25ece212a6ccb6fab01399ca2ebd3",expanded:true,variant:"disabled"}),this.readonly&&h("mds-input-tip-item",{key:"879abd3cbf773214934813fd68f09562ae67022a",expanded:true,variant:"readonly"}),this.required&&h("mds-input-tip-item",{key:"a9fa986de0a67f1e7d05fbb62348758459978a25",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),!this.isSlotted&&h("mds-dropdown",{key:"3f05e1b4705dcfc380ecd0f97a7bd957ce7c2ecf",placement:"bottom-end","disable-auto-placement":true,ref:function(a){return t.dropdownRef=a},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}:{}))))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:[{handleValue:0}]}},enumerable:false,configurable:true});return t}();MdsInputDate.style=mdsInputDateCss();export{MdsInputDate as mds_input_date};
72
+ */t.prototype.getErrors=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2/*return*/,Promise.resolve(this.isValid?null:{error:""})]}))}))};t.prototype.formDisabledCallback=function(t){this.formDisabled=t};
73
+ /**
74
+ * Like a native input, a form reset brings back the value of load and forgets the interaction:
75
+ * the field looks pristine until the user edits or leaves it again.
76
+ */t.prototype.formResetCallback=function(){var t;var a=this.touched;this.touched=false;
77
+ // the native input can hold a partial date that never reached the value
78
+ var e=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".input");if(e)e.value=this.defaultValue;this.value=this.defaultValue;this.validateValue();if(a)this.variant="primary"};t.prototype.componentWillLoad=function(){this.isSlotted=!(this.host.getAttribute("slot")===null||this.host.getAttribute("slot")==="");this.value=this.value||"";this.defaultValue=this.value;this.clampRange();this.validateValue()};
79
+ /**
80
+ * Snaps `max` to `min` when the range is reversed.
81
+ * @returns true when `max` changed
82
+ */t.prototype.clampRange=function(){if(this.min===null||this.min===""||this.max===null||this.max==="")return false;if(DateTime.fromISO(this.max)<DateTime.fromISO(this.min)){this.max=this.min;return true}return false};
83
+ /**
84
+ * Validates again when a rule changes after load, as it does with the React wrappers under SSR,
85
+ * which set the props on an element that has already loaded.
86
+ */t.prototype.validationRulesChanged=function(){
87
+ // a reversed range snaps max to min, and that change runs this watcher again
88
+ if(this.clampRange())return;this.validateValue()};t.prototype.render=function(){var t=this;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",
89
+ // a read-only date cannot change, from the calendar either
90
+ 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:function(a){return t.dropdownRef=a},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}:{}))))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:[{handleValue:0}],max:[{validationRulesChanged:0}],min:[{validationRulesChanged:0}],required:[{validationRulesChanged:0}]}},enumerable:false,configurable:true});return t}();MdsInputDate.style=mdsInputDateCss();export{MdsInputDate as mds_input_date};
@@ -1,4 +1,4 @@
1
- import{r as registerInstance,h,e as Host,g as getElement}from"./index-DIiEV39g.js";var mdsInputFieldCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-field-message-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-input-field-message-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));corner-shape:var(--magma-corner-shape,squircle);display:grid;gap:calc(var(--spacing,.0025rem)*300)}.message-window{border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));color:var(--mds-input-field-message-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));corner-shape:inherit;background-color:#0000;display:grid;gap:0;padding:0;-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:background-color,color,gap,padding;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.message-window:has(.message:not(:empty)){background-color:var(--mds-input-field-message-background,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237)))));gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*200)}.message{interpolate-size:allow-keywords;display:flex;flex-direction:column;height:auto;padding:calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*200);-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:height,margin-top,opacity,padding;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.message:empty{height:0;max-height:0;opacity:0;padding:0}.label:empty{display:none}.content{container:content/inline-size;display:flex;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*200)}::slotted(:first-child){flex-grow:1}::slotted(:not(:first-child)){flex-shrink:0}@container content (max-width:300px){::slotted(*){flex-grow:1;min-width:100%}}:host([variant=ai]){--mds-input-field-message-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))));--mds-input-field-message-background:rgb(var(--magma-accent-ai-surface,var(--magma-tint-accent-ai-surface,var(--variant-ai-09,229 218 253))))}:host([variant=info]){--mds-input-field-message-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-input-field-message-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)))}:host([variant=success]){--mds-input-field-message-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-input-field-message-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)))}:host([variant=warning]){--mds-input-field-message-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-input-field-message-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)))}:host([variant=error]){--mds-input-field-message-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-input-field-message-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)))}:host([variant=info]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-variant-color-rgb:0 0 0}:host([variant=info]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=warning]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-variant-color-rgb:0 0 0}:host([variant=warning]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=success]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-variant-color-rgb:0 0 0}:host([variant=success]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=error]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-variant-color-rgb:0 0 0}:host([variant=error]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}"};var MdsInputField=/** @class */function(){function a(a){var t=this;registerInstance(this,a);
1
+ import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.js";var mdsInputFieldCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-field-message-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-input-field-message-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));corner-shape:var(--magma-corner-shape,squircle);display:grid;gap:calc(var(--spacing,.0025rem)*300)}.message-window{border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));color:var(--mds-input-field-message-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));corner-shape:inherit;background-color:#0000;display:grid;gap:0;padding:0;-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:background-color,color,gap,padding;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.message-window:has(.message:not(:empty)){background-color:var(--mds-input-field-message-background,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237)))));gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*200)}.message{interpolate-size:allow-keywords;display:flex;flex-direction:column;height:auto;padding:calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*200);-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:height,margin-top,opacity,padding;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.message:empty{height:0;max-height:0;opacity:0;padding:0}.label:empty{display:none}.content{container:content/inline-size;display:flex;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*200)}::slotted(:first-child){flex-grow:1}::slotted(:not(:first-child)){flex-shrink:0}@container content (max-width:300px){::slotted(*){flex-grow:1;min-width:100%}}:host([variant=ai]){--mds-input-field-message-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))));--mds-input-field-message-background:rgb(var(--magma-accent-ai-surface,var(--magma-tint-accent-ai-surface,var(--variant-ai-09,229 218 253))))}:host([variant=info]){--mds-input-field-message-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-input-field-message-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)))}:host([variant=success]){--mds-input-field-message-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-input-field-message-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)))}:host([variant=warning]){--mds-input-field-message-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-input-field-message-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)))}:host([variant=error]){--mds-input-field-message-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-input-field-message-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)))}:host([variant=info]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-variant-color-rgb:0 0 0}:host([variant=info]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=warning]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-variant-color-rgb:0 0 0}:host([variant=warning]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=success]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-variant-color-rgb:0 0 0}:host([variant=success]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=error]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-variant-color-rgb:0 0 0}:host([variant=error]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}"};var MdsInputField=/** @class */function(){function a(a){var t=this;registerInstance(this,a);
2
2
  // the slotted control renders its native input inside its own shadow root, where neither a
3
3
  // `<label for>` nor an `aria-labelledby` of this one could reach it, an IDREF not crossing the
4
4
  // shadow boundary: the label travels down as the accessible name of the control instead
@@ -1,4 +1,11 @@
1
- import{r as registerInstance,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{s as setFormValue}from"./form-A9TZf0Ii.js";import{L as Locale}from"./locale-CbJbTW_c.js";import"./preference-CKerJx2M.js";var digit$3="Ψηφίο {{position}} από {{length}}";var localeEl={digit:digit$3};var digit$2="Digit {{position}} of {{length}}";var localeEn={digit:digit$2};var digit$1="Dígito {{position}} de {{length}}";var localeEs={digit:digit$1};var digit="Cifra {{position}} di {{length}}";var localeIt={digit:digit};var mdsInputOtpCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host{display:inline-flex;gap:calc(var(--spacing,.0025rem)*400)}.input{width:calc(var(--spacing,.0025rem)*1200)}.input::part(field){text-align:center}.input::part(tip-count){display:none}"};var MdsInputOtp=/** @class */function(){function t(t){var i=this;registerInstance(this,t);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});
1
+ var __spreadArray=this&&this.__spreadArray||function(t,i,e){if(e||arguments.length===2)for(var n=0,r=i.length,s;n<r;n++){if(s||!(n in i)){if(!s)s=Array.prototype.slice.call(i,0,n);s[n]=i[n]}}return t.concat(s||Array.prototype.slice.call(i))};import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{s as setFormValue}from"./form-wI0alRSO.js";import{L as Locale}from"./locale-CVJm6KFD.js";import"./preference-DNNqH7BU.js";var digit$3="Ψηφίο {{position}} από {{length}}";var localeEl={digit:digit$3};var digit$2="Digit {{position}} of {{length}}";var localeEn={digit:digit$2};var digit$1="Dígito {{position}} de {{length}}";var localeEs={digit:digit$1};var digit="Cifra {{position}} di {{length}}";var localeIt={digit:digit};var mdsInputOtpCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host{display:inline-flex;gap:calc(var(--spacing,.0025rem)*400)}.input{width:calc(var(--spacing,.0025rem)*1200)}.input::part(field){text-align:center}.input::part(tip-count),.input::part(tip-top){display:none}"};var MdsInputOtp=/** @class */function(){function t(t){var i=this;registerInstance(this,t);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}
2
+ // the value of load, which a form reset brings back as the value attribute of a native input
3
+ this.loadValue="";
4
+ // the digit of each cell, by position: value joins them and drops the empty ones
5
+ this.digits=[];
6
+ // the disabled state of the host as a form control: its own disabled, or a disabled fieldset
7
+ // around it, which disables the host but not the cells in its shadow root
8
+ this.formDisabled=false;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});
2
9
  /**
3
10
  * Number of digits in the OTP code
4
11
  */this.length=6;
@@ -6,8 +13,18 @@ import{r as registerInstance,h,e as Host,g as getElement}from"./index-DIiEV39g.j
6
13
  * Automatically submits the form when the OTP code is complete
7
14
  */this.autosubmit=false;
8
15
  /**
9
- * The current value of the OTP code
10
- */this.value="";this.getOtpCode=function(){var t=Array.from(i.element.shadowRoot.querySelectorAll("mds-input"));var e=t.map((function(t){return t.value})).join("");return e};this.setOtpDigit=function(t,e){t.value=e;var n=i.getOtpCode();i.value=n;setFormValue(i.internals,n)};this.submit=function(t){var e;var n=i.getOtpCode().length===i.length;t.blur();if(i.autosubmit&&n){(e=i.internals.form)===null||e===void 0?void 0:e.requestSubmit()}};this.handleKeyDown=function(t){if(t.ctrlKey){return}
16
+ * Disables every cell of the code, like a disabled native input: the code cannot be changed and
17
+ * is left out of the form. A disabled `<fieldset>` around the component does the same.
18
+ */this.disabled=false;
19
+ /**
20
+ * The current value of the OTP code: a value set in the markup or by code fills the cells from
21
+ * the first one
22
+ */this.value="";this.isDisabled=function(){return!!i.disabled||i.formDisabled};this.setOtpDigit=function(t,e){var n=Array.from(i.element.shadowRoot.querySelectorAll("mds-input")).indexOf(t);var r=__spreadArray([],i.digits,true);r[n]=e;i.digits=r;i.updateValue()};this.submit=function(t){var e,n;var r=((e=i.value)!==null&&e!==void 0?e:"").length===i.length;t.blur();if(i.autosubmit&&r){(n=i.internals.form)===null||n===void 0?void 0:n.requestSubmit()}};this.handleKeyDown=function(t){if(t.ctrlKey){return}
11
23
  // e.preventDefault() must be called *outside* the ctrlKey check,
12
24
  // otherwise the onPaste event won't be triggered correctly
13
- t.preventDefault();if(isNaN(Number(t.key))){return}var e=t.target;i.setOtpDigit(e,t.key);var n=e.nextElementSibling;if(n!=null){n.setFocus()}else{i.submit(e)}};this.handlePaste=function(t){var e,n;t.preventDefault();var r=(e=t.clipboardData)===null||e===void 0?void 0:e.getData("text");if(isNaN(Number(r))){return}var a=(n=r===null||r===void 0?void 0:r.split(""))!==null&&n!==void 0?n:[];var s=t.target;for(var o=0,l=a;o<l.length;o++){var u=l[o];i.setOtpDigit(s,u);s=s.nextElementSibling;if(s!=null){s.setFocus()}else{i.submit(s);return}}};this.digitName=function(t){var e;var n=i.t.get("digit",{position:t+1,length:i.length});return((e=i.accessibleName)!==null&&e!==void 0?e:"")!==""?"".concat(i.accessibleName,", ").concat(n):n}}t.prototype.render=function(){var t=this;return h(Host,{key:"10ca24b0e94edc403924d73cb409ff246d52bf36"},Array.from({length:this.length}).map((function(i,e){return h("mds-input",{"aria-label":t.digitName(e),class:"input",maxlength:1,onKeyDown:t.handleKeyDown,onPaste:t.handlePaste})})))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();MdsInputOtp.style=mdsInputOtpCss();export{MdsInputOtp as mds_input_otp};
25
+ t.preventDefault();if(isNaN(Number(t.key))){return}var e=t.target;i.setOtpDigit(e,t.key);var n=e.nextElementSibling;if(n!=null){n.setFocus()}else{i.submit(e)}};this.handlePaste=function(t){var e,n;t.preventDefault();var r=(e=t.clipboardData)===null||e===void 0?void 0:e.getData("text");if(isNaN(Number(r))){return}var s=(n=r===null||r===void 0?void 0:r.split(""))!==null&&n!==void 0?n:[];var a=t.target;for(var l=0,o=s;l<o.length;l++){var u=o[l];i.setOtpDigit(a,u);a=a.nextElementSibling;if(a!=null){a.setFocus()}else{i.submit(a);return}}};this.digitName=function(t){var e;var n=i.t.get("digit",{position:t+1,length:i.length});return((e=i.accessibleName)!==null&&e!==void 0?e:"")!==""?"".concat(i.accessibleName,", ").concat(n):n}}t.prototype.valueChanged=function(t){
26
+ // the value a typed digit writes already matches the cells
27
+ if((t!==null&&t!==void 0?t:"")===this.digits.join(""))return;this.fillCells(t!==null&&t!==void 0?t:"")};t.prototype.formDisabledCallback=function(t){this.formDisabled=t};
28
+ /** Like a native input, a form reset brings back the code of load. */t.prototype.formResetCallback=function(){this.fillCells(this.loadValue)};t.prototype.componentWillLoad=function(){var t;this.loadValue=(t=this.value)!==null&&t!==void 0?t:"";this.fillCells(this.loadValue)};
29
+ /** Puts a code in the cells, from the first one, as many digits as there are cells. */t.prototype.fillCells=function(t){this.digits=Array.from(t).slice(0,this.length);this.updateValue()};
30
+ /** Joins the cells into value, the code the form submits. */t.prototype.updateValue=function(){this.value=this.digits.join("");setFormValue(this.internals,this.value)};t.prototype.render=function(){var t=this;return h(Host,{key:"a04c64edf256fa28b732e52380df22b2fa452ed7"},Array.from({length:this.length}).map((function(i,e){var n;return h("mds-input",{"aria-label":t.digitName(e),class:"input",disabled:t.isDisabled(),maxlength:1,onKeyDown:t.handleKeyDown,onPaste:t.handlePaste,value:(n=t.digits[e])!==null&&n!==void 0?n:""})})))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:[{valueChanged:0}]}},enumerable:false,configurable:true});return t}();MdsInputOtp.style=mdsInputOtpCss();export{MdsInputOtp as mds_input_otp};
@@ -1,4 +1,7 @@
1
- import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{s as setFormValue}from"./form-A9TZf0Ii.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";var mdsInputRangeCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-range-transition-duration:var(--duration-300,.3s);--private-input-range-transition-duration:var(--mds-input-range-transition-duration);--mds-input-range-thumb-background-disabled:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-input-range-thumb-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-input-range-thumb-cursor:col-resize;--mds-input-range-thumb-size:calc(var(--spacing,.0025rem)*400);--mds-input-range-track-background-disabled:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-input-range-track-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-input-range-track-progress-background-disabled:rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-input-range-track-size:calc(var(--spacing,.0025rem)*600);--private-border-width:calc(var(--mds-input-range-track-size)/2 - var(--mds-input-range-thumb-size)/2);--private-thumb-size:calc(var(--mds-input-range-thumb-size) + var(--private-border-width)*2);display:grid;gap:calc(var(--spacing,.0025rem)*200);-webkit-transition-duration:var(--private-input-range-transition-duration);transition-duration:var(--private-input-range-transition-duration);transition-property:color;-webkit-transition-timing-function:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.header{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{align-items:center;display:flex;height:var(--private-thumb-size);position:relative}.track{box-sizing:border-box;position:absolute;width:100%}.field{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));appearance:none;background-color:#0000;border-radius:var(--radius-full,1000px);flex-grow:1;height:calc(var(--spacing,.0025rem)*400);margin:0;outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;z-index:20}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.field::-webkit-slider-thumb{appearance:none;background-color:var(--mds-input-range-thumb-background);border-color:var(--mds-input-range-track-progress-background);border-radius:var(--mds-input-range-thumb-size);border-style:solid;border-width:var(--private-border-width);cursor:var(--mds-input-range-thumb-cursor);height:var(--private-thumb-size);line-height:0;transform:translateY(-50%);transition-property:background-color,border;width:var(--private-thumb-size)}.field::-webkit-slider-runnable-track{appearance:none;border:0;height:0;width:100%}.track-progress{background-color:var(--mds-input-range-track-progress-background);width:calc((100% - var(--mds-input-range-track-size))*(var(--mds-input-range-progress,0)*0.01) + var(--mds-input-range-track-size)/2)}.track-progress,.track-total{display:flex;height:var(--mds-input-range-track-size);-webkit-transition-duration:var(--private-input-range-transition-duration);transition-duration:var(--private-input-range-transition-duration);transition-property:background-color}.track-total{background-color:var(--mds-input-range-track-background);overflow:hidden;-webkit-transition-timing-function:var(--ease-in-out);transition-timing-function:var(--ease-in-out);width:100%}.contrast-area,.track-total{border-radius:var(--mds-input-range-track-size)}.contrast-area{margin-left:calc(var(--spacing,.0025rem)*100);margin-right:calc(var(--spacing,.0025rem)*100)}:host([disabled]:not([disabled=false])){--mds-input-range-thumb-background:var(--mds-input-range-thumb-background-disabled);--mds-input-range-track-background:var(--mds-input-range-track-background-disabled);--mds-input-range-track-progress-background:var(--mds-input-range-track-progress-background-disabled)}:host([disabled]:not([disabled=false])) .field::-webkit-slider-thumb{cursor:not-allowed}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-range-thumb-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))}:host([pref-contrast=more]){color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-range-thumb-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}"};var MdsInputRange=/** @class */function(){function a(a){var t=this;registerInstance(this,a);this.changeEvent=createEvent(this,"mdsInputRangeChange",7);if(a.$hostElement$["s-ei"]){this.internals=a.$hostElement$["s-ei"]}else{this.internals=a.$hostElement$.attachInternals();a.$hostElement$["s-ei"]=this.internals}
1
+ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{s as setFormValue}from"./form-wI0alRSO.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsInputRangeCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-range-transition-duration:var(--duration-300,.3s);--private-input-range-transition-duration:var(--mds-input-range-transition-duration);--mds-input-range-thumb-background-disabled:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-input-range-thumb-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-input-range-thumb-cursor:col-resize;--mds-input-range-thumb-size:calc(var(--spacing,.0025rem)*400);--mds-input-range-track-background-disabled:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-input-range-track-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-input-range-track-progress-background-disabled:rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-input-range-track-size:calc(var(--spacing,.0025rem)*600);--private-border-width:calc(var(--mds-input-range-track-size)/2 - var(--mds-input-range-thumb-size)/2);--private-thumb-size:calc(var(--mds-input-range-thumb-size) + var(--private-border-width)*2);display:grid;gap:calc(var(--spacing,.0025rem)*200);-webkit-transition-duration:var(--private-input-range-transition-duration);transition-duration:var(--private-input-range-transition-duration);transition-property:color;-webkit-transition-timing-function:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.header{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{align-items:center;display:flex;height:var(--private-thumb-size);position:relative}.track{box-sizing:border-box;position:absolute;width:100%}.field{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));appearance:none;background-color:#0000;border-radius:var(--radius-full,1000px);flex-grow:1;height:calc(var(--spacing,.0025rem)*400);margin:0;outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;z-index:20}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.field::-webkit-slider-thumb{appearance:none;background-color:var(--mds-input-range-thumb-background);border-color:var(--mds-input-range-track-progress-background);border-radius:var(--mds-input-range-thumb-size);border-style:solid;border-width:var(--private-border-width);cursor:var(--mds-input-range-thumb-cursor);height:var(--private-thumb-size);line-height:0;transform:translateY(-50%);transition-property:background-color,border;width:var(--private-thumb-size)}.field::-webkit-slider-runnable-track{appearance:none;border:0;height:0;width:100%}.track-progress{background-color:var(--mds-input-range-track-progress-background);width:calc((100% - var(--mds-input-range-track-size))*(var(--mds-input-range-progress,0)*0.01) + var(--mds-input-range-track-size)/2)}.track-progress,.track-total{display:flex;height:var(--mds-input-range-track-size);-webkit-transition-duration:var(--private-input-range-transition-duration);transition-duration:var(--private-input-range-transition-duration);transition-property:background-color}.track-total{background-color:var(--mds-input-range-track-background);overflow:hidden;-webkit-transition-timing-function:var(--ease-in-out);transition-timing-function:var(--ease-in-out);width:100%}.contrast-area,.track-total{border-radius:var(--mds-input-range-track-size)}.contrast-area{margin-left:calc(var(--spacing,.0025rem)*100);margin-right:calc(var(--spacing,.0025rem)*100)}:host(:disabled:not([disabled=false])),:host([disabled]:not([disabled=false])){--mds-input-range-thumb-background:var(--mds-input-range-thumb-background-disabled);--mds-input-range-track-background:var(--mds-input-range-track-background-disabled);--mds-input-range-track-progress-background:var(--mds-input-range-track-progress-background-disabled)}:host([disabled]:not([disabled=false])) .field::-webkit-slider-thumb{cursor:not-allowed}:host(:disabled:not([disabled=false])) .field::-webkit-slider-thumb{cursor:not-allowed}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-range-thumb-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))}:host([pref-contrast=more]){color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-range-thumb-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}"};var MdsInputRange=/** @class */function(){function a(a){var t=this;registerInstance(this,a);this.changeEvent=createEvent(this,"mdsInputRangeChange",7);if(a.$hostElement$["s-ei"]){this.internals=a.$hostElement$["s-ei"]}else{this.internals=a.$hostElement$.attachInternals();a.$hostElement$["s-ei"]=this.internals}
2
+ // the disabled state of the host as a form control: its own disabled, or a disabled fieldset
3
+ // around it, which disables the host but not the native control in its shadow root
4
+ this.formDisabled=false;
2
5
  /**
3
6
  * The greatest value in the range of permitted values
4
7
  */this.max=100;
@@ -8,17 +11,22 @@ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from".
8
11
  /**
9
12
  * The step attribute is a number that specifies the granularity that
10
13
  * the value must adhere to, or the special value any, which is described below.
11
- */this.step=1;this.onInput=function(){if(Number.isNaN(t.inputElement.value))throw Error("Entered value ".concat(t.inputElement.value," is not a Number"));
14
+ */this.step=1;this.onInput=function(){
15
+ // a range input always holds a number: the browser sanitizes anything else
12
16
  // trigger valueChanged that update progress and emit event
13
- t.value=Number(t.inputElement.value)}}a.prototype.calculateProgress=function(){
17
+ t.value=Number(t.inputElement.value)};this.isDisabled=function(){return!!t.disabled||t.formDisabled}}
18
+ /** As on a native input, a step that is not a positive number falls back to the default, 1. */a.prototype.allowedStep=function(){var a=Number(this.step);return a>0?a:1};a.prototype.calculateProgress=function(){
14
19
  // validate value
15
- var a=Number(this.inputElement.value);
20
+ var a=Number(this.inputElement.value);var t=this.allowedStep();
16
21
  // multiplier is needed to manage decimal value and step, so we can work with integer value and avoid decimal division
17
- var t=Math.pow(10,this.decimalPlaces);if(a>this.max)a=this.max;else if(a<this.min)a=this.min;if((a-this.min)*t%(this.step*t)!==0){a=(Math.round((a*t-this.min*t)/(this.step*t))*(this.step*t)+this.min*t)/t}this.value=a;setFormValue(this.internals,this.value.toString());var r=this.max-this.min;var e=this.value-this.min;this.progress=e/r*100};a.prototype.countDecimals=function(a){if(Math.floor(a)===a)return 0;return a.toString().split(".")[1].length||0};a.prototype.disabledChanged=function(a){
22
+ var r=Math.pow(10,this.countDecimals(t));if(a>this.max)a=this.max;else if(a<this.min)a=this.min;if((a-this.min)*r%(t*r)!==0){a=(Math.round((a*r-this.min*r)/(t*r))*(t*r)+this.min*r)/r}this.value=a;setFormValue(this.internals,this.value.toString());var e=this.max-this.min;var i=this.value-this.min;this.progress=i/e*100};a.prototype.countDecimals=function(a){if(Math.floor(a)===a)return 0;return a.toString().split(".")[1].length||0};a.prototype.disabledChanged=function(a){
18
23
  /**
19
24
  * This is related to ALL disabled attributes set on Magma input components
20
25
  * if solved, please check mds-button, mds-input, mds-input-*
21
26
  * https://github.com/ionic-team/stencil/issues/5461
22
27
  */
23
- if(a){setFormValue(this.internals,null)}};a.prototype.valueChanged=function(a,t){if(a===t)return;this.inputElement.value=this.value.toString();this.calculateProgress();this.changeEvent.emit(this.value)};a.prototype.minChanged=function(){this.calculateProgress()};a.prototype.maxChanged=function(){this.calculateProgress()};a.prototype.stepChanged=function(){if(this.step<=0)throw Error("step cant be negative or zero");this.decimalPlaces=this.countDecimals(this.step);this.calculateProgress()};a.prototype.formResetCallback=function(){setFormValue(this.internals,"")};a.prototype.componentDidLoad=function(){var a;this.decimalPlaces=this.countDecimals(this.step);this.onInput();// define value
24
- this.label=(a=this.element.textContent)!==null&&a!==void 0?a:"";this.calculateProgress()};a.prototype.render=function(){var a=this;var t;return h(Host,{key:"7c0a8d739163d2bf261c37c07010dc0b3d50e229","pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("header",{key:"95f14dfc8f5cd2a51a101d7836e7f3fecada1ff7",class:"header",part:"header"},h("mds-text",{key:"b43ad53a0a963336581c646e1f071bdae3a26efc",class:"label",typography:"label"},h("slot",{key:"c977a9d5544930cefabe76ca3d7394d629d52450"})),h("mds-text",{key:"92b8d45b0a8846d0266c366129448f1d97357947",class:"value",typography:"label"},this.formatValue?this.formatValue(this.value):this.value)),h("div",{key:"29e4bcfc4fb52fbfdcc5684a9d0a45651ade0c97",class:"range"},h("div",{key:"38f46832e1735ff53d83aff2ee67ba359d711ed6",class:"track",part:"track"},h("div",{key:"96206811d68b037c6d484f34773a368ca46419ab",class:"contrast-area"}),h("div",{key:"6f329d1cac11dfdb21c2d10f01b6ec82cb6d7805",class:"track-total"},h("div",{key:"590710af361f8d3933b22e80ccca3fe1d6a62498",class:"track-progress",style:{"--mds-input-range-progress":"".concat((t=this.progress)!==null&&t!==void 0?t:0)}}))),h("input",{key:"485d49941a1cb41258d32e02ec1c3f03882744f1",ref:function(t){return a.inputElement=t},class:"field","aria-label":this.label,disabled:this.disabled,max:this.max,min:this.min,onInput:this.onInput,step:this.step,type:"range",value:this.value,name:this.name})))};Object.defineProperty(a,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{disabled:[{disabledChanged:0}],value:[{valueChanged:0}],min:[{minChanged:0}],max:[{maxChanged:0}],step:[{stepChanged:0}]}},enumerable:false,configurable:true});return a}();MdsInputRange.style=mdsInputRangeCss();export{MdsInputRange as mds_input_range};
28
+ if(a){setFormValue(this.internals,null)}};a.prototype.valueChanged=function(a,t){if(a===t)return;this.inputElement.value=this.value.toString();this.calculateProgress();this.changeEvent.emit(this.value)};a.prototype.minChanged=function(){this.calculateProgress()};a.prototype.maxChanged=function(){this.calculateProgress()};a.prototype.stepChanged=function(){this.calculateProgress()};a.prototype.formDisabledCallback=function(a){this.formDisabled=a};
29
+ /** Like a native input, a form reset brings back the value of load, thumb included. */a.prototype.formResetCallback=function(){
30
+ // an empty value makes the native input take its default, the middle of the range
31
+ this.inputElement.value=this.loadValue===undefined?"":String(this.loadValue);this.onInput()};a.prototype.componentWillLoad=function(){var a;var t=Number((a=this.value)!==null&&a!==void 0?a:NaN);this.loadValue=Number.isNaN(t)?undefined:t};a.prototype.componentDidLoad=function(){var a;this.onInput();// define value
32
+ this.label=(a=this.element.textContent)!==null&&a!==void 0?a:"";this.calculateProgress()};a.prototype.render=function(){var a=this;var t;return h(Host,{key:"d223cb20d2d286382af3b1605e4d77d1a77d67c0","pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("header",{key:"2e618309f22f583ea4583901965a3669073ee17e",class:"header",part:"header"},h("mds-text",{key:"cf89fae0a98b66a470ab220811af5cf1b1922f59",class:"label",typography:"label"},h("slot",{key:"392a0503e0ad2af44ecb9ce184713b5245a64063"})),h("mds-text",{key:"ab5f2a7fe91bae04199b100e6bc6711ccd6c6e2a",class:"value",typography:"label"},this.formatValue?this.formatValue(this.value):this.value)),h("div",{key:"5d5681f116e152979f0d329070be816173507caf",class:"range"},h("div",{key:"f539571bbf87692d690b792ed8c638fd3f3810f7",class:"track",part:"track"},h("div",{key:"6b0eef0ba0ef24a80bf52bd04dce7d9ed2114ad4",class:"contrast-area"}),h("div",{key:"622bce4e0e3edf7de827c64a8b97bd6ea90f7e67",class:"track-total"},h("div",{key:"1a05102fb4ebd2f8fa452df45302c6983aa0234d",class:"track-progress",style:{"--mds-input-range-progress":"".concat((t=this.progress)!==null&&t!==void 0?t:0)}}))),h("input",{key:"81eb2d3245ab389890b14ee0aa6aec6324450933",ref:function(t){return a.inputElement=t},class:"field","aria-label":this.label,disabled:this.isDisabled(),max:this.max,min:this.min,onInput:this.onInput,step:this.step,type:"range",value:this.value,name:this.name})))};Object.defineProperty(a,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{disabled:[{disabledChanged:0}],value:[{valueChanged:0}],min:[{minChanged:0}],max:[{maxChanged:0}],step:[{stepChanged:0}]}},enumerable:false,configurable:true});return a}();MdsInputRange.style=mdsInputRangeCss();export{MdsInputRange as mds_input_range};