@maggioli-design-system/magma 2.1.0 → 2.3.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 (1307) hide show
  1. package/AGENTS.md +26 -10
  2. package/CHANGELOG.md +475 -0
  3. package/README.md +5 -2
  4. package/agents/assets.md +231 -28
  5. package/agents/color.md +5 -3
  6. package/agents/components.md +3 -3
  7. package/agents/install.md +25 -4
  8. package/agents/reporting.md +127 -0
  9. package/agents/theming.md +15 -0
  10. package/dist/cjs/_commonjsHelpers-CFO10eej.js +7 -0
  11. package/dist/cjs/{floating-controller-uOCBLTk2.js → floating-controller-D7Ekjocg.js} +18 -4
  12. package/dist/cjs/{floating-ui.dom-DflSHZIo.js → floating-ui.dom-EMHL7uyZ.js} +146 -94
  13. package/dist/cjs/icon-MMHcqbgv.js +20 -0
  14. package/dist/cjs/index-UmmmCMIG.js +40 -40
  15. package/dist/cjs/index.cjs.js +62 -0
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/cjs/magma-components.cjs.js +1 -1
  18. package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
  19. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
  20. package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
  21. package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
  22. package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
  23. package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
  24. package/dist/cjs/mds-avatar.cjs.entry.js +2 -2
  25. package/dist/cjs/mds-badge.cjs.entry.js +1 -1
  26. package/dist/cjs/mds-banner_3.cjs.entry.js +3 -3
  27. package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
  28. package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
  29. package/dist/cjs/mds-breadcrumb.cjs.entry.js +1 -1
  30. package/dist/cjs/mds-button-dropdown.cjs.entry.js +30 -2
  31. package/dist/cjs/mds-button_3.cjs.entry.js +125 -58
  32. package/dist/cjs/mds-calendar_2.cjs.entry.js +59 -6
  33. package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
  34. package/dist/cjs/mds-card.cjs.entry.js +1 -1
  35. package/dist/cjs/mds-details.cjs.entry.js +1 -1
  36. package/dist/cjs/mds-dropdown.cjs.entry.js +3 -3
  37. package/dist/cjs/mds-emoji.cjs.entry.js +1 -1
  38. package/dist/cjs/mds-entity.cjs.entry.js +1 -1
  39. package/dist/cjs/mds-file-preview.cjs.entry.js +1 -1
  40. package/dist/cjs/mds-file.cjs.entry.js +29 -7520
  41. package/dist/cjs/mds-filter-item.cjs.entry.js +89 -3
  42. package/dist/cjs/mds-filter.cjs.entry.js +113 -19
  43. package/dist/cjs/mds-header-bar.cjs.entry.js +29 -2
  44. package/dist/cjs/mds-header.cjs.entry.js +1 -1
  45. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +38 -2
  46. package/dist/cjs/mds-hr.cjs.entry.js +1 -1
  47. package/dist/cjs/mds-img.cjs.entry.js +1 -1
  48. package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
  49. package/dist/cjs/mds-input-date-range.cjs.entry.js +16 -2
  50. package/dist/cjs/mds-input-date.cjs.entry.js +36 -4
  51. package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
  52. package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
  53. package/dist/cjs/mds-input-select.cjs.entry.js +32 -5
  54. package/dist/cjs/mds-input-switch_2.cjs.entry.js +21 -8
  55. package/dist/cjs/mds-input-tip_2.cjs.entry.js +2 -2
  56. package/dist/cjs/mds-input-upload.cjs.entry.js +1 -1
  57. package/dist/cjs/mds-input.cjs.entry.js +12 -3
  58. package/dist/cjs/mds-keyboard-key.cjs.entry.js +1 -1
  59. package/dist/cjs/mds-keyboard.cjs.entry.js +1 -1
  60. package/dist/cjs/mds-kpi-item.cjs.entry.js +1 -1
  61. package/dist/cjs/mds-label.cjs.entry.js +1 -1
  62. package/dist/cjs/mds-list-item.cjs.entry.js +2 -3
  63. package/dist/cjs/mds-mention.cjs.entry.js +1 -1
  64. package/dist/cjs/mds-modal.cjs.entry.js +32 -5
  65. package/dist/cjs/mds-note.cjs.entry.js +1 -1
  66. package/dist/cjs/mds-notification.cjs.entry.js +2 -2
  67. package/dist/cjs/mds-paginator-item.cjs.entry.js +1 -1
  68. package/dist/cjs/mds-paginator.cjs.entry.js +1 -1
  69. package/dist/cjs/mds-policy-ai.cjs.entry.js +1 -1
  70. package/dist/cjs/mds-pref-animation.cjs.entry.js +1 -1
  71. package/dist/cjs/mds-pref-consumption.cjs.entry.js +1 -1
  72. package/dist/cjs/mds-pref-contrast.cjs.entry.js +1 -1
  73. package/dist/cjs/mds-pref-language.cjs.entry.js +1 -1
  74. package/dist/cjs/mds-pref-mode.cjs.entry.js +1 -1
  75. package/dist/cjs/mds-pref-theme-item.cjs.entry.js +4 -3
  76. package/dist/cjs/mds-pref-theme.cjs.entry.js +29 -2
  77. package/dist/cjs/mds-pref.cjs.entry.js +24 -53
  78. package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +2 -2
  79. package/dist/cjs/mds-price-table-features-row.cjs.entry.js +2 -2
  80. package/dist/cjs/mds-price-table-features.cjs.entry.js +2 -2
  81. package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
  82. package/dist/cjs/mds-price-table-list-item.cjs.entry.js +2 -2
  83. package/dist/cjs/mds-price-table-list.cjs.entry.js +2 -2
  84. package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
  85. package/dist/cjs/mds-progress_2.cjs.entry.js +4 -4
  86. package/dist/cjs/mds-push-notification-item.cjs.entry.js +4 -4
  87. package/dist/cjs/mds-push-notification.cjs.entry.js +2 -2
  88. package/dist/cjs/mds-quote.cjs.entry.js +2 -2
  89. package/dist/cjs/mds-radial-menu-item.cjs.entry.js +2 -2
  90. package/dist/cjs/mds-radial-menu.cjs.entry.js +40 -4
  91. package/dist/cjs/mds-separator.cjs.entry.js +2 -2
  92. package/dist/cjs/mds-status-bar.cjs.entry.js +2 -2
  93. package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +2 -2
  94. package/dist/cjs/mds-stepper-bar.cjs.entry.js +2 -2
  95. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +2 -2
  96. package/dist/cjs/mds-tab-bar.cjs.entry.js +2 -2
  97. package/dist/cjs/mds-tab_2.cjs.entry.js +43 -8
  98. package/dist/cjs/mds-table-body.cjs.entry.js +2 -2
  99. package/dist/cjs/mds-table-footer.cjs.entry.js +2 -2
  100. package/dist/cjs/mds-table-header-cell.cjs.entry.js +116 -77
  101. package/dist/cjs/mds-table-header.cjs.entry.js +2 -2
  102. package/dist/cjs/mds-table-row.cjs.entry.js +22 -16
  103. package/dist/cjs/mds-table.cjs.entry.js +9 -2
  104. package/dist/cjs/mds-text.cjs.entry.js +37 -27
  105. package/dist/cjs/mds-toast.cjs.entry.js +2 -2
  106. package/dist/cjs/mds-tooltip.cjs.entry.js +17 -4
  107. package/dist/cjs/mds-tree-item.cjs.entry.js +2 -2
  108. package/dist/cjs/mds-tree.cjs.entry.js +2 -2
  109. package/dist/cjs/mds-url-view.cjs.entry.js +2 -2
  110. package/dist/cjs/mds-usage.cjs.entry.js +23 -4
  111. package/dist/cjs/mds-video-wall.cjs.entry.js +2 -2
  112. package/dist/cjs/mds-zero.cjs.entry.js +2 -2
  113. package/dist/cjs/string-RoXIuD3q.js +7 -0
  114. package/dist/collection/common/floating-controller.js +17 -3
  115. package/dist/collection/common/hash.js +15 -0
  116. package/dist/collection/common/navigation.js +60 -0
  117. package/dist/collection/common/string.js +3 -1
  118. package/dist/collection/common/yugop/random-text.js +5 -0
  119. package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
  120. package/dist/collection/components/mds-accordion/documentation.json +1 -1
  121. package/dist/collection/components/mds-accordion/mds-accordion.css +5 -5
  122. package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
  123. package/dist/collection/components/mds-accordion-item/documentation.json +1 -1
  124. package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +11 -11
  125. package/dist/collection/components/mds-accordion-timer/AGENTS.md +1 -1
  126. package/dist/collection/components/mds-accordion-timer/documentation.json +1 -1
  127. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +2 -2
  128. package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +1 -1
  129. package/dist/collection/components/mds-accordion-timer-item/documentation.json +1 -1
  130. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +6 -6
  131. package/dist/collection/components/mds-author/AGENTS.md +1 -1
  132. package/dist/collection/components/mds-author/documentation.json +2 -2
  133. package/dist/collection/components/mds-author/mds-author.css +2 -1
  134. package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
  135. package/dist/collection/components/mds-avatar/documentation.json +2 -2
  136. package/dist/collection/components/mds-avatar/mds-avatar.css +18 -17
  137. package/dist/collection/components/mds-avatar-stack/AGENTS.md +1 -1
  138. package/dist/collection/components/mds-avatar-stack/documentation.json +1 -1
  139. package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +3 -3
  140. package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
  141. package/dist/collection/components/mds-avatar-stack-item/documentation.json +1 -1
  142. package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.css +6 -6
  143. package/dist/collection/components/mds-badge/AGENTS.md +1 -1
  144. package/dist/collection/components/mds-badge/documentation.json +1 -1
  145. package/dist/collection/components/mds-badge/mds-badge.css +13 -13
  146. package/dist/collection/components/mds-banner/AGENTS.md +1 -1
  147. package/dist/collection/components/mds-banner/documentation.json +1 -1
  148. package/dist/collection/components/mds-banner/mds-banner.css +56 -56
  149. package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
  150. package/dist/collection/components/mds-benchmark-bar/documentation.json +1 -1
  151. package/dist/collection/components/mds-bibliography/AGENTS.md +1 -1
  152. package/dist/collection/components/mds-bibliography/documentation.json +2 -2
  153. package/dist/collection/components/mds-bibliography/mds-bibliography.css +8 -6
  154. package/dist/collection/components/mds-breadcrumb/AGENTS.md +1 -1
  155. package/dist/collection/components/mds-breadcrumb/documentation.json +1 -1
  156. package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +6 -6
  157. package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +1 -1
  158. package/dist/collection/components/mds-breadcrumb-item/documentation.json +1 -1
  159. package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +14 -13
  160. package/dist/collection/components/mds-button/AGENTS.md +5 -5
  161. package/dist/collection/components/mds-button/antipattern.md +20 -2
  162. package/dist/collection/components/mds-button/documentation.json +5 -5
  163. package/dist/collection/components/mds-button/mds-button.css +239 -417
  164. package/dist/collection/components/mds-button/mds-button.js +120 -38
  165. package/dist/collection/components/mds-button/pattern.md +34 -1
  166. package/dist/collection/components/mds-button-dropdown/AGENTS.md +2 -2
  167. package/dist/collection/components/mds-button-dropdown/documentation.json +2 -2
  168. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +10 -10
  169. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +12 -1
  170. package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
  171. package/dist/collection/components/mds-button-group/documentation.json +1 -1
  172. package/dist/collection/components/mds-calendar/AGENTS.md +2 -2
  173. package/dist/collection/components/mds-calendar/documentation.json +2 -2
  174. package/dist/collection/components/mds-calendar/mds-calendar.css +5 -5
  175. package/dist/collection/components/mds-calendar/mds-calendar.js +17 -4
  176. package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
  177. package/dist/collection/components/mds-calendar-cell/documentation.json +1 -1
  178. package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +58 -58
  179. package/dist/collection/components/mds-card/AGENTS.md +1 -1
  180. package/dist/collection/components/mds-card/documentation.json +1 -1
  181. package/dist/collection/components/mds-card/mds-card.css +2 -2
  182. package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
  183. package/dist/collection/components/mds-card-content/documentation.json +1 -1
  184. package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
  185. package/dist/collection/components/mds-card-footer/documentation.json +1 -1
  186. package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
  187. package/dist/collection/components/mds-card-header/documentation.json +1 -1
  188. package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
  189. package/dist/collection/components/mds-card-media/documentation.json +1 -1
  190. package/dist/collection/components/mds-chip/AGENTS.md +1 -1
  191. package/dist/collection/components/mds-chip/documentation.json +1 -1
  192. package/dist/collection/components/mds-chip/mds-chip.css +90 -90
  193. package/dist/collection/components/mds-details/AGENTS.md +1 -1
  194. package/dist/collection/components/mds-details/documentation.json +1 -1
  195. package/dist/collection/components/mds-details/mds-details.css +6 -6
  196. package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
  197. package/dist/collection/components/mds-dropdown/documentation.json +2 -2
  198. package/dist/collection/components/mds-dropdown/mds-dropdown.css +26 -26
  199. package/dist/collection/components/mds-emoji/AGENTS.md +2 -2
  200. package/dist/collection/components/mds-emoji/documentation.json +3 -3
  201. package/dist/collection/components/mds-emoji/mds-emoji.css +5 -5
  202. package/dist/collection/components/mds-entity/AGENTS.md +1 -1
  203. package/dist/collection/components/mds-entity/documentation.json +1 -1
  204. package/dist/collection/components/mds-entity/mds-entity.css +8 -8
  205. package/dist/collection/components/mds-file/AGENTS.md +2 -2
  206. package/dist/collection/components/mds-file/documentation.json +3 -3
  207. package/dist/collection/components/mds-file/mds-file.css +13 -13
  208. package/dist/collection/components/mds-file/mds-file.js +15 -9
  209. package/dist/collection/components/mds-file/pattern.md +1 -1
  210. package/dist/collection/components/mds-file-preview/AGENTS.md +1 -1
  211. package/dist/collection/components/mds-file-preview/documentation.json +1 -1
  212. package/dist/collection/components/mds-file-preview/mds-file-preview.css +21 -21
  213. package/dist/collection/components/mds-filter/AGENTS.md +5 -3
  214. package/dist/collection/components/mds-filter/documentation.json +3 -3
  215. package/dist/collection/components/mds-filter/mds-filter.css +16 -16
  216. package/dist/collection/components/mds-filter/mds-filter.js +97 -19
  217. package/dist/collection/components/mds-filter/pattern.md +34 -4
  218. package/dist/collection/components/mds-filter-item/AGENTS.md +9 -8
  219. package/dist/collection/components/mds-filter-item/documentation.json +4 -4
  220. package/dist/collection/components/mds-filter-item/mds-filter-item.css +27 -17
  221. package/dist/collection/components/mds-filter-item/mds-filter-item.js +65 -3
  222. package/dist/collection/components/mds-filter-item/pattern.md +5 -5
  223. package/dist/collection/components/mds-header/AGENTS.md +1 -1
  224. package/dist/collection/components/mds-header/documentation.json +1 -1
  225. package/dist/collection/components/mds-header/mds-header.css +21 -13
  226. package/dist/collection/components/mds-header-bar/AGENTS.md +2 -2
  227. package/dist/collection/components/mds-header-bar/documentation.json +2 -2
  228. package/dist/collection/components/mds-header-bar/mds-header-bar.css +5 -5
  229. package/dist/collection/components/mds-header-bar/mds-header-bar.js +12 -1
  230. package/dist/collection/components/mds-help/AGENTS.md +1 -1
  231. package/dist/collection/components/mds-help/documentation.json +2 -2
  232. package/dist/collection/components/mds-help/mds-help.css +1 -1
  233. package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +2 -2
  234. package/dist/collection/components/mds-horizontal-scroll/documentation.json +2 -2
  235. package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +10 -10
  236. package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +12 -1
  237. package/dist/collection/components/mds-hr/AGENTS.md +1 -1
  238. package/dist/collection/components/mds-hr/documentation.json +1 -1
  239. package/dist/collection/components/mds-hr/mds-hr.css +1 -1
  240. package/dist/collection/components/mds-icon/AGENTS.md +1 -1
  241. package/dist/collection/components/mds-icon/documentation.json +2 -2
  242. package/dist/collection/components/mds-img/AGENTS.md +1 -1
  243. package/dist/collection/components/mds-img/documentation.json +1 -1
  244. package/dist/collection/components/mds-img/mds-img.css +6 -6
  245. package/dist/collection/components/mds-input/AGENTS.md +3 -1
  246. package/dist/collection/components/mds-input/documentation.json +52 -4
  247. package/dist/collection/components/mds-input/mds-input.css +133 -62
  248. package/dist/collection/components/mds-input/mds-input.js +38 -2
  249. package/dist/collection/components/mds-input/pattern.md +15 -0
  250. package/dist/collection/components/mds-input-date/AGENTS.md +5 -2
  251. package/dist/collection/components/mds-input-date/documentation.json +50 -2
  252. package/dist/collection/components/mds-input-date/mds-input-date.css +52 -26
  253. package/dist/collection/components/mds-input-date/mds-input-date.js +46 -2
  254. package/dist/collection/components/mds-input-date-range/AGENTS.md +4 -2
  255. package/dist/collection/components/mds-input-date-range/documentation.json +50 -2
  256. package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +51 -25
  257. package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +34 -1
  258. package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +1 -1
  259. package/dist/collection/components/mds-input-date-range-preselection/documentation.json +1 -1
  260. package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.css +18 -18
  261. package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
  262. package/dist/collection/components/mds-input-field/documentation.json +1 -1
  263. package/dist/collection/components/mds-input-field/mds-input-field.css +7 -7
  264. package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
  265. package/dist/collection/components/mds-input-otp/documentation.json +1 -1
  266. package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
  267. package/dist/collection/components/mds-input-range/documentation.json +1 -1
  268. package/dist/collection/components/mds-input-range/mds-input-range.css +13 -12
  269. package/dist/collection/components/mds-input-select/AGENTS.md +7 -4
  270. package/dist/collection/components/mds-input-select/documentation.json +58 -7
  271. package/dist/collection/components/mds-input-select/mds-input-select.css +103 -29
  272. package/dist/collection/components/mds-input-select/mds-input-select.js +61 -7
  273. package/dist/collection/components/mds-input-select/pattern.md +3 -3
  274. package/dist/collection/components/mds-input-switch/AGENTS.md +2 -2
  275. package/dist/collection/components/mds-input-switch/documentation.json +2 -2
  276. package/dist/collection/components/mds-input-switch/mds-input-switch.css +86 -65
  277. package/dist/collection/components/mds-input-switch/mds-input-switch.js +19 -6
  278. package/dist/collection/components/mds-input-tip/AGENTS.md +1 -1
  279. package/dist/collection/components/mds-input-tip/documentation.json +1 -1
  280. package/dist/collection/components/mds-input-tip/mds-input-tip.css +1 -1
  281. package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
  282. package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
  283. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +21 -20
  284. package/dist/collection/components/mds-input-upload/AGENTS.md +1 -1
  285. package/dist/collection/components/mds-input-upload/documentation.json +1 -1
  286. package/dist/collection/components/mds-input-upload/mds-input-upload.css +13 -12
  287. package/dist/collection/components/mds-keyboard/AGENTS.md +1 -1
  288. package/dist/collection/components/mds-keyboard/documentation.json +1 -1
  289. package/dist/collection/components/mds-keyboard/mds-keyboard.css +4 -3
  290. package/dist/collection/components/mds-keyboard-key/AGENTS.md +1 -1
  291. package/dist/collection/components/mds-keyboard-key/documentation.json +1 -1
  292. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +2 -1
  293. package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
  294. package/dist/collection/components/mds-kpi/documentation.json +1 -1
  295. package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
  296. package/dist/collection/components/mds-kpi-item/documentation.json +1 -1
  297. package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +13 -13
  298. package/dist/collection/components/mds-label/AGENTS.md +1 -1
  299. package/dist/collection/components/mds-label/documentation.json +1 -1
  300. package/dist/collection/components/mds-label/mds-label.css +12 -12
  301. package/dist/collection/components/mds-list/AGENTS.md +2 -2
  302. package/dist/collection/components/mds-list/documentation.json +2 -2
  303. package/dist/collection/components/mds-list-item/AGENTS.md +2 -1
  304. package/dist/collection/components/mds-list-item/documentation.json +3 -3
  305. package/dist/collection/components/mds-list-item/mds-list-item.css +0 -18
  306. package/dist/collection/components/mds-list-item/mds-list-item.js +1 -2
  307. package/dist/collection/components/mds-list-item/pattern.md +11 -0
  308. package/dist/collection/components/mds-mention/AGENTS.md +1 -1
  309. package/dist/collection/components/mds-mention/documentation.json +1 -1
  310. package/dist/collection/components/mds-mention/mds-mention.css +2 -2
  311. package/dist/collection/components/mds-modal/AGENTS.md +2 -2
  312. package/dist/collection/components/mds-modal/documentation.json +2 -2
  313. package/dist/collection/components/mds-modal/mds-modal.css +5 -5
  314. package/dist/collection/components/mds-modal/mds-modal.js +14 -3
  315. package/dist/collection/components/mds-note/AGENTS.md +1 -1
  316. package/dist/collection/components/mds-note/documentation.json +1 -1
  317. package/dist/collection/components/mds-note/mds-note.css +3 -3
  318. package/dist/collection/components/mds-notification/AGENTS.md +1 -1
  319. package/dist/collection/components/mds-notification/documentation.json +2 -2
  320. package/dist/collection/components/mds-notification/mds-notification.css +4 -4
  321. package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
  322. package/dist/collection/components/mds-paginator/documentation.json +1 -1
  323. package/dist/collection/components/mds-paginator/mds-paginator.css +6 -6
  324. package/dist/collection/components/mds-paginator-item/AGENTS.md +1 -1
  325. package/dist/collection/components/mds-paginator-item/documentation.json +1 -1
  326. package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +31 -30
  327. package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
  328. package/dist/collection/components/mds-policy-ai/documentation.json +1 -1
  329. package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +8 -8
  330. package/dist/collection/components/mds-pref/AGENTS.md +2 -2
  331. package/dist/collection/components/mds-pref/documentation.json +14 -3
  332. package/dist/collection/components/mds-pref/mds-pref.js +39 -53
  333. package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
  334. package/dist/collection/components/mds-pref-animation/documentation.json +1 -1
  335. package/dist/collection/components/mds-pref-animation/mds-pref-animation.css +7 -7
  336. package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
  337. package/dist/collection/components/mds-pref-consumption/documentation.json +1 -1
  338. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.css +4 -4
  339. package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
  340. package/dist/collection/components/mds-pref-contrast/documentation.json +1 -1
  341. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.css +5 -5
  342. package/dist/collection/components/mds-pref-language/AGENTS.md +3 -3
  343. package/dist/collection/components/mds-pref-language/documentation.json +2 -2
  344. package/dist/collection/components/mds-pref-language/mds-pref-language.css +10 -2
  345. package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
  346. package/dist/collection/components/mds-pref-language-item/documentation.json +1 -1
  347. package/dist/collection/components/mds-pref-mode/AGENTS.md +3 -3
  348. package/dist/collection/components/mds-pref-mode/documentation.json +2 -2
  349. package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +5 -5
  350. package/dist/collection/components/mds-pref-theme/AGENTS.md +4 -3
  351. package/dist/collection/components/mds-pref-theme/documentation.json +2 -2
  352. package/dist/collection/components/mds-pref-theme/mds-pref-theme.css +10 -2
  353. package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +29 -2
  354. package/dist/collection/components/mds-pref-theme-item/AGENTS.md +1 -1
  355. package/dist/collection/components/mds-pref-theme-item/documentation.json +1 -1
  356. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +10 -9
  357. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +3 -2
  358. package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
  359. package/dist/collection/components/mds-price-table/documentation.json +1 -1
  360. package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
  361. package/dist/collection/components/mds-price-table-features/AGENTS.md +1 -1
  362. package/dist/collection/components/mds-price-table-features/documentation.json +1 -1
  363. package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +2 -2
  364. package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +1 -1
  365. package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +1 -1
  366. package/dist/collection/components/mds-price-table-features-cell/documentation.json +1 -1
  367. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +11 -11
  368. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +1 -1
  369. package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
  370. package/dist/collection/components/mds-price-table-features-row/documentation.json +1 -1
  371. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +12 -12
  372. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +1 -1
  373. package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
  374. package/dist/collection/components/mds-price-table-header/documentation.json +1 -1
  375. package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
  376. package/dist/collection/components/mds-price-table-list/AGENTS.md +1 -1
  377. package/dist/collection/components/mds-price-table-list/documentation.json +1 -1
  378. package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +8 -8
  379. package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +1 -1
  380. package/dist/collection/components/mds-price-table-list-item/AGENTS.md +1 -1
  381. package/dist/collection/components/mds-price-table-list-item/documentation.json +1 -1
  382. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +2 -2
  383. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
  384. package/dist/collection/components/mds-progress/AGENTS.md +1 -1
  385. package/dist/collection/components/mds-progress/documentation.json +1 -1
  386. package/dist/collection/components/mds-progress/mds-progress.css +20 -20
  387. package/dist/collection/components/mds-progress/mds-progress.js +1 -1
  388. package/dist/collection/components/mds-push-notification/AGENTS.md +1 -1
  389. package/dist/collection/components/mds-push-notification/documentation.json +1 -1
  390. package/dist/collection/components/mds-push-notification/mds-push-notification.js +1 -1
  391. package/dist/collection/components/mds-push-notification-item/AGENTS.md +1 -1
  392. package/dist/collection/components/mds-push-notification-item/documentation.json +1 -1
  393. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +16 -16
  394. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +2 -2
  395. package/dist/collection/components/mds-quote/AGENTS.md +1 -1
  396. package/dist/collection/components/mds-quote/documentation.json +1 -1
  397. package/dist/collection/components/mds-quote/mds-quote.css +6 -4
  398. package/dist/collection/components/mds-quote/mds-quote.js +1 -1
  399. package/dist/collection/components/mds-radial-menu/AGENTS.md +2 -2
  400. package/dist/collection/components/mds-radial-menu/documentation.json +2 -2
  401. package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +5 -3
  402. package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +12 -1
  403. package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
  404. package/dist/collection/components/mds-radial-menu-item/documentation.json +1 -1
  405. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
  406. package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
  407. package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
  408. package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +15 -15
  409. package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +1 -1
  410. package/dist/collection/components/mds-separator/AGENTS.md +1 -1
  411. package/dist/collection/components/mds-separator/documentation.json +1 -1
  412. package/dist/collection/components/mds-separator/mds-separator.css +2 -2
  413. package/dist/collection/components/mds-separator/mds-separator.js +1 -1
  414. package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
  415. package/dist/collection/components/mds-spinner/documentation.json +1 -1
  416. package/dist/collection/components/mds-spinner/mds-spinner.css +3 -3
  417. package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
  418. package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
  419. package/dist/collection/components/mds-status-bar/documentation.json +1 -1
  420. package/dist/collection/components/mds-status-bar/mds-status-bar.css +7 -6
  421. package/dist/collection/components/mds-status-bar/mds-status-bar.js +1 -1
  422. package/dist/collection/components/mds-stepper-bar/AGENTS.md +1 -1
  423. package/dist/collection/components/mds-stepper-bar/documentation.json +1 -1
  424. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +6 -6
  425. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +1 -1
  426. package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +1 -1
  427. package/dist/collection/components/mds-stepper-bar-item/documentation.json +1 -1
  428. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +15 -15
  429. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
  430. package/dist/collection/components/mds-tab/AGENTS.md +6 -5
  431. package/dist/collection/components/mds-tab/antipattern.md +27 -0
  432. package/dist/collection/components/mds-tab/documentation.json +6 -6
  433. package/dist/collection/components/mds-tab/mds-tab.css +61 -24
  434. package/dist/collection/components/mds-tab/mds-tab.js +34 -6
  435. package/dist/collection/components/mds-tab/pattern.md +33 -1
  436. package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
  437. package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
  438. package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +1 -1
  439. package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +1 -1
  440. package/dist/collection/components/mds-tab-bar-item/AGENTS.md +1 -1
  441. package/dist/collection/components/mds-tab-bar-item/documentation.json +1 -1
  442. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +14 -14
  443. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +1 -1
  444. package/dist/collection/components/mds-tab-item/AGENTS.md +5 -4
  445. package/dist/collection/components/mds-tab-item/antipattern.md +22 -1
  446. package/dist/collection/components/mds-tab-item/documentation.json +5 -5
  447. package/dist/collection/components/mds-tab-item/mds-tab-item.css +2 -2
  448. package/dist/collection/components/mds-tab-item/mds-tab-item.js +15 -3
  449. package/dist/collection/components/mds-tab-item/pattern.md +25 -7
  450. package/dist/collection/components/mds-table/AGENTS.md +4 -2
  451. package/dist/collection/components/mds-table/documentation.json +48 -4
  452. package/dist/collection/components/mds-table/mds-table.css +33 -22
  453. package/dist/collection/components/mds-table/mds-table.js +35 -1
  454. package/dist/collection/components/mds-table/pattern.md +30 -0
  455. package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
  456. package/dist/collection/components/mds-table-body/documentation.json +1 -1
  457. package/dist/collection/components/mds-table-body/mds-table-body.css +8 -8
  458. package/dist/collection/components/mds-table-body/mds-table-body.js +1 -1
  459. package/dist/collection/components/mds-table-cell/AGENTS.md +1 -1
  460. package/dist/collection/components/mds-table-cell/documentation.json +1 -1
  461. package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
  462. package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
  463. package/dist/collection/components/mds-table-footer/documentation.json +1 -1
  464. package/dist/collection/components/mds-table-footer/mds-table-footer.js +1 -1
  465. package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
  466. package/dist/collection/components/mds-table-header/documentation.json +1 -1
  467. package/dist/collection/components/mds-table-header/mds-table-header.js +1 -1
  468. package/dist/collection/components/mds-table-header-cell/AGENTS.md +14 -5
  469. package/dist/collection/components/mds-table-header-cell/antipattern.md +17 -10
  470. package/dist/collection/components/mds-table-header-cell/documentation.json +54 -6
  471. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +159 -82
  472. package/dist/collection/components/mds-table-header-cell/meta/event-detail.js +1 -0
  473. package/dist/collection/components/mds-table-header-cell/pattern.md +27 -6
  474. package/dist/collection/components/mds-table-row/AGENTS.md +1 -1
  475. package/dist/collection/components/mds-table-row/documentation.json +1 -1
  476. package/dist/collection/components/mds-table-row/mds-table-row.css +12 -12
  477. package/dist/collection/components/mds-table-row/mds-table-row.js +22 -16
  478. package/dist/collection/components/mds-text/AGENTS.md +3 -3
  479. package/dist/collection/components/mds-text/documentation.json +2 -2
  480. package/dist/collection/components/mds-text/mds-text.css +3 -3
  481. package/dist/collection/components/mds-text/mds-text.js +31 -26
  482. package/dist/collection/components/mds-toast/AGENTS.md +1 -1
  483. package/dist/collection/components/mds-toast/documentation.json +1 -1
  484. package/dist/collection/components/mds-toast/mds-toast.css +18 -18
  485. package/dist/collection/components/mds-toast/mds-toast.js +1 -1
  486. package/dist/collection/components/mds-tooltip/AGENTS.md +4 -2
  487. package/dist/collection/components/mds-tooltip/antipattern.md +14 -0
  488. package/dist/collection/components/mds-tooltip/documentation.json +46 -5
  489. package/dist/collection/components/mds-tooltip/mds-tooltip.css +10 -10
  490. package/dist/collection/components/mds-tooltip/mds-tooltip.js +41 -1
  491. package/dist/collection/components/mds-tooltip/pattern.md +9 -0
  492. package/dist/collection/components/mds-tree/AGENTS.md +1 -1
  493. package/dist/collection/components/mds-tree/documentation.json +1 -1
  494. package/dist/collection/components/mds-tree/mds-tree.css +13 -13
  495. package/dist/collection/components/mds-tree/mds-tree.js +1 -1
  496. package/dist/collection/components/mds-tree-item/AGENTS.md +1 -1
  497. package/dist/collection/components/mds-tree-item/documentation.json +1 -1
  498. package/dist/collection/components/mds-tree-item/mds-tree-item.js +1 -1
  499. package/dist/collection/components/mds-url-view/AGENTS.md +1 -1
  500. package/dist/collection/components/mds-url-view/documentation.json +1 -1
  501. package/dist/collection/components/mds-url-view/mds-url-view.css +7 -7
  502. package/dist/collection/components/mds-url-view/mds-url-view.js +1 -1
  503. package/dist/collection/components/mds-usage/AGENTS.md +5 -3
  504. package/dist/collection/components/mds-usage/antipattern.md +17 -1
  505. package/dist/collection/components/mds-usage/documentation.json +31 -5
  506. package/dist/collection/components/mds-usage/mds-usage.css +6 -6
  507. package/dist/collection/components/mds-usage/mds-usage.js +26 -4
  508. package/dist/collection/components/mds-usage/meta/variants.js +14 -18
  509. package/dist/collection/components/mds-usage/pattern.md +10 -0
  510. package/dist/collection/components/mds-video-wall/AGENTS.md +1 -1
  511. package/dist/collection/components/mds-video-wall/documentation.json +1 -1
  512. package/dist/collection/components/mds-video-wall/mds-video-wall.css +3 -3
  513. package/dist/collection/components/mds-video-wall/mds-video-wall.js +1 -1
  514. package/dist/collection/components/mds-zero/AGENTS.md +1 -1
  515. package/dist/collection/components/mds-zero/documentation.json +1 -1
  516. package/dist/collection/components/mds-zero/mds-zero.css +3 -3
  517. package/dist/collection/components/mds-zero/mds-zero.js +1 -1
  518. package/dist/collection/index.js +11 -4
  519. package/dist/collection/type/floating-ui.js +1 -0
  520. package/dist/collection/type/input.js +2 -0
  521. package/dist/components/index.js +1 -1
  522. package/dist/components/mds-accordion-item.js +1 -1
  523. package/dist/components/mds-accordion-timer-item.js +1 -1
  524. package/dist/components/mds-accordion-timer.js +1 -1
  525. package/dist/components/mds-accordion.js +1 -1
  526. package/dist/components/mds-avatar-stack-item.js +1 -1
  527. package/dist/components/mds-avatar-stack.js +1 -1
  528. package/dist/components/mds-avatar.js +1 -1
  529. package/dist/components/mds-badge.js +1 -1
  530. package/dist/components/mds-banner.js +1 -1
  531. package/dist/components/mds-benchmark-bar.js +1 -1
  532. package/dist/components/mds-bibliography.js +1 -1
  533. package/dist/components/mds-breadcrumb-item.js +1 -1
  534. package/dist/components/mds-breadcrumb.js +1 -1
  535. package/dist/components/mds-button-dropdown.js +1 -1
  536. package/dist/components/mds-button.js +1 -1
  537. package/dist/components/mds-calendar-cell.js +1 -1
  538. package/dist/components/mds-calendar.js +1 -1
  539. package/dist/components/mds-card-media.js +1 -1
  540. package/dist/components/mds-card.js +1 -1
  541. package/dist/components/mds-chip.js +1 -1
  542. package/dist/components/mds-details.js +1 -1
  543. package/dist/components/mds-dropdown.js +1 -1
  544. package/dist/components/mds-emoji.js +2 -2
  545. package/dist/components/mds-entity.js +1 -1
  546. package/dist/components/mds-file-preview.js +1 -1
  547. package/dist/components/mds-file.js +1 -18
  548. package/dist/components/mds-filter-item.js +1 -1
  549. package/dist/components/mds-filter.js +1 -1
  550. package/dist/components/mds-header-bar.js +1 -1
  551. package/dist/components/mds-header.js +1 -1
  552. package/dist/components/mds-help.js +1 -1
  553. package/dist/components/mds-horizontal-scroll.js +1 -1
  554. package/dist/components/mds-hr.js +1 -1
  555. package/dist/components/mds-img.js +1 -1
  556. package/dist/components/mds-input-date-range-preselection.js +1 -1
  557. package/dist/components/mds-input-date-range.js +1 -1
  558. package/dist/components/mds-input-date.js +1 -1
  559. package/dist/components/mds-input-field.js +1 -1
  560. package/dist/components/mds-input-otp.js +1 -1
  561. package/dist/components/mds-input-range.js +1 -1
  562. package/dist/components/mds-input-select.js +1 -1
  563. package/dist/components/mds-input-switch.js +1 -1
  564. package/dist/components/mds-input-tip-item.js +1 -1
  565. package/dist/components/mds-input-tip.js +1 -1
  566. package/dist/components/mds-input-upload.js +1 -1
  567. package/dist/components/mds-input.js +1 -1
  568. package/dist/components/mds-keyboard-key.js +1 -1
  569. package/dist/components/mds-keyboard.js +1 -1
  570. package/dist/components/mds-kpi-item.js +1 -1
  571. package/dist/components/mds-label.js +1 -1
  572. package/dist/components/mds-list-item.js +1 -1
  573. package/dist/components/mds-mention.js +1 -1
  574. package/dist/components/mds-modal.js +1 -1
  575. package/dist/components/mds-note.js +1 -1
  576. package/dist/components/mds-notification.js +1 -1
  577. package/dist/components/mds-paginator-item.js +1 -1
  578. package/dist/components/mds-paginator.js +1 -1
  579. package/dist/components/mds-policy-ai.js +1 -1
  580. package/dist/components/mds-pref-animation.js +1 -1
  581. package/dist/components/mds-pref-consumption.js +1 -1
  582. package/dist/components/mds-pref-contrast.js +1 -1
  583. package/dist/components/mds-pref-language-item.js +1 -1
  584. package/dist/components/mds-pref-language.js +1 -1
  585. package/dist/components/mds-pref-mode.js +1 -1
  586. package/dist/components/mds-pref-theme-item.js +1 -1
  587. package/dist/components/mds-pref-theme.js +1 -1
  588. package/dist/components/mds-pref.js +1 -1
  589. package/dist/components/mds-price-table-features-cell.js +1 -1
  590. package/dist/components/mds-price-table-features-row.js +1 -1
  591. package/dist/components/mds-price-table-features.js +1 -1
  592. package/dist/components/mds-price-table-header.js +1 -1
  593. package/dist/components/mds-price-table-list-item.js +1 -1
  594. package/dist/components/mds-price-table-list.js +1 -1
  595. package/dist/components/mds-price-table.js +1 -1
  596. package/dist/components/mds-progress.js +1 -1
  597. package/dist/components/mds-push-notification-item.js +1 -1
  598. package/dist/components/mds-push-notification.js +1 -1
  599. package/dist/components/mds-quote.js +1 -1
  600. package/dist/components/mds-radial-menu-item.js +1 -1
  601. package/dist/components/mds-radial-menu.js +1 -1
  602. package/dist/components/mds-radial-progress.js +1 -1
  603. package/dist/components/mds-separator.js +1 -1
  604. package/dist/components/mds-spinner.js +1 -1
  605. package/dist/components/mds-status-bar.js +1 -1
  606. package/dist/components/mds-stepper-bar-item.js +1 -1
  607. package/dist/components/mds-stepper-bar.js +1 -1
  608. package/dist/components/mds-tab-bar-item.js +1 -1
  609. package/dist/components/mds-tab-bar.js +1 -1
  610. package/dist/components/mds-tab-item.js +1 -1
  611. package/dist/components/mds-tab.js +1 -1
  612. package/dist/components/mds-table-body.js +1 -1
  613. package/dist/components/mds-table-cell.js +1 -1
  614. package/dist/components/mds-table-footer.js +1 -1
  615. package/dist/components/mds-table-header-cell.js +1 -1
  616. package/dist/components/mds-table-header.js +1 -1
  617. package/dist/components/mds-table-row.js +1 -1
  618. package/dist/components/mds-table.js +1 -1
  619. package/dist/components/mds-text.js +1 -1
  620. package/dist/components/mds-toast.js +1 -1
  621. package/dist/components/mds-tooltip.js +1 -1
  622. package/dist/components/mds-tree-item.js +1 -1
  623. package/dist/components/mds-tree.js +1 -1
  624. package/dist/components/mds-url-view.js +1 -1
  625. package/dist/components/mds-usage.js +1 -1
  626. package/dist/components/mds-video-wall.js +1 -1
  627. package/dist/components/mds-zero.js +1 -1
  628. package/dist/components/p--5KZXaZp.js +1 -0
  629. package/dist/components/p--OCrgFeE.js +1 -0
  630. package/dist/components/p-6LGfUDQ4.js +1 -0
  631. package/dist/components/p-6pgPWpGI.js +1 -0
  632. package/dist/components/p-B8BWxSho.js +1 -0
  633. package/dist/components/p-B9uIL9KO.js +1 -0
  634. package/dist/components/p-BBDliSai.js +1 -0
  635. package/dist/components/p-BCwcnHFh.js +1 -0
  636. package/dist/components/p-BRf-u585.js +1 -0
  637. package/dist/components/p-BSeokAdy.js +1 -0
  638. package/dist/components/p-BXUJgu8l.js +1 -0
  639. package/dist/components/p-BXYUyw7p.js +1 -0
  640. package/dist/components/{p-s2Gu6hY7.js → p-BcUY-9n7.js} +1 -1
  641. package/dist/components/p-BfgJ-hHQ.js +1 -0
  642. package/dist/components/{p-x_c_51aL.js → p-CIfGjW_Z.js} +1 -1
  643. package/dist/components/p-CMp9rP7L.js +1 -0
  644. package/dist/components/p-CUmJoPAI.js +1 -0
  645. package/dist/components/p-CZjHixVB.js +1 -0
  646. package/dist/components/p-Ck0q_n7I.js +1 -0
  647. package/dist/components/p-CrCa_6a1.js +8 -0
  648. package/dist/components/p-Cv7lqHIc.js +1 -0
  649. package/dist/components/p-Cw6_ooFx.js +1 -0
  650. package/dist/components/p-DGYRngAi.js +1 -0
  651. package/dist/components/p-DHu8X7zF.js +1 -0
  652. package/dist/components/{p-BW24ByN-.js → p-DLCcW1Q5.js} +1 -1
  653. package/dist/components/p-DOzcuSrZ.js +1 -0
  654. package/dist/components/p-DZPHWQtD.js +1 -0
  655. package/dist/components/p-DlRjt7nE.js +1 -0
  656. package/dist/components/p-HSM_x8fD.js +1 -0
  657. package/dist/components/p-JMPfVnGv.js +1 -0
  658. package/dist/components/p-ay5NzZ_x.js +1 -0
  659. package/dist/components/p-lNY_3s6S.js +1 -0
  660. package/dist/components/p-qYRtWYC8.js +1 -0
  661. package/dist/documentation.json +469 -84
  662. package/dist/esm/_commonjsHelpers-B85MJLTf.js +5 -0
  663. package/dist/esm/{floating-controller-BTYkH_Ih.js → floating-controller-D5-8D9mH.js} +18 -4
  664. package/dist/esm/{floating-ui.dom-CHAGzQT-.js → floating-ui.dom-JMPfVnGv.js} +146 -94
  665. package/dist/esm/icon-pNJmnrhq.js +16 -0
  666. package/dist/esm/index-BxPbQB28.js +40 -40
  667. package/dist/esm/index.js +62 -1
  668. package/dist/esm/loader.js +1 -1
  669. package/dist/esm/magma-components.js +1 -1
  670. package/dist/esm/mds-accordion-item.entry.js +1 -1
  671. package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
  672. package/dist/esm/mds-accordion-timer.entry.js +1 -1
  673. package/dist/esm/mds-accordion.entry.js +1 -1
  674. package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
  675. package/dist/esm/mds-avatar-stack.entry.js +1 -1
  676. package/dist/esm/mds-avatar.entry.js +2 -2
  677. package/dist/esm/mds-badge.entry.js +1 -1
  678. package/dist/esm/mds-banner_3.entry.js +3 -3
  679. package/dist/esm/mds-bibliography.entry.js +1 -1
  680. package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
  681. package/dist/esm/mds-breadcrumb.entry.js +1 -1
  682. package/dist/esm/mds-button-dropdown.entry.js +30 -2
  683. package/dist/esm/mds-button_3.entry.js +123 -56
  684. package/dist/esm/mds-calendar_2.entry.js +59 -6
  685. package/dist/esm/mds-card-media.entry.js +1 -1
  686. package/dist/esm/mds-card.entry.js +1 -1
  687. package/dist/esm/mds-details.entry.js +1 -1
  688. package/dist/esm/mds-dropdown.entry.js +3 -3
  689. package/dist/esm/mds-emoji.entry.js +1 -1
  690. package/dist/esm/mds-entity.entry.js +1 -1
  691. package/dist/esm/mds-file-preview.entry.js +1 -1
  692. package/dist/esm/mds-file.entry.js +30 -7521
  693. package/dist/esm/mds-filter-item.entry.js +89 -3
  694. package/dist/esm/mds-filter.entry.js +114 -20
  695. package/dist/esm/mds-header-bar.entry.js +29 -2
  696. package/dist/esm/mds-header.entry.js +1 -1
  697. package/dist/esm/mds-horizontal-scroll.entry.js +38 -2
  698. package/dist/esm/mds-hr.entry.js +1 -1
  699. package/dist/esm/mds-img.entry.js +1 -1
  700. package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
  701. package/dist/esm/mds-input-date-range.entry.js +16 -2
  702. package/dist/esm/mds-input-date.entry.js +36 -4
  703. package/dist/esm/mds-input-field.entry.js +1 -1
  704. package/dist/esm/mds-input-range.entry.js +1 -1
  705. package/dist/esm/mds-input-select.entry.js +32 -5
  706. package/dist/esm/mds-input-switch_2.entry.js +21 -8
  707. package/dist/esm/mds-input-tip_2.entry.js +2 -2
  708. package/dist/esm/mds-input-upload.entry.js +1 -1
  709. package/dist/esm/mds-input.entry.js +12 -3
  710. package/dist/esm/mds-keyboard-key.entry.js +1 -1
  711. package/dist/esm/mds-keyboard.entry.js +1 -1
  712. package/dist/esm/mds-kpi-item.entry.js +1 -1
  713. package/dist/esm/mds-label.entry.js +1 -1
  714. package/dist/esm/mds-list-item.entry.js +2 -3
  715. package/dist/esm/mds-mention.entry.js +1 -1
  716. package/dist/esm/mds-modal.entry.js +31 -4
  717. package/dist/esm/mds-note.entry.js +1 -1
  718. package/dist/esm/mds-notification.entry.js +2 -2
  719. package/dist/esm/mds-paginator-item.entry.js +1 -1
  720. package/dist/esm/mds-paginator.entry.js +1 -1
  721. package/dist/esm/mds-policy-ai.entry.js +1 -1
  722. package/dist/esm/mds-pref-animation.entry.js +1 -1
  723. package/dist/esm/mds-pref-consumption.entry.js +1 -1
  724. package/dist/esm/mds-pref-contrast.entry.js +1 -1
  725. package/dist/esm/mds-pref-language.entry.js +1 -1
  726. package/dist/esm/mds-pref-mode.entry.js +1 -1
  727. package/dist/esm/mds-pref-theme-item.entry.js +4 -3
  728. package/dist/esm/mds-pref-theme.entry.js +30 -3
  729. package/dist/esm/mds-pref.entry.js +24 -53
  730. package/dist/esm/mds-price-table-features-cell.entry.js +2 -2
  731. package/dist/esm/mds-price-table-features-row.entry.js +2 -2
  732. package/dist/esm/mds-price-table-features.entry.js +2 -2
  733. package/dist/esm/mds-price-table-header.entry.js +1 -1
  734. package/dist/esm/mds-price-table-list-item.entry.js +2 -2
  735. package/dist/esm/mds-price-table-list.entry.js +2 -2
  736. package/dist/esm/mds-price-table.entry.js +1 -1
  737. package/dist/esm/mds-progress_2.entry.js +4 -4
  738. package/dist/esm/mds-push-notification-item.entry.js +4 -4
  739. package/dist/esm/mds-push-notification.entry.js +2 -2
  740. package/dist/esm/mds-quote.entry.js +2 -2
  741. package/dist/esm/mds-radial-menu-item.entry.js +2 -2
  742. package/dist/esm/mds-radial-menu.entry.js +40 -4
  743. package/dist/esm/mds-separator.entry.js +2 -2
  744. package/dist/esm/mds-status-bar.entry.js +2 -2
  745. package/dist/esm/mds-stepper-bar-item.entry.js +2 -2
  746. package/dist/esm/mds-stepper-bar.entry.js +2 -2
  747. package/dist/esm/mds-tab-bar-item.entry.js +2 -2
  748. package/dist/esm/mds-tab-bar.entry.js +2 -2
  749. package/dist/esm/mds-tab_2.entry.js +43 -8
  750. package/dist/esm/mds-table-body.entry.js +2 -2
  751. package/dist/esm/mds-table-footer.entry.js +2 -2
  752. package/dist/esm/mds-table-header-cell.entry.js +117 -78
  753. package/dist/esm/mds-table-header.entry.js +2 -2
  754. package/dist/esm/mds-table-row.entry.js +23 -17
  755. package/dist/esm/mds-table.entry.js +9 -2
  756. package/dist/esm/mds-text.entry.js +37 -27
  757. package/dist/esm/mds-toast.entry.js +2 -2
  758. package/dist/esm/mds-tooltip.entry.js +17 -4
  759. package/dist/esm/mds-tree-item.entry.js +2 -2
  760. package/dist/esm/mds-tree.entry.js +2 -2
  761. package/dist/esm/mds-url-view.entry.js +2 -2
  762. package/dist/esm/mds-usage.entry.js +23 -4
  763. package/dist/esm/mds-video-wall.entry.js +2 -2
  764. package/dist/esm/mds-zero.entry.js +2 -2
  765. package/dist/esm/string-6pgPWpGI.js +5 -0
  766. package/dist/esm-es5/_commonjsHelpers-B85MJLTf.js +1 -0
  767. package/dist/esm-es5/{floating-controller-BTYkH_Ih.js → floating-controller-D5-8D9mH.js} +11 -5
  768. package/dist/esm-es5/{floating-ui.dom-CHAGzQT-.js → floating-ui.dom-JMPfVnGv.js} +80 -48
  769. package/dist/esm-es5/icon-pNJmnrhq.js +1 -0
  770. package/dist/esm-es5/index-BxPbQB28.js +36 -36
  771. package/dist/esm-es5/index.js +37 -20
  772. package/dist/esm-es5/loader.js +1 -1
  773. package/dist/esm-es5/magma-components.js +1 -1
  774. package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
  775. package/dist/esm-es5/mds-accordion-timer-item.entry.js +2 -2
  776. package/dist/esm-es5/mds-accordion-timer.entry.js +2 -2
  777. package/dist/esm-es5/mds-accordion.entry.js +2 -2
  778. package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
  779. package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
  780. package/dist/esm-es5/mds-avatar.entry.js +2 -2
  781. package/dist/esm-es5/mds-badge.entry.js +1 -1
  782. package/dist/esm-es5/mds-banner_3.entry.js +3 -3
  783. package/dist/esm-es5/mds-bibliography.entry.js +2 -2
  784. package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
  785. package/dist/esm-es5/mds-breadcrumb.entry.js +2 -2
  786. package/dist/esm-es5/mds-button-dropdown.entry.js +3 -3
  787. package/dist/esm-es5/mds-button_3.entry.js +50 -7
  788. package/dist/esm-es5/mds-calendar_2.entry.js +8 -6
  789. package/dist/esm-es5/mds-card-media.entry.js +1 -1
  790. package/dist/esm-es5/mds-card.entry.js +5 -5
  791. package/dist/esm-es5/mds-details.entry.js +2 -2
  792. package/dist/esm-es5/mds-dropdown.entry.js +16 -16
  793. package/dist/esm-es5/mds-emoji.entry.js +18 -18
  794. package/dist/esm-es5/mds-entity.entry.js +1 -1
  795. package/dist/esm-es5/mds-file-preview.entry.js +7 -7
  796. package/dist/esm-es5/mds-file.entry.js +15 -2835
  797. package/dist/esm-es5/mds-filter-item.entry.js +16 -1
  798. package/dist/esm-es5/mds-filter.entry.js +18 -2
  799. package/dist/esm-es5/mds-header-bar.entry.js +3 -3
  800. package/dist/esm-es5/mds-header.entry.js +7 -7
  801. package/dist/esm-es5/mds-horizontal-scroll.entry.js +13 -13
  802. package/dist/esm-es5/mds-hr.entry.js +1 -1
  803. package/dist/esm-es5/mds-img.entry.js +1 -1
  804. package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
  805. package/dist/esm-es5/mds-input-date-range.entry.js +7 -2
  806. package/dist/esm-es5/mds-input-date.entry.js +8 -3
  807. package/dist/esm-es5/mds-input-field.entry.js +1 -1
  808. package/dist/esm-es5/mds-input-range.entry.js +7 -7
  809. package/dist/esm-es5/mds-input-select.entry.js +14 -5
  810. package/dist/esm-es5/mds-input-switch_2.entry.js +17 -9
  811. package/dist/esm-es5/mds-input-tip_2.entry.js +2 -2
  812. package/dist/esm-es5/mds-input-upload.entry.js +1 -1
  813. package/dist/esm-es5/mds-input.entry.js +30 -25
  814. package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
  815. package/dist/esm-es5/mds-keyboard.entry.js +1 -1
  816. package/dist/esm-es5/mds-kpi-item.entry.js +2 -2
  817. package/dist/esm-es5/mds-label.entry.js +2 -2
  818. package/dist/esm-es5/mds-list-item.entry.js +2 -2
  819. package/dist/esm-es5/mds-mention.entry.js +1 -1
  820. package/dist/esm-es5/mds-modal.entry.js +5 -5
  821. package/dist/esm-es5/mds-note.entry.js +1 -1
  822. package/dist/esm-es5/mds-notification.entry.js +3 -3
  823. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  824. package/dist/esm-es5/mds-paginator.entry.js +3 -3
  825. package/dist/esm-es5/mds-policy-ai.entry.js +1 -1
  826. package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
  827. package/dist/esm-es5/mds-pref-consumption.entry.js +2 -2
  828. package/dist/esm-es5/mds-pref-contrast.entry.js +2 -2
  829. package/dist/esm-es5/mds-pref-language.entry.js +1 -1
  830. package/dist/esm-es5/mds-pref-mode.entry.js +1 -1
  831. package/dist/esm-es5/mds-pref-theme-item.entry.js +3 -3
  832. package/dist/esm-es5/mds-pref-theme.entry.js +15 -7
  833. package/dist/esm-es5/mds-pref.entry.js +14 -5
  834. package/dist/esm-es5/mds-price-table-features-cell.entry.js +2 -2
  835. package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
  836. package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
  837. package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
  838. package/dist/esm-es5/mds-price-table-list-item.entry.js +2 -2
  839. package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
  840. package/dist/esm-es5/mds-price-table.entry.js +1 -1
  841. package/dist/esm-es5/mds-progress_2.entry.js +3 -3
  842. package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
  843. package/dist/esm-es5/mds-push-notification.entry.js +2 -2
  844. package/dist/esm-es5/mds-quote.entry.js +2 -2
  845. package/dist/esm-es5/mds-radial-menu-item.entry.js +2 -2
  846. package/dist/esm-es5/mds-radial-menu.entry.js +2 -2
  847. package/dist/esm-es5/mds-separator.entry.js +1 -1
  848. package/dist/esm-es5/mds-status-bar.entry.js +2 -2
  849. package/dist/esm-es5/mds-stepper-bar-item.entry.js +3 -3
  850. package/dist/esm-es5/mds-stepper-bar.entry.js +4 -4
  851. package/dist/esm-es5/mds-tab-bar-item.entry.js +3 -3
  852. package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
  853. package/dist/esm-es5/mds-tab_2.entry.js +25 -4
  854. package/dist/esm-es5/mds-table-body.entry.js +1 -1
  855. package/dist/esm-es5/mds-table-footer.entry.js +1 -1
  856. package/dist/esm-es5/mds-table-header-cell.entry.js +22 -3
  857. package/dist/esm-es5/mds-table-header.entry.js +4 -4
  858. package/dist/esm-es5/mds-table-row.entry.js +12 -4
  859. package/dist/esm-es5/mds-table.entry.js +11 -5
  860. package/dist/esm-es5/mds-text.entry.js +25 -7
  861. package/dist/esm-es5/mds-toast.entry.js +2 -2
  862. package/dist/esm-es5/mds-tooltip.entry.js +8 -3
  863. package/dist/esm-es5/mds-tree-item.entry.js +2 -2
  864. package/dist/esm-es5/mds-tree.entry.js +3 -3
  865. package/dist/esm-es5/mds-url-view.entry.js +2 -2
  866. package/dist/esm-es5/mds-usage.entry.js +9 -3
  867. package/dist/esm-es5/mds-video-wall.entry.js +2 -2
  868. package/dist/esm-es5/mds-zero.entry.js +1 -1
  869. package/dist/esm-es5/string-6pgPWpGI.js +2 -0
  870. package/dist/hydrate/index.js +1580 -8246
  871. package/dist/hydrate/index.mjs +1580 -8246
  872. package/dist/magma-components/index.esm.js +1 -1
  873. package/dist/magma-components/magma-components.esm.js +1 -1
  874. package/dist/magma-components/p-00ce5c81.entry.js +1 -0
  875. package/dist/magma-components/{p-5c94e0c2.system.entry.js → p-00ff586a.system.entry.js} +2 -2
  876. package/dist/magma-components/p-01f05a56.entry.js +1 -0
  877. package/dist/magma-components/p-0345cbd0.system.entry.js +83 -0
  878. package/dist/magma-components/p-03a6a8bd.system.entry.js +46 -0
  879. package/dist/magma-components/p-05de42e1.system.entry.js +1 -0
  880. package/dist/magma-components/p-063bccb3.entry.js +1 -0
  881. package/dist/magma-components/p-0c89c485.entry.js +1 -0
  882. package/dist/magma-components/p-0d94a2b8.entry.js +8 -0
  883. package/dist/magma-components/{p-ee1e7f07.system.entry.js → p-0d97e28d.system.entry.js} +1 -1
  884. package/dist/magma-components/p-108e31e6.entry.js +1 -0
  885. package/dist/magma-components/p-114f0bb7.system.entry.js +14 -0
  886. package/dist/magma-components/{p-e8ed096b.entry.js → p-121730d1.entry.js} +1 -1
  887. package/dist/magma-components/p-137116df.entry.js +1 -0
  888. package/dist/magma-components/p-13b0babc.system.entry.js +1 -0
  889. package/dist/magma-components/p-14a108e8.system.entry.js +8 -0
  890. package/dist/magma-components/p-14eadf95.system.entry.js +21 -0
  891. package/dist/magma-components/p-154aff83.entry.js +1 -0
  892. package/dist/magma-components/p-155f79f4.system.entry.js +47 -0
  893. package/dist/magma-components/p-17b62839.entry.js +1 -0
  894. package/dist/magma-components/{p-0a551e86.entry.js → p-1802d6a7.entry.js} +1 -1
  895. package/dist/magma-components/{p-91c4015f.system.entry.js → p-188d9770.system.entry.js} +1 -1
  896. package/dist/magma-components/p-18ba4766.entry.js +1 -0
  897. package/dist/magma-components/p-1c63801f.system.entry.js +11 -0
  898. package/dist/magma-components/p-1c6a507c.system.entry.js +17 -0
  899. package/dist/magma-components/p-1e2388be.entry.js +1 -0
  900. package/dist/magma-components/{p-eaff7300.entry.js → p-22e9a507.entry.js} +1 -1
  901. package/dist/magma-components/p-24a9871a.system.entry.js +1 -0
  902. package/dist/magma-components/p-26332bce.system.entry.js +1 -0
  903. package/dist/magma-components/p-26c85354.system.entry.js +1 -0
  904. package/dist/magma-components/p-2708561b.system.entry.js +10 -0
  905. package/dist/magma-components/{p-a4a83a63.entry.js → p-2710ddc4.entry.js} +1 -1
  906. package/dist/magma-components/p-294241fa.entry.js +1 -0
  907. package/dist/magma-components/p-2b2d0910.system.entry.js +1 -0
  908. package/dist/magma-components/p-2c940d19.entry.js +1 -0
  909. package/dist/magma-components/{p-93d39066.entry.js → p-2de5f5fe.entry.js} +1 -1
  910. package/dist/magma-components/p-2e74231d.system.entry.js +4 -0
  911. package/dist/magma-components/p-2e83f801.system.entry.js +1 -0
  912. package/dist/magma-components/{p-dd58f9ee.entry.js → p-2f0815f3.entry.js} +1 -1
  913. package/dist/magma-components/p-30d36dfe.entry.js +1 -0
  914. package/dist/magma-components/p-323c7aa4.system.entry.js +25 -0
  915. package/dist/magma-components/{p-493fb2f4.system.entry.js → p-32e077c0.system.entry.js} +2 -2
  916. package/dist/magma-components/p-334b305d.system.entry.js +16 -0
  917. package/dist/magma-components/{p-6c18c40e.system.entry.js → p-341994b3.system.entry.js} +1 -1
  918. package/dist/magma-components/p-35434d4b.system.entry.js +32 -0
  919. package/dist/magma-components/p-37495e03.entry.js +1 -0
  920. package/dist/magma-components/{p-439c9ce3.system.entry.js → p-38e0379a.system.entry.js} +2 -2
  921. package/dist/magma-components/p-3b91efd1.entry.js +1 -0
  922. package/dist/magma-components/p-3dc4db04.system.entry.js +16 -0
  923. package/dist/magma-components/p-3f0e82bc.entry.js +1 -0
  924. package/dist/magma-components/p-3fa6cf85.system.entry.js +1 -0
  925. package/dist/magma-components/p-40e97485.entry.js +1 -0
  926. package/dist/magma-components/p-4159c306.entry.js +1 -0
  927. package/dist/magma-components/p-42411854.system.entry.js +102 -0
  928. package/dist/magma-components/{p-2f520704.entry.js → p-42ebba8c.entry.js} +1 -1
  929. package/dist/magma-components/p-4356d96e.system.entry.js +21 -0
  930. package/dist/magma-components/p-4577948d.system.entry.js +12 -0
  931. package/dist/magma-components/p-4658a200.entry.js +1 -0
  932. package/dist/magma-components/{p-b431ca8a.entry.js → p-4cfa925a.entry.js} +1 -1
  933. package/dist/magma-components/p-4dfeb655.system.entry.js +23 -0
  934. package/dist/magma-components/p-4ef19542.entry.js +1 -0
  935. package/dist/magma-components/{p-ac81f63a.system.entry.js → p-508e10b5.system.entry.js} +1 -1
  936. package/dist/magma-components/p-522fd3d0.system.entry.js +4 -0
  937. package/dist/magma-components/p-528d913c.system.entry.js +17 -0
  938. package/dist/magma-components/p-569cbe13.entry.js +1 -0
  939. package/dist/magma-components/p-574c2c13.system.entry.js +222 -0
  940. package/dist/magma-components/{p-218d8254.system.entry.js → p-584a4ee8.system.entry.js} +1 -1
  941. package/dist/magma-components/{p-577db922.entry.js → p-595fde64.entry.js} +1 -1
  942. package/dist/magma-components/p-5989cdf2.system.entry.js +16 -0
  943. package/dist/magma-components/p-5c17a324.entry.js +1 -0
  944. package/dist/magma-components/p-5df91427.system.entry.js +15 -0
  945. package/dist/magma-components/p-5fcc1455.entry.js +1 -0
  946. package/dist/magma-components/p-61638aa3.entry.js +1 -0
  947. package/dist/magma-components/p-634727e6.system.entry.js +22 -0
  948. package/dist/magma-components/{p-03c2060d.entry.js → p-6465c8f4.entry.js} +1 -1
  949. package/dist/magma-components/p-6764b13a.entry.js +1 -0
  950. package/dist/magma-components/p-6812f01b.entry.js +1 -0
  951. package/dist/magma-components/{p-4211ce6c.system.entry.js → p-6901428b.system.entry.js} +1 -1
  952. package/dist/magma-components/p-699a7926.entry.js +1 -0
  953. package/dist/magma-components/p-69d6cc9e.system.entry.js +7 -0
  954. package/dist/magma-components/p-6a798061.entry.js +1 -0
  955. package/dist/magma-components/p-6d350c7c.entry.js +1 -0
  956. package/dist/magma-components/p-6f5a1248.entry.js +1 -0
  957. package/dist/magma-components/p-6fba5e6c.entry.js +1 -0
  958. package/dist/magma-components/p-6fd9a2ae.entry.js +1 -0
  959. package/dist/magma-components/p-6pgPWpGI.js +1 -0
  960. package/dist/magma-components/p-70caf05b.system.entry.js +10 -0
  961. package/dist/magma-components/{p-832883c4.entry.js → p-70cc167f.entry.js} +1 -1
  962. package/dist/magma-components/{p-86f4b6eb.system.entry.js → p-736c0e25.system.entry.js} +2 -2
  963. package/dist/magma-components/p-73e593a2.system.entry.js +95 -0
  964. package/dist/magma-components/p-7450a7a7.system.entry.js +49 -0
  965. package/dist/magma-components/p-7535328a.entry.js +1 -0
  966. package/dist/magma-components/{p-4cb88b06.system.entry.js → p-76f02296.system.entry.js} +1 -1
  967. package/dist/magma-components/p-79bc2e81.entry.js +1 -0
  968. package/dist/magma-components/p-79dc2243.entry.js +1 -0
  969. package/dist/magma-components/p-7b1c6eb0.entry.js +1 -0
  970. package/dist/magma-components/p-7b8b51c8.entry.js +1 -0
  971. package/dist/magma-components/p-7bc0a6c4.entry.js +1 -0
  972. package/dist/magma-components/{p-8d53bd61.system.entry.js → p-7c8e79a7.system.entry.js} +1 -1
  973. package/dist/magma-components/p-7c90298a.entry.js +1 -0
  974. package/dist/magma-components/p-7e02237b.entry.js +1 -0
  975. package/dist/magma-components/{p-f733ae92.system.entry.js → p-7f247e64.system.entry.js} +2 -2
  976. package/dist/magma-components/p-808f6796.entry.js +1 -0
  977. package/dist/magma-components/{p-e213640b.entry.js → p-82480df5.entry.js} +1 -1
  978. package/dist/magma-components/p-842b1dfc.entry.js +1 -0
  979. package/dist/magma-components/p-88c7be3d.system.entry.js +68 -0
  980. package/dist/magma-components/p-89733d3a.system.entry.js +14 -0
  981. package/dist/magma-components/p-8c75425d.entry.js +1 -0
  982. package/dist/magma-components/{p-5ac9e2f4.entry.js → p-8c76410b.entry.js} +1 -1
  983. package/dist/magma-components/p-8cdad12f.entry.js +1 -0
  984. package/dist/magma-components/p-8d2a6896.entry.js +1 -0
  985. package/dist/magma-components/p-8d7835e2.system.entry.js +10 -0
  986. package/dist/magma-components/p-8f039ca0.system.entry.js +7 -0
  987. package/dist/magma-components/p-8f54cf62.system.entry.js +4 -0
  988. package/dist/magma-components/p-8f6bd147.entry.js +1 -0
  989. package/dist/magma-components/p-9017022c.system.entry.js +15 -0
  990. package/dist/magma-components/p-909f5b60.system.entry.js +55 -0
  991. package/dist/magma-components/p-94e9f2be.system.entry.js +11 -0
  992. package/dist/magma-components/p-976bb373.system.entry.js +90 -0
  993. package/dist/magma-components/p-97d82884.system.entry.js +16 -0
  994. package/dist/magma-components/p-97de86c6.system.entry.js +16 -0
  995. package/dist/magma-components/p-97e9a197.system.entry.js +32 -0
  996. package/dist/magma-components/p-9a936cae.system.entry.js +45 -0
  997. package/dist/magma-components/p-9c6d184f.entry.js +1 -0
  998. package/dist/magma-components/p-9db0a6e9.entry.js +1 -0
  999. package/dist/magma-components/p-9e662528.entry.js +1 -0
  1000. package/dist/magma-components/{p-7ffda4f5.entry.js → p-9ff02a82.entry.js} +1 -1
  1001. package/dist/magma-components/p-B85MJLTf.js +1 -0
  1002. package/dist/magma-components/p-BJqUjYIG.system.js +1 -0
  1003. package/dist/magma-components/{p-Dg8nxRUX.system.js → p-BcYSdbK0.system.js} +85 -53
  1004. package/dist/magma-components/p-BeYLDgbf.js +1 -0
  1005. package/dist/magma-components/p-CKfEQ187.system.js +107 -0
  1006. package/dist/magma-components/p-D6-Ny6z1.system.js +1 -0
  1007. package/dist/magma-components/{p-BPNsbMrg.system.js → p-DhhAXEdA.system.js} +11 -5
  1008. package/dist/magma-components/p-JMPfVnGv.js +1 -0
  1009. package/dist/magma-components/p-ZDRIVCAt.system.js +1 -1
  1010. package/dist/magma-components/p-a3e3a653.system.entry.js +81 -0
  1011. package/dist/magma-components/p-a4c26b4d.system.entry.js +19 -0
  1012. package/dist/magma-components/{p-dcc3be64.system.entry.js → p-a61c7ae9.system.entry.js} +1 -1
  1013. package/dist/magma-components/p-a653e096.entry.js +1 -0
  1014. package/dist/magma-components/p-a8bf46cb.system.entry.js +1 -0
  1015. package/dist/magma-components/p-a9736d68.system.entry.js +4 -0
  1016. package/dist/magma-components/p-ac4435e7.entry.js +1 -0
  1017. package/dist/magma-components/p-ac873ab4.entry.js +1 -0
  1018. package/dist/magma-components/p-acae292f.system.entry.js +28 -0
  1019. package/dist/magma-components/p-add1a8d0.system.entry.js +7 -0
  1020. package/dist/magma-components/p-b1a0e56e.system.entry.js +42 -0
  1021. package/dist/magma-components/p-b33a6f7e.system.entry.js +13 -0
  1022. package/dist/magma-components/p-b492dd4c.entry.js +1 -0
  1023. package/dist/magma-components/p-b99cac43.entry.js +1 -0
  1024. package/dist/magma-components/p-baf0359b.entry.js +1 -0
  1025. package/dist/magma-components/p-bbd414dc.entry.js +1 -0
  1026. package/dist/magma-components/p-be1aad5f.entry.js +1 -0
  1027. package/dist/magma-components/p-bf05f9f3.entry.js +1 -0
  1028. package/dist/magma-components/p-bf8c6647.system.entry.js +11 -0
  1029. package/dist/magma-components/p-bfe19e4b.entry.js +1 -0
  1030. package/dist/magma-components/p-c1a7266a.entry.js +1 -0
  1031. package/dist/magma-components/p-c3585de7.system.entry.js +7 -0
  1032. package/dist/magma-components/p-c45d9a64.system.entry.js +32 -0
  1033. package/dist/magma-components/p-c4ceaef6.system.entry.js +10 -0
  1034. package/dist/magma-components/{p-57762bae.entry.js → p-c575cb7b.entry.js} +1 -1
  1035. package/dist/magma-components/p-c644c5fc.system.entry.js +1 -0
  1036. package/dist/magma-components/{p-61bedbe7.system.entry.js → p-c69ec735.system.entry.js} +8 -3
  1037. package/dist/magma-components/p-c7d84d1c.system.entry.js +1 -0
  1038. package/dist/magma-components/p-cb8b45fd.entry.js +1 -0
  1039. package/dist/magma-components/p-cbfd8b10.system.entry.js +16 -0
  1040. package/dist/magma-components/{p-ed897f9f.entry.js → p-ce46191c.entry.js} +1 -1
  1041. package/dist/magma-components/p-cebe7b52.entry.js +1 -0
  1042. package/dist/magma-components/p-cefdc01f.system.entry.js +7 -0
  1043. package/dist/magma-components/{p-f29a059d.system.entry.js → p-d025a34f.system.entry.js} +1 -1
  1044. package/dist/magma-components/p-d1c47baa.entry.js +1 -0
  1045. package/dist/magma-components/p-d269bfb0.entry.js +1 -0
  1046. package/dist/magma-components/p-d42f267b.system.entry.js +40 -0
  1047. package/dist/magma-components/p-d65d8a09.system.entry.js +1 -0
  1048. package/dist/magma-components/p-d6eca2ef.entry.js +1 -0
  1049. package/dist/magma-components/p-d716efe9.system.entry.js +1 -0
  1050. package/dist/magma-components/{p-314abfba.entry.js → p-da6ccc03.entry.js} +1 -1
  1051. package/dist/magma-components/p-dbaf5368.system.entry.js +7 -0
  1052. package/dist/magma-components/p-dc340618.entry.js +1 -0
  1053. package/dist/magma-components/p-dc752e9b.entry.js +1 -0
  1054. package/dist/magma-components/p-e238e2eb.entry.js +1 -0
  1055. package/dist/magma-components/p-e388f1f2.system.entry.js +19 -0
  1056. package/dist/magma-components/{p-74b51db8.entry.js → p-e50fdcee.entry.js} +1 -1
  1057. package/dist/magma-components/{p-2c44c961.system.entry.js → p-e779a67f.system.entry.js} +3 -3
  1058. package/dist/magma-components/p-e8ae4016.system.entry.js +1 -0
  1059. package/dist/magma-components/{p-9eb1e154.system.entry.js → p-e8d95868.system.entry.js} +2 -2
  1060. package/dist/magma-components/p-ed232c76.entry.js +1 -0
  1061. package/dist/magma-components/{p-6fdb3fe7.system.entry.js → p-ed6e287d.system.entry.js} +25 -7
  1062. package/dist/magma-components/{p-88287207.system.entry.js → p-ed87425c.system.entry.js} +1 -1
  1063. package/dist/magma-components/p-ed897125.entry.js +1 -0
  1064. package/dist/magma-components/p-ee876b20.system.entry.js +4 -0
  1065. package/dist/magma-components/p-efe0bb12.system.entry.js +7 -0
  1066. package/dist/magma-components/p-f2412853.system.entry.js +27 -0
  1067. package/dist/magma-components/p-f2743a2b.entry.js +1 -0
  1068. package/dist/magma-components/p-f2f2945b.entry.js +1 -0
  1069. package/dist/magma-components/p-f37f1343.entry.js +1 -0
  1070. package/dist/magma-components/p-f3dd135e.system.entry.js +32 -0
  1071. package/dist/magma-components/p-f5ce24e8.entry.js +1 -0
  1072. package/dist/magma-components/p-f8a88f11.entry.js +1 -0
  1073. package/dist/magma-components/p-f900fe90.entry.js +1 -0
  1074. package/dist/magma-components/p-pNJmnrhq.js +1 -0
  1075. package/dist/magma-components/p-pxyGaQ-P.system.js +2 -0
  1076. package/dist/stats.json +2920 -2147
  1077. package/dist/types/common/floating-controller.d.ts +8 -1
  1078. package/dist/types/common/hash.d.ts +8 -0
  1079. package/dist/types/common/navigation.d.ts +32 -0
  1080. package/dist/types/common/string.d.ts +3 -1
  1081. package/dist/types/components/mds-button/mds-button.d.ts +33 -2
  1082. package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +1 -0
  1083. package/dist/types/components/mds-calendar/mds-calendar.d.ts +1 -0
  1084. package/dist/types/components/mds-file/mds-file.d.ts +6 -1
  1085. package/dist/types/components/mds-filter/mds-filter.d.ts +15 -0
  1086. package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +18 -1
  1087. package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +1 -0
  1088. package/dist/types/components/mds-horizontal-scroll/mds-horizontal-scroll.d.ts +1 -0
  1089. package/dist/types/components/mds-input/mds-input.d.ts +8 -1
  1090. package/dist/types/components/mds-input-date/mds-input-date.d.ts +6 -0
  1091. package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +5 -0
  1092. package/dist/types/components/mds-input-select/mds-input-select.d.ts +15 -2
  1093. package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +8 -3
  1094. package/dist/types/components/mds-modal/mds-modal.d.ts +1 -0
  1095. package/dist/types/components/mds-pref/mds-pref.d.ts +5 -8
  1096. package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +8 -0
  1097. package/dist/types/components/mds-radial-menu/mds-radial-menu.d.ts +1 -0
  1098. package/dist/types/components/mds-tab/mds-tab.d.ts +14 -1
  1099. package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +6 -1
  1100. package/dist/types/components/mds-table/mds-table.d.ts +8 -1
  1101. package/dist/types/components/mds-table/meta/type.d.ts +1 -0
  1102. package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +33 -14
  1103. package/dist/types/components/mds-table-header-cell/meta/event-detail.d.ts +6 -0
  1104. package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -2
  1105. package/dist/types/components/mds-text/mds-text.d.ts +8 -4
  1106. package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +8 -1
  1107. package/dist/types/components/mds-usage/mds-usage.d.ts +5 -1
  1108. package/dist/types/components/mds-usage/meta/variants.d.ts +7 -19
  1109. package/dist/types/components.d.ts +127 -22
  1110. package/dist/types/index.d.ts +12 -4
  1111. package/dist/types/type/floating-ui.d.ts +2 -0
  1112. package/dist/types/type/input.d.ts +3 -0
  1113. package/package.json +18 -18
  1114. package/dist/cjs/_commonjsHelpers-B83fTs8d.js +0 -36
  1115. package/dist/collection/dictionary/icon.js +0 -10
  1116. package/dist/collection/type/icon.js +0 -1
  1117. package/dist/components/p-1aH7xiMs.js +0 -1
  1118. package/dist/components/p-B05zwjTY.js +0 -1
  1119. package/dist/components/p-BOu_NOgd.js +0 -1
  1120. package/dist/components/p-BTpjOy0A.js +0 -1
  1121. package/dist/components/p-BVw5aqzn.js +0 -1
  1122. package/dist/components/p-BWpSxp3h.js +0 -1
  1123. package/dist/components/p-BXPIlPIF.js +0 -1
  1124. package/dist/components/p-BzvYQBdf.js +0 -1
  1125. package/dist/components/p-C3Sn8bRc.js +0 -1
  1126. package/dist/components/p-CGkSDkOY.js +0 -1
  1127. package/dist/components/p-CHAGzQT-.js +0 -1
  1128. package/dist/components/p-CIcshx6K.js +0 -1
  1129. package/dist/components/p-CKS4r32k.js +0 -1
  1130. package/dist/components/p-COkF_8bh.js +0 -1
  1131. package/dist/components/p-CmHMhHMt.js +0 -1
  1132. package/dist/components/p-Cnt6G6GK.js +0 -1
  1133. package/dist/components/p-CsL9U6eU.js +0 -1
  1134. package/dist/components/p-Cyj1BFxx.js +0 -1
  1135. package/dist/components/p-DQqUzCGR.js +0 -1
  1136. package/dist/components/p-DR46G4-6.js +0 -1
  1137. package/dist/components/p-DcW0iRnZ.js +0 -1
  1138. package/dist/components/p-DebgFlHq.js +0 -1
  1139. package/dist/components/p-Dpf8NWF9.js +0 -1
  1140. package/dist/components/p-DwA-5c8G.js +0 -1
  1141. package/dist/components/p-Dws02cT2.js +0 -8
  1142. package/dist/components/p-E-ZsRS8r.js +0 -1
  1143. package/dist/components/p-K3QNYRhf.js +0 -1
  1144. package/dist/components/p-PQ_EO5-U.js +0 -1
  1145. package/dist/components/p-akEzGmDD.js +0 -1
  1146. package/dist/components/p-bDVBqkn0.js +0 -1
  1147. package/dist/esm/_commonjsHelpers-E-ZsRS8r.js +0 -32
  1148. package/dist/esm-es5/_commonjsHelpers-E-ZsRS8r.js +0 -1
  1149. package/dist/magma-components/p-00e47e49.system.entry.js +0 -14
  1150. package/dist/magma-components/p-0141c597.system.entry.js +0 -15
  1151. package/dist/magma-components/p-021f96f8.entry.js +0 -1
  1152. package/dist/magma-components/p-0255924b.system.entry.js +0 -22
  1153. package/dist/magma-components/p-05014374.entry.js +0 -1
  1154. package/dist/magma-components/p-05f73994.entry.js +0 -1
  1155. package/dist/magma-components/p-0646392d.entry.js +0 -1
  1156. package/dist/magma-components/p-0a904a12.entry.js +0 -1
  1157. package/dist/magma-components/p-106f39c6.entry.js +0 -1
  1158. package/dist/magma-components/p-10ad73e3.system.entry.js +0 -19
  1159. package/dist/magma-components/p-1150ffb8.system.entry.js +0 -10
  1160. package/dist/magma-components/p-12c5ae26.entry.js +0 -1
  1161. package/dist/magma-components/p-13a1d35f.entry.js +0 -1
  1162. package/dist/magma-components/p-15d4846d.entry.js +0 -1
  1163. package/dist/magma-components/p-1673225e.system.entry.js +0 -8
  1164. package/dist/magma-components/p-188f4b1d.system.entry.js +0 -7
  1165. package/dist/magma-components/p-18c8628c.entry.js +0 -1
  1166. package/dist/magma-components/p-1be45c75.entry.js +0 -1
  1167. package/dist/magma-components/p-1e3d89cd.system.entry.js +0 -1
  1168. package/dist/magma-components/p-1e700f0a.entry.js +0 -1
  1169. package/dist/magma-components/p-20e4f7dd.system.entry.js +0 -15
  1170. package/dist/magma-components/p-21865dd2.entry.js +0 -1
  1171. package/dist/magma-components/p-21c46e74.system.entry.js +0 -4
  1172. package/dist/magma-components/p-231b604f.system.entry.js +0 -1
  1173. package/dist/magma-components/p-2507f5cf.entry.js +0 -1
  1174. package/dist/magma-components/p-277444bc.entry.js +0 -1
  1175. package/dist/magma-components/p-283b0548.system.entry.js +0 -102
  1176. package/dist/magma-components/p-2ec0db8e.entry.js +0 -1
  1177. package/dist/magma-components/p-30c3872d.entry.js +0 -1
  1178. package/dist/magma-components/p-322a5452.entry.js +0 -1
  1179. package/dist/magma-components/p-3231a6a3.entry.js +0 -1
  1180. package/dist/magma-components/p-34401d35.entry.js +0 -1
  1181. package/dist/magma-components/p-35aa29c5.entry.js +0 -1
  1182. package/dist/magma-components/p-36a67b51.entry.js +0 -1
  1183. package/dist/magma-components/p-3a1339bb.system.entry.js +0 -4
  1184. package/dist/magma-components/p-3d56e3f4.entry.js +0 -1
  1185. package/dist/magma-components/p-3e0eed90.system.entry.js +0 -12
  1186. package/dist/magma-components/p-3ecade3c.system.entry.js +0 -11
  1187. package/dist/magma-components/p-3eefca33.system.entry.js +0 -16
  1188. package/dist/magma-components/p-436f9b27.system.entry.js +0 -38
  1189. package/dist/magma-components/p-44e2a945.system.entry.js +0 -1
  1190. package/dist/magma-components/p-4658154f.entry.js +0 -1
  1191. package/dist/magma-components/p-474047fa.system.entry.js +0 -10
  1192. package/dist/magma-components/p-474c5d53.system.entry.js +0 -11
  1193. package/dist/magma-components/p-4ac94b84.system.entry.js +0 -32
  1194. package/dist/magma-components/p-4c73f14b.system.entry.js +0 -14
  1195. package/dist/magma-components/p-4dd6a39b.entry.js +0 -1
  1196. package/dist/magma-components/p-4e7f21ac.entry.js +0 -1
  1197. package/dist/magma-components/p-4f14a166.entry.js +0 -1
  1198. package/dist/magma-components/p-50ea11c9.system.entry.js +0 -32
  1199. package/dist/magma-components/p-52793bdb.system.entry.js +0 -1
  1200. package/dist/magma-components/p-5299f709.system.entry.js +0 -26
  1201. package/dist/magma-components/p-58b82b40.system.entry.js +0 -10
  1202. package/dist/magma-components/p-5a7267e8.system.entry.js +0 -4
  1203. package/dist/magma-components/p-5a911e7b.system.entry.js +0 -13
  1204. package/dist/magma-components/p-5ccf493c.system.entry.js +0 -7
  1205. package/dist/magma-components/p-5d119459.entry.js +0 -1
  1206. package/dist/magma-components/p-5fd04ce1.entry.js +0 -1
  1207. package/dist/magma-components/p-60f67c37.entry.js +0 -1
  1208. package/dist/magma-components/p-632bc44c.entry.js +0 -1
  1209. package/dist/magma-components/p-69c21eae.entry.js +0 -1
  1210. package/dist/magma-components/p-6a6326c6.entry.js +0 -1
  1211. package/dist/magma-components/p-6c800411.entry.js +0 -1
  1212. package/dist/magma-components/p-6e03b83a.entry.js +0 -1
  1213. package/dist/magma-components/p-6ed05d99.entry.js +0 -1
  1214. package/dist/magma-components/p-6f74cdf5.system.entry.js +0 -12
  1215. package/dist/magma-components/p-73fde271.system.entry.js +0 -72
  1216. package/dist/magma-components/p-76ecad2f.entry.js +0 -18
  1217. package/dist/magma-components/p-774ce1d2.entry.js +0 -1
  1218. package/dist/magma-components/p-77615947.system.entry.js +0 -1
  1219. package/dist/magma-components/p-7770b989.system.entry.js +0 -1
  1220. package/dist/magma-components/p-7787ebaf.system.entry.js +0 -1
  1221. package/dist/magma-components/p-7927010f.system.entry.js +0 -25
  1222. package/dist/magma-components/p-79421ee1.system.entry.js +0 -11
  1223. package/dist/magma-components/p-7ab15184.entry.js +0 -1
  1224. package/dist/magma-components/p-7afec7ee.entry.js +0 -1
  1225. package/dist/magma-components/p-7e085c82.entry.js +0 -1
  1226. package/dist/magma-components/p-7e7cf986.system.entry.js +0 -7
  1227. package/dist/magma-components/p-809adece.system.entry.js +0 -17
  1228. package/dist/magma-components/p-8183b7ed.entry.js +0 -1
  1229. package/dist/magma-components/p-83394280.system.entry.js +0 -32
  1230. package/dist/magma-components/p-835fc007.entry.js +0 -1
  1231. package/dist/magma-components/p-84645c60.system.entry.js +0 -1
  1232. package/dist/magma-components/p-87026d34.entry.js +0 -1
  1233. package/dist/magma-components/p-87faaa8e.system.entry.js +0 -16
  1234. package/dist/magma-components/p-883c223a.system.entry.js +0 -4
  1235. package/dist/magma-components/p-88f99a4f.system.entry.js +0 -81
  1236. package/dist/magma-components/p-8a3d2259.system.entry.js +0 -17
  1237. package/dist/magma-components/p-8aafbfdf.system.entry.js +0 -49
  1238. package/dist/magma-components/p-8afc9bc4.system.entry.js +0 -2838
  1239. package/dist/magma-components/p-8ca1d30d.system.entry.js +0 -1
  1240. package/dist/magma-components/p-8ccd187a.entry.js +0 -1
  1241. package/dist/magma-components/p-90993b0b.system.entry.js +0 -68
  1242. package/dist/magma-components/p-915c5f06.system.entry.js +0 -47
  1243. package/dist/magma-components/p-91ff1560.system.entry.js +0 -7
  1244. package/dist/magma-components/p-92d9b537.entry.js +0 -1
  1245. package/dist/magma-components/p-932620b6.entry.js +0 -1
  1246. package/dist/magma-components/p-9344a234.entry.js +0 -1
  1247. package/dist/magma-components/p-97f6166e.system.entry.js +0 -28
  1248. package/dist/magma-components/p-9d1cdb42.system.entry.js +0 -15
  1249. package/dist/magma-components/p-9dcfc247.entry.js +0 -1
  1250. package/dist/magma-components/p-9fe14430.system.entry.js +0 -7
  1251. package/dist/magma-components/p-BpVYIPkx.js +0 -1
  1252. package/dist/magma-components/p-CHAGzQT-.js +0 -1
  1253. package/dist/magma-components/p-D7BrzK-C.system.js +0 -90
  1254. package/dist/magma-components/p-DIUTGDX_.system.js +0 -1
  1255. package/dist/magma-components/p-E-ZsRS8r.js +0 -1
  1256. package/dist/magma-components/p-a64bbb36.system.entry.js +0 -40
  1257. package/dist/magma-components/p-a6af4083.system.entry.js +0 -32
  1258. package/dist/magma-components/p-a7e7f2c0.entry.js +0 -1
  1259. package/dist/magma-components/p-aba96089.entry.js +0 -1
  1260. package/dist/magma-components/p-aed8b119.entry.js +0 -1
  1261. package/dist/magma-components/p-b24b5179.entry.js +0 -1
  1262. package/dist/magma-components/p-b295e4ab.system.entry.js +0 -1
  1263. package/dist/magma-components/p-b2c62b6e.system.entry.js +0 -7
  1264. package/dist/magma-components/p-b5559b28.system.entry.js +0 -1
  1265. package/dist/magma-components/p-b897c97d.entry.js +0 -1
  1266. package/dist/magma-components/p-bab4c75e.system.entry.js +0 -45
  1267. package/dist/magma-components/p-bc53c19e.entry.js +0 -8
  1268. package/dist/magma-components/p-bf2fe278.system.entry.js +0 -16
  1269. package/dist/magma-components/p-c0136138.entry.js +0 -1
  1270. package/dist/magma-components/p-c166ec50.system.entry.js +0 -47
  1271. package/dist/magma-components/p-c22887f7.system.entry.js +0 -90
  1272. package/dist/magma-components/p-c28fce23.entry.js +0 -1
  1273. package/dist/magma-components/p-c48bad95.entry.js +0 -1
  1274. package/dist/magma-components/p-cb2c5f1b.entry.js +0 -1
  1275. package/dist/magma-components/p-cc0c6ae7.entry.js +0 -1
  1276. package/dist/magma-components/p-cc2a09f2.system.entry.js +0 -16
  1277. package/dist/magma-components/p-cc9d9458.entry.js +0 -1
  1278. package/dist/magma-components/p-ccb14076.system.entry.js +0 -217
  1279. package/dist/magma-components/p-ccb6898a.system.entry.js +0 -4
  1280. package/dist/magma-components/p-d04ac65d.entry.js +0 -1
  1281. package/dist/magma-components/p-d07d227b.system.entry.js +0 -8
  1282. package/dist/magma-components/p-d1faf129.entry.js +0 -1
  1283. package/dist/magma-components/p-d282a929.entry.js +0 -1
  1284. package/dist/magma-components/p-d2f134ac.entry.js +0 -1
  1285. package/dist/magma-components/p-d47df503.system.entry.js +0 -37
  1286. package/dist/magma-components/p-d9804d2f.entry.js +0 -1
  1287. package/dist/magma-components/p-dc06b29e.entry.js +0 -1
  1288. package/dist/magma-components/p-dc59b764.entry.js +0 -1
  1289. package/dist/magma-components/p-dc7bada4.entry.js +0 -1
  1290. package/dist/magma-components/p-de091be7.system.entry.js +0 -7
  1291. package/dist/magma-components/p-dfe8552c.system.entry.js +0 -11
  1292. package/dist/magma-components/p-e1e69217.system.entry.js +0 -1
  1293. package/dist/magma-components/p-e2ef5996.entry.js +0 -1
  1294. package/dist/magma-components/p-e7751639.entry.js +0 -1
  1295. package/dist/magma-components/p-e887a14c.entry.js +0 -1
  1296. package/dist/magma-components/p-e8cd2b93.system.entry.js +0 -4
  1297. package/dist/magma-components/p-eb681207.system.entry.js +0 -1
  1298. package/dist/magma-components/p-ec9cc7b9.entry.js +0 -1
  1299. package/dist/magma-components/p-eca99a0a.system.entry.js +0 -1
  1300. package/dist/magma-components/p-ecd3c27f.entry.js +0 -1
  1301. package/dist/magma-components/p-ef3424e3.entry.js +0 -1
  1302. package/dist/magma-components/p-f654eafe.entry.js +0 -1
  1303. package/dist/magma-components/p-f8eb19b3.entry.js +0 -1
  1304. package/dist/magma-components/p-f8feee93.system.entry.js +0 -4
  1305. package/dist/magma-components/p-ffa1a0b4.system.entry.js +0 -1
  1306. package/dist/types/dictionary/icon.d.ts +0 -4
  1307. package/dist/types/type/icon.d.ts +0 -1
