@maggioli-design-system/magma 2.0.0-beta.3 → 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 (1628) hide show
  1. package/README.md +35 -3
  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 -28
  13. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +8 -17
  14. package/dist/cjs/mds-accordion-timer.cjs.entry.js +3 -3
  15. package/dist/cjs/mds-accordion.cjs.entry.js +5 -22
  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 +8 -21
  20. package/dist/cjs/mds-badge.cjs.entry.js +5 -26
  21. package/dist/cjs/mds-banner_3.cjs.entry.js +35 -70
  22. package/dist/cjs/mds-benchmark-bar.cjs.entry.js +2 -2
  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 +7 -15
  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 +10 -32
  29. package/dist/cjs/mds-calendar_2.cjs.entry.js +123 -102
  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 +4 -21
  35. package/dist/cjs/mds-details.cjs.entry.js +8 -18
  36. package/dist/cjs/mds-dropdown.cjs.entry.js +184 -58
  37. package/dist/cjs/mds-emoji.cjs.entry.js +301 -181
  38. package/dist/cjs/mds-entity.cjs.entry.js +11 -23
  39. package/dist/cjs/mds-file-preview.cjs.entry.js +8 -36
  40. package/dist/cjs/mds-file.cjs.entry.js +6 -34
  41. package/dist/cjs/mds-filter-item.cjs.entry.js +6 -25
  42. package/dist/cjs/mds-filter.cjs.entry.js +19 -32
  43. package/dist/cjs/mds-header-bar.cjs.entry.js +11 -27
  44. package/dist/cjs/mds-header.cjs.entry.js +8 -22
  45. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +2 -2
  46. package/dist/cjs/mds-hr.cjs.entry.js +4 -17
  47. package/dist/cjs/mds-img.cjs.entry.js +8 -16
  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 +57 -43
  50. package/dist/cjs/mds-input-date.cjs.entry.js +14 -44
  51. package/dist/cjs/mds-input-field.cjs.entry.js +42 -6
  52. package/dist/cjs/mds-input-otp.cjs.entry.js +37 -3
  53. package/dist/cjs/mds-input-range.cjs.entry.js +9 -29
  54. package/dist/cjs/mds-input-select.cjs.entry.js +11 -41
  55. package/dist/cjs/mds-input-switch_2.cjs.entry.js +19 -55
  56. package/dist/cjs/mds-input-tip_2.cjs.entry.js +8 -40
  57. package/dist/cjs/mds-input-upload.cjs.entry.js +34 -36
  58. package/dist/cjs/mds-input.cjs.entry.js +23 -52
  59. package/dist/cjs/mds-keyboard-key.cjs.entry.js +5 -14
  60. package/dist/cjs/mds-keyboard.cjs.entry.js +5 -25
  61. package/dist/cjs/mds-kpi-item.cjs.entry.js +12 -25
  62. package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
  63. package/dist/cjs/mds-label.cjs.entry.js +7 -29
  64. package/dist/cjs/mds-list-item.cjs.entry.js +4 -13
  65. package/dist/cjs/mds-list.cjs.entry.js +1 -1
  66. package/dist/cjs/mds-mention.cjs.entry.js +38 -4
  67. package/dist/cjs/mds-modal.cjs.entry.js +54 -47
  68. package/dist/cjs/mds-note.cjs.entry.js +7 -35
  69. package/dist/cjs/mds-notification.cjs.entry.js +12 -14
  70. package/dist/cjs/mds-paginator-item.cjs.entry.js +5 -20
  71. package/dist/cjs/mds-paginator.cjs.entry.js +27 -32
  72. package/dist/cjs/mds-policy-ai.cjs.entry.js +5 -15
  73. package/dist/cjs/mds-pref-animation.cjs.entry.js +7 -23
  74. package/dist/cjs/mds-pref-consumption.cjs.entry.js +7 -23
  75. package/dist/cjs/mds-pref-contrast.cjs.entry.js +10 -24
  76. package/dist/cjs/mds-pref-language-item.cjs.entry.js +27 -15
  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 +147 -230
  81. package/dist/cjs/mds-pref.cjs.entry.js +40 -17
  82. package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +4 -25
  83. package/dist/cjs/mds-price-table-features-row.cjs.entry.js +4 -25
  84. package/dist/cjs/mds-price-table-features.cjs.entry.js +4 -25
  85. package/dist/cjs/mds-price-table-header.cjs.entry.js +2 -2
  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 -25
  88. package/dist/cjs/mds-price-table.cjs.entry.js +2 -2
  89. package/dist/cjs/mds-progress_2.cjs.entry.js +7 -33
  90. package/dist/cjs/mds-push-notification-item.cjs.entry.js +16 -39
  91. package/dist/cjs/mds-push-notification.cjs.entry.js +7 -20
  92. package/dist/cjs/mds-quote.cjs.entry.js +4 -13
  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 -21
  96. package/dist/cjs/mds-status-bar.cjs.entry.js +4 -25
  97. package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +14 -25
  98. package/dist/cjs/mds-stepper-bar.cjs.entry.js +21 -12
  99. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +6 -27
  100. package/dist/cjs/mds-tab-bar.cjs.entry.js +5 -26
  101. package/dist/cjs/mds-tab_2.cjs.entry.js +14 -47
  102. package/dist/cjs/mds-table-body.cjs.entry.js +4 -13
  103. package/dist/cjs/mds-table-footer.cjs.entry.js +4 -13
  104. package/dist/cjs/mds-table-header-cell.cjs.entry.js +4 -13
  105. package/dist/cjs/mds-table-header.cjs.entry.js +19 -31
  106. package/dist/cjs/mds-table-row.cjs.entry.js +20 -29
  107. package/dist/cjs/mds-table.cjs.entry.js +60 -50
  108. package/dist/cjs/mds-text.cjs.entry.js +36 -21
  109. package/dist/cjs/mds-toast.cjs.entry.js +10 -27
  110. package/dist/cjs/mds-tooltip.cjs.entry.js +16 -27
  111. package/dist/cjs/mds-tree-item.cjs.entry.js +12 -14
  112. package/dist/cjs/mds-tree.cjs.entry.js +12 -6
  113. package/dist/cjs/mds-url-view.cjs.entry.js +21 -41
  114. package/dist/cjs/mds-usage.cjs.entry.js +5 -33
  115. package/dist/cjs/mds-video-wall.cjs.entry.js +8 -4
  116. package/dist/cjs/mds-zero.cjs.entry.js +4 -25
  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 +175 -9
  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 +83 -59
  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 +9 -65
  129. package/dist/collection/components/mds-accordion/mds-accordion.js +3 -27
  130. package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +63 -81
  131. package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +2 -31
  132. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +2 -26
  133. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +50 -36
  134. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +2 -16
  135. package/dist/collection/components/mds-author/mds-author.css +4 -0
  136. package/dist/collection/components/mds-author/mds-author.js +14 -2
  137. package/dist/collection/components/mds-avatar/mds-avatar.css +125 -111
  138. package/dist/collection/components/mds-avatar/mds-avatar.js +6 -21
  139. package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +12 -84
  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 +6 -24
  142. package/dist/collection/components/mds-badge/mds-badge.css +168 -155
  143. package/dist/collection/components/mds-badge/mds-badge.js +2 -31
  144. package/dist/collection/components/mds-banner/mds-banner.css +149 -192
  145. package/dist/collection/components/mds-banner/mds-banner.js +10 -58
  146. package/dist/collection/components/mds-bibliography/mds-bibliography.css +6 -24
  147. package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +6 -70
  148. package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +2 -37
  149. package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +15 -67
  150. package/dist/collection/components/mds-button/mds-button.css +285 -333
  151. package/dist/collection/components/mds-button/mds-button.js +4 -24
  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 +13 -4
  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 +150 -127
  158. package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +88 -299
  159. package/dist/collection/components/mds-card/mds-card.css +11 -35
  160. package/dist/collection/components/mds-card/mds-card.js +2 -22
  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 +317 -278
  167. package/dist/collection/components/mds-chip/mds-chip.js +19 -61
  168. package/dist/collection/components/mds-details/mds-details.css +52 -28
  169. package/dist/collection/components/mds-details/mds-details.js +4 -16
  170. package/dist/collection/components/mds-dropdown/mds-dropdown.css +102 -121
  171. package/dist/collection/components/mds-dropdown/mds-dropdown.js +179 -59
  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 +25 -76
  176. package/dist/collection/components/mds-entity/mds-entity.js +13 -24
  177. package/dist/collection/components/mds-file/mds-file.css +103 -79
  178. package/dist/collection/components/mds-file/mds-file.js +2 -56
  179. package/dist/collection/components/mds-file-preview/mds-file-preview.css +277 -218
  180. package/dist/collection/components/mds-file-preview/mds-file-preview.js +4 -62
  181. package/dist/collection/components/mds-filter/mds-filter.css +66 -78
  182. package/dist/collection/components/mds-filter/mds-filter.js +16 -33
  183. package/dist/collection/components/mds-filter-item/mds-filter-item.css +73 -53
  184. package/dist/collection/components/mds-filter-item/mds-filter-item.js +2 -29
  185. package/dist/collection/components/mds-header/mds-header.css +15 -68
  186. package/dist/collection/components/mds-header/mds-header.js +5 -22
  187. package/dist/collection/components/mds-header-bar/mds-header-bar.css +60 -31
  188. package/dist/collection/components/mds-header-bar/mds-header-bar.js +9 -28
  189. package/dist/collection/components/mds-help/mds-help.css +1 -19
  190. package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +13 -104
  191. package/dist/collection/components/mds-hr/mds-hr.css +6 -18
  192. package/dist/collection/components/mds-hr/mds-hr.js +2 -21
  193. package/dist/collection/components/mds-icon/services/icons-set.service.js +16 -0
  194. package/dist/collection/components/mds-img/mds-img.css +12 -48
  195. package/dist/collection/components/mds-img/mds-img.js +5 -36
  196. package/dist/collection/components/mds-input/mds-input.css +120 -158
  197. package/dist/collection/components/mds-input/mds-input.js +33 -65
  198. package/dist/collection/components/mds-input-date/mds-input-date.css +107 -124
  199. package/dist/collection/components/mds-input-date/mds-input-date.js +49 -62
  200. package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +100 -90
  201. package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +77 -62
  202. package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.css +19 -73
  203. package/dist/collection/components/mds-input-field/mds-input-field.css +33 -45
  204. package/dist/collection/components/mds-input-field/mds-input-field.js +41 -4
  205. package/dist/collection/components/mds-input-otp/mds-input-otp.js +38 -2
  206. package/dist/collection/components/mds-input-range/mds-input-range.css +61 -19
  207. package/dist/collection/components/mds-input-range/mds-input-range.js +7 -31
  208. package/dist/collection/components/mds-input-select/mds-input-select.css +123 -156
  209. package/dist/collection/components/mds-input-select/mds-input-select.js +28 -61
  210. package/dist/collection/components/mds-input-switch/mds-input-switch.css +91 -250
  211. package/dist/collection/components/mds-input-switch/mds-input-switch.js +12 -63
  212. package/dist/collection/components/mds-input-tip/mds-input-tip.css +45 -31
  213. package/dist/collection/components/mds-input-tip/mds-input-tip.js +2 -16
  214. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +84 -56
  215. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +3 -54
  216. package/dist/collection/components/mds-input-upload/mds-input-upload.css +26 -37
  217. package/dist/collection/components/mds-input-upload/mds-input-upload.js +30 -51
  218. package/dist/collection/components/mds-keyboard/mds-keyboard.css +32 -126
  219. package/dist/collection/components/mds-keyboard/mds-keyboard.js +2 -46
  220. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +4 -28
  221. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -37
  222. package/dist/collection/components/mds-kpi/mds-kpi.css +6 -11
  223. package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +103 -40
  224. package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +10 -27
  225. package/dist/collection/components/mds-label/mds-label.css +265 -354
  226. package/dist/collection/components/mds-label/mds-label.js +3 -54
  227. package/dist/collection/components/mds-list-item/mds-list-item.css +3 -9
  228. package/dist/collection/components/mds-list-item/mds-list-item.js +2 -16
  229. package/dist/collection/components/mds-mention/mds-mention.css +19 -10
  230. package/dist/collection/components/mds-mention/mds-mention.js +62 -2
  231. package/dist/collection/components/mds-modal/mds-modal.css +71 -101
  232. package/dist/collection/components/mds-modal/mds-modal.js +72 -45
  233. package/dist/collection/components/mds-note/mds-note.css +220 -198
  234. package/dist/collection/components/mds-note/mds-note.js +3 -61
  235. package/dist/collection/components/mds-notification/mds-notification.css +55 -89
  236. package/dist/collection/components/mds-notification/mds-notification.js +9 -16
  237. package/dist/collection/components/mds-paginator/mds-paginator.css +71 -35
  238. package/dist/collection/components/mds-paginator/mds-paginator.js +24 -37
  239. package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +78 -96
  240. package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +2 -24
  241. package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +9 -9
  242. package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +1 -38
  243. package/dist/collection/components/mds-pref/mds-pref.js +40 -40
  244. package/dist/collection/components/mds-pref-animation/mds-pref-animation.css +50 -6
  245. package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +4 -47
  246. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.css +12 -12
  247. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +4 -47
  248. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.css +4 -4
  249. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +7 -48
  250. package/dist/collection/components/mds-pref-language/mds-pref-language.css +3 -3
  251. package/dist/collection/components/mds-pref-language/mds-pref-language.js +35 -46
  252. package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +24 -38
  253. package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +79 -0
  254. package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +372 -0
  255. package/dist/collection/components/mds-pref-mode/meta/dictionary.js +3 -0
  256. package/dist/collection/components/mds-pref-theme/mds-pref-theme.css +12 -77
  257. package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +183 -239
  258. package/dist/collection/components/mds-pref-theme/meta/dictionary.js +2 -3
  259. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +70 -0
  260. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +160 -0
  261. package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
  262. package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +56 -47
  263. package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +2 -31
  264. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +71 -67
  265. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +2 -31
  266. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +66 -42
  267. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +3 -28
  268. package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
  269. package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +63 -25
  270. package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +3 -28
  271. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +5 -31
  272. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
  273. package/dist/collection/components/mds-progress/mds-progress.css +100 -94
  274. package/dist/collection/components/mds-progress/mds-progress.js +2 -27
  275. package/dist/collection/components/mds-push-notification/mds-push-notification.css +7 -37
  276. package/dist/collection/components/mds-push-notification/mds-push-notification.js +2 -21
  277. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +172 -136
  278. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +13 -60
  279. package/dist/collection/components/mds-quote/mds-quote.css +2 -2
  280. package/dist/collection/components/mds-quote/mds-quote.js +2 -16
  281. package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +6 -60
  282. package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +3 -2
  283. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.css +1 -7
  284. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
  285. package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +24 -30
  286. package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +3 -7
  287. package/dist/collection/components/mds-separator/mds-separator.css +12 -42
  288. package/dist/collection/components/mds-separator/mds-separator.js +2 -26
  289. package/dist/collection/components/mds-spinner/mds-spinner.css +3 -9
  290. package/dist/collection/components/mds-spinner/mds-spinner.js +2 -16
  291. package/dist/collection/components/mds-status-bar/mds-status-bar.css +13 -23
  292. package/dist/collection/components/mds-status-bar/mds-status-bar.js +2 -31
  293. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +8 -56
  294. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +18 -9
  295. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +68 -120
  296. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +10 -44
  297. package/dist/collection/components/mds-tab/mds-tab.css +85 -189
  298. package/dist/collection/components/mds-tab/mds-tab.js +5 -27
  299. package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +54 -10
  300. package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +2 -31
  301. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +62 -44
  302. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +2 -27
  303. package/dist/collection/components/mds-tab-item/mds-tab-item.css +22 -37
  304. package/dist/collection/components/mds-tab-item/mds-tab-item.js +23 -22
  305. package/dist/collection/components/mds-table/mds-table.css +86 -130
  306. package/dist/collection/components/mds-table/mds-table.js +57 -52
  307. package/dist/collection/components/mds-table-body/mds-table-body.css +54 -40
  308. package/dist/collection/components/mds-table-body/mds-table-body.js +2 -16
  309. package/dist/collection/components/mds-table-cell/mds-table-cell.css +62 -32
  310. package/dist/collection/components/mds-table-cell/mds-table-cell.js +2 -16
  311. package/dist/collection/components/mds-table-footer/mds-table-footer.css +44 -0
  312. package/dist/collection/components/mds-table-footer/mds-table-footer.js +2 -16
  313. package/dist/collection/components/mds-table-header/mds-table-header.css +44 -0
  314. package/dist/collection/components/mds-table-header/mds-table-header.js +17 -48
  315. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.css +47 -7
  316. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +3 -13
  317. package/dist/collection/components/mds-table-row/mds-table-row.css +67 -49
  318. package/dist/collection/components/mds-table-row/mds-table-row.js +19 -50
  319. package/dist/collection/components/mds-text/mds-text.css +18 -38
  320. package/dist/collection/components/mds-text/mds-text.js +23 -22
  321. package/dist/collection/components/mds-toast/mds-toast.css +99 -90
  322. package/dist/collection/components/mds-toast/mds-toast.js +8 -28
  323. package/dist/collection/components/mds-tooltip/mds-tooltip.css +68 -85
  324. package/dist/collection/components/mds-tooltip/mds-tooltip.js +12 -31
  325. package/dist/collection/components/mds-tree/mds-tree.css +20 -212
  326. package/dist/collection/components/mds-tree/mds-tree.js +10 -4
  327. package/dist/collection/components/mds-tree-item/mds-tree-item.css +146 -267
  328. package/dist/collection/components/mds-tree-item/mds-tree-item.js +7 -28
  329. package/dist/collection/components/mds-url-view/mds-url-view.css +59 -33
  330. package/dist/collection/components/mds-url-view/mds-url-view.js +17 -67
  331. package/dist/collection/components/mds-usage/mds-usage.css +80 -95
  332. package/dist/collection/components/mds-usage/mds-usage.js +2 -60
  333. package/dist/collection/components/mds-video-wall/mds-video-wall.css +11 -26
  334. package/dist/collection/components/mds-video-wall/mds-video-wall.js +11 -2
  335. package/dist/collection/components/mds-zero/mds-zero.css +56 -18
  336. package/dist/collection/components/mds-zero/mds-zero.js +2 -31
  337. package/dist/collection/event-detail/theme.js +1 -0
  338. package/dist/collection/type/preference.js +22 -3
  339. package/dist/components/index.d.ts +230 -0
  340. package/dist/components/index.js +1 -1
  341. package/dist/components/mds-accordion-item.js +1 -1
  342. package/dist/components/mds-accordion-timer-item.js +1 -1
  343. package/dist/components/mds-accordion-timer.js +1 -1
  344. package/dist/components/mds-accordion.js +1 -1
  345. package/dist/components/mds-author.js +1 -1
  346. package/dist/components/mds-avatar-stack-item.js +1 -1
  347. package/dist/components/mds-avatar-stack.js +1 -1
  348. package/dist/components/mds-avatar.js +1 -1
  349. package/dist/components/mds-badge.js +1 -1
  350. package/dist/components/mds-banner.js +1 -1
  351. package/dist/components/mds-benchmark-bar.js +1 -1
  352. package/dist/components/mds-bibliography.js +1 -1
  353. package/dist/components/mds-breadcrumb-item.js +1 -1
  354. package/dist/components/mds-breadcrumb.js +1 -1
  355. package/dist/components/mds-button-dropdown.js +1 -1
  356. package/dist/components/mds-button-group.js +1 -1
  357. package/dist/components/mds-button.js +1 -1
  358. package/dist/components/mds-calendar-cell.js +1 -1
  359. package/dist/components/mds-calendar.js +1 -1
  360. package/dist/components/mds-card-content.js +1 -1
  361. package/dist/components/mds-card-footer.js +1 -1
  362. package/dist/components/mds-card-header.js +1 -1
  363. package/dist/components/mds-card-media.js +1 -1
  364. package/dist/components/mds-card.js +1 -1
  365. package/dist/components/mds-chip.js +1 -1
  366. package/dist/components/mds-details.js +1 -1
  367. package/dist/components/mds-dropdown.js +1 -1
  368. package/dist/components/mds-emoji.js +3 -3
  369. package/dist/components/mds-entity.js +1 -1
  370. package/dist/components/mds-file-preview.js +1 -1
  371. package/dist/components/mds-file.js +3 -3
  372. package/dist/components/mds-filter-item.js +1 -1
  373. package/dist/components/mds-filter.js +1 -1
  374. package/dist/components/mds-header-bar.js +1 -1
  375. package/dist/components/mds-header.js +1 -1
  376. package/dist/components/mds-help.js +1 -1
  377. package/dist/components/mds-horizontal-scroll.js +1 -1
  378. package/dist/components/mds-hr.js +1 -1
  379. package/dist/components/mds-icon.js +1 -1
  380. package/dist/components/mds-img.js +1 -1
  381. package/dist/components/mds-input-date-range-preselection.js +1 -1
  382. package/dist/components/mds-input-date-range.js +1 -1
  383. package/dist/components/mds-input-date.js +1 -1
  384. package/dist/components/mds-input-field.js +1 -1
  385. package/dist/components/mds-input-otp.js +1 -1
  386. package/dist/components/mds-input-range.js +1 -1
  387. package/dist/components/mds-input-select.js +1 -1
  388. package/dist/components/mds-input-switch.js +1 -1
  389. package/dist/components/mds-input-tip-item.js +1 -1
  390. package/dist/components/mds-input-tip.js +1 -1
  391. package/dist/components/mds-input-upload.js +1 -1
  392. package/dist/components/mds-input.js +1 -1
  393. package/dist/components/mds-keyboard-key.js +1 -1
  394. package/dist/components/mds-keyboard.js +1 -1
  395. package/dist/components/mds-kpi-item.js +1 -1
  396. package/dist/components/mds-kpi.js +1 -1
  397. package/dist/components/mds-label.js +1 -1
  398. package/dist/components/mds-list-item.js +1 -1
  399. package/dist/components/mds-list.js +1 -1
  400. package/dist/components/mds-mention.js +1 -1
  401. package/dist/components/mds-modal.js +1 -1
  402. package/dist/components/mds-note.js +1 -1
  403. package/dist/components/mds-notification.js +1 -1
  404. package/dist/components/mds-paginator-item.js +1 -1
  405. package/dist/components/mds-paginator.js +1 -1
  406. package/dist/components/mds-policy-ai.js +1 -1
  407. package/dist/components/mds-pref-animation.js +1 -1
  408. package/dist/components/mds-pref-consumption.js +1 -1
  409. package/dist/components/mds-pref-contrast.js +1 -1
  410. package/dist/components/mds-pref-language-item.js +1 -1
  411. package/dist/components/mds-pref-language.js +1 -1
  412. package/dist/components/mds-pref-mode.d.ts +11 -0
  413. package/dist/components/mds-pref-mode.js +1 -0
  414. package/dist/components/mds-pref-theme-item.d.ts +11 -0
  415. package/dist/components/mds-pref-theme-item.js +1 -0
  416. package/dist/components/mds-pref-theme.js +1 -1
  417. package/dist/components/mds-pref.js +1 -1
  418. package/dist/components/mds-price-table-features-cell.js +1 -1
  419. package/dist/components/mds-price-table-features-row.js +1 -1
  420. package/dist/components/mds-price-table-features.js +1 -1
  421. package/dist/components/mds-price-table-header.js +1 -1
  422. package/dist/components/mds-price-table-list-item.js +1 -1
  423. package/dist/components/mds-price-table-list.js +1 -1
  424. package/dist/components/mds-price-table.js +1 -1
  425. package/dist/components/mds-progress.js +1 -1
  426. package/dist/components/mds-push-notification-item.js +1 -1
  427. package/dist/components/mds-push-notification.js +1 -1
  428. package/dist/components/mds-quote.js +1 -1
  429. package/dist/components/mds-radial-menu-item.js +1 -1
  430. package/dist/components/mds-radial-menu.js +1 -1
  431. package/dist/components/mds-radial-progress.js +1 -1
  432. package/dist/components/mds-separator.js +1 -1
  433. package/dist/components/mds-spinner.js +1 -1
  434. package/dist/components/mds-status-bar.js +1 -1
  435. package/dist/components/mds-stepper-bar-item.js +1 -1
  436. package/dist/components/mds-stepper-bar.js +1 -1
  437. package/dist/components/mds-tab-bar-item.js +1 -1
  438. package/dist/components/mds-tab-bar.js +1 -1
  439. package/dist/components/mds-tab-item.js +1 -1
  440. package/dist/components/mds-tab.js +1 -1
  441. package/dist/components/mds-table-body.js +1 -1
  442. package/dist/components/mds-table-cell.js +1 -1
  443. package/dist/components/mds-table-footer.js +1 -1
  444. package/dist/components/mds-table-header-cell.js +1 -1
  445. package/dist/components/mds-table-header.js +1 -1
  446. package/dist/components/mds-table-row.js +1 -1
  447. package/dist/components/mds-table.js +1 -1
  448. package/dist/components/mds-text.js +1 -1
  449. package/dist/components/mds-toast.js +1 -1
  450. package/dist/components/mds-tooltip.js +1 -1
  451. package/dist/components/mds-tree-item.js +1 -1
  452. package/dist/components/mds-tree.js +1 -1
  453. package/dist/components/mds-url-view.js +1 -1
  454. package/dist/components/mds-usage.js +1 -1
  455. package/dist/components/mds-video-wall.js +1 -1
  456. package/dist/components/mds-zero.js +1 -1
  457. package/dist/components/p--8aaJX-p.js +1 -0
  458. package/dist/components/p-A9TZf0Ii.js +1 -0
  459. package/dist/components/p-B14Ci2fO.js +1 -0
  460. package/dist/components/p-B2A_hlV2.js +1 -0
  461. package/dist/components/p-B9DJLgwr.js +1 -0
  462. package/dist/components/p-BH3bWzRT.js +1 -0
  463. package/dist/components/p-BJNK4p33.js +1 -0
  464. package/dist/components/p-BNHXZ-JR.js +1 -0
  465. package/dist/components/p-BSxuG1vZ.js +1 -0
  466. package/dist/components/p-BTHR4xXu.js +1 -0
  467. package/dist/components/p-BhFTcUD0.js +3 -0
  468. package/dist/components/p-BouRLCYL.js +1 -0
  469. package/dist/components/p-Bss3F51Q.js +5 -0
  470. package/dist/components/p-Bt4xX5ww.js +1 -0
  471. package/dist/components/p-C03KYHGv.js +1 -0
  472. package/dist/components/p-C58NKMEE.js +1 -0
  473. package/dist/components/p-CACEYk42.js +1 -0
  474. package/dist/components/p-CBLAz3_J.js +1 -0
  475. package/dist/components/p-CHAGzQT-.js +1 -0
  476. package/dist/components/p-CVgKDZPF.js +1 -0
  477. package/dist/components/p-CVpjH8Un.js +1 -0
  478. package/dist/components/p-Caksrfcd.js +1 -0
  479. package/dist/components/p-CatD1iUY.js +1 -0
  480. package/dist/components/p-CbufYCNj.js +1 -0
  481. package/dist/components/p-Cehcn85x.js +1 -0
  482. package/dist/components/p-CsgCQiHG.js +1 -0
  483. package/dist/components/p-CvIFS8oA.js +1 -0
  484. package/dist/components/p-D3-GP4KF.js +1 -0
  485. package/dist/components/p-D8I1RblC.js +1 -0
  486. package/dist/components/p-DLE5TNTp.js +1 -0
  487. package/dist/components/p-DaI5QqNu.js +1 -0
  488. package/dist/components/p-Deh5Aia-.js +1 -0
  489. package/dist/components/p-Dj_oN194.js +1 -0
  490. package/dist/components/p-DmELzfvf.js +1 -0
  491. package/dist/components/p-DtxB7DYE.js +1 -0
  492. package/dist/components/p-KRu9I7dw.js +1 -0
  493. package/dist/components/p-cBZsPiMJ.js +1 -0
  494. package/dist/components/p-sUKtonkE.js +8 -0
  495. package/dist/components/p-sqRs6oj4.js +1 -0
  496. package/dist/components/p-wq6nWuWE.js +1 -0
  497. package/dist/documentation.json +750 -1137
  498. package/dist/esm/date-CACEYk42.js +22 -0
  499. package/dist/esm/floating-controller-DVldZ5mh.js +366 -0
  500. package/dist/esm/floating-ui.dom-CHAGzQT-.js +1680 -0
  501. package/dist/esm/form-A9TZf0Ii.js +19 -0
  502. package/dist/esm/index-DIiEV39g.js +5149 -0
  503. package/dist/esm/index.js +17 -0
  504. package/dist/esm/keyboard-manager-KRu9I7dw.js +50 -0
  505. package/dist/esm/loader.js +3 -3
  506. package/dist/esm/locale-CbJbTW_c.js +814 -0
  507. package/dist/esm/magma-components.js +32 -5
  508. package/dist/esm/mds-accordion-item.entry.js +7 -28
  509. package/dist/esm/mds-accordion-timer-item.entry.js +8 -17
  510. package/dist/esm/mds-accordion-timer.entry.js +3 -3
  511. package/dist/esm/mds-accordion.entry.js +5 -22
  512. package/dist/esm/mds-author.entry.js +9 -4
  513. package/dist/esm/mds-avatar-stack-item.entry.js +2 -2
  514. package/dist/esm/mds-avatar-stack.entry.js +5 -4
  515. package/dist/esm/mds-avatar.entry.js +8 -21
  516. package/dist/esm/mds-badge.entry.js +5 -26
  517. package/dist/esm/mds-banner_3.entry.js +35 -70
  518. package/dist/esm/mds-benchmark-bar.entry.js +2 -2
  519. package/dist/esm/mds-bibliography.entry.js +2 -2
  520. package/dist/esm/mds-breadcrumb-item.entry.js +3 -3
  521. package/dist/esm/mds-breadcrumb.entry.js +7 -15
  522. package/dist/esm/mds-button-dropdown.entry.js +3 -3
  523. package/dist/esm/mds-button-group.entry.js +3 -3
  524. package/dist/esm/mds-button_3.entry.js +10 -32
  525. package/dist/esm/mds-calendar_2.entry.js +123 -102
  526. package/dist/esm/mds-card-content.entry.js +2 -2
  527. package/dist/esm/mds-card-footer.entry.js +2 -2
  528. package/dist/esm/mds-card-header.entry.js +9 -4
  529. package/dist/esm/mds-card-media.entry.js +2 -2
  530. package/dist/esm/mds-card.entry.js +4 -21
  531. package/dist/esm/mds-details.entry.js +8 -18
  532. package/dist/esm/mds-dropdown.entry.js +184 -58
  533. package/dist/esm/mds-emoji.entry.js +301 -181
  534. package/dist/esm/mds-entity.entry.js +11 -23
  535. package/dist/esm/mds-file-preview.entry.js +8 -36
  536. package/dist/esm/mds-file.entry.js +6 -34
  537. package/dist/esm/mds-filter-item.entry.js +6 -25
  538. package/dist/esm/mds-filter.entry.js +19 -32
  539. package/dist/esm/mds-header-bar.entry.js +11 -27
  540. package/dist/esm/mds-header.entry.js +8 -22
  541. package/dist/esm/mds-horizontal-scroll.entry.js +2 -2
  542. package/dist/esm/mds-hr.entry.js +4 -17
  543. package/dist/esm/mds-img.entry.js +8 -16
  544. package/dist/esm/mds-input-date-range-preselection.entry.js +2 -2
  545. package/dist/esm/mds-input-date-range.entry.js +57 -43
  546. package/dist/esm/mds-input-date.entry.js +14 -44
  547. package/dist/esm/mds-input-field.entry.js +42 -6
  548. package/dist/esm/mds-input-otp.entry.js +37 -3
  549. package/dist/esm/mds-input-range.entry.js +9 -29
  550. package/dist/esm/mds-input-select.entry.js +11 -41
  551. package/dist/esm/mds-input-switch_2.entry.js +19 -55
  552. package/dist/esm/mds-input-tip_2.entry.js +8 -40
  553. package/dist/esm/mds-input-upload.entry.js +34 -36
  554. package/dist/esm/mds-input.entry.js +23 -52
  555. package/dist/esm/mds-keyboard-key.entry.js +5 -14
  556. package/dist/esm/mds-keyboard.entry.js +5 -25
  557. package/dist/esm/mds-kpi-item.entry.js +12 -25
  558. package/dist/esm/mds-kpi.entry.js +2 -2
  559. package/dist/esm/mds-label.entry.js +7 -29
  560. package/dist/esm/mds-list-item.entry.js +4 -13
  561. package/dist/esm/mds-list.entry.js +1 -1
  562. package/dist/esm/mds-mention.entry.js +38 -4
  563. package/dist/esm/mds-modal.entry.js +54 -47
  564. package/dist/esm/mds-note.entry.js +7 -35
  565. package/dist/esm/mds-notification.entry.js +12 -14
  566. package/dist/esm/mds-paginator-item.entry.js +5 -20
  567. package/dist/esm/mds-paginator.entry.js +27 -32
  568. package/dist/esm/mds-policy-ai.entry.js +5 -15
  569. package/dist/esm/mds-pref-animation.entry.js +7 -23
  570. package/dist/esm/mds-pref-consumption.entry.js +7 -23
  571. package/dist/esm/mds-pref-contrast.entry.js +10 -24
  572. package/dist/esm/mds-pref-language-item.entry.js +27 -15
  573. package/dist/esm/mds-pref-language.entry.js +38 -28
  574. package/dist/esm/mds-pref-mode.entry.js +271 -0
  575. package/dist/esm/mds-pref-theme-item.entry.js +41 -0
  576. package/dist/esm/mds-pref-theme.entry.js +147 -230
  577. package/dist/esm/mds-pref.entry.js +40 -17
  578. package/dist/esm/mds-price-table-features-cell.entry.js +4 -25
  579. package/dist/esm/mds-price-table-features-row.entry.js +4 -25
  580. package/dist/esm/mds-price-table-features.entry.js +4 -25
  581. package/dist/esm/mds-price-table-header.entry.js +2 -2
  582. package/dist/esm/mds-price-table-list-item.entry.js +3 -3
  583. package/dist/esm/mds-price-table-list.entry.js +4 -25
  584. package/dist/esm/mds-price-table.entry.js +2 -2
  585. package/dist/esm/mds-progress_2.entry.js +7 -33
  586. package/dist/esm/mds-push-notification-item.entry.js +16 -39
  587. package/dist/esm/mds-push-notification.entry.js +7 -20
  588. package/dist/esm/mds-quote.entry.js +4 -13
  589. package/dist/esm/mds-radial-menu-item.entry.js +3 -3
  590. package/dist/esm/mds-radial-menu.entry.js +7 -6
  591. package/dist/esm/mds-separator.entry.js +4 -21
  592. package/dist/esm/mds-status-bar.entry.js +4 -25
  593. package/dist/esm/mds-stepper-bar-item.entry.js +14 -25
  594. package/dist/esm/mds-stepper-bar.entry.js +21 -12
  595. package/dist/esm/mds-tab-bar-item.entry.js +6 -27
  596. package/dist/esm/mds-tab-bar.entry.js +5 -26
  597. package/dist/esm/mds-tab_2.entry.js +14 -47
  598. package/dist/esm/mds-table-body.entry.js +4 -13
  599. package/dist/esm/mds-table-footer.entry.js +4 -13
  600. package/dist/esm/mds-table-header-cell.entry.js +4 -13
  601. package/dist/esm/mds-table-header.entry.js +19 -31
  602. package/dist/esm/mds-table-row.entry.js +20 -29
  603. package/dist/esm/mds-table.entry.js +60 -50
  604. package/dist/esm/mds-text.entry.js +36 -21
  605. package/dist/esm/mds-toast.entry.js +10 -27
  606. package/dist/esm/mds-tooltip.entry.js +16 -27
  607. package/dist/esm/mds-tree-item.entry.js +12 -14
  608. package/dist/esm/mds-tree.entry.js +12 -6
  609. package/dist/esm/mds-url-view.entry.js +21 -41
  610. package/dist/esm/mds-usage.entry.js +5 -33
  611. package/dist/esm/mds-video-wall.entry.js +8 -4
  612. package/dist/esm/mds-zero.entry.js +4 -25
  613. package/dist/esm/preference-CKerJx2M.js +385 -0
  614. package/dist/esm/slot-C0o_l0td.js +61 -0
  615. package/dist/esm-es5/date-CACEYk42.js +6 -0
  616. package/dist/esm-es5/datetime-BJtA1qmE.js +2732 -1
  617. package/dist/esm-es5/floating-controller-DVldZ5mh.js +66 -0
  618. package/dist/esm-es5/floating-ui.dom-CHAGzQT-.js +201 -0
  619. package/dist/esm-es5/form-A9TZf0Ii.js +8 -0
  620. package/dist/esm-es5/index-DIiEV39g.js +371 -0
  621. package/dist/esm-es5/index.js +79 -1
  622. package/dist/esm-es5/keyboard-manager-KRu9I7dw.js +5 -0
  623. package/dist/esm-es5/loader.js +1 -1
  624. package/dist/esm-es5/locale-CbJbTW_c.js +230 -0
  625. package/dist/esm-es5/magma-components.js +4 -1
  626. package/dist/esm-es5/mds-accordion-item.entry.js +4 -1
  627. package/dist/esm-es5/mds-accordion-timer-item.entry.js +17 -1
  628. package/dist/esm-es5/mds-accordion-timer.entry.js +4 -1
  629. package/dist/esm-es5/mds-accordion.entry.js +7 -1
  630. package/dist/esm-es5/mds-author.entry.js +1 -1
  631. package/dist/esm-es5/mds-avatar-stack-item.entry.js +4 -1
  632. package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
  633. package/dist/esm-es5/mds-avatar.entry.js +8 -1
  634. package/dist/esm-es5/mds-badge.entry.js +12 -1
  635. package/dist/esm-es5/mds-banner_3.entry.js +40 -1
  636. package/dist/esm-es5/mds-benchmark-bar.entry.js +15 -1
  637. package/dist/esm-es5/mds-bibliography.entry.js +14 -1
  638. package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
  639. package/dist/esm-es5/mds-breadcrumb.entry.js +4 -1
  640. package/dist/esm-es5/mds-button-dropdown.entry.js +19 -1
  641. package/dist/esm-es5/mds-button-group.entry.js +1 -1
  642. package/dist/esm-es5/mds-button_3.entry.js +42 -1
  643. package/dist/esm-es5/mds-calendar_2.entry.js +81 -1
  644. package/dist/esm-es5/mds-card-content.entry.js +1 -1
  645. package/dist/esm-es5/mds-card-footer.entry.js +1 -1
  646. package/dist/esm-es5/mds-card-header.entry.js +1 -1
  647. package/dist/esm-es5/mds-card-media.entry.js +1 -1
  648. package/dist/esm-es5/mds-card.entry.js +7 -1
  649. package/dist/esm-es5/mds-details.entry.js +4 -1
  650. package/dist/esm-es5/mds-dropdown.entry.js +102 -1
  651. package/dist/esm-es5/mds-emoji.entry.js +899 -3
  652. package/dist/esm-es5/mds-entity.entry.js +1 -1
  653. package/dist/esm-es5/mds-file-preview.entry.js +23 -2
  654. package/dist/esm-es5/mds-file.entry.js +2823 -3
  655. package/dist/esm-es5/mds-filter-item.entry.js +1 -1
  656. package/dist/esm-es5/mds-filter.entry.js +11 -1
  657. package/dist/esm-es5/mds-header-bar.entry.js +11 -1
  658. package/dist/esm-es5/mds-header.entry.js +30 -1
  659. package/dist/esm-es5/mds-horizontal-scroll.entry.js +45 -1
  660. package/dist/esm-es5/mds-hr.entry.js +1 -1
  661. package/dist/esm-es5/mds-img.entry.js +15 -1
  662. package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
  663. package/dist/esm-es5/mds-input-date-range.entry.js +39 -1
  664. package/dist/esm-es5/mds-input-date.entry.js +50 -1
  665. package/dist/esm-es5/mds-input-field.entry.js +22 -1
  666. package/dist/esm-es5/mds-input-otp.entry.js +13 -1
  667. package/dist/esm-es5/mds-input-range.entry.js +24 -1
  668. package/dist/esm-es5/mds-input-select.entry.js +39 -1
  669. package/dist/esm-es5/mds-input-switch_2.entry.js +27 -1
  670. package/dist/esm-es5/mds-input-tip_2.entry.js +10 -1
  671. package/dist/esm-es5/mds-input-upload.entry.js +63 -1
  672. package/dist/esm-es5/mds-input.entry.js +134 -1
  673. package/dist/esm-es5/mds-keyboard-key.entry.js +1 -1
  674. package/dist/esm-es5/mds-keyboard.entry.js +11 -1
  675. package/dist/esm-es5/mds-kpi-item.entry.js +11 -1
  676. package/dist/esm-es5/mds-kpi.entry.js +1 -1
  677. package/dist/esm-es5/mds-label.entry.js +16 -1
  678. package/dist/esm-es5/mds-list-item.entry.js +7 -1
  679. package/dist/esm-es5/mds-list.entry.js +1 -1
  680. package/dist/esm-es5/mds-mention.entry.js +4 -1
  681. package/dist/esm-es5/mds-modal.entry.js +68 -1
  682. package/dist/esm-es5/mds-note.entry.js +7 -1
  683. package/dist/esm-es5/mds-notification.entry.js +13 -1
  684. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  685. package/dist/esm-es5/mds-paginator.entry.js +14 -1
  686. package/dist/esm-es5/mds-policy-ai.entry.js +7 -1
  687. package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
  688. package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
  689. package/dist/esm-es5/mds-pref-contrast.entry.js +4 -1
  690. package/dist/esm-es5/mds-pref-language-item.entry.js +13 -1
  691. package/dist/esm-es5/mds-pref-language.entry.js +15 -1
  692. package/dist/esm-es5/mds-pref-mode.entry.js +4 -0
  693. package/dist/esm-es5/mds-pref-theme-item.entry.js +13 -0
  694. package/dist/esm-es5/mds-pref-theme.entry.js +38 -1
  695. package/dist/esm-es5/mds-pref.entry.js +9 -1
  696. package/dist/esm-es5/mds-price-table-features-cell.entry.js +4 -1
  697. package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
  698. package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
  699. package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
  700. package/dist/esm-es5/mds-price-table-list-item.entry.js +7 -1
  701. package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
  702. package/dist/esm-es5/mds-price-table.entry.js +1 -1
  703. package/dist/esm-es5/mds-progress_2.entry.js +32 -1
  704. package/dist/esm-es5/mds-push-notification-item.entry.js +16 -1
  705. package/dist/esm-es5/mds-push-notification.entry.js +49 -1
  706. package/dist/esm-es5/mds-quote.entry.js +7 -1
  707. package/dist/esm-es5/mds-radial-menu-item.entry.js +10 -1
  708. package/dist/esm-es5/mds-radial-menu.entry.js +28 -1
  709. package/dist/esm-es5/mds-separator.entry.js +1 -1
  710. package/dist/esm-es5/mds-status-bar.entry.js +10 -1
  711. package/dist/esm-es5/mds-stepper-bar-item.entry.js +16 -1
  712. package/dist/esm-es5/mds-stepper-bar.entry.js +19 -1
  713. package/dist/esm-es5/mds-tab-bar-item.entry.js +9 -1
  714. package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
  715. package/dist/esm-es5/mds-tab_2.entry.js +26 -1
  716. package/dist/esm-es5/mds-table-body.entry.js +1 -1
  717. package/dist/esm-es5/mds-table-footer.entry.js +1 -1
  718. package/dist/esm-es5/mds-table-header-cell.entry.js +4 -1
  719. package/dist/esm-es5/mds-table-header.entry.js +14 -1
  720. package/dist/esm-es5/mds-table-row.entry.js +8 -1
  721. package/dist/esm-es5/mds-table.entry.js +15 -1
  722. package/dist/esm-es5/mds-text.entry.js +27 -1
  723. package/dist/esm-es5/mds-toast.entry.js +15 -1
  724. package/dist/esm-es5/mds-tooltip.entry.js +37 -1
  725. package/dist/esm-es5/mds-tree-item.entry.js +16 -1
  726. package/dist/esm-es5/mds-tree.entry.js +20 -1
  727. package/dist/esm-es5/mds-url-view.entry.js +7 -1
  728. package/dist/esm-es5/mds-usage.entry.js +4 -1
  729. package/dist/esm-es5/mds-video-wall.entry.js +16 -1
  730. package/dist/esm-es5/mds-zero.entry.js +1 -1
  731. package/dist/esm-es5/preference-CKerJx2M.js +58 -0
  732. package/dist/esm-es5/slot-C0o_l0td.js +23 -0
  733. package/dist/hydrate/index.js +4268 -3165
  734. package/dist/hydrate/index.mjs +4268 -3165
  735. package/dist/magma-components/index.esm.js +1 -1
  736. package/dist/magma-components/magma-components.esm.js +1 -1
  737. package/dist/magma-components/magma-components.js +1 -1
  738. package/dist/magma-components/p-03be5c0c.entry.js +1 -0
  739. package/dist/magma-components/p-0715a2cb.system.entry.js +12 -0
  740. package/dist/magma-components/p-071f18c6.system.entry.js +27 -0
  741. package/dist/magma-components/p-0798b0bf.system.entry.js +24 -0
  742. package/dist/magma-components/p-07fde74d.system.entry.js +39 -0
  743. package/dist/magma-components/p-086fb3aa.entry.js +1 -0
  744. package/dist/magma-components/p-0a088e7d.system.entry.js +10 -0
  745. package/dist/magma-components/p-0a691082.entry.js +1 -0
  746. package/dist/magma-components/p-0ad3b4da.system.entry.js +102 -0
  747. package/dist/magma-components/p-0af8d821.entry.js +1 -0
  748. package/dist/magma-components/p-0ec21574.system.entry.js +10 -0
  749. package/dist/magma-components/p-0f6bb54d.system.entry.js +22 -0
  750. package/dist/magma-components/p-102d3bd3.system.entry.js +1 -0
  751. package/dist/magma-components/p-10704ede.system.entry.js +4 -0
  752. package/dist/magma-components/p-15f63bf3.entry.js +1 -0
  753. package/dist/magma-components/p-16e9fb14.system.entry.js +7 -0
  754. package/dist/magma-components/p-1780b8ba.entry.js +1 -0
  755. package/dist/magma-components/p-181dfb04.entry.js +1 -0
  756. package/dist/magma-components/p-184720be.system.entry.js +1 -0
  757. package/dist/magma-components/p-18f7b970.system.entry.js +4 -0
  758. package/dist/magma-components/p-1a8c5086.system.entry.js +19 -0
  759. package/dist/magma-components/p-1afc0452.entry.js +1 -0
  760. package/dist/magma-components/p-1c0a7e24.system.entry.js +30 -0
  761. package/dist/magma-components/p-1cce738a.system.entry.js +32 -0
  762. package/dist/magma-components/p-1dcfb13e.entry.js +1 -0
  763. package/dist/magma-components/p-1df6ac96.system.entry.js +7 -0
  764. package/dist/magma-components/p-209063b6.system.entry.js +50 -0
  765. package/dist/magma-components/p-216f95cc.system.entry.js +1 -0
  766. package/dist/magma-components/p-21891a24.entry.js +1 -0
  767. package/dist/magma-components/p-21d6687a.system.entry.js +7 -0
  768. package/dist/magma-components/p-231505e8.entry.js +1 -0
  769. package/dist/magma-components/p-23e61db9.system.entry.js +4 -0
  770. package/dist/magma-components/p-241dbf61.entry.js +1 -0
  771. package/dist/magma-components/p-25935d33.system.entry.js +1 -0
  772. package/dist/magma-components/p-284c40cd.system.entry.js +4 -0
  773. package/dist/magma-components/p-29684655.system.entry.js +16 -0
  774. package/dist/magma-components/p-2b73fee6.entry.js +1 -0
  775. package/dist/magma-components/p-2d5aadba.system.entry.js +7 -0
  776. package/dist/magma-components/p-2de17848.entry.js +1 -0
  777. package/dist/magma-components/p-34482514.entry.js +1 -0
  778. package/dist/magma-components/p-34c0890e.entry.js +1 -0
  779. package/dist/magma-components/p-3635eca6.system.entry.js +1 -0
  780. package/dist/magma-components/p-3b0c1202.entry.js +1 -0
  781. package/dist/magma-components/p-3d8e63a2.system.entry.js +63 -0
  782. package/dist/magma-components/p-3db23b5f.system.entry.js +16 -0
  783. package/dist/magma-components/p-3ec7d3ea.entry.js +1 -0
  784. package/dist/magma-components/p-3f7d3060.system.entry.js +42 -0
  785. package/dist/magma-components/p-40563e33.entry.js +1 -0
  786. package/dist/magma-components/p-41bf6f25.system.entry.js +81 -0
  787. package/dist/magma-components/p-421a630e.entry.js +1 -0
  788. package/dist/magma-components/p-4297da23.system.entry.js +1 -0
  789. package/dist/magma-components/p-4299b76b.system.entry.js +4 -0
  790. package/dist/magma-components/p-4543501c.entry.js +1 -0
  791. package/dist/magma-components/p-454c4774.entry.js +1 -0
  792. package/dist/magma-components/p-4616bc07.entry.js +1 -0
  793. package/dist/magma-components/p-46786d71.system.entry.js +14 -0
  794. package/dist/magma-components/p-470e5ac8.system.entry.js +1 -0
  795. package/dist/magma-components/p-481008e9.system.entry.js +13 -0
  796. package/dist/magma-components/p-48d37230.entry.js +1 -0
  797. package/dist/magma-components/p-4b3a8132.system.entry.js +13 -0
  798. package/dist/magma-components/p-4c8316a8.entry.js +1 -0
  799. package/dist/magma-components/p-4c95442e.entry.js +1 -0
  800. package/dist/magma-components/p-4e4bdbf8.entry.js +1 -0
  801. package/dist/magma-components/p-4e5ab0e4.system.entry.js +16 -0
  802. package/dist/magma-components/p-54b995c2.system.entry.js +4 -0
  803. package/dist/magma-components/p-56ad5bf2.entry.js +1 -0
  804. package/dist/magma-components/p-59de81ac.entry.js +1 -0
  805. package/dist/magma-components/p-5a7ead55.system.entry.js +37 -0
  806. package/dist/magma-components/p-5e43274a.system.entry.js +15 -0
  807. package/dist/magma-components/p-5f545f85.system.entry.js +1 -0
  808. package/dist/magma-components/p-61a5ac3d.system.entry.js +17 -0
  809. package/dist/magma-components/p-636cc471.entry.js +1 -0
  810. package/dist/magma-components/p-66ce2dee.entry.js +1 -0
  811. package/dist/magma-components/p-67d80d37.system.entry.js +1 -0
  812. package/dist/magma-components/p-6937f340.entry.js +1 -0
  813. package/dist/magma-components/p-69d1b815.entry.js +1 -0
  814. package/dist/magma-components/p-6b7e449f.entry.js +1 -0
  815. package/dist/magma-components/p-6c417ea1.system.entry.js +913 -0
  816. package/dist/magma-components/p-6cd7cfe3.entry.js +1 -0
  817. package/dist/magma-components/p-6ce60d59.entry.js +1 -0
  818. package/dist/magma-components/p-6cf760ea.system.entry.js +45 -0
  819. package/dist/magma-components/p-6dc27543.entry.js +1 -0
  820. package/dist/magma-components/p-6de37588.entry.js +1 -0
  821. package/dist/magma-components/p-6edc4f16.system.entry.js +14 -0
  822. package/dist/magma-components/p-6f6b5eb5.entry.js +1 -0
  823. package/dist/magma-components/p-7090184f.entry.js +1 -0
  824. package/dist/magma-components/p-716ad14c.entry.js +1 -0
  825. package/dist/magma-components/p-71804224.entry.js +1 -0
  826. package/dist/magma-components/p-735dc594.system.entry.js +1 -0
  827. package/dist/magma-components/p-739fdf76.system.entry.js +1 -0
  828. package/dist/magma-components/p-74b0902a.entry.js +1 -0
  829. package/dist/magma-components/p-7530a2f2.entry.js +1 -0
  830. package/dist/magma-components/p-75dd012a.system.entry.js +11 -0
  831. package/dist/magma-components/p-75fcf1a4.entry.js +1 -0
  832. package/dist/magma-components/p-76ae22d6.entry.js +1 -0
  833. package/dist/magma-components/p-78248693.entry.js +1 -0
  834. package/dist/magma-components/p-78fef00a.entry.js +1 -0
  835. package/dist/magma-components/p-7c0d202c.entry.js +1 -0
  836. package/dist/magma-components/p-7d317ff0.entry.js +8 -0
  837. package/dist/magma-components/p-7f2e3b74.system.entry.js +2838 -0
  838. package/dist/magma-components/p-7fc29447.entry.js +1 -0
  839. package/dist/magma-components/p-8103d4d4.system.entry.js +30 -0
  840. package/dist/magma-components/p-81b72b6e.entry.js +1 -0
  841. package/dist/magma-components/p-859ab5a2.entry.js +18 -0
  842. package/dist/magma-components/p-896ae0ee.entry.js +1 -0
  843. package/dist/magma-components/p-89a3bc7a.system.entry.js +16 -0
  844. package/dist/magma-components/p-8b7fa8d7.entry.js +1 -0
  845. package/dist/magma-components/p-8dff6606.system.entry.js +11 -0
  846. package/dist/magma-components/p-8e40eda3.system.entry.js +9 -0
  847. package/dist/magma-components/p-91b9d4e7.system.entry.js +4 -0
  848. package/dist/magma-components/p-92e1001f.entry.js +1 -0
  849. package/dist/magma-components/p-9378b373.system.entry.js +49 -0
  850. package/dist/magma-components/p-960dc9b5.system.entry.js +15 -0
  851. package/dist/magma-components/p-9626eaff.system.entry.js +134 -0
  852. package/dist/magma-components/p-9741d95e.system.entry.js +7 -0
  853. package/dist/magma-components/p-97ea9e6e.system.entry.js +68 -0
  854. package/dist/magma-components/p-9846fe89.system.entry.js +1 -0
  855. package/dist/magma-components/p-998721b9.system.entry.js +1 -0
  856. package/dist/magma-components/p-9a5296c0.system.entry.js +7 -0
  857. package/dist/magma-components/p-9b2ee3fe.entry.js +1 -0
  858. package/dist/magma-components/p-9be4a736.entry.js +1 -0
  859. package/dist/magma-components/p-9ca7932d.system.entry.js +8 -0
  860. package/dist/magma-components/p-9d86477d.system.entry.js +1 -0
  861. package/dist/magma-components/p-9d9a947b.entry.js +18 -0
  862. package/dist/magma-components/p-9e3bc553.system.entry.js +26 -0
  863. package/dist/magma-components/p-9e58467e.system.entry.js +10 -0
  864. package/dist/magma-components/p-9e9a1ebd.system.entry.js +15 -0
  865. package/dist/magma-components/p-A9TZf0Ii.js +1 -0
  866. package/dist/magma-components/p-BFnx_0hM.js +5 -0
  867. package/dist/magma-components/p-BJKToXNf.system.js +2733 -1
  868. package/dist/magma-components/p-BbMKuVem.js +1 -0
  869. package/dist/magma-components/p-C0o_l0td.js +1 -0
  870. package/dist/magma-components/p-C2FHijr2.system.js +231 -0
  871. package/dist/magma-components/p-CACEYk42.js +1 -0
  872. package/dist/magma-components/p-CBam2PI8.system.js +79 -0
  873. package/dist/magma-components/p-CDTiTqY0.system.js +58 -0
  874. package/dist/magma-components/p-CHAGzQT-.js +1 -0
  875. package/dist/magma-components/p-CI85vVs8.system.js +9 -0
  876. package/dist/magma-components/p-CnXBPjmc.system.js +5 -0
  877. package/dist/magma-components/p-DB8Rm54c.js +1 -0
  878. package/dist/magma-components/p-DIiEV39g.js +3 -0
  879. package/dist/magma-components/p-Dg8nxRUX.system.js +201 -0
  880. package/dist/magma-components/p-DmC-b-ZK.system.js +67 -0
  881. package/dist/magma-components/p-KRu9I7dw.js +1 -0
  882. package/dist/magma-components/p-LerCJgfP.system.js +5 -0
  883. package/dist/magma-components/p-MGv0i39Y.system.js +162 -0
  884. package/dist/magma-components/p-RJ5ZA1kY.system.js +23 -0
  885. package/dist/magma-components/p-a3279a73.system.entry.js +11 -0
  886. package/dist/magma-components/p-a3b0f586.entry.js +1 -0
  887. package/dist/magma-components/p-a3fc2ea4.system.entry.js +39 -0
  888. package/dist/magma-components/p-a5ac5e0b.entry.js +1 -0
  889. package/dist/magma-components/p-a8ec3080.system.entry.js +27 -0
  890. package/dist/magma-components/p-a906a02f.system.entry.js +16 -0
  891. package/dist/magma-components/p-a93b2a39.entry.js +1 -0
  892. package/dist/magma-components/p-aa267e7b.entry.js +1 -0
  893. package/dist/magma-components/p-ab9095ae.system.entry.js +4 -0
  894. package/dist/magma-components/p-ac544ab1.entry.js +1 -0
  895. package/dist/magma-components/p-ace198e9.entry.js +1 -0
  896. package/dist/magma-components/p-ad3983b2.entry.js +1 -0
  897. package/dist/magma-components/p-af41c8b8.system.entry.js +1 -0
  898. package/dist/magma-components/p-af45f0a5.system.entry.js +20 -0
  899. package/dist/magma-components/p-b23a6c83.entry.js +1 -0
  900. package/dist/magma-components/p-b3a3578c.entry.js +1 -0
  901. package/dist/magma-components/p-b49e0321.system.entry.js +1 -0
  902. package/dist/magma-components/p-b71e0d51.entry.js +1 -0
  903. package/dist/magma-components/p-b8d4a14e.entry.js +1 -0
  904. package/dist/magma-components/p-b9fecfd5.entry.js +1 -0
  905. package/dist/magma-components/p-ba035f90.entry.js +1 -0
  906. package/dist/magma-components/p-bc51d310.system.entry.js +1 -0
  907. package/dist/magma-components/p-bd490a8e.entry.js +1 -0
  908. package/dist/magma-components/p-be198039.system.entry.js +4 -0
  909. package/dist/magma-components/p-be692266.system.entry.js +13 -0
  910. package/dist/magma-components/p-bf7168b4.entry.js +1 -0
  911. package/dist/magma-components/p-bf84d9fa.entry.js +1 -0
  912. package/dist/magma-components/p-c1fb2eb7.entry.js +1 -0
  913. package/dist/magma-components/p-c4e58240.entry.js +1 -0
  914. package/dist/magma-components/p-c573de10.entry.js +1 -0
  915. package/dist/magma-components/p-c6be3db7.system.entry.js +1 -0
  916. package/dist/magma-components/p-c70d7159.entry.js +1 -0
  917. package/dist/magma-components/p-c7517884.system.entry.js +38 -0
  918. package/dist/magma-components/p-c9be79bd.entry.js +1 -0
  919. package/dist/magma-components/p-c9e12c2b.system.entry.js +7 -0
  920. package/dist/magma-components/p-cb6a1908.entry.js +1 -0
  921. package/dist/magma-components/p-cbd5aef4.system.entry.js +14 -0
  922. package/dist/magma-components/p-cd21137b.system.entry.js +1 -0
  923. package/dist/magma-components/p-cd5866c8.entry.js +1 -0
  924. package/dist/magma-components/p-ce0ecc75.system.entry.js +15 -0
  925. package/dist/magma-components/p-ce4e1a41.system.entry.js +1 -0
  926. package/dist/magma-components/p-d3116844.entry.js +1 -0
  927. package/dist/magma-components/p-d38165ed.system.entry.js +1 -0
  928. package/dist/magma-components/p-d3933a22.entry.js +1 -0
  929. package/dist/magma-components/p-d44c49d6.system.entry.js +8 -0
  930. package/dist/magma-components/p-d4a529ce.entry.js +1 -0
  931. package/dist/magma-components/p-d6d4aa1a.entry.js +1 -0
  932. package/dist/magma-components/p-d81e7100.system.entry.js +15 -0
  933. package/dist/magma-components/p-d8c27f4b.entry.js +1 -0
  934. package/dist/magma-components/p-d921d876.entry.js +1 -0
  935. package/dist/magma-components/p-da1ac3e1.entry.js +1 -0
  936. package/dist/magma-components/p-ddbdce09.entry.js +1 -0
  937. package/dist/magma-components/p-de6bc3c8.entry.js +1 -0
  938. package/dist/magma-components/p-df2b7607.system.entry.js +4 -0
  939. package/dist/magma-components/p-e05d2df8.system.entry.js +4 -0
  940. package/dist/magma-components/p-e0b2ef8f.system.entry.js +1 -0
  941. package/dist/magma-components/p-e0c50a2d.entry.js +1 -0
  942. package/dist/magma-components/p-e1277efe.system.entry.js +1 -0
  943. package/dist/magma-components/p-e1e6dd97.entry.js +1 -0
  944. package/dist/magma-components/p-e2f7a9bd.system.entry.js +1 -0
  945. package/dist/magma-components/p-e3e893c4.entry.js +1 -0
  946. package/dist/magma-components/p-e4868ade.entry.js +1 -0
  947. package/dist/magma-components/p-e5c6f9a9.system.entry.js +7 -0
  948. package/dist/magma-components/p-e5da7036.entry.js +1 -0
  949. package/dist/magma-components/p-e6dccab5.system.entry.js +1 -0
  950. package/dist/magma-components/p-ec59ec9a.entry.js +1 -0
  951. package/dist/magma-components/p-eddcef53.system.entry.js +1 -0
  952. package/dist/magma-components/p-eed00e7f.system.entry.js +1 -0
  953. package/dist/magma-components/p-ef8cb401.entry.js +1 -0
  954. package/dist/magma-components/p-efe8d359.entry.js +1 -0
  955. package/dist/magma-components/p-f070a5b5.system.entry.js +11 -0
  956. package/dist/magma-components/p-f0a168f4.system.entry.js +13 -0
  957. package/dist/magma-components/p-f1462410.system.entry.js +9 -0
  958. package/dist/magma-components/p-f23d4974.entry.js +1 -0
  959. package/dist/magma-components/p-f542246f.system.entry.js +1 -0
  960. package/dist/magma-components/p-f5c680dd.entry.js +1 -0
  961. package/dist/magma-components/p-f60c6e8e.system.entry.js +40 -0
  962. package/dist/magma-components/p-f8369939.entry.js +1 -0
  963. package/dist/magma-components/p-f97ede3e.system.entry.js +19 -0
  964. package/dist/magma-components/p-f97ff5b2.entry.js +1 -0
  965. package/dist/magma-components/p-fe1662e8.system.entry.js +28 -0
  966. package/dist/magma-components/p-ff133cbd.entry.js +1 -0
  967. package/dist/magma-components/p-fff44704.entry.js +1 -0
  968. package/dist/magma-components/p-opeIIa7t.system.js +7 -0
  969. package/dist/stats.json +5337 -7124
  970. package/dist/types/common/date.d.ts +5 -1
  971. package/dist/types/common/floating-controller.d.ts +56 -2
  972. package/dist/types/common/form.d.ts +10 -0
  973. package/dist/types/common/locale.d.ts +0 -5
  974. package/dist/types/common/preference.d.ts +48 -16
  975. package/dist/types/common/slot.d.ts +11 -1
  976. package/dist/types/common/yugop/random-text.d.ts +8 -0
  977. package/dist/types/components/mds-accordion/mds-accordion.d.ts +0 -8
  978. package/dist/types/components/mds-accordion-item/mds-accordion-item.d.ts +0 -10
  979. package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +0 -4
  980. package/dist/types/components/mds-author/mds-author.d.ts +2 -1
  981. package/dist/types/components/mds-avatar/mds-avatar.d.ts +0 -6
  982. package/dist/types/components/mds-badge/mds-badge.d.ts +0 -10
  983. package/dist/types/components/mds-banner/mds-banner.d.ts +2 -16
  984. package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +0 -6
  985. package/dist/types/components/mds-button/mds-button.d.ts +0 -7
  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 +27 -18
  988. package/dist/types/components/mds-card/mds-card.d.ts +0 -8
  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 -15
  991. package/dist/types/components/mds-details/mds-details.d.ts +0 -5
  992. package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +33 -12
  993. package/dist/types/components/mds-emoji/mds-emoji.d.ts +9 -2
  994. package/dist/types/components/mds-entity/mds-entity.d.ts +3 -10
  995. package/dist/types/components/mds-file/mds-file.d.ts +0 -15
  996. package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +0 -15
  997. package/dist/types/components/mds-filter/mds-filter.d.ts +10 -10
  998. package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +0 -9
  999. package/dist/types/components/mds-header/mds-header.d.ts +0 -7
  1000. package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +2 -11
  1001. package/dist/types/components/mds-hr/mds-hr.d.ts +0 -6
  1002. package/dist/types/components/mds-img/mds-img.d.ts +1 -7
  1003. package/dist/types/components/mds-input/mds-input.d.ts +7 -15
  1004. package/dist/types/components/mds-input-date/mds-input-date.d.ts +9 -14
  1005. package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +9 -12
  1006. package/dist/types/components/mds-input-field/mds-input-field.d.ts +3 -0
  1007. package/dist/types/components/mds-input-otp/mds-input-otp.d.ts +7 -0
  1008. package/dist/types/components/mds-input-range/mds-input-range.d.ts +0 -10
  1009. package/dist/types/components/mds-input-select/mds-input-select.d.ts +5 -14
  1010. package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +0 -11
  1011. package/dist/types/components/mds-input-tip/mds-input-tip.d.ts +0 -4
  1012. package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +0 -13
  1013. package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +2 -7
  1014. package/dist/types/components/mds-input-upload/meta/types.d.ts +1 -1
  1015. package/dist/types/components/mds-keyboard/mds-keyboard.d.ts +0 -11
  1016. package/dist/types/components/mds-keyboard-key/mds-keyboard-key.d.ts +0 -7
  1017. package/dist/types/components/mds-keyboard-key/meta/icons.d.ts +1 -1
  1018. package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +8 -10
  1019. package/dist/types/components/mds-label/mds-label.d.ts +0 -12
  1020. package/dist/types/components/mds-list-item/mds-list-item.d.ts +0 -4
  1021. package/dist/types/components/mds-mention/mds-mention.d.ts +13 -0
  1022. package/dist/types/components/mds-mention/meta/interface.d.ts +5 -0
  1023. package/dist/types/components/mds-modal/mds-modal.d.ts +17 -16
  1024. package/dist/types/components/mds-note/mds-note.d.ts +0 -15
  1025. package/dist/types/components/mds-notification/mds-notification.d.ts +0 -3
  1026. package/dist/types/components/mds-paginator/mds-paginator.d.ts +9 -11
  1027. package/dist/types/components/mds-paginator-item/mds-paginator-item.d.ts +0 -7
  1028. package/dist/types/components/mds-policy-ai/mds-policy-ai.d.ts +0 -7
  1029. package/dist/types/components/mds-pref/mds-pref.d.ts +12 -8
  1030. package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +0 -10
  1031. package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +0 -10
  1032. package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +0 -10
  1033. package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +3 -9
  1034. package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +3 -7
  1035. package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +62 -0
  1036. package/dist/types/components/mds-pref-mode/meta/dictionary.d.ts +3 -0
  1037. package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +63 -45
  1038. package/dist/types/components/mds-pref-theme/meta/dictionary.d.ts +2 -3
  1039. package/dist/types/components/mds-pref-theme-item/mds-pref-theme-item.d.ts +28 -0
  1040. package/dist/types/components/mds-price-table-features/mds-price-table-features.d.ts +0 -10
  1041. package/dist/types/components/mds-price-table-features-cell/mds-price-table-features-cell.d.ts +0 -10
  1042. package/dist/types/components/mds-price-table-features-row/mds-price-table-features-row.d.ts +0 -10
  1043. package/dist/types/components/mds-price-table-list/mds-price-table-list.d.ts +0 -10
  1044. package/dist/types/components/mds-progress/mds-progress.d.ts +0 -10
  1045. package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +0 -6
  1046. package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +3 -17
  1047. package/dist/types/components/mds-quote/mds-quote.d.ts +0 -4
  1048. package/dist/types/components/mds-radial-progress/mds-radial-progress.d.ts +0 -1
  1049. package/dist/types/components/mds-separator/mds-separator.d.ts +0 -8
  1050. package/dist/types/components/mds-spinner/mds-spinner.d.ts +0 -4
  1051. package/dist/types/components/mds-status-bar/mds-status-bar.d.ts +0 -10
  1052. package/dist/types/components/mds-stepper-bar/mds-stepper-bar.d.ts +10 -0
  1053. package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +0 -9
  1054. package/dist/types/components/mds-tab/mds-tab.d.ts +0 -9
  1055. package/dist/types/components/mds-tab-bar/mds-tab-bar.d.ts +0 -10
  1056. package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +0 -10
  1057. package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +5 -8
  1058. package/dist/types/components/mds-table/mds-table.d.ts +10 -14
  1059. package/dist/types/components/mds-table-body/mds-table-body.d.ts +0 -4
  1060. package/dist/types/components/mds-table-cell/mds-table-cell.d.ts +0 -4
  1061. package/dist/types/components/mds-table-footer/mds-table-footer.d.ts +0 -4
  1062. package/dist/types/components/mds-table-header/mds-table-header.d.ts +0 -9
  1063. package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +0 -4
  1064. package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -10
  1065. package/dist/types/components/mds-text/mds-text.d.ts +0 -4
  1066. package/dist/types/components/mds-toast/mds-toast.d.ts +2 -11
  1067. package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +0 -9
  1068. package/dist/types/components/mds-tree-item/mds-tree-item.d.ts +1 -5
  1069. package/dist/types/components/mds-url-view/mds-url-view.d.ts +0 -15
  1070. package/dist/types/components/mds-usage/mds-usage.d.ts +0 -16
  1071. package/dist/types/components/mds-video-wall/mds-video-wall.d.ts +2 -1
  1072. package/dist/types/components/mds-zero/mds-zero.d.ts +0 -10
  1073. package/dist/types/components.d.ts +243 -239
  1074. package/dist/types/event-detail/preference.d.ts +2 -2
  1075. package/dist/types/event-detail/theme.d.ts +5 -0
  1076. package/dist/types/stencil-public-runtime.d.ts +12 -0
  1077. package/dist/types/type/preference.d.ts +16 -3
  1078. package/loader/index.d.ts +1 -1
  1079. package/package.json +58 -64
  1080. package/dist/cjs/date-dnDGaLCn.js +0 -16
  1081. package/dist/cjs/floating-controller-CXEVR1wX.js +0 -203
  1082. package/dist/cjs/floating-ui.dom-DW-02Mib.js +0 -1703
  1083. package/dist/cjs/index-CNuKb6Lv.js +0 -2896
  1084. package/dist/cjs/keyboard-manager-BXKT5TGW.js +0 -52
  1085. package/dist/cjs/locale-oGW3SvGJ.js +0 -837
  1086. package/dist/cjs/mds-pref-theme-variant-item.cjs.entry.js +0 -63
  1087. package/dist/cjs/mds-pref-theme-variant.cjs.entry.js +0 -149
  1088. package/dist/cjs/preference-BdpIXWLP.js +0 -81
  1089. package/dist/cjs/slot-CI0KpgtY.js +0 -52
  1090. package/dist/collection/components/mds-accordion/test/mds-accordion.stories.js +0 -39
  1091. package/dist/collection/components/mds-accordion-item/test/mds-accordion-item.stories.js +0 -35
  1092. package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +0 -51
  1093. package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js +0 -52
  1094. package/dist/collection/components/mds-author/test/mds-author.stories.js +0 -12
  1095. package/dist/collection/components/mds-avatar/test/mds-avatar.stories.js +0 -71
  1096. package/dist/collection/components/mds-avatar-stack/test/mds-avatar-stack.stories.js +0 -34
  1097. package/dist/collection/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.js +0 -60
  1098. package/dist/collection/components/mds-badge/test/mds-badge.stories.js +0 -46
  1099. package/dist/collection/components/mds-banner/test/mds-banner.stories.js +0 -106
  1100. package/dist/collection/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.js +0 -64
  1101. package/dist/collection/components/mds-bibliography/test/mds-bibliography.stories.js +0 -104
  1102. package/dist/collection/components/mds-breadcrumb/test/mds-breadcrumb.stories.js +0 -14
  1103. package/dist/collection/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.js +0 -24
  1104. package/dist/collection/components/mds-button/test/mds-button.stories.js +0 -346
  1105. package/dist/collection/components/mds-button-dropdown/test/mds-button-dropdown.stories.js +0 -73
  1106. package/dist/collection/components/mds-button-group/test/mds-button-group.stories.js +0 -12
  1107. package/dist/collection/components/mds-calendar/test/mds-calendar.stories.js +0 -24
  1108. package/dist/collection/components/mds-card/test/mds-card.stories.js +0 -82
  1109. package/dist/collection/components/mds-chip/test/mds-chip.stories.js +0 -120
  1110. package/dist/collection/components/mds-details/test/mds-details.stories.js +0 -20
  1111. package/dist/collection/components/mds-dropdown/test/mds-dropdown.stories.js +0 -256
  1112. package/dist/collection/components/mds-emoji/test/mds-emoji.stories.js +0 -87
  1113. package/dist/collection/components/mds-entity/test/mds-entity.stories.js +0 -101
  1114. package/dist/collection/components/mds-file/test/mds-file.stories.js +0 -73
  1115. package/dist/collection/components/mds-file-preview/test/mds-file-preview.stories.js +0 -154
  1116. package/dist/collection/components/mds-filter/test/mds-filter.stories.js +0 -49
  1117. package/dist/collection/components/mds-filter-item/test/mds-filter-item.stories.js +0 -36
  1118. package/dist/collection/components/mds-header/test/mds-header.stories.js +0 -71
  1119. package/dist/collection/components/mds-header-bar/test/mds-header-bar.stories.js +0 -21
  1120. package/dist/collection/components/mds-help/test/mds-help.stories.js +0 -23
  1121. package/dist/collection/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.js +0 -48
  1122. package/dist/collection/components/mds-hr/test/mds-hr.stories.js +0 -14
  1123. package/dist/collection/components/mds-icon/test/mds-icon.stories.js +0 -76
  1124. package/dist/collection/components/mds-img/test/mds-img-accessibility.stories.js +0 -34
  1125. package/dist/collection/components/mds-img/test/mds-img.stories.js +0 -62
  1126. package/dist/collection/components/mds-input/test/mds-input.stories.js +0 -302
  1127. package/dist/collection/components/mds-input-date/test/mds-input-date.stories.js +0 -70
  1128. package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +0 -109
  1129. package/dist/collection/components/mds-input-field/test/mds-input-field.stories.js +0 -90
  1130. package/dist/collection/components/mds-input-otp/test/mds-input-otp.stories.js +0 -68
  1131. package/dist/collection/components/mds-input-range/test/mds-input-range.stories.js +0 -92
  1132. package/dist/collection/components/mds-input-select/test/mds-input-select.stories.js +0 -97
  1133. package/dist/collection/components/mds-input-switch/test/mds-input-switch.stories.js +0 -169
  1134. package/dist/collection/components/mds-input-tip/test/mds-input-tip.stories.js +0 -20
  1135. package/dist/collection/components/mds-input-tip-item/test/mds-input-tip.stories.js +0 -20
  1136. package/dist/collection/components/mds-input-upload/test/mds-input-upload.stories.js +0 -48
  1137. package/dist/collection/components/mds-keyboard/test/mds-keyboard.stories.js +0 -30
  1138. package/dist/collection/components/mds-keyboard-key/test/mds-keyboard-key.stories.js +0 -20
  1139. package/dist/collection/components/mds-kpi/test/mds-kpi.stories.js +0 -22
  1140. package/dist/collection/components/mds-kpi-item/test/mds-kpi-item.stories.js +0 -34
  1141. package/dist/collection/components/mds-label/test/mds-label.stories.js +0 -72
  1142. package/dist/collection/components/mds-list/test/mds-list.stories.js +0 -8
  1143. package/dist/collection/components/mds-list-item/test/mds-list-item.stories.js +0 -29
  1144. package/dist/collection/components/mds-mention/test/mds-mention.stories.js +0 -31
  1145. package/dist/collection/components/mds-modal/test/mds-modal.stories.js +0 -388
  1146. package/dist/collection/components/mds-note/test/mds-note.stories.js +0 -31
  1147. package/dist/collection/components/mds-notification/test/mds-notification.stories.js +0 -64
  1148. package/dist/collection/components/mds-paginator/test/mds-paginator.stories.js +0 -28
  1149. package/dist/collection/components/mds-policy-ai/test/mds-policy.stories.js +0 -82
  1150. package/dist/collection/components/mds-pref/test/mds-pref.stories.js +0 -26
  1151. package/dist/collection/components/mds-pref-animation/test/mds-pref-animation.stories.js +0 -18
  1152. package/dist/collection/components/mds-pref-consumption/test/mds-pref-consumption.stories.js +0 -18
  1153. package/dist/collection/components/mds-pref-contrast/test/mds-pref-contrast.stories.js +0 -18
  1154. package/dist/collection/components/mds-pref-language/test/mds-pref-language.stories.js +0 -18
  1155. package/dist/collection/components/mds-pref-theme/test/mds-pref-theme.stories.js +0 -24
  1156. package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.css +0 -40
  1157. package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.js +0 -288
  1158. package/dist/collection/components/mds-pref-theme-variant/meta/dictionary.js +0 -2
  1159. package/dist/collection/components/mds-pref-theme-variant/test/mds-pref-theme-variant.stories.js +0 -27
  1160. package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.css +0 -100
  1161. package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.js +0 -198
  1162. package/dist/collection/components/mds-price-table/test/mds-price-table.stories.js +0 -11
  1163. package/dist/collection/components/mds-price-table-features/test/mds-price-table-features.stories.js +0 -11
  1164. package/dist/collection/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.js +0 -11
  1165. package/dist/collection/components/mds-price-table-header/test/mds-price-table-header.stories.js +0 -8
  1166. package/dist/collection/components/mds-price-table-list/test/mds-price-table-list.stories.js +0 -12
  1167. package/dist/collection/components/mds-progress/test/mds-progress.stories.js +0 -66
  1168. package/dist/collection/components/mds-push-notification/test/mds-push-notification.stories.js +0 -104
  1169. package/dist/collection/components/mds-push-notification-item/test/mds-push-notification-item.stories.js +0 -194
  1170. package/dist/collection/components/mds-quote/test/mds-quote.stories.js +0 -33
  1171. package/dist/collection/components/mds-radial-menu/test/mds-radial-menu.stories.js +0 -98
  1172. package/dist/collection/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.js +0 -37
  1173. package/dist/collection/components/mds-radial-progress/test/mds-radial-progress.stories.js +0 -45
  1174. package/dist/collection/components/mds-separator/test/mds-separator.stories.js +0 -8
  1175. package/dist/collection/components/mds-spinner/test/mds-spinner.stories.js +0 -20
  1176. package/dist/collection/components/mds-status-bar/test/mds-status-bar.stories.js +0 -80
  1177. package/dist/collection/components/mds-stepper-bar/test/mds-stepper-bar.stories.js +0 -100
  1178. package/dist/collection/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.js +0 -70
  1179. package/dist/collection/components/mds-tab/test/mds-tab.stories.js +0 -152
  1180. package/dist/collection/components/mds-tab-bar/test/mds-tab-bar.stories.js +0 -8
  1181. package/dist/collection/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.js +0 -21
  1182. package/dist/collection/components/mds-tab-item/test/mds-tab-item.stories.js +0 -54
  1183. package/dist/collection/components/mds-table/test/mds-table.stories.js +0 -107
  1184. package/dist/collection/components/mds-text/test/mds-text.stories.js +0 -183
  1185. package/dist/collection/components/mds-toast/test/mds-toast.stories.js +0 -52
  1186. package/dist/collection/components/mds-tooltip/test/mds-tooltip.stories.js +0 -155
  1187. package/dist/collection/components/mds-tree/test/mds-tree-apk.stories.js +0 -66
  1188. package/dist/collection/components/mds-tree/test/mds-tree.stories.js +0 -83
  1189. package/dist/collection/components/mds-tree-item/test/mds-tree-item.stories.js +0 -71
  1190. package/dist/collection/components/mds-url-view/test/mds-url-view.stories.js +0 -75
  1191. package/dist/collection/components/mds-usage/test/mds-usage.stories.js +0 -33
  1192. package/dist/collection/components/mds-video-wall/test/mds-video-wall.stories.js +0 -104
  1193. package/dist/collection/components/mds-zero/test/mds-zero.stories.js +0 -8
  1194. package/dist/collection/storybook/box-shadows.stories.js +0 -53
  1195. package/dist/collection/storybook/color-scale.stories.js +0 -465
  1196. package/dist/collection/storybook/components-preview.stories.js +0 -36
  1197. package/dist/collection/storybook/example-page.stories.js +0 -10
  1198. package/dist/collection/storybook/fouc-hydrated.stories.js +0 -20
  1199. package/dist/collection/storybook/input-form.stories.js +0 -40
  1200. package/dist/collection/storybook/same-childrend-slot-names.stories.js +0 -10
  1201. package/dist/collection/test/file.js +0 -53
  1202. package/dist/collection/test/mock.js +0 -19
  1203. package/dist/components/date.js +0 -1
  1204. package/dist/components/floating-controller.js +0 -1
  1205. package/dist/components/floating-ui.dom.js +0 -1
  1206. package/dist/components/icons-set.service.js +0 -1
  1207. package/dist/components/keyboard-manager.js +0 -1
  1208. package/dist/components/locale.it.js +0 -1
  1209. package/dist/components/locale.js +0 -5
  1210. package/dist/components/mds-avatar-stack-item2.js +0 -1
  1211. package/dist/components/mds-avatar2.js +0 -1
  1212. package/dist/components/mds-badge2.js +0 -1
  1213. package/dist/components/mds-banner2.js +0 -1
  1214. package/dist/components/mds-button2.js +0 -1
  1215. package/dist/components/mds-calendar-cell2.js +0 -1
  1216. package/dist/components/mds-calendar2.js +0 -1
  1217. package/dist/components/mds-chip2.js +0 -1
  1218. package/dist/components/mds-dropdown2.js +0 -1
  1219. package/dist/components/mds-file-preview2.js +0 -8
  1220. package/dist/components/mds-filter-item2.js +0 -1
  1221. package/dist/components/mds-help2.js +0 -1
  1222. package/dist/components/mds-icon2.js +0 -1
  1223. package/dist/components/mds-img2.js +0 -1
  1224. package/dist/components/mds-input-switch2.js +0 -1
  1225. package/dist/components/mds-input-tip-item2.js +0 -1
  1226. package/dist/components/mds-input-tip2.js +0 -1
  1227. package/dist/components/mds-input2.js +0 -1
  1228. package/dist/components/mds-modal2.js +0 -1
  1229. package/dist/components/mds-paginator-item2.js +0 -1
  1230. package/dist/components/mds-pref-theme-variant-item.d.ts +0 -11
  1231. package/dist/components/mds-pref-theme-variant-item.js +0 -1
  1232. package/dist/components/mds-pref-theme-variant.d.ts +0 -11
  1233. package/dist/components/mds-pref-theme-variant.js +0 -1
  1234. package/dist/components/mds-progress2.js +0 -1
  1235. package/dist/components/mds-radial-progress2.js +0 -1
  1236. package/dist/components/mds-separator2.js +0 -1
  1237. package/dist/components/mds-spinner2.js +0 -1
  1238. package/dist/components/mds-tab-item2.js +0 -1
  1239. package/dist/components/mds-tab2.js +0 -1
  1240. package/dist/components/mds-table-cell2.js +0 -1
  1241. package/dist/components/mds-table-header-cell2.js +0 -1
  1242. package/dist/components/mds-text2.js +0 -1
  1243. package/dist/components/mds-tooltip2.js +0 -1
  1244. package/dist/components/preference.js +0 -1
  1245. package/dist/components/slot.js +0 -1
  1246. package/dist/esm/date-C1oxPa_J.js +0 -14
  1247. package/dist/esm/floating-controller-D5eXU5Mk.js +0 -200
  1248. package/dist/esm/floating-ui.dom-8RYXTPXs.js +0 -1695
  1249. package/dist/esm/index-CAd5312P.js +0 -2869
  1250. package/dist/esm/keyboard-manager-BudfaWhu.js +0 -50
  1251. package/dist/esm/locale-a4oAcjYG.js +0 -835
  1252. package/dist/esm/mds-pref-theme-variant-item.entry.js +0 -61
  1253. package/dist/esm/mds-pref-theme-variant.entry.js +0 -147
  1254. package/dist/esm/preference-fMwnXhio.js +0 -79
  1255. package/dist/esm/slot-ttrRC6OE.js +0 -48
  1256. package/dist/esm-es5/date-C1oxPa_J.js +0 -1
  1257. package/dist/esm-es5/floating-controller-D5eXU5Mk.js +0 -1
  1258. package/dist/esm-es5/floating-ui.dom-8RYXTPXs.js +0 -1
  1259. package/dist/esm-es5/index-CAd5312P.js +0 -1
  1260. package/dist/esm-es5/keyboard-manager-BudfaWhu.js +0 -1
  1261. package/dist/esm-es5/locale-a4oAcjYG.js +0 -5
  1262. package/dist/esm-es5/mds-pref-theme-variant-item.entry.js +0 -1
  1263. package/dist/esm-es5/mds-pref-theme-variant.entry.js +0 -1
  1264. package/dist/esm-es5/preference-fMwnXhio.js +0 -1
  1265. package/dist/esm-es5/slot-ttrRC6OE.js +0 -1
  1266. package/dist/magma-components/p-0105d7c7.entry.js +0 -8
  1267. package/dist/magma-components/p-022defe8.entry.js +0 -1
  1268. package/dist/magma-components/p-02d858d0.entry.js +0 -1
  1269. package/dist/magma-components/p-0607a2b3.entry.js +0 -1
  1270. package/dist/magma-components/p-0af4d0ef.entry.js +0 -1
  1271. package/dist/magma-components/p-0b91aae4.entry.js +0 -1
  1272. package/dist/magma-components/p-0bb29dbd.system.entry.js +0 -1
  1273. package/dist/magma-components/p-0c1a5df0.entry.js +0 -1
  1274. package/dist/magma-components/p-0e986d85.entry.js +0 -18
  1275. package/dist/magma-components/p-0ea42813.entry.js +0 -1
  1276. package/dist/magma-components/p-0fe5aeaf.system.entry.js +0 -1
  1277. package/dist/magma-components/p-10ddec99.system.entry.js +0 -1
  1278. package/dist/magma-components/p-11567740.entry.js +0 -1
  1279. package/dist/magma-components/p-116238cf.system.entry.js +0 -1
  1280. package/dist/magma-components/p-1239667c.system.entry.js +0 -1
  1281. package/dist/magma-components/p-1518fda3.system.entry.js +0 -1
  1282. package/dist/magma-components/p-16c94506.system.entry.js +0 -1
  1283. package/dist/magma-components/p-18823bfc.system.entry.js +0 -1
  1284. package/dist/magma-components/p-188e94ef.system.entry.js +0 -1
  1285. package/dist/magma-components/p-19446c9e.entry.js +0 -1
  1286. package/dist/magma-components/p-1a73c7b0.system.entry.js +0 -1
  1287. package/dist/magma-components/p-1ad03ee9.entry.js +0 -1
  1288. package/dist/magma-components/p-1c4038f7.system.entry.js +0 -1
  1289. package/dist/magma-components/p-2035564c.system.entry.js +0 -1
  1290. package/dist/magma-components/p-2128ce5a.system.entry.js +0 -1
  1291. package/dist/magma-components/p-21ee64ec.entry.js +0 -1
  1292. package/dist/magma-components/p-224d2f55.entry.js +0 -1
  1293. package/dist/magma-components/p-23791e85.system.entry.js +0 -1
  1294. package/dist/magma-components/p-248c1b2c.system.entry.js +0 -1
  1295. package/dist/magma-components/p-249b80a5.entry.js +0 -1
  1296. package/dist/magma-components/p-262daf4f.entry.js +0 -1
  1297. package/dist/magma-components/p-288ce251.entry.js +0 -1
  1298. package/dist/magma-components/p-2a804b82.entry.js +0 -1
  1299. package/dist/magma-components/p-2aff9851.system.entry.js +0 -1
  1300. package/dist/magma-components/p-2b0667f6.system.entry.js +0 -1
  1301. package/dist/magma-components/p-2bd03b3d.system.entry.js +0 -1
  1302. package/dist/magma-components/p-2bfa7ed9.system.entry.js +0 -1
  1303. package/dist/magma-components/p-2c6c80e8.entry.js +0 -1
  1304. package/dist/magma-components/p-2e88e014.system.entry.js +0 -1
  1305. package/dist/magma-components/p-2f5cc981.system.entry.js +0 -1
  1306. package/dist/magma-components/p-31403b12.entry.js +0 -1
  1307. package/dist/magma-components/p-31616d0b.entry.js +0 -1
  1308. package/dist/magma-components/p-33b03c17.system.entry.js +0 -1
  1309. package/dist/magma-components/p-353f30cc.system.entry.js +0 -1
  1310. package/dist/magma-components/p-35482f9d.system.entry.js +0 -1
  1311. package/dist/magma-components/p-35b5889a.system.entry.js +0 -1
  1312. package/dist/magma-components/p-36d9d329.system.entry.js +0 -1
  1313. package/dist/magma-components/p-36fd1ed7.system.entry.js +0 -1
  1314. package/dist/magma-components/p-377c94ee.system.entry.js +0 -1
  1315. package/dist/magma-components/p-385f395d.system.entry.js +0 -1
  1316. package/dist/magma-components/p-39c09a42.system.entry.js +0 -1
  1317. package/dist/magma-components/p-3_AKUQtJ.system.js +0 -1
  1318. package/dist/magma-components/p-3c306ed0.system.entry.js +0 -1
  1319. package/dist/magma-components/p-3de6fa18.entry.js +0 -1
  1320. package/dist/magma-components/p-41da539f.entry.js +0 -1
  1321. package/dist/magma-components/p-422bb9e2.system.entry.js +0 -1
  1322. package/dist/magma-components/p-447c2d1b.entry.js +0 -1
  1323. package/dist/magma-components/p-44e2965d.entry.js +0 -1
  1324. package/dist/magma-components/p-46266f27.entry.js +0 -1
  1325. package/dist/magma-components/p-4630472f.entry.js +0 -1
  1326. package/dist/magma-components/p-4671336c.entry.js +0 -1
  1327. package/dist/magma-components/p-4803d24f.system.entry.js +0 -1
  1328. package/dist/magma-components/p-4a929c1c.entry.js +0 -1
  1329. package/dist/magma-components/p-4bc7756a.system.entry.js +0 -1
  1330. package/dist/magma-components/p-4f8ae676.system.entry.js +0 -1
  1331. package/dist/magma-components/p-50c922ad.system.entry.js +0 -1
  1332. package/dist/magma-components/p-50cdb70c.system.entry.js +0 -1
  1333. package/dist/magma-components/p-52c10dbf.system.entry.js +0 -1
  1334. package/dist/magma-components/p-52e35c13.system.entry.js +0 -1
  1335. package/dist/magma-components/p-56a8f1d0.system.entry.js +0 -1
  1336. package/dist/magma-components/p-5724212b.entry.js +0 -1
  1337. package/dist/magma-components/p-5be1c273.entry.js +0 -1
  1338. package/dist/magma-components/p-5d05fa1a.entry.js +0 -1
  1339. package/dist/magma-components/p-5de4bf4f.entry.js +0 -1
  1340. package/dist/magma-components/p-5e626696.entry.js +0 -1
  1341. package/dist/magma-components/p-5f1532c0.system.entry.js +0 -1
  1342. package/dist/magma-components/p-5fe8c814.entry.js +0 -1
  1343. package/dist/magma-components/p-60e8812c.system.entry.js +0 -17
  1344. package/dist/magma-components/p-611fa0a4.entry.js +0 -1
  1345. package/dist/magma-components/p-61fefe1b.system.entry.js +0 -1
  1346. package/dist/magma-components/p-62c9216f.system.entry.js +0 -1
  1347. package/dist/magma-components/p-652b4e43.entry.js +0 -1
  1348. package/dist/magma-components/p-6a92f533.entry.js +0 -1
  1349. package/dist/magma-components/p-6b3569a0.entry.js +0 -1
  1350. package/dist/magma-components/p-6b9175f1.system.entry.js +0 -1
  1351. package/dist/magma-components/p-6ecfec17.entry.js +0 -1
  1352. package/dist/magma-components/p-6ed096d3.system.entry.js +0 -1
  1353. package/dist/magma-components/p-6ee86191.entry.js +0 -1
  1354. package/dist/magma-components/p-70719b58.entry.js +0 -1
  1355. package/dist/magma-components/p-70e1a436.entry.js +0 -1
  1356. package/dist/magma-components/p-725d9e09.entry.js +0 -1
  1357. package/dist/magma-components/p-726a76f0.entry.js +0 -1
  1358. package/dist/magma-components/p-72d91c6f.system.entry.js +0 -1
  1359. package/dist/magma-components/p-73926a10.entry.js +0 -1
  1360. package/dist/magma-components/p-7499262d.system.entry.js +0 -1
  1361. package/dist/magma-components/p-750214a3.entry.js +0 -1
  1362. package/dist/magma-components/p-7590a160.entry.js +0 -1
  1363. package/dist/magma-components/p-75fa7e6f.system.entry.js +0 -1
  1364. package/dist/magma-components/p-765447d4.system.entry.js +0 -1
  1365. package/dist/magma-components/p-76cb480d.entry.js +0 -1
  1366. package/dist/magma-components/p-79e12ac8.entry.js +0 -1
  1367. package/dist/magma-components/p-7b4b9b88.system.entry.js +0 -1
  1368. package/dist/magma-components/p-7c464f28.entry.js +0 -1
  1369. package/dist/magma-components/p-7d338f59.system.entry.js +0 -1
  1370. package/dist/magma-components/p-81e16f90.system.entry.js +0 -1
  1371. package/dist/magma-components/p-82c6cdb9.system.entry.js +0 -1
  1372. package/dist/magma-components/p-83b01f8e.system.entry.js +0 -1
  1373. package/dist/magma-components/p-8546f46f.system.entry.js +0 -1
  1374. package/dist/magma-components/p-85a2d99d.entry.js +0 -1
  1375. package/dist/magma-components/p-8620f425.entry.js +0 -1
  1376. package/dist/magma-components/p-89581b08.system.entry.js +0 -1
  1377. package/dist/magma-components/p-8964a9fe.entry.js +0 -1
  1378. package/dist/magma-components/p-899cd759.entry.js +0 -1
  1379. package/dist/magma-components/p-8RYXTPXs.js +0 -1
  1380. package/dist/magma-components/p-8b2408b2.entry.js +0 -1
  1381. package/dist/magma-components/p-8b9f6896.entry.js +0 -1
  1382. package/dist/magma-components/p-8bde0c42.entry.js +0 -1
  1383. package/dist/magma-components/p-8d5955ca.system.entry.js +0 -1
  1384. package/dist/magma-components/p-91a1d3d5.entry.js +0 -1
  1385. package/dist/magma-components/p-93538408.system.entry.js +0 -1
  1386. package/dist/magma-components/p-94ff105b.system.entry.js +0 -1
  1387. package/dist/magma-components/p-96f7ec63.entry.js +0 -1
  1388. package/dist/magma-components/p-97144490.entry.js +0 -1
  1389. package/dist/magma-components/p-999b0698.system.entry.js +0 -1
  1390. package/dist/magma-components/p-9e533765.system.entry.js +0 -18
  1391. package/dist/magma-components/p-BMAK4u5Y.system.js +0 -1
  1392. package/dist/magma-components/p-Bh89IjzU.system.js +0 -1
  1393. package/dist/magma-components/p-BudfaWhu.js +0 -1
  1394. package/dist/magma-components/p-C1oxPa_J.js +0 -1
  1395. package/dist/magma-components/p-CAd5312P.js +0 -2
  1396. package/dist/magma-components/p-CJPnuGyH.system.js +0 -1
  1397. package/dist/magma-components/p-DI5DWqw4.system.js +0 -2
  1398. package/dist/magma-components/p-DTZViJWJ.system.js +0 -1
  1399. package/dist/magma-components/p-DcKeJ0td.system.js +0 -6
  1400. package/dist/magma-components/p-DssKRrAV.system.js +0 -1
  1401. package/dist/magma-components/p-MSUJeuJp.js +0 -1
  1402. package/dist/magma-components/p-a24d6d4a.system.entry.js +0 -1
  1403. package/dist/magma-components/p-a24dadaa.system.entry.js +0 -1
  1404. package/dist/magma-components/p-a2b84011.system.entry.js +0 -1
  1405. package/dist/magma-components/p-a2d761d6.entry.js +0 -1
  1406. package/dist/magma-components/p-a379adca.entry.js +0 -1
  1407. package/dist/magma-components/p-a46f7424.system.entry.js +0 -1
  1408. package/dist/magma-components/p-a47708f1.system.entry.js +0 -1
  1409. package/dist/magma-components/p-a4d11055.system.entry.js +0 -1
  1410. package/dist/magma-components/p-a4oAcjYG.js +0 -5
  1411. package/dist/magma-components/p-a5ef9d32.entry.js +0 -18
  1412. package/dist/magma-components/p-a6103622.entry.js +0 -1
  1413. package/dist/magma-components/p-a6b8b861.entry.js +0 -1
  1414. package/dist/magma-components/p-a6bdaa85.entry.js +0 -1
  1415. package/dist/magma-components/p-a716833c.system.entry.js +0 -1
  1416. package/dist/magma-components/p-a877906d.system.entry.js +0 -1
  1417. package/dist/magma-components/p-a8a2d90e.system.entry.js +0 -1
  1418. package/dist/magma-components/p-a92edada.entry.js +0 -1
  1419. package/dist/magma-components/p-aafec5fe.entry.js +0 -1
  1420. package/dist/magma-components/p-abce0c57.system.entry.js +0 -1
  1421. package/dist/magma-components/p-ac2ee475.entry.js +0 -1
  1422. package/dist/magma-components/p-ac5baffa.system.entry.js +0 -1
  1423. package/dist/magma-components/p-ad1ad433.system.entry.js +0 -1
  1424. package/dist/magma-components/p-ae433eb9.entry.js +0 -1
  1425. package/dist/magma-components/p-afaef9a1.entry.js +0 -1
  1426. package/dist/magma-components/p-b257222c.system.entry.js +0 -1
  1427. package/dist/magma-components/p-b472ed3c.entry.js +0 -1
  1428. package/dist/magma-components/p-b4fc19e9.entry.js +0 -1
  1429. package/dist/magma-components/p-b53ef2c1.entry.js +0 -1
  1430. package/dist/magma-components/p-b7dedc9f.entry.js +0 -1
  1431. package/dist/magma-components/p-b97edfb5.entry.js +0 -1
  1432. package/dist/magma-components/p-bc851caf.entry.js +0 -1
  1433. package/dist/magma-components/p-bc8ef479.system.entry.js +0 -9
  1434. package/dist/magma-components/p-bdc54840.system.entry.js +0 -1
  1435. package/dist/magma-components/p-bf29ca5a.entry.js +0 -1
  1436. package/dist/magma-components/p-bfc29d3b.system.entry.js +0 -1
  1437. package/dist/magma-components/p-bff1e84c.system.entry.js +0 -1
  1438. package/dist/magma-components/p-c01c49b6.entry.js +0 -1
  1439. package/dist/magma-components/p-c0296d86.system.entry.js +0 -1
  1440. package/dist/magma-components/p-c036f516.entry.js +0 -1
  1441. package/dist/magma-components/p-c3d8aa52.entry.js +0 -1
  1442. package/dist/magma-components/p-c4e7b103.system.entry.js +0 -1
  1443. package/dist/magma-components/p-c7a0a746.system.entry.js +0 -1
  1444. package/dist/magma-components/p-c92a772e.entry.js +0 -1
  1445. package/dist/magma-components/p-ca09ab1d.system.entry.js +0 -1
  1446. package/dist/magma-components/p-cc9212ce.system.entry.js +0 -1
  1447. package/dist/magma-components/p-cc95225c.system.entry.js +0 -1
  1448. package/dist/magma-components/p-cd49c455.entry.js +0 -1
  1449. package/dist/magma-components/p-d0542487.entry.js +0 -1
  1450. package/dist/magma-components/p-d0dfe659.entry.js +0 -1
  1451. package/dist/magma-components/p-d0eb94ea.system.entry.js +0 -1
  1452. package/dist/magma-components/p-d3e5c4eb.system.entry.js +0 -1
  1453. package/dist/magma-components/p-d4295773.entry.js +0 -1
  1454. package/dist/magma-components/p-d5700423.system.entry.js +0 -1
  1455. package/dist/magma-components/p-d838cb1c.system.entry.js +0 -1
  1456. package/dist/magma-components/p-d9605a5d.system.entry.js +0 -1
  1457. package/dist/magma-components/p-daa8f835.entry.js +0 -1
  1458. package/dist/magma-components/p-db4e2a0b.system.entry.js +0 -1
  1459. package/dist/magma-components/p-de0dac8f.entry.js +0 -1
  1460. package/dist/magma-components/p-de8204f9.entry.js +0 -1
  1461. package/dist/magma-components/p-e0b841e3.entry.js +0 -1
  1462. package/dist/magma-components/p-e35ab355.entry.js +0 -1
  1463. package/dist/magma-components/p-e44e2652.system.entry.js +0 -1
  1464. package/dist/magma-components/p-e48d23f4.system.entry.js +0 -1
  1465. package/dist/magma-components/p-e570aec5.system.entry.js +0 -1
  1466. package/dist/magma-components/p-e57698df.system.entry.js +0 -1
  1467. package/dist/magma-components/p-e669739e.entry.js +0 -1
  1468. package/dist/magma-components/p-e8fa7a07.entry.js +0 -1
  1469. package/dist/magma-components/p-ea2c8dd1.entry.js +0 -1
  1470. package/dist/magma-components/p-ea881c45.system.entry.js +0 -1
  1471. package/dist/magma-components/p-ebfb6963.system.entry.js +0 -1
  1472. package/dist/magma-components/p-eca8523b.system.entry.js +0 -1
  1473. package/dist/magma-components/p-ef142420.system.entry.js +0 -1
  1474. package/dist/magma-components/p-ef56af85.system.entry.js +0 -1
  1475. package/dist/magma-components/p-f0762290.entry.js +0 -1
  1476. package/dist/magma-components/p-f1832c1e.system.entry.js +0 -1
  1477. package/dist/magma-components/p-f4b1974a.entry.js +0 -1
  1478. package/dist/magma-components/p-f7cfc9a7.system.entry.js +0 -1
  1479. package/dist/magma-components/p-f83a9e08.entry.js +0 -1
  1480. package/dist/magma-components/p-f8ee5fec.system.entry.js +0 -1
  1481. package/dist/magma-components/p-f91dab2b.entry.js +0 -1
  1482. package/dist/magma-components/p-fMwnXhio.js +0 -1
  1483. package/dist/magma-components/p-fa61d03c.entry.js +0 -1
  1484. package/dist/magma-components/p-fbf423a7.system.entry.js +0 -1
  1485. package/dist/magma-components/p-fbfb589c.entry.js +0 -1
  1486. package/dist/magma-components/p-fc56d9ae.entry.js +0 -1
  1487. package/dist/magma-components/p-fc862fe2.system.entry.js +0 -1
  1488. package/dist/magma-components/p-fd574e21.entry.js +0 -1
  1489. package/dist/magma-components/p-fd649ac2.entry.js +0 -1
  1490. package/dist/magma-components/p-fed36619.entry.js +0 -1
  1491. package/dist/magma-components/p-oCzRm29V.system.js +0 -1
  1492. package/dist/magma-components/p-ttrRC6OE.js +0 -1
  1493. package/dist/magma-components/p-vYOT2M2B.system.js +0 -1
  1494. package/dist/types/components/mds-accordion/test/mds-accordion.stories.d.ts +0 -40
  1495. package/dist/types/components/mds-accordion-item/test/mds-accordion-item.stories.d.ts +0 -41
  1496. package/dist/types/components/mds-accordion-timer/test/mds-accordion-timer.stories.d.ts +0 -45
  1497. package/dist/types/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.d.ts +0 -67
  1498. package/dist/types/components/mds-author/test/mds-author.stories.d.ts +0 -10
  1499. package/dist/types/components/mds-avatar/test/mds-avatar.stories.d.ts +0 -82
  1500. package/dist/types/components/mds-avatar-stack/test/mds-avatar-stack.stories.d.ts +0 -38
  1501. package/dist/types/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.d.ts +0 -71
  1502. package/dist/types/components/mds-badge/test/mds-badge.stories.d.ts +0 -56
  1503. package/dist/types/components/mds-banner/test/mds-banner.stories.d.ts +0 -115
  1504. package/dist/types/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.d.ts +0 -85
  1505. package/dist/types/components/mds-bibliography/test/mds-bibliography.stories.d.ts +0 -129
  1506. package/dist/types/components/mds-breadcrumb/test/mds-breadcrumb.stories.d.ts +0 -16
  1507. package/dist/types/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.d.ts +0 -26
  1508. package/dist/types/components/mds-button/test/mds-button.stories.d.ts +0 -253
  1509. package/dist/types/components/mds-button-dropdown/test/mds-button-dropdown.stories.d.ts +0 -104
  1510. package/dist/types/components/mds-button-group/test/mds-button-group.stories.d.ts +0 -10
  1511. package/dist/types/components/mds-calendar/test/mds-calendar.stories.d.ts +0 -23
  1512. package/dist/types/components/mds-card/test/mds-card.stories.d.ts +0 -66
  1513. package/dist/types/components/mds-chip/test/mds-chip.stories.d.ts +0 -121
  1514. package/dist/types/components/mds-details/test/mds-details.stories.d.ts +0 -21
  1515. package/dist/types/components/mds-dropdown/test/mds-dropdown.stories.d.ts +0 -275
  1516. package/dist/types/components/mds-emoji/test/mds-emoji.stories.d.ts +0 -19
  1517. package/dist/types/components/mds-entity/test/mds-entity.stories.d.ts +0 -84
  1518. package/dist/types/components/mds-file/test/mds-file.stories.d.ts +0 -145
  1519. package/dist/types/components/mds-file-preview/test/mds-file-preview.stories.d.ts +0 -157
  1520. package/dist/types/components/mds-filter/test/mds-filter.stories.d.ts +0 -56
  1521. package/dist/types/components/mds-filter-item/test/mds-filter-item.stories.d.ts +0 -43
  1522. package/dist/types/components/mds-header/test/mds-header.stories.d.ts +0 -68
  1523. package/dist/types/components/mds-header-bar/test/mds-header-bar.stories.d.ts +0 -23
  1524. package/dist/types/components/mds-help/test/mds-help.stories.d.ts +0 -25
  1525. package/dist/types/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.d.ts +0 -57
  1526. package/dist/types/components/mds-hr/test/mds-hr.stories.d.ts +0 -13
  1527. package/dist/types/components/mds-icon/test/mds-icon.stories.d.ts +0 -55
  1528. package/dist/types/components/mds-img/test/mds-img-accessibility.stories.d.ts +0 -93
  1529. package/dist/types/components/mds-img/test/mds-img.stories.d.ts +0 -122
  1530. package/dist/types/components/mds-input/test/mds-input.stories.d.ts +0 -332
  1531. package/dist/types/components/mds-input-date/test/mds-input-date.stories.d.ts +0 -73
  1532. package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +0 -70
  1533. package/dist/types/components/mds-input-field/test/mds-input-field.stories.d.ts +0 -86
  1534. package/dist/types/components/mds-input-otp/test/mds-input-otp.stories.d.ts +0 -36
  1535. package/dist/types/components/mds-input-range/test/mds-input-range.stories.d.ts +0 -75
  1536. package/dist/types/components/mds-input-select/test/mds-input-select.stories.d.ts +0 -105
  1537. package/dist/types/components/mds-input-switch/test/mds-input-switch.stories.d.ts +0 -195
  1538. package/dist/types/components/mds-input-tip/test/mds-input-tip.stories.d.ts +0 -22
  1539. package/dist/types/components/mds-input-tip-item/test/mds-input-tip.stories.d.ts +0 -22
  1540. package/dist/types/components/mds-input-upload/test/mds-input-upload.stories.d.ts +0 -55
  1541. package/dist/types/components/mds-keyboard/test/mds-keyboard.stories.d.ts +0 -27
  1542. package/dist/types/components/mds-keyboard-key/test/mds-keyboard-key.stories.d.ts +0 -22
  1543. package/dist/types/components/mds-kpi/test/mds-kpi.stories.d.ts +0 -26
  1544. package/dist/types/components/mds-kpi-item/test/mds-kpi-item.stories.d.ts +0 -42
  1545. package/dist/types/components/mds-label/test/mds-label.stories.d.ts +0 -86
  1546. package/dist/types/components/mds-list/test/mds-list.stories.d.ts +0 -7
  1547. package/dist/types/components/mds-list-item/test/mds-list-item.stories.d.ts +0 -38
  1548. package/dist/types/components/mds-mention/test/mds-mention.stories.d.ts +0 -38
  1549. package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +0 -156
  1550. package/dist/types/components/mds-note/test/mds-note.stories.d.ts +0 -34
  1551. package/dist/types/components/mds-notification/test/mds-notification.stories.d.ts +0 -68
  1552. package/dist/types/components/mds-paginator/test/mds-paginator.stories.d.ts +0 -33
  1553. package/dist/types/components/mds-policy-ai/test/mds-policy.stories.d.ts +0 -83
  1554. package/dist/types/components/mds-pref/test/mds-pref.stories.d.ts +0 -29
  1555. package/dist/types/components/mds-pref-animation/test/mds-pref-animation.stories.d.ts +0 -20
  1556. package/dist/types/components/mds-pref-consumption/test/mds-pref-consumption.stories.d.ts +0 -20
  1557. package/dist/types/components/mds-pref-contrast/test/mds-pref-contrast.stories.d.ts +0 -20
  1558. package/dist/types/components/mds-pref-language/test/mds-pref-language.stories.d.ts +0 -20
  1559. package/dist/types/components/mds-pref-theme/test/mds-pref-theme.stories.d.ts +0 -30
  1560. package/dist/types/components/mds-pref-theme-variant/mds-pref-theme-variant.d.ts +0 -62
  1561. package/dist/types/components/mds-pref-theme-variant/meta/dictionary.d.ts +0 -2
  1562. package/dist/types/components/mds-pref-theme-variant/test/mds-pref-theme-variant.stories.d.ts +0 -30
  1563. package/dist/types/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.d.ts +0 -35
  1564. package/dist/types/components/mds-price-table/test/mds-price-table.stories.d.ts +0 -10
  1565. package/dist/types/components/mds-price-table-features/test/mds-price-table-features.stories.d.ts +0 -10
  1566. package/dist/types/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.d.ts +0 -10
  1567. package/dist/types/components/mds-price-table-header/test/mds-price-table-header.stories.d.ts +0 -7
  1568. package/dist/types/components/mds-price-table-list/test/mds-price-table-list.stories.d.ts +0 -10
  1569. package/dist/types/components/mds-progress/test/mds-progress.stories.d.ts +0 -89
  1570. package/dist/types/components/mds-push-notification/test/mds-push-notification.stories.d.ts +0 -28
  1571. package/dist/types/components/mds-push-notification-item/test/mds-push-notification-item.stories.d.ts +0 -210
  1572. package/dist/types/components/mds-quote/test/mds-quote.stories.d.ts +0 -34
  1573. package/dist/types/components/mds-radial-menu/test/mds-radial-menu.stories.d.ts +0 -123
  1574. package/dist/types/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.d.ts +0 -48
  1575. package/dist/types/components/mds-radial-progress/test/mds-radial-progress.stories.d.ts +0 -68
  1576. package/dist/types/components/mds-separator/test/mds-separator.stories.d.ts +0 -7
  1577. package/dist/types/components/mds-spinner/test/mds-spinner.stories.d.ts +0 -21
  1578. package/dist/types/components/mds-status-bar/test/mds-status-bar.stories.d.ts +0 -34
  1579. package/dist/types/components/mds-stepper-bar/test/mds-stepper-bar.stories.d.ts +0 -45
  1580. package/dist/types/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.d.ts +0 -102
  1581. package/dist/types/components/mds-tab/test/mds-tab.stories.d.ts +0 -111
  1582. package/dist/types/components/mds-tab-bar/test/mds-tab-bar.stories.d.ts +0 -7
  1583. package/dist/types/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.d.ts +0 -25
  1584. package/dist/types/components/mds-tab-item/test/mds-tab-item.stories.d.ts +0 -69
  1585. package/dist/types/components/mds-table/test/mds-table.stories.d.ts +0 -63
  1586. package/dist/types/components/mds-text/test/mds-text.stories.d.ts +0 -181
  1587. package/dist/types/components/mds-toast/test/mds-toast.stories.d.ts +0 -59
  1588. package/dist/types/components/mds-tooltip/test/mds-tooltip.stories.d.ts +0 -192
  1589. package/dist/types/components/mds-tree/test/mds-tree-apk.stories.d.ts +0 -16
  1590. package/dist/types/components/mds-tree/test/mds-tree.stories.d.ts +0 -86
  1591. package/dist/types/components/mds-tree-item/test/mds-tree-item.stories.d.ts +0 -48
  1592. package/dist/types/components/mds-url-view/test/mds-url-view.stories.d.ts +0 -63
  1593. package/dist/types/components/mds-usage/test/mds-usage.stories.d.ts +0 -37
  1594. package/dist/types/components/mds-video-wall/test/mds-video-wall.stories.d.ts +0 -119
  1595. package/dist/types/components/mds-zero/test/mds-zero.stories.d.ts +0 -7
  1596. package/dist/types/event-detail/theme-variant.d.ts +0 -5
  1597. package/dist/types/storybook/box-shadows.stories.d.ts +0 -7
  1598. package/dist/types/storybook/color-scale.stories.d.ts +0 -7
  1599. package/dist/types/storybook/components-preview.stories.d.ts +0 -33
  1600. package/dist/types/storybook/example-page.stories.d.ts +0 -7
  1601. package/dist/types/storybook/fouc-hydrated.stories.d.ts +0 -7
  1602. package/dist/types/storybook/input-form.stories.d.ts +0 -7
  1603. package/dist/types/storybook/same-childrend-slot-names.stories.d.ts +0 -7
  1604. package/dist/types/test/file.d.ts +0 -35
  1605. package/dist/types/test/mock.d.ts +0 -2
  1606. /package/dist/collection/{event-detail/theme-variant.js → components/mds-mention/meta/interface.js} +0 -0
  1607. /package/dist/components/{broken-image.js → p-0FAG3rkw.js} +0 -0
  1608. /package/dist/components/{horizontal-rule.js → p-BE8xuIpS.js} +0 -0
  1609. /package/dist/components/{check-circle.js → p-BFhO-KUe.js} +0 -0
  1610. /package/dist/components/{cancel.js → p-BJ8rpzfj.js} +0 -0
  1611. /package/dist/components/{calendar-today.js → p-BVQMG7KJ.js} +0 -0
  1612. /package/dist/components/{arrow-forward.js → p-Bd0uuNDE.js} +0 -0
  1613. /package/dist/components/{keys.js → p-C4ckbXOl.js} +0 -0
  1614. /package/dist/components/{panorama.js → p-CGFwoK_U.js} +0 -0
  1615. /package/dist/components/{aria.js → p-CSCy6TMW.js} +0 -0
  1616. /package/dist/components/{keyboard-arrow-up.js → p-Ccz0jCNB.js} +0 -0
  1617. /package/dist/components/{clsx.js → p-ChV9xqsO.js} +0 -0
  1618. /package/dist/components/{done.js → p-CvUz9jjh.js} +0 -0
  1619. /package/dist/components/{remove.js → p-D17B058a.js} +0 -0
  1620. /package/dist/components/{unit.js → p-D8eZRaSQ.js} +0 -0
  1621. /package/dist/components/{keyboard-arrow-right.js → p-DFyAGAnn.js} +0 -0
  1622. /package/dist/components/{keyboard-arrow-down.js → p-DiWN48aq.js} +0 -0
  1623. /package/dist/components/{browser.js → p-Dje8Mggf.js} +0 -0
  1624. /package/dist/components/{arrow-back.js → p-DnEUG7st.js} +0 -0
  1625. /package/dist/components/{_commonjsHelpers.js → p-E-ZsRS8r.js} +0 -0
  1626. /package/dist/components/{close.js → p-J-ikDhyq.js} +0 -0
  1627. /package/dist/components/{settings.js → p-XQgkfNpn.js} +0 -0
  1628. /package/dist/components/{circle.js → p-lZldSMeV.js} +0 -0
