@maggioli-design-system/magma 2.0.0-beta.2 → 2.0.0-beta.5

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 (1601) hide show
  1. package/README.md +46 -6
  2. package/dist/cjs/date-B28IitWe.js +24 -0
  3. package/dist/cjs/floating-controller-Cd_vNLLD.js +369 -0
  4. package/dist/cjs/floating-ui.dom-DflSHZIo.js +1688 -0
  5. package/dist/cjs/form-DTCBh5WK.js +22 -0
  6. package/dist/cjs/index--6wz7eWi.js +5183 -0
  7. package/dist/cjs/index.cjs.js +17 -0
  8. package/dist/cjs/keyboard-manager-C_Eaxw-C.js +52 -0
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/locale-CB5_Z7PE.js +816 -0
  11. package/dist/cjs/magma-components.cjs.js +31 -4
  12. package/dist/cjs/mds-accordion-item.cjs.entry.js +7 -6
  13. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +8 -7
  14. package/dist/cjs/mds-accordion-timer.cjs.entry.js +3 -3
  15. package/dist/cjs/mds-accordion.cjs.entry.js +17 -7
  16. package/dist/cjs/mds-author.cjs.entry.js +9 -4
  17. package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +2 -2
  18. package/dist/cjs/mds-avatar-stack.cjs.entry.js +5 -4
  19. package/dist/cjs/mds-avatar.cjs.entry.js +15 -12
  20. package/dist/cjs/mds-badge.cjs.entry.js +5 -4
  21. package/dist/cjs/mds-banner_3.cjs.entry.js +40 -36
  22. package/dist/cjs/mds-benchmark-bar.cjs.entry.js +3 -3
  23. package/dist/cjs/mds-bibliography.cjs.entry.js +2 -2
  24. package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +3 -3
  25. package/dist/cjs/mds-breadcrumb.cjs.entry.js +12 -20
  26. package/dist/cjs/mds-button-dropdown.cjs.entry.js +3 -3
  27. package/dist/cjs/mds-button-group.cjs.entry.js +3 -3
  28. package/dist/cjs/mds-button_3.cjs.entry.js +13 -14
  29. package/dist/cjs/mds-calendar_2.cjs.entry.js +183 -160
  30. package/dist/cjs/mds-card-content.cjs.entry.js +2 -2
  31. package/dist/cjs/mds-card-footer.cjs.entry.js +2 -2
  32. package/dist/cjs/mds-card-header.cjs.entry.js +9 -4
  33. package/dist/cjs/mds-card-media.cjs.entry.js +2 -2
  34. package/dist/cjs/mds-card.cjs.entry.js +6 -5
  35. package/dist/cjs/mds-details.cjs.entry.js +8 -6
  36. package/dist/cjs/mds-dropdown.cjs.entry.js +201 -55
  37. package/dist/cjs/mds-emoji.cjs.entry.js +301 -181
  38. package/dist/cjs/mds-entity.cjs.entry.js +11 -5
  39. package/dist/cjs/mds-file-preview.cjs.entry.js +8 -14
  40. package/dist/cjs/mds-file.cjs.entry.js +8 -14
  41. package/dist/cjs/mds-filter-item.cjs.entry.js +6 -5
  42. package/dist/cjs/mds-filter.cjs.entry.js +19 -10
  43. package/dist/cjs/mds-header-bar.cjs.entry.js +11 -5
  44. package/dist/cjs/mds-header.cjs.entry.js +10 -8
  45. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +2 -2
  46. package/dist/cjs/mds-hr.cjs.entry.js +4 -3
  47. package/dist/cjs/mds-img.cjs.entry.js +11 -18
  48. package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +2 -2
  49. package/dist/cjs/mds-input-date-range.cjs.entry.js +61 -30
  50. package/dist/cjs/mds-input-date.cjs.entry.js +28 -34
  51. package/dist/cjs/mds-input-field.cjs.entry.js +42 -6
  52. package/dist/cjs/mds-input-otp.cjs.entry.js +38 -4
  53. package/dist/cjs/mds-input-range.cjs.entry.js +9 -7
  54. package/dist/cjs/mds-input-select.cjs.entry.js +11 -19
  55. package/dist/cjs/mds-input-switch_2.cjs.entry.js +19 -32
  56. package/dist/cjs/mds-input-tip_2.cjs.entry.js +8 -17
  57. package/dist/cjs/mds-input-upload.cjs.entry.js +45 -37
  58. package/dist/cjs/mds-input.cjs.entry.js +26 -32
  59. package/dist/cjs/mds-keyboard-key.cjs.entry.js +5 -14
  60. package/dist/cjs/mds-keyboard.cjs.entry.js +20 -21
  61. package/dist/cjs/mds-kpi-item.cjs.entry.js +12 -3
  62. package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
  63. package/dist/cjs/mds-label.cjs.entry.js +7 -13
  64. package/dist/cjs/mds-list-item.cjs.entry.js +4 -3
  65. package/dist/cjs/mds-list.cjs.entry.js +2 -2
  66. package/dist/cjs/mds-mention.cjs.entry.js +38 -4
  67. package/dist/cjs/mds-modal.cjs.entry.js +150 -65
  68. package/dist/cjs/mds-note.cjs.entry.js +7 -15
  69. package/dist/cjs/mds-notification.cjs.entry.js +16 -8
  70. package/dist/cjs/mds-paginator-item.cjs.entry.js +5 -4
  71. package/dist/cjs/mds-paginator.cjs.entry.js +42 -10
  72. package/dist/cjs/mds-policy-ai.cjs.entry.js +8 -15
  73. package/dist/cjs/mds-pref-animation.cjs.entry.js +10 -19
  74. package/dist/cjs/mds-pref-consumption.cjs.entry.js +10 -19
  75. package/dist/cjs/mds-pref-contrast.cjs.entry.js +13 -20
  76. package/dist/cjs/mds-pref-language-item.cjs.entry.js +28 -16
  77. package/dist/cjs/mds-pref-language.cjs.entry.js +38 -28
  78. package/dist/cjs/mds-pref-mode.cjs.entry.js +273 -0
  79. package/dist/cjs/mds-pref-theme-item.cjs.entry.js +43 -0
  80. package/dist/cjs/mds-pref-theme.cjs.entry.js +148 -222
  81. package/dist/cjs/mds-pref.cjs.entry.js +41 -18
  82. package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +4 -3
  83. package/dist/cjs/mds-price-table-features-row.cjs.entry.js +4 -3
  84. package/dist/cjs/mds-price-table-features.cjs.entry.js +4 -3
  85. package/dist/cjs/mds-price-table-header.cjs.entry.js +3 -3
  86. package/dist/cjs/mds-price-table-list-item.cjs.entry.js +3 -3
  87. package/dist/cjs/mds-price-table-list.cjs.entry.js +4 -3
  88. package/dist/cjs/mds-price-table.cjs.entry.js +3 -3
  89. package/dist/cjs/mds-progress_2.cjs.entry.js +7 -11
  90. package/dist/cjs/mds-push-notification-item.cjs.entry.js +19 -20
  91. package/dist/cjs/mds-push-notification.cjs.entry.js +7 -6
  92. package/dist/cjs/mds-quote.cjs.entry.js +4 -3
  93. package/dist/cjs/mds-radial-menu-item.cjs.entry.js +3 -3
  94. package/dist/cjs/mds-radial-menu.cjs.entry.js +7 -6
  95. package/dist/cjs/mds-separator.cjs.entry.js +4 -3
  96. package/dist/cjs/mds-status-bar.cjs.entry.js +5 -4
  97. package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +14 -17
  98. package/dist/cjs/mds-stepper-bar.cjs.entry.js +21 -12
  99. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +6 -5
  100. package/dist/cjs/mds-tab-bar.cjs.entry.js +5 -4
  101. package/dist/cjs/mds-tab_2.cjs.entry.js +28 -11
  102. package/dist/cjs/mds-table-body.cjs.entry.js +4 -3
  103. package/dist/cjs/mds-table-footer.cjs.entry.js +4 -3
  104. package/dist/cjs/mds-table-header-cell.cjs.entry.js +4 -3
  105. package/dist/cjs/mds-table-header.cjs.entry.js +19 -21
  106. package/dist/cjs/mds-table-row.cjs.entry.js +20 -21
  107. package/dist/cjs/mds-table.cjs.entry.js +62 -30
  108. package/dist/cjs/mds-text.cjs.entry.js +36 -11
  109. package/dist/cjs/mds-toast.cjs.entry.js +10 -5
  110. package/dist/cjs/mds-tooltip.cjs.entry.js +30 -21
  111. package/dist/cjs/mds-tree-item.cjs.entry.js +36 -14
  112. package/dist/cjs/mds-tree.cjs.entry.js +44 -6
  113. package/dist/cjs/mds-url-view.cjs.entry.js +21 -21
  114. package/dist/cjs/mds-usage.cjs.entry.js +5 -11
  115. package/dist/cjs/mds-video-wall.cjs.entry.js +8 -4
  116. package/dist/cjs/mds-zero.cjs.entry.js +4 -3
  117. package/dist/cjs/preference-eJcbLLAn.js +389 -0
  118. package/dist/cjs/slot-RmXfgH4P.js +69 -0
  119. package/dist/collection/collection-manifest.json +3 -3
  120. package/dist/collection/common/date.js +9 -1
  121. package/dist/collection/common/floating-controller.js +180 -14
  122. package/dist/collection/common/form.js +18 -0
  123. package/dist/collection/common/keyboard-manager.js +5 -5
  124. package/dist/collection/common/locale.js +9 -31
  125. package/dist/collection/common/preference.js +102 -0
  126. package/dist/collection/common/slot.js +14 -1
  127. package/dist/collection/common/yugop/random-text.js +12 -3
  128. package/dist/collection/components/mds-accordion/mds-accordion.css +16 -72
  129. package/dist/collection/components/mds-accordion/mds-accordion.js +18 -8
  130. package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +89 -96
  131. package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +2 -1
  132. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +2 -37
  133. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +66 -44
  134. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +2 -1
  135. package/dist/collection/components/mds-author/mds-author.css +5 -1
  136. package/dist/collection/components/mds-author/mds-author.js +14 -2
  137. package/dist/collection/components/mds-avatar/mds-avatar.css +151 -129
  138. package/dist/collection/components/mds-avatar/mds-avatar.js +13 -10
  139. package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +30 -77
  140. package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +3 -2
  141. package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.css +11 -137
  142. package/dist/collection/components/mds-badge/mds-badge.css +197 -164
  143. package/dist/collection/components/mds-badge/mds-badge.js +2 -1
  144. package/dist/collection/components/mds-banner/mds-banner.css +174 -196
  145. package/dist/collection/components/mds-banner/mds-banner.js +16 -40
  146. package/dist/collection/components/mds-bibliography/mds-bibliography.css +8 -26
  147. package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +6 -82
  148. package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +11 -46
  149. package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +15 -67
  150. package/dist/collection/components/mds-button/mds-button.css +307 -357
  151. package/dist/collection/components/mds-button/mds-button.js +4 -3
  152. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +24 -34
  153. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +1 -1
  154. package/dist/collection/components/mds-button-group/mds-button-group.css +24 -0
  155. package/dist/collection/components/mds-button-group/mds-button-group.js +2 -2
  156. package/dist/collection/components/mds-calendar/mds-calendar.css +13 -69
  157. package/dist/collection/components/mds-calendar/mds-calendar.js +210 -185
  158. package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +88 -299
  159. package/dist/collection/components/mds-card/mds-card.css +18 -31
  160. package/dist/collection/components/mds-card/mds-card.js +8 -7
  161. package/dist/collection/components/mds-card-content/mds-card-content.css +1 -0
  162. package/dist/collection/components/mds-card-footer/mds-card-footer.css +1 -0
  163. package/dist/collection/components/mds-card-header/mds-card-header.css +5 -0
  164. package/dist/collection/components/mds-card-header/mds-card-header.js +14 -2
  165. package/dist/collection/components/mds-card-media/mds-card-media.css +1 -1
  166. package/dist/collection/components/mds-chip/mds-chip.css +350 -297
  167. package/dist/collection/components/mds-chip/mds-chip.js +19 -37
  168. package/dist/collection/components/mds-details/mds-details.css +75 -38
  169. package/dist/collection/components/mds-details/mds-details.js +4 -2
  170. package/dist/collection/components/mds-dropdown/mds-dropdown.css +126 -124
  171. package/dist/collection/components/mds-dropdown/mds-dropdown.js +210 -62
  172. package/dist/collection/components/mds-emoji/asset/mia.svg +3 -3
  173. package/dist/collection/components/mds-emoji/mds-emoji.css +15 -179
  174. package/dist/collection/components/mds-emoji/mds-emoji.js +297 -177
  175. package/dist/collection/components/mds-entity/mds-entity.css +35 -77
  176. package/dist/collection/components/mds-entity/mds-entity.js +17 -3
  177. package/dist/collection/components/mds-file/mds-file.css +131 -95
  178. package/dist/collection/components/mds-file/mds-file.js +8 -36
  179. package/dist/collection/components/mds-file-preview/mds-file-preview.css +313 -236
  180. package/dist/collection/components/mds-file-preview/mds-file-preview.js +4 -36
  181. package/dist/collection/components/mds-filter/mds-filter.css +103 -98
  182. package/dist/collection/components/mds-filter/mds-filter.js +16 -7
  183. package/dist/collection/components/mds-filter-item/mds-filter-item.css +102 -62
  184. package/dist/collection/components/mds-filter-item/mds-filter-item.js +2 -1
  185. package/dist/collection/components/mds-header/mds-header.css +29 -71
  186. package/dist/collection/components/mds-header/mds-header.js +10 -8
  187. package/dist/collection/components/mds-header-bar/mds-header-bar.css +82 -33
  188. package/dist/collection/components/mds-header-bar/mds-header-bar.js +9 -2
  189. package/dist/collection/components/mds-help/mds-help.css +1 -19
  190. package/dist/collection/components/mds-help/mds-help.js +7 -7
  191. package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +23 -118
  192. package/dist/collection/components/mds-hr/mds-hr.css +6 -12
  193. package/dist/collection/components/mds-hr/mds-hr.js +2 -1
  194. package/dist/collection/components/mds-icon/mds-icon.js +2 -4
  195. package/dist/collection/components/mds-icon/services/icons-set.service.js +16 -0
  196. package/dist/collection/components/mds-img/mds-img.css +12 -48
  197. package/dist/collection/components/mds-img/mds-img.js +8 -38
  198. package/dist/collection/components/mds-input/mds-input.css +147 -211
  199. package/dist/collection/components/mds-input/mds-input.js +36 -41
  200. package/dist/collection/components/mds-input-date/mds-input-date.css +137 -135
  201. package/dist/collection/components/mds-input-date/mds-input-date.js +63 -48
  202. package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +130 -100
  203. package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +81 -45
  204. package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.css +19 -73
  205. package/dist/collection/components/mds-input-field/mds-input-field.css +65 -29
  206. package/dist/collection/components/mds-input-field/mds-input-field.js +41 -4
  207. package/dist/collection/components/mds-input-otp/mds-input-otp.js +38 -2
  208. package/dist/collection/components/mds-input-range/mds-input-range.css +92 -49
  209. package/dist/collection/components/mds-input-range/mds-input-range.js +6 -4
  210. package/dist/collection/components/mds-input-select/mds-input-select.css +158 -179
  211. package/dist/collection/components/mds-input-select/mds-input-select.js +28 -35
  212. package/dist/collection/components/mds-input-switch/mds-input-switch.css +96 -249
  213. package/dist/collection/components/mds-input-switch/mds-input-switch.js +12 -47
  214. package/dist/collection/components/mds-input-tip/mds-input-tip.css +61 -38
  215. package/dist/collection/components/mds-input-tip/mds-input-tip.js +2 -1
  216. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +113 -72
  217. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +3 -38
  218. package/dist/collection/components/mds-input-upload/mds-input-upload.css +28 -42
  219. package/dist/collection/components/mds-input-upload/mds-input-upload.js +41 -52
  220. package/dist/collection/components/mds-keyboard/mds-keyboard.css +37 -125
  221. package/dist/collection/components/mds-keyboard/mds-keyboard.js +17 -40
  222. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +4 -28
  223. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -37
  224. package/dist/collection/components/mds-kpi/mds-kpi.css +6 -11
  225. package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +139 -72
  226. package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +10 -1
  227. package/dist/collection/components/mds-label/mds-label.css +278 -356
  228. package/dist/collection/components/mds-label/mds-label.js +3 -35
  229. package/dist/collection/components/mds-list/mds-list.css +4 -5
  230. package/dist/collection/components/mds-list-item/mds-list-item.css +14 -17
  231. package/dist/collection/components/mds-list-item/mds-list-item.js +2 -1
  232. package/dist/collection/components/mds-mention/mds-mention.css +19 -10
  233. package/dist/collection/components/mds-mention/mds-mention.js +62 -2
  234. package/dist/collection/components/mds-modal/mds-modal.css +256 -155
  235. package/dist/collection/components/mds-modal/mds-modal.js +177 -91
  236. package/dist/collection/components/mds-note/mds-note.css +262 -228
  237. package/dist/collection/components/mds-note/mds-note.js +3 -37
  238. package/dist/collection/components/mds-notification/mds-notification.css +88 -114
  239. package/dist/collection/components/mds-notification/mds-notification.js +17 -9
  240. package/dist/collection/components/mds-paginator/mds-paginator.css +111 -55
  241. package/dist/collection/components/mds-paginator/mds-paginator.js +39 -7
  242. package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +103 -107
  243. package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +2 -1
  244. package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +19 -16
  245. package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +4 -38
  246. package/dist/collection/components/mds-pref/mds-pref.js +40 -40
  247. package/dist/collection/components/mds-pref-animation/mds-pref-animation.css +58 -9
  248. package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +7 -42
  249. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.css +20 -15
  250. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +7 -42
  251. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.css +12 -7
  252. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +10 -43
  253. package/dist/collection/components/mds-pref-language/mds-pref-language.css +3 -3
  254. package/dist/collection/components/mds-pref-language/mds-pref-language.js +35 -46
  255. package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +24 -38
  256. package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +79 -0
  257. package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +372 -0
  258. package/dist/collection/components/mds-pref-mode/meta/dictionary.js +3 -0
  259. package/dist/collection/components/mds-pref-theme/mds-pref-theme.css +12 -77
  260. package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +184 -228
  261. package/dist/collection/components/mds-pref-theme/meta/dictionary.js +2 -3
  262. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +70 -0
  263. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +160 -0
  264. package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
  265. package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +69 -41
  266. package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +2 -1
  267. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +106 -87
  268. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +2 -1
  269. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +99 -55
  270. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +2 -1
  271. package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
  272. package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +99 -48
  273. package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +2 -1
  274. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +9 -36
  275. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
  276. package/dist/collection/components/mds-progress/mds-progress.css +132 -108
  277. package/dist/collection/components/mds-progress/mds-progress.js +2 -1
  278. package/dist/collection/components/mds-push-notification/mds-push-notification.css +17 -41
  279. package/dist/collection/components/mds-push-notification/mds-push-notification.js +2 -1
  280. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +211 -162
  281. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +18 -39
  282. package/dist/collection/components/mds-quote/mds-quote.css +11 -7
  283. package/dist/collection/components/mds-quote/mds-quote.js +2 -1
  284. package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +6 -60
  285. package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +3 -2
  286. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.css +1 -7
  287. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
  288. package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +24 -30
  289. package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +3 -7
  290. package/dist/collection/components/mds-separator/mds-separator.css +14 -34
  291. package/dist/collection/components/mds-separator/mds-separator.js +2 -1
  292. package/dist/collection/components/mds-spinner/mds-spinner.css +32 -32
  293. package/dist/collection/components/mds-spinner/mds-spinner.js +2 -1
  294. package/dist/collection/components/mds-status-bar/mds-status-bar.css +31 -38
  295. package/dist/collection/components/mds-status-bar/mds-status-bar.js +3 -2
  296. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +21 -88
  297. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +18 -9
  298. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +101 -163
  299. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +10 -35
  300. package/dist/collection/components/mds-tab/mds-tab.css +125 -199
  301. package/dist/collection/components/mds-tab/mds-tab.js +19 -4
  302. package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +85 -20
  303. package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +2 -1
  304. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +94 -56
  305. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +2 -1
  306. package/dist/collection/components/mds-tab-item/mds-tab-item.css +33 -43
  307. package/dist/collection/components/mds-tab-item/mds-tab-item.js +75 -1
  308. package/dist/collection/components/mds-table/mds-table.css +102 -126
  309. package/dist/collection/components/mds-table/mds-table.js +59 -28
  310. package/dist/collection/components/mds-table-body/mds-table-body.css +72 -49
  311. package/dist/collection/components/mds-table-body/mds-table-body.js +2 -1
  312. package/dist/collection/components/mds-table-cell/mds-table-cell.css +79 -40
  313. package/dist/collection/components/mds-table-cell/mds-table-cell.js +2 -1
  314. package/dist/collection/components/mds-table-footer/mds-table-footer.css +62 -8
  315. package/dist/collection/components/mds-table-footer/mds-table-footer.js +2 -1
  316. package/dist/collection/components/mds-table-header/mds-table-header.css +62 -8
  317. package/dist/collection/components/mds-table-header/mds-table-header.js +17 -37
  318. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.css +67 -17
  319. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +2 -1
  320. package/dist/collection/components/mds-table-row/mds-table-row.css +92 -63
  321. package/dist/collection/components/mds-table-row/mds-table-row.js +38 -41
  322. package/dist/collection/components/mds-text/mds-text.css +25 -43
  323. package/dist/collection/components/mds-text/mds-text.js +23 -7
  324. package/dist/collection/components/mds-toast/mds-toast.css +139 -105
  325. package/dist/collection/components/mds-toast/mds-toast.js +13 -3
  326. package/dist/collection/components/mds-tooltip/mds-tooltip.css +96 -96
  327. package/dist/collection/components/mds-tooltip/mds-tooltip.js +37 -28
  328. package/dist/collection/components/mds-tree/mds-tree.css +22 -214
  329. package/dist/collection/components/mds-tree/mds-tree.js +42 -4
  330. package/dist/collection/components/mds-tree-item/mds-tree-item.css +193 -343
  331. package/dist/collection/components/mds-tree-item/mds-tree-item.js +87 -14
  332. package/dist/collection/components/mds-url-view/mds-url-view.css +97 -59
  333. package/dist/collection/components/mds-url-view/mds-url-view.js +17 -43
  334. package/dist/collection/components/mds-usage/mds-usage.css +100 -97
  335. package/dist/collection/components/mds-usage/mds-usage.js +2 -34
  336. package/dist/collection/components/mds-video-wall/mds-video-wall.css +24 -40
  337. package/dist/collection/components/mds-video-wall/mds-video-wall.js +12 -2
  338. package/dist/collection/components/mds-zero/mds-zero.css +88 -34
  339. package/dist/collection/components/mds-zero/mds-zero.js +2 -1
  340. package/dist/collection/event-detail/theme.js +1 -0
  341. package/dist/collection/type/preference.js +22 -3
  342. package/dist/components/index.d.ts +230 -0
  343. package/dist/components/index.js +1 -1
  344. package/dist/components/mds-accordion-item.js +1 -1
  345. package/dist/components/mds-accordion-timer-item.js +1 -1
  346. package/dist/components/mds-accordion-timer.js +1 -1
  347. package/dist/components/mds-accordion.js +1 -1
  348. package/dist/components/mds-author.js +1 -1
  349. package/dist/components/mds-avatar-stack-item.js +1 -1
  350. package/dist/components/mds-avatar-stack.js +1 -1
  351. package/dist/components/mds-avatar.js +1 -1
  352. package/dist/components/mds-badge.js +1 -1
  353. package/dist/components/mds-banner.js +1 -1
  354. package/dist/components/mds-benchmark-bar.js +1 -1
  355. package/dist/components/mds-bibliography.js +1 -1
  356. package/dist/components/mds-breadcrumb-item.js +1 -1
  357. package/dist/components/mds-breadcrumb.js +1 -1
  358. package/dist/components/mds-button-dropdown.js +1 -1
  359. package/dist/components/mds-button-group.js +1 -1
  360. package/dist/components/mds-button.js +1 -1
  361. package/dist/components/mds-calendar-cell.js +1 -1
  362. package/dist/components/mds-calendar.js +1 -1
  363. package/dist/components/mds-card-content.js +1 -1
  364. package/dist/components/mds-card-footer.js +1 -1
  365. package/dist/components/mds-card-header.js +1 -1
  366. package/dist/components/mds-card-media.js +1 -1
  367. package/dist/components/mds-card.js +1 -1
  368. package/dist/components/mds-chip.js +1 -1
  369. package/dist/components/mds-details.js +1 -1
  370. package/dist/components/mds-dropdown.js +1 -1
  371. package/dist/components/mds-emoji.js +3 -3
  372. package/dist/components/mds-entity.js +1 -1
  373. package/dist/components/mds-file-preview.js +1 -1
  374. package/dist/components/mds-file.js +3 -3
  375. package/dist/components/mds-filter-item.js +1 -1
  376. package/dist/components/mds-filter.js +1 -1
  377. package/dist/components/mds-header-bar.js +1 -1
  378. package/dist/components/mds-header.js +1 -1
  379. package/dist/components/mds-help.js +1 -1
  380. package/dist/components/mds-horizontal-scroll.js +1 -1
  381. package/dist/components/mds-hr.js +1 -1
  382. package/dist/components/mds-icon.js +1 -1
  383. package/dist/components/mds-img.js +1 -1
  384. package/dist/components/mds-input-date-range-preselection.js +1 -1
  385. package/dist/components/mds-input-date-range.js +1 -1
  386. package/dist/components/mds-input-date.js +1 -1
  387. package/dist/components/mds-input-field.js +1 -1
  388. package/dist/components/mds-input-otp.js +1 -1
  389. package/dist/components/mds-input-range.js +1 -1
  390. package/dist/components/mds-input-select.js +1 -1
  391. package/dist/components/mds-input-switch.js +1 -1
  392. package/dist/components/mds-input-tip-item.js +1 -1
  393. package/dist/components/mds-input-tip.js +1 -1
  394. package/dist/components/mds-input-upload.js +1 -1
  395. package/dist/components/mds-input.js +1 -1
  396. package/dist/components/mds-keyboard-key.js +1 -1
  397. package/dist/components/mds-keyboard.js +1 -1
  398. package/dist/components/mds-kpi-item.js +1 -1
  399. package/dist/components/mds-kpi.js +1 -1
  400. package/dist/components/mds-label.js +1 -1
  401. package/dist/components/mds-list-item.js +1 -1
  402. package/dist/components/mds-list.js +1 -1
  403. package/dist/components/mds-mention.js +1 -1
  404. package/dist/components/mds-modal.js +1 -1
  405. package/dist/components/mds-note.js +1 -1
  406. package/dist/components/mds-notification.js +1 -1
  407. package/dist/components/mds-paginator-item.js +1 -1
  408. package/dist/components/mds-paginator.js +1 -1
  409. package/dist/components/mds-policy-ai.js +1 -1
  410. package/dist/components/mds-pref-animation.js +1 -1
  411. package/dist/components/mds-pref-consumption.js +1 -1
  412. package/dist/components/mds-pref-contrast.js +1 -1
  413. package/dist/components/mds-pref-language-item.js +1 -1
  414. package/dist/components/mds-pref-language.js +1 -1
  415. package/dist/components/mds-pref-mode.d.ts +11 -0
  416. package/dist/components/mds-pref-mode.js +1 -0
  417. package/dist/components/mds-pref-theme-item.d.ts +11 -0
  418. package/dist/components/mds-pref-theme-item.js +1 -0
  419. package/dist/components/mds-pref-theme.js +1 -1
  420. package/dist/components/mds-pref.js +1 -1
  421. package/dist/components/mds-price-table-features-cell.js +1 -1
  422. package/dist/components/mds-price-table-features-row.js +1 -1
  423. package/dist/components/mds-price-table-features.js +1 -1
  424. package/dist/components/mds-price-table-header.js +1 -1
  425. package/dist/components/mds-price-table-list-item.js +1 -1
  426. package/dist/components/mds-price-table-list.js +1 -1
  427. package/dist/components/mds-price-table.js +1 -1
  428. package/dist/components/mds-progress.js +1 -1
  429. package/dist/components/mds-push-notification-item.js +1 -1
  430. package/dist/components/mds-push-notification.js +1 -1
  431. package/dist/components/mds-quote.js +1 -1
  432. package/dist/components/mds-radial-menu-item.js +1 -1
  433. package/dist/components/mds-radial-menu.js +1 -1
  434. package/dist/components/mds-radial-progress.js +1 -1
  435. package/dist/components/mds-separator.js +1 -1
  436. package/dist/components/mds-spinner.js +1 -1
  437. package/dist/components/mds-status-bar.js +1 -1
  438. package/dist/components/mds-stepper-bar-item.js +1 -1
  439. package/dist/components/mds-stepper-bar.js +1 -1
  440. package/dist/components/mds-tab-bar-item.js +1 -1
  441. package/dist/components/mds-tab-bar.js +1 -1
  442. package/dist/components/mds-tab-item.js +1 -1
  443. package/dist/components/mds-tab.js +1 -1
  444. package/dist/components/mds-table-body.js +1 -1
  445. package/dist/components/mds-table-cell.js +1 -1
  446. package/dist/components/mds-table-footer.js +1 -1
  447. package/dist/components/mds-table-header-cell.js +1 -1
  448. package/dist/components/mds-table-header.js +1 -1
  449. package/dist/components/mds-table-row.js +1 -1
  450. package/dist/components/mds-table.js +1 -1
  451. package/dist/components/mds-text.js +1 -1
  452. package/dist/components/mds-toast.js +1 -1
  453. package/dist/components/mds-tooltip.js +1 -1
  454. package/dist/components/mds-tree-item.js +1 -1
  455. package/dist/components/mds-tree.js +1 -1
  456. package/dist/components/mds-url-view.js +1 -1
  457. package/dist/components/mds-usage.js +1 -1
  458. package/dist/components/mds-video-wall.js +1 -1
  459. package/dist/components/mds-zero.js +1 -1
  460. package/dist/components/p--8aaJX-p.js +1 -0
  461. package/dist/components/p-A9TZf0Ii.js +1 -0
  462. package/dist/components/p-B14Ci2fO.js +1 -0
  463. package/dist/components/p-B2A_hlV2.js +1 -0
  464. package/dist/components/p-B9DJLgwr.js +1 -0
  465. package/dist/components/p-BH3bWzRT.js +1 -0
  466. package/dist/components/p-BJNK4p33.js +1 -0
  467. package/dist/components/p-BNHXZ-JR.js +1 -0
  468. package/dist/components/p-BSxuG1vZ.js +1 -0
  469. package/dist/components/p-BTHR4xXu.js +1 -0
  470. package/dist/components/p-BhFTcUD0.js +3 -0
  471. package/dist/components/p-BouRLCYL.js +1 -0
  472. package/dist/components/p-Bss3F51Q.js +5 -0
  473. package/dist/components/p-Bt4xX5ww.js +1 -0
  474. package/dist/components/p-C03KYHGv.js +1 -0
  475. package/dist/components/p-C58NKMEE.js +1 -0
  476. package/dist/components/p-CACEYk42.js +1 -0
  477. package/dist/components/p-CBLAz3_J.js +1 -0
  478. package/dist/components/p-CHAGzQT-.js +1 -0
  479. package/dist/components/p-CVgKDZPF.js +1 -0
  480. package/dist/components/p-CVpjH8Un.js +1 -0
  481. package/dist/components/p-Caksrfcd.js +1 -0
  482. package/dist/components/p-CatD1iUY.js +1 -0
  483. package/dist/components/p-CbufYCNj.js +1 -0
  484. package/dist/components/p-Cehcn85x.js +1 -0
  485. package/dist/components/p-CsgCQiHG.js +1 -0
  486. package/dist/components/p-CvIFS8oA.js +1 -0
  487. package/dist/components/p-D3-GP4KF.js +1 -0
  488. package/dist/components/p-D8I1RblC.js +1 -0
  489. package/dist/components/p-DLE5TNTp.js +1 -0
  490. package/dist/components/p-DaI5QqNu.js +1 -0
  491. package/dist/components/p-Deh5Aia-.js +1 -0
  492. package/dist/components/p-Dj_oN194.js +1 -0
  493. package/dist/components/p-DmELzfvf.js +1 -0
  494. package/dist/components/p-DtxB7DYE.js +1 -0
  495. package/dist/components/p-KRu9I7dw.js +1 -0
  496. package/dist/components/p-cBZsPiMJ.js +1 -0
  497. package/dist/components/p-sUKtonkE.js +8 -0
  498. package/dist/components/p-sqRs6oj4.js +1 -0
  499. package/dist/components/p-wq6nWuWE.js +1 -0
  500. package/dist/documentation.json +1203 -1484
  501. package/dist/esm/date-CACEYk42.js +22 -0
  502. package/dist/esm/floating-controller-DVldZ5mh.js +366 -0
  503. package/dist/esm/floating-ui.dom-CHAGzQT-.js +1680 -0
  504. package/dist/esm/form-A9TZf0Ii.js +19 -0
  505. package/dist/esm/index-DIiEV39g.js +5149 -0
  506. package/dist/esm/index.js +17 -0
  507. package/dist/esm/keyboard-manager-KRu9I7dw.js +50 -0
  508. package/dist/esm/loader.js +3 -3
  509. package/dist/esm/locale-CbJbTW_c.js +814 -0
  510. package/dist/esm/magma-components.js +32 -5
  511. package/dist/esm/mds-accordion-item.entry.js +7 -6
  512. package/dist/esm/mds-accordion-timer-item.entry.js +8 -7
  513. package/dist/esm/mds-accordion-timer.entry.js +3 -3
  514. package/dist/esm/mds-accordion.entry.js +17 -7
  515. package/dist/esm/mds-author.entry.js +9 -4
  516. package/dist/esm/mds-avatar-stack-item.entry.js +2 -2
  517. package/dist/esm/mds-avatar-stack.entry.js +5 -4
  518. package/dist/esm/mds-avatar.entry.js +15 -12
  519. package/dist/esm/mds-badge.entry.js +5 -4
  520. package/dist/esm/mds-banner_3.entry.js +40 -36
  521. package/dist/esm/mds-benchmark-bar.entry.js +3 -3
  522. package/dist/esm/mds-bibliography.entry.js +2 -2
  523. package/dist/esm/mds-breadcrumb-item.entry.js +3 -3
  524. package/dist/esm/mds-breadcrumb.entry.js +12 -20
  525. package/dist/esm/mds-button-dropdown.entry.js +3 -3
  526. package/dist/esm/mds-button-group.entry.js +3 -3
  527. package/dist/esm/mds-button_3.entry.js +13 -14
  528. package/dist/esm/mds-calendar_2.entry.js +183 -160
  529. package/dist/esm/mds-card-content.entry.js +2 -2
  530. package/dist/esm/mds-card-footer.entry.js +2 -2
  531. package/dist/esm/mds-card-header.entry.js +9 -4
  532. package/dist/esm/mds-card-media.entry.js +2 -2
  533. package/dist/esm/mds-card.entry.js +6 -5
  534. package/dist/esm/mds-details.entry.js +8 -6
  535. package/dist/esm/mds-dropdown.entry.js +201 -55
  536. package/dist/esm/mds-emoji.entry.js +301 -181
  537. package/dist/esm/mds-entity.entry.js +11 -5
  538. package/dist/esm/mds-file-preview.entry.js +8 -14
  539. package/dist/esm/mds-file.entry.js +8 -14
  540. package/dist/esm/mds-filter-item.entry.js +6 -5
  541. package/dist/esm/mds-filter.entry.js +19 -10
  542. package/dist/esm/mds-header-bar.entry.js +11 -5
  543. package/dist/esm/mds-header.entry.js +10 -8
  544. package/dist/esm/mds-horizontal-scroll.entry.js +2 -2
  545. package/dist/esm/mds-hr.entry.js +4 -3
  546. package/dist/esm/mds-img.entry.js +11 -18
  547. package/dist/esm/mds-input-date-range-preselection.entry.js +2 -2
  548. package/dist/esm/mds-input-date-range.entry.js +61 -30
  549. package/dist/esm/mds-input-date.entry.js +28 -34
  550. package/dist/esm/mds-input-field.entry.js +42 -6
  551. package/dist/esm/mds-input-otp.entry.js +38 -4
  552. package/dist/esm/mds-input-range.entry.js +9 -7
  553. package/dist/esm/mds-input-select.entry.js +11 -19
  554. package/dist/esm/mds-input-switch_2.entry.js +19 -32
  555. package/dist/esm/mds-input-tip_2.entry.js +8 -17
  556. package/dist/esm/mds-input-upload.entry.js +45 -37
  557. package/dist/esm/mds-input.entry.js +26 -32
  558. package/dist/esm/mds-keyboard-key.entry.js +5 -14
  559. package/dist/esm/mds-keyboard.entry.js +20 -21
  560. package/dist/esm/mds-kpi-item.entry.js +12 -3
  561. package/dist/esm/mds-kpi.entry.js +2 -2
  562. package/dist/esm/mds-label.entry.js +7 -13
  563. package/dist/esm/mds-list-item.entry.js +4 -3
  564. package/dist/esm/mds-list.entry.js +2 -2
  565. package/dist/esm/mds-mention.entry.js +38 -4
  566. package/dist/esm/mds-modal.entry.js +150 -65
  567. package/dist/esm/mds-note.entry.js +7 -15
  568. package/dist/esm/mds-notification.entry.js +16 -8
  569. package/dist/esm/mds-paginator-item.entry.js +5 -4
  570. package/dist/esm/mds-paginator.entry.js +42 -10
  571. package/dist/esm/mds-policy-ai.entry.js +8 -15
  572. package/dist/esm/mds-pref-animation.entry.js +10 -19
  573. package/dist/esm/mds-pref-consumption.entry.js +10 -19
  574. package/dist/esm/mds-pref-contrast.entry.js +13 -20
  575. package/dist/esm/mds-pref-language-item.entry.js +28 -16
  576. package/dist/esm/mds-pref-language.entry.js +38 -28
  577. package/dist/esm/mds-pref-mode.entry.js +271 -0
  578. package/dist/esm/mds-pref-theme-item.entry.js +41 -0
  579. package/dist/esm/mds-pref-theme.entry.js +148 -222
  580. package/dist/esm/mds-pref.entry.js +41 -18
  581. package/dist/esm/mds-price-table-features-cell.entry.js +4 -3
  582. package/dist/esm/mds-price-table-features-row.entry.js +4 -3
  583. package/dist/esm/mds-price-table-features.entry.js +4 -3
  584. package/dist/esm/mds-price-table-header.entry.js +3 -3
  585. package/dist/esm/mds-price-table-list-item.entry.js +3 -3
  586. package/dist/esm/mds-price-table-list.entry.js +4 -3
  587. package/dist/esm/mds-price-table.entry.js +3 -3
  588. package/dist/esm/mds-progress_2.entry.js +7 -11
  589. package/dist/esm/mds-push-notification-item.entry.js +19 -20
  590. package/dist/esm/mds-push-notification.entry.js +7 -6
  591. package/dist/esm/mds-quote.entry.js +4 -3
  592. package/dist/esm/mds-radial-menu-item.entry.js +3 -3
  593. package/dist/esm/mds-radial-menu.entry.js +7 -6
  594. package/dist/esm/mds-separator.entry.js +4 -3
  595. package/dist/esm/mds-status-bar.entry.js +5 -4
  596. package/dist/esm/mds-stepper-bar-item.entry.js +14 -17
  597. package/dist/esm/mds-stepper-bar.entry.js +21 -12
  598. package/dist/esm/mds-tab-bar-item.entry.js +6 -5
  599. package/dist/esm/mds-tab-bar.entry.js +5 -4
  600. package/dist/esm/mds-tab_2.entry.js +28 -11
  601. package/dist/esm/mds-table-body.entry.js +4 -3
  602. package/dist/esm/mds-table-footer.entry.js +4 -3
  603. package/dist/esm/mds-table-header-cell.entry.js +4 -3
  604. package/dist/esm/mds-table-header.entry.js +19 -21
  605. package/dist/esm/mds-table-row.entry.js +20 -21
  606. package/dist/esm/mds-table.entry.js +62 -30
  607. package/dist/esm/mds-text.entry.js +36 -11
  608. package/dist/esm/mds-toast.entry.js +10 -5
  609. package/dist/esm/mds-tooltip.entry.js +30 -21
  610. package/dist/esm/mds-tree-item.entry.js +36 -14
  611. package/dist/esm/mds-tree.entry.js +44 -6
  612. package/dist/esm/mds-url-view.entry.js +21 -21
  613. package/dist/esm/mds-usage.entry.js +5 -11
  614. package/dist/esm/mds-video-wall.entry.js +8 -4
  615. package/dist/esm/mds-zero.entry.js +4 -3
  616. package/dist/esm/preference-CKerJx2M.js +385 -0
  617. package/dist/esm/slot-C0o_l0td.js +61 -0
  618. package/dist/esm-es5/date-CACEYk42.js +6 -0
  619. package/dist/esm-es5/datetime-BJtA1qmE.js +2732 -1
  620. package/dist/esm-es5/floating-controller-DVldZ5mh.js +66 -0
  621. package/dist/esm-es5/floating-ui.dom-CHAGzQT-.js +201 -0
  622. package/dist/esm-es5/form-A9TZf0Ii.js +8 -0
  623. package/dist/esm-es5/index-DIiEV39g.js +371 -0
  624. package/dist/esm-es5/index.js +79 -1
  625. package/dist/esm-es5/keyboard-manager-KRu9I7dw.js +5 -0
  626. package/dist/esm-es5/loader.js +1 -1
  627. package/dist/esm-es5/locale-CbJbTW_c.js +230 -0
  628. package/dist/esm-es5/magma-components.js +4 -1
  629. package/dist/esm-es5/mds-accordion-item.entry.js +4 -1
  630. package/dist/esm-es5/mds-accordion-timer-item.entry.js +17 -1
  631. package/dist/esm-es5/mds-accordion-timer.entry.js +4 -1
  632. package/dist/esm-es5/mds-accordion.entry.js +7 -1
  633. package/dist/esm-es5/mds-author.entry.js +1 -1
  634. package/dist/esm-es5/mds-avatar-stack-item.entry.js +4 -1
  635. package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
  636. package/dist/esm-es5/mds-avatar.entry.js +8 -1
  637. package/dist/esm-es5/mds-badge.entry.js +12 -1
  638. package/dist/esm-es5/mds-banner_3.entry.js +40 -1
  639. package/dist/esm-es5/mds-benchmark-bar.entry.js +15 -1
  640. package/dist/esm-es5/mds-bibliography.entry.js +14 -1
  641. package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
  642. package/dist/esm-es5/mds-breadcrumb.entry.js +4 -1
  643. package/dist/esm-es5/mds-button-dropdown.entry.js +19 -1
  644. package/dist/esm-es5/mds-button-group.entry.js +1 -1
  645. package/dist/esm-es5/mds-button_3.entry.js +42 -1
  646. package/dist/esm-es5/mds-calendar_2.entry.js +81 -1
  647. package/dist/esm-es5/mds-card-content.entry.js +1 -1
  648. package/dist/esm-es5/mds-card-footer.entry.js +1 -1
  649. package/dist/esm-es5/mds-card-header.entry.js +1 -1
  650. package/dist/esm-es5/mds-card-media.entry.js +1 -1
  651. package/dist/esm-es5/mds-card.entry.js +7 -1
  652. package/dist/esm-es5/mds-details.entry.js +4 -1
  653. package/dist/esm-es5/mds-dropdown.entry.js +102 -1
  654. package/dist/esm-es5/mds-emoji.entry.js +899 -3
  655. package/dist/esm-es5/mds-entity.entry.js +1 -1
  656. package/dist/esm-es5/mds-file-preview.entry.js +23 -2
  657. package/dist/esm-es5/mds-file.entry.js +2823 -3
  658. package/dist/esm-es5/mds-filter-item.entry.js +1 -1
  659. package/dist/esm-es5/mds-filter.entry.js +11 -1
  660. package/dist/esm-es5/mds-header-bar.entry.js +11 -1
  661. package/dist/esm-es5/mds-header.entry.js +30 -1
  662. package/dist/esm-es5/mds-horizontal-scroll.entry.js +45 -1
  663. package/dist/esm-es5/mds-hr.entry.js +1 -1
  664. package/dist/esm-es5/mds-img.entry.js +15 -1
  665. package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
  666. package/dist/esm-es5/mds-input-date-range.entry.js +39 -1
  667. package/dist/esm-es5/mds-input-date.entry.js +50 -1
  668. package/dist/esm-es5/mds-input-field.entry.js +22 -1
  669. package/dist/esm-es5/mds-input-otp.entry.js +13 -1
  670. package/dist/esm-es5/mds-input-range.entry.js +24 -1
  671. package/dist/esm-es5/mds-input-select.entry.js +39 -1
  672. package/dist/esm-es5/mds-input-switch_2.entry.js +27 -1
  673. package/dist/esm-es5/mds-input-tip_2.entry.js +10 -1
  674. package/dist/esm-es5/mds-input-upload.entry.js +63 -1
  675. package/dist/esm-es5/mds-input.entry.js +134 -1
  676. package/dist/esm-es5/mds-keyboard-key.entry.js +1 -1
  677. package/dist/esm-es5/mds-keyboard.entry.js +11 -1
  678. package/dist/esm-es5/mds-kpi-item.entry.js +11 -1
  679. package/dist/esm-es5/mds-kpi.entry.js +1 -1
  680. package/dist/esm-es5/mds-label.entry.js +16 -1
  681. package/dist/esm-es5/mds-list-item.entry.js +7 -1
  682. package/dist/esm-es5/mds-list.entry.js +1 -1
  683. package/dist/esm-es5/mds-mention.entry.js +4 -1
  684. package/dist/esm-es5/mds-modal.entry.js +68 -1
  685. package/dist/esm-es5/mds-note.entry.js +7 -1
  686. package/dist/esm-es5/mds-notification.entry.js +13 -1
  687. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  688. package/dist/esm-es5/mds-paginator.entry.js +14 -1
  689. package/dist/esm-es5/mds-policy-ai.entry.js +7 -1
  690. package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
  691. package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
  692. package/dist/esm-es5/mds-pref-contrast.entry.js +4 -1
  693. package/dist/esm-es5/mds-pref-language-item.entry.js +13 -1
  694. package/dist/esm-es5/mds-pref-language.entry.js +15 -1
  695. package/dist/esm-es5/mds-pref-mode.entry.js +4 -0
  696. package/dist/esm-es5/mds-pref-theme-item.entry.js +13 -0
  697. package/dist/esm-es5/mds-pref-theme.entry.js +38 -1
  698. package/dist/esm-es5/mds-pref.entry.js +9 -1
  699. package/dist/esm-es5/mds-price-table-features-cell.entry.js +4 -1
  700. package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
  701. package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
  702. package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
  703. package/dist/esm-es5/mds-price-table-list-item.entry.js +7 -1
  704. package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
  705. package/dist/esm-es5/mds-price-table.entry.js +1 -1
  706. package/dist/esm-es5/mds-progress_2.entry.js +32 -1
  707. package/dist/esm-es5/mds-push-notification-item.entry.js +16 -1
  708. package/dist/esm-es5/mds-push-notification.entry.js +49 -1
  709. package/dist/esm-es5/mds-quote.entry.js +7 -1
  710. package/dist/esm-es5/mds-radial-menu-item.entry.js +10 -1
  711. package/dist/esm-es5/mds-radial-menu.entry.js +28 -1
  712. package/dist/esm-es5/mds-separator.entry.js +1 -1
  713. package/dist/esm-es5/mds-status-bar.entry.js +10 -1
  714. package/dist/esm-es5/mds-stepper-bar-item.entry.js +16 -1
  715. package/dist/esm-es5/mds-stepper-bar.entry.js +19 -1
  716. package/dist/esm-es5/mds-tab-bar-item.entry.js +9 -1
  717. package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
  718. package/dist/esm-es5/mds-tab_2.entry.js +26 -1
  719. package/dist/esm-es5/mds-table-body.entry.js +1 -1
  720. package/dist/esm-es5/mds-table-footer.entry.js +1 -1
  721. package/dist/esm-es5/mds-table-header-cell.entry.js +4 -1
  722. package/dist/esm-es5/mds-table-header.entry.js +14 -1
  723. package/dist/esm-es5/mds-table-row.entry.js +8 -1
  724. package/dist/esm-es5/mds-table.entry.js +15 -1
  725. package/dist/esm-es5/mds-text.entry.js +27 -1
  726. package/dist/esm-es5/mds-toast.entry.js +15 -1
  727. package/dist/esm-es5/mds-tooltip.entry.js +37 -1
  728. package/dist/esm-es5/mds-tree-item.entry.js +16 -1
  729. package/dist/esm-es5/mds-tree.entry.js +20 -1
  730. package/dist/esm-es5/mds-url-view.entry.js +7 -1
  731. package/dist/esm-es5/mds-usage.entry.js +4 -1
  732. package/dist/esm-es5/mds-video-wall.entry.js +16 -1
  733. package/dist/esm-es5/mds-zero.entry.js +1 -1
  734. package/dist/esm-es5/preference-CKerJx2M.js +58 -0
  735. package/dist/esm-es5/slot-C0o_l0td.js +23 -0
  736. package/dist/hydrate/index.js +4695 -2035
  737. package/dist/hydrate/index.mjs +4695 -2035
  738. package/dist/magma-components/index.esm.js +1 -1
  739. package/dist/magma-components/magma-components.esm.js +1 -1
  740. package/dist/magma-components/magma-components.js +1 -1
  741. package/dist/magma-components/p-03be5c0c.entry.js +1 -0
  742. package/dist/magma-components/p-0715a2cb.system.entry.js +12 -0
  743. package/dist/magma-components/p-071f18c6.system.entry.js +27 -0
  744. package/dist/magma-components/p-0798b0bf.system.entry.js +24 -0
  745. package/dist/magma-components/p-07fde74d.system.entry.js +39 -0
  746. package/dist/magma-components/p-086fb3aa.entry.js +1 -0
  747. package/dist/magma-components/p-0a088e7d.system.entry.js +10 -0
  748. package/dist/magma-components/p-0a691082.entry.js +1 -0
  749. package/dist/magma-components/p-0ad3b4da.system.entry.js +102 -0
  750. package/dist/magma-components/p-0af8d821.entry.js +1 -0
  751. package/dist/magma-components/p-0ec21574.system.entry.js +10 -0
  752. package/dist/magma-components/p-0f6bb54d.system.entry.js +22 -0
  753. package/dist/magma-components/p-102d3bd3.system.entry.js +1 -0
  754. package/dist/magma-components/p-10704ede.system.entry.js +4 -0
  755. package/dist/magma-components/p-15f63bf3.entry.js +1 -0
  756. package/dist/magma-components/p-16e9fb14.system.entry.js +7 -0
  757. package/dist/magma-components/p-1780b8ba.entry.js +1 -0
  758. package/dist/magma-components/p-181dfb04.entry.js +1 -0
  759. package/dist/magma-components/p-184720be.system.entry.js +1 -0
  760. package/dist/magma-components/p-18f7b970.system.entry.js +4 -0
  761. package/dist/magma-components/p-1a8c5086.system.entry.js +19 -0
  762. package/dist/magma-components/p-1afc0452.entry.js +1 -0
  763. package/dist/magma-components/p-1c0a7e24.system.entry.js +30 -0
  764. package/dist/magma-components/p-1cce738a.system.entry.js +32 -0
  765. package/dist/magma-components/p-1dcfb13e.entry.js +1 -0
  766. package/dist/magma-components/p-1df6ac96.system.entry.js +7 -0
  767. package/dist/magma-components/p-209063b6.system.entry.js +50 -0
  768. package/dist/magma-components/p-216f95cc.system.entry.js +1 -0
  769. package/dist/magma-components/p-21891a24.entry.js +1 -0
  770. package/dist/magma-components/p-21d6687a.system.entry.js +7 -0
  771. package/dist/magma-components/p-231505e8.entry.js +1 -0
  772. package/dist/magma-components/p-23e61db9.system.entry.js +4 -0
  773. package/dist/magma-components/p-241dbf61.entry.js +1 -0
  774. package/dist/magma-components/p-25935d33.system.entry.js +1 -0
  775. package/dist/magma-components/p-284c40cd.system.entry.js +4 -0
  776. package/dist/magma-components/p-29684655.system.entry.js +16 -0
  777. package/dist/magma-components/p-2b73fee6.entry.js +1 -0
  778. package/dist/magma-components/p-2d5aadba.system.entry.js +7 -0
  779. package/dist/magma-components/p-2de17848.entry.js +1 -0
  780. package/dist/magma-components/p-34482514.entry.js +1 -0
  781. package/dist/magma-components/p-34c0890e.entry.js +1 -0
  782. package/dist/magma-components/p-3635eca6.system.entry.js +1 -0
  783. package/dist/magma-components/p-3b0c1202.entry.js +1 -0
  784. package/dist/magma-components/p-3d8e63a2.system.entry.js +63 -0
  785. package/dist/magma-components/p-3db23b5f.system.entry.js +16 -0
  786. package/dist/magma-components/p-3ec7d3ea.entry.js +1 -0
  787. package/dist/magma-components/p-3f7d3060.system.entry.js +42 -0
  788. package/dist/magma-components/p-40563e33.entry.js +1 -0
  789. package/dist/magma-components/p-41bf6f25.system.entry.js +81 -0
  790. package/dist/magma-components/p-421a630e.entry.js +1 -0
  791. package/dist/magma-components/p-4297da23.system.entry.js +1 -0
  792. package/dist/magma-components/p-4299b76b.system.entry.js +4 -0
  793. package/dist/magma-components/p-4543501c.entry.js +1 -0
  794. package/dist/magma-components/p-454c4774.entry.js +1 -0
  795. package/dist/magma-components/p-4616bc07.entry.js +1 -0
  796. package/dist/magma-components/p-46786d71.system.entry.js +14 -0
  797. package/dist/magma-components/p-470e5ac8.system.entry.js +1 -0
  798. package/dist/magma-components/p-481008e9.system.entry.js +13 -0
  799. package/dist/magma-components/p-48d37230.entry.js +1 -0
  800. package/dist/magma-components/p-4b3a8132.system.entry.js +13 -0
  801. package/dist/magma-components/p-4c8316a8.entry.js +1 -0
  802. package/dist/magma-components/p-4c95442e.entry.js +1 -0
  803. package/dist/magma-components/p-4e4bdbf8.entry.js +1 -0
  804. package/dist/magma-components/p-4e5ab0e4.system.entry.js +16 -0
  805. package/dist/magma-components/p-54b995c2.system.entry.js +4 -0
  806. package/dist/magma-components/p-56ad5bf2.entry.js +1 -0
  807. package/dist/magma-components/p-59de81ac.entry.js +1 -0
  808. package/dist/magma-components/p-5a7ead55.system.entry.js +37 -0
  809. package/dist/magma-components/p-5e43274a.system.entry.js +15 -0
  810. package/dist/magma-components/p-5f545f85.system.entry.js +1 -0
  811. package/dist/magma-components/p-61a5ac3d.system.entry.js +17 -0
  812. package/dist/magma-components/p-636cc471.entry.js +1 -0
  813. package/dist/magma-components/p-66ce2dee.entry.js +1 -0
  814. package/dist/magma-components/p-67d80d37.system.entry.js +1 -0
  815. package/dist/magma-components/p-6937f340.entry.js +1 -0
  816. package/dist/magma-components/p-69d1b815.entry.js +1 -0
  817. package/dist/magma-components/p-6b7e449f.entry.js +1 -0
  818. package/dist/magma-components/p-6c417ea1.system.entry.js +913 -0
  819. package/dist/magma-components/p-6cd7cfe3.entry.js +1 -0
  820. package/dist/magma-components/p-6ce60d59.entry.js +1 -0
  821. package/dist/magma-components/p-6cf760ea.system.entry.js +45 -0
  822. package/dist/magma-components/p-6dc27543.entry.js +1 -0
  823. package/dist/magma-components/p-6de37588.entry.js +1 -0
  824. package/dist/magma-components/p-6edc4f16.system.entry.js +14 -0
  825. package/dist/magma-components/p-6f6b5eb5.entry.js +1 -0
  826. package/dist/magma-components/p-7090184f.entry.js +1 -0
  827. package/dist/magma-components/p-716ad14c.entry.js +1 -0
  828. package/dist/magma-components/p-71804224.entry.js +1 -0
  829. package/dist/magma-components/p-735dc594.system.entry.js +1 -0
  830. package/dist/magma-components/p-739fdf76.system.entry.js +1 -0
  831. package/dist/magma-components/p-74b0902a.entry.js +1 -0
  832. package/dist/magma-components/p-7530a2f2.entry.js +1 -0
  833. package/dist/magma-components/p-75dd012a.system.entry.js +11 -0
  834. package/dist/magma-components/p-75fcf1a4.entry.js +1 -0
  835. package/dist/magma-components/p-76ae22d6.entry.js +1 -0
  836. package/dist/magma-components/p-78248693.entry.js +1 -0
  837. package/dist/magma-components/p-78fef00a.entry.js +1 -0
  838. package/dist/magma-components/p-7c0d202c.entry.js +1 -0
  839. package/dist/magma-components/p-7d317ff0.entry.js +8 -0
  840. package/dist/magma-components/p-7f2e3b74.system.entry.js +2838 -0
  841. package/dist/magma-components/p-7fc29447.entry.js +1 -0
  842. package/dist/magma-components/p-8103d4d4.system.entry.js +30 -0
  843. package/dist/magma-components/p-81b72b6e.entry.js +1 -0
  844. package/dist/magma-components/p-859ab5a2.entry.js +18 -0
  845. package/dist/magma-components/p-896ae0ee.entry.js +1 -0
  846. package/dist/magma-components/p-89a3bc7a.system.entry.js +16 -0
  847. package/dist/magma-components/p-8b7fa8d7.entry.js +1 -0
  848. package/dist/magma-components/p-8dff6606.system.entry.js +11 -0
  849. package/dist/magma-components/p-8e40eda3.system.entry.js +9 -0
  850. package/dist/magma-components/p-91b9d4e7.system.entry.js +4 -0
  851. package/dist/magma-components/p-92e1001f.entry.js +1 -0
  852. package/dist/magma-components/p-9378b373.system.entry.js +49 -0
  853. package/dist/magma-components/p-960dc9b5.system.entry.js +15 -0
  854. package/dist/magma-components/p-9626eaff.system.entry.js +134 -0
  855. package/dist/magma-components/p-9741d95e.system.entry.js +7 -0
  856. package/dist/magma-components/p-97ea9e6e.system.entry.js +68 -0
  857. package/dist/magma-components/p-9846fe89.system.entry.js +1 -0
  858. package/dist/magma-components/p-998721b9.system.entry.js +1 -0
  859. package/dist/magma-components/p-9a5296c0.system.entry.js +7 -0
  860. package/dist/magma-components/p-9b2ee3fe.entry.js +1 -0
  861. package/dist/magma-components/p-9be4a736.entry.js +1 -0
  862. package/dist/magma-components/p-9ca7932d.system.entry.js +8 -0
  863. package/dist/magma-components/p-9d86477d.system.entry.js +1 -0
  864. package/dist/magma-components/p-9d9a947b.entry.js +18 -0
  865. package/dist/magma-components/p-9e3bc553.system.entry.js +26 -0
  866. package/dist/magma-components/p-9e58467e.system.entry.js +10 -0
  867. package/dist/magma-components/p-9e9a1ebd.system.entry.js +15 -0
  868. package/dist/magma-components/p-A9TZf0Ii.js +1 -0
  869. package/dist/magma-components/p-BFnx_0hM.js +5 -0
  870. package/dist/magma-components/p-BJKToXNf.system.js +2733 -1
  871. package/dist/magma-components/p-BbMKuVem.js +1 -0
  872. package/dist/magma-components/p-C0o_l0td.js +1 -0
  873. package/dist/magma-components/p-C2FHijr2.system.js +231 -0
  874. package/dist/magma-components/p-CACEYk42.js +1 -0
  875. package/dist/magma-components/p-CBam2PI8.system.js +79 -0
  876. package/dist/magma-components/p-CDTiTqY0.system.js +58 -0
  877. package/dist/magma-components/p-CHAGzQT-.js +1 -0
  878. package/dist/magma-components/p-CI85vVs8.system.js +9 -0
  879. package/dist/magma-components/p-CnXBPjmc.system.js +5 -0
  880. package/dist/magma-components/p-DB8Rm54c.js +1 -0
  881. package/dist/magma-components/p-DIiEV39g.js +3 -0
  882. package/dist/magma-components/p-Dg8nxRUX.system.js +201 -0
  883. package/dist/magma-components/p-DmC-b-ZK.system.js +67 -0
  884. package/dist/magma-components/p-KRu9I7dw.js +1 -0
  885. package/dist/magma-components/p-LerCJgfP.system.js +5 -0
  886. package/dist/magma-components/p-MGv0i39Y.system.js +162 -0
  887. package/dist/magma-components/p-RJ5ZA1kY.system.js +23 -0
  888. package/dist/magma-components/p-a3279a73.system.entry.js +11 -0
  889. package/dist/magma-components/p-a3b0f586.entry.js +1 -0
  890. package/dist/magma-components/p-a3fc2ea4.system.entry.js +39 -0
  891. package/dist/magma-components/p-a5ac5e0b.entry.js +1 -0
  892. package/dist/magma-components/p-a8ec3080.system.entry.js +27 -0
  893. package/dist/magma-components/p-a906a02f.system.entry.js +16 -0
  894. package/dist/magma-components/p-a93b2a39.entry.js +1 -0
  895. package/dist/magma-components/p-aa267e7b.entry.js +1 -0
  896. package/dist/magma-components/p-ab9095ae.system.entry.js +4 -0
  897. package/dist/magma-components/p-ac544ab1.entry.js +1 -0
  898. package/dist/magma-components/p-ace198e9.entry.js +1 -0
  899. package/dist/magma-components/p-ad3983b2.entry.js +1 -0
  900. package/dist/magma-components/p-af41c8b8.system.entry.js +1 -0
  901. package/dist/magma-components/p-af45f0a5.system.entry.js +20 -0
  902. package/dist/magma-components/p-b23a6c83.entry.js +1 -0
  903. package/dist/magma-components/p-b3a3578c.entry.js +1 -0
  904. package/dist/magma-components/p-b49e0321.system.entry.js +1 -0
  905. package/dist/magma-components/p-b71e0d51.entry.js +1 -0
  906. package/dist/magma-components/p-b8d4a14e.entry.js +1 -0
  907. package/dist/magma-components/p-b9fecfd5.entry.js +1 -0
  908. package/dist/magma-components/p-ba035f90.entry.js +1 -0
  909. package/dist/magma-components/p-bc51d310.system.entry.js +1 -0
  910. package/dist/magma-components/p-bd490a8e.entry.js +1 -0
  911. package/dist/magma-components/p-be198039.system.entry.js +4 -0
  912. package/dist/magma-components/p-be692266.system.entry.js +13 -0
  913. package/dist/magma-components/p-bf7168b4.entry.js +1 -0
  914. package/dist/magma-components/p-bf84d9fa.entry.js +1 -0
  915. package/dist/magma-components/p-c1fb2eb7.entry.js +1 -0
  916. package/dist/magma-components/p-c4e58240.entry.js +1 -0
  917. package/dist/magma-components/p-c573de10.entry.js +1 -0
  918. package/dist/magma-components/p-c6be3db7.system.entry.js +1 -0
  919. package/dist/magma-components/p-c70d7159.entry.js +1 -0
  920. package/dist/magma-components/p-c7517884.system.entry.js +38 -0
  921. package/dist/magma-components/p-c9be79bd.entry.js +1 -0
  922. package/dist/magma-components/p-c9e12c2b.system.entry.js +7 -0
  923. package/dist/magma-components/p-cb6a1908.entry.js +1 -0
  924. package/dist/magma-components/p-cbd5aef4.system.entry.js +14 -0
  925. package/dist/magma-components/p-cd21137b.system.entry.js +1 -0
  926. package/dist/magma-components/p-cd5866c8.entry.js +1 -0
  927. package/dist/magma-components/p-ce0ecc75.system.entry.js +15 -0
  928. package/dist/magma-components/p-ce4e1a41.system.entry.js +1 -0
  929. package/dist/magma-components/p-d3116844.entry.js +1 -0
  930. package/dist/magma-components/p-d38165ed.system.entry.js +1 -0
  931. package/dist/magma-components/p-d3933a22.entry.js +1 -0
  932. package/dist/magma-components/p-d44c49d6.system.entry.js +8 -0
  933. package/dist/magma-components/p-d4a529ce.entry.js +1 -0
  934. package/dist/magma-components/p-d6d4aa1a.entry.js +1 -0
  935. package/dist/magma-components/p-d81e7100.system.entry.js +15 -0
  936. package/dist/magma-components/p-d8c27f4b.entry.js +1 -0
  937. package/dist/magma-components/p-d921d876.entry.js +1 -0
  938. package/dist/magma-components/p-da1ac3e1.entry.js +1 -0
  939. package/dist/magma-components/p-ddbdce09.entry.js +1 -0
  940. package/dist/magma-components/p-de6bc3c8.entry.js +1 -0
  941. package/dist/magma-components/p-df2b7607.system.entry.js +4 -0
  942. package/dist/magma-components/p-e05d2df8.system.entry.js +4 -0
  943. package/dist/magma-components/p-e0b2ef8f.system.entry.js +1 -0
  944. package/dist/magma-components/p-e0c50a2d.entry.js +1 -0
  945. package/dist/magma-components/p-e1277efe.system.entry.js +1 -0
  946. package/dist/magma-components/p-e1e6dd97.entry.js +1 -0
  947. package/dist/magma-components/p-e2f7a9bd.system.entry.js +1 -0
  948. package/dist/magma-components/p-e3e893c4.entry.js +1 -0
  949. package/dist/magma-components/p-e4868ade.entry.js +1 -0
  950. package/dist/magma-components/p-e5c6f9a9.system.entry.js +7 -0
  951. package/dist/magma-components/p-e5da7036.entry.js +1 -0
  952. package/dist/magma-components/p-e6dccab5.system.entry.js +1 -0
  953. package/dist/magma-components/p-ec59ec9a.entry.js +1 -0
  954. package/dist/magma-components/p-eddcef53.system.entry.js +1 -0
  955. package/dist/magma-components/p-eed00e7f.system.entry.js +1 -0
  956. package/dist/magma-components/p-ef8cb401.entry.js +1 -0
  957. package/dist/magma-components/p-efe8d359.entry.js +1 -0
  958. package/dist/magma-components/p-f070a5b5.system.entry.js +11 -0
  959. package/dist/magma-components/p-f0a168f4.system.entry.js +13 -0
  960. package/dist/magma-components/p-f1462410.system.entry.js +9 -0
  961. package/dist/magma-components/p-f23d4974.entry.js +1 -0
  962. package/dist/magma-components/p-f542246f.system.entry.js +1 -0
  963. package/dist/magma-components/p-f5c680dd.entry.js +1 -0
  964. package/dist/magma-components/p-f60c6e8e.system.entry.js +40 -0
  965. package/dist/magma-components/p-f8369939.entry.js +1 -0
  966. package/dist/magma-components/p-f97ede3e.system.entry.js +19 -0
  967. package/dist/magma-components/p-f97ff5b2.entry.js +1 -0
  968. package/dist/magma-components/p-fe1662e8.system.entry.js +28 -0
  969. package/dist/magma-components/p-ff133cbd.entry.js +1 -0
  970. package/dist/magma-components/p-fff44704.entry.js +1 -0
  971. package/dist/magma-components/p-opeIIa7t.system.js +7 -0
  972. package/dist/stats.json +5873 -5582
  973. package/dist/types/common/date.d.ts +5 -1
  974. package/dist/types/common/floating-controller.d.ts +59 -5
  975. package/dist/types/common/form.d.ts +10 -0
  976. package/dist/types/common/locale.d.ts +0 -5
  977. package/dist/types/common/preference.d.ts +54 -0
  978. package/dist/types/common/slot.d.ts +11 -1
  979. package/dist/types/common/yugop/random-text.d.ts +8 -0
  980. package/dist/types/components/mds-accordion/mds-accordion.d.ts +2 -2
  981. package/dist/types/components/mds-author/mds-author.d.ts +2 -1
  982. package/dist/types/components/mds-avatar/mds-avatar.d.ts +2 -0
  983. package/dist/types/components/mds-banner/mds-banner.d.ts +4 -9
  984. package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +2 -8
  985. package/dist/types/components/mds-button/mds-button.d.ts +0 -1
  986. package/dist/types/components/mds-button-group/mds-button-group.d.ts +1 -1
  987. package/dist/types/components/mds-calendar/mds-calendar.d.ts +33 -18
  988. package/dist/types/components/mds-card/mds-card.d.ts +2 -2
  989. package/dist/types/components/mds-card-header/mds-card-header.d.ts +2 -1
  990. package/dist/types/components/mds-chip/mds-chip.d.ts +0 -6
  991. package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +44 -14
  992. package/dist/types/components/mds-emoji/mds-emoji.d.ts +9 -2
  993. package/dist/types/components/mds-entity/mds-entity.d.ts +3 -2
  994. package/dist/types/components/mds-file/mds-file.d.ts +2 -7
  995. package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +0 -5
  996. package/dist/types/components/mds-filter/mds-filter.d.ts +10 -0
  997. package/dist/types/components/mds-header/mds-header.d.ts +2 -2
  998. package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +2 -1
  999. package/dist/types/components/mds-help/mds-help.d.ts +2 -2
  1000. package/dist/types/components/mds-icon/mds-icon.d.ts +0 -1
  1001. package/dist/types/components/mds-img/mds-img.d.ts +2 -7
  1002. package/dist/types/components/mds-input/mds-input.d.ts +8 -6
  1003. package/dist/types/components/mds-input-date/mds-input-date.d.ts +11 -4
  1004. package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +11 -3
  1005. package/dist/types/components/mds-input-field/mds-input-field.d.ts +3 -0
  1006. package/dist/types/components/mds-input-otp/mds-input-otp.d.ts +7 -0
  1007. package/dist/types/components/mds-input-select/mds-input-select.d.ts +5 -4
  1008. package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +0 -5
  1009. package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +0 -7
  1010. package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +5 -7
  1011. package/dist/types/components/mds-input-upload/meta/types.d.ts +1 -1
  1012. package/dist/types/components/mds-keyboard/mds-keyboard.d.ts +1 -7
  1013. package/dist/types/components/mds-keyboard-key/mds-keyboard-key.d.ts +0 -7
  1014. package/dist/types/components/mds-keyboard-key/meta/icons.d.ts +1 -1
  1015. package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +8 -0
  1016. package/dist/types/components/mds-label/mds-label.d.ts +0 -5
  1017. package/dist/types/components/mds-mention/mds-mention.d.ts +13 -0
  1018. package/dist/types/components/mds-mention/meta/interface.d.ts +5 -0
  1019. package/dist/types/components/mds-modal/mds-modal.d.ts +31 -19
  1020. package/dist/types/components/mds-modal/meta/types.d.ts +0 -1
  1021. package/dist/types/components/mds-note/mds-note.d.ts +0 -6
  1022. package/dist/types/components/mds-notification/mds-notification.d.ts +2 -2
  1023. package/dist/types/components/mds-paginator/mds-paginator.d.ts +14 -1
  1024. package/dist/types/components/mds-policy-ai/mds-policy-ai.d.ts +1 -7
  1025. package/dist/types/components/mds-pref/mds-pref.d.ts +12 -8
  1026. package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +1 -6
  1027. package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +1 -6
  1028. package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +1 -6
  1029. package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +3 -9
  1030. package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +3 -7
  1031. package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +62 -0
  1032. package/dist/types/components/mds-pref-mode/meta/dictionary.d.ts +3 -0
  1033. package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +63 -36
  1034. package/dist/types/components/mds-pref-theme/meta/dictionary.d.ts +2 -3
  1035. package/dist/types/components/mds-pref-theme-item/mds-pref-theme-item.d.ts +28 -0
  1036. package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +4 -8
  1037. package/dist/types/components/mds-radial-progress/mds-radial-progress.d.ts +0 -1
  1038. package/dist/types/components/mds-stepper-bar/mds-stepper-bar.d.ts +10 -0
  1039. package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +0 -6
  1040. package/dist/types/components/mds-tab/mds-tab.d.ts +2 -1
  1041. package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +17 -0
  1042. package/dist/types/components/mds-table/mds-table.d.ts +10 -5
  1043. package/dist/types/components/mds-table-header/mds-table-header.d.ts +0 -5
  1044. package/dist/types/components/mds-table-row/mds-table-row.d.ts +8 -7
  1045. package/dist/types/components/mds-toast/mds-toast.d.ts +2 -1
  1046. package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +8 -8
  1047. package/dist/types/components/mds-tree/mds-tree.d.ts +5 -0
  1048. package/dist/types/components/mds-tree-item/mds-tree-item.d.ts +26 -6
  1049. package/dist/types/components/mds-url-view/mds-url-view.d.ts +0 -6
  1050. package/dist/types/components/mds-usage/mds-usage.d.ts +0 -6
  1051. package/dist/types/components/mds-video-wall/mds-video-wall.d.ts +2 -1
  1052. package/dist/types/components.d.ts +437 -393
  1053. package/dist/types/event-detail/preference.d.ts +2 -2
  1054. package/dist/types/event-detail/theme.d.ts +5 -0
  1055. package/dist/types/stencil-public-runtime.d.ts +12 -0
  1056. package/dist/types/type/preference.d.ts +16 -3
  1057. package/loader/index.d.ts +1 -1
  1058. package/package.json +61 -64
  1059. package/dist/cjs/date-dnDGaLCn.js +0 -16
  1060. package/dist/cjs/floating-controller-DA8xyqCa.js +0 -203
  1061. package/dist/cjs/floating-ui.dom-DW-02Mib.js +0 -1703
  1062. package/dist/cjs/index-CNuKb6Lv.js +0 -2896
  1063. package/dist/cjs/keyboard-manager-BXKT5TGW.js +0 -52
  1064. package/dist/cjs/locale-oGW3SvGJ.js +0 -837
  1065. package/dist/cjs/mds-pref-theme-variant-item.cjs.entry.js +0 -63
  1066. package/dist/cjs/mds-pref-theme-variant.cjs.entry.js +0 -149
  1067. package/dist/cjs/slot-CI0KpgtY.js +0 -52
  1068. package/dist/collection/components/mds-accordion/test/mds-accordion.stories.js +0 -38
  1069. package/dist/collection/components/mds-accordion-item/test/mds-accordion-item.stories.js +0 -35
  1070. package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +0 -51
  1071. package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js +0 -52
  1072. package/dist/collection/components/mds-author/test/mds-author.stories.js +0 -12
  1073. package/dist/collection/components/mds-avatar/test/mds-avatar.stories.js +0 -71
  1074. package/dist/collection/components/mds-avatar-stack/test/mds-avatar-stack.stories.js +0 -34
  1075. package/dist/collection/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.js +0 -60
  1076. package/dist/collection/components/mds-badge/test/mds-badge.stories.js +0 -46
  1077. package/dist/collection/components/mds-banner/test/mds-banner.stories.js +0 -106
  1078. package/dist/collection/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.js +0 -64
  1079. package/dist/collection/components/mds-bibliography/test/mds-bibliography.stories.js +0 -104
  1080. package/dist/collection/components/mds-breadcrumb/test/mds-breadcrumb.stories.js +0 -14
  1081. package/dist/collection/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.js +0 -24
  1082. package/dist/collection/components/mds-button/test/mds-button.stories.js +0 -346
  1083. package/dist/collection/components/mds-button-dropdown/test/mds-button-dropdown.stories.js +0 -73
  1084. package/dist/collection/components/mds-button-group/test/mds-button-group.stories.js +0 -12
  1085. package/dist/collection/components/mds-calendar/test/mds-calendar.stories.js +0 -24
  1086. package/dist/collection/components/mds-card/test/mds-card.stories.js +0 -82
  1087. package/dist/collection/components/mds-chip/test/mds-chip.stories.js +0 -120
  1088. package/dist/collection/components/mds-details/test/mds-details.stories.js +0 -20
  1089. package/dist/collection/components/mds-dropdown/test/mds-dropdown.stories.js +0 -256
  1090. package/dist/collection/components/mds-emoji/test/mds-emoji.stories.js +0 -87
  1091. package/dist/collection/components/mds-entity/test/mds-entity.stories.js +0 -101
  1092. package/dist/collection/components/mds-file/test/mds-file.stories.js +0 -73
  1093. package/dist/collection/components/mds-file-preview/test/mds-file-preview.stories.js +0 -154
  1094. package/dist/collection/components/mds-filter/test/mds-filter.stories.js +0 -49
  1095. package/dist/collection/components/mds-filter-item/test/mds-filter-item.stories.js +0 -36
  1096. package/dist/collection/components/mds-header/test/mds-header.stories.js +0 -71
  1097. package/dist/collection/components/mds-header-bar/test/mds-header-bar.stories.js +0 -21
  1098. package/dist/collection/components/mds-help/test/mds-help.stories.js +0 -23
  1099. package/dist/collection/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.js +0 -48
  1100. package/dist/collection/components/mds-hr/test/mds-hr.stories.js +0 -14
  1101. package/dist/collection/components/mds-icon/test/mds-icon.stories.js +0 -76
  1102. package/dist/collection/components/mds-img/test/mds-img-accessibility.stories.js +0 -34
  1103. package/dist/collection/components/mds-img/test/mds-img.stories.js +0 -62
  1104. package/dist/collection/components/mds-input/test/mds-input.stories.js +0 -302
  1105. package/dist/collection/components/mds-input-date/test/mds-input-date.stories.js +0 -70
  1106. package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +0 -109
  1107. package/dist/collection/components/mds-input-field/test/mds-input-field.stories.js +0 -90
  1108. package/dist/collection/components/mds-input-otp/test/mds-input-otp.stories.js +0 -68
  1109. package/dist/collection/components/mds-input-range/test/mds-input-range.stories.js +0 -92
  1110. package/dist/collection/components/mds-input-select/test/mds-input-select.stories.js +0 -97
  1111. package/dist/collection/components/mds-input-switch/test/mds-input-switch.stories.js +0 -169
  1112. package/dist/collection/components/mds-input-tip/test/mds-input-tip.stories.js +0 -20
  1113. package/dist/collection/components/mds-input-tip-item/test/mds-input-tip.stories.js +0 -20
  1114. package/dist/collection/components/mds-input-upload/test/mds-input-upload.stories.js +0 -48
  1115. package/dist/collection/components/mds-keyboard/test/mds-keyboard.stories.js +0 -30
  1116. package/dist/collection/components/mds-keyboard-key/test/mds-keyboard-key.stories.js +0 -20
  1117. package/dist/collection/components/mds-kpi/test/mds-kpi.stories.js +0 -22
  1118. package/dist/collection/components/mds-kpi-item/test/mds-kpi-item.stories.js +0 -34
  1119. package/dist/collection/components/mds-label/test/mds-label.stories.js +0 -72
  1120. package/dist/collection/components/mds-list/test/mds-list.stories.js +0 -8
  1121. package/dist/collection/components/mds-list-item/test/mds-list-item.stories.js +0 -29
  1122. package/dist/collection/components/mds-mention/test/mds-mention.stories.js +0 -31
  1123. package/dist/collection/components/mds-modal/test/mds-modal.stories.js +0 -347
  1124. package/dist/collection/components/mds-note/test/mds-note.stories.js +0 -31
  1125. package/dist/collection/components/mds-notification/test/mds-notification.stories.js +0 -64
  1126. package/dist/collection/components/mds-paginator/test/mds-paginator.stories.js +0 -28
  1127. package/dist/collection/components/mds-policy-ai/test/mds-policy.stories.js +0 -82
  1128. package/dist/collection/components/mds-pref/test/mds-pref.stories.js +0 -26
  1129. package/dist/collection/components/mds-pref-animation/test/mds-pref-animation.stories.js +0 -18
  1130. package/dist/collection/components/mds-pref-consumption/test/mds-pref-consumption.stories.js +0 -18
  1131. package/dist/collection/components/mds-pref-contrast/test/mds-pref-contrast.stories.js +0 -18
  1132. package/dist/collection/components/mds-pref-language/test/mds-pref-language.stories.js +0 -18
  1133. package/dist/collection/components/mds-pref-theme/test/mds-pref-theme.stories.js +0 -24
  1134. package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.css +0 -40
  1135. package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.js +0 -288
  1136. package/dist/collection/components/mds-pref-theme-variant/meta/dictionary.js +0 -2
  1137. package/dist/collection/components/mds-pref-theme-variant/test/mds-pref-theme-variant.stories.js +0 -27
  1138. package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.css +0 -100
  1139. package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.js +0 -198
  1140. package/dist/collection/components/mds-price-table/test/mds-price-table.stories.js +0 -11
  1141. package/dist/collection/components/mds-price-table-features/test/mds-price-table-features.stories.js +0 -11
  1142. package/dist/collection/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.js +0 -11
  1143. package/dist/collection/components/mds-price-table-header/test/mds-price-table-header.stories.js +0 -8
  1144. package/dist/collection/components/mds-price-table-list/test/mds-price-table-list.stories.js +0 -12
  1145. package/dist/collection/components/mds-progress/test/mds-progress.stories.js +0 -66
  1146. package/dist/collection/components/mds-push-notification/test/mds-push-notification.stories.js +0 -104
  1147. package/dist/collection/components/mds-push-notification-item/test/mds-push-notification-item.stories.js +0 -194
  1148. package/dist/collection/components/mds-quote/test/mds-quote.stories.js +0 -33
  1149. package/dist/collection/components/mds-radial-menu/test/mds-radial-menu.stories.js +0 -98
  1150. package/dist/collection/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.js +0 -37
  1151. package/dist/collection/components/mds-radial-progress/test/mds-radial-progress.stories.js +0 -45
  1152. package/dist/collection/components/mds-separator/test/mds-separator.stories.js +0 -8
  1153. package/dist/collection/components/mds-spinner/test/mds-spinner.stories.js +0 -20
  1154. package/dist/collection/components/mds-status-bar/test/mds-status-bar.stories.js +0 -80
  1155. package/dist/collection/components/mds-stepper-bar/test/mds-stepper-bar.stories.js +0 -100
  1156. package/dist/collection/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.js +0 -70
  1157. package/dist/collection/components/mds-tab/test/mds-tab.stories.js +0 -152
  1158. package/dist/collection/components/mds-tab-bar/test/mds-tab-bar.stories.js +0 -8
  1159. package/dist/collection/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.js +0 -21
  1160. package/dist/collection/components/mds-tab-item/test/mds-tab-item.stories.js +0 -54
  1161. package/dist/collection/components/mds-table/test/mds-table.stories.js +0 -107
  1162. package/dist/collection/components/mds-text/test/mds-text.stories.js +0 -183
  1163. package/dist/collection/components/mds-toast/test/mds-toast.stories.js +0 -52
  1164. package/dist/collection/components/mds-tooltip/test/mds-tooltip.stories.js +0 -155
  1165. package/dist/collection/components/mds-tree/test/mds-tree-apk.stories.js +0 -66
  1166. package/dist/collection/components/mds-tree/test/mds-tree.stories.js +0 -83
  1167. package/dist/collection/components/mds-tree-item/test/mds-tree-item.stories.js +0 -71
  1168. package/dist/collection/components/mds-url-view/test/mds-url-view.stories.js +0 -75
  1169. package/dist/collection/components/mds-usage/test/mds-usage.stories.js +0 -33
  1170. package/dist/collection/components/mds-video-wall/test/mds-video-wall.stories.js +0 -104
  1171. package/dist/collection/components/mds-zero/test/mds-zero.stories.js +0 -8
  1172. package/dist/collection/storybook/box-shadows.stories.js +0 -53
  1173. package/dist/collection/storybook/color-scale.stories.js +0 -465
  1174. package/dist/collection/storybook/components-preview.stories.js +0 -36
  1175. package/dist/collection/storybook/example-page.stories.js +0 -10
  1176. package/dist/collection/storybook/fouc-hydrated.stories.js +0 -20
  1177. package/dist/collection/storybook/input-form.stories.js +0 -40
  1178. package/dist/collection/storybook/same-childrend-slot-names.stories.js +0 -10
  1179. package/dist/collection/test/file.js +0 -53
  1180. package/dist/collection/test/mock.js +0 -19
  1181. package/dist/components/date.js +0 -1
  1182. package/dist/components/floating-controller.js +0 -1
  1183. package/dist/components/floating-ui.dom.js +0 -1
  1184. package/dist/components/icons-set.service.js +0 -1
  1185. package/dist/components/keyboard-manager.js +0 -1
  1186. package/dist/components/locale.it.js +0 -1
  1187. package/dist/components/locale.js +0 -5
  1188. package/dist/components/mds-avatar-stack-item2.js +0 -1
  1189. package/dist/components/mds-avatar2.js +0 -1
  1190. package/dist/components/mds-badge2.js +0 -1
  1191. package/dist/components/mds-banner2.js +0 -1
  1192. package/dist/components/mds-button2.js +0 -1
  1193. package/dist/components/mds-calendar-cell2.js +0 -1
  1194. package/dist/components/mds-calendar2.js +0 -1
  1195. package/dist/components/mds-chip2.js +0 -1
  1196. package/dist/components/mds-dropdown2.js +0 -1
  1197. package/dist/components/mds-file-preview2.js +0 -8
  1198. package/dist/components/mds-filter-item2.js +0 -1
  1199. package/dist/components/mds-help2.js +0 -1
  1200. package/dist/components/mds-icon2.js +0 -1
  1201. package/dist/components/mds-img2.js +0 -1
  1202. package/dist/components/mds-input-switch2.js +0 -1
  1203. package/dist/components/mds-input-tip-item2.js +0 -1
  1204. package/dist/components/mds-input-tip2.js +0 -1
  1205. package/dist/components/mds-input2.js +0 -1
  1206. package/dist/components/mds-modal2.js +0 -1
  1207. package/dist/components/mds-paginator-item2.js +0 -1
  1208. package/dist/components/mds-pref-theme-variant-item.d.ts +0 -11
  1209. package/dist/components/mds-pref-theme-variant-item.js +0 -1
  1210. package/dist/components/mds-pref-theme-variant.d.ts +0 -11
  1211. package/dist/components/mds-pref-theme-variant.js +0 -1
  1212. package/dist/components/mds-progress2.js +0 -1
  1213. package/dist/components/mds-radial-progress2.js +0 -1
  1214. package/dist/components/mds-separator2.js +0 -1
  1215. package/dist/components/mds-spinner2.js +0 -1
  1216. package/dist/components/mds-tab-item2.js +0 -1
  1217. package/dist/components/mds-tab2.js +0 -1
  1218. package/dist/components/mds-table-cell2.js +0 -1
  1219. package/dist/components/mds-table-header-cell2.js +0 -1
  1220. package/dist/components/mds-text2.js +0 -1
  1221. package/dist/components/mds-tooltip2.js +0 -1
  1222. package/dist/components/slot.js +0 -1
  1223. package/dist/esm/date-C1oxPa_J.js +0 -14
  1224. package/dist/esm/floating-controller-CP3-OFb9.js +0 -200
  1225. package/dist/esm/floating-ui.dom-8RYXTPXs.js +0 -1695
  1226. package/dist/esm/index-CAd5312P.js +0 -2869
  1227. package/dist/esm/keyboard-manager-BudfaWhu.js +0 -50
  1228. package/dist/esm/locale-a4oAcjYG.js +0 -835
  1229. package/dist/esm/mds-pref-theme-variant-item.entry.js +0 -61
  1230. package/dist/esm/mds-pref-theme-variant.entry.js +0 -147
  1231. package/dist/esm/slot-ttrRC6OE.js +0 -48
  1232. package/dist/esm-es5/date-C1oxPa_J.js +0 -1
  1233. package/dist/esm-es5/floating-controller-CP3-OFb9.js +0 -1
  1234. package/dist/esm-es5/floating-ui.dom-8RYXTPXs.js +0 -1
  1235. package/dist/esm-es5/index-CAd5312P.js +0 -1
  1236. package/dist/esm-es5/keyboard-manager-BudfaWhu.js +0 -1
  1237. package/dist/esm-es5/locale-a4oAcjYG.js +0 -5
  1238. package/dist/esm-es5/mds-pref-theme-variant-item.entry.js +0 -1
  1239. package/dist/esm-es5/mds-pref-theme-variant.entry.js +0 -1
  1240. package/dist/esm-es5/slot-ttrRC6OE.js +0 -1
  1241. package/dist/magma-components/p-00313884.entry.js +0 -1
  1242. package/dist/magma-components/p-01dc43dd.entry.js +0 -1
  1243. package/dist/magma-components/p-01dca5e8.entry.js +0 -1
  1244. package/dist/magma-components/p-030d45e3.entry.js +0 -1
  1245. package/dist/magma-components/p-0328a23e.system.entry.js +0 -1
  1246. package/dist/magma-components/p-08c6869a.entry.js +0 -1
  1247. package/dist/magma-components/p-09de9fc5.system.entry.js +0 -1
  1248. package/dist/magma-components/p-0acb46c8.entry.js +0 -1
  1249. package/dist/magma-components/p-0b10ef9f.system.entry.js +0 -1
  1250. package/dist/magma-components/p-0b11f03b.entry.js +0 -1
  1251. package/dist/magma-components/p-0be56202.system.entry.js +0 -1
  1252. package/dist/magma-components/p-0de58147.entry.js +0 -1
  1253. package/dist/magma-components/p-0e481e5c.system.entry.js +0 -1
  1254. package/dist/magma-components/p-0f104850.system.entry.js +0 -1
  1255. package/dist/magma-components/p-1073bf63.entry.js +0 -1
  1256. package/dist/magma-components/p-11490a89.entry.js +0 -1
  1257. package/dist/magma-components/p-137b0bbe.system.entry.js +0 -1
  1258. package/dist/magma-components/p-14a98729.entry.js +0 -1
  1259. package/dist/magma-components/p-14d858f8.system.entry.js +0 -1
  1260. package/dist/magma-components/p-14e918de.system.entry.js +0 -1
  1261. package/dist/magma-components/p-154ef5b9.entry.js +0 -1
  1262. package/dist/magma-components/p-158af6e3.entry.js +0 -1
  1263. package/dist/magma-components/p-17427d8a.system.entry.js +0 -1
  1264. package/dist/magma-components/p-1805592d.entry.js +0 -1
  1265. package/dist/magma-components/p-18563022.entry.js +0 -1
  1266. package/dist/magma-components/p-19f99447.entry.js +0 -1
  1267. package/dist/magma-components/p-1a56d383.system.entry.js +0 -1
  1268. package/dist/magma-components/p-1bb7895a.system.entry.js +0 -1
  1269. package/dist/magma-components/p-1ce791c1.system.entry.js +0 -1
  1270. package/dist/magma-components/p-1da904c3.system.entry.js +0 -1
  1271. package/dist/magma-components/p-20961bf1.entry.js +0 -1
  1272. package/dist/magma-components/p-24a9ed63.system.entry.js +0 -1
  1273. package/dist/magma-components/p-26b131cf.entry.js +0 -1
  1274. package/dist/magma-components/p-28ebb626.entry.js +0 -1
  1275. package/dist/magma-components/p-292f4566.system.entry.js +0 -1
  1276. package/dist/magma-components/p-2a1d3680.system.entry.js +0 -1
  1277. package/dist/magma-components/p-2ab75334.system.entry.js +0 -1
  1278. package/dist/magma-components/p-2ccc796b.system.entry.js +0 -1
  1279. package/dist/magma-components/p-2d9d0887.system.entry.js +0 -1
  1280. package/dist/magma-components/p-2df01d02.system.entry.js +0 -1
  1281. package/dist/magma-components/p-3145c7eb.entry.js +0 -1
  1282. package/dist/magma-components/p-34018dfe.entry.js +0 -1
  1283. package/dist/magma-components/p-35a9f1b4.system.entry.js +0 -18
  1284. package/dist/magma-components/p-35ec8bbd.entry.js +0 -1
  1285. package/dist/magma-components/p-370f9463.system.entry.js +0 -1
  1286. package/dist/magma-components/p-387948c4.system.entry.js +0 -1
  1287. package/dist/magma-components/p-3aeecbba.system.entry.js +0 -1
  1288. package/dist/magma-components/p-3af9132f.system.entry.js +0 -1
  1289. package/dist/magma-components/p-3bfd085f.system.entry.js +0 -1
  1290. package/dist/magma-components/p-3c246a39.entry.js +0 -1
  1291. package/dist/magma-components/p-3c2bf79b.entry.js +0 -1
  1292. package/dist/magma-components/p-3ce52f3c.entry.js +0 -1
  1293. package/dist/magma-components/p-3e5993b4.entry.js +0 -1
  1294. package/dist/magma-components/p-3ef80cd4.system.entry.js +0 -1
  1295. package/dist/magma-components/p-3fc3b8b4.entry.js +0 -1
  1296. package/dist/magma-components/p-423955d1.system.entry.js +0 -1
  1297. package/dist/magma-components/p-42f336df.system.entry.js +0 -1
  1298. package/dist/magma-components/p-45a85712.system.entry.js +0 -1
  1299. package/dist/magma-components/p-460cd731.system.entry.js +0 -1
  1300. package/dist/magma-components/p-473f6954.entry.js +0 -1
  1301. package/dist/magma-components/p-47fa0ecf.entry.js +0 -1
  1302. package/dist/magma-components/p-4b07fe37.entry.js +0 -1
  1303. package/dist/magma-components/p-4b884441.entry.js +0 -1
  1304. package/dist/magma-components/p-4ba583c9.entry.js +0 -1
  1305. package/dist/magma-components/p-4c08fe3e.entry.js +0 -1
  1306. package/dist/magma-components/p-4f490917.entry.js +0 -1
  1307. package/dist/magma-components/p-4f98fdba.system.entry.js +0 -1
  1308. package/dist/magma-components/p-50553954.system.entry.js +0 -1
  1309. package/dist/magma-components/p-523d4716.entry.js +0 -1
  1310. package/dist/magma-components/p-52ccfafc.system.entry.js +0 -1
  1311. package/dist/magma-components/p-52e2f903.entry.js +0 -1
  1312. package/dist/magma-components/p-53195d95.system.entry.js +0 -1
  1313. package/dist/magma-components/p-5488f51f.system.entry.js +0 -1
  1314. package/dist/magma-components/p-553927f9.system.entry.js +0 -1
  1315. package/dist/magma-components/p-55b4bbba.entry.js +0 -1
  1316. package/dist/magma-components/p-583f5ffa.entry.js +0 -1
  1317. package/dist/magma-components/p-59d65cff.entry.js +0 -1
  1318. package/dist/magma-components/p-59f53701.system.entry.js +0 -1
  1319. package/dist/magma-components/p-5b881091.entry.js +0 -1
  1320. package/dist/magma-components/p-5c44d208.entry.js +0 -1
  1321. package/dist/magma-components/p-5fdcd8e2.system.entry.js +0 -1
  1322. package/dist/magma-components/p-5fe7b875.system.entry.js +0 -1
  1323. package/dist/magma-components/p-614e7f83.system.entry.js +0 -1
  1324. package/dist/magma-components/p-62cf9003.system.entry.js +0 -1
  1325. package/dist/magma-components/p-63898681.entry.js +0 -1
  1326. package/dist/magma-components/p-663a510e.entry.js +0 -1
  1327. package/dist/magma-components/p-68f57bb1.entry.js +0 -1
  1328. package/dist/magma-components/p-6ae4df92.system.entry.js +0 -1
  1329. package/dist/magma-components/p-6d268a59.entry.js +0 -1
  1330. package/dist/magma-components/p-7306b02e.system.entry.js +0 -17
  1331. package/dist/magma-components/p-75011fed.system.entry.js +0 -9
  1332. package/dist/magma-components/p-7595afcf.entry.js +0 -18
  1333. package/dist/magma-components/p-77e9bd68.entry.js +0 -1
  1334. package/dist/magma-components/p-7d836722.entry.js +0 -1
  1335. package/dist/magma-components/p-7e037cf3.entry.js +0 -8
  1336. package/dist/magma-components/p-8106dbfd.system.entry.js +0 -1
  1337. package/dist/magma-components/p-82deeaa0.system.entry.js +0 -1
  1338. package/dist/magma-components/p-83589b83.entry.js +0 -1
  1339. package/dist/magma-components/p-83721814.entry.js +0 -18
  1340. package/dist/magma-components/p-83de0e53.system.entry.js +0 -1
  1341. package/dist/magma-components/p-849760e7.system.entry.js +0 -1
  1342. package/dist/magma-components/p-85ac6e54.system.entry.js +0 -1
  1343. package/dist/magma-components/p-87f8a213.entry.js +0 -1
  1344. package/dist/magma-components/p-89bf698e.system.entry.js +0 -1
  1345. package/dist/magma-components/p-89f96753.system.entry.js +0 -1
  1346. package/dist/magma-components/p-8RYXTPXs.js +0 -1
  1347. package/dist/magma-components/p-8b3065b4.entry.js +0 -1
  1348. package/dist/magma-components/p-8bec8ad6.system.entry.js +0 -1
  1349. package/dist/magma-components/p-8d76853c.system.entry.js +0 -1
  1350. package/dist/magma-components/p-8f1ce3f1.system.entry.js +0 -1
  1351. package/dist/magma-components/p-9021fa60.entry.js +0 -1
  1352. package/dist/magma-components/p-90b72c1c.system.entry.js +0 -1
  1353. package/dist/magma-components/p-90d5b6df.system.entry.js +0 -1
  1354. package/dist/magma-components/p-913372ff.entry.js +0 -1
  1355. package/dist/magma-components/p-94093140.system.entry.js +0 -1
  1356. package/dist/magma-components/p-944d9b27.system.entry.js +0 -1
  1357. package/dist/magma-components/p-94713401.entry.js +0 -1
  1358. package/dist/magma-components/p-956b5ae6.entry.js +0 -1
  1359. package/dist/magma-components/p-95eae04e.entry.js +0 -1
  1360. package/dist/magma-components/p-961a2531.entry.js +0 -1
  1361. package/dist/magma-components/p-9658cb0c.entry.js +0 -1
  1362. package/dist/magma-components/p-96d1a168.entry.js +0 -1
  1363. package/dist/magma-components/p-96f6a646.entry.js +0 -1
  1364. package/dist/magma-components/p-98435b90.system.entry.js +0 -1
  1365. package/dist/magma-components/p-988b0c7c.entry.js +0 -1
  1366. package/dist/magma-components/p-98a05642.system.entry.js +0 -1
  1367. package/dist/magma-components/p-99f7a1b6.system.entry.js +0 -1
  1368. package/dist/magma-components/p-9a1940c1.system.entry.js +0 -1
  1369. package/dist/magma-components/p-9a89bc78.system.entry.js +0 -1
  1370. package/dist/magma-components/p-9ad586a7.system.entry.js +0 -1
  1371. package/dist/magma-components/p-9b52918e.system.entry.js +0 -1
  1372. package/dist/magma-components/p-9yaIBCJC.system.js +0 -1
  1373. package/dist/magma-components/p-BMAK4u5Y.system.js +0 -1
  1374. package/dist/magma-components/p-Bh89IjzU.system.js +0 -1
  1375. package/dist/magma-components/p-BudfaWhu.js +0 -1
  1376. package/dist/magma-components/p-C1oxPa_J.js +0 -1
  1377. package/dist/magma-components/p-CAd5312P.js +0 -2
  1378. package/dist/magma-components/p-CJPnuGyH.system.js +0 -1
  1379. package/dist/magma-components/p-CxU_BeBE.js +0 -1
  1380. package/dist/magma-components/p-DI5DWqw4.system.js +0 -2
  1381. package/dist/magma-components/p-DTZViJWJ.system.js +0 -1
  1382. package/dist/magma-components/p-DcKeJ0td.system.js +0 -6
  1383. package/dist/magma-components/p-a1af65e8.entry.js +0 -1
  1384. package/dist/magma-components/p-a4oAcjYG.js +0 -5
  1385. package/dist/magma-components/p-a5473293.system.entry.js +0 -1
  1386. package/dist/magma-components/p-a6caafcb.system.entry.js +0 -1
  1387. package/dist/magma-components/p-a7bd4585.entry.js +0 -1
  1388. package/dist/magma-components/p-a88fba47.system.entry.js +0 -1
  1389. package/dist/magma-components/p-a959ade4.entry.js +0 -1
  1390. package/dist/magma-components/p-aa7d8972.entry.js +0 -1
  1391. package/dist/magma-components/p-aa98652f.entry.js +0 -1
  1392. package/dist/magma-components/p-aaeb0ee3.system.entry.js +0 -1
  1393. package/dist/magma-components/p-ab89bf5b.system.entry.js +0 -1
  1394. package/dist/magma-components/p-abc720e3.entry.js +0 -1
  1395. package/dist/magma-components/p-abe87810.entry.js +0 -1
  1396. package/dist/magma-components/p-ac80aca8.entry.js +0 -1
  1397. package/dist/magma-components/p-acb07134.system.entry.js +0 -1
  1398. package/dist/magma-components/p-acd4f96a.entry.js +0 -1
  1399. package/dist/magma-components/p-af49bca2.entry.js +0 -1
  1400. package/dist/magma-components/p-af670eaf.entry.js +0 -1
  1401. package/dist/magma-components/p-b14a94e0.system.entry.js +0 -1
  1402. package/dist/magma-components/p-b2bc194a.entry.js +0 -1
  1403. package/dist/magma-components/p-b2e76c18.system.entry.js +0 -1
  1404. package/dist/magma-components/p-b37dff80.system.entry.js +0 -1
  1405. package/dist/magma-components/p-b3e3226e.entry.js +0 -1
  1406. package/dist/magma-components/p-b40f1153.entry.js +0 -1
  1407. package/dist/magma-components/p-b4709a95.entry.js +0 -1
  1408. package/dist/magma-components/p-b5db6527.system.entry.js +0 -1
  1409. package/dist/magma-components/p-b764defa.entry.js +0 -1
  1410. package/dist/magma-components/p-b9b2501e.system.entry.js +0 -1
  1411. package/dist/magma-components/p-b9b5bcdd.system.entry.js +0 -1
  1412. package/dist/magma-components/p-ba2a0bc1.system.entry.js +0 -1
  1413. package/dist/magma-components/p-bb4380cd.entry.js +0 -1
  1414. package/dist/magma-components/p-bce3a8b0.system.entry.js +0 -1
  1415. package/dist/magma-components/p-bd2998e6.system.entry.js +0 -1
  1416. package/dist/magma-components/p-bd3dbc2d.entry.js +0 -1
  1417. package/dist/magma-components/p-bed57abb.entry.js +0 -1
  1418. package/dist/magma-components/p-bfed0b7a.entry.js +0 -1
  1419. package/dist/magma-components/p-c6177cb9.system.entry.js +0 -1
  1420. package/dist/magma-components/p-c638556c.entry.js +0 -1
  1421. package/dist/magma-components/p-c6fa4a21.entry.js +0 -1
  1422. package/dist/magma-components/p-c8e99385.system.entry.js +0 -1
  1423. package/dist/magma-components/p-c9231987.entry.js +0 -1
  1424. package/dist/magma-components/p-c9c51ba6.system.entry.js +0 -1
  1425. package/dist/magma-components/p-cc53b30c.entry.js +0 -1
  1426. package/dist/magma-components/p-ccc0521c.entry.js +0 -1
  1427. package/dist/magma-components/p-cd71630e.system.entry.js +0 -1
  1428. package/dist/magma-components/p-cd879243.system.entry.js +0 -1
  1429. package/dist/magma-components/p-ce064d47.entry.js +0 -1
  1430. package/dist/magma-components/p-d1eea8ca.system.entry.js +0 -1
  1431. package/dist/magma-components/p-d2537229.system.entry.js +0 -1
  1432. package/dist/magma-components/p-d2617a1a.entry.js +0 -1
  1433. package/dist/magma-components/p-d41c4637.system.entry.js +0 -1
  1434. package/dist/magma-components/p-d88f44aa.entry.js +0 -1
  1435. package/dist/magma-components/p-dae9ae8e.system.entry.js +0 -1
  1436. package/dist/magma-components/p-dd860de4.entry.js +0 -1
  1437. package/dist/magma-components/p-df87e2f5.system.entry.js +0 -1
  1438. package/dist/magma-components/p-dfe082be.system.entry.js +0 -1
  1439. package/dist/magma-components/p-e00ba5a0.entry.js +0 -1
  1440. package/dist/magma-components/p-e0d12fa2.system.entry.js +0 -1
  1441. package/dist/magma-components/p-e2cd11c3.entry.js +0 -1
  1442. package/dist/magma-components/p-e5fb3081.system.entry.js +0 -1
  1443. package/dist/magma-components/p-e67a6452.entry.js +0 -1
  1444. package/dist/magma-components/p-e6d8c9e3.system.entry.js +0 -1
  1445. package/dist/magma-components/p-e71aecc1.entry.js +0 -1
  1446. package/dist/magma-components/p-eac692ea.system.entry.js +0 -1
  1447. package/dist/magma-components/p-ecf2e98d.system.entry.js +0 -1
  1448. package/dist/magma-components/p-ed6d1453.system.entry.js +0 -1
  1449. package/dist/magma-components/p-f289eb5a.entry.js +0 -1
  1450. package/dist/magma-components/p-f3604c99.entry.js +0 -1
  1451. package/dist/magma-components/p-f3dbca34.entry.js +0 -1
  1452. package/dist/magma-components/p-f4b4bdf2.system.entry.js +0 -1
  1453. package/dist/magma-components/p-f56d16f7.entry.js +0 -1
  1454. package/dist/magma-components/p-f8014852.system.entry.js +0 -1
  1455. package/dist/magma-components/p-f851100d.entry.js +0 -1
  1456. package/dist/magma-components/p-f8d5adce.entry.js +0 -1
  1457. package/dist/magma-components/p-fa427f75.system.entry.js +0 -1
  1458. package/dist/magma-components/p-fa6a05b5.entry.js +0 -1
  1459. package/dist/magma-components/p-fb8b0104.entry.js +0 -1
  1460. package/dist/magma-components/p-fcf59139.system.entry.js +0 -1
  1461. package/dist/magma-components/p-fe3d5720.system.entry.js +0 -1
  1462. package/dist/magma-components/p-fe85ad8e.system.entry.js +0 -1
  1463. package/dist/magma-components/p-ffae137a.entry.js +0 -1
  1464. package/dist/magma-components/p-oCzRm29V.system.js +0 -1
  1465. package/dist/magma-components/p-ttrRC6OE.js +0 -1
  1466. package/dist/magma-components/p-vYOT2M2B.system.js +0 -1
  1467. package/dist/types/components/mds-accordion/test/mds-accordion.stories.d.ts +0 -39
  1468. package/dist/types/components/mds-accordion-item/test/mds-accordion-item.stories.d.ts +0 -41
  1469. package/dist/types/components/mds-accordion-timer/test/mds-accordion-timer.stories.d.ts +0 -45
  1470. package/dist/types/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.d.ts +0 -67
  1471. package/dist/types/components/mds-author/test/mds-author.stories.d.ts +0 -10
  1472. package/dist/types/components/mds-avatar/test/mds-avatar.stories.d.ts +0 -82
  1473. package/dist/types/components/mds-avatar-stack/test/mds-avatar-stack.stories.d.ts +0 -38
  1474. package/dist/types/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.d.ts +0 -71
  1475. package/dist/types/components/mds-badge/test/mds-badge.stories.d.ts +0 -56
  1476. package/dist/types/components/mds-banner/test/mds-banner.stories.d.ts +0 -115
  1477. package/dist/types/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.d.ts +0 -85
  1478. package/dist/types/components/mds-bibliography/test/mds-bibliography.stories.d.ts +0 -129
  1479. package/dist/types/components/mds-breadcrumb/test/mds-breadcrumb.stories.d.ts +0 -16
  1480. package/dist/types/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.d.ts +0 -26
  1481. package/dist/types/components/mds-button/test/mds-button.stories.d.ts +0 -253
  1482. package/dist/types/components/mds-button-dropdown/test/mds-button-dropdown.stories.d.ts +0 -104
  1483. package/dist/types/components/mds-button-group/test/mds-button-group.stories.d.ts +0 -10
  1484. package/dist/types/components/mds-calendar/test/mds-calendar.stories.d.ts +0 -23
  1485. package/dist/types/components/mds-card/test/mds-card.stories.d.ts +0 -66
  1486. package/dist/types/components/mds-chip/test/mds-chip.stories.d.ts +0 -121
  1487. package/dist/types/components/mds-details/test/mds-details.stories.d.ts +0 -21
  1488. package/dist/types/components/mds-dropdown/test/mds-dropdown.stories.d.ts +0 -275
  1489. package/dist/types/components/mds-emoji/test/mds-emoji.stories.d.ts +0 -19
  1490. package/dist/types/components/mds-entity/test/mds-entity.stories.d.ts +0 -84
  1491. package/dist/types/components/mds-file/test/mds-file.stories.d.ts +0 -145
  1492. package/dist/types/components/mds-file-preview/test/mds-file-preview.stories.d.ts +0 -157
  1493. package/dist/types/components/mds-filter/test/mds-filter.stories.d.ts +0 -56
  1494. package/dist/types/components/mds-filter-item/test/mds-filter-item.stories.d.ts +0 -43
  1495. package/dist/types/components/mds-header/test/mds-header.stories.d.ts +0 -68
  1496. package/dist/types/components/mds-header-bar/test/mds-header-bar.stories.d.ts +0 -23
  1497. package/dist/types/components/mds-help/test/mds-help.stories.d.ts +0 -25
  1498. package/dist/types/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.d.ts +0 -57
  1499. package/dist/types/components/mds-hr/test/mds-hr.stories.d.ts +0 -13
  1500. package/dist/types/components/mds-icon/test/mds-icon.stories.d.ts +0 -55
  1501. package/dist/types/components/mds-img/test/mds-img-accessibility.stories.d.ts +0 -93
  1502. package/dist/types/components/mds-img/test/mds-img.stories.d.ts +0 -122
  1503. package/dist/types/components/mds-input/test/mds-input.stories.d.ts +0 -332
  1504. package/dist/types/components/mds-input-date/test/mds-input-date.stories.d.ts +0 -73
  1505. package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +0 -70
  1506. package/dist/types/components/mds-input-field/test/mds-input-field.stories.d.ts +0 -86
  1507. package/dist/types/components/mds-input-otp/test/mds-input-otp.stories.d.ts +0 -36
  1508. package/dist/types/components/mds-input-range/test/mds-input-range.stories.d.ts +0 -75
  1509. package/dist/types/components/mds-input-select/test/mds-input-select.stories.d.ts +0 -105
  1510. package/dist/types/components/mds-input-switch/test/mds-input-switch.stories.d.ts +0 -195
  1511. package/dist/types/components/mds-input-tip/test/mds-input-tip.stories.d.ts +0 -22
  1512. package/dist/types/components/mds-input-tip-item/test/mds-input-tip.stories.d.ts +0 -22
  1513. package/dist/types/components/mds-input-upload/test/mds-input-upload.stories.d.ts +0 -55
  1514. package/dist/types/components/mds-keyboard/test/mds-keyboard.stories.d.ts +0 -27
  1515. package/dist/types/components/mds-keyboard-key/test/mds-keyboard-key.stories.d.ts +0 -22
  1516. package/dist/types/components/mds-kpi/test/mds-kpi.stories.d.ts +0 -26
  1517. package/dist/types/components/mds-kpi-item/test/mds-kpi-item.stories.d.ts +0 -42
  1518. package/dist/types/components/mds-label/test/mds-label.stories.d.ts +0 -86
  1519. package/dist/types/components/mds-list/test/mds-list.stories.d.ts +0 -7
  1520. package/dist/types/components/mds-list-item/test/mds-list-item.stories.d.ts +0 -38
  1521. package/dist/types/components/mds-mention/test/mds-mention.stories.d.ts +0 -38
  1522. package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +0 -142
  1523. package/dist/types/components/mds-note/test/mds-note.stories.d.ts +0 -34
  1524. package/dist/types/components/mds-notification/test/mds-notification.stories.d.ts +0 -68
  1525. package/dist/types/components/mds-paginator/test/mds-paginator.stories.d.ts +0 -33
  1526. package/dist/types/components/mds-policy-ai/test/mds-policy.stories.d.ts +0 -83
  1527. package/dist/types/components/mds-pref/test/mds-pref.stories.d.ts +0 -29
  1528. package/dist/types/components/mds-pref-animation/test/mds-pref-animation.stories.d.ts +0 -20
  1529. package/dist/types/components/mds-pref-consumption/test/mds-pref-consumption.stories.d.ts +0 -20
  1530. package/dist/types/components/mds-pref-contrast/test/mds-pref-contrast.stories.d.ts +0 -20
  1531. package/dist/types/components/mds-pref-language/test/mds-pref-language.stories.d.ts +0 -20
  1532. package/dist/types/components/mds-pref-theme/test/mds-pref-theme.stories.d.ts +0 -30
  1533. package/dist/types/components/mds-pref-theme-variant/mds-pref-theme-variant.d.ts +0 -62
  1534. package/dist/types/components/mds-pref-theme-variant/meta/dictionary.d.ts +0 -2
  1535. package/dist/types/components/mds-pref-theme-variant/test/mds-pref-theme-variant.stories.d.ts +0 -30
  1536. package/dist/types/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.d.ts +0 -35
  1537. package/dist/types/components/mds-price-table/test/mds-price-table.stories.d.ts +0 -10
  1538. package/dist/types/components/mds-price-table-features/test/mds-price-table-features.stories.d.ts +0 -10
  1539. package/dist/types/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.d.ts +0 -10
  1540. package/dist/types/components/mds-price-table-header/test/mds-price-table-header.stories.d.ts +0 -7
  1541. package/dist/types/components/mds-price-table-list/test/mds-price-table-list.stories.d.ts +0 -10
  1542. package/dist/types/components/mds-progress/test/mds-progress.stories.d.ts +0 -89
  1543. package/dist/types/components/mds-push-notification/test/mds-push-notification.stories.d.ts +0 -28
  1544. package/dist/types/components/mds-push-notification-item/test/mds-push-notification-item.stories.d.ts +0 -210
  1545. package/dist/types/components/mds-quote/test/mds-quote.stories.d.ts +0 -34
  1546. package/dist/types/components/mds-radial-menu/test/mds-radial-menu.stories.d.ts +0 -123
  1547. package/dist/types/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.d.ts +0 -48
  1548. package/dist/types/components/mds-radial-progress/test/mds-radial-progress.stories.d.ts +0 -68
  1549. package/dist/types/components/mds-separator/test/mds-separator.stories.d.ts +0 -7
  1550. package/dist/types/components/mds-spinner/test/mds-spinner.stories.d.ts +0 -21
  1551. package/dist/types/components/mds-status-bar/test/mds-status-bar.stories.d.ts +0 -34
  1552. package/dist/types/components/mds-stepper-bar/test/mds-stepper-bar.stories.d.ts +0 -45
  1553. package/dist/types/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.d.ts +0 -102
  1554. package/dist/types/components/mds-tab/test/mds-tab.stories.d.ts +0 -111
  1555. package/dist/types/components/mds-tab-bar/test/mds-tab-bar.stories.d.ts +0 -7
  1556. package/dist/types/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.d.ts +0 -25
  1557. package/dist/types/components/mds-tab-item/test/mds-tab-item.stories.d.ts +0 -69
  1558. package/dist/types/components/mds-table/test/mds-table.stories.d.ts +0 -63
  1559. package/dist/types/components/mds-text/test/mds-text.stories.d.ts +0 -181
  1560. package/dist/types/components/mds-toast/test/mds-toast.stories.d.ts +0 -59
  1561. package/dist/types/components/mds-tooltip/test/mds-tooltip.stories.d.ts +0 -192
  1562. package/dist/types/components/mds-tree/test/mds-tree-apk.stories.d.ts +0 -16
  1563. package/dist/types/components/mds-tree/test/mds-tree.stories.d.ts +0 -86
  1564. package/dist/types/components/mds-tree-item/test/mds-tree-item.stories.d.ts +0 -48
  1565. package/dist/types/components/mds-url-view/test/mds-url-view.stories.d.ts +0 -63
  1566. package/dist/types/components/mds-usage/test/mds-usage.stories.d.ts +0 -37
  1567. package/dist/types/components/mds-video-wall/test/mds-video-wall.stories.d.ts +0 -119
  1568. package/dist/types/components/mds-zero/test/mds-zero.stories.d.ts +0 -7
  1569. package/dist/types/event-detail/theme-variant.d.ts +0 -5
  1570. package/dist/types/storybook/box-shadows.stories.d.ts +0 -7
  1571. package/dist/types/storybook/color-scale.stories.d.ts +0 -7
  1572. package/dist/types/storybook/components-preview.stories.d.ts +0 -33
  1573. package/dist/types/storybook/example-page.stories.d.ts +0 -7
  1574. package/dist/types/storybook/fouc-hydrated.stories.d.ts +0 -7
  1575. package/dist/types/storybook/input-form.stories.d.ts +0 -7
  1576. package/dist/types/storybook/same-childrend-slot-names.stories.d.ts +0 -7
  1577. package/dist/types/test/file.d.ts +0 -35
  1578. package/dist/types/test/mock.d.ts +0 -2
  1579. /package/dist/collection/{event-detail/theme-variant.js → components/mds-mention/meta/interface.js} +0 -0
  1580. /package/dist/components/{broken-image.js → p-0FAG3rkw.js} +0 -0
  1581. /package/dist/components/{horizontal-rule.js → p-BE8xuIpS.js} +0 -0
  1582. /package/dist/components/{check-circle.js → p-BFhO-KUe.js} +0 -0
  1583. /package/dist/components/{cancel.js → p-BJ8rpzfj.js} +0 -0
  1584. /package/dist/components/{calendar-today.js → p-BVQMG7KJ.js} +0 -0
  1585. /package/dist/components/{arrow-forward.js → p-Bd0uuNDE.js} +0 -0
  1586. /package/dist/components/{keys.js → p-C4ckbXOl.js} +0 -0
  1587. /package/dist/components/{panorama.js → p-CGFwoK_U.js} +0 -0
  1588. /package/dist/components/{aria.js → p-CSCy6TMW.js} +0 -0
  1589. /package/dist/components/{keyboard-arrow-up.js → p-Ccz0jCNB.js} +0 -0
  1590. /package/dist/components/{clsx.js → p-ChV9xqsO.js} +0 -0
  1591. /package/dist/components/{done.js → p-CvUz9jjh.js} +0 -0
  1592. /package/dist/components/{remove.js → p-D17B058a.js} +0 -0
  1593. /package/dist/components/{unit.js → p-D8eZRaSQ.js} +0 -0
  1594. /package/dist/components/{keyboard-arrow-right.js → p-DFyAGAnn.js} +0 -0
  1595. /package/dist/components/{keyboard-arrow-down.js → p-DiWN48aq.js} +0 -0
  1596. /package/dist/components/{browser.js → p-Dje8Mggf.js} +0 -0
  1597. /package/dist/components/{arrow-back.js → p-DnEUG7st.js} +0 -0
  1598. /package/dist/components/{_commonjsHelpers.js → p-E-ZsRS8r.js} +0 -0
  1599. /package/dist/components/{close.js → p-J-ikDhyq.js} +0 -0
  1600. /package/dist/components/{settings.js → p-XQgkfNpn.js} +0 -0
  1601. /package/dist/components/{circle.js → p-lZldSMeV.js} +0 -0