@@ -1 +1 @@
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-CsL9U6eU.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-COkF_8bh.js";import{d as p}from"./p-CmHMhHMt.js";import{d as v}from"./p-Cyj1BFxx.js";import{d as b}from"./p-DmPLOktp.js";import{d as f}from"./p-DebgFlHq.js";import{d as x}from"./p-BW24ByN-.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
+ 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-lNY_3s6S.js";import{c}from"./p-ChV9xqsO.js";import{L as m}from"./p--miH951G.js";import{p}from"./p-zHpei4x6.js";import{d as u}from"./p-DHu8X7zF.js";import{d as g}from"./p-Cw6_ooFx.js";import{d as v}from"./p-Ck0q_n7I.js";import{d as f}from"./p-DmPLOktp.js";import{d as b}from"./p-BBDliSai.js";import{d as w}from"./p-DLCcW1Q5.js";var x={endDate:"Ημερομηνία λήξης",from:"Από",openCalendar:"Άνοιγμα ημερολογίου",startDate:"Ημερομηνία έναρξης",to:"έως"},y={endDate:"End date",from:"From",openCalendar:"Open calendar",startDate:"Start date",to:"to"},D={endDate:"Fecha de fin",from:"De",openCalendar:"Abrir el calendario",startDate:"Fecha de inicio",to:"a"},k={endDate:"Data di fine",from:"Dal",openCalendar:"Apri il calendario",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 m({el:x,en:y,es:D,it:k}),this.startDate="",this.endDate="",this.min=null,this.max=null,this.delay=500,this.size="lg",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:c("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:"2607e65181be58e82dfdc60e7fa25fe9af0e9bea",onClick:this.focusDateInput,"pref-animation":p.state.animation,"pref-contrast":p.state.contrast,"pref-mode":p.state.mode,"pref-theme-scheme":p.state["theme-scheme"]},i("div",{key:"b2fc51b3add5a1af0b1e8882fb2fe7993be1ff41",class:"inputs"},i("div",{key:"ac0a08547e2604c7809de7fca00c3b8ec49bac20",class:"input-element"},i("mds-text",{key:"75f8a619d3677f08e5a28fe37c5183bc45f85776",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),i("div",{key:"d8635c71cd5c5b92109c458cd7579dedc11fa6ae",class:"input-wrapper"},i("slot",{key:"119740a858bb3a25c965f00e415b6b3c4dbd0c94",name:"start"}))),i("div",{key:"65a0012f4e8fbabc0803b1182fb28a054958f3a8",class:"input-element"},i("mds-text",{key:"ce808ba8829c87fb5656f15f7d29d303cb1afffb",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),i("div",{key:"8b9a77da34a414a0f0f0d601838173c8f62be3f4",class:"input-wrapper"},i("slot",{key:"13987167edc5d7e95dc8d622d695a61e27a007c9",name:"end"})))),i("div",{key:"0f7ef1952df30caa81eb3b77970bd94900ad3313",class:"action-open-calendar-wrapper"},i("mds-button",{key:"7f189dede8d333e290cbd11d067e087556d0df3d","aria-label":this.t.get("openCalendar"),class:"action-open-calendar",size:"sm"===this.size?"sm":void 0,disabled:this.isDisabled(),variant:"dark",tone:"text",icon:d,id:"calendar-dropdown",onClick:this.handleOpenCalendarClick})),i("mds-dropdown",{key:"5122f001b1c854ddb76b19d1ea809374b0517bee",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{--private-input-date-range-height:3rem;--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*400);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*1200);--mds-input-date-range-background:rgb(var(--magma-surface-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(--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:min(var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)),var(--magma-corner-cap,.5) * var(--private-input-date-range-height));color:rgb(var(--magma-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(--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(--surface-neutral-overlay,255 255 255))));border-radius:inherit;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:var(--private-input-date-range-height);overflow:hidden;padding-left:var(--private-input-date-range-padding-inline);padding-right:var(--private-input-date-range-calendar-area);text-overflow:ellipsis;transition-duration:var(--private-input-date-range-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;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);transition-duration:var(--duration-300,.3s);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(--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{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(--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(--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(--tone-neutral-10,237 237 237)))}:host([size=md]){--private-input-date-range-height:calc(var(--spacing,.0025rem)*900);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*300);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*1000)}:host([size=sm]){--private-input-date-range-height:calc(var(--spacing,.0025rem)*700);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*200);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*800)}: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(--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(--tone-neutral-09,225 225 225)))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}@supports ((-moz-appearance:none)){.action-open-calendar{display:none}.inputs{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(--variant-primary-03,7 76 204)));--mds-input-date-range-variant-color-rgb:var(--magma-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(--variant-ai-04,126 73 245)));--mds-input-tip-background:rgb(var(--magma-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(--variant-ai-03,87 20 242)));--mds-input-date-range-variant-color-rgb:var(--magma-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(--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(--tone-neutral-09,225 225 225)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-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],size:[513],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))||u();break;case"mds-calendar":customElements.get(n(t))||l();break;case"mds-calendar-cell":customElements.get(n(t))||g();break;case"mds-dropdown":customElements.get(n(t))||v();break;case"mds-icon":customElements.get(n(t))||f();break;case"mds-spinner":customElements.get(n(t))||b();break;case"mds-text":customElements.get(n(t))||w()}}))};export{z as MdsInputDateRange,j as defineCustomElement}
@@ -1 +1 @@
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-CsL9U6eU.js";import{p as l}from"./p-zHpei4x6.js";import{d as u}from"./p-COkF_8bh.js";import{d as p}from"./p-CmHMhHMt.js";import{d as h}from"./p-Cyj1BFxx.js";import{d as g}from"./p-DmPLOktp.js";import{d as v}from"./p-CGkSDkOY.js";import{d as b}from"./p-BOu_NOgd.js";import{d as f}from"./p-DebgFlHq.js";import{d as x}from"./p-BW24ByN-.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:"bb6ce788477995704deb7554cec8363e0e219418",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:"ff6e84704788c49a01491dc042a349c95a5b6ce2","aria-label":this.accessibleName,value:this.value,id:"dateInput",class:"input",part:"input-date",type:"date",disabled:this.isDisabled(),name:this.name,readOnly:this.readonly,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.handleChange,onChange:this.handleChange}),!this.isSlotted&&e("div",{key:"e7fa728f2f5ede454ef7cf43da5885484a47a201",class:"action-open-calendar-wrapper"},e("mds-button",{key:"0c67d5ed8fc65af85a21010be65f37409e1125bc",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:"43e3767bc9f70ea31883f5d7d562e102b4bcc3c9",position:"top",active:this.hasFocus},this.isDisabled()&&e("mds-input-tip-item",{key:"6cedaa989e6ec5899d73fc6d4f8c68f798408dae",expanded:!0,variant:"disabled"}),this.readonly&&e("mds-input-tip-item",{key:"4f067b4c600e75f78fa7bef72a28d5cb1e4ad9e4",expanded:!0,variant:"readonly"}),this.required&&e("mds-input-tip-item",{key:"28419231c5a20cd36b9c4c5e668c99707a20c485",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),!this.isSlotted&&e("mds-dropdown",{key:"3f9cdf80cc2167a864e6b7cc4435e6623d5858e2",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
+ 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 p}from"./p-lNY_3s6S.js";import{p as c}from"./p-zHpei4x6.js";import{L as u}from"./p--miH951G.js";import{d as l}from"./p-DHu8X7zF.js";import{d as h}from"./p-Cw6_ooFx.js";import{d as v}from"./p-Ck0q_n7I.js";import{d as g}from"./p-DmPLOktp.js";import{d as f}from"./p-ay5NzZ_x.js";import{d as b}from"./p-BXUJgu8l.js";import{d as y}from"./p-BBDliSai.js";import{d as x}from"./p-DLCcW1Q5.js";var w={openCalendar:"Άνοιγμα ημερολογίου"},k={openCalendar:"Open calendar"},z={openCalendar:"Abrir el calendario"},C={openCalendar:"Apri il calendario"};const j=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.t=new u({el:w,en:k,es:z,it:C}),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.size="lg",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(c.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:"85a3b42321ad68851f46f10e9ff75dfadf2888b9",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:"944870b51be68a215e41bd36ef36917ff9c25663","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:"f74ee4f14e92125a218a8afe4e4a023eba7a62e6",class:"action-open-calendar-wrapper"},e("mds-button",{key:"e91d6fcc89cb9cb9d3cd102a3f330407b3ae36f7","aria-label":this.t.get("openCalendar"),id:"calendar-dropdown",class:"action-open-calendar",size:"sm"===this.size?"sm":void 0,disabled:this.isDisabled()||this.readonly,variant:"dark",tone:"text",icon:d,onClick:this.handleOpenCalendarClick})),e("mds-input-tip",{key:"0835dceae4baedd641f3b4bd26f977643292b53b",position:"top",active:this.hasFocus},this.isDisabled()&&e("mds-input-tip-item",{key:"e1b239aa4f26f5652cdf28dc2b3e08d9675e4f45",expanded:!0,variant:"disabled"}),this.readonly&&e("mds-input-tip-item",{key:"f8e056104b9491b716ba8609b59fecb7a28dc363",expanded:!0,variant:"readonly"}),this.required&&e("mds-input-tip-item",{key:"b99ca8074d60453b1326ec2046793ef9055280ed",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),!this.isSlotted&&e("mds-dropdown",{key:"53fddd62c262bf14899c07c8a9eb6d1783a3d202",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{--private-input-date-height:3rem;--private-input-date-padding-inline:calc(var(--spacing,.0025rem)*400);--private-input-date-calendar-area:calc(var(--spacing,.0025rem)*1200);--mds-input-date-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-input-date-background:rgb(var(--magma-surface-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(--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:min(var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)),var(--magma-corner-cap,.5) * var(--private-input-date-height));color:rgb(var(--magma-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(--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;transition-duration:var(--private-input-date-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;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(--surface-neutral-overlay,255 255 255))));box-shadow:var(--mds-input-date-ring),var(--mds-input-date-shadow);min-height:var(--private-input-date-height);padding-left:var(--private-input-date-padding-inline);padding-right:var(--private-input-date-calendar-area);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);transition-duration:var(--duration-300,.3s);transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input::placeholder{color:rgb(var(--magma-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(--tone-neutral-10,237 237 237)))}.input:disabled,.input:disabled::placeholder{color:rgb(var(--magma-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(--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([size=md]){--private-input-date-height:calc(var(--spacing,.0025rem)*900);--private-input-date-padding-inline:calc(var(--spacing,.0025rem)*300);--private-input-date-calendar-area:calc(var(--spacing,.0025rem)*1000)}:host([size=sm]){--private-input-date-height:calc(var(--spacing,.0025rem)*700);--private-input-date-padding-inline:calc(var(--spacing,.0025rem)*200);--private-input-date-calendar-area:calc(var(--spacing,.0025rem)*800)}: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(--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(--tone-neutral-09,225 225 225)))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-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(--variant-primary-03,7 76 204)));--mds-input-date-variant-color-rgb:var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))}:host([variant=ai]){--mds-input-date-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-input-tip-background:rgb(var(--magma-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(--variant-ai-03,87 20 242)));--mds-input-date-variant-color-rgb:var(--magma-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(--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(--tone-neutral-09,225 225 225)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-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],size:[513],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}]}]),D=j,E=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),j);break;case"mds-button":customElements.get(s(t))||l();break;case"mds-calendar":customElements.get(s(t))||p();break;case"mds-calendar-cell":customElements.get(s(t))||h();break;case"mds-dropdown":customElements.get(s(t))||v();break;case"mds-icon":customElements.get(s(t))||g();break;case"mds-input-tip":customElements.get(s(t))||f();break;case"mds-input-tip-item":customElements.get(s(t))||b();break;case"mds-spinner":customElements.get(s(t))||y();break;case"mds-text":customElements.get(s(t))||x()}}))};export{D as MdsInputDate,E as defineCustomElement}
@@ -1 +1 @@
1
- import{p as a,H as t,h as s,c as e,t as r}from"./p-pBvN1uAc.js";import{d as i}from"./p-BW24ByN-.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 s,h as t,c as r,t as e}from"./p-pBvN1uAc.js";import{d as i}from"./p-DLCcW1Q5.js";const n=a(class extends s{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 s=a.getAttribute("aria-label");null!==s&&s!==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 s=Object.entries(a).map((a=>a[1])).filter((a=>a));this.message=0!==s.length?s.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 t(r,{key:"583ee482bbab1a36be354ff74ee0025171d1ac6a"},t("mds-text",{key:"667c77827695565fd798c3e1528802ff300eb5d7",class:"label",typography:"label"},this.label),t("div",{key:"c1e2b99db32d1f3ca5f783c46fbf09a285e36857",class:"message-window"},t("div",{key:"5e2fef6eb9971f2e08ed3c89dee28bde0b659995",class:"content",part:"content"},t("slot",{key:"f9ad79859fe01dfec67abf0f9953de8a07c66a86",onSlotchange:this.nameSlottedControls,ref:a=>this.slotInput=a})),t("div",{key:"1530d0b175f5bb7df5ed25041eaac339ae48d57c",class:"message"},null===(a=this.message)||void 0===a?void 0:a.split(";").map(((a,s)=>t("mds-text",{typography:"caption",key:s},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(--text-neutral-muted,73 73 73)));--mds-input-field-message-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));color:rgb(var(--magma-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(--text-neutral-muted,73 73 73))));corner-shape:inherit;background-color:#0000;display:grid;gap:0;padding:0;transition-duration:var(--duration-300,.3s);transition-property:background-color,color,gap,padding;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(--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);transition-duration:var(--duration-300,.3s);transition-property:height,margin-top,opacity,padding;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(--variant-ai-02,65 11 190)));--mds-input-field-message-background:rgb(var(--magma-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,d=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,d as defineCustomElement}
@@ -1 +1 @@
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-COkF_8bh.js";import{d as l}from"./p-DmPLOktp.js";import{d as m}from"./p-BWpSxp3h.js";import{d as h}from"./p-CGkSDkOY.js";import{d as p}from"./p-BOu_NOgd.js";import{d as u}from"./p-DebgFlHq.js";import{d}from"./p-BW24ByN-.js";var c={digit:"Ψηφίο {{position}} από {{length}}"},f={digit:"Digit {{position}} of {{length}}"},g={digit:"Dígito {{position}} de {{length}}"},v={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:f,es:g,it:v}),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:"a04c64edf256fa28b732e52380df22b2fa452ed7"},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}]}]),k=b,y=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))||p();break;case"mds-spinner":customElements.get(n(t))||u();break;case"mds-text":customElements.get(n(t))||d()}}))};export{k as MdsInputOtp,y 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-DHu8X7zF.js";import{d as l}from"./p-DmPLOktp.js";import{d as m}from"./p-BXYUyw7p.js";import{d as h}from"./p-ay5NzZ_x.js";import{d as u}from"./p-BXUJgu8l.js";import{d as p}from"./p-BBDliSai.js";import{d}from"./p-DLCcW1Q5.js";var c={digit:"Ψηφίο {{position}} από {{length}}"},f={digit:"Digit {{position}} of {{length}}"},g={digit:"Dígito {{position}} de {{length}}"},v={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:f,es:g,it:v}),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:"a04c64edf256fa28b732e52380df22b2fa452ed7"},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}]}]),y=b,k=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))||p();break;case"mds-text":customElements.get(n(t))||d()}}))};export{y as MdsInputOtp,k 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-pBvN1uAc.js";import{s}from"./p-wI0alRSO.js";import{p as o}from"./p-zHpei4x6.js";import{d}from"./p-BW24ByN-.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:"d223cb20d2d286382af3b1605e4d77d1a77d67c0","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:"2e618309f22f583ea4583901965a3669073ee17e",class:"header",part:"header"},e("mds-text",{key:"cf89fae0a98b66a470ab220811af5cf1b1922f59",class:"label",typography:"label"},e("slot",{key:"392a0503e0ad2af44ecb9ce184713b5245a64063"})),e("mds-text",{key:"ab5f2a7fe91bae04199b100e6bc6711ccd6c6e2a",class:"value",typography:"label"},this.formatValue?this.formatValue(this.value):this.value)),e("div",{key:"5d5681f116e152979f0d329070be816173507caf",class:"range"},e("div",{key:"f539571bbf87692d690b792ed8c638fd3f3810f7",class:"track",part:"track"},e("div",{key:"6b0eef0ba0ef24a80bf52bd04dce7d9ed2114ad4",class:"contrast-area"}),e("div",{key:"622bce4e0e3edf7de827c64a8b97bd6ea90f7e67",class:"track-total"},e("div",{key:"1a05102fb4ebd2f8fa452df45302c6983aa0234d",class:"track-progress",style:{"--mds-input-range-progress":""+(null!==(a=this.progress)&&void 0!==a?a:0)}}))),e("input",{key:"81eb2d3245ab389890b14ee0aa6aec6324450933",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}
1
+ import{p as a,H as t,d as r,h as e,c as i,t as s}from"./p-pBvN1uAc.js";import{s as n}from"./p-wI0alRSO.js";import{p as o}from"./p-zHpei4x6.js";import{d}from"./p-DLCcW1Q5.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,n(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&&n(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:"d223cb20d2d286382af3b1605e4d77d1a77d67c0","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:"2e618309f22f583ea4583901965a3669073ee17e",class:"header",part:"header"},e("mds-text",{key:"cf89fae0a98b66a470ab220811af5cf1b1922f59",class:"label",typography:"label"},e("slot",{key:"392a0503e0ad2af44ecb9ce184713b5245a64063"})),e("mds-text",{key:"ab5f2a7fe91bae04199b100e6bc6711ccd6c6e2a",class:"value",typography:"label"},this.formatValue?this.formatValue(this.value):this.value)),e("div",{key:"5d5681f116e152979f0d329070be816173507caf",class:"range"},e("div",{key:"f539571bbf87692d690b792ed8c638fd3f3810f7",class:"track",part:"track"},e("div",{key:"6b0eef0ba0ef24a80bf52bd04dce7d9ed2114ad4",class:"contrast-area"}),e("div",{key:"622bce4e0e3edf7de827c64a8b97bd6ea90f7e67",class:"track-total"},e("div",{key:"1a05102fb4ebd2f8fa452df45302c6983aa0234d",class:"track-progress",style:{"--mds-input-range-progress":""+(null!==(a=this.progress)&&void 0!==a?a:0)}}))),e("input",{key:"81eb2d3245ab389890b14ee0aa6aec6324450933",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(--tone-neutral-08,208 208 208)));--mds-input-range-thumb-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-input-range-thumb-cursor:col-resize;--mds-input-range-thumb-size:calc(var(--spacing,.0025rem)*400);--mds-input-range-track-background-disabled:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-input-range-track-progress-background-disabled:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-input-range-track-size:calc(var(--spacing,.0025rem)*600);--private-border-width:calc(var(--mds-input-range-track-size)/2 - var(--mds-input-range-thumb-size)/2);--private-thumb-size:calc(var(--mds-input-range-thumb-size) + var(--private-border-width)*2);display:grid;gap:calc(var(--spacing,.0025rem)*200);transition-duration:var(--private-input-range-transition-duration);transition-property:color;transition-timing-function:var(--ease-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);transition-duration:var(--private-input-range-transition-duration);transition-property:background-color}.track-total{background-color:var(--mds-input-range-track-background);overflow:hidden;transition-timing-function:var(--ease-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(--variant-primary-04,36 103 231)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([pref-contrast=more]){color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@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(--variant-primary-04,36 103 231)));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}"}},[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(s(a))||customElements.define(s(a),m);break;case"mds-text":customElements.get(s(a))||d()}}))};export{c as MdsInputRange,u as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as a,d as e,h as i,c as r,t as s}from"./p-pBvN1uAc.js";import{p as o}from"./p-zHpei4x6.js";import{m as n}from"./p-DiWN48aq.js";import{s as c}from"./p-wI0alRSO.js";import{u as l}from"./p-faViX-qz.js";import{d}from"./p-DmPLOktp.js";import{d as m}from"./p-CGkSDkOY.js";import{d as u}from"./p-BOu_NOgd.js";import{d as p}from"./p-BW24ByN-.js";const h=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.changeEvent=e(this,"mdsInputSelectChange",7),this.internals=this.attachInternals(),this.adoptingSelection=!1,this.hasFocus=!1,this.formDisabled=!1,this.disabled=!1,this.required=!1,this.multiple=!1,this.size=0,this.value="",this.isDisabled=()=>!!this.disabled||this.formDisabled,this.onInput=()=>{this.adoptSelection(),this.syncSelection()},this.onBlur=()=>{this.hasFocus=!1},this.onFocus=()=>{this.hasFocus=!0},this.hasPlaceholder=()=>{var t;return""!==(null!==(t=this.placeholder)&&void 0!==t?t:"")},this.placeholderOption=()=>{var t,a;return null!==(a=null===(t=this.selectEl)||void 0===t?void 0:t.querySelector(".placeholder-option"))&&void 0!==a?a:null},this.emptyOptions=()=>{var t;const a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector("select"),e=null==a?void 0:a.querySelectorAll("option");e&&e.forEach(((t,a)=>{this.hasPlaceholder()||t.remove(),this.hasPlaceholder()&&a>0&&t.remove()}))},this.onSlotChangeHandler=()=>{var t,a,e;const i=null===(a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelectorAll("slot")[0])||void 0===a?void 0:a.assignedNodes(),r=null===(e=this.selectEl)||void 0===e?void 0:e.querySelectorAll("option");null!=r&&(!this.hasPlaceholder()&&r.length>0&&this.emptyOptions(),this.hasPlaceholder()&&r.length>1&&this.emptyOptions(),null==i||i.forEach((t=>{var a;null===(a=this.selectEl)||void 0===a||a.appendChild(t.cloneNode(!0))})),this.applySelection(!0),this.syncSelection())}}async setValue(t){return this.value=t,Promise.resolve()}valueChanged(){this.adoptingSelection||(this.applySelection(!1),this.syncSelection())}requiredChanged(){this.updateFormValidity()}nameChanged(){this.updateFormValue(this.selectedValues())}selectedValues(){var t;return null==this.selectEl?""===(null!==(t=this.value)&&void 0!==t?t:"")?[]:[""+this.value]:Array.from(this.selectEl.selectedOptions).filter((t=>!t.classList.contains("placeholder-option"))).map((t=>t.value))}syncSelection(){var t;const a=this.selectedValues();this.updateFormValue(a),this.updateFormValidity();const e=null===(t=this.value)||void 0===t?void 0:""+t,i=JSON.stringify([e,a]);i!==this.emittedSelection&&(this.emittedSelection=i,this.changeEvent.emit({value:e,values:a}))}updateFormValue(t){var a,e,i;if(!this.multiple)return void c(this.internals,null!==(e=null===(a=this.value)||void 0===a?void 0:""+a)&&void 0!==e?e:null);const r=null!==(i=this.name)&&void 0!==i?i:"";if(""===r||0===t.length)return void c(this.internals,null);const s=new FormData;t.forEach((t=>s.append(r,t))),c(this.internals,s)}updateFormValidity(){var t;const a=this.required&&""===(null!==(t=this.value)&&void 0!==t?t:"");l(this.internals,a?{rule:"requiredSelect"}:void 0,this.selectEl)}disabledChanged(t){t&&c(this.internals,null)}placeholderChanged(t,a){if(null!=this.selectEl&&null!=t&&""!==t&&""===(null!=a?a:"")){let a=this.placeholderOption();a&&a.remove(),a=document.createElement("option"),a.className="placeholder-option",this.selectEl.insertBefore(a,this.selectEl.firstChild),a.value="",a.text=t,(null==this.defaultValue||""===this.defaultValue||0===this.defaultValue||Number.isNaN(this.defaultValue))&&(a.selected=!0,this.value=void 0),this.required&&(a.disabled=!0)}}formDisabledCallback(t){this.formDisabled=t}formResetCallback(){if(null==this.selectEl)return;const t=Array.from(this.selectEl.querySelectorAll("option"));t.forEach((t=>{t.selected=t.defaultSelected}));const a=this.placeholderOption();a&&this.hasPlaceholder()&&!t.some((t=>t.defaultSelected))&&(a.selected=!0),this.adoptingSelection=!0,this.value=this.loadValue,this.adoptingSelection=!1,this.applySelection(!0),this.syncSelection()}componentWillLoad(){null==this.defaultValue||""===this.defaultValue||0===this.defaultValue||Number.isNaN(this.defaultValue)||(this.value=this.defaultValue),this.loadValue=this.value}componentDidRender(){this.updateFormValidity()}componentDidLoad(){this.multiple||null==this.value||""===this.value||0===this.value||Number.isNaN(this.value)||c(this.internals,""+this.value)}adoptSelection(){null!=this.selectEl&&(this.adoptingSelection=!0,this.value=this.selectEl.value,this.adoptingSelection=!1)}applySelection(t){if(null==this.selectEl)return;if(null!=this.value&&""!==this.value&&0!==this.value&&!Number.isNaN(this.value))return void this.selectEl.querySelectorAll("option").forEach((t=>{t.selected=t.value===this.value}));if(t)return void this.adoptSelection();this.selectEl.querySelectorAll("option").forEach((t=>{t.selected=!1}));const a=this.placeholderOption();a&&this.hasPlaceholder()&&(a.selected=!0),this.adoptSelection()}render(){var t;return i(r,{key:"cbdd53b56d64ee8ace9cf091d86ec6a529415f7b","pref-animation":o.state.animation,"pref-contrast":o.state.contrast,"pref-mode":o.state.mode,"pref-theme-scheme":o.state["theme-scheme"]},i("select",{key:"df3ffc167f4452b6b098720eff7b01abf6088d84","aria-label":this.accessibleName,class:"input",onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,name:this.name,required:this.required,disabled:this.isDisabled(),multiple:this.multiple,size:this.size,part:"select",ref:t=>this.selectEl=t},i("option",{key:"3372af1fe267f93fe42751dc264c8fa1be41a681",class:"placeholder-option",value:"",disabled:!!this.required||void 0,selected:!(null!=this.defaultValue&&""!==this.defaultValue&&0!==this.defaultValue&&!Number.isNaN(this.defaultValue))||void 0},this.placeholder)),i("div",{key:"2054fdad7eb96317127f0a5f5d3545c51be98a6e",class:"icon-container"},i("mds-icon",{key:"8f7c8a2377912ec8c62b04f95fcb15b97c46deed",class:"icon",name:n})),i("div",{key:"f9b5a34c5f60d2a8d2c8ee8be5e8b8a0f3bd3800",class:"option-container"},i("slot",{key:"5c03186b7deca1d7bd2aba50b03f7bf7e6038f29",onSlotchange:this.onSlotChangeHandler})),i("mds-input-tip",{key:"b7013f98b08bfa532df0cc602cc0683c762af2b7",position:"top",active:this.hasFocus,part:"tip-top"},this.isDisabled()&&i("mds-input-tip-item",{key:"2519d758e2ca30c6886b39c0fffbe50a7d33f016",expanded:!0,variant:"disabled"}),this.required&&i("mds-input-tip-item",{key:"a6db53481ffe5d62cd31a3eae0be3ad3c4b77828",expanded:this.hasFocus,variant:""===(null!==(t=this.value)&&void 0!==t?t:"")?"required":"required-success"})))}static get formAssociated(){return!0}get host(){return this}static get watchers(){return{value:[{valueChanged:0}],required:[{requiredChanged:0}],name:[{nameChanged:0}],disabled:[{disabledChanged:0}],placeholder:[{placeholderChanged:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-input-tip,mds-input-tip-item):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-select-variant-color-rgb:var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)));--mds-input-select-ring:0 0 0 1px rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.1);--mds-input-select-shadow:0 1px 3px 0 rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.1),0 1px 2px 0 rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.06);--mds-input-select-arrow-icon-background-color:var(--mds-input-select-arrow-icon-blur-background-color,#0000);--mds-input-select-arrow-icon-blur-background-color:rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/0);--mds-input-select-arrow-icon-blur-color:rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.5);--mds-input-select-arrow-icon-color:var(--mds-input-select-arrow-icon-blur-color,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));--mds-input-select-arrow-icon-hover-background-color:rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.5);--mds-input-select-arrow-icon-hover-color:rgb(var(--mds-input-select-variant-color-rgb,0 0 0));--mds-input-tip-horizontal-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*1000);--mds-input-tip-vertical-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))));--mds-input-select-transition-duration:var(--duration-300,.3s);--mds-input-select-icon-transition-duration:var(--duration-200,.2s);--private-input-select-transition-duration:var(--mds-input-select-transition-duration);--private-input-select-icon-transition-duration:var(--mds-input-select-icon-transition-duration);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;color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));display:flex;position:relative;-webkit-user-select:none;user-select:none;--mds-input-select-variant-color-rgb:0 0 0;--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))))}:host([required]:not([required=false]):focus-within) .icon{-webkit-transform:translate(calc(var(--spacing,.0025rem)*150),calc(var(--spacing,.0025rem)*150));transform:translate(calc(var(--spacing,.0025rem)*150),calc(var(--spacing,.0025rem)*150))}:host(:focus-within),:host(:hover){--mds-input-select-variant-color-rgb:var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204)));--mds-input-select-ring:0 0 0 3px rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/1);--mds-input-select-shadow:0 4px 6px -1px rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.1),0 2px 4px -1px rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.06);--mds-input-select-arrow-icon-background-color:var(--mds-input-select-arrow-icon-hover-background-color,#0000);--mds-input-select-arrow-icon-color:var(--mds-input-select-arrow-icon-hover-color,rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204)))));--mds-input-select-variant-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))}.input{font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;appearance:none;background-color:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));border:0;border-radius:var(--radius-xs,8px);-webkit-box-shadow:var(--mds-input-select-ring),var(--mds-input-select-shadow);box-shadow:var(--mds-input-select-ring),var(--mds-input-select-shadow);box-sizing:border-box;color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));cursor:pointer;margin:0;min-height:calc(var(--spacing,.0025rem)*1200);overflow:hidden;padding-left:calc(var(--spacing,.0025rem)*400);padding-right:calc(var(--spacing,.0025rem)*1200);text-overflow:ellipsis;transition-property:background-color,border-color,box-shadow,color,fill;width:100%}.input,.input:focus,.input:hover{-webkit-transition-duration:var(--private-input-select-transition-duration);transition-duration:var(--private-input-select-transition-duration);-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:focus,.input:hover{--tw-outline-style:none;color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));outline-style:none}:host([value]:not([value=""])) .input{color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([required]:not([required=false])) .input{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:disabled{background-color:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))));opacity:1}:host([disabled]:not([disabled=false])),:host([disabled]:not([disabled=false])) .input{pointer-events:none}:host([disabled]:not([disabled=false])) .icon{fill:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));-webkit-transform:translate(calc(var(--spacing,.0025rem)*250),calc(var(--spacing,.0025rem)*200));transform:translate(calc(var(--spacing,.0025rem)*250),calc(var(--spacing,.0025rem)*200))}.icon-container{align-items:center;color:inherit;display:flex;height:calc(var(--spacing,.0025rem)*1200);pointer-events:none;position:absolute;right:calc(var(--spacing,.0025rem)*400)}.icon{background-color:var(--mds-input-select-arrow-icon-background-color,#0000);border-radius:var(--radius-full,1000px);display:flex;fill:var(--mds-input-select-arrow-icon-color,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));-webkit-transition-duration:var(--private-input-select-icon-transition-duration);transition-duration:var(--private-input-select-icon-transition-duration);transition-property:background-color,fill}.icon svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}.option-container{display:none}mds-input-tip{--mds-input-tip-horizontal-offset:inherit;--mds-input-tip-horizontal-offset-focused:inherit;--mds-input-tip-vertical-offset:inherit;--mds-input-tip-background:inherit}@container (max-width:210px){:host .tip__content,:host(:focus-within) .tip__content{grid-template-columns:0fr;opacity:0}:host .tip{padding-left:0;padding-right:0}}:host([variant=info]){--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-select-variant-color-rgb:0 0 0}:host([variant=info]:focus-within),:host([variant=info]:hover){--mds-input-select-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-select-variant-color-rgb:0 0 0}:host([variant=success]:focus-within),:host([variant=success]:hover){--mds-input-select-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-select-variant-color-rgb:0 0 0}:host([variant=warning]:focus-within),:host([variant=warning]:hover){--mds-input-select-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-select-variant-color-rgb:0 0 0}:host([variant=error]:focus-within),:host([variant=error]:hover){--mds-input-select-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-select-transition-duration:0s;--private-input-select-icon-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-select-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .input{color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([pref-contrast=more]){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}:host([pref-contrast=more]) .input{color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}@media (forced-colors:active){.input:focus,.input:hover{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-select-transition-duration:0s;--private-input-select-icon-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-select-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .input{color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input{color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}'}},[321,"mds-input-select",{accessibleName:[1,"aria-label"],autocomplete:[513],autoFocus:[516,"auto-focus"],placeholder:[513],name:[513],disabled:[516],required:[516],multiple:[516],size:[514],value:[520],defaultValue:[520,"default-value"],variant:[513],hasFocus:[32],formDisabled:[32],setValue:[64]},void 0,{value:[{valueChanged:0}],required:[{requiredChanged:0}],name:[{nameChanged:0}],disabled:[{disabledChanged:0}],placeholder:[{placeholderChanged:0}]}]),v=h,g=function(){"undefined"!=typeof customElements&&["mds-input-select","mds-icon","mds-input-tip","mds-input-tip-item","mds-text"].forEach((t=>{switch(t){case"mds-input-select":customElements.get(s(t))||customElements.define(s(t),h);break;case"mds-icon":customElements.get(s(t))||d();break;case"mds-input-tip":customElements.get(s(t))||m();break;case"mds-input-tip-item":customElements.get(s(t))||u();break;case"mds-text":customElements.get(s(t))||p()}}))};export{v as MdsInputSelect,g as defineCustomElement}
1
+ import{p as t,H as e,d as r,h as i,c as a,t as s}from"./p-pBvN1uAc.js";import{p as o}from"./p-zHpei4x6.js";import{m as n}from"./p-DiWN48aq.js";import{s as c}from"./p-wI0alRSO.js";import{u as l}from"./p-faViX-qz.js";import{d}from"./p-DmPLOktp.js";import{d as u}from"./p-ay5NzZ_x.js";import{d as p}from"./p-BXUJgu8l.js";import{d as m}from"./p-DLCcW1Q5.js";const h=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.changeEvent=r(this,"mdsInputSelectChange",7),this.internals=this.attachInternals(),this.adoptingSelection=!1,this.hasFocus=!1,this.formDisabled=!1,this.disabled=!1,this.required=!1,this.multiple=!1,this.rows=0,this.size="lg",this.value="",this.isDisabled=()=>!!this.disabled||this.formDisabled,this.onInput=()=>{this.adoptSelection(),this.syncSelection()},this.onBlur=()=>{this.hasFocus=!1},this.onFocus=()=>{this.hasFocus=!0},this.hasPlaceholder=()=>{var t;return""!==(null!==(t=this.placeholder)&&void 0!==t?t:"")},this.placeholderOption=()=>{var t,e;return null!==(e=null===(t=this.selectEl)||void 0===t?void 0:t.querySelector(".placeholder-option"))&&void 0!==e?e:null},this.emptyOptions=()=>{var t;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector("select"),r=null==e?void 0:e.querySelectorAll("option");r&&r.forEach(((t,e)=>{this.hasPlaceholder()||t.remove(),this.hasPlaceholder()&&e>0&&t.remove()}))},this.onSlotChangeHandler=()=>{var t,e,r;const i=null===(e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelectorAll("slot")[0])||void 0===e?void 0:e.assignedNodes(),a=null===(r=this.selectEl)||void 0===r?void 0:r.querySelectorAll("option");null!=a&&(!this.hasPlaceholder()&&a.length>0&&this.emptyOptions(),this.hasPlaceholder()&&a.length>1&&this.emptyOptions(),null==i||i.forEach((t=>{var e;null===(e=this.selectEl)||void 0===e||e.appendChild(t.cloneNode(!0))})),this.applySelection(!0),this.syncSelection())}}async setValue(t){return this.value=t,Promise.resolve()}valueChanged(){this.adoptingSelection||(this.applySelection(!1),this.syncSelection())}requiredChanged(){this.updateFormValidity()}nameChanged(){this.updateFormValue(this.selectedValues())}selectedValues(){var t;return null==this.selectEl?""===(null!==(t=this.value)&&void 0!==t?t:"")?[]:[""+this.value]:Array.from(this.selectEl.selectedOptions).filter((t=>!t.classList.contains("placeholder-option"))).map((t=>t.value))}syncSelection(){var t;const e=this.selectedValues();this.updateFormValue(e),this.updateFormValidity();const r=null===(t=this.value)||void 0===t?void 0:""+t,i=JSON.stringify([r,e]);i!==this.emittedSelection&&(this.emittedSelection=i,this.changeEvent.emit({value:r,values:e}))}updateFormValue(t){var e,r,i;if(!this.multiple)return void c(this.internals,null!==(r=null===(e=this.value)||void 0===e?void 0:""+e)&&void 0!==r?r:null);const a=null!==(i=this.name)&&void 0!==i?i:"";if(""===a||0===t.length)return void c(this.internals,null);const s=new FormData;t.forEach((t=>s.append(a,t))),c(this.internals,s)}updateFormValidity(){var t;const e=this.required&&""===(null!==(t=this.value)&&void 0!==t?t:"");l(this.internals,e?{rule:"requiredSelect"}:void 0,this.selectEl)}disabledChanged(t){t&&c(this.internals,null)}placeholderChanged(t,e){if(null!=this.selectEl&&null!=t&&""!==t&&""===(null!=e?e:"")){let e=this.placeholderOption();e&&e.remove(),e=document.createElement("option"),e.className="placeholder-option",this.selectEl.insertBefore(e,this.selectEl.firstChild),e.value="",e.text=t,(null==this.defaultValue||""===this.defaultValue||0===this.defaultValue||Number.isNaN(this.defaultValue))&&(e.selected=!0,this.value=void 0),this.required&&(e.disabled=!0)}}formDisabledCallback(t){this.formDisabled=t}formResetCallback(){if(null==this.selectEl)return;const t=Array.from(this.selectEl.querySelectorAll("option"));t.forEach((t=>{t.selected=t.defaultSelected}));const e=this.placeholderOption();e&&this.hasPlaceholder()&&!t.some((t=>t.defaultSelected))&&(e.selected=!0),this.adoptingSelection=!0,this.value=this.loadValue,this.adoptingSelection=!1,this.applySelection(!0),this.syncSelection()}legacyRows(){const t=this.size;return"number"==typeof t?t:"string"==typeof t&&/^\d+$/.test(t)?Number(t):void 0}sizeChanged(){void 0!==this.legacyRows()&&console.warn("<mds-input-select>: a number in `size` is deprecated: use `rows` for the visible option rows. `size` sets the height of the field (sm, md, lg).")}componentWillLoad(){this.sizeChanged(),null==this.defaultValue||""===this.defaultValue||0===this.defaultValue||Number.isNaN(this.defaultValue)||(this.value=this.defaultValue),this.loadValue=this.value}componentDidRender(){this.updateFormValidity()}componentDidLoad(){this.multiple||null==this.value||""===this.value||0===this.value||Number.isNaN(this.value)||c(this.internals,""+this.value)}adoptSelection(){null!=this.selectEl&&(this.adoptingSelection=!0,this.value=this.selectEl.value,this.adoptingSelection=!1)}applySelection(t){if(null==this.selectEl)return;if(null!=this.value&&""!==this.value&&0!==this.value&&!Number.isNaN(this.value))return void this.selectEl.querySelectorAll("option").forEach((t=>{t.selected=t.value===this.value}));if(t)return void this.adoptSelection();this.selectEl.querySelectorAll("option").forEach((t=>{t.selected=!1}));const e=this.placeholderOption();e&&this.hasPlaceholder()&&(e.selected=!0),this.adoptSelection()}render(){var t;return i(a,{key:"2147f4a3c6f82f38768fa01809c68f6d0ca884a5","pref-animation":o.state.animation,"pref-contrast":o.state.contrast,"pref-mode":o.state.mode,"pref-theme-scheme":o.state["theme-scheme"]},i("select",{key:"a87eee75fb77c0e06b8565043a76266e358d899d","aria-label":this.accessibleName,class:"input",onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,name:this.name,required:this.required,disabled:this.isDisabled(),multiple:this.multiple,size:this.rows||this.legacyRows()||0,part:"select",ref:t=>this.selectEl=t},i("option",{key:"b2eba36be682a9d4ece4e9c8ff433d2e2800cc1b",class:"placeholder-option",value:"",disabled:!!this.required||void 0,selected:!(null!=this.defaultValue&&""!==this.defaultValue&&0!==this.defaultValue&&!Number.isNaN(this.defaultValue))||void 0},this.placeholder)),i("div",{key:"1c27c64690a663cd69e31feab8fcb637337eb745",class:"icon-container"},i("mds-icon",{key:"356e612ede04a2f9680b7f4fc7d24d7aec2547a0",class:"icon",name:n})),i("div",{key:"691447852895c217ce0de926d74512d82f3b6e04",class:"option-container"},i("slot",{key:"48401803afaa996d2b65057dba6fbadbe34d3f6c",onSlotchange:this.onSlotChangeHandler})),i("mds-input-tip",{key:"1e7f76427ddfc80084c62568468607f8b49cba87",position:"top",active:this.hasFocus,part:"tip-top"},this.isDisabled()&&i("mds-input-tip-item",{key:"9a310c278b9308ef955356e75dc357cd8a4fd3a5",expanded:!0,variant:"disabled"}),this.required&&i("mds-input-tip-item",{key:"d22d1f57bccd35aefd1be4cec6f9699fe9c29279",expanded:this.hasFocus,variant:""===(null!==(t=this.value)&&void 0!==t?t:"")?"required":"required-success"})))}static get formAssociated(){return!0}get host(){return this}static get watchers(){return{value:[{valueChanged:0}],required:[{requiredChanged:0}],name:[{nameChanged:0}],disabled:[{disabledChanged:0}],placeholder:[{placeholderChanged:0}],size:[{sizeChanged:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-input-tip,mds-input-tip-item):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-select-variant-color-rgb:var(--magma-text-default,var(--text-neutral-default,5 5 5));--mds-input-select-ring:0 0 0 1px rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.1);--mds-input-select-shadow:0 1px 3px 0 rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.1),0 1px 2px 0 rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.06);--mds-input-select-arrow-icon-background-color:var(--mds-input-select-arrow-icon-blur-background-color,#0000);--mds-input-select-arrow-icon-blur-background-color:rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/0);--mds-input-select-arrow-icon-blur-color:rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.5);--mds-input-select-arrow-icon-color:var(--mds-input-select-arrow-icon-blur-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-select-arrow-icon-hover-background-color:rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.5);--mds-input-select-arrow-icon-hover-color:rgb(var(--mds-input-select-variant-color-rgb,0 0 0));--mds-input-tip-horizontal-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*1000);--mds-input-tip-vertical-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-input-select-transition-duration:var(--duration-300,.3s);--mds-input-select-icon-transition-duration:var(--duration-200,.2s);--private-input-select-transition-duration:var(--mds-input-select-transition-duration);--private-input-select-icon-transition-duration:var(--mds-input-select-icon-transition-duration);--private-input-select-height:calc(var(--spacing,.0025rem)*1200);--private-input-select-padding-inline:calc(var(--spacing,.0025rem)*400);--private-input-select-arrow-area:calc(var(--spacing,.0025rem)*1200);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));display:flex;position:relative;-webkit-user-select:none;user-select:none;--mds-input-select-variant-color-rgb:0 0 0;--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}:host([required]:not([required=false]):focus-within) .icon{transform:translate(calc(var(--spacing,.0025rem)*150),calc(var(--spacing,.0025rem)*150))}:host(:focus-within),:host(:hover){--mds-input-select-variant-color-rgb:var(--magma-accent-fg,var(--variant-primary-03,7 76 204));--mds-input-select-shadow:0 4px 6px -1px rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.1),0 2px 4px -1px rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/.06);--mds-input-select-arrow-icon-background-color:var(--mds-input-select-arrow-icon-hover-background-color,#0000);--mds-input-select-arrow-icon-color:var(--mds-input-select-arrow-icon-hover-color,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-select-variant-color-rgb:var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))}:host(:focus-within) .input,:host(:hover) .input{--mds-input-select-ring:0 0 0 3px rgb(var(--mds-input-select-variant-color-rgb,0 0 0)/1)}.input{font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;appearance:none;background-color:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));border:0;border-radius:var(--radius-xs,8px);box-shadow:var(--mds-input-select-ring),var(--mds-input-select-shadow);box-sizing:border-box;color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));cursor:pointer;margin:0;min-height:var(--private-input-select-height);overflow:hidden;padding-left:var(--private-input-select-padding-inline);padding-right:var(--private-input-select-arrow-area);text-overflow:ellipsis;transition-property:background-color,border-color,box-shadow,color,fill;width:100%}.input,.input:focus,.input:hover{transition-duration:var(--private-input-select-transition-duration);transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input:focus,.input:hover{--tw-outline-style:none;color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));outline-style:none}:host([value]:not([value=""])) .input{color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([required]:not([required=false])) .input{color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)))}.input:disabled{background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));opacity:1}:host([disabled]:not([disabled=false])),:host([disabled]:not([disabled=false])) .input{pointer-events:none}:host([disabled]:not([disabled=false])) .icon{fill:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));transform:translate(calc(var(--spacing,.0025rem)*250),calc(var(--spacing,.0025rem)*200))}.icon-container{align-items:center;color:inherit;display:flex;height:var(--private-input-select-height);pointer-events:none;position:absolute;right:var(--private-input-select-padding-inline)}.icon{background-color:var(--mds-input-select-arrow-icon-background-color,#0000);border-radius:var(--radius-full,1000px);display:flex;fill:var(--mds-input-select-arrow-icon-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));transition-duration:var(--private-input-select-icon-transition-duration);transition-property:background-color,fill}.icon svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}.option-container{display:none}mds-input-tip{--mds-input-tip-horizontal-offset:inherit;--mds-input-tip-horizontal-offset-focused:inherit;--mds-input-tip-vertical-offset:inherit;--mds-input-tip-background:inherit}@container (max-width:210px){:host .tip__content,:host(:focus-within) .tip__content{grid-template-columns:0fr;opacity:0}:host .tip{padding-left:0;padding-right:0}}:host([size=md]){--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*800);--private-input-select-height:calc(var(--spacing,.0025rem)*900);--private-input-select-padding-inline:calc(var(--spacing,.0025rem)*300);--private-input-select-arrow-area:calc(var(--spacing,.0025rem)*1000)}:host([size=sm]){--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*600);--private-input-select-height:calc(var(--spacing,.0025rem)*700);--private-input-select-padding-inline:calc(var(--spacing,.0025rem)*200);--private-input-select-arrow-area:calc(var(--spacing,.0025rem)*800)}:host([size=sm]) .icon{height:calc(var(--spacing,.0025rem)*400);width:calc(var(--spacing,.0025rem)*400)}:host([variant=info]){--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-select-variant-color-rgb:0 0 0}:host([variant=info]:focus-within),:host([variant=info]:hover){--mds-input-select-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-select-variant-color-rgb:0 0 0}:host([variant=success]:focus-within),:host([variant=success]:hover){--mds-input-select-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-select-variant-color-rgb:0 0 0}:host([variant=warning]:focus-within),:host([variant=warning]:hover){--mds-input-select-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-select-arrow-icon-blur-background-color:#0000;--mds-input-select-arrow-icon-hover-background-color:#0000;--mds-input-select-arrow-icon-blur-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-select-arrow-icon-hover-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-select-variant-color-rgb:0 0 0}:host([variant=error]:focus-within),:host([variant=error]:hover){--mds-input-select-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-select-transition-duration:0s;--private-input-select-icon-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-select-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .input{color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([pref-contrast=more]){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}:host([pref-contrast=more]) .input{color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-contrast=more][pref-mode=dark]){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}@media (forced-colors:active){.input:focus,.input:hover{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-select-transition-duration:0s;--private-input-select-icon-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-select-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .input{color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([pref-contrast=more]:not([pref-mode])),:host([pref-contrast=more][pref-mode=system]){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input{color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-contrast=system][pref-mode=dark]),:host([pref-mode=dark]:not([pref-contrast])){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){:host(:not([pref-contrast]):not([pref-mode])),:host([pref-contrast=system]:not([pref-mode])),:host([pref-contrast=system][pref-mode=system]),:host([pref-mode=system]:not([pref-contrast])){--mds-input-select-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}}'}},[321,"mds-input-select",{accessibleName:[1,"aria-label"],autocomplete:[513],autoFocus:[516,"auto-focus"],placeholder:[513],name:[513],disabled:[516],required:[516],multiple:[516],rows:[514],size:[520],value:[520],defaultValue:[520,"default-value"],variant:[513],hasFocus:[32],formDisabled:[32],setValue:[64]},void 0,{value:[{valueChanged:0}],required:[{requiredChanged:0}],name:[{nameChanged:0}],disabled:[{disabledChanged:0}],placeholder:[{placeholderChanged:0}],size:[{sizeChanged:0}]}]),v=h,g=function(){"undefined"!=typeof customElements&&["mds-input-select","mds-icon","mds-input-tip","mds-input-tip-item","mds-text"].forEach((t=>{switch(t){case"mds-input-select":customElements.get(s(t))||customElements.define(s(t),h);break;case"mds-icon":customElements.get(s(t))||d();break;case"mds-input-tip":customElements.get(s(t))||u();break;case"mds-input-tip-item":customElements.get(s(t))||p();break;case"mds-text":customElements.get(s(t))||m()}}))};export{v as MdsInputSelect,g as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as s}from"./p-B05zwjTY.js";const p=o,r=s;export{p as MdsInputSwitch,r as defineCustomElement}
1
+ import{M as o,d as s}from"./p-6LGfUDQ4.js";const p=o,r=s;export{p as MdsInputSwitch,r as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as s}from"./p-BOu_NOgd.js";const p=o,r=s;export{p as MdsInputTipItem,r as defineCustomElement}
1
+ import{M as o,d as s}from"./p-BXUJgu8l.js";const p=o,r=s;export{p as MdsInputTipItem,r as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as s}from"./p-CGkSDkOY.js";const p=o,r=s;export{p as MdsInputTip,r as defineCustomElement}
1
+ import{M as o,d as s}from"./p-ay5NzZ_x.js";const a=o,p=s;export{a as MdsInputTip,p as defineCustomElement}