@@ -1 +1,39 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,i){function a(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{d(i.next(t))}catch(t){r(t)}}function o(t){try{d(i["throw"](t))}catch(t){r(t)}}function d(t){t.done?n(t.value):a(t.value).then(s,o)}d((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,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(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(n=0)),n)try{if(i=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;a=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){n.label=o[1];break}if(o[0]===6&&n.label<r[1]){n.label=r[1];r=o;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(o);break}if(r[2])n.ops.pop();n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t];a=0}finally{i=r=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";import{s as subscribePreference}from"./preference-fMwnXhio.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 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}}}: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);--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(--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(--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}.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}: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(--variant-primary-03,211 226 255)))}mds-dropdown{padding:0}:host([pref-animation=reduce]){--private-input-date-range-transition-duration:0s}:host([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([pref-theme=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08,107 107 107))}:host([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([pref-contrast=more]) .input::placeholder{color:rgb(var(--tone-neutral-03,233 233 233))}:host([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:reduce){:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-date-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-theme])),:host([pref-theme=system]: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))}:is(:host([pref-theme=system]:not([pref-theme-scheme=light])),:host(:not([pref-theme]))) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08,107 107 107))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--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([pref-contrast=system]),:host(:not([pref-contrast]))) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03,233 233 233))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input:-ms-placeholder-shown{color:rgb(var(--tone-neutral-03,233 233 233))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{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 n=DateTime.fromISO(e.internalStartDate).isValid;var i=DateTime.fromISO(e.internalEndDate).isValid;if(n&&i){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 n=t.detail.hoverDate;if(e.hoveredCalendarDate===n)return;e.hoveredCalendarDate=n;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 n=e.getCalendars();var i=n.indexOf(t.target);var a=DateTime.fromISO(t.detail.currentDate);if(!a.isValid)return;e.visibleCalendarDate=a.minus({months:i===1?1:0}).startOf("month").toISODate()};this.handleCalendarPreselect=function(){e.checkPreselections()};this.handleOpenCalendarClick=function(){e.calendarKey+=1}}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 n;var i=[t,e].map((function(t){return DateTime.fromISO(t!==null&&t!==void 0?t:"")})).filter((function(t){return t.isValid}));var a=(n=i[0])!==null&&n!==void 0?n:DateTime.now();return a.startOf("month").toISODate()};t.prototype.getCalendarViewDate=function(t){if(t===void 0){t=0}var e=DateTime.fromISO(this.visibleCalendarDate);var n=DateTime.fromISO(this.internalStartDate);var i=DateTime.now();if(e.isValid){i=e}else if(n.isValid){i=n}return i.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.connectedCallback=function(){var t=this;this.unsubscribePrefAnimation=subscribePreference("animation",(function(e){t.prefAnimation=e}));this.unsubscribePrefContrast=subscribePreference("contrast",(function(e){t.prefContrast=e}));this.unsubscribePrefTheme=subscribePreference("theme",(function(e){t.prefTheme=e}));this.unsubscribePrefThemeScheme=subscribePreference("theme-scheme",(function(e){t.prefThemeScheme=e}))};t.prototype.disconnectedCallback=function(){var t,e,n,i,a;(t=this.unsubscribePrefAnimation)===null||t===void 0?void 0:t.call(this);(e=this.unsubscribePrefContrast)===null||e===void 0?void 0:e.call(this);(n=this.unsubscribePrefTheme)===null||n===void 0?void 0:n.call(this);(i=this.unsubscribePrefThemeScheme)===null||i===void 0?void 0:i.call(this);this.host.removeEventListener("focusout",this.handleFocusOut);(a=this.host.shadowRoot)===null||a===void 0?void 0:a.removeEventListener("mdsCalendarHover",this.handleCalendarHover)};t.prototype.preselect=function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,i;var a=this;return __generator(this,(function(r){switch(r.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){n=DateTime.fromISO(t.end);if(n.isValid){this.internalEndDate=t.end}}else{this.internalEndDate=t.start}this.updateInputValue("end",this.internalEndDate);this.syncFormValue();i=this.getCalendars();if(!(i.length!==0))return[3,2];return[4,Promise.all(i.map((function(t,e){return t.updateCurrentDate(a.getCalendarViewDate(e))})))];case 1:r.sent();this.closeDropdownAfterSelection();r.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 n=e!==null&&e!==void 0?e:"";this.clearHoverPreview();if(t==="start"){if(n===this.internalStartDate)return;this.internalStartDate=n;this.setVisibleCalendarDate(this.internalStartDate)}else{if(n===this.internalEndDate)return;this.internalEndDate=n}this.validateDateRange();this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.checkPreselections();this.syncFormValue()};t.prototype.updateInputValue=function(t,e){var n=this;var i;var a=(i=this.host.shadowRoot)===null||i===void 0?void 0:i.querySelector('slot[name="'.concat(t,'"]'));var r=a===null||a===void 0?void 0:a.assignedElements()[0];if(r!=null){this.syncingInputSlots.add(t);r.setValue(e).finally((function(){requestAnimationFrame((function(){n.syncingInputSlots.delete(t)}))}))}};t.prototype.updateInputListeners=function(){var t,e;var n=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector('slot[name="start"]');var i=(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(n!=null){var a=n.assignedElements()[0];a.addEventListener("mdsInputDateSelect",this.createFocusoutListener("start"))}if(i!=null){var a=i.assignedElements()[0];a.addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}};t.prototype.createFocusoutListener=function(t){var e=this;return function(n){if(e.syncingInputSlots.has(t)){return}var i=n;e.clearHoverPreview();if(t==="start"){e.internalStartDate=i.detail;e.setVisibleCalendarDate(e.internalStartDate)}else{e.internalEndDate=i.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 n=e;var i=n.start===t.internalStartDate&&n.end===t.internalEndDate;var a=n.start===t.internalStartDate&&t.internalStartDate===t.internalEndDate&&n.end===undefined;if(i||a){n.selected=true}else{n.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({lang:this.language,key:this.calendarKey,rangePicker:true,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({lang:this.language,key:"".concat(this.calendarKey,"-start"),rangePicker:true,showNextButton:false,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({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: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:"70d713a2ba286fe3ee69feb5b804e043c0357166",onClick:this.focusDateInput,"pref-animation":this.prefAnimation,"pref-contrast":this.prefContrast,"pref-theme":this.prefTheme,"pref-theme-scheme":this.prefThemeScheme},h("div",{key:"35518a0ed132cd6977c0a557a2f45438c7a9db6b",class:"inputs"},h("div",{key:"befa6ce8026d0f02451c5bda8f174252214a3457",class:"input-element"},h("mds-text",{key:"7919fc8583f940b6a7ab46f6da35067c245f1c4e",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),h("div",{key:"9a9d1e950e8523423fba228b66b99d63722ae3f3",class:"input-wrapper"},h("slot",{key:"a4c7031eb4db25ebe766650676475a1b70c7a27f",name:"start"}))),h("div",{key:"c033efadef102cac6d615505e1b8cd476e4bd911",class:"input-element"},h("mds-text",{key:"fe5cbbbb85d2f4895236de71c79b3850c076fbac",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),h("div",{key:"64e5392cb8d476e099d3efcd4b86958f2601986f",class:"input-wrapper"},h("slot",{key:"c2ff17f4e61a42a8afe50488847ccd3b71c670cf",name:"end"})))),h("div",{key:"8e3d4fecf6eca2c7cfc90aa3cec5835626a33cbc",class:"action-open-calendar-wrapper"},h("mds-button",{key:"c12b6fcbe2a7e233ba45a224620a26f37200e097",class:"action-open-calendar",variant:"dark",tone:"text",icon:miBaselineCalendarToday,id:"calendar-dropdown",onClick:this.handleOpenCalendarClick})),h("mds-dropdown",{key:"eb088ba8ec6c6c82373efa9f5dad8cae23c63604",ref:function(e){return t.dropdownRef=e},target:"#calendar-dropdown","disable-auto-placement":true,placement:"bottom-end"},this.dualCalendar?this.renderDualCalendars():this.renderSingleCalendar()))};t.prototype.syncFormValue=function(){var t,e,n,i;var a=(e=(t=this.internalStartDate)===null||t===void 0?void 0:t.trim())!==null&&e!==void 0?e:"";var r=(i=(n=this.internalEndDate)===null||n===void 0?void 0:n.trim())!==null&&i!==void 0?i:"";if(a===""&&r===""){this.internals.setFormValue(null);return}this.internals.setFormValue(JSON.stringify({startDate:a,endDate:r}))};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,i,e){function n(t){return t instanceof i?t:new i((function(r){r(t)}))}return new(i||(i=Promise))((function(i,a){function o(t){try{d(e.next(t))}catch(t){a(t)}}function s(t){try{d(e["throw"](t))}catch(t){a(t)}}function d(t){t.done?i(t.value):n(t.value).then(o,s)}d((e=e.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},e,n,a,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(e)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(e=1,n&&(a=s[0]&2?n["return"]:s[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;if(n=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;n=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){i.label=s[1];break}if(s[0]===6&&i.label<a[1]){i.label=a[1];a=s;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(s);break}if(a[2])i.ops.pop();i.trys.pop();continue}s=r.call(t,i)}catch(t){s=[6,t];n=0}finally{e=a=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";import{s as subscribePreference}from"./preference-fMwnXhio.js";var mdsInputDateCss=function(){return'@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))}}}@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));--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(--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(--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(--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);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([pref-animation=reduce]){--private-input-date-transition-duration:0s}:host([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([pref-theme=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08,107 107 107))}:host([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([pref-contrast=more]) .input::placeholder{color:rgb(var(--tone-neutral-03,233 233 233))}:host([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:reduce){:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-date-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-theme])),:host([pref-theme=system]: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))}:is(:host([pref-theme=system]:not([pref-theme-scheme=light])),:host(:not([pref-theme]))) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08,107 107 107))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--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([pref-contrast=system]),:host(:not([pref-contrast]))) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03,233 233 233))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input:-ms-placeholder-shown{color:rgb(var(--tone-neutral-03,233 233 233))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{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 i=t.target;r.touched=true;if(i.value!=="")r.value=i.value;r.validateValue(i.validity.badInput)};this.onBlur=function(t){var i=t.target;r.hasFocus=false;r.value=i.value;r.validateValue(i.validity.badInput)};this.onFocus=function(t){var i=t.target;r.hasFocus=true;if(r.readonly){setTimeout((function(){i.select()}),10)}};this.handleOpenCalendarClick=function(){r.calendarKey+=1};this.handleCalendarChange=function(t){r.value=t.detail.startDate;if(r.delay===0)return;var i=r.dropdownRef;if(i){setTimeout((function(){i.visible=false}),r.delay)}}}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 i=Boolean(this.value);var e=i&&!r.isValid;var n=this.required&&!i;var a=r.isValid&&(this.max&&DateTime.fromISO(this.max)<r||this.min&&DateTime.fromISO(this.min)>r);if(t||e||n||a){this.isValid=false;this.variant="error";this.internals.setFormValue(null);this.empty=t||e?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(i){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.connectedCallback=function(){var t=this;this.unsubscribePrefAnimation=subscribePreference("animation",(function(r){t.prefAnimation=r}));this.unsubscribePrefContrast=subscribePreference("contrast",(function(r){t.prefContrast=r}));this.unsubscribePrefTheme=subscribePreference("theme",(function(r){t.prefTheme=r}));this.unsubscribePrefThemeScheme=subscribePreference("theme-scheme",(function(r){t.prefThemeScheme=r}))};t.prototype.disconnectedCallback=function(){var t,r,i,e;(t=this.unsubscribePrefAnimation)===null||t===void 0?void 0:t.call(this);(r=this.unsubscribePrefContrast)===null||r===void 0?void 0:r.call(this);(i=this.unsubscribePrefTheme)===null||i===void 0?void 0:i.call(this);(e=this.unsubscribePrefThemeScheme)===null||e===void 0?void 0:e.call(this)};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:"4d896aae88a4637f371861ee251e2337530baded",empty:this.empty,"pref-animation":this.prefAnimation,"pref-contrast":this.prefContrast,"pref-theme":this.prefTheme,"pref-theme-scheme":this.prefThemeScheme},h("input",{key:"5e58df1c7b4e43e9c31c2660d31180efd2ac813e",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:"bd68590ff1bbbc0a3a744e44e88d6a3bca11fdca",class:"action-open-calendar-wrapper"},h("mds-button",{key:"f3bd3316bce646eb4df4eb368a952096397447e7",id:"calendar-dropdown",class:"action-open-calendar",disabled:this.disabled,variant:"dark",tone:"text",icon:miBaselineCalendarToday,onClick:this.handleOpenCalendarClick})),h("mds-input-tip",{key:"9f4264859de66046a3761ec96083c09c53bdced9",lang:this.language,position:"top",active:this.hasFocus},this.disabled&&h("mds-input-tip-item",{key:"8be9f58f10be7407d6c76d5e7b79e2faaa6aaa86",expanded:true,variant:"disabled"}),this.readonly&&h("mds-input-tip-item",{key:"144bce0f9a1a67593be23decd4a59e34c342b359",expanded:true,variant:"readonly"}),this.required&&h("mds-input-tip-item",{key:"efcafab1b01ddb3983299273dbddae86af6f621d",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),!this.isSlotted&&h("mds-dropdown",{key:"df129e18751e4312509dc60ea4538fb4797071ff",placement:"bottom-end","disable-auto-placement":true,ref:function(r){return t.dropdownRef=r},target:"#calendar-dropdown"},h("mds-calendar",Object.assign({key:this.calendarKey,rangePicker:false,lang:this.language,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
+ 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 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))}}}: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))}:host([variant=info]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--status-info-04,159 216 241));--mds-input-tip-background:rgb(var(--status-info-05,112 198 234));--mds-input-variant-color-rgb:0 0 0}:host([variant=info]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--status-info-05,112 198 234));--mds-input-variant-color-rgb:var(--status-info-04,159 216 241)}:host([variant=warning]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--status-warning-04,255 200 33));--mds-input-tip-background:rgb(var(--status-warning-05,237 177 0));--mds-input-variant-color-rgb:0 0 0}:host([variant=warning]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--status-warning-05,237 177 0));--mds-input-variant-color-rgb:var(--status-warning-04,255 200 33)}:host([variant=success]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--status-success-04,158 222 181));--mds-input-tip-background:rgb(var(--status-success-05,107 206 147));--mds-input-variant-color-rgb:0 0 0}:host([variant=success]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--status-success-05,107 206 147));--mds-input-variant-color-rgb:var(--status-success-04,158 222 181)}:host([variant=error]) ::slotted(mds-input){--mds-input-icon-color:rgb(var(--status-error-04,254 193 189));--mds-input-tip-background:rgb(var(--status-error-05,250 165 160));--mds-input-variant-color-rgb:0 0 0}:host([variant=error]) ::slotted(mds-input:focus){--mds-input-icon-color:rgb(var(--status-error-05,250 165 160));--mds-input-variant-color-rgb:var(--status-error-04,254 193 189)}"};var MdsInputField=function(){function t(t){registerInstance(this,t);this.variant="primary"}t.prototype.handleValidation=function(t){var r=this;t.getErrors().then((function(t){if(t!=null){r.variant="error";var a=Object.entries(t).map((function(t){return t[1]})).filter((function(t){return t}));r.message=a.length!==0?a.join(";"):undefined;return}r.variant="success";r.message=undefined}))};t.prototype.componentDidLoad=function(){var t=this;var r=this.slotInput.assignedElements()[0];if(r==null)throw new Error("Mds input not found");r.addEventListener("mdsInputValidation",(function(){return t.handleValidation(r)}))};t.prototype.render=function(){var t=this;var r;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(r){return t.slotInput=r}})),h("div",{key:"dbc5d405bb47cd7f3d730d3732e2ef0c49d9bfc6",class:"message"},(r=this.message)===null||r===void 0?void 0:r.split(";").map((function(t,r){return h("mds-text",{typography:"caption",key:r},t)})))))};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});return t}();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;: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 t(t){var e=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.length=6;this.autosubmit=false;this.value="";this.getOtpCode=function(){var t=Array.from(e.element.shadowRoot.querySelectorAll("mds-input"));var n=t.map((function(t){return t.value})).join("");return n};this.setOtpDigit=function(t,n){t.value=n;var r=e.getOtpCode();e.value=r;e.internals.setFormValue(r)};this.submit=function(t){var n;var r=e.getOtpCode().length===e.length;t.blur();if(e.autosubmit&&r){(n=e.internals.form)===null||n===void 0?void 0:n.requestSubmit()}};this.handleKeyDown=function(t){if(t.ctrlKey){return}t.preventDefault();if(isNaN(Number(t.key))){return}var n=t.target;e.setOtpDigit(n,t.key);var r=n.nextElementSibling;if(r!=null){r.setFocus()}else{e.submit(n)}};this.handlePaste=function(t){var n,r;t.preventDefault();var i=(n=t.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=t.target;for(var u=0,o=s;u<o.length;u++){var l=o[u];e.setOtpDigit(a,l);a=a.nextElementSibling;if(a!=null){a.setFocus()}else{e.submit(a);return}}}}t.prototype.render=function(){var t=this;return h(Host,{key:"b8ed6443032efcace51ea84c5dbae2533796a7f7"},Array.from({length:this.length}).map((function(){return h("mds-input",{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
+ 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";import{s as subscribePreference}from"./preference-fMwnXhio.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(--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);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: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]){--private-input-range-transition-duration:0s}:host([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([pref-contrast=more]){color:rgb(var(--tone-neutral-01,255 255 255))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-theme])),:host([pref-theme=system]: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))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){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.connectedCallback=function(){var t=this;this.unsubscribePrefAnimation=subscribePreference("animation",(function(r){t.prefAnimation=r}));this.unsubscribePrefContrast=subscribePreference("contrast",(function(r){t.prefContrast=r}));this.unsubscribePrefTheme=subscribePreference("theme",(function(r){t.prefTheme=r}));this.unsubscribePrefThemeScheme=subscribePreference("theme-scheme",(function(r){t.prefThemeScheme=r}))};t.prototype.disconnectedCallback=function(){var t,r,a,e;(t=this.unsubscribePrefAnimation)===null||t===void 0?void 0:t.call(this);(r=this.unsubscribePrefContrast)===null||r===void 0?void 0:r.call(this);(a=this.unsubscribePrefTheme)===null||a===void 0?void 0:a.call(this);(e=this.unsubscribePrefThemeScheme)===null||e===void 0?void 0:e.call(this)};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:"b820e8ed601040eee9bac980e0ee308a3d09de51","pref-animation":this.prefAnimation,"pref-contrast":this.prefContrast,"pref-theme":this.prefTheme,"pref-theme-scheme":this.prefThemeScheme},h("header",{key:"f9849eb9243eaab7585991a7f32a7ecd0aa30d78",class:"header",part:"header"},h("mds-text",{key:"9d32ebdd41564adfc5c4d4546017b87aeaef6580",class:"label",typography:"label"},h("slot",{key:"6061c4d9d0987242ca08444370831aa55aa0e927"})),h("mds-text",{key:"a8e588f3833bdd9a809b75b1f9cf2bef725ccd4e",class:"value",typography:"label"},this.formatValue?this.formatValue(this.value):this.value)),h("div",{key:"b0ea4bd7ca1b5f82c4b6581d891a5ca3db71b901",class:"range"},h("div",{key:"2d888c14de77f99cfbb651c470e85888869eefcf",class:"track",part:"track"},h("div",{key:"0bd42dcedd84c2e8ce4ac8e922c40de108bca01c",class:"contrast-area"}),h("div",{key:"d88d39f19a361f6a515ba9faf63bfce0961abb77",class:"track-total"},h("div",{key:"82d7e7dd1e4741f89ab8ca250daf93b3e1fb7c28",class:"track-progress",style:{"--mds-input-range-progress":"".concat((r=this.progress)!==null&&r!==void 0?r:0)}}))),h("input",{key:"c6d01e5b369efc8a60007255b1ae4c1cd2cfce03",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};