@maggioli-design-system/magma 2.0.1 → 2.2.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 (1604) hide show
  1. package/AGENTS.md +72 -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 +169 -0
  8. package/agents/reporting.md +118 -0
  9. package/agents/theming.md +140 -0
  10. package/agents/typography.md +32 -0
  11. package/agents/variants.md +112 -0
  12. package/dist/cjs/floating-controller-uOCBLTk2.js +369 -0
  13. package/dist/cjs/form-Bk2OHlHM.js +46 -0
  14. package/dist/cjs/index-MyEb-PfD.js +198 -0
  15. package/dist/cjs/index-UmmmCMIG.js +5184 -0
  16. package/dist/cjs/index.cjs.js +63 -1
  17. package/dist/cjs/loader.cjs.js +2 -2
  18. package/dist/cjs/locale-CnorkBwF.js +816 -0
  19. package/dist/cjs/magma-components.cjs.js +2 -2
  20. package/dist/cjs/mds-accordion-item.cjs.entry.js +2 -2
  21. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +2 -2
  22. package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
  23. package/dist/cjs/mds-accordion.cjs.entry.js +2 -2
  24. package/dist/cjs/mds-author.cjs.entry.js +1 -1
  25. package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
  26. package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
  27. package/dist/cjs/mds-avatar.cjs.entry.js +2 -2
  28. package/dist/cjs/mds-badge.cjs.entry.js +2 -2
  29. package/dist/cjs/mds-banner_3.cjs.entry.js +6 -6
  30. package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
  31. package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
  32. package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
  33. package/dist/cjs/mds-breadcrumb.cjs.entry.js +3 -3
  34. package/dist/cjs/mds-button-dropdown.cjs.entry.js +38 -4
  35. package/dist/cjs/mds-button-group.cjs.entry.js +2 -2
  36. package/dist/cjs/mds-button_3.cjs.entry.js +81 -28
  37. package/dist/cjs/mds-calendar_2.cjs.entry.js +7 -7
  38. package/dist/cjs/mds-card-content.cjs.entry.js +2 -2
  39. package/dist/cjs/mds-card-footer.cjs.entry.js +2 -2
  40. package/dist/cjs/mds-card-header.cjs.entry.js +2 -2
  41. package/dist/cjs/mds-card-media.cjs.entry.js +2 -2
  42. package/dist/cjs/mds-card.cjs.entry.js +3 -3
  43. package/dist/cjs/mds-details.cjs.entry.js +3 -3
  44. package/dist/cjs/mds-dropdown.cjs.entry.js +5 -5
  45. package/dist/cjs/mds-emoji.cjs.entry.js +3 -3
  46. package/dist/cjs/mds-entity.cjs.entry.js +3 -3
  47. package/dist/cjs/mds-file-preview.cjs.entry.js +5 -5
  48. package/dist/cjs/mds-file.cjs.entry.js +4 -4
  49. package/dist/cjs/mds-filter-item.cjs.entry.js +3 -3
  50. package/dist/cjs/mds-filter.cjs.entry.js +3 -3
  51. package/dist/cjs/mds-header-bar.cjs.entry.js +3 -3
  52. package/dist/cjs/mds-header.cjs.entry.js +3 -3
  53. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +2 -2
  54. package/dist/cjs/mds-hr.cjs.entry.js +3 -3
  55. package/dist/cjs/mds-img.cjs.entry.js +3 -3
  56. package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +2 -2
  57. package/dist/cjs/mds-input-date-range.cjs.entry.js +89 -9
  58. package/dist/cjs/mds-input-date.cjs.entry.js +124 -27
  59. package/dist/cjs/mds-input-field.cjs.entry.js +2 -2
  60. package/dist/cjs/mds-input-otp.cjs.entry.js +65 -19
  61. package/dist/cjs/mds-input-range.cjs.entry.js +32 -16
  62. package/dist/cjs/mds-input-select.cjs.entry.js +159 -30
  63. package/dist/cjs/mds-input-switch_2.cjs.entry.js +64 -22
  64. package/dist/cjs/mds-input-tip_2.cjs.entry.js +6 -6
  65. package/dist/cjs/mds-input-upload.cjs.entry.js +136 -67
  66. package/dist/cjs/mds-input.cjs.entry.js +320 -36
  67. package/dist/cjs/mds-keyboard-key.cjs.entry.js +4 -4
  68. package/dist/cjs/mds-keyboard.cjs.entry.js +4 -4
  69. package/dist/cjs/mds-kpi-item.cjs.entry.js +3 -3
  70. package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
  71. package/dist/cjs/mds-label.cjs.entry.js +3 -3
  72. package/dist/cjs/mds-list-item.cjs.entry.js +3 -3
  73. package/dist/cjs/mds-list.cjs.entry.js +2 -2
  74. package/dist/cjs/mds-mention.cjs.entry.js +4 -4
  75. package/dist/cjs/mds-modal.cjs.entry.js +5 -5
  76. package/dist/cjs/mds-note.cjs.entry.js +4 -4
  77. package/dist/cjs/mds-notification.cjs.entry.js +3 -3
  78. package/dist/cjs/mds-paginator-item.cjs.entry.js +3 -3
  79. package/dist/cjs/mds-paginator.cjs.entry.js +3 -3
  80. package/dist/cjs/mds-policy-ai.cjs.entry.js +4 -4
  81. package/dist/cjs/mds-pref-animation.cjs.entry.js +29 -5
  82. package/dist/cjs/mds-pref-consumption.cjs.entry.js +29 -5
  83. package/dist/cjs/mds-pref-contrast.cjs.entry.js +27 -6
  84. package/dist/cjs/mds-pref-language-item.cjs.entry.js +4 -4
  85. package/dist/cjs/mds-pref-language.cjs.entry.js +4 -4
  86. package/dist/cjs/mds-pref-mode.cjs.entry.js +30 -7
  87. package/dist/cjs/mds-pref-theme-item.cjs.entry.js +2 -2
  88. package/dist/cjs/mds-pref-theme.cjs.entry.js +4 -4
  89. package/dist/cjs/mds-pref.cjs.entry.js +10 -5
  90. package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +3 -3
  91. package/dist/cjs/mds-price-table-features-row.cjs.entry.js +3 -3
  92. package/dist/cjs/mds-price-table-features.cjs.entry.js +3 -3
  93. package/dist/cjs/mds-price-table-header.cjs.entry.js +2 -2
  94. package/dist/cjs/mds-price-table-list-item.cjs.entry.js +2 -2
  95. package/dist/cjs/mds-price-table-list.cjs.entry.js +3 -3
  96. package/dist/cjs/mds-price-table.cjs.entry.js +2 -2
  97. package/dist/cjs/mds-progress_2.cjs.entry.js +4 -4
  98. package/dist/cjs/mds-push-notification-item.cjs.entry.js +5 -5
  99. package/dist/cjs/mds-push-notification.cjs.entry.js +3 -3
  100. package/dist/cjs/mds-quote.cjs.entry.js +3 -3
  101. package/dist/cjs/mds-radial-menu-item.cjs.entry.js +2 -2
  102. package/dist/cjs/mds-radial-menu.cjs.entry.js +3 -3
  103. package/dist/cjs/mds-separator.cjs.entry.js +3 -3
  104. package/dist/cjs/mds-status-bar.cjs.entry.js +3 -3
  105. package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +4 -4
  106. package/dist/cjs/mds-stepper-bar.cjs.entry.js +2 -2
  107. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +3 -3
  108. package/dist/cjs/mds-tab-bar.cjs.entry.js +3 -3
  109. package/dist/cjs/mds-tab_2.cjs.entry.js +29 -7
  110. package/dist/cjs/mds-table-body.cjs.entry.js +3 -3
  111. package/dist/cjs/mds-table-footer.cjs.entry.js +3 -3
  112. package/dist/cjs/mds-table-header-cell.cjs.entry.js +3 -3
  113. package/dist/cjs/mds-table-header.cjs.entry.js +4 -4
  114. package/dist/cjs/mds-table-row.cjs.entry.js +24 -18
  115. package/dist/cjs/mds-table.cjs.entry.js +4 -4
  116. package/dist/cjs/mds-text.cjs.entry.js +3 -3
  117. package/dist/cjs/mds-toast.cjs.entry.js +3 -3
  118. package/dist/cjs/mds-tooltip.cjs.entry.js +4 -4
  119. package/dist/cjs/mds-tree-item.cjs.entry.js +4 -4
  120. package/dist/cjs/mds-tree.cjs.entry.js +2 -2
  121. package/dist/cjs/mds-url-view.cjs.entry.js +4 -4
  122. package/dist/cjs/mds-usage.cjs.entry.js +4 -4
  123. package/dist/cjs/mds-video-wall.cjs.entry.js +2 -2
  124. package/dist/cjs/mds-zero.cjs.entry.js +3 -3
  125. package/dist/cjs/preference-DRkzNp5a.js +389 -0
  126. package/dist/collection/common/form.js +24 -1
  127. package/dist/collection/common/navigation.js +60 -0
  128. package/dist/collection/common/validity/index.js +42 -0
  129. package/dist/collection/components/mds-accordion/AGENTS.md +65 -0
  130. package/dist/collection/components/mds-accordion/antipattern.md +123 -0
  131. package/dist/collection/components/mds-accordion/documentation.json +172 -0
  132. package/dist/collection/components/mds-accordion/pattern.md +150 -0
  133. package/dist/collection/components/mds-accordion-item/AGENTS.md +76 -0
  134. package/dist/collection/components/mds-accordion-item/antipattern.md +137 -0
  135. package/dist/collection/components/mds-accordion-item/documentation.json +288 -0
  136. package/dist/collection/components/mds-accordion-item/pattern.md +156 -0
  137. package/dist/collection/components/mds-accordion-timer/AGENTS.md +65 -0
  138. package/dist/collection/components/mds-accordion-timer/antipattern.md +133 -0
  139. package/dist/collection/components/mds-accordion-timer/documentation.json +168 -0
  140. package/dist/collection/components/mds-accordion-timer/pattern.md +137 -0
  141. package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +82 -0
  142. package/dist/collection/components/mds-accordion-timer-item/antipattern.md +143 -0
  143. package/dist/collection/components/mds-accordion-timer-item/documentation.json +400 -0
  144. package/dist/collection/components/mds-accordion-timer-item/pattern.md +136 -0
  145. package/dist/collection/components/mds-author/AGENTS.md +40 -0
  146. package/dist/collection/components/mds-author/antipattern.md +106 -0
  147. package/dist/collection/components/mds-author/documentation.json +51 -0
  148. package/dist/collection/components/mds-author/pattern.md +101 -0
  149. package/dist/collection/components/mds-avatar/AGENTS.md +70 -0
  150. package/dist/collection/components/mds-avatar/antipattern.md +96 -0
  151. package/dist/collection/components/mds-avatar/documentation.json +362 -0
  152. package/dist/collection/components/mds-avatar/pattern.md +108 -0
  153. package/dist/collection/components/mds-avatar-stack/AGENTS.md +65 -0
  154. package/dist/collection/components/mds-avatar-stack/antipattern.md +122 -0
  155. package/dist/collection/components/mds-avatar-stack/documentation.json +196 -0
  156. package/dist/collection/components/mds-avatar-stack/pattern.md +125 -0
  157. package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +60 -0
  158. package/dist/collection/components/mds-avatar-stack-item/antipattern.md +113 -0
  159. package/dist/collection/components/mds-avatar-stack-item/documentation.json +315 -0
  160. package/dist/collection/components/mds-avatar-stack-item/pattern.md +105 -0
  161. package/dist/collection/components/mds-badge/AGENTS.md +63 -0
  162. package/dist/collection/components/mds-badge/antipattern.md +104 -0
  163. package/dist/collection/components/mds-badge/documentation.json +316 -0
  164. package/dist/collection/components/mds-badge/pattern.md +130 -0
  165. package/dist/collection/components/mds-banner/AGENTS.md +87 -0
  166. package/dist/collection/components/mds-banner/antipattern.md +141 -0
  167. package/dist/collection/components/mds-banner/documentation.json +378 -0
  168. package/dist/collection/components/mds-banner/pattern.md +176 -0
  169. package/dist/collection/components/mds-benchmark-bar/AGENTS.md +59 -0
  170. package/dist/collection/components/mds-benchmark-bar/antipattern.md +77 -0
  171. package/dist/collection/components/mds-benchmark-bar/documentation.json +313 -0
  172. package/dist/collection/components/mds-benchmark-bar/pattern.md +102 -0
  173. package/dist/collection/components/mds-bibliography/AGENTS.md +61 -0
  174. package/dist/collection/components/mds-bibliography/antipattern.md +130 -0
  175. package/dist/collection/components/mds-bibliography/documentation.json +407 -0
  176. package/dist/collection/components/mds-bibliography/pattern.md +142 -0
  177. package/dist/collection/components/mds-breadcrumb/AGENTS.md +68 -0
  178. package/dist/collection/components/mds-breadcrumb/antipattern.md +112 -0
  179. package/dist/collection/components/mds-breadcrumb/documentation.json +156 -0
  180. package/dist/collection/components/mds-breadcrumb/pattern.md +103 -0
  181. package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +67 -0
  182. package/dist/collection/components/mds-breadcrumb-item/antipattern.md +109 -0
  183. package/dist/collection/components/mds-breadcrumb-item/documentation.json +160 -0
  184. package/dist/collection/components/mds-breadcrumb-item/pattern.md +85 -0
  185. package/dist/collection/components/mds-button/AGENTS.md +102 -0
  186. package/dist/collection/components/mds-button/antipattern.md +144 -0
  187. package/dist/collection/components/mds-button/documentation.json +922 -0
  188. package/dist/collection/components/mds-button/mds-button.css +17 -1
  189. package/dist/collection/components/mds-button/mds-button.js +116 -24
  190. package/dist/collection/components/mds-button/pattern.md +198 -0
  191. package/dist/collection/components/mds-button-dropdown/AGENTS.md +88 -0
  192. package/dist/collection/components/mds-button-dropdown/antipattern.md +158 -0
  193. package/dist/collection/components/mds-button-dropdown/documentation.json +614 -0
  194. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +94 -6
  195. package/dist/collection/components/mds-button-dropdown/pattern.md +164 -0
  196. package/dist/collection/components/mds-button-group/AGENTS.md +33 -0
  197. package/dist/collection/components/mds-button-group/antipattern.md +105 -0
  198. package/dist/collection/components/mds-button-group/documentation.json +43 -0
  199. package/dist/collection/components/mds-button-group/mds-button-group.js +1 -1
  200. package/dist/collection/components/mds-button-group/pattern.md +89 -0
  201. package/dist/collection/components/mds-calendar/AGENTS.md +96 -0
  202. package/dist/collection/components/mds-calendar/antipattern.md +113 -0
  203. package/dist/collection/components/mds-calendar/documentation.json +626 -0
  204. package/dist/collection/components/mds-calendar/mds-calendar.js +4 -4
  205. package/dist/collection/components/mds-calendar/pattern.md +128 -0
  206. package/dist/collection/components/mds-calendar-cell/AGENTS.md +94 -0
  207. package/dist/collection/components/mds-calendar-cell/antipattern.md +58 -0
  208. package/dist/collection/components/mds-calendar-cell/documentation.json +539 -0
  209. package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +1 -1
  210. package/dist/collection/components/mds-calendar-cell/pattern.md +82 -0
  211. package/dist/collection/components/mds-card/AGENTS.md +60 -0
  212. package/dist/collection/components/mds-card/antipattern.md +133 -0
  213. package/dist/collection/components/mds-card/documentation.json +117 -0
  214. package/dist/collection/components/mds-card/mds-card.js +1 -1
  215. package/dist/collection/components/mds-card/pattern.md +160 -0
  216. package/dist/collection/components/mds-card-content/AGENTS.md +34 -0
  217. package/dist/collection/components/mds-card-content/antipattern.md +110 -0
  218. package/dist/collection/components/mds-card-content/documentation.json +43 -0
  219. package/dist/collection/components/mds-card-content/mds-card-content.js +1 -1
  220. package/dist/collection/components/mds-card-content/pattern.md +91 -0
  221. package/dist/collection/components/mds-card-footer/AGENTS.md +34 -0
  222. package/dist/collection/components/mds-card-footer/antipattern.md +112 -0
  223. package/dist/collection/components/mds-card-footer/documentation.json +43 -0
  224. package/dist/collection/components/mds-card-footer/mds-card-footer.js +1 -1
  225. package/dist/collection/components/mds-card-footer/pattern.md +95 -0
  226. package/dist/collection/components/mds-card-header/AGENTS.md +38 -0
  227. package/dist/collection/components/mds-card-header/antipattern.md +114 -0
  228. package/dist/collection/components/mds-card-header/documentation.json +51 -0
  229. package/dist/collection/components/mds-card-header/mds-card-header.js +1 -1
  230. package/dist/collection/components/mds-card-header/pattern.md +143 -0
  231. package/dist/collection/components/mds-card-media/AGENTS.md +46 -0
  232. package/dist/collection/components/mds-card-media/antipattern.md +128 -0
  233. package/dist/collection/components/mds-card-media/documentation.json +56 -0
  234. package/dist/collection/components/mds-card-media/mds-card-media.js +1 -1
  235. package/dist/collection/components/mds-card-media/pattern.md +93 -0
  236. package/dist/collection/components/mds-chip/AGENTS.md +84 -0
  237. package/dist/collection/components/mds-chip/antipattern.md +119 -0
  238. package/dist/collection/components/mds-chip/documentation.json +535 -0
  239. package/dist/collection/components/mds-chip/mds-chip.js +2 -2
  240. package/dist/collection/components/mds-chip/pattern.md +166 -0
  241. package/dist/collection/components/mds-details/AGENTS.md +72 -0
  242. package/dist/collection/components/mds-details/antipattern.md +128 -0
  243. package/dist/collection/components/mds-details/documentation.json +153 -0
  244. package/dist/collection/components/mds-details/mds-details.js +1 -1
  245. package/dist/collection/components/mds-details/pattern.md +138 -0
  246. package/dist/collection/components/mds-dropdown/AGENTS.md +95 -0
  247. package/dist/collection/components/mds-dropdown/antipattern.md +137 -0
  248. package/dist/collection/components/mds-dropdown/documentation.json +701 -0
  249. package/dist/collection/components/mds-dropdown/mds-dropdown.js +2 -2
  250. package/dist/collection/components/mds-dropdown/pattern.md +201 -0
  251. package/dist/collection/components/mds-emoji/AGENTS.md +88 -0
  252. package/dist/collection/components/mds-emoji/antipattern.md +134 -0
  253. package/dist/collection/components/mds-emoji/documentation.json +506 -0
  254. package/dist/collection/components/mds-emoji/mds-emoji.js +1 -1
  255. package/dist/collection/components/mds-emoji/pattern.md +219 -0
  256. package/dist/collection/components/mds-entity/AGENTS.md +76 -0
  257. package/dist/collection/components/mds-entity/antipattern.md +112 -0
  258. package/dist/collection/components/mds-entity/documentation.json +365 -0
  259. package/dist/collection/components/mds-entity/mds-entity.js +1 -1
  260. package/dist/collection/components/mds-entity/pattern.md +125 -0
  261. package/dist/collection/components/mds-file/AGENTS.md +63 -0
  262. package/dist/collection/components/mds-file/antipattern.md +92 -0
  263. package/dist/collection/components/mds-file/documentation.json +484 -0
  264. package/dist/collection/components/mds-file/mds-file.js +1 -1
  265. package/dist/collection/components/mds-file/pattern.md +109 -0
  266. package/dist/collection/components/mds-file-preview/AGENTS.md +88 -0
  267. package/dist/collection/components/mds-file-preview/antipattern.md +129 -0
  268. package/dist/collection/components/mds-file-preview/documentation.json +780 -0
  269. package/dist/collection/components/mds-file-preview/mds-file-preview.js +2 -2
  270. package/dist/collection/components/mds-file-preview/pattern.md +164 -0
  271. package/dist/collection/components/mds-filter/AGENTS.md +72 -0
  272. package/dist/collection/components/mds-filter/antipattern.md +140 -0
  273. package/dist/collection/components/mds-filter/documentation.json +239 -0
  274. package/dist/collection/components/mds-filter/mds-filter.js +1 -1
  275. package/dist/collection/components/mds-filter/pattern.md +129 -0
  276. package/dist/collection/components/mds-filter-item/AGENTS.md +64 -0
  277. package/dist/collection/components/mds-filter-item/antipattern.md +127 -0
  278. package/dist/collection/components/mds-filter-item/documentation.json +240 -0
  279. package/dist/collection/components/mds-filter-item/mds-filter-item.js +1 -1
  280. package/dist/collection/components/mds-filter-item/pattern.md +125 -0
  281. package/dist/collection/components/mds-header/AGENTS.md +95 -0
  282. package/dist/collection/components/mds-header/antipattern.md +120 -0
  283. package/dist/collection/components/mds-header/documentation.json +491 -0
  284. package/dist/collection/components/mds-header/mds-header.js +1 -1
  285. package/dist/collection/components/mds-header/pattern.md +182 -0
  286. package/dist/collection/components/mds-header-bar/AGENTS.md +80 -0
  287. package/dist/collection/components/mds-header-bar/antipattern.md +119 -0
  288. package/dist/collection/components/mds-header-bar/documentation.json +251 -0
  289. package/dist/collection/components/mds-header-bar/mds-header-bar.js +1 -1
  290. package/dist/collection/components/mds-header-bar/pattern.md +134 -0
  291. package/dist/collection/components/mds-help/AGENTS.md +65 -0
  292. package/dist/collection/components/mds-help/antipattern.md +73 -0
  293. package/dist/collection/components/mds-help/documentation.json +228 -0
  294. package/dist/collection/components/mds-help/mds-help.js +1 -1
  295. package/dist/collection/components/mds-help/pattern.md +106 -0
  296. package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +72 -0
  297. package/dist/collection/components/mds-horizontal-scroll/antipattern.md +120 -0
  298. package/dist/collection/components/mds-horizontal-scroll/documentation.json +279 -0
  299. package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +1 -1
  300. package/dist/collection/components/mds-horizontal-scroll/pattern.md +154 -0
  301. package/dist/collection/components/mds-hr/AGENTS.md +27 -0
  302. package/dist/collection/components/mds-hr/antipattern.md +84 -0
  303. package/dist/collection/components/mds-hr/documentation.json +33 -0
  304. package/dist/collection/components/mds-hr/mds-hr.js +1 -1
  305. package/dist/collection/components/mds-hr/pattern.md +88 -0
  306. package/dist/collection/components/mds-icon/AGENTS.md +52 -0
  307. package/dist/collection/components/mds-icon/antipattern.md +118 -0
  308. package/dist/collection/components/mds-icon/documentation.json +205 -0
  309. package/dist/collection/components/mds-icon/mds-icon.js +1 -1
  310. package/dist/collection/components/mds-icon/pattern.md +135 -0
  311. package/dist/collection/components/mds-img/AGENTS.md +78 -0
  312. package/dist/collection/components/mds-img/antipattern.md +106 -0
  313. package/dist/collection/components/mds-img/documentation.json +470 -0
  314. package/dist/collection/components/mds-img/pattern.md +128 -0
  315. package/dist/collection/components/mds-input/AGENTS.md +138 -0
  316. package/dist/collection/components/mds-input/antipattern.md +128 -0
  317. package/dist/collection/components/mds-input/documentation.json +1574 -0
  318. package/dist/collection/components/mds-input/mds-input.js +185 -30
  319. package/dist/collection/components/mds-input/meta/input-type/InputValidationManager.js +8 -1
  320. package/dist/collection/components/mds-input/meta/validators.js +100 -2
  321. package/dist/collection/components/mds-input/meta/validity.js +35 -0
  322. package/dist/collection/components/mds-input/pattern.md +252 -0
  323. package/dist/collection/components/mds-input-date/AGENTS.md +98 -0
  324. package/dist/collection/components/mds-input-date/antipattern.md +107 -0
  325. package/dist/collection/components/mds-input-date/documentation.json +638 -0
  326. package/dist/collection/components/mds-input-date/mds-input-date.js +130 -24
  327. package/dist/collection/components/mds-input-date/pattern.md +158 -0
  328. package/dist/collection/components/mds-input-date-range/AGENTS.md +90 -0
  329. package/dist/collection/components/mds-input-date-range/antipattern.md +168 -0
  330. package/dist/collection/components/mds-input-date-range/documentation.json +502 -0
  331. package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +13 -0
  332. package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +106 -5
  333. package/dist/collection/components/mds-input-date-range/pattern.md +122 -0
  334. package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +62 -0
  335. package/dist/collection/components/mds-input-date-range-preselection/antipattern.md +147 -0
  336. package/dist/collection/components/mds-input-date-range-preselection/documentation.json +176 -0
  337. package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.js +1 -1
  338. package/dist/collection/components/mds-input-date-range-preselection/pattern.md +101 -0
  339. package/dist/collection/components/mds-input-field/AGENTS.md +60 -0
  340. package/dist/collection/components/mds-input-field/antipattern.md +115 -0
  341. package/dist/collection/components/mds-input-field/documentation.json +178 -0
  342. package/dist/collection/components/mds-input-field/mds-input-field.js +1 -1
  343. package/dist/collection/components/mds-input-field/pattern.md +95 -0
  344. package/dist/collection/components/mds-input-otp/AGENTS.md +48 -0
  345. package/dist/collection/components/mds-input-otp/antipattern.md +105 -0
  346. package/dist/collection/components/mds-input-otp/documentation.json +203 -0
  347. package/dist/collection/components/mds-input-otp/mds-input-otp.css +4 -1
  348. package/dist/collection/components/mds-input-otp/mds-input-otp.js +88 -15
  349. package/dist/collection/components/mds-input-otp/pattern.md +107 -0
  350. package/dist/collection/components/mds-input-range/AGENTS.md +84 -0
  351. package/dist/collection/components/mds-input-range/antipattern.md +127 -0
  352. package/dist/collection/components/mds-input-range/documentation.json +315 -0
  353. package/dist/collection/components/mds-input-range/mds-input-range.css +6 -2
  354. package/dist/collection/components/mds-input-range/mds-input-range.js +30 -13
  355. package/dist/collection/components/mds-input-range/pattern.md +110 -0
  356. package/dist/collection/components/mds-input-select/AGENTS.md +99 -0
  357. package/dist/collection/components/mds-input-select/antipattern.md +126 -0
  358. package/dist/collection/components/mds-input-select/documentation.json +552 -0
  359. package/dist/collection/components/mds-input-select/mds-input-select.js +164 -35
  360. package/dist/collection/components/mds-input-select/meta/event-detail.js +1 -0
  361. package/dist/collection/components/mds-input-select/pattern.md +168 -0
  362. package/dist/collection/components/mds-input-switch/AGENTS.md +106 -0
  363. package/dist/collection/components/mds-input-switch/antipattern.md +117 -0
  364. package/dist/collection/components/mds-input-switch/documentation.json +638 -0
  365. package/dist/collection/components/mds-input-switch/mds-input-switch.css +4 -1
  366. package/dist/collection/components/mds-input-switch/mds-input-switch.js +59 -16
  367. package/dist/collection/components/mds-input-switch/pattern.md +133 -0
  368. package/dist/collection/components/mds-input-tip/AGENTS.md +56 -0
  369. package/dist/collection/components/mds-input-tip/antipattern.md +108 -0
  370. package/dist/collection/components/mds-input-tip/documentation.json +160 -0
  371. package/dist/collection/components/mds-input-tip/mds-input-tip.js +1 -1
  372. package/dist/collection/components/mds-input-tip/pattern.md +125 -0
  373. package/dist/collection/components/mds-input-tip-item/AGENTS.md +58 -0
  374. package/dist/collection/components/mds-input-tip-item/antipattern.md +98 -0
  375. package/dist/collection/components/mds-input-tip-item/documentation.json +181 -0
  376. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +2 -2
  377. package/dist/collection/components/mds-input-tip-item/pattern.md +107 -0
  378. package/dist/collection/components/mds-input-upload/AGENTS.md +78 -0
  379. package/dist/collection/components/mds-input-upload/antipattern.md +144 -0
  380. package/dist/collection/components/mds-input-upload/documentation.json +425 -0
  381. package/dist/collection/components/mds-input-upload/mds-input-upload.css +15 -0
  382. package/dist/collection/components/mds-input-upload/mds-input-upload.js +176 -66
  383. package/dist/collection/components/mds-input-upload/pattern.md +165 -0
  384. package/dist/collection/components/mds-keyboard/AGENTS.md +76 -0
  385. package/dist/collection/components/mds-keyboard/antipattern.md +111 -0
  386. package/dist/collection/components/mds-keyboard/documentation.json +227 -0
  387. package/dist/collection/components/mds-keyboard/mds-keyboard.js +1 -1
  388. package/dist/collection/components/mds-keyboard/pattern.md +129 -0
  389. package/dist/collection/components/mds-keyboard-key/AGENTS.md +55 -0
  390. package/dist/collection/components/mds-keyboard-key/antipattern.md +117 -0
  391. package/dist/collection/components/mds-keyboard-key/documentation.json +450 -0
  392. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -1
  393. package/dist/collection/components/mds-keyboard-key/pattern.md +98 -0
  394. package/dist/collection/components/mds-kpi/AGENTS.md +44 -0
  395. package/dist/collection/components/mds-kpi/antipattern.md +93 -0
  396. package/dist/collection/components/mds-kpi/documentation.json +54 -0
  397. package/dist/collection/components/mds-kpi/mds-kpi.js +1 -1
  398. package/dist/collection/components/mds-kpi/pattern.md +109 -0
  399. package/dist/collection/components/mds-kpi-item/AGENTS.md +62 -0
  400. package/dist/collection/components/mds-kpi-item/antipattern.md +119 -0
  401. package/dist/collection/components/mds-kpi-item/documentation.json +199 -0
  402. package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +1 -1
  403. package/dist/collection/components/mds-kpi-item/pattern.md +115 -0
  404. package/dist/collection/components/mds-label/AGENTS.md +71 -0
  405. package/dist/collection/components/mds-label/antipattern.md +92 -0
  406. package/dist/collection/components/mds-label/documentation.json +388 -0
  407. package/dist/collection/components/mds-label/pattern.md +111 -0
  408. package/dist/collection/components/mds-list/AGENTS.md +33 -0
  409. package/dist/collection/components/mds-list/antipattern.md +117 -0
  410. package/dist/collection/components/mds-list/documentation.json +43 -0
  411. package/dist/collection/components/mds-list/mds-list.js +1 -1
  412. package/dist/collection/components/mds-list/pattern.md +104 -0
  413. package/dist/collection/components/mds-list-item/AGENTS.md +60 -0
  414. package/dist/collection/components/mds-list-item/antipattern.md +118 -0
  415. package/dist/collection/components/mds-list-item/documentation.json +200 -0
  416. package/dist/collection/components/mds-list-item/mds-list-item.js +1 -1
  417. package/dist/collection/components/mds-list-item/pattern.md +101 -0
  418. package/dist/collection/components/mds-mention/AGENTS.md +55 -0
  419. package/dist/collection/components/mds-mention/antipattern.md +86 -0
  420. package/dist/collection/components/mds-mention/documentation.json +203 -0
  421. package/dist/collection/components/mds-mention/mds-mention.js +1 -1
  422. package/dist/collection/components/mds-mention/pattern.md +91 -0
  423. package/dist/collection/components/mds-modal/AGENTS.md +107 -0
  424. package/dist/collection/components/mds-modal/antipattern.md +96 -0
  425. package/dist/collection/components/mds-modal/documentation.json +552 -0
  426. package/dist/collection/components/mds-modal/mds-modal.js +3 -3
  427. package/dist/collection/components/mds-modal/pattern.md +228 -0
  428. package/dist/collection/components/mds-note/AGENTS.md +68 -0
  429. package/dist/collection/components/mds-note/antipattern.md +99 -0
  430. package/dist/collection/components/mds-note/documentation.json +220 -0
  431. package/dist/collection/components/mds-note/mds-note.js +1 -1
  432. package/dist/collection/components/mds-note/pattern.md +108 -0
  433. package/dist/collection/components/mds-notification/AGENTS.md +67 -0
  434. package/dist/collection/components/mds-notification/antipattern.md +86 -0
  435. package/dist/collection/components/mds-notification/documentation.json +253 -0
  436. package/dist/collection/components/mds-notification/mds-notification.js +1 -1
  437. package/dist/collection/components/mds-notification/pattern.md +98 -0
  438. package/dist/collection/components/mds-paginator/AGENTS.md +57 -0
  439. package/dist/collection/components/mds-paginator/antipattern.md +95 -0
  440. package/dist/collection/components/mds-paginator/documentation.json +135 -0
  441. package/dist/collection/components/mds-paginator/mds-paginator.js +1 -1
  442. package/dist/collection/components/mds-paginator/pattern.md +92 -0
  443. package/dist/collection/components/mds-paginator-item/AGENTS.md +74 -0
  444. package/dist/collection/components/mds-paginator-item/antipattern.md +95 -0
  445. package/dist/collection/components/mds-paginator-item/documentation.json +206 -0
  446. package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +1 -1
  447. package/dist/collection/components/mds-paginator-item/pattern.md +75 -0
  448. package/dist/collection/components/mds-policy-ai/AGENTS.md +58 -0
  449. package/dist/collection/components/mds-policy-ai/antipattern.md +97 -0
  450. package/dist/collection/components/mds-policy-ai/documentation.json +244 -0
  451. package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +1 -1
  452. package/dist/collection/components/mds-policy-ai/pattern.md +102 -0
  453. package/dist/collection/components/mds-pref/AGENTS.md +50 -0
  454. package/dist/collection/components/mds-pref/antipattern.md +85 -0
  455. package/dist/collection/components/mds-pref/documentation.json +138 -0
  456. package/dist/collection/components/mds-pref/mds-pref.js +7 -2
  457. package/dist/collection/components/mds-pref/pattern.md +93 -0
  458. package/dist/collection/components/mds-pref-animation/AGENTS.md +48 -0
  459. package/dist/collection/components/mds-pref-animation/antipattern.md +67 -0
  460. package/dist/collection/components/mds-pref-animation/documentation.json +154 -0
  461. package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +26 -2
  462. package/dist/collection/components/mds-pref-animation/pattern.md +86 -0
  463. package/dist/collection/components/mds-pref-consumption/AGENTS.md +47 -0
  464. package/dist/collection/components/mds-pref-consumption/antipattern.md +84 -0
  465. package/dist/collection/components/mds-pref-consumption/documentation.json +154 -0
  466. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +26 -2
  467. package/dist/collection/components/mds-pref-consumption/pattern.md +70 -0
  468. package/dist/collection/components/mds-pref-contrast/AGENTS.md +50 -0
  469. package/dist/collection/components/mds-pref-contrast/antipattern.md +71 -0
  470. package/dist/collection/components/mds-pref-contrast/documentation.json +154 -0
  471. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +24 -3
  472. package/dist/collection/components/mds-pref-contrast/pattern.md +82 -0
  473. package/dist/collection/components/mds-pref-language/AGENTS.md +56 -0
  474. package/dist/collection/components/mds-pref-language/antipattern.md +130 -0
  475. package/dist/collection/components/mds-pref-language/documentation.json +174 -0
  476. package/dist/collection/components/mds-pref-language/mds-pref-language.js +1 -1
  477. package/dist/collection/components/mds-pref-language/pattern.md +104 -0
  478. package/dist/collection/components/mds-pref-language-item/AGENTS.md +48 -0
  479. package/dist/collection/components/mds-pref-language-item/antipattern.md +99 -0
  480. package/dist/collection/components/mds-pref-language-item/documentation.json +122 -0
  481. package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +1 -1
  482. package/dist/collection/components/mds-pref-language-item/pattern.md +85 -0
  483. package/dist/collection/components/mds-pref-mode/AGENTS.md +53 -0
  484. package/dist/collection/components/mds-pref-mode/antipattern.md +104 -0
  485. package/dist/collection/components/mds-pref-mode/documentation.json +241 -0
  486. package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +27 -4
  487. package/dist/collection/components/mds-pref-mode/pattern.md +94 -0
  488. package/dist/collection/components/mds-pref-theme/AGENTS.md +60 -0
  489. package/dist/collection/components/mds-pref-theme/antipattern.md +104 -0
  490. package/dist/collection/components/mds-pref-theme/documentation.json +277 -0
  491. package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +1 -1
  492. package/dist/collection/components/mds-pref-theme/pattern.md +97 -0
  493. package/dist/collection/components/mds-pref-theme-item/AGENTS.md +60 -0
  494. package/dist/collection/components/mds-pref-theme-item/antipattern.md +98 -0
  495. package/dist/collection/components/mds-pref-theme-item/documentation.json +228 -0
  496. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +1 -1
  497. package/dist/collection/components/mds-pref-theme-item/pattern.md +98 -0
  498. package/dist/collection/components/mds-price-table/AGENTS.md +34 -0
  499. package/dist/collection/components/mds-price-table/antipattern.md +131 -0
  500. package/dist/collection/components/mds-price-table/documentation.json +43 -0
  501. package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
  502. package/dist/collection/components/mds-price-table/pattern.md +182 -0
  503. package/dist/collection/components/mds-price-table-features/AGENTS.md +61 -0
  504. package/dist/collection/components/mds-price-table-features/antipattern.md +152 -0
  505. package/dist/collection/components/mds-price-table-features/documentation.json +96 -0
  506. package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +1 -1
  507. package/dist/collection/components/mds-price-table-features/pattern.md +157 -0
  508. package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +69 -0
  509. package/dist/collection/components/mds-price-table-features-cell/antipattern.md +105 -0
  510. package/dist/collection/components/mds-price-table-features-cell/documentation.json +154 -0
  511. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +1 -1
  512. package/dist/collection/components/mds-price-table-features-cell/pattern.md +128 -0
  513. package/dist/collection/components/mds-price-table-features-row/AGENTS.md +43 -0
  514. package/dist/collection/components/mds-price-table-features-row/antipattern.md +135 -0
  515. package/dist/collection/components/mds-price-table-features-row/documentation.json +64 -0
  516. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +1 -1
  517. package/dist/collection/components/mds-price-table-features-row/pattern.md +125 -0
  518. package/dist/collection/components/mds-price-table-header/AGENTS.md +34 -0
  519. package/dist/collection/components/mds-price-table-header/antipattern.md +133 -0
  520. package/dist/collection/components/mds-price-table-header/documentation.json +43 -0
  521. package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
  522. package/dist/collection/components/mds-price-table-header/pattern.md +176 -0
  523. package/dist/collection/components/mds-price-table-list/AGENTS.md +63 -0
  524. package/dist/collection/components/mds-price-table-list/antipattern.md +133 -0
  525. package/dist/collection/components/mds-price-table-list/documentation.json +104 -0
  526. package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +1 -1
  527. package/dist/collection/components/mds-price-table-list/pattern.md +134 -0
  528. package/dist/collection/components/mds-price-table-list-item/AGENTS.md +61 -0
  529. package/dist/collection/components/mds-price-table-list-item/antipattern.md +90 -0
  530. package/dist/collection/components/mds-price-table-list-item/documentation.json +145 -0
  531. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
  532. package/dist/collection/components/mds-price-table-list-item/pattern.md +105 -0
  533. package/dist/collection/components/mds-progress/AGENTS.md +68 -0
  534. package/dist/collection/components/mds-progress/antipattern.md +94 -0
  535. package/dist/collection/components/mds-progress/documentation.json +375 -0
  536. package/dist/collection/components/mds-progress/mds-progress.js +1 -1
  537. package/dist/collection/components/mds-progress/pattern.md +139 -0
  538. package/dist/collection/components/mds-push-notification/AGENTS.md +88 -0
  539. package/dist/collection/components/mds-push-notification/antipattern.md +154 -0
  540. package/dist/collection/components/mds-push-notification/documentation.json +306 -0
  541. package/dist/collection/components/mds-push-notification/mds-push-notification.js +1 -1
  542. package/dist/collection/components/mds-push-notification/pattern.md +203 -0
  543. package/dist/collection/components/mds-push-notification-item/AGENTS.md +91 -0
  544. package/dist/collection/components/mds-push-notification-item/antipattern.md +129 -0
  545. package/dist/collection/components/mds-push-notification-item/documentation.json +586 -0
  546. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +2 -2
  547. package/dist/collection/components/mds-push-notification-item/pattern.md +201 -0
  548. package/dist/collection/components/mds-quote/AGENTS.md +51 -0
  549. package/dist/collection/components/mds-quote/antipattern.md +122 -0
  550. package/dist/collection/components/mds-quote/documentation.json +176 -0
  551. package/dist/collection/components/mds-quote/mds-quote.js +1 -1
  552. package/dist/collection/components/mds-quote/pattern.md +108 -0
  553. package/dist/collection/components/mds-radial-menu/AGENTS.md +87 -0
  554. package/dist/collection/components/mds-radial-menu/antipattern.md +104 -0
  555. package/dist/collection/components/mds-radial-menu/documentation.json +581 -0
  556. package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +1 -1
  557. package/dist/collection/components/mds-radial-menu/pattern.md +150 -0
  558. package/dist/collection/components/mds-radial-menu-item/AGENTS.md +51 -0
  559. package/dist/collection/components/mds-radial-menu-item/antipattern.md +106 -0
  560. package/dist/collection/components/mds-radial-menu-item/documentation.json +294 -0
  561. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
  562. package/dist/collection/components/mds-radial-menu-item/pattern.md +98 -0
  563. package/dist/collection/components/mds-radial-progress/AGENTS.md +58 -0
  564. package/dist/collection/components/mds-radial-progress/antipattern.md +99 -0
  565. package/dist/collection/components/mds-radial-progress/documentation.json +232 -0
  566. package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +1 -1
  567. package/dist/collection/components/mds-radial-progress/pattern.md +132 -0
  568. package/dist/collection/components/mds-separator/AGENTS.md +39 -0
  569. package/dist/collection/components/mds-separator/antipattern.md +98 -0
  570. package/dist/collection/components/mds-separator/documentation.json +45 -0
  571. package/dist/collection/components/mds-separator/mds-separator.js +1 -1
  572. package/dist/collection/components/mds-separator/pattern.md +82 -0
  573. package/dist/collection/components/mds-spinner/AGENTS.md +49 -0
  574. package/dist/collection/components/mds-spinner/antipattern.md +93 -0
  575. package/dist/collection/components/mds-spinner/documentation.json +86 -0
  576. package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
  577. package/dist/collection/components/mds-spinner/pattern.md +102 -0
  578. package/dist/collection/components/mds-status-bar/AGENTS.md +75 -0
  579. package/dist/collection/components/mds-status-bar/antipattern.md +128 -0
  580. package/dist/collection/components/mds-status-bar/documentation.json +262 -0
  581. package/dist/collection/components/mds-status-bar/mds-status-bar.js +1 -1
  582. package/dist/collection/components/mds-status-bar/pattern.md +123 -0
  583. package/dist/collection/components/mds-stepper-bar/AGENTS.md +74 -0
  584. package/dist/collection/components/mds-stepper-bar/antipattern.md +123 -0
  585. package/dist/collection/components/mds-stepper-bar/documentation.json +208 -0
  586. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +1 -1
  587. package/dist/collection/components/mds-stepper-bar/pattern.md +182 -0
  588. package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +84 -0
  589. package/dist/collection/components/mds-stepper-bar-item/antipattern.md +115 -0
  590. package/dist/collection/components/mds-stepper-bar-item/documentation.json +453 -0
  591. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
  592. package/dist/collection/components/mds-stepper-bar-item/pattern.md +203 -0
  593. package/dist/collection/components/mds-tab/AGENTS.md +110 -0
  594. package/dist/collection/components/mds-tab/antipattern.md +191 -0
  595. package/dist/collection/components/mds-tab/documentation.json +495 -0
  596. package/dist/collection/components/mds-tab/mds-tab.css +10 -1
  597. package/dist/collection/components/mds-tab/mds-tab.js +18 -4
  598. package/dist/collection/components/mds-tab/pattern.md +233 -0
  599. package/dist/collection/components/mds-tab-bar/AGENTS.md +46 -0
  600. package/dist/collection/components/mds-tab-bar/antipattern.md +105 -0
  601. package/dist/collection/components/mds-tab-bar/documentation.json +71 -0
  602. package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +1 -1
  603. package/dist/collection/components/mds-tab-bar/pattern.md +87 -0
  604. package/dist/collection/components/mds-tab-bar-item/AGENTS.md +67 -0
  605. package/dist/collection/components/mds-tab-bar-item/antipattern.md +116 -0
  606. package/dist/collection/components/mds-tab-bar-item/documentation.json +210 -0
  607. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +1 -1
  608. package/dist/collection/components/mds-tab-bar-item/pattern.md +110 -0
  609. package/dist/collection/components/mds-tab-item/AGENTS.md +83 -0
  610. package/dist/collection/components/mds-tab-item/antipattern.md +159 -0
  611. package/dist/collection/components/mds-tab-item/documentation.json +577 -0
  612. package/dist/collection/components/mds-tab-item/mds-tab-item.js +15 -3
  613. package/dist/collection/components/mds-tab-item/pattern.md +173 -0
  614. package/dist/collection/components/mds-table/AGENTS.md +90 -0
  615. package/dist/collection/components/mds-table/antipattern.md +169 -0
  616. package/dist/collection/components/mds-table/documentation.json +304 -0
  617. package/dist/collection/components/mds-table/mds-table.js +1 -1
  618. package/dist/collection/components/mds-table/pattern.md +288 -0
  619. package/dist/collection/components/mds-table-body/AGENTS.md +55 -0
  620. package/dist/collection/components/mds-table-body/antipattern.md +118 -0
  621. package/dist/collection/components/mds-table-body/documentation.json +122 -0
  622. package/dist/collection/components/mds-table-body/mds-table-body.js +1 -1
  623. package/dist/collection/components/mds-table-body/pattern.md +154 -0
  624. package/dist/collection/components/mds-table-cell/AGENTS.md +56 -0
  625. package/dist/collection/components/mds-table-cell/antipattern.md +100 -0
  626. package/dist/collection/components/mds-table-cell/documentation.json +104 -0
  627. package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
  628. package/dist/collection/components/mds-table-cell/pattern.md +168 -0
  629. package/dist/collection/components/mds-table-footer/AGENTS.md +33 -0
  630. package/dist/collection/components/mds-table-footer/antipattern.md +114 -0
  631. package/dist/collection/components/mds-table-footer/documentation.json +43 -0
  632. package/dist/collection/components/mds-table-footer/mds-table-footer.js +1 -1
  633. package/dist/collection/components/mds-table-footer/pattern.md +116 -0
  634. package/dist/collection/components/mds-table-header/AGENTS.md +61 -0
  635. package/dist/collection/components/mds-table-header/antipattern.md +157 -0
  636. package/dist/collection/components/mds-table-header/documentation.json +156 -0
  637. package/dist/collection/components/mds-table-header/mds-table-header.js +1 -1
  638. package/dist/collection/components/mds-table-header/pattern.md +158 -0
  639. package/dist/collection/components/mds-table-header-cell/AGENTS.md +51 -0
  640. package/dist/collection/components/mds-table-header-cell/antipattern.md +108 -0
  641. package/dist/collection/components/mds-table-header-cell/documentation.json +158 -0
  642. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +1 -1
  643. package/dist/collection/components/mds-table-header-cell/pattern.md +145 -0
  644. package/dist/collection/components/mds-table-row/AGENTS.md +68 -0
  645. package/dist/collection/components/mds-table-row/antipattern.md +142 -0
  646. package/dist/collection/components/mds-table-row/documentation.json +252 -0
  647. package/dist/collection/components/mds-table-row/mds-table-row.js +22 -16
  648. package/dist/collection/components/mds-table-row/pattern.md +157 -0
  649. package/dist/collection/components/mds-text/AGENTS.md +64 -0
  650. package/dist/collection/components/mds-text/antipattern.md +113 -0
  651. package/dist/collection/components/mds-text/documentation.json +746 -0
  652. package/dist/collection/components/mds-text/mds-text.js +1 -1
  653. package/dist/collection/components/mds-text/pattern.md +139 -0
  654. package/dist/collection/components/mds-toast/AGENTS.md +78 -0
  655. package/dist/collection/components/mds-toast/antipattern.md +131 -0
  656. package/dist/collection/components/mds-toast/documentation.json +339 -0
  657. package/dist/collection/components/mds-toast/mds-toast.js +1 -1
  658. package/dist/collection/components/mds-toast/pattern.md +161 -0
  659. package/dist/collection/components/mds-tooltip/AGENTS.md +80 -0
  660. package/dist/collection/components/mds-tooltip/antipattern.md +108 -0
  661. package/dist/collection/components/mds-tooltip/documentation.json +483 -0
  662. package/dist/collection/components/mds-tooltip/mds-tooltip.js +1 -1
  663. package/dist/collection/components/mds-tooltip/pattern.md +128 -0
  664. package/dist/collection/components/mds-tree/AGENTS.md +88 -0
  665. package/dist/collection/components/mds-tree/antipattern.md +153 -0
  666. package/dist/collection/components/mds-tree/documentation.json +472 -0
  667. package/dist/collection/components/mds-tree/mds-tree.js +1 -1
  668. package/dist/collection/components/mds-tree/pattern.md +198 -0
  669. package/dist/collection/components/mds-tree-item/AGENTS.md +119 -0
  670. package/dist/collection/components/mds-tree-item/antipattern.md +152 -0
  671. package/dist/collection/components/mds-tree-item/documentation.json +646 -0
  672. package/dist/collection/components/mds-tree-item/mds-tree-item.js +1 -1
  673. package/dist/collection/components/mds-tree-item/pattern.md +201 -0
  674. package/dist/collection/components/mds-url-view/AGENTS.md +63 -0
  675. package/dist/collection/components/mds-url-view/antipattern.md +107 -0
  676. package/dist/collection/components/mds-url-view/documentation.json +209 -0
  677. package/dist/collection/components/mds-url-view/mds-url-view.js +1 -1
  678. package/dist/collection/components/mds-url-view/pattern.md +106 -0
  679. package/dist/collection/components/mds-usage/AGENTS.md +70 -0
  680. package/dist/collection/components/mds-usage/antipattern.md +87 -0
  681. package/dist/collection/components/mds-usage/documentation.json +156 -0
  682. package/dist/collection/components/mds-usage/mds-usage.js +1 -1
  683. package/dist/collection/components/mds-usage/pattern.md +117 -0
  684. package/dist/collection/components/mds-video-wall/AGENTS.md +65 -0
  685. package/dist/collection/components/mds-video-wall/antipattern.md +97 -0
  686. package/dist/collection/components/mds-video-wall/documentation.json +316 -0
  687. package/dist/collection/components/mds-video-wall/mds-video-wall.js +1 -1
  688. package/dist/collection/components/mds-video-wall/pattern.md +101 -0
  689. package/dist/collection/components/mds-zero/AGENTS.md +55 -0
  690. package/dist/collection/components/mds-zero/antipattern.md +106 -0
  691. package/dist/collection/components/mds-zero/documentation.json +82 -0
  692. package/dist/collection/components/mds-zero/mds-zero.js +1 -1
  693. package/dist/collection/components/mds-zero/pattern.md +118 -0
  694. package/dist/collection/index.js +11 -4
  695. package/dist/components/index.js +1 -1
  696. package/dist/components/mds-accordion-item.js +1 -1
  697. package/dist/components/mds-accordion-timer-item.js +1 -1
  698. package/dist/components/mds-accordion-timer.js +1 -1
  699. package/dist/components/mds-accordion.js +1 -1
  700. package/dist/components/mds-author.js +1 -1
  701. package/dist/components/mds-avatar-stack-item.js +1 -1
  702. package/dist/components/mds-avatar-stack.js +1 -1
  703. package/dist/components/mds-avatar.js +1 -1
  704. package/dist/components/mds-badge.js +1 -1
  705. package/dist/components/mds-banner.js +1 -1
  706. package/dist/components/mds-benchmark-bar.js +1 -1
  707. package/dist/components/mds-bibliography.js +1 -1
  708. package/dist/components/mds-breadcrumb-item.js +1 -1
  709. package/dist/components/mds-breadcrumb.js +1 -1
  710. package/dist/components/mds-button-dropdown.js +1 -1
  711. package/dist/components/mds-button-group.js +1 -1
  712. package/dist/components/mds-button.js +1 -1
  713. package/dist/components/mds-calendar-cell.js +1 -1
  714. package/dist/components/mds-calendar.js +1 -1
  715. package/dist/components/mds-card-content.js +1 -1
  716. package/dist/components/mds-card-footer.js +1 -1
  717. package/dist/components/mds-card-header.js +1 -1
  718. package/dist/components/mds-card-media.js +1 -1
  719. package/dist/components/mds-card.js +1 -1
  720. package/dist/components/mds-chip.js +1 -1
  721. package/dist/components/mds-details.js +1 -1
  722. package/dist/components/mds-dropdown.js +1 -1
  723. package/dist/components/mds-emoji.js +3 -3
  724. package/dist/components/mds-entity.js +1 -1
  725. package/dist/components/mds-file-preview.js +1 -1
  726. package/dist/components/mds-file.js +3 -3
  727. package/dist/components/mds-filter-item.js +1 -1
  728. package/dist/components/mds-filter.js +1 -1
  729. package/dist/components/mds-header-bar.js +1 -1
  730. package/dist/components/mds-header.js +1 -1
  731. package/dist/components/mds-help.js +1 -1
  732. package/dist/components/mds-horizontal-scroll.js +1 -1
  733. package/dist/components/mds-hr.js +1 -1
  734. package/dist/components/mds-icon.js +1 -1
  735. package/dist/components/mds-img.js +1 -1
  736. package/dist/components/mds-input-date-range-preselection.js +1 -1
  737. package/dist/components/mds-input-date-range.js +1 -1
  738. package/dist/components/mds-input-date.js +1 -1
  739. package/dist/components/mds-input-field.js +1 -1
  740. package/dist/components/mds-input-otp.js +1 -1
  741. package/dist/components/mds-input-range.js +1 -1
  742. package/dist/components/mds-input-select.js +1 -1
  743. package/dist/components/mds-input-switch.js +1 -1
  744. package/dist/components/mds-input-tip-item.js +1 -1
  745. package/dist/components/mds-input-tip.js +1 -1
  746. package/dist/components/mds-input-upload.js +1 -1
  747. package/dist/components/mds-input.js +1 -1
  748. package/dist/components/mds-keyboard-key.js +1 -1
  749. package/dist/components/mds-keyboard.js +1 -1
  750. package/dist/components/mds-kpi-item.js +1 -1
  751. package/dist/components/mds-kpi.js +1 -1
  752. package/dist/components/mds-label.js +1 -1
  753. package/dist/components/mds-list-item.js +1 -1
  754. package/dist/components/mds-list.js +1 -1
  755. package/dist/components/mds-mention.js +1 -1
  756. package/dist/components/mds-modal.js +1 -1
  757. package/dist/components/mds-note.js +1 -1
  758. package/dist/components/mds-notification.js +1 -1
  759. package/dist/components/mds-paginator-item.js +1 -1
  760. package/dist/components/mds-paginator.js +1 -1
  761. package/dist/components/mds-policy-ai.js +1 -1
  762. package/dist/components/mds-pref-animation.js +1 -1
  763. package/dist/components/mds-pref-consumption.js +1 -1
  764. package/dist/components/mds-pref-contrast.js +1 -1
  765. package/dist/components/mds-pref-language-item.js +1 -1
  766. package/dist/components/mds-pref-language.js +1 -1
  767. package/dist/components/mds-pref-mode.js +1 -1
  768. package/dist/components/mds-pref-theme-item.js +1 -1
  769. package/dist/components/mds-pref-theme.js +1 -1
  770. package/dist/components/mds-pref.js +1 -1
  771. package/dist/components/mds-price-table-features-cell.js +1 -1
  772. package/dist/components/mds-price-table-features-row.js +1 -1
  773. package/dist/components/mds-price-table-features.js +1 -1
  774. package/dist/components/mds-price-table-header.js +1 -1
  775. package/dist/components/mds-price-table-list-item.js +1 -1
  776. package/dist/components/mds-price-table-list.js +1 -1
  777. package/dist/components/mds-price-table.js +1 -1
  778. package/dist/components/mds-progress.js +1 -1
  779. package/dist/components/mds-push-notification-item.js +1 -1
  780. package/dist/components/mds-push-notification.js +1 -1
  781. package/dist/components/mds-quote.js +1 -1
  782. package/dist/components/mds-radial-menu-item.js +1 -1
  783. package/dist/components/mds-radial-menu.js +1 -1
  784. package/dist/components/mds-radial-progress.js +1 -1
  785. package/dist/components/mds-separator.js +1 -1
  786. package/dist/components/mds-spinner.js +1 -1
  787. package/dist/components/mds-status-bar.js +1 -1
  788. package/dist/components/mds-stepper-bar-item.js +1 -1
  789. package/dist/components/mds-stepper-bar.js +1 -1
  790. package/dist/components/mds-tab-bar-item.js +1 -1
  791. package/dist/components/mds-tab-bar.js +1 -1
  792. package/dist/components/mds-tab-item.js +1 -1
  793. package/dist/components/mds-tab.js +1 -1
  794. package/dist/components/mds-table-body.js +1 -1
  795. package/dist/components/mds-table-cell.js +1 -1
  796. package/dist/components/mds-table-footer.js +1 -1
  797. package/dist/components/mds-table-header-cell.js +1 -1
  798. package/dist/components/mds-table-header.js +1 -1
  799. package/dist/components/mds-table-row.js +1 -1
  800. package/dist/components/mds-table.js +1 -1
  801. package/dist/components/mds-text.js +1 -1
  802. package/dist/components/mds-toast.js +1 -1
  803. package/dist/components/mds-tooltip.js +1 -1
  804. package/dist/components/mds-tree-item.js +1 -1
  805. package/dist/components/mds-tree.js +1 -1
  806. package/dist/components/mds-url-view.js +1 -1
  807. package/dist/components/mds-usage.js +1 -1
  808. package/dist/components/mds-video-wall.js +1 -1
  809. package/dist/components/mds-zero.js +1 -1
  810. package/dist/components/p--miH951G.js +5 -0
  811. package/dist/components/p-B3Z2Goa-.js +1 -0
  812. package/dist/components/p-B3dWp2vS.js +1 -0
  813. package/dist/components/p-B6FOPjps.js +1 -0
  814. package/dist/components/p-B7CR1EtF.js +1 -0
  815. package/dist/components/p-BBPQjm8h.js +1 -0
  816. package/dist/components/p-BCiJ4PRD.js +1 -0
  817. package/dist/components/p-BHJDW5JC.js +1 -0
  818. package/dist/components/p-BSs0SO-j.js +1 -0
  819. package/dist/components/p-BTpjOy0A.js +1 -0
  820. package/dist/components/p-BY6Qu1V4.js +1 -0
  821. package/dist/components/p-BhmePCyA.js +1 -0
  822. package/dist/components/p-BpGzrg1C.js +1 -0
  823. package/dist/components/p-Bv2IVRzI.js +1 -0
  824. package/dist/components/p-C-J9fW51.js +1 -0
  825. package/dist/components/p-C7EyV0z3.js +1 -0
  826. package/dist/components/p-CAa2kI72.js +1 -0
  827. package/dist/components/p-CBV19-8O.js +1 -0
  828. package/dist/components/p-CCv9tBZK.js +1 -0
  829. package/dist/components/p-CDf607TB.js +1 -0
  830. package/dist/components/p-CEMAGNly.js +1 -0
  831. package/dist/components/p-CGYDZBMv.js +1 -0
  832. package/dist/components/p-CHAvkoj3.js +1 -0
  833. package/dist/components/p-CMFUEkte.js +1 -0
  834. package/dist/components/p-CR2GGKXK.js +1 -0
  835. package/dist/components/p-Cb5kuO7B.js +1 -0
  836. package/dist/components/p-CiNNzAa3.js +1 -0
  837. package/dist/components/p-DGDdPv_Y.js +1 -0
  838. package/dist/components/p-D_wD-Pyk.js +1 -0
  839. package/dist/components/p-HR2JwDjG.js +1 -0
  840. package/dist/components/p-LE7qQIFR.js +8 -0
  841. package/dist/components/p-faViX-qz.js +1 -0
  842. package/dist/components/p-pBvN1uAc.js +3 -0
  843. package/dist/components/p-vgIKH234.js +1 -0
  844. package/dist/components/p-wI0alRSO.js +1 -0
  845. package/dist/components/p-zHpei4x6.js +1 -0
  846. package/dist/documentation.json +623 -365
  847. package/dist/esm/floating-controller-BTYkH_Ih.js +366 -0
  848. package/dist/esm/form-wI0alRSO.js +42 -0
  849. package/dist/esm/index-BhCZiGfL.js +196 -0
  850. package/dist/esm/index-BxPbQB28.js +5149 -0
  851. package/dist/esm/index.js +63 -2
  852. package/dist/esm/loader.js +3 -3
  853. package/dist/esm/locale-CVJm6KFD.js +814 -0
  854. package/dist/esm/magma-components.js +3 -3
  855. package/dist/esm/mds-accordion-item.entry.js +2 -2
  856. package/dist/esm/mds-accordion-timer-item.entry.js +2 -2
  857. package/dist/esm/mds-accordion-timer.entry.js +1 -1
  858. package/dist/esm/mds-accordion.entry.js +2 -2
  859. package/dist/esm/mds-author.entry.js +1 -1
  860. package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
  861. package/dist/esm/mds-avatar-stack.entry.js +1 -1
  862. package/dist/esm/mds-avatar.entry.js +2 -2
  863. package/dist/esm/mds-badge.entry.js +2 -2
  864. package/dist/esm/mds-banner_3.entry.js +6 -6
  865. package/dist/esm/mds-benchmark-bar.entry.js +1 -1
  866. package/dist/esm/mds-bibliography.entry.js +1 -1
  867. package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
  868. package/dist/esm/mds-breadcrumb.entry.js +3 -3
  869. package/dist/esm/mds-button-dropdown.entry.js +38 -4
  870. package/dist/esm/mds-button-group.entry.js +2 -2
  871. package/dist/esm/mds-button_3.entry.js +82 -29
  872. package/dist/esm/mds-calendar_2.entry.js +7 -7
  873. package/dist/esm/mds-card-content.entry.js +2 -2
  874. package/dist/esm/mds-card-footer.entry.js +2 -2
  875. package/dist/esm/mds-card-header.entry.js +2 -2
  876. package/dist/esm/mds-card-media.entry.js +2 -2
  877. package/dist/esm/mds-card.entry.js +3 -3
  878. package/dist/esm/mds-details.entry.js +3 -3
  879. package/dist/esm/mds-dropdown.entry.js +5 -5
  880. package/dist/esm/mds-emoji.entry.js +3 -3
  881. package/dist/esm/mds-entity.entry.js +3 -3
  882. package/dist/esm/mds-file-preview.entry.js +5 -5
  883. package/dist/esm/mds-file.entry.js +4 -4
  884. package/dist/esm/mds-filter-item.entry.js +3 -3
  885. package/dist/esm/mds-filter.entry.js +3 -3
  886. package/dist/esm/mds-header-bar.entry.js +3 -3
  887. package/dist/esm/mds-header.entry.js +3 -3
  888. package/dist/esm/mds-horizontal-scroll.entry.js +2 -2
  889. package/dist/esm/mds-hr.entry.js +3 -3
  890. package/dist/esm/mds-img.entry.js +3 -3
  891. package/dist/esm/mds-input-date-range-preselection.entry.js +2 -2
  892. package/dist/esm/mds-input-date-range.entry.js +89 -9
  893. package/dist/esm/mds-input-date.entry.js +124 -27
  894. package/dist/esm/mds-input-field.entry.js +2 -2
  895. package/dist/esm/mds-input-otp.entry.js +65 -19
  896. package/dist/esm/mds-input-range.entry.js +32 -16
  897. package/dist/esm/mds-input-select.entry.js +159 -30
  898. package/dist/esm/mds-input-switch_2.entry.js +64 -22
  899. package/dist/esm/mds-input-tip_2.entry.js +6 -6
  900. package/dist/esm/mds-input-upload.entry.js +136 -67
  901. package/dist/esm/mds-input.entry.js +320 -36
  902. package/dist/esm/mds-keyboard-key.entry.js +4 -4
  903. package/dist/esm/mds-keyboard.entry.js +4 -4
  904. package/dist/esm/mds-kpi-item.entry.js +3 -3
  905. package/dist/esm/mds-kpi.entry.js +2 -2
  906. package/dist/esm/mds-label.entry.js +3 -3
  907. package/dist/esm/mds-list-item.entry.js +3 -3
  908. package/dist/esm/mds-list.entry.js +2 -2
  909. package/dist/esm/mds-mention.entry.js +4 -4
  910. package/dist/esm/mds-modal.entry.js +5 -5
  911. package/dist/esm/mds-note.entry.js +4 -4
  912. package/dist/esm/mds-notification.entry.js +3 -3
  913. package/dist/esm/mds-paginator-item.entry.js +3 -3
  914. package/dist/esm/mds-paginator.entry.js +3 -3
  915. package/dist/esm/mds-policy-ai.entry.js +4 -4
  916. package/dist/esm/mds-pref-animation.entry.js +29 -5
  917. package/dist/esm/mds-pref-consumption.entry.js +29 -5
  918. package/dist/esm/mds-pref-contrast.entry.js +27 -6
  919. package/dist/esm/mds-pref-language-item.entry.js +4 -4
  920. package/dist/esm/mds-pref-language.entry.js +4 -4
  921. package/dist/esm/mds-pref-mode.entry.js +30 -7
  922. package/dist/esm/mds-pref-theme-item.entry.js +2 -2
  923. package/dist/esm/mds-pref-theme.entry.js +4 -4
  924. package/dist/esm/mds-pref.entry.js +10 -5
  925. package/dist/esm/mds-price-table-features-cell.entry.js +3 -3
  926. package/dist/esm/mds-price-table-features-row.entry.js +3 -3
  927. package/dist/esm/mds-price-table-features.entry.js +3 -3
  928. package/dist/esm/mds-price-table-header.entry.js +2 -2
  929. package/dist/esm/mds-price-table-list-item.entry.js +2 -2
  930. package/dist/esm/mds-price-table-list.entry.js +3 -3
  931. package/dist/esm/mds-price-table.entry.js +2 -2
  932. package/dist/esm/mds-progress_2.entry.js +4 -4
  933. package/dist/esm/mds-push-notification-item.entry.js +5 -5
  934. package/dist/esm/mds-push-notification.entry.js +3 -3
  935. package/dist/esm/mds-quote.entry.js +3 -3
  936. package/dist/esm/mds-radial-menu-item.entry.js +2 -2
  937. package/dist/esm/mds-radial-menu.entry.js +3 -3
  938. package/dist/esm/mds-separator.entry.js +3 -3
  939. package/dist/esm/mds-status-bar.entry.js +3 -3
  940. package/dist/esm/mds-stepper-bar-item.entry.js +4 -4
  941. package/dist/esm/mds-stepper-bar.entry.js +2 -2
  942. package/dist/esm/mds-tab-bar-item.entry.js +3 -3
  943. package/dist/esm/mds-tab-bar.entry.js +3 -3
  944. package/dist/esm/mds-tab_2.entry.js +29 -7
  945. package/dist/esm/mds-table-body.entry.js +3 -3
  946. package/dist/esm/mds-table-footer.entry.js +3 -3
  947. package/dist/esm/mds-table-header-cell.entry.js +3 -3
  948. package/dist/esm/mds-table-header.entry.js +4 -4
  949. package/dist/esm/mds-table-row.entry.js +24 -18
  950. package/dist/esm/mds-table.entry.js +4 -4
  951. package/dist/esm/mds-text.entry.js +3 -3
  952. package/dist/esm/mds-toast.entry.js +3 -3
  953. package/dist/esm/mds-tooltip.entry.js +4 -4
  954. package/dist/esm/mds-tree-item.entry.js +4 -4
  955. package/dist/esm/mds-tree.entry.js +2 -2
  956. package/dist/esm/mds-url-view.entry.js +4 -4
  957. package/dist/esm/mds-usage.entry.js +4 -4
  958. package/dist/esm/mds-video-wall.entry.js +2 -2
  959. package/dist/esm/mds-zero.entry.js +3 -3
  960. package/dist/esm/preference-DNNqH7BU.js +385 -0
  961. package/dist/esm-es5/floating-controller-BTYkH_Ih.js +66 -0
  962. package/dist/esm-es5/form-wI0alRSO.js +16 -0
  963. package/dist/esm-es5/index-BhCZiGfL.js +10 -0
  964. package/dist/esm-es5/index-BxPbQB28.js +371 -0
  965. package/dist/esm-es5/index.js +37 -20
  966. package/dist/esm-es5/loader.js +1 -1
  967. package/dist/esm-es5/locale-CVJm6KFD.js +230 -0
  968. package/dist/esm-es5/magma-components.js +2 -2
  969. package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
  970. package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
  971. package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
  972. package/dist/esm-es5/mds-accordion.entry.js +1 -1
  973. package/dist/esm-es5/mds-author.entry.js +1 -1
  974. package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
  975. package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
  976. package/dist/esm-es5/mds-avatar.entry.js +2 -2
  977. package/dist/esm-es5/mds-badge.entry.js +1 -1
  978. package/dist/esm-es5/mds-banner_3.entry.js +4 -4
  979. package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
  980. package/dist/esm-es5/mds-bibliography.entry.js +1 -1
  981. package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
  982. package/dist/esm-es5/mds-breadcrumb.entry.js +2 -2
  983. package/dist/esm-es5/mds-button-dropdown.entry.js +10 -4
  984. package/dist/esm-es5/mds-button-group.entry.js +1 -1
  985. package/dist/esm-es5/mds-button_3.entry.js +28 -6
  986. package/dist/esm-es5/mds-calendar_2.entry.js +3 -3
  987. package/dist/esm-es5/mds-card-content.entry.js +1 -1
  988. package/dist/esm-es5/mds-card-footer.entry.js +1 -1
  989. package/dist/esm-es5/mds-card-header.entry.js +1 -1
  990. package/dist/esm-es5/mds-card-media.entry.js +1 -1
  991. package/dist/esm-es5/mds-card.entry.js +2 -2
  992. package/dist/esm-es5/mds-details.entry.js +2 -2
  993. package/dist/esm-es5/mds-dropdown.entry.js +2 -2
  994. package/dist/esm-es5/mds-emoji.entry.js +2 -2
  995. package/dist/esm-es5/mds-entity.entry.js +1 -1
  996. package/dist/esm-es5/mds-file-preview.entry.js +12 -12
  997. package/dist/esm-es5/mds-file.entry.js +12 -12
  998. package/dist/esm-es5/mds-filter-item.entry.js +1 -1
  999. package/dist/esm-es5/mds-filter.entry.js +2 -2
  1000. package/dist/esm-es5/mds-header-bar.entry.js +2 -2
  1001. package/dist/esm-es5/mds-header.entry.js +4 -4
  1002. package/dist/esm-es5/mds-horizontal-scroll.entry.js +2 -2
  1003. package/dist/esm-es5/mds-hr.entry.js +1 -1
  1004. package/dist/esm-es5/mds-img.entry.js +1 -1
  1005. package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
  1006. package/dist/esm-es5/mds-input-date-range.entry.js +33 -6
  1007. package/dist/esm-es5/mds-input-date.entry.js +47 -7
  1008. package/dist/esm-es5/mds-input-field.entry.js +2 -2
  1009. package/dist/esm-es5/mds-input-otp.entry.js +21 -4
  1010. package/dist/esm-es5/mds-input-range.entry.js +15 -7
  1011. package/dist/esm-es5/mds-input-select.entry.js +37 -6
  1012. package/dist/esm-es5/mds-input-switch_2.entry.js +24 -4
  1013. package/dist/esm-es5/mds-input-tip_2.entry.js +3 -3
  1014. package/dist/esm-es5/mds-input-upload.entry.js +42 -18
  1015. package/dist/esm-es5/mds-input.entry.js +105 -22
  1016. package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
  1017. package/dist/esm-es5/mds-keyboard.entry.js +2 -2
  1018. package/dist/esm-es5/mds-kpi-item.entry.js +2 -2
  1019. package/dist/esm-es5/mds-kpi.entry.js +1 -1
  1020. package/dist/esm-es5/mds-label.entry.js +1 -1
  1021. package/dist/esm-es5/mds-list-item.entry.js +2 -2
  1022. package/dist/esm-es5/mds-list.entry.js +1 -1
  1023. package/dist/esm-es5/mds-mention.entry.js +2 -2
  1024. package/dist/esm-es5/mds-modal.entry.js +2 -2
  1025. package/dist/esm-es5/mds-note.entry.js +2 -2
  1026. package/dist/esm-es5/mds-notification.entry.js +2 -2
  1027. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  1028. package/dist/esm-es5/mds-paginator.entry.js +2 -2
  1029. package/dist/esm-es5/mds-policy-ai.entry.js +2 -2
  1030. package/dist/esm-es5/mds-pref-animation.entry.js +7 -1
  1031. package/dist/esm-es5/mds-pref-consumption.entry.js +7 -1
  1032. package/dist/esm-es5/mds-pref-contrast.entry.js +8 -2
  1033. package/dist/esm-es5/mds-pref-language-item.entry.js +2 -2
  1034. package/dist/esm-es5/mds-pref-language.entry.js +2 -2
  1035. package/dist/esm-es5/mds-pref-mode.entry.js +10 -2
  1036. package/dist/esm-es5/mds-pref-theme-item.entry.js +2 -2
  1037. package/dist/esm-es5/mds-pref-theme.entry.js +2 -2
  1038. package/dist/esm-es5/mds-pref.entry.js +6 -3
  1039. package/dist/esm-es5/mds-price-table-features-cell.entry.js +2 -2
  1040. package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
  1041. package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
  1042. package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
  1043. package/dist/esm-es5/mds-price-table-list-item.entry.js +2 -2
  1044. package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
  1045. package/dist/esm-es5/mds-price-table.entry.js +1 -1
  1046. package/dist/esm-es5/mds-progress_2.entry.js +3 -3
  1047. package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
  1048. package/dist/esm-es5/mds-push-notification.entry.js +2 -2
  1049. package/dist/esm-es5/mds-quote.entry.js +2 -2
  1050. package/dist/esm-es5/mds-radial-menu-item.entry.js +2 -2
  1051. package/dist/esm-es5/mds-radial-menu.entry.js +2 -2
  1052. package/dist/esm-es5/mds-separator.entry.js +1 -1
  1053. package/dist/esm-es5/mds-status-bar.entry.js +2 -2
  1054. package/dist/esm-es5/mds-stepper-bar-item.entry.js +2 -2
  1055. package/dist/esm-es5/mds-stepper-bar.entry.js +3 -3
  1056. package/dist/esm-es5/mds-tab-bar-item.entry.js +3 -3
  1057. package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
  1058. package/dist/esm-es5/mds-tab_2.entry.js +15 -4
  1059. package/dist/esm-es5/mds-table-body.entry.js +1 -1
  1060. package/dist/esm-es5/mds-table-footer.entry.js +1 -1
  1061. package/dist/esm-es5/mds-table-header-cell.entry.js +2 -2
  1062. package/dist/esm-es5/mds-table-header.entry.js +4 -4
  1063. package/dist/esm-es5/mds-table-row.entry.js +12 -4
  1064. package/dist/esm-es5/mds-table.entry.js +2 -2
  1065. package/dist/esm-es5/mds-text.entry.js +2 -2
  1066. package/dist/esm-es5/mds-toast.entry.js +2 -2
  1067. package/dist/esm-es5/mds-tooltip.entry.js +2 -2
  1068. package/dist/esm-es5/mds-tree-item.entry.js +2 -2
  1069. package/dist/esm-es5/mds-tree.entry.js +2 -2
  1070. package/dist/esm-es5/mds-url-view.entry.js +2 -2
  1071. package/dist/esm-es5/mds-usage.entry.js +2 -2
  1072. package/dist/esm-es5/mds-video-wall.entry.js +2 -2
  1073. package/dist/esm-es5/mds-zero.entry.js +1 -1
  1074. package/dist/esm-es5/preference-DNNqH7BU.js +58 -0
  1075. package/dist/hydrate/index.js +1708 -441
  1076. package/dist/hydrate/index.mjs +1708 -441
  1077. package/dist/magma-components/index.esm.js +1 -1
  1078. package/dist/magma-components/magma-components.esm.js +1 -1
  1079. package/dist/magma-components/magma-components.js +1 -1
  1080. package/dist/magma-components/p-019e8a95.system.entry.js +13 -0
  1081. package/dist/magma-components/p-01dd1f55.entry.js +1 -0
  1082. package/dist/magma-components/p-02119624.system.entry.js +40 -0
  1083. package/dist/magma-components/p-02fc7592.entry.js +1 -0
  1084. package/dist/magma-components/p-03cd0069.system.entry.js +1 -0
  1085. package/dist/magma-components/p-05fbca60.system.entry.js +37 -0
  1086. package/dist/magma-components/p-06d9af89.entry.js +1 -0
  1087. package/dist/magma-components/p-07e4701d.entry.js +1 -0
  1088. package/dist/magma-components/p-081a19b1.system.entry.js +45 -0
  1089. package/dist/magma-components/p-09d0b6a8.entry.js +1 -0
  1090. package/dist/magma-components/p-0a9fb138.system.entry.js +1 -0
  1091. package/dist/magma-components/p-0b300de7.entry.js +1 -0
  1092. package/dist/magma-components/p-0d3c3de9.entry.js +1 -0
  1093. package/dist/magma-components/p-1150ffb8.system.entry.js +10 -0
  1094. package/dist/magma-components/p-115a5e47.entry.js +1 -0
  1095. package/dist/magma-components/p-1314d80e.entry.js +1 -0
  1096. package/dist/magma-components/p-133a6ffd.system.entry.js +49 -0
  1097. package/dist/magma-components/p-13db55de.entry.js +1 -0
  1098. package/dist/magma-components/p-1a2731ec.system.entry.js +10 -0
  1099. package/dist/magma-components/p-1a602906.system.entry.js +13 -0
  1100. package/dist/magma-components/p-1c975156.entry.js +1 -0
  1101. package/dist/magma-components/p-1cb495d3.entry.js +1 -0
  1102. package/dist/magma-components/p-1d154234.system.entry.js +12 -0
  1103. package/dist/magma-components/p-1d9d7666.entry.js +1 -0
  1104. package/dist/magma-components/p-1ddaaa6d.system.entry.js +217 -0
  1105. package/dist/magma-components/p-21aa0a74.entry.js +1 -0
  1106. package/dist/magma-components/p-21c46e74.system.entry.js +4 -0
  1107. package/dist/magma-components/p-2399b7e8.entry.js +1 -0
  1108. package/dist/magma-components/p-25407d89.entry.js +1 -0
  1109. package/dist/magma-components/p-27547a7a.system.entry.js +7 -0
  1110. package/dist/magma-components/p-289a874e.entry.js +1 -0
  1111. package/dist/magma-components/p-2be3bd23.system.entry.js +1 -0
  1112. package/dist/magma-components/p-2c586431.entry.js +1 -0
  1113. package/dist/magma-components/p-2d324edc.entry.js +1 -0
  1114. package/dist/magma-components/p-2da2cdf3.system.entry.js +7 -0
  1115. package/dist/magma-components/p-2e01e057.system.entry.js +7 -0
  1116. package/dist/magma-components/p-2e9b80e8.entry.js +1 -0
  1117. package/dist/magma-components/p-30c3872d.entry.js +1 -0
  1118. package/dist/magma-components/p-3231a6a3.entry.js +1 -0
  1119. package/dist/magma-components/p-32361702.system.entry.js +7 -0
  1120. package/dist/magma-components/p-3448d0ce.entry.js +1 -0
  1121. package/dist/magma-components/p-367cee40.system.entry.js +1 -0
  1122. package/dist/magma-components/p-3a1a6945.entry.js +1 -0
  1123. package/dist/magma-components/p-3a8870e4.system.entry.js +47 -0
  1124. package/dist/magma-components/p-3b68fbcd.system.entry.js +22 -0
  1125. package/dist/magma-components/p-3ecade3c.system.entry.js +11 -0
  1126. package/dist/magma-components/p-3f05ec8a.entry.js +1 -0
  1127. package/dist/magma-components/p-4073c5f2.system.entry.js +90 -0
  1128. package/dist/magma-components/p-40bd2e6d.entry.js +1 -0
  1129. package/dist/magma-components/p-423597db.system.entry.js +4 -0
  1130. package/dist/magma-components/p-443c2a29.system.entry.js +10 -0
  1131. package/dist/magma-components/p-45a91f1c.system.entry.js +1 -0
  1132. package/dist/magma-components/p-487af9d3.entry.js +1 -0
  1133. package/dist/magma-components/p-4909070e.entry.js +1 -0
  1134. package/dist/magma-components/p-4d966161.system.entry.js +14 -0
  1135. package/dist/magma-components/p-4ddf891e.system.entry.js +69 -0
  1136. package/dist/magma-components/p-4e15cde7.entry.js +1 -0
  1137. package/dist/magma-components/p-4f14a166.entry.js +1 -0
  1138. package/dist/magma-components/p-4ffec31a.system.entry.js +1 -0
  1139. package/dist/magma-components/p-50b266e9.system.entry.js +4 -0
  1140. package/dist/magma-components/p-5165b09f.system.entry.js +4 -0
  1141. package/dist/magma-components/p-544cc9c7.system.entry.js +25 -0
  1142. package/dist/magma-components/p-562bb482.system.entry.js +16 -0
  1143. package/dist/magma-components/p-5ac9e2f4.entry.js +1 -0
  1144. package/dist/magma-components/p-5ae5ec95.entry.js +1 -0
  1145. package/dist/magma-components/p-5d2d8ffe.system.entry.js +11 -0
  1146. package/dist/magma-components/p-5e180f53.system.entry.js +32 -0
  1147. package/dist/magma-components/p-61bedbe7.system.entry.js +68 -0
  1148. package/dist/magma-components/p-61ff1d85.system.entry.js +1 -0
  1149. package/dist/magma-components/p-62b17608.system.entry.js +102 -0
  1150. package/dist/magma-components/p-63e7c98f.entry.js +1 -0
  1151. package/dist/magma-components/p-6474c850.entry.js +8 -0
  1152. package/dist/magma-components/p-660657ac.system.entry.js +15 -0
  1153. package/dist/magma-components/p-66237a64.entry.js +1 -0
  1154. package/dist/magma-components/p-6702e489.entry.js +1 -0
  1155. package/dist/magma-components/p-694ed534.entry.js +1 -0
  1156. package/dist/magma-components/p-6b446fd9.system.entry.js +81 -0
  1157. package/dist/magma-components/p-6c414bc2.system.entry.js +19 -0
  1158. package/dist/magma-components/p-6cbd8a6d.system.entry.js +12 -0
  1159. package/dist/magma-components/p-6d0dc1fd.entry.js +1 -0
  1160. package/dist/magma-components/p-6ed05d99.entry.js +1 -0
  1161. package/dist/magma-components/p-6f2471b1.entry.js +1 -0
  1162. package/dist/magma-components/p-6fa03aab.system.entry.js +7 -0
  1163. package/dist/magma-components/p-7-TP6wnI.js +1 -0
  1164. package/dist/magma-components/p-70141ccd.entry.js +1 -0
  1165. package/dist/magma-components/p-707d8626.system.entry.js +2838 -0
  1166. package/dist/magma-components/p-71dafc3f.entry.js +1 -0
  1167. package/dist/magma-components/p-726209f4.system.entry.js +1 -0
  1168. package/dist/magma-components/p-745ee76b.system.entry.js +32 -0
  1169. package/dist/magma-components/p-761415b3.system.entry.js +37 -0
  1170. package/dist/magma-components/p-771720b7.entry.js +18 -0
  1171. package/dist/magma-components/p-7a7c308b.entry.js +1 -0
  1172. package/dist/magma-components/p-7bea6c05.system.entry.js +10 -0
  1173. package/dist/magma-components/p-7c940015.system.entry.js +1 -0
  1174. package/dist/magma-components/p-7ca990d4.system.entry.js +11 -0
  1175. package/dist/magma-components/p-7d6ca97d.system.entry.js +7 -0
  1176. package/dist/magma-components/p-7ffda4f5.entry.js +1 -0
  1177. package/dist/magma-components/p-8097dfc8.system.entry.js +7 -0
  1178. package/dist/magma-components/p-809adece.system.entry.js +17 -0
  1179. package/dist/magma-components/p-843ab1b4.entry.js +1 -0
  1180. package/dist/magma-components/p-87026d34.entry.js +1 -0
  1181. package/dist/magma-components/p-8765dc11.entry.js +1 -0
  1182. package/dist/magma-components/p-876a5fb9.system.entry.js +1 -0
  1183. package/dist/magma-components/p-87faaa8e.system.entry.js +16 -0
  1184. package/dist/magma-components/p-8a838a1a.entry.js +1 -0
  1185. package/dist/magma-components/p-8bcb2a5f.entry.js +1 -0
  1186. package/dist/magma-components/p-8c93550d.entry.js +1 -0
  1187. package/dist/magma-components/p-8ca1d30d.system.entry.js +1 -0
  1188. package/dist/magma-components/p-8yWTOQiz.js +1 -0
  1189. package/dist/magma-components/p-91451e37.system.entry.js +913 -0
  1190. package/dist/magma-components/p-91c4015f.system.entry.js +4 -0
  1191. package/dist/magma-components/p-91c8960a.system.entry.js +1 -0
  1192. package/dist/magma-components/p-932620b6.entry.js +1 -0
  1193. package/dist/magma-components/p-939da879.system.entry.js +8 -0
  1194. package/dist/magma-components/p-97bde480.entry.js +1 -0
  1195. package/dist/magma-components/p-97d02403.entry.js +1 -0
  1196. package/dist/magma-components/p-983f3e40.entry.js +1 -0
  1197. package/dist/magma-components/p-99227c78.system.entry.js +11 -0
  1198. package/dist/magma-components/p-9a583f6b.system.entry.js +1 -0
  1199. package/dist/magma-components/p-9a86e0ce.system.entry.js +1 -0
  1200. package/dist/magma-components/p-9d1cdb42.system.entry.js +15 -0
  1201. package/dist/magma-components/p-9e5982b6.entry.js +1 -0
  1202. package/dist/magma-components/p-9eb1e154.system.entry.js +14 -0
  1203. package/dist/magma-components/p-9eef2f79.entry.js +1 -0
  1204. package/dist/magma-components/p-9fe14430.system.entry.js +7 -0
  1205. package/dist/magma-components/p-9fe7035a.entry.js +1 -0
  1206. package/dist/magma-components/p-BPNsbMrg.system.js +67 -0
  1207. package/dist/magma-components/p-BS7eEvwu.system.js +17 -0
  1208. package/dist/magma-components/p-BTF_aRDG.system.js +231 -0
  1209. package/dist/magma-components/p-BpVYIPkx.js +1 -0
  1210. package/dist/magma-components/p-BxPbQB28.js +3 -0
  1211. package/dist/magma-components/p-CKfEQ187.system.js +107 -0
  1212. package/dist/magma-components/p-CdsZyFQ-.system.js +10 -0
  1213. package/dist/magma-components/p-DaONbL_w.system.js +162 -0
  1214. package/dist/magma-components/p-Kv1yahtR.js +5 -0
  1215. package/dist/magma-components/p-ZDRIVCAt.system.js +5 -0
  1216. package/dist/magma-components/p-a0972ec9.entry.js +1 -0
  1217. package/dist/magma-components/p-a0d9e01f.system.entry.js +1 -0
  1218. package/dist/magma-components/p-a1851e6f.entry.js +1 -0
  1219. package/dist/magma-components/p-a1b5bd58.entry.js +1 -0
  1220. package/dist/magma-components/p-a2d9549d.system.entry.js +32 -0
  1221. package/dist/magma-components/p-a5a13b20.entry.js +1 -0
  1222. package/dist/magma-components/p-a6a71c77.entry.js +1 -0
  1223. package/dist/magma-components/p-a96312c1.entry.js +1 -0
  1224. package/dist/magma-components/p-a9e4efa3.entry.js +1 -0
  1225. package/dist/magma-components/p-aa0bd826.entry.js +1 -0
  1226. package/dist/magma-components/p-aa74169f.system.entry.js +1 -0
  1227. package/dist/magma-components/p-ab4ffbd4.system.entry.js +68 -0
  1228. package/dist/magma-components/p-ad09a06b.entry.js +1 -0
  1229. package/dist/magma-components/p-ad9cb1f5.entry.js +1 -0
  1230. package/dist/magma-components/p-aed8b119.entry.js +1 -0
  1231. package/dist/magma-components/p-afbef2fc.entry.js +1 -0
  1232. package/dist/magma-components/p-b183d698.system.entry.js +16 -0
  1233. package/dist/magma-components/p-b49196da.entry.js +1 -0
  1234. package/dist/magma-components/p-b77a2832.entry.js +1 -0
  1235. package/dist/magma-components/p-b925c109.system.entry.js +14 -0
  1236. package/dist/magma-components/p-b9e3281a.system.entry.js +72 -0
  1237. package/dist/magma-components/p-bb0538b6.entry.js +1 -0
  1238. package/dist/magma-components/p-bb055583.entry.js +1 -0
  1239. package/dist/magma-components/p-bba04b08.system.entry.js +14 -0
  1240. package/dist/magma-components/p-bc6a41a9.system.entry.js +1 -0
  1241. package/dist/magma-components/p-bd9324f3.system.entry.js +1 -0
  1242. package/dist/magma-components/p-c48e3460.entry.js +1 -0
  1243. package/dist/magma-components/p-c4beed1b.entry.js +1 -0
  1244. package/dist/magma-components/p-c4ccb710.entry.js +1 -0
  1245. package/dist/magma-components/p-c4e4ba90.system.entry.js +38 -0
  1246. package/dist/magma-components/p-c573e136.entry.js +1 -0
  1247. package/dist/magma-components/p-c5ad848f.entry.js +1 -0
  1248. package/dist/magma-components/p-c6841b21.entry.js +1 -0
  1249. package/dist/magma-components/p-c89a44b2.entry.js +1 -0
  1250. package/dist/magma-components/p-c94575de.entry.js +1 -0
  1251. package/dist/magma-components/p-cabe9133.system.entry.js +4 -0
  1252. package/dist/magma-components/p-cb2c5f1b.entry.js +1 -0
  1253. package/dist/magma-components/p-cb571b55.system.entry.js +1 -0
  1254. package/dist/magma-components/p-cbc0f01f.system.entry.js +17 -0
  1255. package/dist/magma-components/p-cc1ee10a.system.entry.js +20 -0
  1256. package/dist/magma-components/p-cd1dc29a.entry.js +1 -0
  1257. package/dist/magma-components/p-cd5cf28b.system.entry.js +1 -0
  1258. package/dist/magma-components/p-cd952369.entry.js +1 -0
  1259. package/dist/magma-components/p-d35aebe5.entry.js +1 -0
  1260. package/dist/magma-components/p-d5e53364.system.entry.js +1 -0
  1261. package/dist/magma-components/p-d74fa7af.entry.js +1 -0
  1262. package/dist/magma-components/p-d7515aae.entry.js +1 -0
  1263. package/dist/magma-components/p-d7a94afb.system.entry.js +7 -0
  1264. package/dist/magma-components/p-d93c9a11.system.entry.js +89 -0
  1265. package/dist/magma-components/p-d9fbbf3f.entry.js +1 -0
  1266. package/dist/magma-components/p-db492cf5.system.entry.js +13 -0
  1267. package/dist/magma-components/p-dc06b29e.entry.js +1 -0
  1268. package/dist/magma-components/p-dc399372.entry.js +1 -0
  1269. package/dist/magma-components/p-dc7bada4.entry.js +1 -0
  1270. package/dist/magma-components/p-dcf841d5.entry.js +1 -0
  1271. package/dist/magma-components/p-dfb4a965.system.entry.js +28 -0
  1272. package/dist/magma-components/p-e1a91e9e.system.entry.js +1 -0
  1273. package/dist/magma-components/p-e2ef1d6f.entry.js +1 -0
  1274. package/dist/magma-components/p-e5438280.system.entry.js +10 -0
  1275. package/dist/magma-components/p-e8cd2b93.system.entry.js +4 -0
  1276. package/dist/magma-components/p-e95f2a48.entry.js +1 -0
  1277. package/dist/magma-components/p-eb113725.system.entry.js +1 -0
  1278. package/dist/magma-components/p-ec5eccbb.entry.js +1 -0
  1279. package/dist/magma-components/p-eca99a0a.system.entry.js +1 -0
  1280. package/dist/magma-components/p-ed897f9f.entry.js +1 -0
  1281. package/dist/magma-components/p-eea815ca.system.entry.js +16 -0
  1282. package/dist/magma-components/p-ef4cd904.system.entry.js +16 -0
  1283. package/dist/magma-components/p-eff1fd6c.system.entry.js +15 -0
  1284. package/dist/magma-components/p-eff38775.entry.js +1 -0
  1285. package/dist/magma-components/p-f01874a8.entry.js +1 -0
  1286. package/dist/magma-components/p-f05d7005.entry.js +1 -0
  1287. package/dist/magma-components/p-f0c67a70.system.entry.js +15 -0
  1288. package/dist/magma-components/p-f215496c.entry.js +1 -0
  1289. package/dist/magma-components/p-f28cfb33.system.entry.js +4 -0
  1290. package/dist/magma-components/p-f3dbebdd.system.entry.js +27 -0
  1291. package/dist/magma-components/p-f65e29e0.system.entry.js +1 -0
  1292. package/dist/magma-components/p-f830793e.entry.js +1 -0
  1293. package/dist/magma-components/p-f835c307.system.entry.js +7 -0
  1294. package/dist/magma-components/p-f89c3a01.system.entry.js +32 -0
  1295. package/dist/magma-components/p-f8da21a1.system.entry.js +3 -0
  1296. package/dist/magma-components/p-f8eb19b3.entry.js +1 -0
  1297. package/dist/magma-components/p-f8feee93.system.entry.js +4 -0
  1298. package/dist/magma-components/p-f97b4ff4.system.entry.js +16 -0
  1299. package/dist/magma-components/p-fc8f8a0c.entry.js +1 -0
  1300. package/dist/magma-components/p-fcaa5967.entry.js +18 -0
  1301. package/dist/magma-components/p-ff970859.system.entry.js +30 -0
  1302. package/dist/magma-components/p-hVpoPUxI.system.js +58 -0
  1303. package/dist/magma-components/p-wI0alRSO.js +1 -0
  1304. package/dist/stats.json +3235 -2557
  1305. package/dist/types/common/form.d.ts +8 -1
  1306. package/dist/types/common/navigation.d.ts +32 -0
  1307. package/dist/types/common/preference.d.ts +1 -1
  1308. package/dist/types/common/validity/index.d.ts +22 -0
  1309. package/dist/types/components/mds-button/mds-button.d.ts +32 -2
  1310. package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +23 -1
  1311. package/dist/types/components/mds-input/mds-input.d.ts +41 -2
  1312. package/dist/types/components/mds-input/meta/validators.d.ts +22 -0
  1313. package/dist/types/components/mds-input/meta/validity.d.ts +14 -0
  1314. package/dist/types/components/mds-input-date/mds-input-date.d.ts +38 -0
  1315. package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +26 -0
  1316. package/dist/types/components/mds-input-otp/mds-input-otp.d.ts +21 -2
  1317. package/dist/types/components/mds-input-range/mds-input-range.d.ts +8 -1
  1318. package/dist/types/components/mds-input-select/mds-input-select.d.ts +41 -4
  1319. package/dist/types/components/mds-input-select/meta/event-detail.d.ts +8 -0
  1320. package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +17 -0
  1321. package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +27 -5
  1322. package/dist/types/components/mds-keyboard-key/meta/icons.d.ts +1 -1
  1323. package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +10 -1
  1324. package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +10 -1
  1325. package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +10 -1
  1326. package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +10 -1
  1327. package/dist/types/components/mds-tab/mds-tab.d.ts +6 -1
  1328. package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +6 -1
  1329. package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -2
  1330. package/dist/types/components.d.ts +106 -23
  1331. package/dist/types/index.d.ts +12 -4
  1332. package/package.json +27 -14
  1333. package/dist/cjs/floating-controller-Cd_vNLLD.js +0 -369
  1334. package/dist/cjs/form-DTCBh5WK.js +0 -22
  1335. package/dist/cjs/index--6wz7eWi.js +0 -5183
  1336. package/dist/cjs/locale-CB5_Z7PE.js +0 -816
  1337. package/dist/cjs/preference-eJcbLLAn.js +0 -389
  1338. package/dist/components/p-6K9sFzLr.js +0 -1
  1339. package/dist/components/p-A9TZf0Ii.js +0 -1
  1340. package/dist/components/p-BBhbQT2f.js +0 -1
  1341. package/dist/components/p-BFpRu7yD.js +0 -1
  1342. package/dist/components/p-BL63WAAq.js +0 -8
  1343. package/dist/components/p-BNHXZ-JR.js +0 -1
  1344. package/dist/components/p-BShLEry5.js +0 -1
  1345. package/dist/components/p-BSxuG1vZ.js +0 -1
  1346. package/dist/components/p-BTHR4xXu.js +0 -1
  1347. package/dist/components/p-BYxxgEE_.js +0 -1
  1348. package/dist/components/p-BZFyAX-6.js +0 -1
  1349. package/dist/components/p-BhFTcUD0.js +0 -3
  1350. package/dist/components/p-Bss3F51Q.js +0 -5
  1351. package/dist/components/p-BtMdmkID.js +0 -1
  1352. package/dist/components/p-ByaUOMp0.js +0 -1
  1353. package/dist/components/p-C1xZO_fq.js +0 -1
  1354. package/dist/components/p-C58NKMEE.js +0 -1
  1355. package/dist/components/p-C6Q4zFh6.js +0 -1
  1356. package/dist/components/p-CUQ7WIXh.js +0 -1
  1357. package/dist/components/p-CVpjH8Un.js +0 -1
  1358. package/dist/components/p-Cd_8zD_I.js +0 -1
  1359. package/dist/components/p-CnAeawmf.js +0 -1
  1360. package/dist/components/p-CvIFS8oA.js +0 -1
  1361. package/dist/components/p-DCrjf0F0.js +0 -1
  1362. package/dist/components/p-DlHJvYE7.js +0 -1
  1363. package/dist/components/p-DlaJNPdd.js +0 -1
  1364. package/dist/components/p-DnrQaRnh.js +0 -1
  1365. package/dist/components/p-OPg_Naue.js +0 -1
  1366. package/dist/components/p-RS4yyl41.js +0 -1
  1367. package/dist/components/p-gv3eu44S.js +0 -1
  1368. package/dist/components/p-kff6xSdW.js +0 -1
  1369. package/dist/components/p-pys1EQ60.js +0 -1
  1370. package/dist/components/p-qketFgr0.js +0 -1
  1371. package/dist/components/p-wq6nWuWE.js +0 -1
  1372. package/dist/components/p-zml3K7nx.js +0 -1
  1373. package/dist/esm/floating-controller-DVldZ5mh.js +0 -366
  1374. package/dist/esm/form-A9TZf0Ii.js +0 -19
  1375. package/dist/esm/index-DIiEV39g.js +0 -5149
  1376. package/dist/esm/locale-CbJbTW_c.js +0 -814
  1377. package/dist/esm/preference-CKerJx2M.js +0 -385
  1378. package/dist/esm-es5/floating-controller-DVldZ5mh.js +0 -66
  1379. package/dist/esm-es5/form-A9TZf0Ii.js +0 -8
  1380. package/dist/esm-es5/index-DIiEV39g.js +0 -371
  1381. package/dist/esm-es5/locale-CbJbTW_c.js +0 -230
  1382. package/dist/esm-es5/preference-CKerJx2M.js +0 -58
  1383. package/dist/magma-components/p-005172ba.entry.js +0 -1
  1384. package/dist/magma-components/p-05fa40aa.system.entry.js +0 -10
  1385. package/dist/magma-components/p-071f18c6.system.entry.js +0 -27
  1386. package/dist/magma-components/p-0798b0bf.system.entry.js +0 -24
  1387. package/dist/magma-components/p-0827a5bd.entry.js +0 -1
  1388. package/dist/magma-components/p-086fb3aa.entry.js +0 -1
  1389. package/dist/magma-components/p-0a088e7d.system.entry.js +0 -10
  1390. package/dist/magma-components/p-0a691082.entry.js +0 -1
  1391. package/dist/magma-components/p-0ec21574.system.entry.js +0 -10
  1392. package/dist/magma-components/p-0f6bb54d.system.entry.js +0 -22
  1393. package/dist/magma-components/p-102d3bd3.system.entry.js +0 -1
  1394. package/dist/magma-components/p-10704ede.system.entry.js +0 -4
  1395. package/dist/magma-components/p-15c77a98.system.entry.js +0 -19
  1396. package/dist/magma-components/p-15f63bf3.entry.js +0 -1
  1397. package/dist/magma-components/p-16e9fb14.system.entry.js +0 -7
  1398. package/dist/magma-components/p-181dfb04.entry.js +0 -1
  1399. package/dist/magma-components/p-184720be.system.entry.js +0 -1
  1400. package/dist/magma-components/p-18473d2f.entry.js +0 -1
  1401. package/dist/magma-components/p-18667ae7.system.entry.js +0 -13
  1402. package/dist/magma-components/p-18f7b970.system.entry.js +0 -4
  1403. package/dist/magma-components/p-19adde9d.entry.js +0 -1
  1404. package/dist/magma-components/p-1afc0452.entry.js +0 -1
  1405. package/dist/magma-components/p-1cce738a.system.entry.js +0 -32
  1406. package/dist/magma-components/p-1df6ac96.system.entry.js +0 -7
  1407. package/dist/magma-components/p-209063b6.system.entry.js +0 -50
  1408. package/dist/magma-components/p-216f95cc.system.entry.js +0 -1
  1409. package/dist/magma-components/p-21891a24.entry.js +0 -1
  1410. package/dist/magma-components/p-21d6687a.system.entry.js +0 -7
  1411. package/dist/magma-components/p-2217a7be.entry.js +0 -1
  1412. package/dist/magma-components/p-231505e8.entry.js +0 -1
  1413. package/dist/magma-components/p-2386f0d6.system.entry.js +0 -37
  1414. package/dist/magma-components/p-23e61db9.system.entry.js +0 -4
  1415. package/dist/magma-components/p-25935d33.system.entry.js +0 -1
  1416. package/dist/magma-components/p-284c40cd.system.entry.js +0 -4
  1417. package/dist/magma-components/p-29684655.system.entry.js +0 -16
  1418. package/dist/magma-components/p-2b56fc14.entry.js +0 -1
  1419. package/dist/magma-components/p-2b73fee6.entry.js +0 -1
  1420. package/dist/magma-components/p-2d5aadba.system.entry.js +0 -7
  1421. package/dist/magma-components/p-2de17848.entry.js +0 -1
  1422. package/dist/magma-components/p-34482514.entry.js +0 -1
  1423. package/dist/magma-components/p-34c0890e.entry.js +0 -1
  1424. package/dist/magma-components/p-3635eca6.system.entry.js +0 -1
  1425. package/dist/magma-components/p-3b0c1202.entry.js +0 -1
  1426. package/dist/magma-components/p-3db23b5f.system.entry.js +0 -16
  1427. package/dist/magma-components/p-3ec7d3ea.entry.js +0 -1
  1428. package/dist/magma-components/p-3f747a63.system.entry.js +0 -1
  1429. package/dist/magma-components/p-3ff30842.system.entry.js +0 -16
  1430. package/dist/magma-components/p-40563e33.entry.js +0 -1
  1431. package/dist/magma-components/p-41bf6f25.system.entry.js +0 -81
  1432. package/dist/magma-components/p-421a630e.entry.js +0 -1
  1433. package/dist/magma-components/p-4299b76b.system.entry.js +0 -4
  1434. package/dist/magma-components/p-4543501c.entry.js +0 -1
  1435. package/dist/magma-components/p-4616bc07.entry.js +0 -1
  1436. package/dist/magma-components/p-46786d71.system.entry.js +0 -14
  1437. package/dist/magma-components/p-470e5ac8.system.entry.js +0 -1
  1438. package/dist/magma-components/p-48d37230.entry.js +0 -1
  1439. package/dist/magma-components/p-49b120cb.system.entry.js +0 -13
  1440. package/dist/magma-components/p-4af76eb3.entry.js +0 -1
  1441. package/dist/magma-components/p-4b3a8132.system.entry.js +0 -13
  1442. package/dist/magma-components/p-4ba6cb3f.entry.js +0 -1
  1443. package/dist/magma-components/p-4c8316a8.entry.js +0 -1
  1444. package/dist/magma-components/p-4c95442e.entry.js +0 -1
  1445. package/dist/magma-components/p-4cadbd49.entry.js +0 -1
  1446. package/dist/magma-components/p-4e4bdbf8.entry.js +0 -1
  1447. package/dist/magma-components/p-4e5ab0e4.system.entry.js +0 -16
  1448. package/dist/magma-components/p-4f107cb2.system.entry.js +0 -2838
  1449. package/dist/magma-components/p-518b55f3.entry.js +0 -1
  1450. package/dist/magma-components/p-56ad5bf2.entry.js +0 -1
  1451. package/dist/magma-components/p-5eec629c.system.entry.js +0 -17
  1452. package/dist/magma-components/p-5f545f85.system.entry.js +0 -1
  1453. package/dist/magma-components/p-61a5ac3d.system.entry.js +0 -17
  1454. package/dist/magma-components/p-636cc471.entry.js +0 -1
  1455. package/dist/magma-components/p-646034cb.system.entry.js +0 -27
  1456. package/dist/magma-components/p-677ab154.system.entry.js +0 -3
  1457. package/dist/magma-components/p-67d80d37.system.entry.js +0 -1
  1458. package/dist/magma-components/p-6937f340.entry.js +0 -1
  1459. package/dist/magma-components/p-6b7e449f.entry.js +0 -1
  1460. package/dist/magma-components/p-6c417ea1.system.entry.js +0 -913
  1461. package/dist/magma-components/p-6ce60d59.entry.js +0 -1
  1462. package/dist/magma-components/p-6cf760ea.system.entry.js +0 -45
  1463. package/dist/magma-components/p-6dc27543.entry.js +0 -1
  1464. package/dist/magma-components/p-6de37588.entry.js +0 -1
  1465. package/dist/magma-components/p-6f6b5eb5.entry.js +0 -1
  1466. package/dist/magma-components/p-7090184f.entry.js +0 -1
  1467. package/dist/magma-components/p-716ad14c.entry.js +0 -1
  1468. package/dist/magma-components/p-71804224.entry.js +0 -1
  1469. package/dist/magma-components/p-735dc594.system.entry.js +0 -1
  1470. package/dist/magma-components/p-739fdf76.system.entry.js +0 -1
  1471. package/dist/magma-components/p-74b0902a.entry.js +0 -1
  1472. package/dist/magma-components/p-7530a2f2.entry.js +0 -1
  1473. package/dist/magma-components/p-759133b3.entry.js +0 -1
  1474. package/dist/magma-components/p-75dd012a.system.entry.js +0 -11
  1475. package/dist/magma-components/p-76ae22d6.entry.js +0 -1
  1476. package/dist/magma-components/p-78248693.entry.js +0 -1
  1477. package/dist/magma-components/p-7912f877.entry.js +0 -1
  1478. package/dist/magma-components/p-7c0d202c.entry.js +0 -1
  1479. package/dist/magma-components/p-7d304fd4.system.entry.js +0 -65
  1480. package/dist/magma-components/p-7f6d708c.system.entry.js +0 -41
  1481. package/dist/magma-components/p-81b72b6e.entry.js +0 -1
  1482. package/dist/magma-components/p-859ab5a2.entry.js +0 -18
  1483. package/dist/magma-components/p-88564e9b.system.entry.js +0 -14
  1484. package/dist/magma-components/p-896ae0ee.entry.js +0 -1
  1485. package/dist/magma-components/p-89a3bc7a.system.entry.js +0 -16
  1486. package/dist/magma-components/p-8b1abf81.system.entry.js +0 -32
  1487. package/dist/magma-components/p-8bbee38d.entry.js +0 -1
  1488. package/dist/magma-components/p-8bf680d6.system.entry.js +0 -15
  1489. package/dist/magma-components/p-8cb3a071.system.entry.js +0 -15
  1490. package/dist/magma-components/p-8dff6606.system.entry.js +0 -11
  1491. package/dist/magma-components/p-8e40eda3.system.entry.js +0 -9
  1492. package/dist/magma-components/p-8f229eaf.entry.js +0 -1
  1493. package/dist/magma-components/p-91b9d4e7.system.entry.js +0 -4
  1494. package/dist/magma-components/p-92e1001f.entry.js +0 -1
  1495. package/dist/magma-components/p-9378b373.system.entry.js +0 -49
  1496. package/dist/magma-components/p-94fa3396.system.entry.js +0 -47
  1497. package/dist/magma-components/p-9741d95e.system.entry.js +0 -7
  1498. package/dist/magma-components/p-97ea9e6e.system.entry.js +0 -68
  1499. package/dist/magma-components/p-9846fe89.system.entry.js +0 -1
  1500. package/dist/magma-components/p-998721b9.system.entry.js +0 -1
  1501. package/dist/magma-components/p-9a5296c0.system.entry.js +0 -7
  1502. package/dist/magma-components/p-9bbd4193.system.entry.js +0 -102
  1503. package/dist/magma-components/p-9be4a736.entry.js +0 -1
  1504. package/dist/magma-components/p-9caffe14.entry.js +0 -1
  1505. package/dist/magma-components/p-9d86477d.system.entry.js +0 -1
  1506. package/dist/magma-components/p-9de1ac7f.entry.js +0 -1
  1507. package/dist/magma-components/p-9e3bc553.system.entry.js +0 -26
  1508. package/dist/magma-components/p-9e58467e.system.entry.js +0 -10
  1509. package/dist/magma-components/p-9e9a1ebd.system.entry.js +0 -15
  1510. package/dist/magma-components/p-A9TZf0Ii.js +0 -1
  1511. package/dist/magma-components/p-BFnx_0hM.js +0 -5
  1512. package/dist/magma-components/p-BbMKuVem.js +0 -1
  1513. package/dist/magma-components/p-C2FHijr2.system.js +0 -231
  1514. package/dist/magma-components/p-CDTiTqY0.system.js +0 -58
  1515. package/dist/magma-components/p-CI85vVs8.system.js +0 -9
  1516. package/dist/magma-components/p-CnXBPjmc.system.js +0 -5
  1517. package/dist/magma-components/p-DB8Rm54c.js +0 -1
  1518. package/dist/magma-components/p-DIiEV39g.js +0 -3
  1519. package/dist/magma-components/p-DVd2EM-q.system.js +0 -90
  1520. package/dist/magma-components/p-DmC-b-ZK.system.js +0 -67
  1521. package/dist/magma-components/p-MGv0i39Y.system.js +0 -162
  1522. package/dist/magma-components/p-a15da479.system.entry.js +0 -8
  1523. package/dist/magma-components/p-a3b0f586.entry.js +0 -1
  1524. package/dist/magma-components/p-a93b2a39.entry.js +0 -1
  1525. package/dist/magma-components/p-aa267e7b.entry.js +0 -1
  1526. package/dist/magma-components/p-ab9095ae.system.entry.js +0 -4
  1527. package/dist/magma-components/p-ab997243.system.entry.js +0 -4
  1528. package/dist/magma-components/p-ace198e9.entry.js +0 -1
  1529. package/dist/magma-components/p-ad3983b2.entry.js +0 -1
  1530. package/dist/magma-components/p-aea6081f.entry.js +0 -1
  1531. package/dist/magma-components/p-af41c8b8.system.entry.js +0 -1
  1532. package/dist/magma-components/p-af45f0a5.system.entry.js +0 -20
  1533. package/dist/magma-components/p-b0539d61.system.entry.js +0 -32
  1534. package/dist/magma-components/p-b35c26f8.entry.js +0 -18
  1535. package/dist/magma-components/p-b3a3578c.entry.js +0 -1
  1536. package/dist/magma-components/p-b49e0321.system.entry.js +0 -1
  1537. package/dist/magma-components/p-b71e0d51.entry.js +0 -1
  1538. package/dist/magma-components/p-b8d4a14e.entry.js +0 -1
  1539. package/dist/magma-components/p-ba035f90.entry.js +0 -1
  1540. package/dist/magma-components/p-bc51d310.system.entry.js +0 -1
  1541. package/dist/magma-components/p-bd490a8e.entry.js +0 -1
  1542. package/dist/magma-components/p-be198039.system.entry.js +0 -4
  1543. package/dist/magma-components/p-bf7168b4.entry.js +0 -1
  1544. package/dist/magma-components/p-bf84d9fa.entry.js +0 -1
  1545. package/dist/magma-components/p-c4e58240.entry.js +0 -1
  1546. package/dist/magma-components/p-c573de10.entry.js +0 -1
  1547. package/dist/magma-components/p-c6be3db7.system.entry.js +0 -1
  1548. package/dist/magma-components/p-c7517884.system.entry.js +0 -38
  1549. package/dist/magma-components/p-c9be79bd.entry.js +0 -1
  1550. package/dist/magma-components/p-c9e12c2b.system.entry.js +0 -7
  1551. package/dist/magma-components/p-cb6a1908.entry.js +0 -1
  1552. package/dist/magma-components/p-cbd5aef4.system.entry.js +0 -14
  1553. package/dist/magma-components/p-cc033985.system.entry.js +0 -14
  1554. package/dist/magma-components/p-cd21137b.system.entry.js +0 -1
  1555. package/dist/magma-components/p-cd84a264.system.entry.js +0 -41
  1556. package/dist/magma-components/p-d0457835.entry.js +0 -1
  1557. package/dist/magma-components/p-d3116844.entry.js +0 -1
  1558. package/dist/magma-components/p-d38165ed.system.entry.js +0 -1
  1559. package/dist/magma-components/p-d3933a22.entry.js +0 -1
  1560. package/dist/magma-components/p-d44c49d6.system.entry.js +0 -8
  1561. package/dist/magma-components/p-d4a529ce.entry.js +0 -1
  1562. package/dist/magma-components/p-d64311e2.entry.js +0 -1
  1563. package/dist/magma-components/p-d6d4aa1a.entry.js +0 -1
  1564. package/dist/magma-components/p-d81e7100.system.entry.js +0 -15
  1565. package/dist/magma-components/p-d8c27f4b.entry.js +0 -1
  1566. package/dist/magma-components/p-d921d876.entry.js +0 -1
  1567. package/dist/magma-components/p-da1ac3e1.entry.js +0 -1
  1568. package/dist/magma-components/p-da4dc390.system.entry.js +0 -4
  1569. package/dist/magma-components/p-dda7a33b.entry.js +0 -1
  1570. package/dist/magma-components/p-de6bc3c8.entry.js +0 -1
  1571. package/dist/magma-components/p-df2b7607.system.entry.js +0 -4
  1572. package/dist/magma-components/p-e0b2ef8f.system.entry.js +0 -1
  1573. package/dist/magma-components/p-e0c50a2d.entry.js +0 -1
  1574. package/dist/magma-components/p-e1277efe.system.entry.js +0 -1
  1575. package/dist/magma-components/p-e1e6dd97.entry.js +0 -1
  1576. package/dist/magma-components/p-e2f7a9bd.system.entry.js +0 -1
  1577. package/dist/magma-components/p-e375c8b1.entry.js +0 -1
  1578. package/dist/magma-components/p-e3fce8ca.entry.js +0 -1
  1579. package/dist/magma-components/p-e5c6f9a9.system.entry.js +0 -7
  1580. package/dist/magma-components/p-e5da7036.entry.js +0 -1
  1581. package/dist/magma-components/p-e6dccab5.system.entry.js +0 -1
  1582. package/dist/magma-components/p-e9a16f22.system.entry.js +0 -134
  1583. package/dist/magma-components/p-ea0091b6.entry.js +0 -1
  1584. package/dist/magma-components/p-ec00defc.system.entry.js +0 -13
  1585. package/dist/magma-components/p-ec59ec9a.entry.js +0 -1
  1586. package/dist/magma-components/p-eddcef53.system.entry.js +0 -1
  1587. package/dist/magma-components/p-edfb0d7a.entry.js +0 -1
  1588. package/dist/magma-components/p-eed00e7f.system.entry.js +0 -1
  1589. package/dist/magma-components/p-ef8cb401.entry.js +0 -1
  1590. package/dist/magma-components/p-f070a5b5.system.entry.js +0 -11
  1591. package/dist/magma-components/p-f23d4974.entry.js +0 -1
  1592. package/dist/magma-components/p-f542246f.system.entry.js +0 -1
  1593. package/dist/magma-components/p-f5c680dd.entry.js +0 -1
  1594. package/dist/magma-components/p-f60c6e8e.system.entry.js +0 -40
  1595. package/dist/magma-components/p-f8369939.entry.js +0 -1
  1596. package/dist/magma-components/p-f97ede3e.system.entry.js +0 -19
  1597. package/dist/magma-components/p-f97ff5b2.entry.js +0 -1
  1598. package/dist/magma-components/p-f9d9cf7c.system.entry.js +0 -11
  1599. package/dist/magma-components/p-fa163e86.entry.js +0 -1
  1600. package/dist/magma-components/p-fe1662e8.system.entry.js +0 -28
  1601. package/dist/magma-components/p-fe19080a.entry.js +0 -8
  1602. package/dist/magma-components/p-ff133cbd.entry.js +0 -1
  1603. package/dist/magma-components/p-ff49fb35.entry.js +0 -1
  1604. package/dist/magma-components/p-fff44704.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as e,H as a,d as t,h as i,c as r,t as d}from"./p-BhFTcUD0.js";import{b as s}from"./p-CsgCQiHG.js";import{p as n}from"./p-CvIFS8oA.js";import{d as o}from"./p-kff6xSdW.js";import{d as h}from"./p-qketFgr0.js";import{d as m}from"./p-BShLEry5.js";import{d as l}from"./p-C58NKMEE.js";import{d as c}from"./p-BZFyAX-6.js";const p=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.closedEvent=t(this,"mdsHeaderClose",7),this.visibleEvent=t(this,"mdsHeaderVisibilityChange",7),this.relativeTresholdDown=0,this.relativePosition=0,this.relativeThresholdUp=0,this.sanitizedAppearance=["stripe"],this.appearanceThreshold=300,this.appearance="stripe",this.hideBackdrop=!1,this.menu="mobile",this.nav="desktop",this.threshold=1,this.visibility="visible",this.mobileMenu=()=>s(this.host,"menu"),this.close=()=>{this.isOpened=!1,this.closedEvent.emit({bar:this.headerBar}),this.headerBar.setOpened(!1)},this.getAutoHide=()=>{var e;const a=null!==(e=this.autoHide)&&void 0!==e?e:0;return Number.isNaN(a)?0:a},this.handleVisibility=()=>{const e=this.getAutoHide();if(0!==e){if(window.scrollY<e)return this.visibility="visible",this.relativeThresholdUp=0,this.relativeTresholdDown=0,void(this.relativePosition=0);this.relativeTresholdDown-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=this.relativeTresholdDown),this.relativeThresholdUp-window.scrollY>=this.threshold&&(this.visibility="visible",this.relativeThresholdUp=window.scrollY,this.relativePosition=this.relativeThresholdUp),this.relativePosition<e&&e-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=e),window.scrollY>this.relativeThresholdUp?this.relativeThresholdUp=window.scrollY:this.relativeTresholdDown=window.scrollY+this.threshold}},this.sanitizeAppearance=()=>{var e;const a=null!==(e=this.appearanceSet)&&void 0!==e?e:"";if(""===a)return[this.appearance];return a.match(/\b(\w+)\b/g)||[this.appearance]},this.handleAppearance=()=>{var e,a;this.appearance=window.scrollY>=this.appearanceThreshold?null!==(e=this.sanitizedAppearance[1])&&void 0!==e?e:this.appearance:null!==(a=this.sanitizedAppearance[0])&&void 0!==a?a:this.appearance},this.handleScroll=()=>{"undefined"!=typeof window&&(0!==this.getAutoHide()&&this.handleVisibility(),this.sanitizedAppearance.length>1&&this.handleAppearance())},this.setAppearanceSetData=()=>{this.sanitizedAppearance=this.sanitizeAppearance(),void 0===this.sanitizedAppearance[2]||0===this.sanitizedAppearance[2]||Number.isNaN(this.sanitizedAppearance[2])||(this.appearanceThreshold=this.sanitizedAppearance[2]),this.relativeTresholdDown=this.threshold},this.initScrollListener=()=>{"undefined"!=typeof window&&(this.setAppearanceSetData(),window.addEventListener("scroll",this.handleScroll))},this.defineHeaderBar=()=>{this.headerBar=this.host.querySelector("mds-header-bar")}}async setOpened(e=!0){this.isOpened=e}disconnectedCallback(){"undefined"!=typeof window&&window.removeEventListener("scroll",this.handleScroll)}componentWillLoad(){this.hasMenu=null!==this.mobileMenu(),this.onMenuChangedHandler(this.hasMenu?this.menu:"none")}componentDidLoad(){this.defineHeaderBar(),this.onMenuChangedHandler(this.menu),this.onNavChangedHandler(this.nav),this.initScrollListener()}onMenuChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.menu=e)}onNavChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.nav=e)}onAppearanceSetChangedHandler(){this.setAppearanceSetData()}handleVisibilityChange(e,a){e!==a&&this.visibleEvent.emit({visibility:e})}render(){return i(r,{key:"f672f81878e181d21c234188d2ad02ded1bdb039","pref-consumption":n.state.consumption,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},!this.hideBackdrop&&i("div",{key:"6bf87ed021bcdb62c728fbee3818a8ad11895b06",class:"backdrop"},i("div",{key:"6a3ad84c2e41313c14531b514b2752f972986ec4",class:"backdrop-blur-item"}),i("div",{key:"b8031f912733bcc01f47ae28e756ae9f9f184bf1",class:"backdrop-blur-item"}),i("div",{key:"b9fddc9c2c459bc1b16ef7cc4fe0dd62c6ae0357",class:"backdrop-blur-item"}),i("div",{key:"fb97781789e0773d35b31744a3f28bd23816e9eb",class:"backdrop-blur-item"}),i("div",{key:"1d464ccd4d846ac79d1b0ea303ab66f41af84116",class:"backdrop-blur-item"}),i("div",{key:"7ab61f7f2f21da6ad94408442237b8e2a16d32c1",class:"backdrop-blur-item"}),i("div",{key:"90fb7f3244c8047c6a576288dad756451de07cdf",class:"backdrop-blur-item"}),i("div",{key:"955ff4ac62f6a5e50726fcf5d097202622e760d2",class:"backdrop-blur-item"}),i("div",{key:"49e995993b74ce17e06c3a05004e7411442dd694",class:"backdrop-blur-item"}),i("div",{key:"d0c693752ed5b8eee3f0c6925e158168b4e06822",class:"backdrop-blur-item"})),i("slot",{key:"564de9025f4cdc11edb1dadf27c0c3e03be5d06d"}),this.hasMenu&&i("div",{key:"c6cd25b6e417675a67662bbe4e2a8f0c89e1fd74",class:"menu",part:"menu"},i("mds-modal",{key:"cb330659a98adcf88e8af18097450edb71cb1423",class:"modal",opened:this.isOpened,onMdsModalClose:this.close,position:"right"},i("slot",{key:"d4f1dbcaee3303ad4c2130d7f7d64be3486bdc19",name:"menu"}))))}get host(){return this}static get watchers(){return{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-modal: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-header-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-header-hidden-bar-translate-inline:translateY(-150%);--mds-header-hidden-bar-translate-stripe:translateY(-110%);--mds-header-icon-color:var(--mds-header-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));--mds-header-modal-icon-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-header-backdrop-blur-strength:2px;--mds-header-backdrop-height:calc(var(--spacing,.0025rem)*1600);--mds-header-backdrop-show:true;--mds-header-z-index:var(--magma-header-z-index,1000);--mds-header-inline-margin-mobile:calc(var(--spacing,.0025rem)*400);--mds-header-inline-margin:calc(var(--spacing,.0025rem)*600);--mds-header-backdrop-background-image:linear-gradient(0deg,#0000,#00000026);--private-mask-opacity:1;color:var(--mds-header-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));display:block;fill:var(--mds-header-icon-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));position:relative;z-index:var(--mds-header-z-index)}.modal{--mds-modal-close-icon-color:var(--mds-header-modal-icon-color,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));z-index:var(--mds-header-z-index)}:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin,calc(var(--spacing,.0025rem)*600));border-radius:var(--radius-lg,16px);margin-bottom:var(--mds-header-inline-margin-current);margin-top:var(--mds-header-inline-margin-current);max-width:var(--breakpoint-wide,1280px);width:calc(100% - var(--mds-header-inline-margin-current)*2)}:host([menu=none]) .menu{display:none}:host([visibility=hidden][appearance=stripe]) ::slotted(mds-header-bar){-webkit-transform:var(--mds-header-hidden-bar-translate-stripe);transform:var(--mds-header-hidden-bar-translate-stripe)}:host([visibility=hidden][appearance=inline]) ::slotted(mds-header-bar){-webkit-transform:var(--mds-header-hidden-bar-translate-inline);transform:var(--mds-header-hidden-bar-translate-inline)}.backdrop{align-items:center;-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,10px));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,10px));background-image:var(--mds-header-backdrop-background-image);content:"";display:flex;height:var(--mds-header-backdrop-height,calc(var(--spacing,.0025rem)*1600));inset:0;opacity:1;position:fixed;transform:translate(0);transition-duration:.2s;transition-property:opacity,transform;width:100%}.backdrop-blur-item{--private-gradient-position:calc(100% - (sibling-count() - sibling-index())*5%);display:none}.backdrop-blur-item:first-child{--private-gradient-position:100%}.backdrop-blur-item:nth-child(2){--private-gradient-position:95%}.backdrop-blur-item:nth-child(3){--private-gradient-position:90%}.backdrop-blur-item:nth-child(4){--private-gradient-position:85%}.backdrop-blur-item:nth-child(5){--private-gradient-position:80%}.backdrop-blur-item:nth-child(6){--private-gradient-position:75%}.backdrop-blur-item:nth-child(7){--private-gradient-position:70%}.backdrop-blur-item:nth-child(8){--private-gradient-position:65%}.backdrop-blur-item:nth-child(9){--private-gradient-position:60%}.backdrop-blur-item:nth-child(10){--private-gradient-position:55%}.backdrop-blur-item:nth-child(11){--private-gradient-position:50%}@supports ((-webkit-mask-image:linear-gradient(rgb(0 0 0/1),transparent)) or (mask-image:linear-gradient(rgb(0 0 0/1),transparent))){.backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background-image:none}.backdrop-blur-item{-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));display:flex;inset:0;-webkit-mask-image:-webkit-gradient(linear,left top,left bottom,color-stop(40%,rgb(0 0 0/var(--private-mask-opacity,1))),to(#0000));mask-image:-webkit-gradient(linear,left top,left bottom,color-stop(40%,rgb(0 0 0/var(--private-mask-opacity,1))),to(#0000));-webkit-mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));pointer-events:none;position:absolute}}:host([appearance=inline]) .backdrop{transform:translate(0)}:host([appearance=stripe]) .backdrop,:host([visibility=hidden]) .backdrop{--mds-header-backdrop-blur-strength:0px;transform:translateY(-100%)}@container style(--mds-header-backdrop-show:false){.backdrop{display:none}}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([pref-consumption=high]) .backdrop{--mds-header-backdrop-background-image:none}:host([pref-consumption=medium]) .backdrop{--mds-header-backdrop-blur-strength:1px}:host([pref-consumption=low]) .backdrop{--mds-header-backdrop-blur-strength:0px;display:none}@media (max-width:767px){:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin-mobile,calc(var(--spacing,.0025rem)*400))}}@media not all and (min-width:768px){:host([menu=desktop]) .menu{display:none}}@media (min-width:1024px){:host([menu=mobile]) .menu{display:none}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}'}},[257,"mds-header",{appearance:[1537],appearanceSet:[513,"appearance-set"],autoHide:[514,"auto-hide"],hideBackdrop:[516,"hide-backdrop"],menu:[513],nav:[513],threshold:[514],visibility:[1537],hasMenu:[32],isOpened:[32],setOpened:[64]},void 0,{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}]),b=p,u=function(){"undefined"!=typeof customElements&&["mds-header","mds-button","mds-icon","mds-modal","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-header":customElements.get(d(e))||customElements.define(d(e),p);break;case"mds-button":customElements.get(d(e))||o();break;case"mds-icon":customElements.get(d(e))||h();break;case"mds-modal":customElements.get(d(e))||m();break;case"mds-spinner":customElements.get(d(e))||l();break;case"mds-text":customElements.get(d(e))||c()}}))};export{b as MdsHeader,u as defineCustomElement}
1
+ import{p as e,H as a,d as t,h as i,c as r,t as d}from"./p-pBvN1uAc.js";import{b as s}from"./p-CsgCQiHG.js";import{p as n}from"./p-zHpei4x6.js";import{d as o}from"./p-B6FOPjps.js";import{d as h}from"./p-Bv2IVRzI.js";import{d as m}from"./p-vgIKH234.js";import{d as l}from"./p-CHAvkoj3.js";import{d as c}from"./p-C7EyV0z3.js";const p=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.closedEvent=t(this,"mdsHeaderClose",7),this.visibleEvent=t(this,"mdsHeaderVisibilityChange",7),this.relativeTresholdDown=0,this.relativePosition=0,this.relativeThresholdUp=0,this.sanitizedAppearance=["stripe"],this.appearanceThreshold=300,this.appearance="stripe",this.hideBackdrop=!1,this.menu="mobile",this.nav="desktop",this.threshold=1,this.visibility="visible",this.mobileMenu=()=>s(this.host,"menu"),this.close=()=>{this.isOpened=!1,this.closedEvent.emit({bar:this.headerBar}),this.headerBar.setOpened(!1)},this.getAutoHide=()=>{var e;const a=null!==(e=this.autoHide)&&void 0!==e?e:0;return Number.isNaN(a)?0:a},this.handleVisibility=()=>{const e=this.getAutoHide();if(0!==e){if(window.scrollY<e)return this.visibility="visible",this.relativeThresholdUp=0,this.relativeTresholdDown=0,void(this.relativePosition=0);this.relativeTresholdDown-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=this.relativeTresholdDown),this.relativeThresholdUp-window.scrollY>=this.threshold&&(this.visibility="visible",this.relativeThresholdUp=window.scrollY,this.relativePosition=this.relativeThresholdUp),this.relativePosition<e&&e-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=e),window.scrollY>this.relativeThresholdUp?this.relativeThresholdUp=window.scrollY:this.relativeTresholdDown=window.scrollY+this.threshold}},this.sanitizeAppearance=()=>{var e;const a=null!==(e=this.appearanceSet)&&void 0!==e?e:"";if(""===a)return[this.appearance];return a.match(/\b(\w+)\b/g)||[this.appearance]},this.handleAppearance=()=>{var e,a;this.appearance=window.scrollY>=this.appearanceThreshold?null!==(e=this.sanitizedAppearance[1])&&void 0!==e?e:this.appearance:null!==(a=this.sanitizedAppearance[0])&&void 0!==a?a:this.appearance},this.handleScroll=()=>{"undefined"!=typeof window&&(0!==this.getAutoHide()&&this.handleVisibility(),this.sanitizedAppearance.length>1&&this.handleAppearance())},this.setAppearanceSetData=()=>{this.sanitizedAppearance=this.sanitizeAppearance(),void 0===this.sanitizedAppearance[2]||0===this.sanitizedAppearance[2]||Number.isNaN(this.sanitizedAppearance[2])||(this.appearanceThreshold=this.sanitizedAppearance[2]),this.relativeTresholdDown=this.threshold},this.initScrollListener=()=>{"undefined"!=typeof window&&(this.setAppearanceSetData(),window.addEventListener("scroll",this.handleScroll))},this.defineHeaderBar=()=>{this.headerBar=this.host.querySelector("mds-header-bar")}}async setOpened(e=!0){this.isOpened=e}disconnectedCallback(){"undefined"!=typeof window&&window.removeEventListener("scroll",this.handleScroll)}componentWillLoad(){this.hasMenu=null!==this.mobileMenu(),this.onMenuChangedHandler(this.hasMenu?this.menu:"none")}componentDidLoad(){this.defineHeaderBar(),this.onMenuChangedHandler(this.menu),this.onNavChangedHandler(this.nav),this.initScrollListener()}onMenuChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.menu=e)}onNavChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.nav=e)}onAppearanceSetChangedHandler(){this.setAppearanceSetData()}handleVisibilityChange(e,a){e!==a&&this.visibleEvent.emit({visibility:e})}render(){return i(r,{key:"49f28a5629b6a1ba884dfb31eaf8281b0da9905a","pref-consumption":n.state.consumption,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},!this.hideBackdrop&&i("div",{key:"312289e3e63a0b6f148b20d81d60c27a8c8674ed",class:"backdrop"},i("div",{key:"43a8bfb091488a6329385892ab7292eafd7f35d4",class:"backdrop-blur-item"}),i("div",{key:"d0886fe257d4d37b0e2f44daf3f2ecbe7d05e34e",class:"backdrop-blur-item"}),i("div",{key:"5852718eaef0df557501e6920e8e95951f5ed34f",class:"backdrop-blur-item"}),i("div",{key:"f3ed9d1ed3866d18ae85f18dbba52a4c2ecd0fc6",class:"backdrop-blur-item"}),i("div",{key:"5bf4a0f3704b522aeec1331bb011bdb3150d6936",class:"backdrop-blur-item"}),i("div",{key:"a6bd3da2294c656f7652bfe80b15be7b1e7feef4",class:"backdrop-blur-item"}),i("div",{key:"88e6473193ccf6e16c26787c7766e4e63dc16623",class:"backdrop-blur-item"}),i("div",{key:"6df3c63302f395f4c9ee7d44159f5e5591ac49e1",class:"backdrop-blur-item"}),i("div",{key:"68927f94100b0c4018a974b2066733bf01865175",class:"backdrop-blur-item"}),i("div",{key:"0f8650234e62902ee7e2798409d963f3a3046c32",class:"backdrop-blur-item"})),i("slot",{key:"a4e3724bf13c9d5e1aa71148cc1dc57ee5b3a8a9"}),this.hasMenu&&i("div",{key:"2ec630982983b7128d884cb441ef19d4e82ebad7",class:"menu",part:"menu"},i("mds-modal",{key:"14a50429601f18aa9608fbea79cf6c47390f1859",class:"modal",opened:this.isOpened,onMdsModalClose:this.close,position:"right"},i("slot",{key:"6dbffc0f91d2701baa08b1a3b77d6a9e4924611e",name:"menu"}))))}get host(){return this}static get watchers(){return{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-modal: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-header-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-header-hidden-bar-translate-inline:translateY(-150%);--mds-header-hidden-bar-translate-stripe:translateY(-110%);--mds-header-icon-color:var(--mds-header-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));--mds-header-modal-icon-color:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-header-backdrop-blur-strength:2px;--mds-header-backdrop-height:calc(var(--spacing,.0025rem)*1600);--mds-header-backdrop-show:true;--mds-header-z-index:var(--magma-header-z-index,1000);--mds-header-inline-margin-mobile:calc(var(--spacing,.0025rem)*400);--mds-header-inline-margin:calc(var(--spacing,.0025rem)*600);--mds-header-backdrop-background-image:linear-gradient(0deg,#0000,#00000026);--private-mask-opacity:1;color:var(--mds-header-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));display:block;fill:var(--mds-header-icon-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));position:relative;z-index:var(--mds-header-z-index)}.modal{--mds-modal-close-icon-color:var(--mds-header-modal-icon-color,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));z-index:var(--mds-header-z-index)}:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin,calc(var(--spacing,.0025rem)*600));border-radius:var(--radius-lg,16px);margin-bottom:var(--mds-header-inline-margin-current);margin-top:var(--mds-header-inline-margin-current);max-width:var(--breakpoint-wide,1280px);width:calc(100% - var(--mds-header-inline-margin-current)*2)}:host([menu=none]) .menu{display:none}:host([visibility=hidden][appearance=stripe]) ::slotted(mds-header-bar){-webkit-transform:var(--mds-header-hidden-bar-translate-stripe);transform:var(--mds-header-hidden-bar-translate-stripe)}:host([visibility=hidden][appearance=inline]) ::slotted(mds-header-bar){-webkit-transform:var(--mds-header-hidden-bar-translate-inline);transform:var(--mds-header-hidden-bar-translate-inline)}.backdrop{align-items:center;-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,10px));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,10px));background-image:var(--mds-header-backdrop-background-image);content:"";display:flex;height:var(--mds-header-backdrop-height,calc(var(--spacing,.0025rem)*1600));inset:0;opacity:1;position:fixed;transform:translate(0);transition-duration:.2s;transition-property:opacity,transform;width:100%}.backdrop-blur-item{--private-gradient-position:calc(100% - (sibling-count() - sibling-index())*5%);display:none}.backdrop-blur-item:first-child{--private-gradient-position:100%}.backdrop-blur-item:nth-child(2){--private-gradient-position:95%}.backdrop-blur-item:nth-child(3){--private-gradient-position:90%}.backdrop-blur-item:nth-child(4){--private-gradient-position:85%}.backdrop-blur-item:nth-child(5){--private-gradient-position:80%}.backdrop-blur-item:nth-child(6){--private-gradient-position:75%}.backdrop-blur-item:nth-child(7){--private-gradient-position:70%}.backdrop-blur-item:nth-child(8){--private-gradient-position:65%}.backdrop-blur-item:nth-child(9){--private-gradient-position:60%}.backdrop-blur-item:nth-child(10){--private-gradient-position:55%}.backdrop-blur-item:nth-child(11){--private-gradient-position:50%}@supports ((-webkit-mask-image:linear-gradient(rgb(0 0 0/1),transparent)) or (mask-image:linear-gradient(rgb(0 0 0/1),transparent))){.backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background-image:none}.backdrop-blur-item{-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));display:flex;inset:0;-webkit-mask-image:-webkit-gradient(linear,left top,left bottom,color-stop(40%,rgb(0 0 0/var(--private-mask-opacity,1))),to(#0000));mask-image:-webkit-gradient(linear,left top,left bottom,color-stop(40%,rgb(0 0 0/var(--private-mask-opacity,1))),to(#0000));-webkit-mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));pointer-events:none;position:absolute}}:host([appearance=inline]) .backdrop{transform:translate(0)}:host([appearance=stripe]) .backdrop,:host([visibility=hidden]) .backdrop{--mds-header-backdrop-blur-strength:0px;transform:translateY(-100%)}@container style(--mds-header-backdrop-show:false){.backdrop{display:none}}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([pref-consumption=high]) .backdrop{--mds-header-backdrop-background-image:none}:host([pref-consumption=medium]) .backdrop{--mds-header-backdrop-blur-strength:1px}:host([pref-consumption=low]) .backdrop{--mds-header-backdrop-blur-strength:0px;display:none}@media (max-width:767px){:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin-mobile,calc(var(--spacing,.0025rem)*400))}}@media not all and (min-width:768px){:host([menu=desktop]) .menu{display:none}}@media (min-width:1024px){:host([menu=mobile]) .menu{display:none}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}'}},[257,"mds-header",{appearance:[1537],appearanceSet:[513,"appearance-set"],autoHide:[514,"auto-hide"],hideBackdrop:[516,"hide-backdrop"],menu:[513],nav:[513],threshold:[514],visibility:[1537],hasMenu:[32],isOpened:[32],setOpened:[64]},void 0,{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}]),b=p,u=function(){"undefined"!=typeof customElements&&["mds-header","mds-button","mds-icon","mds-modal","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-header":customElements.get(d(e))||customElements.define(d(e),p);break;case"mds-button":customElements.get(d(e))||o();break;case"mds-icon":customElements.get(d(e))||h();break;case"mds-modal":customElements.get(d(e))||m();break;case"mds-spinner":customElements.get(d(e))||l();break;case"mds-text":customElements.get(d(e))||c()}}))};export{b as MdsHeader,u as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as r}from"./p-DnrQaRnh.js";const s=o,a=r;export{s as MdsHelp,a as defineCustomElement}
1
+ import{M as o,d as s}from"./p-CEMAGNly.js";const p=o,r=s;export{p as MdsHelp,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as a,H as o,h as t,c as s,t as r}from"./p-BhFTcUD0.js";import{m as i}from"./p-DnEUG7st.js";import{m as l}from"./p-Bd0uuNDE.js";import{c as n}from"./p-ChV9xqsO.js";import{a as c}from"./p-D8eZRaSQ.js";import{d as e}from"./p-kff6xSdW.js";import{d}from"./p-qketFgr0.js";import{d as h}from"./p-C58NKMEE.js";import{d as m}from"./p-BZFyAX-6.js";const v=a(class extends o{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.hasCompatibility=!0,this.showForward=!0,this.showBack=!1,this.controls="desktop",this.navigation="position",this.snap="start",this.updateElements=()=>{var a,o;this.elements=null===(o=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelectorAll("slot")[0])||void 0===o?void 0:o.assignedNodes()},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const a=window.getComputedStyle(this.host);this.scrollGap=c(a.getPropertyValue("--mds-horizontal-scroll-gap"))},this.isInViewport=a=>{if(null==this.contents)return!1;const o=this.spacer.offsetWidth+this.scrollGap,t=a.getBoundingClientRect(),s=this.contents.getBoundingClientRect();return t.top>=0&&t.left>=o&&t.bottom<=s.height&&t.right<=s.width-2*o},this.checkNavigationButtons=()=>{if(null==this.elements)throw Error("No elements slotted to the component");this.showBack=!0,this.showForward=!0,this.elements.forEach(((a,o)=>{0===o&&this.isInViewport(a)&&(this.showBack=!1),this.elements.length-1===o&&this.isInViewport(a)&&(this.showForward=!1)}))},this.moveBack=()=>{if(null==this.elements)throw Error("No elements slotted to the component");let a,o,t=0;this.elements.forEach(((s,r)=>{this.isInViewport(s)&&(a||(t=r,a=s),o=s)})),this.elements.forEach(((s,r)=>{this.isInViewport(s)||r!==t-1||void 0===a||void 0===o||(this.contents.scrollLeft=this.contents.scrollLeft+s.offsetLeft-o.offsetLeft-a.offsetWidth-this.scrollGap)}))},this.moveForward=()=>{if(null==this.elements)throw Error("No elements slotted to the component");let a=!0;this.elements.forEach((o=>{this.isInViewport(o)||o.offsetLeft>this.contents.scrollLeft&&a&&(a=!1,this.lastElementOffsetLeft=o.offsetLeft,this.contents.scrollLeft=this.lastElementOffsetLeft)}))},this.translateNavigationDot=()=>{if(null==this.elements||null==this.contents||null==this.navigationDot||null==this.navigationDots)return void console.error("mds-horizontal-scroll.translateNavigationDot: One of the shadowRoot elements is missing.");const{scrollLeft:a,scrollWidth:o,offsetWidth:t}=this.contents,s=window.getComputedStyle(this.navigationDots);0!==t&&0!==o?this.navigationDot.style.transform=`translateX(${a/(o-t)*(this.navigationDots.offsetWidth-(parseFloat(s.paddingLeft)||0)-(parseFloat(s.paddingRight)||0)-this.navigationDot.offsetWidth)}px)`:console.error("mds-horizontal-scroll.translateNavigationDot: offsetWidth or scrollWidth is 0, impossible to calculate position")},this.updateNavigationDotSize=()=>{if(null==this.contents||null==this.navigationDot||null==this.navigationDots)return void console.error("mds-horizontal-scroll.updateNavigationDotSize: One of the shadowRoot elements is missing.");const{scrollWidth:a,offsetWidth:o}=this.contents,t=this.navigationDots.offsetWidth;this.navigationDot.style.width=a<=o?t+"px":o/a*t+"px"},this.addNavigationDots=()=>{var a,o;this.contents.removeEventListener("scroll",this.translateNavigationDot),this.navigationDot=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".dot"),this.navigationDots=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".dot-navigation"),this.updateNavigationDotSize(),null!=this.navigationDot&&this.contents.addEventListener("scroll",this.translateNavigationDot)}}watchNavigation(a){"position"===a&&this.addNavigationDots()}componentWillLoad(){this.updateCSSCustomProps()}componentDidLoad(){var a,o;this.contents=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".contents"),this.spacer=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".spacer"),"position"===this.navigation&&this.addNavigationDots(),window&&void 0!==window.onscrollend?this.contents.addEventListener("scrollend",this.checkNavigationButtons):void 0!==this.controls&&(this.controls=void 0)}disconnectedCallback(){this.contents.removeEventListener("scrollend",this.checkNavigationButtons),this.contents.removeEventListener("scroll",this.translateNavigationDot)}render(){return t(s,{key:"636ebfd9eac9424b06093ee2990a434519af154c"},t("div",{key:"0828132e0a00ff2d72ace5806d1cc07a8f7f3335",class:"contents",part:"content"},t("div",{key:"e1156c7aeeb7da48b55864ee35a7b54cdebce1e3",class:"spacer"}),t("slot",{key:"91c97d1e9c9477b07476cdf7c5b8f77df2d4dcf0",onSlotchange:this.updateElements}),t("div",{key:"8b02b270ebad91c7fe56315132200c43d96f4a77",class:"spacer"})),t("div",{key:"5ed9c9ced06458f9aa4796a6182a7ae6746ed3fb",class:"dot-navigation"},t("div",{key:"778f7543ac11b70fad1169b6cbd05732d5fbabc2",class:"dot"})),this.controls&&"none"!==this.controls&&t("mds-button",{key:"63d99a5cbd4cb64a42c68a4ef4d1cae5a768c377",onClick:this.moveBack,size:"lg",class:n("navigation navigation--back",!this.showBack&&"navigation--disabled"),icon:i}),this.controls&&"none"!==this.controls&&t("mds-button",{key:"4874cc67646aac477e164df8b1078ad3f631bab4",onClick:this.moveForward,size:"lg",class:n("navigation navigation--forward",!this.showForward&&"navigation--disabled"),icon:l}))}get host(){return this}static get watchers(){return{navigation:[{watchNavigation:0}]}}static get style(){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-horizontal-scroll-behavior:smooth;--mds-horizontal-scroll-dots-gap:calc(var(--spacing,.0025rem)*100);--mds-horizontal-scroll-dot-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-dot-max-width:auto;--mds-horizontal-scroll-dot-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-horizontal-scroll-dot-area-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-horizontal-scroll-contents-padding:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-contents-scroll-padding:0 calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-controls-margin:calc(var(--spacing,.0025rem)*1200);--mds-horizontal-scroll-gap:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-max-width:var(--breakpoint-wide,1280px);--mds-horizontal-scroll-scrollbar-margin:0;--mds-horizontal-scroll-scrollbar-radius:0;--mds-horizontal-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))/.3);--mds-horizontal-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))));--max-width:var(--mds-horizontal-scroll-max-width,var(--breakpoint-wide,1280px));--scroll-margin:calc(((100svw - var(--max-width)) / 2) + (var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)) * 2));align-items:center;container:mds-horizontal-scroll/inline-size;display:flex;flex-direction:column;justify-content:center;position:relative;width:100%}.navigation{border-radius:var(--radius-full,1000px);display:none;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition-duration:.2s;transition-property:opacity,scale,transform}.contents{box-sizing:border-box;display:flex;gap:var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem)*600));overflow:auto;padding-bottom:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));padding-top:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));position:relative;scroll-behavior:var(--mds-horizontal-scroll-behavior,smooth);scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600));-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;width:100%}.contents>::slotted(*){flex:0 0 0;scroll-margin:0 var(--scroll-margin)}.spacer{--width:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)));content:"";display:block;flex:0 0 0;min-width:clamp(1px,var(--width),var(--width));scroll-margin:0 var(--scroll-margin)}@container (max-width:1024px){:host{--scroll-margin:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents{scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents>::slotted(*){scroll-margin:0 var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}}.navigation--back{left:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--back,.navigation--forward{--position:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) - var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)))}.navigation--forward{right:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--disabled{opacity:0;pointer-events:none;transform:translateY(-50%)scale(.5)}:host([controls=all]) .navigation{display:flex}.dot-navigation{align-self:center;background-color:var(--mds-horizontal-scroll-dot-area-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));border-radius:var(--radius-full,1000px);display:none;gap:var(--mds-horizontal-scroll-dots-gap,calc(var(--spacing,.0025rem)*100));justify-content:start;margin:0 auto var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600)) auto;max-width:calc(var(--spacing,.0025rem)*4000);padding:calc(var(--spacing,.0025rem)*50);width:100%}:host([navigation=position]) .dot-navigation{display:inline-flex}.dot{background-color:var(--mds-horizontal-scroll-dot-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));border-radius:var(--radius-full,1000px);height:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));max-width:var(--mds-horizontal-scroll-dot-max-width);min-width:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));transition-duration:.3s;transition-property:width;-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:calc(var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem) * 200)) * 2)}:host(:not([navigation=scrollbar])) .contents{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([navigation=scrollbar])) .contents::-webkit-scrollbar{display:none}:host([navigation=scrollbar]) .contents::-webkit-scrollbar{height:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-track{background-color:var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225)))));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0);margin-block:var(--mds-horizontal-scroll-scrollbar-margin,0);margin-inline:var(--mds-horizontal-scroll-scrollbar-margin,0)}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-thumb{background-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))/.3));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.contents{scrollbar-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))/.3)) var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225)))));scrollbar-width:thin}}:host([snap=start]) .contents>::slotted(*){scroll-snap-align:start}:host([snap=center]) .contents>::slotted(*){scroll-snap-align:center}:host([snap=end]) .contents>::slotted(*){scroll-snap-align:end}@media (prefers-reduced-motion:reduce){:host{--mds-horizontal-scroll-behavior:auto}}@media (min-width:1920px){:host([controls=tv]) .navigation{display:flex}}@media (min-width:1600px){:host([controls=xlarge]) .navigation{display:flex}}@media (min-width:1440px){:host([controls=large]) .navigation{display:flex}}@media (min-width:1280px){:host([controls=wide]) .navigation{display:flex}}@media (min-width:1024px){:host([controls=desktop]) .navigation{display:flex}}@media (min-width:768px){:host([controls=tablet]) .navigation{display:flex}}'}},[257,"mds-horizontal-scroll",{controls:[1537],navigation:[513],snap:[513],hasCompatibility:[32],showForward:[32],showBack:[32]},void 0,{navigation:[{watchNavigation:0}]}]),g=v,p=function(){"undefined"!=typeof customElements&&["mds-horizontal-scroll","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-horizontal-scroll":customElements.get(r(a))||customElements.define(r(a),v);break;case"mds-button":customElements.get(r(a))||e();break;case"mds-icon":customElements.get(r(a))||d();break;case"mds-spinner":customElements.get(r(a))||h();break;case"mds-text":customElements.get(r(a))||m()}}))};export{g as MdsHorizontalScroll,p as defineCustomElement}
1
+ import{p as a,H as o,h as t,c as s,t as r}from"./p-pBvN1uAc.js";import{m as i}from"./p-DnEUG7st.js";import{m as l}from"./p-Bd0uuNDE.js";import{c as n}from"./p-ChV9xqsO.js";import{a as c}from"./p-D8eZRaSQ.js";import{d as e}from"./p-B6FOPjps.js";import{d}from"./p-Bv2IVRzI.js";import{d as h}from"./p-CHAvkoj3.js";import{d as m}from"./p-C7EyV0z3.js";const v=a(class extends o{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.hasCompatibility=!0,this.showForward=!0,this.showBack=!1,this.controls="desktop",this.navigation="position",this.snap="start",this.updateElements=()=>{var a,o;this.elements=null===(o=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelectorAll("slot")[0])||void 0===o?void 0:o.assignedNodes()},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const a=window.getComputedStyle(this.host);this.scrollGap=c(a.getPropertyValue("--mds-horizontal-scroll-gap"))},this.isInViewport=a=>{if(null==this.contents)return!1;const o=this.spacer.offsetWidth+this.scrollGap,t=a.getBoundingClientRect(),s=this.contents.getBoundingClientRect();return t.top>=0&&t.left>=o&&t.bottom<=s.height&&t.right<=s.width-2*o},this.checkNavigationButtons=()=>{if(null==this.elements)throw Error("No elements slotted to the component");this.showBack=!0,this.showForward=!0,this.elements.forEach(((a,o)=>{0===o&&this.isInViewport(a)&&(this.showBack=!1),this.elements.length-1===o&&this.isInViewport(a)&&(this.showForward=!1)}))},this.moveBack=()=>{if(null==this.elements)throw Error("No elements slotted to the component");let a,o,t=0;this.elements.forEach(((s,r)=>{this.isInViewport(s)&&(a||(t=r,a=s),o=s)})),this.elements.forEach(((s,r)=>{this.isInViewport(s)||r!==t-1||void 0===a||void 0===o||(this.contents.scrollLeft=this.contents.scrollLeft+s.offsetLeft-o.offsetLeft-a.offsetWidth-this.scrollGap)}))},this.moveForward=()=>{if(null==this.elements)throw Error("No elements slotted to the component");let a=!0;this.elements.forEach((o=>{this.isInViewport(o)||o.offsetLeft>this.contents.scrollLeft&&a&&(a=!1,this.lastElementOffsetLeft=o.offsetLeft,this.contents.scrollLeft=this.lastElementOffsetLeft)}))},this.translateNavigationDot=()=>{if(null==this.elements||null==this.contents||null==this.navigationDot||null==this.navigationDots)return void console.error("mds-horizontal-scroll.translateNavigationDot: One of the shadowRoot elements is missing.");const{scrollLeft:a,scrollWidth:o,offsetWidth:t}=this.contents,s=window.getComputedStyle(this.navigationDots);0!==t&&0!==o?this.navigationDot.style.transform=`translateX(${a/(o-t)*(this.navigationDots.offsetWidth-(parseFloat(s.paddingLeft)||0)-(parseFloat(s.paddingRight)||0)-this.navigationDot.offsetWidth)}px)`:console.error("mds-horizontal-scroll.translateNavigationDot: offsetWidth or scrollWidth is 0, impossible to calculate position")},this.updateNavigationDotSize=()=>{if(null==this.contents||null==this.navigationDot||null==this.navigationDots)return void console.error("mds-horizontal-scroll.updateNavigationDotSize: One of the shadowRoot elements is missing.");const{scrollWidth:a,offsetWidth:o}=this.contents,t=this.navigationDots.offsetWidth;this.navigationDot.style.width=a<=o?t+"px":o/a*t+"px"},this.addNavigationDots=()=>{var a,o;this.contents.removeEventListener("scroll",this.translateNavigationDot),this.navigationDot=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".dot"),this.navigationDots=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".dot-navigation"),this.updateNavigationDotSize(),null!=this.navigationDot&&this.contents.addEventListener("scroll",this.translateNavigationDot)}}watchNavigation(a){"position"===a&&this.addNavigationDots()}componentWillLoad(){this.updateCSSCustomProps()}componentDidLoad(){var a,o;this.contents=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".contents"),this.spacer=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".spacer"),"position"===this.navigation&&this.addNavigationDots(),window&&void 0!==window.onscrollend?this.contents.addEventListener("scrollend",this.checkNavigationButtons):void 0!==this.controls&&(this.controls=void 0)}disconnectedCallback(){this.contents.removeEventListener("scrollend",this.checkNavigationButtons),this.contents.removeEventListener("scroll",this.translateNavigationDot)}render(){return t(s,{key:"caa1dd792f58816dd8c146e0e0d922f31f580f44"},t("div",{key:"10014a42e23606f5032411defcae22b3afda99dd",class:"contents",part:"content"},t("div",{key:"ae6b5a71bbec1ba04dbb36299e24fd402360ae2d",class:"spacer"}),t("slot",{key:"3d0267992f33e4a550596320139e41b99150939a",onSlotchange:this.updateElements}),t("div",{key:"f28b6c3eac536834987dfd17e1d34c827714dcc2",class:"spacer"})),t("div",{key:"419441c61f6a1664b4cdbff1fc3c25987afbf573",class:"dot-navigation"},t("div",{key:"6f48a726a3b7ad24b298c201f8027cee2f0ce34f",class:"dot"})),this.controls&&"none"!==this.controls&&t("mds-button",{key:"4a919ee1739a29b3235fd810d1d6aa7fef1dcd7a",onClick:this.moveBack,size:"lg",class:n("navigation navigation--back",!this.showBack&&"navigation--disabled"),icon:i}),this.controls&&"none"!==this.controls&&t("mds-button",{key:"38bc0e527a7b6b435bb369e4ae404abab8b11c12",onClick:this.moveForward,size:"lg",class:n("navigation navigation--forward",!this.showForward&&"navigation--disabled"),icon:l}))}get host(){return this}static get watchers(){return{navigation:[{watchNavigation:0}]}}static get style(){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-horizontal-scroll-behavior:smooth;--mds-horizontal-scroll-dots-gap:calc(var(--spacing,.0025rem)*100);--mds-horizontal-scroll-dot-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-dot-max-width:auto;--mds-horizontal-scroll-dot-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-horizontal-scroll-dot-area-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-horizontal-scroll-contents-padding:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-contents-scroll-padding:0 calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-controls-margin:calc(var(--spacing,.0025rem)*1200);--mds-horizontal-scroll-gap:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-max-width:var(--breakpoint-wide,1280px);--mds-horizontal-scroll-scrollbar-margin:0;--mds-horizontal-scroll-scrollbar-radius:0;--mds-horizontal-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))/.3);--mds-horizontal-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))));--max-width:var(--mds-horizontal-scroll-max-width,var(--breakpoint-wide,1280px));--scroll-margin:calc(((100svw - var(--max-width)) / 2) + (var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)) * 2));align-items:center;container:mds-horizontal-scroll/inline-size;display:flex;flex-direction:column;justify-content:center;position:relative;width:100%}.navigation{border-radius:var(--radius-full,1000px);display:none;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition-duration:.2s;transition-property:opacity,scale,transform}.contents{box-sizing:border-box;display:flex;gap:var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem)*600));overflow:auto;padding-bottom:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));padding-top:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));position:relative;scroll-behavior:var(--mds-horizontal-scroll-behavior,smooth);scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600));-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;width:100%}.contents>::slotted(*){flex:0 0 0;scroll-margin:0 var(--scroll-margin)}.spacer{--width:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)));content:"";display:block;flex:0 0 0;min-width:clamp(1px,var(--width),var(--width));scroll-margin:0 var(--scroll-margin)}@container (max-width:1024px){:host{--scroll-margin:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents{scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents>::slotted(*){scroll-margin:0 var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}}.navigation--back{left:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--back,.navigation--forward{--position:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) - var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)))}.navigation--forward{right:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--disabled{opacity:0;pointer-events:none;transform:translateY(-50%)scale(.5)}:host([controls=all]) .navigation{display:flex}.dot-navigation{align-self:center;background-color:var(--mds-horizontal-scroll-dot-area-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));border-radius:var(--radius-full,1000px);display:none;gap:var(--mds-horizontal-scroll-dots-gap,calc(var(--spacing,.0025rem)*100));justify-content:start;margin:0 auto var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600)) auto;max-width:calc(var(--spacing,.0025rem)*4000);padding:calc(var(--spacing,.0025rem)*50);width:100%}:host([navigation=position]) .dot-navigation{display:inline-flex}.dot{background-color:var(--mds-horizontal-scroll-dot-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));border-radius:var(--radius-full,1000px);height:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));max-width:var(--mds-horizontal-scroll-dot-max-width);min-width:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));transition-duration:.3s;transition-property:width;-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:calc(var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem) * 200)) * 2)}:host(:not([navigation=scrollbar])) .contents{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([navigation=scrollbar])) .contents::-webkit-scrollbar{display:none}:host([navigation=scrollbar]) .contents::-webkit-scrollbar{height:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-track{background-color:var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225)))));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0);margin-block:var(--mds-horizontal-scroll-scrollbar-margin,0);margin-inline:var(--mds-horizontal-scroll-scrollbar-margin,0)}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-thumb{background-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))/.3));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.contents{scrollbar-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))/.3)) var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225)))));scrollbar-width:thin}}:host([snap=start]) .contents>::slotted(*){scroll-snap-align:start}:host([snap=center]) .contents>::slotted(*){scroll-snap-align:center}:host([snap=end]) .contents>::slotted(*){scroll-snap-align:end}@media (prefers-reduced-motion:reduce){:host{--mds-horizontal-scroll-behavior:auto}}@media (min-width:1920px){:host([controls=tv]) .navigation{display:flex}}@media (min-width:1600px){:host([controls=xlarge]) .navigation{display:flex}}@media (min-width:1440px){:host([controls=large]) .navigation{display:flex}}@media (min-width:1280px){:host([controls=wide]) .navigation{display:flex}}@media (min-width:1024px){:host([controls=desktop]) .navigation{display:flex}}@media (min-width:768px){:host([controls=tablet]) .navigation{display:flex}}'}},[257,"mds-horizontal-scroll",{controls:[1537],navigation:[513],snap:[513],hasCompatibility:[32],showForward:[32],showBack:[32]},void 0,{navigation:[{watchNavigation:0}]}]),g=v,p=function(){"undefined"!=typeof customElements&&["mds-horizontal-scroll","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-horizontal-scroll":customElements.get(r(a))||customElements.define(r(a),v);break;case"mds-button":customElements.get(r(a))||e();break;case"mds-icon":customElements.get(r(a))||d();break;case"mds-spinner":customElements.get(r(a))||h();break;case"mds-text":customElements.get(r(a))||m()}}))};export{g as MdsHorizontalScroll,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,h as r,t as s,c as o}from"./p-BhFTcUD0.js";import{p as a}from"./p-CvIFS8oA.js";const i=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}render(){return r(o,{key:"66fec928d07078c3e67a050c2ad63146a447785f","pref-mode":a.state.mode,"pref-theme-scheme":a.state["theme-scheme"]})}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{background-color:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));border:0;border-radius:var(--radius-full,1000px);display:flex;height:1px;width:100%}"}},[1,"mds-hr"]),n=i,d=function(){"undefined"!=typeof customElements&&["mds-hr"].forEach((t=>{"mds-hr"===t&&(customElements.get(s(t))||customElements.define(s(t),i))}))};export{n as MdsHr,d as defineCustomElement}
1
+ import{p as e,H as t,h as r,t as s,c as o}from"./p-pBvN1uAc.js";import{p as a}from"./p-zHpei4x6.js";const i=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return r(o,{key:"24837c75a65334f2219553e2f170001469da4e5a","pref-mode":a.state.mode,"pref-theme-scheme":a.state["theme-scheme"]})}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{background-color:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));border:0;border-radius:var(--radius-full,1000px);display:flex;height:1px;width:100%}"}},[1,"mds-hr"]),n=i,d=function(){"undefined"!=typeof customElements&&["mds-hr"].forEach((e=>{"mds-hr"===e&&(customElements.get(s(e))||customElements.define(s(e),i))}))};export{n as MdsHr,d as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as r}from"./p-qketFgr0.js";const s=o,t=r;export{s as MdsIcon,t as defineCustomElement}
1
+ import{M as o,d as s}from"./p-Bv2IVRzI.js";const p=o,r=s;export{p as MdsIcon,r as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as s}from"./p-Cd_8zD_I.js";const p=o,r=s;export{p as MdsImg,r as defineCustomElement}
1
+ import{M as o,d as s}from"./p-BY6Qu1V4.js";const p=o,r=s;export{p as MdsImg,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as a,h as t,c as r,t as s}from"./p-BhFTcUD0.js";import{d as n}from"./p-kff6xSdW.js";import{d as o}from"./p-qketFgr0.js";import{d}from"./p-C58NKMEE.js";import{d as m}from"./p-BZFyAX-6.js";const i=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.onClick=e=>{var a;e.stopPropagation();const t=null===(a=this.host)||void 0===a?void 0:a.closest("mds-input-date-range");t&&(t.preselect({caller:this.host,start:this.start,end:this.end}),this.selected=!0)}}render(){return t(r,{key:"e5571b251d0b86eccf975c07af016fd0e25387d3",slot:"calendar-preselection"},t("mds-button",{key:"95b8be91464b8e283c623c191514f7c293b941af",onClick:this.onClick,class:"action",variant:"primary",tone:"strong"},t("slot",{key:"6a96b556f736d867ab858ffba7307c45fb15dd65"})))}get host(){return this}static get style(){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}"}},[257,"mds-input-date-range-preselection",{selected:[1540],start:[513],end:[513]}]),c=i,l=function(){"undefined"!=typeof customElements&&["mds-input-date-range-preselection","mds-button","mds-icon","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-input-date-range-preselection":customElements.get(s(e))||customElements.define(s(e),i);break;case"mds-button":customElements.get(s(e))||n();break;case"mds-icon":customElements.get(s(e))||o();break;case"mds-spinner":customElements.get(s(e))||d();break;case"mds-text":customElements.get(s(e))||m()}}))};export{c as MdsInputDateRangePreselection,l as defineCustomElement}
1
+ import{p as e,H as a,h as t,c as r,t as s}from"./p-pBvN1uAc.js";import{d as n}from"./p-B6FOPjps.js";import{d as o}from"./p-Bv2IVRzI.js";import{d}from"./p-CHAvkoj3.js";import{d as m}from"./p-C7EyV0z3.js";const i=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.onClick=e=>{var a;e.stopPropagation();const t=null===(a=this.host)||void 0===a?void 0:a.closest("mds-input-date-range");t&&(t.preselect({caller:this.host,start:this.start,end:this.end}),this.selected=!0)}}render(){return t(r,{key:"da6b1c6e85b790664bbeb428825cfd715c4ebf91",slot:"calendar-preselection"},t("mds-button",{key:"5f56cd47f2dad2aff8bf72c9938df24ec98124db",onClick:this.onClick,class:"action",variant:"primary",tone:"strong"},t("slot",{key:"82106ab98d3e942a4bb786b6d7f4e0762c43f286"})))}get host(){return this}static get style(){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}"}},[257,"mds-input-date-range-preselection",{selected:[1540],start:[513],end:[513]}]),c=i,l=function(){"undefined"!=typeof customElements&&["mds-input-date-range-preselection","mds-button","mds-icon","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-input-date-range-preselection":customElements.get(s(e))||customElements.define(s(e),i);break;case"mds-button":customElements.get(s(e))||n();break;case"mds-icon":customElements.get(s(e))||o();break;case"mds-spinner":customElements.get(s(e))||d();break;case"mds-text":customElements.get(s(e))||m()}}))};export{c as MdsInputDateRangePreselection,l as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as a,d as e,h as i,c as s,t as r}from"./p-BhFTcUD0.js";import{s as n}from"./p-CSCy6TMW.js";import{s as o}from"./p-A9TZf0Ii.js";import{m as d}from"./p-BVQMG7KJ.js";import{D as h,d as l}from"./p-BYxxgEE_.js";import{c as m}from"./p-ChV9xqsO.js";import{L as c}from"./p-Bss3F51Q.js";import{p as u}from"./p-CvIFS8oA.js";import{d as p}from"./p-kff6xSdW.js";import{d as g}from"./p-gv3eu44S.js";import{d as v}from"./p-pys1EQ60.js";import{d as f}from"./p-qketFgr0.js";import{d as b}from"./p-C58NKMEE.js";import{d as x}from"./p-BZFyAX-6.js";var w={endDate:"Ημερομηνία λήξης",from:"Από",startDate:"Ημερομηνία έναρξης",to:"έως"},y={endDate:"End date",from:"From",startDate:"Start date",to:"to"},k={endDate:"Fecha de fin",from:"De",startDate:"Fecha de inicio",to:"a"},D={endDate:"Data di fine",from:"Dal",startDate:"Data di inizio",to:"al"};const C=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.valueChanged=e(this,"mdsInputDateRangeValueChange",7),this.internals=this.attachInternals(),this.calendarKey=0,this.internalStartDate="",this.internalEndDate="",this.visibleCalendarDate="",this.hasPreselection=!1,this.t=new c({el:w,en:y,es:k,it:D}),this.startDate="",this.endDate="",this.min=null,this.max=null,this.delay=500,this.hideToday=!1,this.dualCalendar=!1,this.lastEmittedStartDate=null,this.lastEmittedEndDate=null,this.initialStartDate="",this.initialEndDate="",this.hoveredCalendarDate=null,this.syncingInputSlots=new Set,this.handleFocusOut=t=>{if(!this.host.contains(t.relatedTarget)){const t=h.fromISO(this.internalStartDate).isValid,a=h.fromISO(this.internalEndDate).isValid;t&&a&&(this.validateDateRange(),this.syncFormValue(),this.checkPreselections(),this.emitValueChanged())}},this.focusInput=t=>{t.focusInput()},this.focusDateInput=t=>{t.target===this.host&&this.focusStartDateInput(t)},this.focusStartDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="start"]'))},this.focusEndDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="end"]'))},this.nameSlottedFields=()=>{[["start",this.t.get("startDate")],["end",this.t.get("endDate")]].forEach((([t,a])=>{var e;const i=this.host.querySelector(`[slot="${t}"]`);null!==i&&n(i,"aria-label",""!==(null!==(e=this.accessibleName)&&void 0!==e?e:"")?`${this.accessibleName}, ${a}`:a)}))},this.handleCalendarHover=t=>{if(""===this.internalStartDate||""!==this.internalEndDate)return void this.clearHoverPreview();const a=t.detail.hoverDate;this.hoveredCalendarDate!==a&&(this.hoveredCalendarDate=a,this.syncCalendarsHoverAttributes())},this.handleCalendarChange=t=>{this.clearHoverPreview(),this.internalStartDate=t.detail.startDate,this.updateInputValue("start",this.internalStartDate),void 0!==t.detail.endDate&&""!==t.detail.endDate?(this.internalEndDate=t.detail.endDate,this.updateInputValue("end",this.internalEndDate)):(this.internalEndDate="",this.updateInputValue("end",this.internalEndDate)),this.syncFormValue(),this.syncCalendarsSelectionAttributes(),""!==this.internalStartDate&&""!==this.internalEndDate&&(this.emitValueChanged(),this.closeDropdownAfterSelection())},this.handleCalendarNavigate=t=>{if(!this.dualCalendar)return;const a=this.getCalendars().indexOf(t.target),e=h.fromISO(t.detail.currentDate);e.isValid&&(this.visibleCalendarDate=e.minus({months:1===a?1:0}).startOf("month").toISODate())},this.handleCalendarPreselect=()=>{this.checkPreselections()},this.handleOpenCalendarClick=()=>{this.calendarKey+=1}}getCalendars(){var t,a;return Array.from(null!==(a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelectorAll("mds-calendar"))&&void 0!==a?a:[])}resolveVisibleCalendarDate(t,a){var e;return(null!==(e=[t,a].map((t=>h.fromISO(null!=t?t:""))).filter((t=>t.isValid))[0])&&void 0!==e?e:h.now()).startOf("month").toISODate()}getCalendarViewDate(t=0){const a=h.fromISO(this.visibleCalendarDate),e=h.fromISO(this.internalStartDate);let i=h.now();return a.isValid?i=a:e.isValid&&(i=e),i.startOf("month").plus({months:t}).toISODate()}setVisibleCalendarDate(t){const a=h.fromISO(t);a.isValid&&(this.visibleCalendarDate=a.startOf("month").toISODate())}closeDropdownAfterSelection(){if(0===this.delay)return;const{dropdownRef:t}=this;t&&setTimeout((()=>{t.visible=!1}),this.delay)}syncCalendarsSelectionAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{""!==this.internalStartDate?t.setAttribute("start-date",this.internalStartDate):t.removeAttribute("start-date"),""!==this.internalEndDate?t.setAttribute("end-date",this.internalEndDate):t.removeAttribute("end-date")})),this.syncCalendarsHoverAttributes()}syncCalendarsHoverAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{null!==this.hoveredCalendarDate&&""!==this.hoveredCalendarDate?t.setAttribute("hover-date",this.hoveredCalendarDate):t.removeAttribute("hover-date")}))}clearHoverPreview(){null!==this.hoveredCalendarDate&&(this.hoveredCalendarDate=null,this.syncCalendarsHoverAttributes())}getEmittableDateRangeDetail(){const t=h.fromISO(this.internalStartDate),a=h.fromISO(this.internalEndDate);return t.isValid&&a.isValid?{startDate:this.internalStartDate,endDate:this.internalEndDate}:null}emitValueChanged(){const t=this.getEmittableDateRangeDetail();return!(!t||t.startDate===this.lastEmittedStartDate&&t.endDate===this.lastEmittedEndDate||(this.valueChanged.emit(t),this.lastEmittedStartDate=t.startDate,this.lastEmittedEndDate=t.endDate,0))}handleStartDateChange(t){this.syncExternalDate("start",t)}handleEndDateChange(t){this.syncExternalDate("end",t)}componentWillLoad(){var t,a;if(this.internalStartDate=null!==(t=this.startDate)&&void 0!==t?t:"",this.internalEndDate=null!==(a=this.endDate)&&void 0!==a?a:"",this.initialStartDate=this.internalStartDate,this.initialEndDate=this.internalEndDate,this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.internalStartDate,this.internalEndDate),null!==this.min&&""!==this.min&&null!==this.max&&""!==this.max){const t=h.fromISO(this.min);h.fromISO(this.max)<t&&(this.max=this.min)}this.syncFormValue()}disconnectedCallback(){var t;this.host.removeEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("mdsCalendarHover",this.handleCalendarHover)}async preselect(t){null==this.togglePreselection&&(this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))),this.togglePreselection.forEach((t=>{t.selected=!1})),t.caller.selected=!0,this.clearHoverPreview(),h.fromISO(t.start).isValid&&(this.internalStartDate=t.start,this.setVisibleCalendarDate(this.internalStartDate),this.updateInputValue("start",this.internalStartDate)),void 0!==t.end?h.fromISO(t.end).isValid&&(this.internalEndDate=t.end):this.internalEndDate=t.start,this.updateInputValue("end",this.internalEndDate),this.syncFormValue();const a=this.getCalendars();return 0!==a.length&&(await Promise.all(a.map(((t,a)=>t.updateCurrentDate(this.getCalendarViewDate(a))))),this.closeDropdownAfterSelection()),this.emitValueChanged(),Promise.resolve()}componentDidLoad(){var t;this.nameSlottedFields(),this.updateInputListeners(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.syncFormValue(),this.host.addEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("mdsCalendarHover",this.handleCalendarHover)}formResetCallback(){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()}syncExternalDate(t,a){const e=null!=a?a:"";if(this.clearHoverPreview(),"start"===t){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()}updateInputValue(t,a){var e;const i=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(`slot[name="${t}"]`),s=null==i?void 0:i.assignedElements()[0];null!=s&&(this.syncingInputSlots.add(t),s.setValue(a).finally((()=>{requestAnimationFrame((()=>{this.syncingInputSlots.delete(t)}))})))}updateInputListeners(){var t,a;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="start"]'),i=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector('slot[name="end"]');this.hasPreselection=null!==this.host.querySelector("mds-input-date-range-preselection");const s=null==e?void 0:e.assignedElements()[0];null!=s&&s.addEventListener("mdsInputDateSelect",this.createFocusoutListener("start"));const r=null==i?void 0:i.assignedElements()[0];null!=r&&r.addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}createFocusoutListener(t){return a=>{if(this.syncingInputSlots.has(t))return;const e=a;this.clearHoverPreview(),"start"===t?(this.internalStartDate=e.detail,this.setVisibleCalendarDate(this.internalStartDate)):this.internalEndDate=e.detail,this.syncFormValue()}}validateDateRange(){if(""!==this.internalStartDate&&""!==this.internalEndDate){const t=h.fromISO(this.internalStartDate);h.fromISO(this.internalEndDate)<t&&(this.internalEndDate=this.internalStartDate,this.updateInputValue("end",this.internalEndDate))}}checkPreselections(){const t=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));null!=t&&t.forEach((t=>{t.selected=!!(t.start===this.internalStartDate&&t.end===this.internalEndDate||t.start===this.internalStartDate&&this.internalStartDate===this.internalEndDate&&void 0===t.end)}))}renderCalendarPreselectionPanel(){return this.hasPreselection?i("div",{class:"calendar-preselection-panel"},i("div",{class:m("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},i("slot",{name:"calendar-preselection"}))):null}renderSingleCalendar(){return i("div",{class:"calendar-single"},this.renderCalendarPreselectionPanel(),i("mds-calendar",Object.assign({key:this.calendarKey,hideToday:this.hideToday,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}renderDualCalendars(){return i("div",{class:"calendars"},this.renderCalendarPreselectionPanel(),i("mds-calendar",Object.assign({key:this.calendarKey+"-start",hideToday:this.hideToday,hideNextButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})),i("mds-calendar",Object.assign({key:this.calendarKey+"-end",hideToday:this.hideToday,hidePreviousButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(1),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}render(){return i(s,{key:"718cf4ea938605b2569a5fa19e264cf176282a80",onClick:this.focusDateInput,"pref-animation":u.state.animation,"pref-contrast":u.state.contrast,"pref-mode":u.state.mode,"pref-theme-scheme":u.state["theme-scheme"]},i("div",{key:"f8dade2fe985e70d2943aee08d6f84123e53f38b",class:"inputs"},i("div",{key:"be2dd565a6364f3ccf287514ea5726e332577389",class:"input-element"},i("mds-text",{key:"a6c3e21e613ee60986acb06edc852f110357fc31",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),i("div",{key:"08cdedb27bcdcfd35b94e90ae261f64d8694b0ef",class:"input-wrapper"},i("slot",{key:"da01b0a0fc65c8cf7094cf0db83be1d942b332b1",name:"start"}))),i("div",{key:"63e620c85a9a23660645a0e28648912cbcd79919",class:"input-element"},i("mds-text",{key:"801f3a01f11502a5878e0ede645f238ef80fa388",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),i("div",{key:"fa57d66e7f8318685256e1febf35b291f7b59f19",class:"input-wrapper"},i("slot",{key:"68e860a29b253276b3ebb29b502e7c432bb1ea9c",name:"end"})))),i("div",{key:"cb145bf4822dda4e6dbe07240089944740b090fe",class:"action-open-calendar-wrapper"},i("mds-button",{key:"9216baaff6c990532db1c8366b054655065a399f",class:"action-open-calendar",variant:"dark",tone:"text",icon:d,id:"calendar-dropdown",onClick:this.handleOpenCalendarClick})),i("mds-dropdown",{key:"94f181ff090a617de824cd46ea21981806f7f40a",ref:t=>this.dropdownRef=t,target:"#calendar-dropdown","disable-auto-placement":!0,placement:"bottom-end",role:"group"},this.dualCalendar?this.renderDualCalendars():this.renderSingleCalendar()))}syncFormValue(){var t,a,e,i;const s=null!==(a=null===(t=this.internalStartDate)||void 0===t?void 0:t.trim())&&void 0!==a?a:"",r=null!==(i=null===(e=this.internalEndDate)||void 0===e?void 0:e.trim())&&void 0!==i?i:"";o(this.internals,""!==s||""!==r?JSON.stringify({startDate:s,endDate:r}):null)}static get formAssociated(){return!0}get host(){return this}static get watchers(){return{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}]}}static get style(){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))))}}'}},[321,"mds-input-date-range",{accessibleName:[1,"aria-label"],startDate:[513,"start-date"],endDate:[513,"end-date"],min:[513],max:[513],delay:[514],hideToday:[516,"hide-today"],dualCalendar:[516,"dual-calendar"],name:[513],calendarKey:[32],internalStartDate:[32],internalEndDate:[32],visibleCalendarDate:[32],dropdownRef:[32],hasPreselection:[32],preselect:[64]},void 0,{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}]}]),z=C,j=function(){"undefined"!=typeof customElements&&["mds-input-date-range","mds-button","mds-calendar","mds-calendar-cell","mds-dropdown","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-input-date-range":customElements.get(r(t))||customElements.define(r(t),C);break;case"mds-button":customElements.get(r(t))||p();break;case"mds-calendar":customElements.get(r(t))||l();break;case"mds-calendar-cell":customElements.get(r(t))||g();break;case"mds-dropdown":customElements.get(r(t))||v();break;case"mds-icon":customElements.get(r(t))||f();break;case"mds-spinner":customElements.get(r(t))||b();break;case"mds-text":customElements.get(r(t))||x()}}))};export{z as MdsInputDateRange,j as defineCustomElement}
1
+ import{p as t,H as a,d as e,h as i,c as s,t as n}from"./p-pBvN1uAc.js";import{s as r}from"./p-CSCy6TMW.js";import{s as o}from"./p-wI0alRSO.js";import{m as d}from"./p-BVQMG7KJ.js";import{D as h,d as l}from"./p-BCiJ4PRD.js";import{c as m}from"./p-ChV9xqsO.js";import{L as c}from"./p--miH951G.js";import{p as u}from"./p-zHpei4x6.js";import{d as g}from"./p-B6FOPjps.js";import{d as p}from"./p-BhmePCyA.js";import{d as v}from"./p-CDf607TB.js";import{d as b}from"./p-Bv2IVRzI.js";import{d as f}from"./p-CHAvkoj3.js";import{d as x}from"./p-C7EyV0z3.js";var w={endDate:"Ημερομηνία λήξης",from:"Από",startDate:"Ημερομηνία έναρξης",to:"έως"},y={endDate:"End date",from:"From",startDate:"Start date",to:"to"},k={endDate:"Fecha de fin",from:"De",startDate:"Fecha de inicio",to:"a"},D={endDate:"Data di fine",from:"Dal",startDate:"Data di inizio",to:"al"};const C=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.valueChanged=e(this,"mdsInputDateRangeValueChange",7),this.internals=this.attachInternals(),this.calendarKey=0,this.internalStartDate="",this.internalEndDate="",this.visibleCalendarDate="",this.hasPreselection=!1,this.formDisabled=!1,this.t=new c({el:w,en:y,es:k,it:D}),this.startDate="",this.endDate="",this.min=null,this.max=null,this.delay=500,this.hideToday=!1,this.dualCalendar=!1,this.disabled=!1,this.lastEmittedStartDate=null,this.lastEmittedEndDate=null,this.initialStartDate="",this.initialEndDate="",this.hoveredCalendarDate=null,this.syncingInputSlots=new Set,this.handleFocusOut=t=>{if(!this.host.contains(t.relatedTarget)){const t=h.fromISO(this.internalStartDate).isValid,a=h.fromISO(this.internalEndDate).isValid;t&&a&&(this.validateDateRange(),this.syncFormValue(),this.checkPreselections(),this.emitValueChanged())}},this.focusInput=t=>{t.focusInput()},this.focusDateInput=t=>{t.target===this.host&&this.focusStartDateInput(t)},this.focusStartDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="start"]'))},this.focusEndDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="end"]'))},this.nameSlottedFields=()=>{[["start",this.t.get("startDate")],["end",this.t.get("endDate")]].forEach((([t,a])=>{var e;const i=this.host.querySelector(`[slot="${t}"]`);null!==i&&r(i,"aria-label",""!==(null!==(e=this.accessibleName)&&void 0!==e?e:"")?`${this.accessibleName}, ${a}`:a)}))},this.isDisabled=()=>!!this.disabled||this.formDisabled,this.handleCalendarHover=t=>{if(""===this.internalStartDate||""!==this.internalEndDate)return void this.clearHoverPreview();const a=t.detail.hoverDate;this.hoveredCalendarDate!==a&&(this.hoveredCalendarDate=a,this.syncCalendarsHoverAttributes())},this.handleCalendarChange=t=>{this.clearHoverPreview(),this.internalStartDate=t.detail.startDate,this.updateInputValue("start",this.internalStartDate),void 0!==t.detail.endDate&&""!==t.detail.endDate?(this.internalEndDate=t.detail.endDate,this.updateInputValue("end",this.internalEndDate)):(this.internalEndDate="",this.updateInputValue("end",this.internalEndDate)),this.syncFormValue(),this.syncCalendarsSelectionAttributes(),""!==this.internalStartDate&&""!==this.internalEndDate&&(this.emitValueChanged(),this.closeDropdownAfterSelection())},this.handleCalendarNavigate=t=>{if(!this.dualCalendar)return;const a=this.getCalendars().indexOf(t.target),e=h.fromISO(t.detail.currentDate);e.isValid&&(this.visibleCalendarDate=e.minus({months:1===a?1:0}).startOf("month").toISODate())},this.handleCalendarPreselect=()=>{this.checkPreselections()},this.handleOpenCalendarClick=()=>{this.calendarKey+=1}}getCalendars(){var t,a;return Array.from(null!==(a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelectorAll("mds-calendar"))&&void 0!==a?a:[])}resolveVisibleCalendarDate(t,a){var e;return(null!==(e=[t,a].map((t=>h.fromISO(null!=t?t:""))).filter((t=>t.isValid))[0])&&void 0!==e?e:h.now()).startOf("month").toISODate()}getCalendarViewDate(t=0){const a=h.fromISO(this.visibleCalendarDate),e=h.fromISO(this.internalStartDate);let i=h.now();return a.isValid?i=a:e.isValid&&(i=e),i.startOf("month").plus({months:t}).toISODate()}setVisibleCalendarDate(t){const a=h.fromISO(t);a.isValid&&(this.visibleCalendarDate=a.startOf("month").toISODate())}closeDropdownAfterSelection(){if(0===this.delay)return;const{dropdownRef:t}=this;t&&setTimeout((()=>{t.visible=!1}),this.delay)}syncCalendarsSelectionAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{""!==this.internalStartDate?t.setAttribute("start-date",this.internalStartDate):t.removeAttribute("start-date"),""!==this.internalEndDate?t.setAttribute("end-date",this.internalEndDate):t.removeAttribute("end-date")})),this.syncCalendarsHoverAttributes()}syncCalendarsHoverAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{null!==this.hoveredCalendarDate&&""!==this.hoveredCalendarDate?t.setAttribute("hover-date",this.hoveredCalendarDate):t.removeAttribute("hover-date")}))}clearHoverPreview(){null!==this.hoveredCalendarDate&&(this.hoveredCalendarDate=null,this.syncCalendarsHoverAttributes())}isWithinRange(t){var a,e;const i=h.fromISO(null!==(a=this.min)&&void 0!==a?a:""),s=h.fromISO(null!==(e=this.max)&&void 0!==e?e:"");return!(i.isValid&&t<i||s.isValid&&t>s)}getEmittableDateRangeDetail(){const t=h.fromISO(this.internalStartDate),a=h.fromISO(this.internalEndDate);return t.isValid&&a.isValid&&this.isWithinRange(t)&&this.isWithinRange(a)?{startDate:this.internalStartDate,endDate:this.internalEndDate}:null}emitValueChanged(){const t=this.getEmittableDateRangeDetail();return!(!t||t.startDate===this.lastEmittedStartDate&&t.endDate===this.lastEmittedEndDate||(this.valueChanged.emit(t),this.lastEmittedStartDate=t.startDate,this.lastEmittedEndDate=t.endDate,0))}handleStartDateChange(t){this.syncExternalDate("start",t)}handleEndDateChange(t){this.syncExternalDate("end",t)}handleRangeChange(){this.forwardRange(!0)}handleDisabledChange(){this.forwardDisabled(!0)}forwardRange(t){["start","end"].forEach((a=>{var e,i;const s=this.slottedField(a);null!=s&&((t||""!==(null!==(e=this.min)&&void 0!==e?e:""))&&(s.min=this.min),(t||""!==(null!==(i=this.max)&&void 0!==i?i:""))&&(s.max=this.max))}))}forwardDisabled(t){["start","end"].forEach((a=>{const e=this.slottedField(a);null!=e&&(t||this.disabled)&&(e.disabled=!!this.disabled)}))}slottedField(t){var a;const e=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(`slot[name="${t}"]`);return null==e?void 0:e.assignedElements()[0]}componentWillLoad(){var t,a;if(this.internalStartDate=null!==(t=this.startDate)&&void 0!==t?t:"",this.internalEndDate=null!==(a=this.endDate)&&void 0!==a?a:"",this.initialStartDate=this.internalStartDate,this.initialEndDate=this.internalEndDate,this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.internalStartDate,this.internalEndDate),null!==this.min&&""!==this.min&&null!==this.max&&""!==this.max){const t=h.fromISO(this.min);h.fromISO(this.max)<t&&(this.max=this.min)}this.syncFormValue()}disconnectedCallback(){var t;this.host.removeEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("mdsCalendarHover",this.handleCalendarHover)}async preselect(t){null==this.togglePreselection&&(this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))),this.togglePreselection.forEach((t=>{t.selected=!1})),t.caller.selected=!0,this.clearHoverPreview(),h.fromISO(t.start).isValid&&(this.internalStartDate=t.start,this.setVisibleCalendarDate(this.internalStartDate),this.updateInputValue("start",this.internalStartDate)),void 0!==t.end?h.fromISO(t.end).isValid&&(this.internalEndDate=t.end):this.internalEndDate=t.start,this.validateDateRange(),this.updateInputValue("end",this.internalEndDate),this.syncFormValue();const a=this.getCalendars();return 0!==a.length&&(await Promise.all(a.map(((t,a)=>t.updateCurrentDate(this.getCalendarViewDate(a))))),this.closeDropdownAfterSelection()),this.emitValueChanged(),Promise.resolve()}componentDidLoad(){var t;this.nameSlottedFields(),this.forwardRange(!1),this.forwardDisabled(!1),this.updateInputListeners(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue(),this.host.addEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("mdsCalendarHover",this.handleCalendarHover)}formDisabledCallback(t){this.formDisabled=t,t&&this.dropdownRef&&(this.dropdownRef.visible=!1)}formResetCallback(){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()}syncExternalDate(t,a){const e=null!=a?a:"";if(this.clearHoverPreview(),"start"===t){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()}updateInputValue(t,a){const e=this.slottedField(t);null!=e&&(this.syncingInputSlots.add(t),e.setValue(a).finally((()=>{requestAnimationFrame((()=>{this.syncingInputSlots.delete(t)}))})))}updateInputListeners(){var t,a;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="start"]'),i=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector('slot[name="end"]');this.hasPreselection=null!==this.host.querySelector("mds-input-date-range-preselection");const s=null==e?void 0:e.assignedElements()[0];null!=s&&s.addEventListener("mdsInputDateSelect",this.createFocusoutListener("start"));const n=null==i?void 0:i.assignedElements()[0];null!=n&&n.addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}createFocusoutListener(t){return a=>{if(this.syncingInputSlots.has(t))return;const e=a;this.clearHoverPreview(),"start"===t?(this.internalStartDate=e.detail,this.setVisibleCalendarDate(this.internalStartDate)):this.internalEndDate=e.detail,this.syncFormValue()}}validateDateRange(){if(""!==this.internalStartDate&&""!==this.internalEndDate){const t=h.fromISO(this.internalStartDate);h.fromISO(this.internalEndDate)<t&&(this.internalEndDate=this.internalStartDate,this.updateInputValue("end",this.internalEndDate))}}checkPreselections(){const t=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));null!=t&&t.forEach((t=>{t.selected=!!(t.start===this.internalStartDate&&t.end===this.internalEndDate||t.start===this.internalStartDate&&this.internalStartDate===this.internalEndDate&&void 0===t.end)}))}renderCalendarPreselectionPanel(){return this.hasPreselection?i("div",{class:"calendar-preselection-panel"},i("div",{class:m("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},i("slot",{name:"calendar-preselection"}))):null}renderSingleCalendar(){return i("div",{class:"calendar-single"},this.renderCalendarPreselectionPanel(),i("mds-calendar",Object.assign({key:this.calendarKey,hideToday:this.hideToday,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}renderDualCalendars(){return i("div",{class:"calendars"},this.renderCalendarPreselectionPanel(),i("mds-calendar",Object.assign({key:this.calendarKey+"-start",hideToday:this.hideToday,hideNextButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})),i("mds-calendar",Object.assign({key:this.calendarKey+"-end",hideToday:this.hideToday,hidePreviousButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(1),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}render(){return i(s,{key:"a4e8ec428307b1f97e36c7bb9043161492402c55",onClick:this.focusDateInput,"pref-animation":u.state.animation,"pref-contrast":u.state.contrast,"pref-mode":u.state.mode,"pref-theme-scheme":u.state["theme-scheme"]},i("div",{key:"b268dca893e7aed56b485ab2d4aac7da87cd2281",class:"inputs"},i("div",{key:"956cd85c968e0b390643e7faba8dbdb129c8f7ca",class:"input-element"},i("mds-text",{key:"c87e22b6dca6c6128d01cfa0344650839727b457",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),i("div",{key:"ee0e90044817fab1ea582e8a21bcb886771f5e28",class:"input-wrapper"},i("slot",{key:"85362085edd727aca5c20e969294c8d3e79f2c8a",name:"start"}))),i("div",{key:"e3839ed897233bf7a3f10f37304abc636bb9f595",class:"input-element"},i("mds-text",{key:"674476a4fcb3c532f4b06f55518d01405e1ade51",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),i("div",{key:"f50b01476fa382d240b620e1036c05f7726f12b5",class:"input-wrapper"},i("slot",{key:"f114e11c0715a6257374d40a16c2f8ab74ca68a2",name:"end"})))),i("div",{key:"641ea2c039b9c275b0bcf37237fab78d17f9f0b2",class:"action-open-calendar-wrapper"},i("mds-button",{key:"d24d7b2d4b0ba45e87388208499181031785ceb3",class:"action-open-calendar",disabled:this.isDisabled(),variant:"dark",tone:"text",icon:d,id:"calendar-dropdown",onClick:this.handleOpenCalendarClick})),i("mds-dropdown",{key:"74b9b52ea2c08752de62593cc7d92db3552502ed",ref:t=>this.dropdownRef=t,target:"#calendar-dropdown","disable-auto-placement":!0,placement:"bottom-end",role:"group"},this.dualCalendar?this.renderDualCalendars():this.renderSingleCalendar()))}syncFormValue(){var t,a,e,i;const s=null!==(a=null===(t=this.internalStartDate)||void 0===t?void 0:t.trim())&&void 0!==a?a:"",n=null!==(i=null===(e=this.internalEndDate)||void 0===e?void 0:e.trim())&&void 0!==i?i:"";o(this.internals,""!==s||""!==n?JSON.stringify({startDate:s,endDate:n}):null)}static get formAssociated(){return!0}get host(){return this}static get watchers(){return{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}],min:[{handleRangeChange:0}],max:[{handleRangeChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){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))))}}'}},[321,"mds-input-date-range",{accessibleName:[1,"aria-label"],startDate:[513,"start-date"],endDate:[513,"end-date"],min:[513],max:[513],delay:[514],hideToday:[516,"hide-today"],dualCalendar:[516,"dual-calendar"],name:[513],disabled:[516],calendarKey:[32],internalStartDate:[32],internalEndDate:[32],visibleCalendarDate:[32],dropdownRef:[32],hasPreselection:[32],formDisabled:[32],preselect:[64]},void 0,{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}],min:[{handleRangeChange:0}],max:[{handleRangeChange:0}],disabled:[{handleDisabledChange:0}]}]),z=C,j=function(){"undefined"!=typeof customElements&&["mds-input-date-range","mds-button","mds-calendar","mds-calendar-cell","mds-dropdown","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-input-date-range":customElements.get(n(t))||customElements.define(n(t),C);break;case"mds-button":customElements.get(n(t))||g();break;case"mds-calendar":customElements.get(n(t))||l();break;case"mds-calendar-cell":customElements.get(n(t))||p();break;case"mds-dropdown":customElements.get(n(t))||v();break;case"mds-icon":customElements.get(n(t))||b();break;case"mds-spinner":customElements.get(n(t))||f();break;case"mds-text":customElements.get(n(t))||x()}}))};export{z as MdsInputDateRange,j as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as a,d as r,h as e,c as i,t as s}from"./p-BhFTcUD0.js";import{s as n}from"./p-A9TZf0Ii.js";import{m as o}from"./p-BVQMG7KJ.js";import{D as d,d as m}from"./p-BYxxgEE_.js";import{p as c}from"./p-CvIFS8oA.js";import{d as p}from"./p-kff6xSdW.js";import{d as u}from"./p-gv3eu44S.js";import{d as l}from"./p-pys1EQ60.js";import{d as h}from"./p-qketFgr0.js";import{d as g}from"./p-BNHXZ-JR.js";import{d as v}from"./p-DlaJNPdd.js";import{d as b}from"./p-C58NKMEE.js";import{d as f}from"./p-BZFyAX-6.js";const x=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.validationEvent=r(this,"mdsInputValidation",7),this.valueChange=r(this,"mdsInputDateSelect",7),this.internals=this.attachInternals(),this.isSlotted=!1,this.empty=void 0,this.touched=!1,this.value="",this.variant="primary",this.min=null,this.max=null,this.delay=500,this.hideToday=!1,this.disabled=!1,this.readonly=!1,this.required=!1,this.calendarKey=0,this.hasFocus=!1,this.handleChange=t=>{const a=t.target;this.touched=!0,""!==a.value&&(this.value=a.value),this.validateValue(a.validity.badInput)},this.onBlur=t=>{const a=t.target;this.hasFocus=!1,this.value=a.value,this.validateValue(a.validity.badInput)},this.onFocus=t=>{const a=t.target;this.hasFocus=!0,this.readonly&&setTimeout((()=>{a.select()}),10)},this.handleOpenCalendarClick=()=>{this.calendarKey+=1},this.handleCalendarChange=t=>{if(this.value=t.detail.startDate,0===this.delay)return;const{dropdownRef:a}=this;a&&setTimeout((()=>{a.visible=!1}),this.delay)}}handleValue(){this.valueChange.emit(this.value),this.validateValue()}validateValue(t=!1){const a=d.fromISO(this.value),r=!!this.value,e=r&&!a.isValid,i=this.required&&!r,s=a.isValid&&(this.max&&d.fromISO(this.max)<a||this.min&&d.fromISO(this.min)>a);t||e||i||s?(this.isValid=!1,this.variant="error",n(this.internals,null),this.empty=!(!t&&!e)||void 0):(this.isValid=!0,this.variant="primary",n(this.internals,this.value),this.empty=void 0),this.validationEvent.emit(this.isValid)}async focusInput(){var t;(null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".input")).focus()}async setValue(t){return this.value=t,this.validateValue(),Promise.resolve()}async getErrors(){return Promise.resolve(this.isValid?null:{error:""})}formResetCallback(){n(this.internals,"")}componentWillLoad(){if(this.isSlotted=!(null===this.host.getAttribute("slot")||""===this.host.getAttribute("slot")),this.value=this.value||"",null!==this.min&&""!==this.min&&null!==this.max&&""!==this.max){const t=d.fromISO(this.min);d.fromISO(this.max)<t&&(this.max=this.min)}this.validateValue()}render(){return e(i,{key:"7deeee86a7a4e6e1012355daf9a8c1f20699dc79",empty:this.empty,"pref-animation":c.state.animation,"pref-contrast":c.state.contrast,"pref-mode":c.state.mode,"pref-theme-scheme":c.state["theme-scheme"]},e("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&&e("div",{key:"d86699480eeb7d0b0fa9550533433ccdedfe2cb8",class:"action-open-calendar-wrapper"},e("mds-button",{key:"d944ac7e9773439413e1124a78d251206009996f",id:"calendar-dropdown",class:"action-open-calendar",disabled:this.disabled,variant:"dark",tone:"text",icon:o,onClick:this.handleOpenCalendarClick})),e("mds-input-tip",{key:"f4a794937ef3456f9a1c8c78b287041a997a89cd",position:"top",active:this.hasFocus},this.disabled&&e("mds-input-tip-item",{key:"69b8aa28e6c25ece212a6ccb6fab01399ca2ebd3",expanded:!0,variant:"disabled"}),this.readonly&&e("mds-input-tip-item",{key:"879abd3cbf773214934813fd68f09562ae67022a",expanded:!0,variant:"readonly"}),this.required&&e("mds-input-tip-item",{key:"a9fa986de0a67f1e7d05fbb62348758459978a25",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),!this.isSlotted&&e("mds-dropdown",{key:"3f05e1b4705dcfc380ecd0f97a7bd957ce7c2ecf",placement:"bottom-end","disable-auto-placement":!0,ref:t=>this.dropdownRef=t,role:"group",target:"#calendar-dropdown"},e("mds-calendar",Object.assign({key:this.calendarKey,singlePicker:!0,hideToday:this.hideToday,onMdsCalendarChange:this.handleCalendarChange,startDate:this.value},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{}))))}static get formAssociated(){return!0}get host(){return this}static get watchers(){return{value:[{handleValue:0}]}}static get style(){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))))}}'}},[65,"mds-input-date",{accessibleName:[1,"aria-label"],value:[513],name:[513],variant:[1537],min:[1537],max:[1537],delay:[514],hideToday:[516,"hide-today"],disabled:[516],readonly:[516],required:[516],empty:[32],isValid:[32],touched:[32],calendarKey:[32],dropdownRef:[32],hasFocus:[32],focusInput:[64],setValue:[64],getErrors:[64]},void 0,{value:[{handleValue:0}]}]),y=x,w=function(){"undefined"!=typeof customElements&&["mds-input-date","mds-button","mds-calendar","mds-calendar-cell","mds-dropdown","mds-icon","mds-input-tip","mds-input-tip-item","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-input-date":customElements.get(s(t))||customElements.define(s(t),x);break;case"mds-button":customElements.get(s(t))||p();break;case"mds-calendar":customElements.get(s(t))||m();break;case"mds-calendar-cell":customElements.get(s(t))||u();break;case"mds-dropdown":customElements.get(s(t))||l();break;case"mds-icon":customElements.get(s(t))||h();break;case"mds-input-tip":customElements.get(s(t))||g();break;case"mds-input-tip-item":customElements.get(s(t))||v();break;case"mds-spinner":customElements.get(s(t))||b();break;case"mds-text":customElements.get(s(t))||f()}}))};export{y as MdsInputDate,w as defineCustomElement}
1
+ import{p as t,H as a,d as i,h as e,c as r,t as s}from"./p-pBvN1uAc.js";import{s as n}from"./p-wI0alRSO.js";import{u as o}from"./p-faViX-qz.js";import{m as d}from"./p-BVQMG7KJ.js";import{D as m,d as c}from"./p-BCiJ4PRD.js";import{p as l}from"./p-zHpei4x6.js";import{d as u}from"./p-B6FOPjps.js";import{d as p}from"./p-BhmePCyA.js";import{d as h}from"./p-CDf607TB.js";import{d as g}from"./p-Bv2IVRzI.js";import{d as v}from"./p-C-J9fW51.js";import{d as b}from"./p-CiNNzAa3.js";import{d as f}from"./p-CHAvkoj3.js";import{d as x}from"./p-C7EyV0z3.js";const y=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.validationEvent=i(this,"mdsInputValidation",7),this.valueChange=i(this,"mdsInputDateSelect",7),this.internals=this.attachInternals(),this.formDisabled=!1,this.isSlotted=!1,this.defaultValue="",this.empty=void 0,this.touched=!1,this.value="",this.variant="primary",this.min=null,this.max=null,this.delay=500,this.hideToday=!1,this.disabled=!1,this.readonly=!1,this.required=!1,this.calendarKey=0,this.hasFocus=!1,this.isDisabled=()=>!!this.disabled||this.formDisabled,this.handleChange=t=>{const a=t.target;this.touched=!0,""!==a.value&&(this.value=a.value),this.validateValue(a.validity.badInput)},this.onBlur=t=>{const a=t.target;this.hasFocus=!1,this.touched=!0,this.value=a.value,this.validateValue(a.validity.badInput)},this.onFocus=t=>{const a=t.target;this.hasFocus=!0,this.readonly&&setTimeout((()=>{a.select()}),10)},this.handleOpenCalendarClick=()=>{this.calendarKey+=1},this.handleCalendarChange=t=>{if(this.touched=!0,this.value=t.detail.startDate,0===this.delay)return;const{dropdownRef:a}=this;a&&setTimeout((()=>{a.visible=!1}),this.delay)}}handleValue(){this.valueChange.emit(this.value),this.validateValue()}validateValue(t=!1){const a=m.fromISO(this.value),i=!!this.value&&!a.isValid;this.problem=this.findProblem(a,t||i),this.isValid=void 0===this.problem,n(this.internals,this.isValid?this.value:null),this.empty=!(!t&&!i)||void 0,this.updateFormValidity(),this.touched&&(this.variant=this.isValid?"primary":"error",this.validationEvent.emit(this.isValid))}invalidHandler(){this.touched=!0,this.validateValue()}findProblem(t,a){var i,e,r;return a?{rule:"invalidDate"}:this.required&&""===(null!==(i=this.value)&&void 0!==i?i:"")?{rule:"required"}:t.isValid?""!==(null!==(e=this.max)&&void 0!==e?e:"")&&m.fromISO(this.max)<t?{rule:"maxDate",context:{max:this.formatDate(this.max)}}:""!==(null!==(r=this.min)&&void 0!==r?r:"")&&m.fromISO(this.min)>t?{rule:"minDate",context:{min:this.formatDate(this.min)}}:void 0:void 0}formatDate(t){return m.fromISO(t).setLocale(l.state.language).toLocaleString(m.DATE_SHORT)}updateFormValidity(){var t,a;const i=null!==(a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".input"))&&void 0!==a?a:void 0;o(this.internals,this.problem,i)}componentDidRender(){this.updateFormValidity()}async focusInput(){var t;(null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".input")).focus()}async setValue(t){return this.value=t,this.validateValue(),Promise.resolve()}async getErrors(){return Promise.resolve(this.isValid?null:{error:""})}formDisabledCallback(t){this.formDisabled=t}formResetCallback(){var t;const{touched:a}=this;this.touched=!1;const i=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".input");i&&(i.value=this.defaultValue),this.value=this.defaultValue,this.validateValue(),a&&(this.variant="primary")}componentWillLoad(){this.isSlotted=!(null===this.host.getAttribute("slot")||""===this.host.getAttribute("slot")),this.value=this.value||"",this.defaultValue=this.value,this.clampRange(),this.validateValue()}clampRange(){return null!==this.min&&""!==this.min&&null!==this.max&&""!==this.max&&m.fromISO(this.max)<m.fromISO(this.min)&&(this.max=this.min,!0)}validationRulesChanged(){this.clampRange()||this.validateValue()}render(){return e(r,{key:"13e487563964002ae6ee19e0f9629f8fb79072fb",empty:this.empty,"pref-animation":l.state.animation,"pref-contrast":l.state.contrast,"pref-mode":l.state.mode,"pref-theme-scheme":l.state["theme-scheme"]},e("input",{key:"429990cdcb5a89e235593a865031dc215b563d33","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&&e("div",{key:"a8a8541a35bd617419f01414924bf6124085ea7a",class:"action-open-calendar-wrapper"},e("mds-button",{key:"015006dc305b61b5e81e71527fb04581e51e6968",id:"calendar-dropdown",class:"action-open-calendar",disabled:this.isDisabled()||this.readonly,variant:"dark",tone:"text",icon:d,onClick:this.handleOpenCalendarClick})),e("mds-input-tip",{key:"76f13d1e3879d81d1845cad5e600dd5d2e77e96d",position:"top",active:this.hasFocus},this.isDisabled()&&e("mds-input-tip-item",{key:"594fbd6019219838a16a8b9eed6b21363a0359ed",expanded:!0,variant:"disabled"}),this.readonly&&e("mds-input-tip-item",{key:"52ee7ba2815321e60b1157c79b7daea2710693e9",expanded:!0,variant:"readonly"}),this.required&&e("mds-input-tip-item",{key:"59456d7e37af91c8ca628125e37e2f840e68b27b",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),!this.isSlotted&&e("mds-dropdown",{key:"a6d248f985d7c286c6dd8cbdaf31afbac4fa4e10",placement:"bottom-end","disable-auto-placement":!0,ref:t=>this.dropdownRef=t,role:"group",target:"#calendar-dropdown"},e("mds-calendar",Object.assign({key:this.calendarKey,singlePicker:!0,hideToday:this.hideToday,onMdsCalendarChange:this.handleCalendarChange,startDate:this.value},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{}))))}static get formAssociated(){return!0}get host(){return this}static get watchers(){return{value:[{handleValue:0}],max:[{validationRulesChanged:0}],min:[{validationRulesChanged:0}],required:[{validationRulesChanged:0}]}}static get style(){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))))}}'}},[65,"mds-input-date",{accessibleName:[1,"aria-label"],value:[513],name:[513],variant:[1537],min:[1537],max:[1537],delay:[514],hideToday:[516,"hide-today"],disabled:[516],readonly:[516],required:[516],formDisabled:[32],empty:[32],isValid:[32],touched:[32],calendarKey:[32],dropdownRef:[32],hasFocus:[32],focusInput:[64],setValue:[64],getErrors:[64]},[[0,"invalid","invalidHandler"]],{value:[{handleValue:0}],max:[{validationRulesChanged:0}],min:[{validationRulesChanged:0}],required:[{validationRulesChanged:0}]}]),w=y,k=function(){"undefined"!=typeof customElements&&["mds-input-date","mds-button","mds-calendar","mds-calendar-cell","mds-dropdown","mds-icon","mds-input-tip","mds-input-tip-item","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-input-date":customElements.get(s(t))||customElements.define(s(t),y);break;case"mds-button":customElements.get(s(t))||u();break;case"mds-calendar":customElements.get(s(t))||c();break;case"mds-calendar-cell":customElements.get(s(t))||p();break;case"mds-dropdown":customElements.get(s(t))||h();break;case"mds-icon":customElements.get(s(t))||g();break;case"mds-input-tip":customElements.get(s(t))||v();break;case"mds-input-tip-item":customElements.get(s(t))||b();break;case"mds-spinner":customElements.get(s(t))||f();break;case"mds-text":customElements.get(s(t))||x()}}))};export{w as MdsInputDate,k as defineCustomElement}
@@ -1 +1 @@
1
- import{p as a,H as t,h as s,c as e,t as r}from"./p-BhFTcUD0.js";import{d as i}from"./p-BZFyAX-6.js";const n=a(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.nameSlottedControls=()=>{var a;null===(a=this.slotInput)||void 0===a||a.assignedElements().forEach((a=>{const t=a.getAttribute("aria-label");null!==t&&t!==this.appliedName||(null!=this.label&&""!==this.label?a.setAttribute("aria-label",this.label):a.removeAttribute("aria-label"))})),this.appliedName=this.label},this.variant="primary"}handleValidation(a){"function"==typeof a.getErrors&&a.getErrors().then((a=>{if(null==a)this.variant="success",this.message=void 0;else{this.variant="error";const t=Object.entries(a).map((a=>a[1])).filter((a=>a));this.message=0!==t.length?t.join(";"):void 0}}))}componentDidLoad(){this.nameSlottedControls();const[a]=this.slotInput.assignedElements();null!=a?a.addEventListener("mdsInputValidation",(a=>this.handleValidation(a.target))):console.warn("mds-input-field: no mds-input assigned to the input slot")}labelChanged(){this.nameSlottedControls()}render(){var a;return s(e,{key:"583ee482bbab1a36be354ff74ee0025171d1ac6a"},s("mds-text",{key:"667c77827695565fd798c3e1528802ff300eb5d7",class:"label",typography:"label"},this.label),s("div",{key:"c1e2b99db32d1f3ca5f783c46fbf09a285e36857",class:"message-window"},s("div",{key:"5e2fef6eb9971f2e08ed3c89dee28bde0b659995",class:"content",part:"content"},s("slot",{key:"f9ad79859fe01dfec67abf0f9953de8a07c66a86",onSlotchange:this.nameSlottedControls,ref:a=>this.slotInput=a})),s("div",{key:"1530d0b175f5bb7df5ed25041eaac339ae48d57c",class:"message"},null===(a=this.message)||void 0===a?void 0:a.split(";").map(((a,t)=>s("mds-text",{typography:"caption",key:t},a))))))}static get formAssociated(){return!0}get host(){return this}static get watchers(){return{label:[{labelChanged:0}]}}static get style(){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))}"}},[321,"mds-input-field",{label:[1025],message:[1025],variant:[1537]},void 0,{label:[{labelChanged:0}]}]),o=n,m=function(){"undefined"!=typeof customElements&&["mds-input-field","mds-text"].forEach((a=>{switch(a){case"mds-input-field":customElements.get(r(a))||customElements.define(r(a),n);break;case"mds-text":customElements.get(r(a))||i()}}))};export{o as MdsInputField,m as defineCustomElement}
1
+ import{p as a,H as t,h as s,c as r,t as e}from"./p-pBvN1uAc.js";import{d as i}from"./p-C7EyV0z3.js";const n=a(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.nameSlottedControls=()=>{var a;null===(a=this.slotInput)||void 0===a||a.assignedElements().forEach((a=>{const t=a.getAttribute("aria-label");null!==t&&t!==this.appliedName||(null!=this.label&&""!==this.label?a.setAttribute("aria-label",this.label):a.removeAttribute("aria-label"))})),this.appliedName=this.label},this.variant="primary"}handleValidation(a){"function"==typeof a.getErrors&&a.getErrors().then((a=>{if(null==a)this.variant="success",this.message=void 0;else{this.variant="error";const t=Object.entries(a).map((a=>a[1])).filter((a=>a));this.message=0!==t.length?t.join(";"):void 0}}))}componentDidLoad(){this.nameSlottedControls();const[a]=this.slotInput.assignedElements();null!=a?a.addEventListener("mdsInputValidation",(a=>this.handleValidation(a.target))):console.warn("mds-input-field: no mds-input assigned to the input slot")}labelChanged(){this.nameSlottedControls()}render(){var a;return s(r,{key:"632203a1cff0f34e720f49d4675c78839e91af6d"},s("mds-text",{key:"30860478ead5e3864927400a5d1a87446668badb",class:"label",typography:"label"},this.label),s("div",{key:"5bebb90ae68ec9cc03279626192a1c37e07faa8d",class:"message-window"},s("div",{key:"2099540b05c94169777a2793b03dd1420e210b18",class:"content",part:"content"},s("slot",{key:"a732030c31e1faba9436244ef88f3884949a5c06",onSlotchange:this.nameSlottedControls,ref:a=>this.slotInput=a})),s("div",{key:"bac1730d493bdef3cda8d5bb330370849680f187",class:"message"},null===(a=this.message)||void 0===a?void 0:a.split(";").map(((a,t)=>s("mds-text",{typography:"caption",key:t},a))))))}static get formAssociated(){return!0}get host(){return this}static get watchers(){return{label:[{labelChanged:0}]}}static get style(){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))}"}},[321,"mds-input-field",{label:[1025],message:[1025],variant:[1537]},void 0,{label:[{labelChanged:0}]}]),o=n,m=function(){"undefined"!=typeof customElements&&["mds-input-field","mds-text"].forEach((a=>{switch(a){case"mds-input-field":customElements.get(e(a))||customElements.define(e(a),n);break;case"mds-text":customElements.get(e(a))||i()}}))};export{o as MdsInputField,m as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as s,h as i,c as e,t as n}from"./p-BhFTcUD0.js";import{s as o}from"./p-A9TZf0Ii.js";import{L as r}from"./p-Bss3F51Q.js";import{d as m}from"./p-kff6xSdW.js";import{d as a}from"./p-qketFgr0.js";import{d as p}from"./p-zml3K7nx.js";import{d}from"./p-BNHXZ-JR.js";import{d as l}from"./p-DlaJNPdd.js";import{d as c}from"./p-C58NKMEE.js";import{d as u}from"./p-BZFyAX-6.js";var h={digit:"Ψηφίο {{position}} από {{length}}"},f={digit:"Digit {{position}} of {{length}}"},g={digit:"Dígito {{position}} de {{length}}"},b={digit:"Cifra {{position}} di {{length}}"};const v=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.internals=this.attachInternals(),this.t=new r({el:h,en:f,es:g,it:b}),this.length=6,this.autosubmit=!1,this.value="",this.getOtpCode=()=>Array.from(this.element.shadowRoot.querySelectorAll("mds-input")).map((t=>t.value)).join(""),this.setOtpDigit=(t,s)=>{t.value=s;const i=this.getOtpCode();this.value=i,o(this.internals,i)},this.submit=t=>{var s;const i=this.getOtpCode().length===this.length;t.blur(),this.autosubmit&&i&&(null===(s=this.internals.form)||void 0===s||s.requestSubmit())},this.handleKeyDown=t=>{if(t.ctrlKey)return;if(t.preventDefault(),isNaN(Number(t.key)))return;const s=t.target;this.setOtpDigit(s,t.key);const i=s.nextElementSibling;null!=i?i.setFocus():this.submit(s)},this.handlePaste=t=>{var s,i;t.preventDefault();const e=null===(s=t.clipboardData)||void 0===s?void 0:s.getData("text");if(isNaN(Number(e)))return;const n=null!==(i=null==e?void 0:e.split(""))&&void 0!==i?i:[];let o=t.target;for(const t of n){if(this.setOtpDigit(o,t),o=o.nextElementSibling,null==o)return void this.submit(o);o.setFocus()}},this.digitName=t=>{var s;const i=this.t.get("digit",{position:t+1,length:this.length});return""!==(null!==(s=this.accessibleName)&&void 0!==s?s:"")?`${this.accessibleName}, ${i}`:i}}render(){return i(e,{key:"10ca24b0e94edc403924d73cb409ff246d52bf36"},Array.from({length:this.length}).map(((t,s)=>i("mds-input",{"aria-label":this.digitName(s),class:"input",maxlength:1,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste}))))}static get formAssociated(){return!0}get element(){return this}static get style(){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}"}},[65,"mds-input-otp",{accessibleName:[1,"aria-label"],length:[2],autosubmit:[516],value:[1537]}]),E=v,j=function(){"undefined"!=typeof customElements&&["mds-input-otp","mds-button","mds-icon","mds-input","mds-input-tip","mds-input-tip-item","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-input-otp":customElements.get(n(t))||customElements.define(n(t),v);break;case"mds-button":customElements.get(n(t))||m();break;case"mds-icon":customElements.get(n(t))||a();break;case"mds-input":customElements.get(n(t))||p();break;case"mds-input-tip":customElements.get(n(t))||d();break;case"mds-input-tip-item":customElements.get(n(t))||l();break;case"mds-spinner":customElements.get(n(t))||c();break;case"mds-text":customElements.get(n(t))||u()}}))};export{E as MdsInputOtp,j as defineCustomElement}
1
+ import{p as t,H as s,h as i,c as e,t as n}from"./p-pBvN1uAc.js";import{s as a}from"./p-wI0alRSO.js";import{L as o}from"./p--miH951G.js";import{d as r}from"./p-B6FOPjps.js";import{d as l}from"./p-Bv2IVRzI.js";import{d as m}from"./p-CGYDZBMv.js";import{d as h}from"./p-C-J9fW51.js";import{d as u}from"./p-CiNNzAa3.js";import{d}from"./p-CHAvkoj3.js";import{d as p}from"./p-C7EyV0z3.js";var c={digit:"Ψηφίο {{position}} από {{length}}"},v={digit:"Digit {{position}} of {{length}}"},f={digit:"Dígito {{position}} de {{length}}"},g={digit:"Cifra {{position}} di {{length}}"};const b=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.internals=this.attachInternals(),this.loadValue="",this.digits=[],this.formDisabled=!1,this.t=new o({el:c,en:v,es:f,it:g}),this.length=6,this.autosubmit=!1,this.disabled=!1,this.value="",this.isDisabled=()=>!!this.disabled||this.formDisabled,this.setOtpDigit=(t,s)=>{const i=Array.from(this.element.shadowRoot.querySelectorAll("mds-input")).indexOf(t),e=[...this.digits];e[i]=s,this.digits=e,this.updateValue()},this.submit=t=>{var s,i;const e=(null!==(s=this.value)&&void 0!==s?s:"").length===this.length;t.blur(),this.autosubmit&&e&&(null===(i=this.internals.form)||void 0===i||i.requestSubmit())},this.handleKeyDown=t=>{if(t.ctrlKey)return;if(t.preventDefault(),isNaN(Number(t.key)))return;const s=t.target;this.setOtpDigit(s,t.key);const i=s.nextElementSibling;null!=i?i.setFocus():this.submit(s)},this.handlePaste=t=>{var s,i;t.preventDefault();const e=null===(s=t.clipboardData)||void 0===s?void 0:s.getData("text");if(isNaN(Number(e)))return;const n=null!==(i=null==e?void 0:e.split(""))&&void 0!==i?i:[];let a=t.target;for(const t of n){if(this.setOtpDigit(a,t),a=a.nextElementSibling,null==a)return void this.submit(a);a.setFocus()}},this.digitName=t=>{var s;const i=this.t.get("digit",{position:t+1,length:this.length});return""!==(null!==(s=this.accessibleName)&&void 0!==s?s:"")?`${this.accessibleName}, ${i}`:i}}valueChanged(t){(null!=t?t:"")!==this.digits.join("")&&this.fillCells(null!=t?t:"")}formDisabledCallback(t){this.formDisabled=t}formResetCallback(){this.fillCells(this.loadValue)}componentWillLoad(){var t;this.loadValue=null!==(t=this.value)&&void 0!==t?t:"",this.fillCells(this.loadValue)}fillCells(t){this.digits=Array.from(t).slice(0,this.length),this.updateValue()}updateValue(){this.value=this.digits.join(""),a(this.internals,this.value)}render(){return i(e,{key:"a092071d96dde4767e7c9422b06242de7e244b8c"},Array.from({length:this.length}).map(((t,s)=>{var e;return i("mds-input",{"aria-label":this.digitName(s),class:"input",disabled:this.isDisabled(),maxlength:1,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,value:null!==(e=this.digits[s])&&void 0!==e?e:""})})))}static get formAssociated(){return!0}get element(){return this}static get watchers(){return{value:[{valueChanged:0}]}}static get style(){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}"}},[65,"mds-input-otp",{accessibleName:[1,"aria-label"],length:[2],autosubmit:[516],disabled:[516],value:[1537],digits:[32],formDisabled:[32]},void 0,{value:[{valueChanged:0}]}]),j=b,C=function(){"undefined"!=typeof customElements&&["mds-input-otp","mds-button","mds-icon","mds-input","mds-input-tip","mds-input-tip-item","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-input-otp":customElements.get(n(t))||customElements.define(n(t),b);break;case"mds-button":customElements.get(n(t))||r();break;case"mds-icon":customElements.get(n(t))||l();break;case"mds-input":customElements.get(n(t))||m();break;case"mds-input-tip":customElements.get(n(t))||h();break;case"mds-input-tip-item":customElements.get(n(t))||u();break;case"mds-spinner":customElements.get(n(t))||d();break;case"mds-text":customElements.get(n(t))||p()}}))};export{j as MdsInputOtp,C as defineCustomElement}
@@ -1 +1 @@
1
- import{p as a,H as t,d as r,h as e,c as i,t as n}from"./p-BhFTcUD0.js";import{s}from"./p-A9TZf0Ii.js";import{p as o}from"./p-CvIFS8oA.js";import{d}from"./p-BZFyAX-6.js";const m=a(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.changeEvent=r(this,"mdsInputRangeChange",7),this.internals=this.attachInternals(),this.max=100,this.min=0,this.step=1,this.onInput=()=>{if(Number.isNaN(this.inputElement.value))throw Error(`Entered value ${this.inputElement.value} is not a Number`);this.value=Number(this.inputElement.value)}}calculateProgress(){let a=Number(this.inputElement.value);const t=Math.pow(10,this.decimalPlaces);a>this.max?a=this.max:a<this.min&&(a=this.min),(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,s(this.internals,""+this.value),this.progress=(this.value-this.min)/(this.max-this.min)*100}countDecimals(a){return Math.floor(a)===a?0:(""+a).split(".")[1].length||0}disabledChanged(a){a&&s(this.internals,null)}valueChanged(a,t){a!==t&&(this.inputElement.value=""+this.value,this.calculateProgress(),this.changeEvent.emit(this.value))}minChanged(){this.calculateProgress()}maxChanged(){this.calculateProgress()}stepChanged(){if(this.step<=0)throw Error("step cant be negative or zero");this.decimalPlaces=this.countDecimals(this.step),this.calculateProgress()}formResetCallback(){s(this.internals,"")}componentDidLoad(){var a;this.decimalPlaces=this.countDecimals(this.step),this.onInput(),this.label=null!==(a=this.element.textContent)&&void 0!==a?a:"",this.calculateProgress()}render(){var a;return e(i,{key:"7c0a8d739163d2bf261c37c07010dc0b3d50e229","pref-animation":o.state.animation,"pref-contrast":o.state.contrast,"pref-mode":o.state.mode,"pref-theme-scheme":o.state["theme-scheme"]},e("header",{key:"95f14dfc8f5cd2a51a101d7836e7f3fecada1ff7",class:"header",part:"header"},e("mds-text",{key:"b43ad53a0a963336581c646e1f071bdae3a26efc",class:"label",typography:"label"},e("slot",{key:"c977a9d5544930cefabe76ca3d7394d629d52450"})),e("mds-text",{key:"92b8d45b0a8846d0266c366129448f1d97357947",class:"value",typography:"label"},this.formatValue?this.formatValue(this.value):this.value)),e("div",{key:"29e4bcfc4fb52fbfdcc5684a9d0a45651ade0c97",class:"range"},e("div",{key:"38f46832e1735ff53d83aff2ee67ba359d711ed6",class:"track",part:"track"},e("div",{key:"96206811d68b037c6d484f34773a368ca46419ab",class:"contrast-area"}),e("div",{key:"6f329d1cac11dfdb21c2d10f01b6ec82cb6d7805",class:"track-total"},e("div",{key:"590710af361f8d3933b22e80ccca3fe1d6a62498",class:"track-progress",style:{"--mds-input-range-progress":""+(null!==(a=this.progress)&&void 0!==a?a:0)}}))),e("input",{key:"485d49941a1cb41258d32e02ec1c3f03882744f1",ref:a=>this.inputElement=a,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})))}static get formAssociated(){return!0}get element(){return this}static get watchers(){return{disabled:[{disabledChanged:0}],value:[{valueChanged:0}],min:[{minChanged:0}],max:[{maxChanged:0}],step:[{stepChanged:0}]}}static get style(){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))))}}"}},[321,"mds-input-range",{formatValue:[16],name:[513],max:[2],min:[2],step:[2],disabled:[1540],value:[1538],progress:[32]},void 0,{disabled:[{disabledChanged:0}],value:[{valueChanged:0}],min:[{minChanged:0}],max:[{maxChanged:0}],step:[{stepChanged:0}]}]),c=m,u=function(){"undefined"!=typeof customElements&&["mds-input-range","mds-text"].forEach((a=>{switch(a){case"mds-input-range":customElements.get(n(a))||customElements.define(n(a),m);break;case"mds-text":customElements.get(n(a))||d()}}))};export{c as MdsInputRange,u as defineCustomElement}
1
+ import{p as a,H as t,d as r,h as e,c as i,t as n}from"./p-pBvN1uAc.js";import{s}from"./p-wI0alRSO.js";import{p as o}from"./p-zHpei4x6.js";import{d}from"./p-C7EyV0z3.js";const m=a(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.changeEvent=r(this,"mdsInputRangeChange",7),this.internals=this.attachInternals(),this.formDisabled=!1,this.max=100,this.min=0,this.step=1,this.onInput=()=>{this.value=Number(this.inputElement.value)},this.isDisabled=()=>!!this.disabled||this.formDisabled}allowedStep(){const a=Number(this.step);return a>0?a:1}calculateProgress(){let a=Number(this.inputElement.value);const t=this.allowedStep(),r=Math.pow(10,this.countDecimals(t));a>this.max?a=this.max:a<this.min&&(a=this.min),(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,s(this.internals,""+this.value),this.progress=(this.value-this.min)/(this.max-this.min)*100}countDecimals(a){return Math.floor(a)===a?0:(""+a).split(".")[1].length||0}disabledChanged(a){a&&s(this.internals,null)}valueChanged(a,t){a!==t&&(this.inputElement.value=""+this.value,this.calculateProgress(),this.changeEvent.emit(this.value))}minChanged(){this.calculateProgress()}maxChanged(){this.calculateProgress()}stepChanged(){this.calculateProgress()}formDisabledCallback(a){this.formDisabled=a}formResetCallback(){this.inputElement.value=void 0===this.loadValue?"":this.loadValue+"",this.onInput()}componentWillLoad(){var a;const t=Number(null!==(a=this.value)&&void 0!==a?a:NaN);this.loadValue=Number.isNaN(t)?void 0:t}componentDidLoad(){var a;this.onInput(),this.label=null!==(a=this.element.textContent)&&void 0!==a?a:"",this.calculateProgress()}render(){var a;return e(i,{key:"7588d9e5f1f0657ae63ba23cad5d3d8faee3ff17","pref-animation":o.state.animation,"pref-contrast":o.state.contrast,"pref-mode":o.state.mode,"pref-theme-scheme":o.state["theme-scheme"]},e("header",{key:"fbd890516bc521d3dc46c63ad98ee981a08cc459",class:"header",part:"header"},e("mds-text",{key:"361e2b3f13dfc017e873865853ef77ef47332434",class:"label",typography:"label"},e("slot",{key:"95335d7a71e2674d95e850fa9a45074e060daff4"})),e("mds-text",{key:"6897c798d09be9f92b1295eb67177ef1bd30f98c",class:"value",typography:"label"},this.formatValue?this.formatValue(this.value):this.value)),e("div",{key:"47550ba3617f33dafcf2547ad57ecedf11cffc6b",class:"range"},e("div",{key:"bf3c5e9a8f4b15a8c6e545670e628952fcd19393",class:"track",part:"track"},e("div",{key:"95626574ed8adb96f06a8a321a68a2e6bbe37401",class:"contrast-area"}),e("div",{key:"6e15a6d2c583415382af4eec1e142e22698c8079",class:"track-total"},e("div",{key:"ea257f325270545f8f76bb6b911dfe17a5f2efd7",class:"track-progress",style:{"--mds-input-range-progress":""+(null!==(a=this.progress)&&void 0!==a?a:0)}}))),e("input",{key:"7302c7d6348c7844c90804676c29236082204e87",ref:a=>this.inputElement=a,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})))}static get formAssociated(){return!0}get element(){return this}static get watchers(){return{disabled:[{disabledChanged:0}],value:[{valueChanged:0}],min:[{minChanged:0}],max:[{maxChanged:0}],step:[{stepChanged:0}]}}static get style(){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))))}}"}},[321,"mds-input-range",{formatValue:[16],name:[513],max:[2],min:[2],step:[2],disabled:[1540],value:[1538],progress:[32],formDisabled:[32]},void 0,{disabled:[{disabledChanged:0}],value:[{valueChanged:0}],min:[{minChanged:0}],max:[{maxChanged:0}],step:[{stepChanged:0}]}]),c=m,u=function(){"undefined"!=typeof customElements&&["mds-input-range","mds-text"].forEach((a=>{switch(a){case"mds-input-range":customElements.get(n(a))||customElements.define(n(a),m);break;case"mds-text":customElements.get(n(a))||d()}}))};export{c as MdsInputRange,u as defineCustomElement}