@@ -1 +1,39 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,a,n){function r(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,i){function s(t){try{d(n.next(t))}catch(t){i(t)}}function o(t){try{d(n["throw"](t))}catch(t){i(t)}}function d(t){t.done?a(t.value):r(t.value).then(s,o)}d((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return d([t,e])}}function d(o){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(a=0)),a)try{if(n=1,r&&(i=o[0]&2?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;if(r=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;r=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(o[0]===6&&a.label<i[1]){a.label=i[1];i=o;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(o);break}if(i[2])a.ops.pop();a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t];r=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{m as miBaselineCalendarToday}from"./calendar-today-BVQMG7KJ.js";import{D as DateTime}from"./datetime-BJtA1qmE.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{L as Locale}from"./locale-a4oAcjYG.js";var from$3="Από";var to$3="έως";var localeEl={from:from$3,to:to$3};var from$2="From";var to$2="to";var localeEn={from:from$2,to:to$2};var from$1="De";var to$1="a";var localeEs={from:from$1,to:to$1};var from="Dal";var to="al";var localeIt={from:from,to:to};var mdsInputDateRangeCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--mds-input-date-range-background:rgb(var(--tone-neutral,0 0 0));--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(--variant-primary-03,211 226 255));--mds-input-date-range-variant-color-rgb:0 0 0}}}@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}@property --mds-input-date-range-calendar-width{syntax:"<length>";inherits:false;initial-value:22rem}@property --mds-input-date-range-fields-firefox-justify-content{syntax:"start|end|center|left|right|flex-start|flex-end";inherits:false;initial-value:start}@property --mds-input-date-range-variant-color-rgb{syntax:"<integer>+";inherits:false;initial-value:0 0 0}:host{--mds-input-date-range-background:rgb(var(--tone-neutral,0 0 0));--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(--variant-primary-03,211 226 255));--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);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(--radius-2xl,24px);color:rgb(var(--tone-neutral-02,244 244 244));corner-shape:var(--magma-corner-shape,round);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(--variant-primary-04,184 208 255));--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(--tone-neutral,0 0 0)));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(--duration-300,.3s);transition-duration:var(--duration-300,.3s);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}.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(--tone-neutral-09,76 76 76));border-radius:var(--radius-lg,16px);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}.calendar-single mds-calendar,.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(--variant-primary-03,211 226 255)))}mds-dropdown{padding:0}:host-context(:root.pref-animation-reduce) .input{transition-duration:0s}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)){--mds-input-date-range-ring:var(--shadow-outline-50);--mds-input-date-range-background:rgb(var(--tone-neutral-09,76 76 76));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-06,158 158 158))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08,107 107 107))}:host-context(:root.pref-contrast-more){--mds-input-date-range-ring:var(--shadow-outline-strong-50);--mds-input-date-range-background:rgb(var(--tone-neutral-09,76 76 76));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-05,197 197 197))}:host-context(:root.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03,233 233 233))}:host-context(:root.pref-contrast-more) .input:-ms-placeholder-shown{color:rgb(var(--tone-neutral-03,233 233 233))}@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(--variant-primary-05,152 188 255));--mds-input-date-range-variant-color-rgb:var(--variant-primary-04,184 208 255)}:host([variant=ai]){--mds-input-date-range-icon-color:rgb(var(--variant-ai-04,218 199 253));--mds-input-tip-background:rgb(var(--variant-ai-05,202 174 251));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=ai]:focus-within){--mds-input-date-range-icon-color:rgb(var(--variant-ai-05,202 174 251));--mds-input-date-range-variant-color-rgb:var(--variant-ai-04,218 199 253)}:host([variant=info]){--mds-input-date-range-icon-color:rgb(var(--status-info-04,159 216 241));--mds-input-tip-background:rgb(var(--status-info-05,112 198 234));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=info]:focus-within){--mds-input-date-range-icon-color:rgb(var(--status-info-05,112 198 234));--mds-input-date-range-variant-color-rgb:var(--status-info-04,159 216 241)}:host([variant=success]){--mds-input-date-range-icon-color:rgb(var(--status-success-04,158 222 181));--mds-input-tip-background:rgb(var(--status-success-05,107 206 147));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=success]:focus-within){--mds-input-date-range-icon-color:rgb(var(--status-success-05,107 206 147));--mds-input-date-range-variant-color-rgb:var(--status-success-04,158 222 181)}:host([variant=warning]){--mds-input-date-range-icon-color:rgb(var(--status-warning-04,255 200 33));--mds-input-tip-background:rgb(var(--status-warning-05,237 177 0));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=warning]:focus-within){--mds-input-date-range-icon-color:rgb(var(--status-warning-05,237 177 0));--mds-input-date-range-variant-color-rgb:var(--status-warning-04,255 200 33)}:host([variant=error]){--mds-input-date-range-icon-color:rgb(var(--status-error-04,254 193 189));--mds-input-tip-background:rgb(var(--status-error-05,250 165 160));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=error]:focus-within){--mds-input-date-range-icon-color:rgb(var(--status-error-05,250 165 160));--mds-input-date-range-variant-color-rgb:var(--status-error-04,254 193 189)}@media (forced-colors:active){:host(:focus-within) .inputs{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion){:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .input{transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))){--mds-input-date-range-ring:var(--shadow-outline-50);--mds-input-date-range-background:rgb(var(--tone-neutral-09,76 76 76));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-06,158 158 158))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08,107 107 107))}}@media (prefers-contrast:more){:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))){--mds-input-date-range-ring:var(--shadow-outline-strong-50);--mds-input-date-range-background:rgb(var(--tone-neutral-09,76 76 76));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-05,197 197 197))}:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .input::placeholder{color:rgb(var(--tone-neutral-03,233 233 233))}:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .input:-ms-placeholder-shown{color:rgb(var(--tone-neutral-03,233 233 233))}}'};var MdsInputDateRange=function(){function t(t){var e=this;registerInstance(this,t);this.valueChanged=createEvent(this,"mdsInputDateRangeValueChange");if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.calendarKey=0;this.internalStartDate="";this.internalEndDate="";this.visibleCalendarDate="";this.hasPreselection=false;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.startDate="";this.endDate="";this.min=null;this.max=null;this.delay=500;this.dualCalendar=false;this.lastEmittedStartDate=null;this.lastEmittedEndDate=null;this.initialStartDate="";this.initialEndDate="";this.hoveredCalendarDate=null;this.syncingInputSlots=new Set;this.handleFocusOut=function(t){if(!e.host.contains(t.relatedTarget)){var a=DateTime.fromISO(e.internalStartDate).isValid;var n=DateTime.fromISO(e.internalEndDate).isValid;if(a&&n){e.validateDateRange();e.syncFormValue();e.checkPreselections();e.emitValueChanged()}}};this.focusInput=function(t){t.focusInput()};this.focusDateInput=function(t){if(t.target!==e.host){return}e.focusStartDateInput(t)};this.focusStartDateInput=function(t){t.preventDefault();t.stopPropagation();e.focusInput(e.host.querySelector('mds-input-date[slot="start"]'))};this.focusEndDateInput=function(t){t.preventDefault();t.stopPropagation();e.focusInput(e.host.querySelector('mds-input-date[slot="end"]'))};this.handleCalendarHover=function(t){if(e.internalStartDate===""||e.internalEndDate!==""){e.clearHoverPreview();return}var a=t.detail.hoverDate;if(e.hoveredCalendarDate===a)return;e.hoveredCalendarDate=a;e.syncCalendarsHoverAttributes()};this.handleCalendarChange=function(t){e.clearHoverPreview();e.internalStartDate=t.detail.startDate;e.updateInputValue("start",e.internalStartDate);if(t.detail.endDate!==undefined&&t.detail.endDate!==""){e.internalEndDate=t.detail.endDate;e.updateInputValue("end",e.internalEndDate)}else{e.internalEndDate="";e.updateInputValue("end",e.internalEndDate)}e.syncFormValue();e.syncCalendarsSelectionAttributes();if(e.internalStartDate!==""&&e.internalEndDate!==""){e.emitValueChanged();e.closeDropdownAfterSelection()}};this.handleCalendarNavigate=function(t){if(!e.dualCalendar)return;var a=e.getCalendars();var n=a.indexOf(t.target);var r=DateTime.fromISO(t.detail.currentDate);if(!r.isValid)return;e.visibleCalendarDate=r.minus({months:n===1?1:0}).startOf("month").toISODate()}}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.host);return[2]}))}))};t.prototype.getCalendars=function(){var t,e;return Array.from((e=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("mds-calendar"))!==null&&e!==void 0?e:[])};t.prototype.resolveVisibleCalendarDate=function(t,e){var a;var n=[t,e].map((function(t){return DateTime.fromISO(t!==null&&t!==void 0?t:"")})).filter((function(t){return t.isValid}));var r=(a=n[0])!==null&&a!==void 0?a:DateTime.now();return r.startOf("month").toISODate()};t.prototype.getCalendarViewDate=function(t){if(t===void 0){t=0}var e=DateTime.fromISO(this.visibleCalendarDate);var a=DateTime.fromISO(this.internalStartDate);var n=DateTime.now();if(e.isValid){n=e}else if(a.isValid){n=a}return n.startOf("month").plus({months:t}).toISODate()};t.prototype.setVisibleCalendarDate=function(t){var e=DateTime.fromISO(t);if(e.isValid){this.visibleCalendarDate=e.startOf("month").toISODate()}};t.prototype.closeDropdownAfterSelection=function(){if(this.delay===0)return;var t=this.dropdownRef;if(t){setTimeout((function(){t.visible=false}),this.delay)}};t.prototype.syncCalendarsSelectionAttributes=function(){var t=this;var e;(e=this.host.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("mds-calendar").forEach((function(e){if(t.internalStartDate!==""){e.setAttribute("start-date",t.internalStartDate)}else{e.removeAttribute("start-date")}if(t.internalEndDate!==""){e.setAttribute("end-date",t.internalEndDate)}else{e.removeAttribute("end-date")}}));this.syncCalendarsHoverAttributes()};t.prototype.syncCalendarsHoverAttributes=function(){var t=this;var e;(e=this.host.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("mds-calendar").forEach((function(e){if(t.hoveredCalendarDate!==null&&t.hoveredCalendarDate!==""){e.setAttribute("hover-date",t.hoveredCalendarDate)}else{e.removeAttribute("hover-date")}}))};t.prototype.clearHoverPreview=function(){if(this.hoveredCalendarDate===null)return;this.hoveredCalendarDate=null;this.syncCalendarsHoverAttributes()};t.prototype.getEmittableDateRangeDetail=function(){var t=DateTime.fromISO(this.internalStartDate);var e=DateTime.fromISO(this.internalEndDate);if(!t.isValid||!e.isValid){return null}return{startDate:this.internalStartDate,endDate:this.internalEndDate}};t.prototype.emitValueChanged=function(){var t=this.getEmittableDateRangeDetail();if(!t)return false;if(t.startDate===this.lastEmittedStartDate&&t.endDate===this.lastEmittedEndDate){return false}this.valueChanged.emit(t);this.lastEmittedStartDate=t.startDate;this.lastEmittedEndDate=t.endDate;return true};t.prototype.handleStartDateChange=function(t){this.syncExternalDate("start",t)};t.prototype.handleEndDateChange=function(t){this.syncExternalDate("end",t)};t.prototype.componentWillLoad=function(){this.language=this.t.lang(this.host);this.internalStartDate=this.startDate;this.internalEndDate=this.endDate;this.initialStartDate=this.startDate;this.initialEndDate=this.endDate;this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.internalStartDate,this.internalEndDate);if(this.min!==null&&this.min!==""&&this.max!==null&&this.max!==""){var t=DateTime.fromISO(this.min);var e=DateTime.fromISO(this.max);if(e<t){this.max=this.min}}this.syncFormValue()};t.prototype.disconnectedCallback=function(){var t;this.host.removeEventListener("focusout",this.handleFocusOut);(t=this.host.shadowRoot)===null||t===void 0?void 0:t.removeEventListener("mdsCalendarHover",this.handleCalendarHover)};t.prototype.preselect=function(t){return __awaiter(this,void 0,void 0,(function(){var e,a,n;var r=this;return __generator(this,(function(i){switch(i.label){case 0:if(this.togglePreselection==null){this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))}this.togglePreselection.forEach((function(t){t.selected=false}));t.caller.selected=true;this.clearHoverPreview();e=DateTime.fromISO(t.start);if(e.isValid){this.internalStartDate=t.start;this.setVisibleCalendarDate(this.internalStartDate);this.updateInputValue("start",this.internalStartDate)}if(t.end!==undefined){a=DateTime.fromISO(t.end);if(a.isValid){this.internalEndDate=t.end}}else{this.internalEndDate=t.start}this.updateInputValue("end",this.internalEndDate);this.syncFormValue();n=this.getCalendars();if(!(n.length!==0))return[3,2];return[4,Promise.all(n.map((function(t,e){return t.updateCurrentDate(r.getCalendarViewDate(e))})))];case 1:i.sent();this.closeDropdownAfterSelection();i.label=2;case 2:this.emitValueChanged();return[2,Promise.resolve()]}}))}))};t.prototype.componentDidLoad=function(){var t;this.updateInputListeners();this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.syncFormValue();this.host.addEventListener("focusout",this.handleFocusOut);(t=this.host.shadowRoot)===null||t===void 0?void 0:t.addEventListener("mdsCalendarHover",this.handleCalendarHover)};t.prototype.formResetCallback=function(){this.clearHoverPreview();this.internalStartDate=this.initialStartDate;this.internalEndDate=this.initialEndDate;this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.initialStartDate,this.initialEndDate);this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.checkPreselections();this.syncFormValue()};t.prototype.syncExternalDate=function(t,e){var a=e!==null&&e!==void 0?e:"";this.clearHoverPreview();if(t==="start"){if(a===this.internalStartDate)return;this.internalStartDate=a;this.setVisibleCalendarDate(this.internalStartDate)}else{if(a===this.internalEndDate)return;this.internalEndDate=a}this.validateDateRange();this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.checkPreselections();this.syncFormValue()};t.prototype.updateInputValue=function(t,e){var a=this;var n;var r=(n=this.host.shadowRoot)===null||n===void 0?void 0:n.querySelector('slot[name="'.concat(t,'"]'));var i=r===null||r===void 0?void 0:r.assignedElements()[0];if(i!=null){this.syncingInputSlots.add(t);i.setValue(e).finally((function(){requestAnimationFrame((function(){a.syncingInputSlots.delete(t)}))}))}};t.prototype.updateInputListeners=function(){var t,e;var a=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector('slot[name="start"]');var n=(e=this.host.shadowRoot)===null||e===void 0?void 0:e.querySelector('slot[name="end"]');this.hasPreselection=this.host.querySelector("mds-input-date-range-preselection")!==null;if(a!=null){var r=a.assignedElements()[0];r.addEventListener("mdsInputDateSelect",this.createFocusoutListener("start"))}if(n!=null){var r=n.assignedElements()[0];r.addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}};t.prototype.createFocusoutListener=function(t){var e=this;return function(a){if(e.syncingInputSlots.has(t)){return}var n=a;e.clearHoverPreview();if(t==="start"){e.internalStartDate=n.detail;e.setVisibleCalendarDate(e.internalStartDate)}else{e.internalEndDate=n.detail}e.syncFormValue()}};t.prototype.validateDateRange=function(){if(this.internalStartDate!==""&&this.internalEndDate!==""){var t=DateTime.fromISO(this.internalStartDate);var e=DateTime.fromISO(this.internalEndDate);if(e<t){this.internalEndDate=this.internalStartDate;this.updateInputValue("end",this.internalEndDate)}}};t.prototype.checkPreselections=function(){var t=this;var e=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));if(e!=null){e.forEach((function(e){var a=e;var n=a.start===t.internalStartDate&&a.end===t.internalEndDate;var r=a.start===t.internalStartDate&&t.internalStartDate===t.internalEndDate&&a.end===undefined;if(n||r){a.selected=true}else{a.selected=false}}))}};t.prototype.renderCalendarPreselectionPanel=function(){if(!this.hasPreselection)return null;return h("div",{class:"calendar-preselection-panel"},h("div",{class:clsx("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},h("slot",{name:"calendar-preselection"})))};t.prototype.renderSingleCalendar=function(){var t=this;return h("div",{class:"calendar-single"},this.renderCalendarPreselectionPanel(),h("mds-calendar",Object.assign({lang:this.language,key:this.calendarKey,rangePicker:true,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:function(){t.checkPreselections()},startDate:this.internalStartDate,endDate:this.internalEndDate},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{})))};t.prototype.renderDualCalendars=function(){var t=this;return h("div",{class:"calendars"},this.renderCalendarPreselectionPanel(),h("mds-calendar",Object.assign({lang:this.language,key:"".concat(this.calendarKey,"-start"),rangePicker:true,showNextButton:false,disableMonthYearSelection:true,viewDate:this.getCalendarViewDate(),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:function(){t.checkPreselections()},startDate:this.internalStartDate,endDate:this.internalEndDate},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{})),h("mds-calendar",Object.assign({lang:this.language,key:"".concat(this.calendarKey,"-end"),rangePicker:true,showPreviousButton:false,disableMonthYearSelection:true,viewDate:this.getCalendarViewDate(1),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:function(){t.checkPreselections()},startDate:this.internalStartDate,endDate:this.internalEndDate},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{})))};t.prototype.render=function(){var t=this;return h(Host,{key:"13d9a565316927ca4ec2586f82e2f25f7d04ae25",onClick:this.focusDateInput},h("div",{key:"71bda796783e6ead96c24ad4ed84ac79265291e8",class:"inputs"},h("div",{key:"c06b73facc486130eb89e857b782b15581cfba20",class:"input-element"},h("mds-text",{key:"340fa48ce0a88bd6445cfc874c27ec70e2426feb",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),h("div",{key:"b82416e3ffa442ee84004d20e298b859ca5543a8",class:"input-wrapper"},h("slot",{key:"9b8741fecf76c4503e58b044222b4ccb6bb889e0",name:"start"}))),h("div",{key:"fcd38e4e5d5a065001c712a960dd5bcae1dd5e79",class:"input-element"},h("mds-text",{key:"269cdf295bfefe625a3cf98f1aaf7fb021b688d4",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),h("div",{key:"ee917dba0a0af805e1ebe5b69fb997b492e044ba",class:"input-wrapper"},h("slot",{key:"dd22c8a98be387b76aa6b355f6b025db1a8fdbb6",name:"end"})))),h("div",{key:"ca651a85e149d23e4eafdf66c121ffa3d5685dca",class:"action-open-calendar-wrapper"},h("mds-button",{key:"ff5e89aec57614f98890f52859bc2f10e33bc85d",class:"action-open-calendar",variant:"dark",tone:"text",icon:miBaselineCalendarToday,id:"calendar-dropdown",onClick:function(){t.calendarKey+=1}})),h("mds-dropdown",{key:"30609e1d1eb75209b5e17444758b1b9b2ac19bce",ref:function(e){return t.dropdownRef=e},target:"#calendar-dropdown","auto-placement":false,placement:"bottom-end"},this.dualCalendar?this.renderDualCalendars():this.renderSingleCalendar()))};t.prototype.syncFormValue=function(){var t,e,a,n;var r=(e=(t=this.internalStartDate)===null||t===void 0?void 0:t.trim())!==null&&e!==void 0?e:"";var i=(n=(a=this.internalEndDate)===null||a===void 0?void 0:a.trim())!==null&&n!==void 0?n:"";if(r===""&&i===""){this.internals.setFormValue(null);return}this.internals.setFormValue(JSON.stringify({startDate:r,endDate:i}))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}]}},enumerable:false,configurable:true});return t}();MdsInputDateRange.style=mdsInputDateRangeCss();export{MdsInputDateRange as mds_input_date_range};
1
+ var __awaiter=this&&this.__awaiter||function(t,a,e,r){function i(t){return t instanceof e?t:new e((function(a){a(t)}))}return new(e||(e=Promise))((function(e,n){function s(t){try{d(r.next(t))}catch(t){n(t)}}function o(t){try{d(r["throw"](t))}catch(t){n(t)}}function d(t){t.done?e(t.value):i(t.value).then(s,o)}d((r=r.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(a){return d([t,a])}}function d(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(e=0)),e)try{if(r=1,i&&(n=o[0]&2?i["return"]:o[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;if(i=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(n=e.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){e.label=o[1];break}if(o[0]===6&&e.label<n[1]){e.label=n[1];n=o;break}if(n&&e.label<n[2]){e.label=n[2];e.ops.push(o);break}if(n[2])e.ops.pop();e.trys.pop();continue}o=a.call(t,e)}catch(t){o=[6,t];i=0}finally{r=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{s as setAttributeIfEmpty}from"./aria-CSCy6TMW.js";import{s as setFormValue}from"./form-A9TZf0Ii.js";import{m as miBaselineCalendarToday}from"./calendar-today-BVQMG7KJ.js";import{D as DateTime}from"./datetime-BJtA1qmE.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{L as Locale}from"./locale-CbJbTW_c.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";var endDate$3="Ημερομηνία λήξης";var from$3="Από";var startDate$3="Ημερομηνία έναρξης";var to$3="έως";var localeEl={endDate:endDate$3,from:from$3,startDate:startDate$3,to:to$3};var endDate$2="End date";var from$2="From";var startDate$2="Start date";var to$2="to";var localeEn={endDate:endDate$2,from:from$2,startDate:startDate$2,to:to$2};var endDate$1="Fecha de fin";var from$1="De";var startDate$1="Fecha de inicio";var to$1="a";var localeEs={endDate:endDate$1,from:from$1,startDate:startDate$1,to:to$1};var endDate="Data di fine";var from="Dal";var startDate="Data di inizio";var to="al";var localeIt={endDate:endDate,from:from,startDate:startDate,to:to};var mdsInputDateRangeCss=function(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar,mds-dropdown,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-date-range-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-input-date-range-calendar-width:22rem;--mds-input-date-range-fields-firefox-justify-content:start;--mds-input-date-range-fields-gap:0 calc(var(--spacing,.0025rem)*200);--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-date-range-ring:0 0 0 1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1);--mds-input-date-range-shadow:0 1px 3px 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 1px 2px 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);--mds-input-date-range-transition-duration:var(--duration-300,.3s);--private-input-date-range-transition-duration:var(--mds-input-date-range-transition-duration);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));corner-shape:var(--magma-corner-shape,squircle);container-type:inline-size;cursor:text;display:flex;gap:calc(var(--spacing,.0025rem)*200);overflow:visible;position:relative;--mds-input-date-range-icon-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-date-range-variant-color-rgb:0 0 0}.date-preselection{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.inputs{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-hack,.875rem);font-weight:var(--tw-font-weight,var(--text-size-code-hack--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-hack--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--mds-input-date-range-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));border-radius:inherit;-webkit-box-shadow:var(--mds-input-date-range-ring),var(--mds-input-date-range-shadow);box-shadow:var(--mds-input-date-range-ring),var(--mds-input-date-range-shadow);box-sizing:border-box;color:inherit;corner-shape:inherit;align-items:center;border:0;display:inline-flex;flex-wrap:wrap;gap:var(--mds-input-date-range-fields-gap,0 calc(var(--spacing,.0025rem)*200));margin:0;min-height:3rem;overflow:hidden;padding-left:calc(var(--spacing,.0025rem)*400);padding-right:calc(var(--spacing,.0025rem)*1200);text-overflow:ellipsis;-webkit-transition-duration:var(--private-input-date-range-transition-duration);transition-duration:var(--private-input-date-range-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:100%}.input-element{align-items:baseline;display:inline-flex}:host(:focus-within) .inputs{--tw-outline-style:none;outline-style:none;transition-duration:var(--default-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--default-transition-timing-function);--mds-input-date-range-ring:0 0 0 3px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/1);--mds-input-date-range-shadow:0 4px 6px 3px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 2px 4px -1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input-wrapper{display:flex;flex-shrink:0}:host ::slotted(mds-input-date){color:inherit}.date-label{margin-left:calc(var(--spacing,.0025rem)*50);margin-right:calc(var(--spacing,.0025rem)*50);min-width:min-content;white-space:nowrap}.date-label:first-child{margin-left:0}.calendars{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}.calendar-preselection-panel{align-content:start;background-color:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-sizing:border-box;display:grid;min-inline-size:max-content;padding:calc(var(--spacing,.0025rem)*400)}.calendar-single{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}:is(.calendar-single,.calendars) mds-calendar{-ms-flex:0 0 var(--mds-input-date-range-calendar-width,22rem);flex:0 0 var(--mds-input-date-range-calendar-width,22rem);inline-size:var(--mds-input-date-range-calendar-width,22rem);max-inline-size:var(--mds-input-date-range-calendar-width,22rem);min-inline-size:var(--mds-input-date-range-calendar-width,22rem)}.action-open-calendar-wrapper{align-items:center;aspect-ratio:1;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0}.action-open-calendar{--mds-button-color:var(--mds-input-date-range-icon-color,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));align-self:center}mds-dropdown{padding:0}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-date-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}:host([pref-contrast=more]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([pref-contrast=more]) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}@supports ((-moz-appearance:none)){.action-open-calendar{display:none}.inputs{-ms-flex-pack:var(--mds-input-date-range-fields-firefox-justify-content,start);justify-content:var(--mds-input-date-range-fields-firefox-justify-content,start);padding-right:calc(var(--spacing,.0025rem)*400)}}:host(:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-date-range-variant-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([variant=ai]){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-input-tip-background:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=ai]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-date-range-variant-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)))}:host([variant=info]){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=info]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=success]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=warning]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=error]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}@media (forced-colors:active){:host(:focus-within) .inputs{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-date-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::-webkit-input-placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}}'};var MdsInputDateRange=/** @class */function(){function t(t){var a=this;registerInstance(this,t);this.valueChanged=createEvent(this,"mdsInputDateRangeValueChange",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.calendarKey=0;this.internalStartDate="";this.internalEndDate="";this.visibleCalendarDate="";this.hasPreselection=false;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});
2
+ /**
3
+ * Specifies the start date of the range
4
+ * @description It's in ISO format (YYYY-MM-DD).
5
+ */this.startDate="";
6
+ /**
7
+ * Specifies the end date of the range
8
+ * @description It's in ISO format (YYYY-MM-DD).
9
+ */this.endDate="";
10
+ /**
11
+ * Specifies the min date of the range, user cannot set dates before this date
12
+ * @description It's in ISO format (YYYY-MM-DD).
13
+ */this.min=null;
14
+ /**
15
+ * Specifies the max date of the range, user cannot set dates after this date
16
+ * @description It's in ISO format (YYYY-MM-DD).
17
+ */this.max=null;
18
+ /**
19
+ * Specifies the delay in milliseconds before closing the calendar dropdown, if the value is 0 the dropdown will not close
20
+ * @description Default is 500
21
+ */this.delay=500;
22
+ /**
23
+ * Hides the highlight on today's date in the calendar.
24
+ */this.hideToday=false;
25
+ /**
26
+ * Enables the linked dual-calendar range picker behavior.
27
+ */this.dualCalendar=false;this.lastEmittedStartDate=null;this.lastEmittedEndDate=null;this.initialStartDate="";this.initialEndDate="";this.hoveredCalendarDate=null;this.syncingInputSlots=new Set;this.handleFocusOut=function(t){if(!a.host.contains(t.relatedTarget)){var e=DateTime.fromISO(a.internalStartDate).isValid;var r=DateTime.fromISO(a.internalEndDate).isValid;if(e&&r){a.validateDateRange();a.syncFormValue();a.checkPreselections();a.emitValueChanged()}}};this.focusInput=function(t){t.focusInput()};this.focusDateInput=function(t){if(t.target!==a.host){return}a.focusStartDateInput(t)};this.focusStartDateInput=function(t){t.preventDefault();t.stopPropagation();a.focusInput(a.host.querySelector('mds-input-date[slot="start"]'))};this.focusEndDateInput=function(t){t.preventDefault();t.stopPropagation();a.focusInput(a.host.querySelector('mds-input-date[slot="end"]'))};
28
+ // the two fields render their native input in their own shadow root, out of reach of the
29
+ // visible labels of this one: each is named after the range and the end it covers
30
+ this.nameSlottedFields=function(){[["start",a.t.get("startDate")],["end",a.t.get("endDate")]].forEach((function(t){var e=t[0],r=t[1];var i;var n=a.host.querySelector('[slot="'.concat(e,'"]'));if(n===null)return;setAttributeIfEmpty(n,"aria-label",((i=a.accessibleName)!==null&&i!==void 0?i:"")!==""?"".concat(a.accessibleName,", ").concat(r):r)}))};this.handleCalendarHover=function(t){if(a.internalStartDate===""||a.internalEndDate!==""){a.clearHoverPreview();return}var e=t.detail.hoverDate;if(a.hoveredCalendarDate===e)return;a.hoveredCalendarDate=e;a.syncCalendarsHoverAttributes()};this.handleCalendarChange=function(t){a.clearHoverPreview();a.internalStartDate=t.detail.startDate;a.updateInputValue("start",a.internalStartDate);if(t.detail.endDate!==undefined&&t.detail.endDate!==""){a.internalEndDate=t.detail.endDate;a.updateInputValue("end",a.internalEndDate)}else{a.internalEndDate="";a.updateInputValue("end",a.internalEndDate)}a.syncFormValue();a.syncCalendarsSelectionAttributes();if(a.internalStartDate!==""&&a.internalEndDate!==""){a.emitValueChanged();a.closeDropdownAfterSelection()}};this.handleCalendarNavigate=function(t){if(!a.dualCalendar)return;var e=a.getCalendars();var r=e.indexOf(t.target);var i=DateTime.fromISO(t.detail.currentDate);if(!i.isValid)return;a.visibleCalendarDate=i.minus({months:r===1?1:0}).startOf("month").toISODate()};this.handleCalendarPreselect=function(){a.checkPreselections()};this.handleOpenCalendarClick=function(){a.calendarKey+=1}}t.prototype.getCalendars=function(){var t,a;return Array.from((a=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("mds-calendar"))!==null&&a!==void 0?a:[])};t.prototype.resolveVisibleCalendarDate=function(t,a){var e;var r=[t,a].map((function(t){return DateTime.fromISO(t!==null&&t!==void 0?t:"")})).filter((function(t){return t.isValid}));var i=(e=r[0])!==null&&e!==void 0?e:DateTime.now();return i.startOf("month").toISODate()};t.prototype.getCalendarViewDate=function(t){if(t===void 0){t=0}var a=DateTime.fromISO(this.visibleCalendarDate);var e=DateTime.fromISO(this.internalStartDate);var r=DateTime.now();if(a.isValid){r=a}else if(e.isValid){r=e}return r.startOf("month").plus({months:t}).toISODate()};t.prototype.setVisibleCalendarDate=function(t){var a=DateTime.fromISO(t);if(a.isValid){this.visibleCalendarDate=a.startOf("month").toISODate()}};t.prototype.closeDropdownAfterSelection=function(){if(this.delay===0)return;var t=this.dropdownRef;if(t){setTimeout((function(){t.visible=false}),this.delay)}};t.prototype.syncCalendarsSelectionAttributes=function(){var t=this;var a;(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("mds-calendar").forEach((function(a){if(t.internalStartDate!==""){a.setAttribute("start-date",t.internalStartDate)}else{a.removeAttribute("start-date")}if(t.internalEndDate!==""){a.setAttribute("end-date",t.internalEndDate)}else{a.removeAttribute("end-date")}}));this.syncCalendarsHoverAttributes()};t.prototype.syncCalendarsHoverAttributes=function(){var t=this;var a;(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("mds-calendar").forEach((function(a){if(t.hoveredCalendarDate!==null&&t.hoveredCalendarDate!==""){a.setAttribute("hover-date",t.hoveredCalendarDate)}else{a.removeAttribute("hover-date")}}))};t.prototype.clearHoverPreview=function(){if(this.hoveredCalendarDate===null)return;this.hoveredCalendarDate=null;this.syncCalendarsHoverAttributes()};t.prototype.getEmittableDateRangeDetail=function(){var t=DateTime.fromISO(this.internalStartDate);var a=DateTime.fromISO(this.internalEndDate);if(!t.isValid||!a.isValid){return null}return{startDate:this.internalStartDate,endDate:this.internalEndDate}};t.prototype.emitValueChanged=function(){var t=this.getEmittableDateRangeDetail();if(!t)return false;if(t.startDate===this.lastEmittedStartDate&&t.endDate===this.lastEmittedEndDate){return false}this.valueChanged.emit(t);this.lastEmittedStartDate=t.startDate;this.lastEmittedEndDate=t.endDate;return true};t.prototype.handleStartDateChange=function(t){this.syncExternalDate("start",t)};t.prototype.handleEndDateChange=function(t){this.syncExternalDate("end",t)};t.prototype.componentWillLoad=function(){this.internalStartDate=this.startDate;this.internalEndDate=this.endDate;this.initialStartDate=this.startDate;this.initialEndDate=this.endDate;this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.internalStartDate,this.internalEndDate);
31
+ // Se max è precedente a min, imposto max uguale a min
32
+ if(this.min!==null&&this.min!==""&&this.max!==null&&this.max!==""){var t=DateTime.fromISO(this.min);var a=DateTime.fromISO(this.max);if(a<t){this.max=this.min}}this.syncFormValue()};t.prototype.disconnectedCallback=function(){var t;this.host.removeEventListener("focusout",this.handleFocusOut);(t=this.host.shadowRoot)===null||t===void 0?void 0:t.removeEventListener("mdsCalendarHover",this.handleCalendarHover)};
33
+ /**
34
+ * Applies the given preselection range to the input.
35
+ * @param event the preselection range to apply
36
+ */t.prototype.preselect=function(t){return __awaiter(this,void 0,void 0,(function(){var a,e,r;var i=this;return __generator(this,(function(n){switch(n.label){case 0:if(this.togglePreselection==null){this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))}this.togglePreselection.forEach((function(t){t.selected=false}));t.caller.selected=true;this.clearHoverPreview();a=DateTime.fromISO(t.start);if(a.isValid){this.internalStartDate=t.start;this.setVisibleCalendarDate(this.internalStartDate);this.updateInputValue("start",this.internalStartDate)}if(t.end!==undefined){e=DateTime.fromISO(t.end);if(e.isValid){this.internalEndDate=t.end}}else{this.internalEndDate=t.start}this.updateInputValue("end",this.internalEndDate);this.syncFormValue();r=this.getCalendars();if(!(r.length!==0))return[3/*break*/,2];return[4/*yield*/,Promise.all(r.map((function(t,a){return t.updateCurrentDate(i.getCalendarViewDate(a))})))];case 1:n.sent();this.closeDropdownAfterSelection();n.label=2;case 2:this.emitValueChanged();return[2/*return*/,Promise.resolve()]}}))}))};t.prototype.componentDidLoad=function(){var t;this.nameSlottedFields();this.updateInputListeners();this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.syncFormValue();this.host.addEventListener("focusout",this.handleFocusOut);(t=this.host.shadowRoot)===null||t===void 0?void 0:t.addEventListener("mdsCalendarHover",this.handleCalendarHover)};t.prototype.formResetCallback=function(){this.clearHoverPreview();this.internalStartDate=this.initialStartDate;this.internalEndDate=this.initialEndDate;this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.initialStartDate,this.initialEndDate);this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.checkPreselections();this.syncFormValue()};t.prototype.syncExternalDate=function(t,a){var e=a!==null&&a!==void 0?a:"";this.clearHoverPreview();if(t==="start"){if(e===this.internalStartDate)return;this.internalStartDate=e;this.setVisibleCalendarDate(this.internalStartDate)}else{if(e===this.internalEndDate)return;this.internalEndDate=e}this.validateDateRange();this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.checkPreselections();this.syncFormValue()};t.prototype.updateInputValue=function(t,a){var e=this;var r;var i=(r=this.host.shadowRoot)===null||r===void 0?void 0:r.querySelector('slot[name="'.concat(t,'"]'));var n=i===null||i===void 0?void 0:i.assignedElements()[0];if(n!=null){this.syncingInputSlots.add(t);n.setValue(a).finally((function(){requestAnimationFrame((function(){e.syncingInputSlots.delete(t)}))}))}};t.prototype.updateInputListeners=function(){var t,a;var e=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector('slot[name="start"]');var r=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelector('slot[name="end"]');this.hasPreselection=this.host.querySelector("mds-input-date-range-preselection")!==null;
37
+ // assignedElements() is empty in the hydrate/SSR runtime (mock-doc):
38
+ // listener wiring happens on the client
39
+ var i=e===null||e===void 0?void 0:e.assignedElements()[0];if(i!=null){i.addEventListener("mdsInputDateSelect",this.createFocusoutListener("start"))}var n=r===null||r===void 0?void 0:r.assignedElements()[0];if(n!=null){n.addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}};t.prototype.createFocusoutListener=function(t){var a=this;return function(e){if(a.syncingInputSlots.has(t)){return}var r=e;a.clearHoverPreview();if(t==="start"){a.internalStartDate=r.detail;a.setVisibleCalendarDate(a.internalStartDate)}else{a.internalEndDate=r.detail}a.syncFormValue()}};t.prototype.validateDateRange=function(){if(this.internalStartDate!==""&&this.internalEndDate!==""){var t=DateTime.fromISO(this.internalStartDate);var a=DateTime.fromISO(this.internalEndDate);if(a<t){this.internalEndDate=this.internalStartDate;this.updateInputValue("end",this.internalEndDate)}}};t.prototype.checkPreselections=function(){var t=this;var a=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));if(a!=null){a.forEach((function(a){var e=a;var r=e.start===t.internalStartDate&&e.end===t.internalEndDate;var i=e.start===t.internalStartDate&&t.internalStartDate===t.internalEndDate&&e.end===undefined;if(r||i){e.selected=true}else{e.selected=false}}))}};t.prototype.renderCalendarPreselectionPanel=function(){if(!this.hasPreselection)return null;return h("div",{class:"calendar-preselection-panel"},h("div",{class:clsx("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},h("slot",{name:"calendar-preselection"})))};t.prototype.renderSingleCalendar=function(){return h("div",{class:"calendar-single"},this.renderCalendarPreselectionPanel(),h("mds-calendar",Object.assign({key:this.calendarKey,hideToday:this.hideToday,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{})))};t.prototype.renderDualCalendars=function(){return h("div",{class:"calendars"},this.renderCalendarPreselectionPanel(),h("mds-calendar",Object.assign({key:"".concat(this.calendarKey,"-start"),hideToday:this.hideToday,hideNextButton:true,disableMonthYearSelection:true,viewDate:this.getCalendarViewDate(),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{})),h("mds-calendar",Object.assign({key:"".concat(this.calendarKey,"-end"),hideToday:this.hideToday,hidePreviousButton:true,disableMonthYearSelection:true,viewDate:this.getCalendarViewDate(1),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{})))};t.prototype.render=function(){var t=this;return h(Host,{key:"0b4803ed205a3f80ed75d736155922bb9a89f75f",onClick:this.focusDateInput,"pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"22e8c579d83fa509c95c370900c4fb505d84b208",class:"inputs"},h("div",{key:"6c5723d097ca2d34d7b3ec54f45651f4ba1e44d2",class:"input-element"},h("mds-text",{key:"a3024c5b10350d669780e793dc968559bdc8872e",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),h("div",{key:"60b90b73a958b948b797db6e4a1a19cbaf39b1da",class:"input-wrapper"},h("slot",{key:"e4c1d1883f4450dc48f0a076838c676909b28002",name:"start"}))),h("div",{key:"0372128ff074223195d2d78271a12182dfd36e3c",class:"input-element"},h("mds-text",{key:"0f76780975b2f7967ee293fc7abcd8cc6c88d621",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),h("div",{key:"9c53027e6b5350e8717039b725739fa3f65c1fda",class:"input-wrapper"},h("slot",{key:"121672e05c51699522826cca5785e3f691ae06c9",name:"end"})))),h("div",{key:"4a5d117a67f835f88a6f80806330b6c95d8890f9",class:"action-open-calendar-wrapper"},h("mds-button",{key:"b1a69bc2672f8e525372d2df000937f84f5156c6",class:"action-open-calendar",variant:"dark",tone:"text",icon:miBaselineCalendarToday,id:"calendar-dropdown",onClick:this.handleOpenCalendarClick})),h("mds-dropdown",{key:"af1380b78a263024355729655be085f6ad707fbe",ref:function(a){return t.dropdownRef=a},target:"#calendar-dropdown","disable-auto-placement":true,placement:"bottom-end",role:"group"},this.dualCalendar?this.renderDualCalendars():this.renderSingleCalendar()))};t.prototype.syncFormValue=function(){var t,a,e,r;var i=(a=(t=this.internalStartDate)===null||t===void 0?void 0:t.trim())!==null&&a!==void 0?a:"";var n=(r=(e=this.internalEndDate)===null||e===void 0?void 0:e.trim())!==null&&r!==void 0?r:"";if(i===""&&n===""){setFormValue(this.internals,null);return}setFormValue(this.internals,JSON.stringify({startDate:i,endDate:n}))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}]}},enumerable:false,configurable:true});return t}();MdsInputDateRange.style=mdsInputDateRangeCss();export{MdsInputDateRange as mds_input_date_range};
@@ -1 +1,50 @@
1
- var __awaiter=this&&this.__awaiter||function(t,r,e,n){function a(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,i){function o(t){try{d(n.next(t))}catch(t){i(t)}}function s(t){try{d(n["throw"](t))}catch(t){i(t)}}function d(t){t.done?e(t.value):a(t.value).then(o,s)}d((n=n.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["return"]=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(r){return d([t,r])}}function d(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(e=0)),e)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;a=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1];i=s;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(s);break}if(i[2])e.ops.pop();e.trys.pop();continue}s=r.call(t,e)}catch(t){s=[6,t];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{m as miBaselineCalendarToday}from"./calendar-today-BVQMG7KJ.js";import{D as DateTime}from"./datetime-BJtA1qmE.js";import{L as Locale}from"./locale-a4oAcjYG.js";var mdsInputDateCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--mds-input-date-icon-color:rgb(var(--variant-primary-03,211 226 255));--mds-input-date-background:rgb(var(--tone-neutral,0 0 0));--mds-input-date-field-background-empty:rgb(var(--status-error-10,115 0 0));--mds-input-date-field-color-empty:rgb(var(--status-error-06,239 108 105));--mds-input-date-icon-color-rgb:var(--mds-input-date-variant-color-rgb,0 0 0);--mds-input-date-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(--tone-neutral-03,233 233 233))}}}@layer reset,vendor,theme,base,components,utilities;@property --mds-input-date-variant-color-rgb{syntax:"<integer>+";inherits:false;initial-value:0 0 0}:host{--mds-input-date-icon-color:rgb(var(--variant-primary-03,211 226 255));--mds-input-date-background:rgb(var(--tone-neutral,0 0 0));--mds-input-date-field-background-empty:rgb(var(--status-error-10,115 0 0));--mds-input-date-field-color-empty:rgb(var(--status-error-06,239 108 105));--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(--tone-neutral-03,233 233 233));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(--radius-2xl,24px);color:rgb(var(--tone-neutral-02,244 244 244));corner-shape:var(--magma-corner-shape,round);container-type:inline-size;display:flex;gap:calc(var(--spacing,.0025rem)*200);overflow:visible;position:relative;--mds-input-date-icon-color:rgb(var(--variant-primary-04,184 208 255));--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(--duration-300,.3s);transition-duration:var(--duration-300,.3s);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(--status-error-10,115 0 0)));color:var(--mds-input-date-field-color-empty,rgb(var(--status-error-06,239 108 105)))}: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(--tone-neutral,0 0 0)));-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);padding-top:calc(var(--spacing,.0025rem)*300);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(--tone-neutral-04,218 218 218))}.input:-ms-placeholder-shown{color:rgb(var(--tone-neutral-04,218 218 218))}.input::-webkit-inner-spin-button,.input::-webkit-outer-spin-button{appearance:none;display:none;margin:0}.input:disabled{background-color:rgb(var(--tone-neutral-10,60 60 60))}.input:disabled::placeholder{color:rgb(var(--tone-neutral-05,197 197 197))}.input:disabled:-ms-placeholder-shown{color:rgb(var(--tone-neutral-05,197 197 197))}.input:disabled::-moz-placeholder{color:rgb(var(--tone-neutral-05,197 197 197))}.input:disabled,.input:disabled::placeholder{color:rgb(var(--tone-neutral-05,197 197 197))}.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(--variant-primary-03,211 226 255)))}:host([disabled]:not([disabled=false])) .action-open-calendar{-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))}mds-calendar{min-width:max-content}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-context(:root.pref-animation-reduce) .input{transition-duration:0s}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)){--mds-input-date-ring:var(--shadow-outline-50);--mds-input-date-background:rgb(var(--tone-neutral-09,76 76 76));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-06,158 158 158))}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08,107 107 107))}:host-context(:root.pref-contrast-more){--mds-input-date-ring:var(--shadow-outline-strong-50);--mds-input-date-background:rgb(var(--tone-neutral-09,76 76 76));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-05,197 197 197))}:host-context(:root.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03,233 233 233))}:host-context(:root.pref-contrast-more) .input:-ms-placeholder-shown{color:rgb(var(--tone-neutral-03,233 233 233))}@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(--variant-primary-05,152 188 255));--mds-input-date-variant-color-rgb:var(--variant-primary-04,184 208 255)}:host([variant=ai]){--mds-input-date-icon-color:rgb(var(--variant-ai-04,218 199 253));--mds-input-tip-background:rgb(var(--variant-ai-05,202 174 251));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=ai]:focus){--mds-input-date-icon-color:rgb(var(--variant-ai-05,202 174 251));--mds-input-date-variant-color-rgb:var(--variant-ai-04,218 199 253)}:host([variant=info]){--mds-input-date-icon-color:rgb(var(--status-info-04,159 216 241));--mds-input-tip-background:rgb(var(--status-info-05,112 198 234));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=info]:focus){--mds-input-date-icon-color:rgb(var(--status-info-05,112 198 234));--mds-input-date-variant-color-rgb:var(--status-info-04,159 216 241)}:host([variant=success]){--mds-input-date-icon-color:rgb(var(--status-success-04,158 222 181));--mds-input-tip-background:rgb(var(--status-success-05,107 206 147));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=success]:focus){--mds-input-date-icon-color:rgb(var(--status-success-05,107 206 147));--mds-input-date-variant-color-rgb:var(--status-success-04,158 222 181)}:host([variant=warning]){--mds-input-date-icon-color:rgb(var(--status-warning-04,255 200 33));--mds-input-tip-background:rgb(var(--status-warning-05,237 177 0));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=warning]:focus){--mds-input-date-icon-color:rgb(var(--status-warning-05,237 177 0));--mds-input-date-variant-color-rgb:var(--status-warning-04,255 200 33)}:host([variant=error]){--mds-input-date-icon-color:rgb(var(--status-error-04,254 193 189));--mds-input-tip-background:rgb(var(--status-error-05,250 165 160));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=error]:focus){--mds-input-date-icon-color:rgb(var(--status-error-05,250 165 160));--mds-input-date-variant-color-rgb:var(--status-error-04,254 193 189)}@media (forced-colors:active){:host(:focus-within) .input{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion){:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .input{transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))){--mds-input-date-ring:var(--shadow-outline-50);--mds-input-date-background:rgb(var(--tone-neutral-09,76 76 76));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-06,158 158 158))}:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08,107 107 107))}}@media (prefers-contrast:more){:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))){--mds-input-date-ring:var(--shadow-outline-strong-50);--mds-input-date-background:rgb(var(--tone-neutral-09,76 76 76));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-05,197 197 197))}:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .input::placeholder{color:rgb(var(--tone-neutral-03,233 233 233))}:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))) .input:-ms-placeholder-shown{color:rgb(var(--tone-neutral-03,233 233 233))}}'};var MdsInputDate=function(){function t(t){var r=this;registerInstance(this,t);this.validationEvent=createEvent(this,"mdsInputValidation");this.valueChange=createEvent(this,"mdsInputDateSelect");if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.isSlotted=false;this.empty=undefined;this.t=new Locale({el:{},en:{},es:{},it:{}});this.touched=false;this.value="";this.variant="primary";this.min=null;this.max=null;this.delay=500;this.disabled=false;this.readonly=false;this.required=false;this.calendarKey=0;this.hasFocus=false;this.handleChange=function(t){var e=t.target;r.touched=true;if(e.value!=="")r.value=e.value;r.validateValue(e.validity.badInput)};this.onBlur=function(t){var e=t.target;r.hasFocus=false;r.value=e.value;r.validateValue(e.validity.badInput)};this.onFocus=function(t){var e=t.target;r.hasFocus=true;if(r.readonly){setTimeout((function(){e.select()}),10)}}}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.host);return[2]}))}))};t.prototype.handleValue=function(){this.valueChange.emit(this.value);this.validateValue()};t.prototype.validateValue=function(t){if(t===void 0){t=false}var r=DateTime.fromISO(this.value);var e=Boolean(this.value);var n=e&&!r.isValid;var a=this.required&&!e;var i=r.isValid&&(this.max&&DateTime.fromISO(this.max)<r||this.min&&DateTime.fromISO(this.min)>r);if(t||n||a||i){this.isValid=false;this.variant="error";this.internals.setFormValue(null);this.empty=t||n?true:undefined}else{this.isValid=true;this.variant="primary";this.internals.setFormValue(this.value);this.empty=undefined}this.validationEvent.emit(this.isValid)};t.prototype.focusInput=function(){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(e){r=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".input");r.focus();return[2]}))}))};t.prototype.setValue=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){this.value=t;this.validateValue();return[2,Promise.resolve()]}))}))};t.prototype.getErrors=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Promise.resolve(this.isValid?null:{error:""})]}))}))};t.prototype.formResetCallback=function(){this.internals.setFormValue("")};t.prototype.componentWillLoad=function(){this.isSlotted=!(this.host.getAttribute("slot")===null||this.host.getAttribute("slot")==="");this.value=this.value||"";this.language=this.t.lang(this.host);if(this.min!==null&&this.min!==""&&this.max!==null&&this.max!==""){var t=DateTime.fromISO(this.min);var r=DateTime.fromISO(this.max);if(r<t){this.max=this.min}}this.validateValue()};t.prototype.render=function(){var t=this;return h(Host,{key:"1c3f9c46a1a1bc77e6639135ffe9615b91754289",empty:this.empty},h("input",{key:"e8867ce0ccc07885b616cd0c898859d4d378d70c",value:this.value,id:"dateInput",class:"input",part:"input-date",type:"date",disabled:this.disabled,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.handleChange,onChange:this.handleChange}),!this.isSlotted&&h("div",{key:"82e8e07567fceed4f0a589f8ceac9057c9aaa324",class:"action-open-calendar-wrapper"},h("mds-button",{key:"9c22475d725089ae3ccfe4c39aac26149726e8ff",id:"calendar-dropdown",class:"action-open-calendar",disabled:this.disabled,variant:"dark",tone:"text",icon:miBaselineCalendarToday,onClick:function(){t.calendarKey+=1}})),h("mds-input-tip",{key:"3b4a5d49acf05f853839b7317a2e8bfe8d7d487d",lang:this.language,position:"top",active:this.hasFocus},this.disabled&&h("mds-input-tip-item",{key:"987565a2df5bcaf1a538f3bf276cd6f7a12811a9",expanded:true,variant:"disabled"}),this.readonly&&h("mds-input-tip-item",{key:"b51c192d654c65279fb2bdb0eb43952cc51e02e0",expanded:true,variant:"readonly"}),this.required&&h("mds-input-tip-item",{key:"acd20e717f7abab93a5750f7125f06f55d618da8",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),!this.isSlotted&&h("mds-dropdown",{key:"9c2d0e843d019c530509f30cd37e890f5ab351a8",placement:"bottom-end","auto-placement":false,ref:function(r){return t.dropdownRef=r},target:"#calendar-dropdown"},h("mds-calendar",Object.assign({key:this.calendarKey,rangePicker:false,lang:this.language,onMdsCalendarChange:function(r){t.value=r.detail.startDate;if(t.delay===0)return;var e=t.dropdownRef;if(e){setTimeout((function(){e.visible=false}),t.delay)}},startDate:this.value},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{}))))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:[{handleValue:0}]}},enumerable:false,configurable:true});return t}();MdsInputDate.style=mdsInputDateCss();export{MdsInputDate as mds_input_date};
1
+ var __awaiter=this&&this.__awaiter||function(t,a,e,r){function i(t){return t instanceof e?t:new e((function(a){a(t)}))}return new(e||(e=Promise))((function(e,n){function s(t){try{d(r.next(t))}catch(t){n(t)}}function o(t){try{d(r["throw"](t))}catch(t){n(t)}}function d(t){t.done?e(t.value):i(t.value).then(s,o)}d((r=r.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(a){return d([t,a])}}function d(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(e=0)),e)try{if(r=1,i&&(n=o[0]&2?i["return"]:o[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;if(i=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(n=e.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){e.label=o[1];break}if(o[0]===6&&e.label<n[1]){e.label=n[1];n=o;break}if(n&&e.label<n[2]){e.label=n[2];e.ops.push(o);break}if(n[2])e.ops.pop();e.trys.pop();continue}o=a.call(t,e)}catch(t){o=[6,t];i=0}finally{r=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{s as setFormValue}from"./form-A9TZf0Ii.js";import{m as miBaselineCalendarToday}from"./calendar-today-BVQMG7KJ.js";import{D as DateTime}from"./datetime-BJtA1qmE.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";var mdsInputDateCss=function(){return'@layer reset,vendor,theme,base,components,utilities;:host{--mds-input-date-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-date-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-input-date-field-background-empty:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-input-date-field-color-empty:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-input-date-icon-color-rgb:var(--mds-input-date-variant-color-rgb,0 0 0);--mds-input-date-ring:0 0 0 1px rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.1);--mds-input-date-shadow:0 1px 3px 0 rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.1),0 1px 2px 0 rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.06);--mds-input-tip-horizontal-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*1000);--mds-input-tip-vertical-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))));--mds-input-date-transition-duration:var(--duration-300,.3s);--private-input-date-transition-duration:var(--mds-input-date-transition-duration);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));corner-shape:var(--magma-corner-shape,squircle);container-type:inline-size;display:flex;gap:calc(var(--spacing,.0025rem)*200);overflow:visible;position:relative;--mds-input-date-icon-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-date-variant-color-rgb:0 0 0}.input::-webkit-calendar-picker-indicator{appearance:textfield;display:none}.input{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-hack,.875rem);font-weight:var(--tw-font-weight,var(--text-size-code-hack--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-hack--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:inherit;box-sizing:border-box;color:inherit;corner-shape:inherit;background-color:#0000;border:0;margin:0;overflow:hidden;text-overflow:ellipsis;-webkit-transition-duration:var(--private-input-date-transition-duration);transition-duration:var(--private-input-date-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:min-content}:host([empty]) .input{background-color:var(--mds-input-date-field-background-empty,rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230))));color:var(--mds-input-date-field-color-empty,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))))}:host([slot]){color:inherit;display:contents}:host([slot]) .input{cursor:text;text-align:center}:host(:not([slot])) .input{background-color:var(--mds-input-date-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));-webkit-box-shadow:var(--mds-input-date-ring),var(--mds-input-date-shadow);box-shadow:var(--mds-input-date-ring),var(--mds-input-date-shadow);min-height:3rem;padding-left:calc(var(--spacing,.0025rem)*400);padding-right:calc(var(--spacing,.0025rem)*1200);width:100%}:host(:focus-within) .input{--tw-outline-style:none;outline-style:none;transition-duration:var(--default-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--default-transition-timing-function);--mds-input-date-ring:0 0 0 3px rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/1);--mds-input-date-shadow:0 4px 6px 3px rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.1),0 2px 4px -1px rgb(var(--mds-input-date-variant-color-rgb,0 0 0)/.06);-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}.input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}.input::-webkit-inner-spin-button,.input::-webkit-outer-spin-button{appearance:none;display:none;margin:0}.input:disabled{background-color:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))}.input:disabled::placeholder{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:disabled:-ms-placeholder-shown{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:disabled::-moz-placeholder{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:disabled,.input:disabled::placeholder{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.action-open-calendar-wrapper{align-items:center;aspect-ratio:1;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0}.action-open-calendar{--mds-button-color:var(--mds-input-date-icon-color,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));align-self:center}mds-calendar{min-width:min-content;width:100cqw}mds-dropdown{padding:0}mds-input-tip{--mds-input-tip-horizontal-offset:inherit;--mds-input-tip-horizontal-offset-focused:inherit;--mds-input-tip-vertical-offset:inherit;--mds-input-tip-background:inherit}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar,mds-dropdown,mds-input-tip,mds-input-tip-item):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-date-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-date-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}:host([pref-contrast=more]){--mds-input-date-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([pref-contrast=more]) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}@supports ((-moz-appearance:none)){.action-open-calendar{display:none}:host(:not([slot])) .input{padding-right:calc(var(--spacing,.0025rem)*400)}}:host(:focus){--mds-input-date-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-date-variant-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([variant=ai]){--mds-input-date-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-input-tip-background:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=ai]:focus){--mds-input-date-icon-color:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-date-variant-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)))}:host([variant=info]){--mds-input-date-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=info]:focus){--mds-input-date-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-date-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=success]:focus){--mds-input-date-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-date-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=warning]:focus){--mds-input-date-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-date-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-variant-color-rgb:0 0 0}:host([variant=error]:focus){--mds-input-date-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}@media (forced-colors:active){:host(:focus-within) .input{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-date-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-date-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-date-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::-webkit-input-placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}}'};var MdsInputDate=/** @class */function(){function t(t){var a=this;registerInstance(this,t);this.validationEvent=createEvent(this,"mdsInputValidation",7);this.valueChange=createEvent(this,"mdsInputDateSelect",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.isSlotted=false;this.empty=undefined;this.touched=false;
2
+ /**
3
+ * Specifies the value of the input
4
+ * @description It's in ISO format (YYYY-MM-DD).
5
+ */this.value="";
6
+ /**
7
+ * Sets the variant of the input field
8
+ */this.variant="primary";
9
+ /**
10
+ * Specifies the min date of the range, user cannot set dates before this date
11
+ * @description It's in ISO format (YYYY-MM-DD).
12
+ */this.min=null;
13
+ /**
14
+ * Specifies the max date of the range, user cannot set dates after this date
15
+ * @description It's in ISO format (YYYY-MM-DD).
16
+ */this.max=null;
17
+ /**
18
+ * Specifies the delay in milliseconds before closing the calendar dropdown, if the value is 0 the dropdown will not close
19
+ * @description Default is 500
20
+ */this.delay=500;
21
+ /**
22
+ * Hides the highlight on today's date in the calendar.
23
+ */this.hideToday=false;
24
+ /**
25
+ * If true, the element is displayed as disabled
26
+ */this.disabled=false;
27
+ /**
28
+ * Specifies that the element is read-only
29
+ */this.readonly=false;
30
+ /**
31
+ * Specifies that the element must be filled out before submitting the form
32
+ */this.required=false;this.calendarKey=0;this.hasFocus=false;this.handleChange=function(t){var e=t.target;a.touched=true;
33
+ // manage case when i insert 0 on date and default input behavior change in 01 instead of resetting all date
34
+ if(e.value!=="")a.value=e.value;a.validateValue(e.validity.badInput)};this.onBlur=function(t){var e=t.target;a.hasFocus=false;a.value=e.value;a.validateValue(e.validity.badInput)};this.onFocus=function(t){var e=t.target;a.hasFocus=true;if(a.readonly){
35
+ // setTimeout to avoid Safari 14.1.2
36
+ // to unselect text when mouse is clicked slowly
37
+ setTimeout((function(){e.select()}),10)}};this.handleOpenCalendarClick=function(){a.calendarKey+=1};this.handleCalendarChange=function(t){a.value=t.detail.startDate;if(a.delay===0)return;var e=a.dropdownRef;if(e){setTimeout((function(){e.visible=false}),a.delay)}}}t.prototype.handleValue=function(){this.valueChange.emit(this.value);this.validateValue()};t.prototype.validateValue=function(t){if(t===void 0){t=false}var a=DateTime.fromISO(this.value);var e=Boolean(this.value);var r=e&&!a.isValid;var i=this.required&&!e;var n=a.isValid&&(this.max&&DateTime.fromISO(this.max)<a||this.min&&DateTime.fromISO(this.min)>a);if(t||r||i||n){this.isValid=false;this.variant="error";setFormValue(this.internals,null);this.empty=t||r?true:undefined}else{this.isValid=true;this.variant="primary";setFormValue(this.internals,this.value);this.empty=undefined}this.validationEvent.emit(this.isValid)};
38
+ /**
39
+ * Sets focus on the underlying input element.
40
+ */t.prototype.focusInput=function(){return __awaiter(this,void 0,void 0,(function(){var t,a;return __generator(this,(function(e){a=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".input");a.focus();return[2/*return*/]}))}))};
41
+ /**
42
+ * Sets the input value.
43
+ * @param value the value to set, in ISO format (YYYY-MM-DD)
44
+ */t.prototype.setValue=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){this.value=t;this.validateValue();return[2/*return*/,Promise.resolve()]}))}))};
45
+ /**
46
+ * Returns the current validation errors, or `null` if the value is valid.
47
+ * @returns the validation errors, or `null` when valid
48
+ */t.prototype.getErrors=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2/*return*/,Promise.resolve(this.isValid?null:{error:""})]}))}))};t.prototype.formResetCallback=function(){setFormValue(this.internals,"")};t.prototype.componentWillLoad=function(){this.isSlotted=!(this.host.getAttribute("slot")===null||this.host.getAttribute("slot")==="");this.value=this.value||"";
49
+ // Se max è precedente a min, imposto max uguale a min
50
+ if(this.min!==null&&this.min!==""&&this.max!==null&&this.max!==""){var t=DateTime.fromISO(this.min);var a=DateTime.fromISO(this.max);if(a<t){this.max=this.min}}this.validateValue()};t.prototype.render=function(){var t=this;return h(Host,{key:"7deeee86a7a4e6e1012355daf9a8c1f20699dc79",empty:this.empty,"pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("input",{key:"5638b0605b339535385d0d8fdb5b5b404697b814","aria-label":this.accessibleName,value:this.value,id:"dateInput",class:"input",part:"input-date",type:"date",disabled:this.disabled,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.handleChange,onChange:this.handleChange}),!this.isSlotted&&h("div",{key:"d86699480eeb7d0b0fa9550533433ccdedfe2cb8",class:"action-open-calendar-wrapper"},h("mds-button",{key:"d944ac7e9773439413e1124a78d251206009996f",id:"calendar-dropdown",class:"action-open-calendar",disabled:this.disabled,variant:"dark",tone:"text",icon:miBaselineCalendarToday,onClick:this.handleOpenCalendarClick})),h("mds-input-tip",{key:"f4a794937ef3456f9a1c8c78b287041a997a89cd",position:"top",active:this.hasFocus},this.disabled&&h("mds-input-tip-item",{key:"69b8aa28e6c25ece212a6ccb6fab01399ca2ebd3",expanded:true,variant:"disabled"}),this.readonly&&h("mds-input-tip-item",{key:"879abd3cbf773214934813fd68f09562ae67022a",expanded:true,variant:"readonly"}),this.required&&h("mds-input-tip-item",{key:"a9fa986de0a67f1e7d05fbb62348758459978a25",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),!this.isSlotted&&h("mds-dropdown",{key:"3f05e1b4705dcfc380ecd0f97a7bd957ce7c2ecf",placement:"bottom-end","disable-auto-placement":true,ref:function(a){return t.dropdownRef=a},role:"group",target:"#calendar-dropdown"},h("mds-calendar",Object.assign({key:this.calendarKey,singlePicker:true,hideToday:this.hideToday,onMdsCalendarChange:this.handleCalendarChange,startDate:this.value},this.min!==null&&this.min!==""?{min:this.min}:{},this.max!==null&&this.max!==""?{max:this.max}:{}))))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:[{handleValue:0}]}},enumerable:false,configurable:true});return t}();MdsInputDate.style=mdsInputDateCss();export{MdsInputDate as mds_input_date};
@@ -1 +1,22 @@
1
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-CAd5312P.js";var mdsInputFieldCss=function(){return"@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--mds-input-field-message-color:rgb(var(--tone-neutral-03,233 233 233));--mds-input-field-message-background:rgb(var(--tone-neutral-10,60 60 60))}}}@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(--tone-neutral-03,233 233 233));--mds-input-field-message-background:rgb(var(--tone-neutral-10,60 60 60));color:rgb(var(--tone-neutral-02,244 244 244));corner-shape:var(--magma-corner-shape,round);display:grid;gap:calc(var(--spacing,.0025rem)*300)}.message-window{border-radius:var(--radius-2xl,24px);color:var(--mds-input-field-message-color,rgb(var(--tone-neutral-03,233 233 233)));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(--tone-neutral-10,60 60 60)));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(--variant-ai-02,242 235 254));--mds-input-field-message-background:rgb(var(--variant-ai-09,75 8 189))}:host([variant=info]){--mds-input-field-message-color:rgb(var(--status-info-02,222 242 250));--mds-input-field-message-background:rgb(var(--status-info-09,0 73 116))}:host([variant=success]){--mds-input-field-message-color:rgb(var(--status-success-02,222 244 228));--mds-input-field-message-background:rgb(var(--status-success-09,0 82 9))}:host([variant=warning]){--mds-input-field-message-color:rgb(var(--status-warning-02,255 237 185));--mds-input-field-message-background:rgb(var(--status-warning-09,90 67 0))}:host([variant=error]){--mds-input-field-message-color:rgb(var(--status-error-02,255 234 231));--mds-input-field-message-background:rgb(var(--status-error-09,135 0 14))}"};var MdsInputField=function(){function e(e){registerInstance(this,e);this.variant="primary"}e.prototype.handleValidation=function(e){var t=this;e.getErrors().then((function(e){if(e!=null){t.variant="error";var r=Object.entries(e).map((function(e){return e[1]})).filter((function(e){return e}));t.message=r.length!==0?r.join(";"):undefined;return}t.variant="success";t.message=undefined}))};e.prototype.componentDidLoad=function(){var e=this;var t=this.slotInput.assignedElements()[0];if(t==null)throw new Error("Mds input not found");t.addEventListener("mdsInputValidation",(function(){return e.handleValidation(t)}))};e.prototype.render=function(){var e=this;var t;return h(Host,{key:"7d2b6e591f2da90402eef9c453b6b229d04f56f8"},h("mds-text",{key:"6058dec040f453a65f5d34c8d16ddf786ade620f",class:"label",typography:"label"},this.label),h("div",{key:"dda1efd3aed92889c8aa28d5958630d304f81f9e",class:"message-window"},h("div",{key:"66196e8f4f024dbbd2c59dc6c8d00b46b4997ff4",class:"content",part:"content"},h("slot",{key:"ba8af714da43300a70833acbd281bfe19c5d3e4b",ref:function(t){return e.slotInput=t}})),h("div",{key:"dbc5d405bb47cd7f3d730d3732e2ef0c49d9bfc6",class:"message"},(t=this.message)===null||t===void 0?void 0:t.split(";").map((function(e,t){return h("mds-text",{typography:"caption",key:t},e)})))))};Object.defineProperty(e,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsInputField.style=mdsInputFieldCss();export{MdsInputField as mds_input_field};
1
+ import{r as registerInstance,h,e as Host,g as getElement}from"./index-DIiEV39g.js";var mdsInputFieldCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-field-message-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-input-field-message-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));corner-shape:var(--magma-corner-shape,squircle);display:grid;gap:calc(var(--spacing,.0025rem)*300)}.message-window{border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));color:var(--mds-input-field-message-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));corner-shape:inherit;background-color:#0000;display:grid;gap:0;padding:0;-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:background-color,color,gap,padding;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.message-window:has(.message:not(:empty)){background-color:var(--mds-input-field-message-background,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237)))));gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*200)}.message{interpolate-size:allow-keywords;display:flex;flex-direction:column;height:auto;padding:calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*200);-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:height,margin-top,opacity,padding;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.message:empty{height:0;max-height:0;opacity:0;padding:0}.label:empty{display:none}.content{container:content/inline-size;display:flex;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*200)}::slotted(:first-child){flex-grow:1}::slotted(:not(:first-child)){flex-shrink:0}@container content (max-width:300px){::slotted(*){flex-grow:1;min-width:100%}}:host([variant=ai]){--mds-input-field-message-color:rgb(var(--magma-accent-ai-emphasis-active,var(--magma-tint-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190))));--mds-input-field-message-background:rgb(var(--magma-accent-ai-surface,var(--magma-tint-accent-ai-surface,var(--variant-ai-09,229 218 253))))}:host([variant=info]){--mds-input-field-message-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-input-field-message-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)))}:host([variant=success]){--mds-input-field-message-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-input-field-message-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)))}:host([variant=warning]){--mds-input-field-message-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-input-field-message-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)))}:host([variant=error]){--mds-input-field-message-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-input-field-message-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)))}:host([variant=info]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-variant-color-rgb:0 0 0}:host([variant=info]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=warning]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-variant-color-rgb:0 0 0}:host([variant=warning]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=success]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-variant-color-rgb:0 0 0}:host([variant=success]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=error]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-variant-color-rgb:0 0 0}:host([variant=error]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}"};var MdsInputField=/** @class */function(){function a(a){var t=this;registerInstance(this,a);
2
+ // the slotted control renders its native input inside its own shadow root, where neither a
3
+ // `<label for>` nor an `aria-labelledby` of this one could reach it, an IDREF not crossing the
4
+ // shadow boundary: the label travels down as the accessible name of the control instead
5
+ this.nameSlottedControls=function(){var a;(a=t.slotInput)===null||a===void 0?void 0:a.assignedElements().forEach((function(a){var r=a.getAttribute("aria-label");
6
+ // a name written on the control itself is the more specific one and stays; the one this
7
+ // field wrote before is its own to update
8
+ if(r!==null&&r!==t.appliedName)return;if(t.label==null||t.label===""){a.removeAttribute("aria-label");return}a.setAttribute("aria-label",t.label)}));t.appliedName=t.label};
9
+ /**
10
+ * Display the variant of a message at the bottom of the input text field
11
+ */this.variant="primary"}a.prototype.handleValidation=function(a){var t=this;
12
+ // the event also bubbles from inputs nested in the slotted element (the mds-input-date
13
+ // of an mds-input-date-range): only the ones exposing the validation API are read
14
+ if(typeof a.getErrors!=="function")return;
15
+ // mdsInput.hasValidator().then(hasValidator => {
16
+ // if (!hasValidator) return
17
+ a.getErrors().then((function(a){if(a!=null){t.variant="error";var r=Object.entries(a).map((function(a){return a[1]})).filter((function(a){return a}));t.message=r.length!==0?r.join(";"):undefined;return}t.variant="success";t.message=undefined}));
18
+ // })
19
+ };a.prototype.componentDidLoad=function(){var a=this;this.nameSlottedControls();var t=this.slotInput.assignedElements()[0];if(t==null){
20
+ // slot assignment is empty in the hydrate/SSR runtime (assignedElements
21
+ // returns [] in mock-doc); validation wiring happens on the client
22
+ console.warn("mds-input-field: no mds-input assigned to the input slot");return}t.addEventListener("mdsInputValidation",(function(t){return a.handleValidation(t.target)}))};a.prototype.labelChanged=function(){this.nameSlottedControls()};a.prototype.render=function(){var a=this;var t;return h(Host,{key:"583ee482bbab1a36be354ff74ee0025171d1ac6a"},h("mds-text",{key:"667c77827695565fd798c3e1528802ff300eb5d7",class:"label",typography:"label"},this.label),h("div",{key:"c1e2b99db32d1f3ca5f783c46fbf09a285e36857",class:"message-window"},h("div",{key:"5e2fef6eb9971f2e08ed3c89dee28bde0b659995",class:"content",part:"content"},h("slot",{key:"f9ad79859fe01dfec67abf0f9953de8a07c66a86",onSlotchange:this.nameSlottedControls,ref:function(t){return a.slotInput=t}})),h("div",{key:"1530d0b175f5bb7df5ed25041eaac339ae48d57c",class:"message"},(t=this.message)===null||t===void 0?void 0:t.split(";").map((function(a,t){return h("mds-text",{typography:"caption",key:t},a)})))))};Object.defineProperty(a,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{label:[{labelChanged:0}]}},enumerable:false,configurable:true});return a}();MdsInputField.style=mdsInputFieldCss();export{MdsInputField as mds_input_field};
@@ -1 +1,13 @@
1
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-CAd5312P.js";var mdsInputOtpCss=function(){return"@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;:host{display:inline-flex;gap:calc(var(--spacing,.0025rem)*400)}.input{width:calc(var(--spacing,.0025rem)*1200)}.input::part(field){text-align:center}.input::part(tip-count){display:none}"};var MdsInputOtp=function(){function e(e){var t=this;registerInstance(this,e);if(e.$hostElement$["s-ei"]){this.internals=e.$hostElement$["s-ei"]}else{this.internals=e.$hostElement$.attachInternals();e.$hostElement$["s-ei"]=this.internals}this.length=6;this.autosubmit=false;this.value="";this.getOtpCode=function(){var e=Array.from(t.element.shadowRoot.querySelectorAll("mds-input"));var n=e.map((function(e){return e.value})).join("");return n};this.setOtpDigit=function(e,n){e.value=n;var r=t.getOtpCode();t.value=r;t.internals.setFormValue(r)};this.submit=function(e){var n;var r=t.getOtpCode().length===t.length;e.blur();if(t.autosubmit&&r){(n=t.internals.form)===null||n===void 0?void 0:n.requestSubmit()}};this.handleKeyDown=function(e){if(e.ctrlKey){return}e.preventDefault();if(isNaN(Number(e.key))){return}var n=e.target;t.setOtpDigit(n,e.key);var r=n.nextElementSibling;if(r!=null){r.setFocus()}else{t.submit(n)}};this.handlePaste=function(e){var n,r;e.preventDefault();var i=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");if(isNaN(Number(i))){return}var s=(r=i===null||i===void 0?void 0:i.split(""))!==null&&r!==void 0?r:[];var a=e.target;for(var o=0,u=s;o<u.length;o++){var l=u[o];t.setOtpDigit(a,l);a=a.nextElementSibling;if(a!=null){a.setFocus()}else{t.submit(a);return}}}}e.prototype.render=function(){var e=this;return h(Host,{key:"b8ed6443032efcace51ea84c5dbae2533796a7f7"},Array.from({length:this.length}).map((function(){return h("mds-input",{class:"input",maxlength:1,onKeyDown:e.handleKeyDown,onPaste:e.handlePaste})})))};Object.defineProperty(e,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsInputOtp.style=mdsInputOtpCss();export{MdsInputOtp as mds_input_otp};
1
+ import{r as registerInstance,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{s as setFormValue}from"./form-A9TZf0Ii.js";import{L as Locale}from"./locale-CbJbTW_c.js";import"./preference-CKerJx2M.js";var digit$3="Ψηφίο {{position}} από {{length}}";var localeEl={digit:digit$3};var digit$2="Digit {{position}} of {{length}}";var localeEn={digit:digit$2};var digit$1="Dígito {{position}} de {{length}}";var localeEs={digit:digit$1};var digit="Cifra {{position}} di {{length}}";var localeIt={digit:digit};var mdsInputOtpCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host{display:inline-flex;gap:calc(var(--spacing,.0025rem)*400)}.input{width:calc(var(--spacing,.0025rem)*1200)}.input::part(field){text-align:center}.input::part(tip-count){display:none}"};var MdsInputOtp=/** @class */function(){function t(t){var i=this;registerInstance(this,t);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});
2
+ /**
3
+ * Number of digits in the OTP code
4
+ */this.length=6;
5
+ /**
6
+ * Automatically submits the form when the OTP code is complete
7
+ */this.autosubmit=false;
8
+ /**
9
+ * The current value of the OTP code
10
+ */this.value="";this.getOtpCode=function(){var t=Array.from(i.element.shadowRoot.querySelectorAll("mds-input"));var e=t.map((function(t){return t.value})).join("");return e};this.setOtpDigit=function(t,e){t.value=e;var n=i.getOtpCode();i.value=n;setFormValue(i.internals,n)};this.submit=function(t){var e;var n=i.getOtpCode().length===i.length;t.blur();if(i.autosubmit&&n){(e=i.internals.form)===null||e===void 0?void 0:e.requestSubmit()}};this.handleKeyDown=function(t){if(t.ctrlKey){return}
11
+ // e.preventDefault() must be called *outside* the ctrlKey check,
12
+ // otherwise the onPaste event won't be triggered correctly
13
+ t.preventDefault();if(isNaN(Number(t.key))){return}var e=t.target;i.setOtpDigit(e,t.key);var n=e.nextElementSibling;if(n!=null){n.setFocus()}else{i.submit(e)}};this.handlePaste=function(t){var e,n;t.preventDefault();var r=(e=t.clipboardData)===null||e===void 0?void 0:e.getData("text");if(isNaN(Number(r))){return}var a=(n=r===null||r===void 0?void 0:r.split(""))!==null&&n!==void 0?n:[];var s=t.target;for(var o=0,l=a;o<l.length;o++){var u=l[o];i.setOtpDigit(s,u);s=s.nextElementSibling;if(s!=null){s.setFocus()}else{i.submit(s);return}}};this.digitName=function(t){var e;var n=i.t.get("digit",{position:t+1,length:i.length});return((e=i.accessibleName)!==null&&e!==void 0?e:"")!==""?"".concat(i.accessibleName,", ").concat(n):n}}t.prototype.render=function(){var t=this;return h(Host,{key:"10ca24b0e94edc403924d73cb409ff246d52bf36"},Array.from({length:this.length}).map((function(i,e){return h("mds-input",{"aria-label":t.digitName(e),class:"input",maxlength:1,onKeyDown:t.handleKeyDown,onPaste:t.handlePaste})})))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();MdsInputOtp.style=mdsInputOtpCss();export{MdsInputOtp as mds_input_otp};
@@ -1 +1,24 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CAd5312P.js";var mdsInputRangeCss=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-duration:initial;--tw-ease:initial}}}@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-thumb-background-disabled:rgb(var(--tone-neutral-08,107 107 107));--mds-input-range-thumb-background:rgb(var(--tone-neutral,0 0 0));--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(--tone-neutral-08,107 107 107));--mds-input-range-track-background:rgb(var(--tone-neutral-08,107 107 107));--mds-input-range-track-progress-background-disabled:rgb(var(--tone-neutral-06,158 158 158));--mds-input-range-track-progress-background:rgb(var(--variant-primary-03,211 226 255));--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);gap:calc(var(--spacing,.0025rem)*200);--tw-duration:.3s;--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));display:grid;gap:calc(var(--spacing,.0025rem)*100);transition-duration:.3s;-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:color;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));-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: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(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:background-color}.track-total{background-color:var(--mds-input-range-track-background);overflow:hidden;-webkit-transition-timing-function:var(--ease-in-out);transition-timing-function:var(--ease-in-out);width:100%}.contrast-area,.track-total{border-radius:var(--mds-input-range-track-size)}.contrast-area{margin-left:calc(var(--spacing,.0025rem)*100);margin-right:calc(var(--spacing,.0025rem)*100)}:host([disabled]:not([disabled=false])){--mds-input-range-thumb-background:var(--mds-input-range-thumb-background-disabled);--mds-input-range-track-background:var(--mds-input-range-track-background-disabled);--mds-input-range-track-progress-background:var(--mds-input-range-track-progress-background-disabled)}:host([disabled]:not([disabled=false])) .field::-webkit-slider-thumb{cursor:not-allowed}:host-context(:root.pref-animation-reduce){transition-duration:0s}:is(:host-context(:root.pref-animation-reduce) .track-progress,:host-context(:root.pref-animation-reduce) .track-total){transition-duration:0s}:host-context(:root.pref-animation-reduce) .field::-webkit-slider-thumb{transition-duration:0s}:host-context(:root.pref-animation-reduce) .field::-webkit-slider-runnable-track{transition-duration:0s}:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)){--mds-input-range-thumb-background:rgb(var(--variant-primary-04,184 208 255));--mds-input-range-track-background:rgb(var(--tone-neutral-07,134 134 134));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05,152 188 255))}:host-context(:root.pref-contrast-more){color:rgb(var(--tone-neutral-01,255 255 255))}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion){:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))),:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .track-progress,:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .track-total{transition-duration:0s}:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .field::-webkit-slider-thumb{transition-duration:0s}:is(:host-context(:root.pref-animation-system),:host-context(:root:not([data-magma-pref]))) .field::-webkit-slider-runnable-track{transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),:host-context(:root:not([data-magma-pref]))){--mds-input-range-thumb-background:rgb(var(--variant-primary-04,184 208 255));--mds-input-range-track-background:rgb(var(--tone-neutral-07,134 134 134));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05,152 188 255))}}@media (prefers-contrast:more){:is(:host-context(:root.pref-contrast-system),:host-context(:root:not([data-magma-pref]))){color:rgb(var(--tone-neutral-01,255 255 255))}}'};var MdsInputRange=function(){function t(t){var r=this;registerInstance(this,t);this.changeEvent=createEvent(this,"mdsInputRangeChange");if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.max=100;this.min=0;this.step=1;this.onInput=function(){if(Number.isNaN(r.inputElement.value))throw Error("Entered value ".concat(r.inputElement.value," is not a Number"));r.value=Number(r.inputElement.value)}}t.prototype.calculateProgress=function(){var t=Number(this.inputElement.value);var r=Math.pow(10,this.decimalPlaces);if(t>this.max)t=this.max;else if(t<this.min)t=this.min;if((t-this.min)*r%(this.step*r)!==0){t=(Math.round((t*r-this.min*r)/(this.step*r))*(this.step*r)+this.min*r)/r}this.value=t;this.internals.setFormValue(this.value.toString());var a=this.max-this.min;var e=this.value-this.min;this.progress=e/a*100};t.prototype.countDecimals=function(t){if(Math.floor(t)===t)return 0;return t.toString().split(".")[1].length||0};t.prototype.disabledChanged=function(t){if(t){this.internals.setFormValue(null)}};t.prototype.valueChanged=function(t,r){if(t===r)return;this.inputElement.value=this.value.toString();this.calculateProgress();this.changeEvent.emit(this.value)};t.prototype.minChanged=function(){this.calculateProgress()};t.prototype.maxChanged=function(){this.calculateProgress()};t.prototype.stepChanged=function(){if(this.step<=0)throw Error("step cant be negative or zero");this.decimalPlaces=this.countDecimals(this.step);this.calculateProgress()};t.prototype.formResetCallback=function(){this.internals.setFormValue("")};t.prototype.componentDidLoad=function(){var t;this.decimalPlaces=this.countDecimals(this.step);this.onInput();this.label=(t=this.element.textContent)!==null&&t!==void 0?t:"";this.calculateProgress()};t.prototype.render=function(){var t=this;var r;return h(Host,{key:"a200a0ed9cc3735eab347999773ca856c8d2ded1"},h("header",{key:"b52c4601e16f356d76bffcb2018bc8cd66d2dbab",class:"header",part:"header"},h("mds-text",{key:"7af7d0c88bb393bd1cad2c5a40a56fd26930e4fc",class:"label",typography:"label"},h("slot",{key:"7f1482ea2b4f1ea553691f7613b9180e3447cc64"})),h("mds-text",{key:"e8246bdc6dbeb8b5efaf3f2170e32cf725fb1462",class:"value",typography:"label"},this.formatValue?this.formatValue(this.value):this.value)),h("div",{key:"1b8ee03cf6ad4213d9370bae15b3db0bb4e3bec3",class:"range"},h("div",{key:"e01ea5fb7bb7217c6e94a4f606ab3567bf6946c3",class:"track",part:"track"},h("div",{key:"a5b33522f8605dad0e07a02749e8905cbe23e689",class:"contrast-area"}),h("div",{key:"14699dffa17f50a13e008bae4c79b507cf1454dd",class:"track-total"},h("div",{key:"b601caf89612bb39ac586b77e14d7e86730098b7",class:"track-progress",style:{"--mds-input-range-progress":"".concat((r=this.progress)!==null&&r!==void 0?r:0)}}))),h("input",{key:"ea2948160dce05d3bdebbcf2f76adf01fb5159e5",ref:function(r){return t.inputElement=r},class:"field","aria-label":this.label,disabled:this.disabled,max:this.max,min:this.min,onInput:this.onInput,step:this.step,type:"range",value:this.value,name:this.name})))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:[{disabledChanged:0}],value:[{valueChanged:0}],min:[{minChanged:0}],max:[{maxChanged:0}],step:[{stepChanged:0}]}},enumerable:false,configurable:true});return t}();MdsInputRange.style=mdsInputRangeCss();export{MdsInputRange as mds_input_range};
1
+ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{s as setFormValue}from"./form-A9TZf0Ii.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";var mdsInputRangeCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-input-range-transition-duration:var(--duration-300,.3s);--private-input-range-transition-duration:var(--mds-input-range-transition-duration);--mds-input-range-thumb-background-disabled:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-input-range-thumb-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-input-range-thumb-cursor:col-resize;--mds-input-range-thumb-size:calc(var(--spacing,.0025rem)*400);--mds-input-range-track-background-disabled:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-input-range-track-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-input-range-track-progress-background-disabled:rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis-hover,var(--magma-tint-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-input-range-track-size:calc(var(--spacing,.0025rem)*600);--private-border-width:calc(var(--mds-input-range-track-size)/2 - var(--mds-input-range-thumb-size)/2);--private-thumb-size:calc(var(--mds-input-range-thumb-size) + var(--private-border-width)*2);display:grid;gap:calc(var(--spacing,.0025rem)*200);-webkit-transition-duration:var(--private-input-range-transition-duration);transition-duration:var(--private-input-range-transition-duration);transition-property:color;-webkit-transition-timing-function:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.header{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{align-items:center;display:flex;height:var(--private-thumb-size);position:relative}.track{box-sizing:border-box;position:absolute;width:100%}.field{animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));appearance:none;background-color:#0000;border-radius:var(--radius-full,1000px);flex-grow:1;height:calc(var(--spacing,.0025rem)*400);margin:0;outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;z-index:20}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.field::-webkit-slider-thumb{appearance:none;background-color:var(--mds-input-range-thumb-background);border-color:var(--mds-input-range-track-progress-background);border-radius:var(--mds-input-range-thumb-size);border-style:solid;border-width:var(--private-border-width);cursor:var(--mds-input-range-thumb-cursor);height:var(--private-thumb-size);line-height:0;transform:translateY(-50%);transition-property:background-color,border;width:var(--private-thumb-size)}.field::-webkit-slider-runnable-track{appearance:none;border:0;height:0;width:100%}.track-progress{background-color:var(--mds-input-range-track-progress-background);width:calc((100% - var(--mds-input-range-track-size))*(var(--mds-input-range-progress,0)*0.01) + var(--mds-input-range-track-size)/2)}.track-progress,.track-total{display:flex;height:var(--mds-input-range-track-size);-webkit-transition-duration:var(--private-input-range-transition-duration);transition-duration:var(--private-input-range-transition-duration);transition-property:background-color}.track-total{background-color:var(--mds-input-range-track-background);overflow:hidden;-webkit-transition-timing-function:var(--ease-in-out);transition-timing-function:var(--ease-in-out);width:100%}.contrast-area,.track-total{border-radius:var(--mds-input-range-track-size)}.contrast-area{margin-left:calc(var(--spacing,.0025rem)*100);margin-right:calc(var(--spacing,.0025rem)*100)}:host([disabled]:not([disabled=false])){--mds-input-range-thumb-background:var(--mds-input-range-thumb-background-disabled);--mds-input-range-track-background:var(--mds-input-range-track-background-disabled);--mds-input-range-track-progress-background:var(--mds-input-range-track-progress-background-disabled)}:host([disabled]:not([disabled=false])) .field::-webkit-slider-thumb{cursor:not-allowed}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-range-thumb-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))}:host([pref-contrast=more]){color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-range-thumb-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-range-track-progress-background:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}"};var MdsInputRange=/** @class */function(){function a(a){var t=this;registerInstance(this,a);this.changeEvent=createEvent(this,"mdsInputRangeChange",7);if(a.$hostElement$["s-ei"]){this.internals=a.$hostElement$["s-ei"]}else{this.internals=a.$hostElement$.attachInternals();a.$hostElement$["s-ei"]=this.internals}
2
+ /**
3
+ * The greatest value in the range of permitted values
4
+ */this.max=100;
5
+ /**
6
+ * The lowest value in the range of permitted values
7
+ */this.min=0;
8
+ /**
9
+ * The step attribute is a number that specifies the granularity that
10
+ * the value must adhere to, or the special value any, which is described below.
11
+ */this.step=1;this.onInput=function(){if(Number.isNaN(t.inputElement.value))throw Error("Entered value ".concat(t.inputElement.value," is not a Number"));
12
+ // trigger valueChanged that update progress and emit event
13
+ t.value=Number(t.inputElement.value)}}a.prototype.calculateProgress=function(){
14
+ // validate value
15
+ var a=Number(this.inputElement.value);
16
+ // multiplier is needed to manage decimal value and step, so we can work with integer value and avoid decimal division
17
+ var t=Math.pow(10,this.decimalPlaces);if(a>this.max)a=this.max;else if(a<this.min)a=this.min;if((a-this.min)*t%(this.step*t)!==0){a=(Math.round((a*t-this.min*t)/(this.step*t))*(this.step*t)+this.min*t)/t}this.value=a;setFormValue(this.internals,this.value.toString());var r=this.max-this.min;var e=this.value-this.min;this.progress=e/r*100};a.prototype.countDecimals=function(a){if(Math.floor(a)===a)return 0;return a.toString().split(".")[1].length||0};a.prototype.disabledChanged=function(a){
18
+ /**
19
+ * This is related to ALL disabled attributes set on Magma input components
20
+ * if solved, please check mds-button, mds-input, mds-input-*
21
+ * https://github.com/ionic-team/stencil/issues/5461
22
+ */
23
+ if(a){setFormValue(this.internals,null)}};a.prototype.valueChanged=function(a,t){if(a===t)return;this.inputElement.value=this.value.toString();this.calculateProgress();this.changeEvent.emit(this.value)};a.prototype.minChanged=function(){this.calculateProgress()};a.prototype.maxChanged=function(){this.calculateProgress()};a.prototype.stepChanged=function(){if(this.step<=0)throw Error("step cant be negative or zero");this.decimalPlaces=this.countDecimals(this.step);this.calculateProgress()};a.prototype.formResetCallback=function(){setFormValue(this.internals,"")};a.prototype.componentDidLoad=function(){var a;this.decimalPlaces=this.countDecimals(this.step);this.onInput();// define value
24
+ this.label=(a=this.element.textContent)!==null&&a!==void 0?a:"";this.calculateProgress()};a.prototype.render=function(){var a=this;var t;return h(Host,{key:"7c0a8d739163d2bf261c37c07010dc0b3d50e229","pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("header",{key:"95f14dfc8f5cd2a51a101d7836e7f3fecada1ff7",class:"header",part:"header"},h("mds-text",{key:"b43ad53a0a963336581c646e1f071bdae3a26efc",class:"label",typography:"label"},h("slot",{key:"c977a9d5544930cefabe76ca3d7394d629d52450"})),h("mds-text",{key:"92b8d45b0a8846d0266c366129448f1d97357947",class:"value",typography:"label"},this.formatValue?this.formatValue(this.value):this.value)),h("div",{key:"29e4bcfc4fb52fbfdcc5684a9d0a45651ade0c97",class:"range"},h("div",{key:"38f46832e1735ff53d83aff2ee67ba359d711ed6",class:"track",part:"track"},h("div",{key:"96206811d68b037c6d484f34773a368ca46419ab",class:"contrast-area"}),h("div",{key:"6f329d1cac11dfdb21c2d10f01b6ec82cb6d7805",class:"track-total"},h("div",{key:"590710af361f8d3933b22e80ccca3fe1d6a62498",class:"track-progress",style:{"--mds-input-range-progress":"".concat((t=this.progress)!==null&&t!==void 0?t:0)}}))),h("input",{key:"485d49941a1cb41258d32e02ec1c3f03882744f1",ref:function(t){return a.inputElement=t},class:"field","aria-label":this.label,disabled:this.disabled,max:this.max,min:this.min,onInput:this.onInput,step:this.step,type:"range",value:this.value,name:this.name})))};Object.defineProperty(a,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{disabled:[{disabledChanged:0}],value:[{valueChanged:0}],min:[{minChanged:0}],max:[{maxChanged:0}],step:[{stepChanged:0}]}},enumerable:false,configurable:true});return a}();MdsInputRange.style=mdsInputRangeCss();export{MdsInputRange as mds_input_range};