@maggioli-design-system/magma 2.1.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1307) hide show
  1. package/AGENTS.md +26 -10
  2. package/CHANGELOG.md +475 -0
  3. package/README.md +5 -2
  4. package/agents/assets.md +231 -28
  5. package/agents/color.md +5 -3
  6. package/agents/components.md +3 -3
  7. package/agents/install.md +25 -4
  8. package/agents/reporting.md +127 -0
  9. package/agents/theming.md +15 -0
  10. package/dist/cjs/_commonjsHelpers-CFO10eej.js +7 -0
  11. package/dist/cjs/{floating-controller-uOCBLTk2.js → floating-controller-D7Ekjocg.js} +18 -4
  12. package/dist/cjs/{floating-ui.dom-DflSHZIo.js → floating-ui.dom-EMHL7uyZ.js} +146 -94
  13. package/dist/cjs/icon-MMHcqbgv.js +20 -0
  14. package/dist/cjs/index-UmmmCMIG.js +40 -40
  15. package/dist/cjs/index.cjs.js +62 -0
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/cjs/magma-components.cjs.js +1 -1
  18. package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
  19. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
  20. package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
  21. package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
  22. package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
  23. package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
  24. package/dist/cjs/mds-avatar.cjs.entry.js +2 -2
  25. package/dist/cjs/mds-badge.cjs.entry.js +1 -1
  26. package/dist/cjs/mds-banner_3.cjs.entry.js +3 -3
  27. package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
  28. package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
  29. package/dist/cjs/mds-breadcrumb.cjs.entry.js +1 -1
  30. package/dist/cjs/mds-button-dropdown.cjs.entry.js +30 -2
  31. package/dist/cjs/mds-button_3.cjs.entry.js +125 -58
  32. package/dist/cjs/mds-calendar_2.cjs.entry.js +59 -6
  33. package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
  34. package/dist/cjs/mds-card.cjs.entry.js +1 -1
  35. package/dist/cjs/mds-details.cjs.entry.js +1 -1
  36. package/dist/cjs/mds-dropdown.cjs.entry.js +3 -3
  37. package/dist/cjs/mds-emoji.cjs.entry.js +1 -1
  38. package/dist/cjs/mds-entity.cjs.entry.js +1 -1
  39. package/dist/cjs/mds-file-preview.cjs.entry.js +1 -1
  40. package/dist/cjs/mds-file.cjs.entry.js +29 -7520
  41. package/dist/cjs/mds-filter-item.cjs.entry.js +89 -3
  42. package/dist/cjs/mds-filter.cjs.entry.js +113 -19
  43. package/dist/cjs/mds-header-bar.cjs.entry.js +29 -2
  44. package/dist/cjs/mds-header.cjs.entry.js +1 -1
  45. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +38 -2
  46. package/dist/cjs/mds-hr.cjs.entry.js +1 -1
  47. package/dist/cjs/mds-img.cjs.entry.js +1 -1
  48. package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
  49. package/dist/cjs/mds-input-date-range.cjs.entry.js +16 -2
  50. package/dist/cjs/mds-input-date.cjs.entry.js +36 -4
  51. package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
  52. package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
  53. package/dist/cjs/mds-input-select.cjs.entry.js +32 -5
  54. package/dist/cjs/mds-input-switch_2.cjs.entry.js +21 -8
  55. package/dist/cjs/mds-input-tip_2.cjs.entry.js +2 -2
  56. package/dist/cjs/mds-input-upload.cjs.entry.js +1 -1
  57. package/dist/cjs/mds-input.cjs.entry.js +12 -3
  58. package/dist/cjs/mds-keyboard-key.cjs.entry.js +1 -1
  59. package/dist/cjs/mds-keyboard.cjs.entry.js +1 -1
  60. package/dist/cjs/mds-kpi-item.cjs.entry.js +1 -1
  61. package/dist/cjs/mds-label.cjs.entry.js +1 -1
  62. package/dist/cjs/mds-list-item.cjs.entry.js +2 -3
  63. package/dist/cjs/mds-mention.cjs.entry.js +1 -1
  64. package/dist/cjs/mds-modal.cjs.entry.js +32 -5
  65. package/dist/cjs/mds-note.cjs.entry.js +1 -1
  66. package/dist/cjs/mds-notification.cjs.entry.js +2 -2
  67. package/dist/cjs/mds-paginator-item.cjs.entry.js +1 -1
  68. package/dist/cjs/mds-paginator.cjs.entry.js +1 -1
  69. package/dist/cjs/mds-policy-ai.cjs.entry.js +1 -1
  70. package/dist/cjs/mds-pref-animation.cjs.entry.js +1 -1
  71. package/dist/cjs/mds-pref-consumption.cjs.entry.js +1 -1
  72. package/dist/cjs/mds-pref-contrast.cjs.entry.js +1 -1
  73. package/dist/cjs/mds-pref-language.cjs.entry.js +1 -1
  74. package/dist/cjs/mds-pref-mode.cjs.entry.js +1 -1
  75. package/dist/cjs/mds-pref-theme-item.cjs.entry.js +4 -3
  76. package/dist/cjs/mds-pref-theme.cjs.entry.js +29 -2
  77. package/dist/cjs/mds-pref.cjs.entry.js +24 -53
  78. package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +2 -2
  79. package/dist/cjs/mds-price-table-features-row.cjs.entry.js +2 -2
  80. package/dist/cjs/mds-price-table-features.cjs.entry.js +2 -2
  81. package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
  82. package/dist/cjs/mds-price-table-list-item.cjs.entry.js +2 -2
  83. package/dist/cjs/mds-price-table-list.cjs.entry.js +2 -2
  84. package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
  85. package/dist/cjs/mds-progress_2.cjs.entry.js +4 -4
  86. package/dist/cjs/mds-push-notification-item.cjs.entry.js +4 -4
  87. package/dist/cjs/mds-push-notification.cjs.entry.js +2 -2
  88. package/dist/cjs/mds-quote.cjs.entry.js +2 -2
  89. package/dist/cjs/mds-radial-menu-item.cjs.entry.js +2 -2
  90. package/dist/cjs/mds-radial-menu.cjs.entry.js +40 -4
  91. package/dist/cjs/mds-separator.cjs.entry.js +2 -2
  92. package/dist/cjs/mds-status-bar.cjs.entry.js +2 -2
  93. package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +2 -2
  94. package/dist/cjs/mds-stepper-bar.cjs.entry.js +2 -2
  95. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +2 -2
  96. package/dist/cjs/mds-tab-bar.cjs.entry.js +2 -2
  97. package/dist/cjs/mds-tab_2.cjs.entry.js +43 -8
  98. package/dist/cjs/mds-table-body.cjs.entry.js +2 -2
  99. package/dist/cjs/mds-table-footer.cjs.entry.js +2 -2
  100. package/dist/cjs/mds-table-header-cell.cjs.entry.js +116 -77
  101. package/dist/cjs/mds-table-header.cjs.entry.js +2 -2
  102. package/dist/cjs/mds-table-row.cjs.entry.js +22 -16
  103. package/dist/cjs/mds-table.cjs.entry.js +9 -2
  104. package/dist/cjs/mds-text.cjs.entry.js +37 -27
  105. package/dist/cjs/mds-toast.cjs.entry.js +2 -2
  106. package/dist/cjs/mds-tooltip.cjs.entry.js +17 -4
  107. package/dist/cjs/mds-tree-item.cjs.entry.js +2 -2
  108. package/dist/cjs/mds-tree.cjs.entry.js +2 -2
  109. package/dist/cjs/mds-url-view.cjs.entry.js +2 -2
  110. package/dist/cjs/mds-usage.cjs.entry.js +23 -4
  111. package/dist/cjs/mds-video-wall.cjs.entry.js +2 -2
  112. package/dist/cjs/mds-zero.cjs.entry.js +2 -2
  113. package/dist/cjs/string-RoXIuD3q.js +7 -0
  114. package/dist/collection/common/floating-controller.js +17 -3
  115. package/dist/collection/common/hash.js +15 -0
  116. package/dist/collection/common/navigation.js +60 -0
  117. package/dist/collection/common/string.js +3 -1
  118. package/dist/collection/common/yugop/random-text.js +5 -0
  119. package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
  120. package/dist/collection/components/mds-accordion/documentation.json +1 -1
  121. package/dist/collection/components/mds-accordion/mds-accordion.css +5 -5
  122. package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
  123. package/dist/collection/components/mds-accordion-item/documentation.json +1 -1
  124. package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +11 -11
  125. package/dist/collection/components/mds-accordion-timer/AGENTS.md +1 -1
  126. package/dist/collection/components/mds-accordion-timer/documentation.json +1 -1
  127. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +2 -2
  128. package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +1 -1
  129. package/dist/collection/components/mds-accordion-timer-item/documentation.json +1 -1
  130. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +6 -6
  131. package/dist/collection/components/mds-author/AGENTS.md +1 -1
  132. package/dist/collection/components/mds-author/documentation.json +2 -2
  133. package/dist/collection/components/mds-author/mds-author.css +2 -1
  134. package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
  135. package/dist/collection/components/mds-avatar/documentation.json +2 -2
  136. package/dist/collection/components/mds-avatar/mds-avatar.css +18 -17
  137. package/dist/collection/components/mds-avatar-stack/AGENTS.md +1 -1
  138. package/dist/collection/components/mds-avatar-stack/documentation.json +1 -1
  139. package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +3 -3
  140. package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
  141. package/dist/collection/components/mds-avatar-stack-item/documentation.json +1 -1
  142. package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.css +6 -6
  143. package/dist/collection/components/mds-badge/AGENTS.md +1 -1
  144. package/dist/collection/components/mds-badge/documentation.json +1 -1
  145. package/dist/collection/components/mds-badge/mds-badge.css +13 -13
  146. package/dist/collection/components/mds-banner/AGENTS.md +1 -1
  147. package/dist/collection/components/mds-banner/documentation.json +1 -1
  148. package/dist/collection/components/mds-banner/mds-banner.css +56 -56
  149. package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
  150. package/dist/collection/components/mds-benchmark-bar/documentation.json +1 -1
  151. package/dist/collection/components/mds-bibliography/AGENTS.md +1 -1
  152. package/dist/collection/components/mds-bibliography/documentation.json +2 -2
  153. package/dist/collection/components/mds-bibliography/mds-bibliography.css +8 -6
  154. package/dist/collection/components/mds-breadcrumb/AGENTS.md +1 -1
  155. package/dist/collection/components/mds-breadcrumb/documentation.json +1 -1
  156. package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +6 -6
  157. package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +1 -1
  158. package/dist/collection/components/mds-breadcrumb-item/documentation.json +1 -1
  159. package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +14 -13
  160. package/dist/collection/components/mds-button/AGENTS.md +5 -5
  161. package/dist/collection/components/mds-button/antipattern.md +20 -2
  162. package/dist/collection/components/mds-button/documentation.json +5 -5
  163. package/dist/collection/components/mds-button/mds-button.css +239 -417
  164. package/dist/collection/components/mds-button/mds-button.js +120 -38
  165. package/dist/collection/components/mds-button/pattern.md +34 -1
  166. package/dist/collection/components/mds-button-dropdown/AGENTS.md +2 -2
  167. package/dist/collection/components/mds-button-dropdown/documentation.json +2 -2
  168. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +10 -10
  169. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +12 -1
  170. package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
  171. package/dist/collection/components/mds-button-group/documentation.json +1 -1
  172. package/dist/collection/components/mds-calendar/AGENTS.md +2 -2
  173. package/dist/collection/components/mds-calendar/documentation.json +2 -2
  174. package/dist/collection/components/mds-calendar/mds-calendar.css +5 -5
  175. package/dist/collection/components/mds-calendar/mds-calendar.js +17 -4
  176. package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
  177. package/dist/collection/components/mds-calendar-cell/documentation.json +1 -1
  178. package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +58 -58
  179. package/dist/collection/components/mds-card/AGENTS.md +1 -1
  180. package/dist/collection/components/mds-card/documentation.json +1 -1
  181. package/dist/collection/components/mds-card/mds-card.css +2 -2
  182. package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
  183. package/dist/collection/components/mds-card-content/documentation.json +1 -1
  184. package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
  185. package/dist/collection/components/mds-card-footer/documentation.json +1 -1
  186. package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
  187. package/dist/collection/components/mds-card-header/documentation.json +1 -1
  188. package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
  189. package/dist/collection/components/mds-card-media/documentation.json +1 -1
  190. package/dist/collection/components/mds-chip/AGENTS.md +1 -1
  191. package/dist/collection/components/mds-chip/documentation.json +1 -1
  192. package/dist/collection/components/mds-chip/mds-chip.css +90 -90
  193. package/dist/collection/components/mds-details/AGENTS.md +1 -1
  194. package/dist/collection/components/mds-details/documentation.json +1 -1
  195. package/dist/collection/components/mds-details/mds-details.css +6 -6
  196. package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
  197. package/dist/collection/components/mds-dropdown/documentation.json +2 -2
  198. package/dist/collection/components/mds-dropdown/mds-dropdown.css +26 -26
  199. package/dist/collection/components/mds-emoji/AGENTS.md +2 -2
  200. package/dist/collection/components/mds-emoji/documentation.json +3 -3
  201. package/dist/collection/components/mds-emoji/mds-emoji.css +5 -5
  202. package/dist/collection/components/mds-entity/AGENTS.md +1 -1
  203. package/dist/collection/components/mds-entity/documentation.json +1 -1
  204. package/dist/collection/components/mds-entity/mds-entity.css +8 -8
  205. package/dist/collection/components/mds-file/AGENTS.md +2 -2
  206. package/dist/collection/components/mds-file/documentation.json +3 -3
  207. package/dist/collection/components/mds-file/mds-file.css +13 -13
  208. package/dist/collection/components/mds-file/mds-file.js +15 -9
  209. package/dist/collection/components/mds-file/pattern.md +1 -1
  210. package/dist/collection/components/mds-file-preview/AGENTS.md +1 -1
  211. package/dist/collection/components/mds-file-preview/documentation.json +1 -1
  212. package/dist/collection/components/mds-file-preview/mds-file-preview.css +21 -21
  213. package/dist/collection/components/mds-filter/AGENTS.md +5 -3
  214. package/dist/collection/components/mds-filter/documentation.json +3 -3
  215. package/dist/collection/components/mds-filter/mds-filter.css +16 -16
  216. package/dist/collection/components/mds-filter/mds-filter.js +97 -19
  217. package/dist/collection/components/mds-filter/pattern.md +34 -4
  218. package/dist/collection/components/mds-filter-item/AGENTS.md +9 -8
  219. package/dist/collection/components/mds-filter-item/documentation.json +4 -4
  220. package/dist/collection/components/mds-filter-item/mds-filter-item.css +27 -17
  221. package/dist/collection/components/mds-filter-item/mds-filter-item.js +65 -3
  222. package/dist/collection/components/mds-filter-item/pattern.md +5 -5
  223. package/dist/collection/components/mds-header/AGENTS.md +1 -1
  224. package/dist/collection/components/mds-header/documentation.json +1 -1
  225. package/dist/collection/components/mds-header/mds-header.css +21 -13
  226. package/dist/collection/components/mds-header-bar/AGENTS.md +2 -2
  227. package/dist/collection/components/mds-header-bar/documentation.json +2 -2
  228. package/dist/collection/components/mds-header-bar/mds-header-bar.css +5 -5
  229. package/dist/collection/components/mds-header-bar/mds-header-bar.js +12 -1
  230. package/dist/collection/components/mds-help/AGENTS.md +1 -1
  231. package/dist/collection/components/mds-help/documentation.json +2 -2
  232. package/dist/collection/components/mds-help/mds-help.css +1 -1
  233. package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +2 -2
  234. package/dist/collection/components/mds-horizontal-scroll/documentation.json +2 -2
  235. package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +10 -10
  236. package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +12 -1
  237. package/dist/collection/components/mds-hr/AGENTS.md +1 -1
  238. package/dist/collection/components/mds-hr/documentation.json +1 -1
  239. package/dist/collection/components/mds-hr/mds-hr.css +1 -1
  240. package/dist/collection/components/mds-icon/AGENTS.md +1 -1
  241. package/dist/collection/components/mds-icon/documentation.json +2 -2
  242. package/dist/collection/components/mds-img/AGENTS.md +1 -1
  243. package/dist/collection/components/mds-img/documentation.json +1 -1
  244. package/dist/collection/components/mds-img/mds-img.css +6 -6
  245. package/dist/collection/components/mds-input/AGENTS.md +3 -1
  246. package/dist/collection/components/mds-input/documentation.json +52 -4
  247. package/dist/collection/components/mds-input/mds-input.css +133 -62
  248. package/dist/collection/components/mds-input/mds-input.js +38 -2
  249. package/dist/collection/components/mds-input/pattern.md +15 -0
  250. package/dist/collection/components/mds-input-date/AGENTS.md +5 -2
  251. package/dist/collection/components/mds-input-date/documentation.json +50 -2
  252. package/dist/collection/components/mds-input-date/mds-input-date.css +52 -26
  253. package/dist/collection/components/mds-input-date/mds-input-date.js +46 -2
  254. package/dist/collection/components/mds-input-date-range/AGENTS.md +4 -2
  255. package/dist/collection/components/mds-input-date-range/documentation.json +50 -2
  256. package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +51 -25
  257. package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +34 -1
  258. package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +1 -1
  259. package/dist/collection/components/mds-input-date-range-preselection/documentation.json +1 -1
  260. package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.css +18 -18
  261. package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
  262. package/dist/collection/components/mds-input-field/documentation.json +1 -1
  263. package/dist/collection/components/mds-input-field/mds-input-field.css +7 -7
  264. package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
  265. package/dist/collection/components/mds-input-otp/documentation.json +1 -1
  266. package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
  267. package/dist/collection/components/mds-input-range/documentation.json +1 -1
  268. package/dist/collection/components/mds-input-range/mds-input-range.css +13 -12
  269. package/dist/collection/components/mds-input-select/AGENTS.md +7 -4
  270. package/dist/collection/components/mds-input-select/documentation.json +58 -7
  271. package/dist/collection/components/mds-input-select/mds-input-select.css +103 -29
  272. package/dist/collection/components/mds-input-select/mds-input-select.js +61 -7
  273. package/dist/collection/components/mds-input-select/pattern.md +3 -3
  274. package/dist/collection/components/mds-input-switch/AGENTS.md +2 -2
  275. package/dist/collection/components/mds-input-switch/documentation.json +2 -2
  276. package/dist/collection/components/mds-input-switch/mds-input-switch.css +86 -65
  277. package/dist/collection/components/mds-input-switch/mds-input-switch.js +19 -6
  278. package/dist/collection/components/mds-input-tip/AGENTS.md +1 -1
  279. package/dist/collection/components/mds-input-tip/documentation.json +1 -1
  280. package/dist/collection/components/mds-input-tip/mds-input-tip.css +1 -1
  281. package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
  282. package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
  283. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +21 -20
  284. package/dist/collection/components/mds-input-upload/AGENTS.md +1 -1
  285. package/dist/collection/components/mds-input-upload/documentation.json +1 -1
  286. package/dist/collection/components/mds-input-upload/mds-input-upload.css +13 -12
  287. package/dist/collection/components/mds-keyboard/AGENTS.md +1 -1
  288. package/dist/collection/components/mds-keyboard/documentation.json +1 -1
  289. package/dist/collection/components/mds-keyboard/mds-keyboard.css +4 -3
  290. package/dist/collection/components/mds-keyboard-key/AGENTS.md +1 -1
  291. package/dist/collection/components/mds-keyboard-key/documentation.json +1 -1
  292. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +2 -1
  293. package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
  294. package/dist/collection/components/mds-kpi/documentation.json +1 -1
  295. package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
  296. package/dist/collection/components/mds-kpi-item/documentation.json +1 -1
  297. package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +13 -13
  298. package/dist/collection/components/mds-label/AGENTS.md +1 -1
  299. package/dist/collection/components/mds-label/documentation.json +1 -1
  300. package/dist/collection/components/mds-label/mds-label.css +12 -12
  301. package/dist/collection/components/mds-list/AGENTS.md +2 -2
  302. package/dist/collection/components/mds-list/documentation.json +2 -2
  303. package/dist/collection/components/mds-list-item/AGENTS.md +2 -1
  304. package/dist/collection/components/mds-list-item/documentation.json +3 -3
  305. package/dist/collection/components/mds-list-item/mds-list-item.css +0 -18
  306. package/dist/collection/components/mds-list-item/mds-list-item.js +1 -2
  307. package/dist/collection/components/mds-list-item/pattern.md +11 -0
  308. package/dist/collection/components/mds-mention/AGENTS.md +1 -1
  309. package/dist/collection/components/mds-mention/documentation.json +1 -1
  310. package/dist/collection/components/mds-mention/mds-mention.css +2 -2
  311. package/dist/collection/components/mds-modal/AGENTS.md +2 -2
  312. package/dist/collection/components/mds-modal/documentation.json +2 -2
  313. package/dist/collection/components/mds-modal/mds-modal.css +5 -5
  314. package/dist/collection/components/mds-modal/mds-modal.js +14 -3
  315. package/dist/collection/components/mds-note/AGENTS.md +1 -1
  316. package/dist/collection/components/mds-note/documentation.json +1 -1
  317. package/dist/collection/components/mds-note/mds-note.css +3 -3
  318. package/dist/collection/components/mds-notification/AGENTS.md +1 -1
  319. package/dist/collection/components/mds-notification/documentation.json +2 -2
  320. package/dist/collection/components/mds-notification/mds-notification.css +4 -4
  321. package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
  322. package/dist/collection/components/mds-paginator/documentation.json +1 -1
  323. package/dist/collection/components/mds-paginator/mds-paginator.css +6 -6
  324. package/dist/collection/components/mds-paginator-item/AGENTS.md +1 -1
  325. package/dist/collection/components/mds-paginator-item/documentation.json +1 -1
  326. package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +31 -30
  327. package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
  328. package/dist/collection/components/mds-policy-ai/documentation.json +1 -1
  329. package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +8 -8
  330. package/dist/collection/components/mds-pref/AGENTS.md +2 -2
  331. package/dist/collection/components/mds-pref/documentation.json +14 -3
  332. package/dist/collection/components/mds-pref/mds-pref.js +39 -53
  333. package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
  334. package/dist/collection/components/mds-pref-animation/documentation.json +1 -1
  335. package/dist/collection/components/mds-pref-animation/mds-pref-animation.css +7 -7
  336. package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
  337. package/dist/collection/components/mds-pref-consumption/documentation.json +1 -1
  338. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.css +4 -4
  339. package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
  340. package/dist/collection/components/mds-pref-contrast/documentation.json +1 -1
  341. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.css +5 -5
  342. package/dist/collection/components/mds-pref-language/AGENTS.md +3 -3
  343. package/dist/collection/components/mds-pref-language/documentation.json +2 -2
  344. package/dist/collection/components/mds-pref-language/mds-pref-language.css +10 -2
  345. package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
  346. package/dist/collection/components/mds-pref-language-item/documentation.json +1 -1
  347. package/dist/collection/components/mds-pref-mode/AGENTS.md +3 -3
  348. package/dist/collection/components/mds-pref-mode/documentation.json +2 -2
  349. package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +5 -5
  350. package/dist/collection/components/mds-pref-theme/AGENTS.md +4 -3
  351. package/dist/collection/components/mds-pref-theme/documentation.json +2 -2
  352. package/dist/collection/components/mds-pref-theme/mds-pref-theme.css +10 -2
  353. package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +29 -2
  354. package/dist/collection/components/mds-pref-theme-item/AGENTS.md +1 -1
  355. package/dist/collection/components/mds-pref-theme-item/documentation.json +1 -1
  356. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +10 -9
  357. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +3 -2
  358. package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
  359. package/dist/collection/components/mds-price-table/documentation.json +1 -1
  360. package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
  361. package/dist/collection/components/mds-price-table-features/AGENTS.md +1 -1
  362. package/dist/collection/components/mds-price-table-features/documentation.json +1 -1
  363. package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +2 -2
  364. package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +1 -1
  365. package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +1 -1
  366. package/dist/collection/components/mds-price-table-features-cell/documentation.json +1 -1
  367. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +11 -11
  368. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +1 -1
  369. package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
  370. package/dist/collection/components/mds-price-table-features-row/documentation.json +1 -1
  371. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +12 -12
  372. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +1 -1
  373. package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
  374. package/dist/collection/components/mds-price-table-header/documentation.json +1 -1
  375. package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
  376. package/dist/collection/components/mds-price-table-list/AGENTS.md +1 -1
  377. package/dist/collection/components/mds-price-table-list/documentation.json +1 -1
  378. package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +8 -8
  379. package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +1 -1
  380. package/dist/collection/components/mds-price-table-list-item/AGENTS.md +1 -1
  381. package/dist/collection/components/mds-price-table-list-item/documentation.json +1 -1
  382. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +2 -2
  383. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
  384. package/dist/collection/components/mds-progress/AGENTS.md +1 -1
  385. package/dist/collection/components/mds-progress/documentation.json +1 -1
  386. package/dist/collection/components/mds-progress/mds-progress.css +20 -20
  387. package/dist/collection/components/mds-progress/mds-progress.js +1 -1
  388. package/dist/collection/components/mds-push-notification/AGENTS.md +1 -1
  389. package/dist/collection/components/mds-push-notification/documentation.json +1 -1
  390. package/dist/collection/components/mds-push-notification/mds-push-notification.js +1 -1
  391. package/dist/collection/components/mds-push-notification-item/AGENTS.md +1 -1
  392. package/dist/collection/components/mds-push-notification-item/documentation.json +1 -1
  393. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +16 -16
  394. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +2 -2
  395. package/dist/collection/components/mds-quote/AGENTS.md +1 -1
  396. package/dist/collection/components/mds-quote/documentation.json +1 -1
  397. package/dist/collection/components/mds-quote/mds-quote.css +6 -4
  398. package/dist/collection/components/mds-quote/mds-quote.js +1 -1
  399. package/dist/collection/components/mds-radial-menu/AGENTS.md +2 -2
  400. package/dist/collection/components/mds-radial-menu/documentation.json +2 -2
  401. package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +5 -3
  402. package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +12 -1
  403. package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
  404. package/dist/collection/components/mds-radial-menu-item/documentation.json +1 -1
  405. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
  406. package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
  407. package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
  408. package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +15 -15
  409. package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +1 -1
  410. package/dist/collection/components/mds-separator/AGENTS.md +1 -1
  411. package/dist/collection/components/mds-separator/documentation.json +1 -1
  412. package/dist/collection/components/mds-separator/mds-separator.css +2 -2
  413. package/dist/collection/components/mds-separator/mds-separator.js +1 -1
  414. package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
  415. package/dist/collection/components/mds-spinner/documentation.json +1 -1
  416. package/dist/collection/components/mds-spinner/mds-spinner.css +3 -3
  417. package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
  418. package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
  419. package/dist/collection/components/mds-status-bar/documentation.json +1 -1
  420. package/dist/collection/components/mds-status-bar/mds-status-bar.css +7 -6
  421. package/dist/collection/components/mds-status-bar/mds-status-bar.js +1 -1
  422. package/dist/collection/components/mds-stepper-bar/AGENTS.md +1 -1
  423. package/dist/collection/components/mds-stepper-bar/documentation.json +1 -1
  424. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +6 -6
  425. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +1 -1
  426. package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +1 -1
  427. package/dist/collection/components/mds-stepper-bar-item/documentation.json +1 -1
  428. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +15 -15
  429. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
  430. package/dist/collection/components/mds-tab/AGENTS.md +6 -5
  431. package/dist/collection/components/mds-tab/antipattern.md +27 -0
  432. package/dist/collection/components/mds-tab/documentation.json +6 -6
  433. package/dist/collection/components/mds-tab/mds-tab.css +61 -24
  434. package/dist/collection/components/mds-tab/mds-tab.js +34 -6
  435. package/dist/collection/components/mds-tab/pattern.md +33 -1
  436. package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
  437. package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
  438. package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +1 -1
  439. package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +1 -1
  440. package/dist/collection/components/mds-tab-bar-item/AGENTS.md +1 -1
  441. package/dist/collection/components/mds-tab-bar-item/documentation.json +1 -1
  442. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +14 -14
  443. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +1 -1
  444. package/dist/collection/components/mds-tab-item/AGENTS.md +5 -4
  445. package/dist/collection/components/mds-tab-item/antipattern.md +22 -1
  446. package/dist/collection/components/mds-tab-item/documentation.json +5 -5
  447. package/dist/collection/components/mds-tab-item/mds-tab-item.css +2 -2
  448. package/dist/collection/components/mds-tab-item/mds-tab-item.js +15 -3
  449. package/dist/collection/components/mds-tab-item/pattern.md +25 -7
  450. package/dist/collection/components/mds-table/AGENTS.md +4 -2
  451. package/dist/collection/components/mds-table/documentation.json +48 -4
  452. package/dist/collection/components/mds-table/mds-table.css +33 -22
  453. package/dist/collection/components/mds-table/mds-table.js +35 -1
  454. package/dist/collection/components/mds-table/pattern.md +30 -0
  455. package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
  456. package/dist/collection/components/mds-table-body/documentation.json +1 -1
  457. package/dist/collection/components/mds-table-body/mds-table-body.css +8 -8
  458. package/dist/collection/components/mds-table-body/mds-table-body.js +1 -1
  459. package/dist/collection/components/mds-table-cell/AGENTS.md +1 -1
  460. package/dist/collection/components/mds-table-cell/documentation.json +1 -1
  461. package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
  462. package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
  463. package/dist/collection/components/mds-table-footer/documentation.json +1 -1
  464. package/dist/collection/components/mds-table-footer/mds-table-footer.js +1 -1
  465. package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
  466. package/dist/collection/components/mds-table-header/documentation.json +1 -1
  467. package/dist/collection/components/mds-table-header/mds-table-header.js +1 -1
  468. package/dist/collection/components/mds-table-header-cell/AGENTS.md +14 -5
  469. package/dist/collection/components/mds-table-header-cell/antipattern.md +17 -10
  470. package/dist/collection/components/mds-table-header-cell/documentation.json +54 -6
  471. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +159 -82
  472. package/dist/collection/components/mds-table-header-cell/meta/event-detail.js +1 -0
  473. package/dist/collection/components/mds-table-header-cell/pattern.md +27 -6
  474. package/dist/collection/components/mds-table-row/AGENTS.md +1 -1
  475. package/dist/collection/components/mds-table-row/documentation.json +1 -1
  476. package/dist/collection/components/mds-table-row/mds-table-row.css +12 -12
  477. package/dist/collection/components/mds-table-row/mds-table-row.js +22 -16
  478. package/dist/collection/components/mds-text/AGENTS.md +3 -3
  479. package/dist/collection/components/mds-text/documentation.json +2 -2
  480. package/dist/collection/components/mds-text/mds-text.css +3 -3
  481. package/dist/collection/components/mds-text/mds-text.js +31 -26
  482. package/dist/collection/components/mds-toast/AGENTS.md +1 -1
  483. package/dist/collection/components/mds-toast/documentation.json +1 -1
  484. package/dist/collection/components/mds-toast/mds-toast.css +18 -18
  485. package/dist/collection/components/mds-toast/mds-toast.js +1 -1
  486. package/dist/collection/components/mds-tooltip/AGENTS.md +4 -2
  487. package/dist/collection/components/mds-tooltip/antipattern.md +14 -0
  488. package/dist/collection/components/mds-tooltip/documentation.json +46 -5
  489. package/dist/collection/components/mds-tooltip/mds-tooltip.css +10 -10
  490. package/dist/collection/components/mds-tooltip/mds-tooltip.js +41 -1
  491. package/dist/collection/components/mds-tooltip/pattern.md +9 -0
  492. package/dist/collection/components/mds-tree/AGENTS.md +1 -1
  493. package/dist/collection/components/mds-tree/documentation.json +1 -1
  494. package/dist/collection/components/mds-tree/mds-tree.css +13 -13
  495. package/dist/collection/components/mds-tree/mds-tree.js +1 -1
  496. package/dist/collection/components/mds-tree-item/AGENTS.md +1 -1
  497. package/dist/collection/components/mds-tree-item/documentation.json +1 -1
  498. package/dist/collection/components/mds-tree-item/mds-tree-item.js +1 -1
  499. package/dist/collection/components/mds-url-view/AGENTS.md +1 -1
  500. package/dist/collection/components/mds-url-view/documentation.json +1 -1
  501. package/dist/collection/components/mds-url-view/mds-url-view.css +7 -7
  502. package/dist/collection/components/mds-url-view/mds-url-view.js +1 -1
  503. package/dist/collection/components/mds-usage/AGENTS.md +5 -3
  504. package/dist/collection/components/mds-usage/antipattern.md +17 -1
  505. package/dist/collection/components/mds-usage/documentation.json +31 -5
  506. package/dist/collection/components/mds-usage/mds-usage.css +6 -6
  507. package/dist/collection/components/mds-usage/mds-usage.js +26 -4
  508. package/dist/collection/components/mds-usage/meta/variants.js +14 -18
  509. package/dist/collection/components/mds-usage/pattern.md +10 -0
  510. package/dist/collection/components/mds-video-wall/AGENTS.md +1 -1
  511. package/dist/collection/components/mds-video-wall/documentation.json +1 -1
  512. package/dist/collection/components/mds-video-wall/mds-video-wall.css +3 -3
  513. package/dist/collection/components/mds-video-wall/mds-video-wall.js +1 -1
  514. package/dist/collection/components/mds-zero/AGENTS.md +1 -1
  515. package/dist/collection/components/mds-zero/documentation.json +1 -1
  516. package/dist/collection/components/mds-zero/mds-zero.css +3 -3
  517. package/dist/collection/components/mds-zero/mds-zero.js +1 -1
  518. package/dist/collection/index.js +11 -4
  519. package/dist/collection/type/floating-ui.js +1 -0
  520. package/dist/collection/type/input.js +2 -0
  521. package/dist/components/index.js +1 -1
  522. package/dist/components/mds-accordion-item.js +1 -1
  523. package/dist/components/mds-accordion-timer-item.js +1 -1
  524. package/dist/components/mds-accordion-timer.js +1 -1
  525. package/dist/components/mds-accordion.js +1 -1
  526. package/dist/components/mds-avatar-stack-item.js +1 -1
  527. package/dist/components/mds-avatar-stack.js +1 -1
  528. package/dist/components/mds-avatar.js +1 -1
  529. package/dist/components/mds-badge.js +1 -1
  530. package/dist/components/mds-banner.js +1 -1
  531. package/dist/components/mds-benchmark-bar.js +1 -1
  532. package/dist/components/mds-bibliography.js +1 -1
  533. package/dist/components/mds-breadcrumb-item.js +1 -1
  534. package/dist/components/mds-breadcrumb.js +1 -1
  535. package/dist/components/mds-button-dropdown.js +1 -1
  536. package/dist/components/mds-button.js +1 -1
  537. package/dist/components/mds-calendar-cell.js +1 -1
  538. package/dist/components/mds-calendar.js +1 -1
  539. package/dist/components/mds-card-media.js +1 -1
  540. package/dist/components/mds-card.js +1 -1
  541. package/dist/components/mds-chip.js +1 -1
  542. package/dist/components/mds-details.js +1 -1
  543. package/dist/components/mds-dropdown.js +1 -1
  544. package/dist/components/mds-emoji.js +2 -2
  545. package/dist/components/mds-entity.js +1 -1
  546. package/dist/components/mds-file-preview.js +1 -1
  547. package/dist/components/mds-file.js +1 -18
  548. package/dist/components/mds-filter-item.js +1 -1
  549. package/dist/components/mds-filter.js +1 -1
  550. package/dist/components/mds-header-bar.js +1 -1
  551. package/dist/components/mds-header.js +1 -1
  552. package/dist/components/mds-help.js +1 -1
  553. package/dist/components/mds-horizontal-scroll.js +1 -1
  554. package/dist/components/mds-hr.js +1 -1
  555. package/dist/components/mds-img.js +1 -1
  556. package/dist/components/mds-input-date-range-preselection.js +1 -1
  557. package/dist/components/mds-input-date-range.js +1 -1
  558. package/dist/components/mds-input-date.js +1 -1
  559. package/dist/components/mds-input-field.js +1 -1
  560. package/dist/components/mds-input-otp.js +1 -1
  561. package/dist/components/mds-input-range.js +1 -1
  562. package/dist/components/mds-input-select.js +1 -1
  563. package/dist/components/mds-input-switch.js +1 -1
  564. package/dist/components/mds-input-tip-item.js +1 -1
  565. package/dist/components/mds-input-tip.js +1 -1
  566. package/dist/components/mds-input-upload.js +1 -1
  567. package/dist/components/mds-input.js +1 -1
  568. package/dist/components/mds-keyboard-key.js +1 -1
  569. package/dist/components/mds-keyboard.js +1 -1
  570. package/dist/components/mds-kpi-item.js +1 -1
  571. package/dist/components/mds-label.js +1 -1
  572. package/dist/components/mds-list-item.js +1 -1
  573. package/dist/components/mds-mention.js +1 -1
  574. package/dist/components/mds-modal.js +1 -1
  575. package/dist/components/mds-note.js +1 -1
  576. package/dist/components/mds-notification.js +1 -1
  577. package/dist/components/mds-paginator-item.js +1 -1
  578. package/dist/components/mds-paginator.js +1 -1
  579. package/dist/components/mds-policy-ai.js +1 -1
  580. package/dist/components/mds-pref-animation.js +1 -1
  581. package/dist/components/mds-pref-consumption.js +1 -1
  582. package/dist/components/mds-pref-contrast.js +1 -1
  583. package/dist/components/mds-pref-language-item.js +1 -1
  584. package/dist/components/mds-pref-language.js +1 -1
  585. package/dist/components/mds-pref-mode.js +1 -1
  586. package/dist/components/mds-pref-theme-item.js +1 -1
  587. package/dist/components/mds-pref-theme.js +1 -1
  588. package/dist/components/mds-pref.js +1 -1
  589. package/dist/components/mds-price-table-features-cell.js +1 -1
  590. package/dist/components/mds-price-table-features-row.js +1 -1
  591. package/dist/components/mds-price-table-features.js +1 -1
  592. package/dist/components/mds-price-table-header.js +1 -1
  593. package/dist/components/mds-price-table-list-item.js +1 -1
  594. package/dist/components/mds-price-table-list.js +1 -1
  595. package/dist/components/mds-price-table.js +1 -1
  596. package/dist/components/mds-progress.js +1 -1
  597. package/dist/components/mds-push-notification-item.js +1 -1
  598. package/dist/components/mds-push-notification.js +1 -1
  599. package/dist/components/mds-quote.js +1 -1
  600. package/dist/components/mds-radial-menu-item.js +1 -1
  601. package/dist/components/mds-radial-menu.js +1 -1
  602. package/dist/components/mds-radial-progress.js +1 -1
  603. package/dist/components/mds-separator.js +1 -1
  604. package/dist/components/mds-spinner.js +1 -1
  605. package/dist/components/mds-status-bar.js +1 -1
  606. package/dist/components/mds-stepper-bar-item.js +1 -1
  607. package/dist/components/mds-stepper-bar.js +1 -1
  608. package/dist/components/mds-tab-bar-item.js +1 -1
  609. package/dist/components/mds-tab-bar.js +1 -1
  610. package/dist/components/mds-tab-item.js +1 -1
  611. package/dist/components/mds-tab.js +1 -1
  612. package/dist/components/mds-table-body.js +1 -1
  613. package/dist/components/mds-table-cell.js +1 -1
  614. package/dist/components/mds-table-footer.js +1 -1
  615. package/dist/components/mds-table-header-cell.js +1 -1
  616. package/dist/components/mds-table-header.js +1 -1
  617. package/dist/components/mds-table-row.js +1 -1
  618. package/dist/components/mds-table.js +1 -1
  619. package/dist/components/mds-text.js +1 -1
  620. package/dist/components/mds-toast.js +1 -1
  621. package/dist/components/mds-tooltip.js +1 -1
  622. package/dist/components/mds-tree-item.js +1 -1
  623. package/dist/components/mds-tree.js +1 -1
  624. package/dist/components/mds-url-view.js +1 -1
  625. package/dist/components/mds-usage.js +1 -1
  626. package/dist/components/mds-video-wall.js +1 -1
  627. package/dist/components/mds-zero.js +1 -1
  628. package/dist/components/p--5KZXaZp.js +1 -0
  629. package/dist/components/p--OCrgFeE.js +1 -0
  630. package/dist/components/p-6LGfUDQ4.js +1 -0
  631. package/dist/components/p-6pgPWpGI.js +1 -0
  632. package/dist/components/p-B8BWxSho.js +1 -0
  633. package/dist/components/p-B9uIL9KO.js +1 -0
  634. package/dist/components/p-BBDliSai.js +1 -0
  635. package/dist/components/p-BCwcnHFh.js +1 -0
  636. package/dist/components/p-BRf-u585.js +1 -0
  637. package/dist/components/p-BSeokAdy.js +1 -0
  638. package/dist/components/p-BXUJgu8l.js +1 -0
  639. package/dist/components/p-BXYUyw7p.js +1 -0
  640. package/dist/components/{p-s2Gu6hY7.js → p-BcUY-9n7.js} +1 -1
  641. package/dist/components/p-BfgJ-hHQ.js +1 -0
  642. package/dist/components/{p-x_c_51aL.js → p-CIfGjW_Z.js} +1 -1
  643. package/dist/components/p-CMp9rP7L.js +1 -0
  644. package/dist/components/p-CUmJoPAI.js +1 -0
  645. package/dist/components/p-CZjHixVB.js +1 -0
  646. package/dist/components/p-Ck0q_n7I.js +1 -0
  647. package/dist/components/p-CrCa_6a1.js +8 -0
  648. package/dist/components/p-Cv7lqHIc.js +1 -0
  649. package/dist/components/p-Cw6_ooFx.js +1 -0
  650. package/dist/components/p-DGYRngAi.js +1 -0
  651. package/dist/components/p-DHu8X7zF.js +1 -0
  652. package/dist/components/{p-BW24ByN-.js → p-DLCcW1Q5.js} +1 -1
  653. package/dist/components/p-DOzcuSrZ.js +1 -0
  654. package/dist/components/p-DZPHWQtD.js +1 -0
  655. package/dist/components/p-DlRjt7nE.js +1 -0
  656. package/dist/components/p-HSM_x8fD.js +1 -0
  657. package/dist/components/p-JMPfVnGv.js +1 -0
  658. package/dist/components/p-ay5NzZ_x.js +1 -0
  659. package/dist/components/p-lNY_3s6S.js +1 -0
  660. package/dist/components/p-qYRtWYC8.js +1 -0
  661. package/dist/documentation.json +469 -84
  662. package/dist/esm/_commonjsHelpers-B85MJLTf.js +5 -0
  663. package/dist/esm/{floating-controller-BTYkH_Ih.js → floating-controller-D5-8D9mH.js} +18 -4
  664. package/dist/esm/{floating-ui.dom-CHAGzQT-.js → floating-ui.dom-JMPfVnGv.js} +146 -94
  665. package/dist/esm/icon-pNJmnrhq.js +16 -0
  666. package/dist/esm/index-BxPbQB28.js +40 -40
  667. package/dist/esm/index.js +62 -1
  668. package/dist/esm/loader.js +1 -1
  669. package/dist/esm/magma-components.js +1 -1
  670. package/dist/esm/mds-accordion-item.entry.js +1 -1
  671. package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
  672. package/dist/esm/mds-accordion-timer.entry.js +1 -1
  673. package/dist/esm/mds-accordion.entry.js +1 -1
  674. package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
  675. package/dist/esm/mds-avatar-stack.entry.js +1 -1
  676. package/dist/esm/mds-avatar.entry.js +2 -2
  677. package/dist/esm/mds-badge.entry.js +1 -1
  678. package/dist/esm/mds-banner_3.entry.js +3 -3
  679. package/dist/esm/mds-bibliography.entry.js +1 -1
  680. package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
  681. package/dist/esm/mds-breadcrumb.entry.js +1 -1
  682. package/dist/esm/mds-button-dropdown.entry.js +30 -2
  683. package/dist/esm/mds-button_3.entry.js +123 -56
  684. package/dist/esm/mds-calendar_2.entry.js +59 -6
  685. package/dist/esm/mds-card-media.entry.js +1 -1
  686. package/dist/esm/mds-card.entry.js +1 -1
  687. package/dist/esm/mds-details.entry.js +1 -1
  688. package/dist/esm/mds-dropdown.entry.js +3 -3
  689. package/dist/esm/mds-emoji.entry.js +1 -1
  690. package/dist/esm/mds-entity.entry.js +1 -1
  691. package/dist/esm/mds-file-preview.entry.js +1 -1
  692. package/dist/esm/mds-file.entry.js +30 -7521
  693. package/dist/esm/mds-filter-item.entry.js +89 -3
  694. package/dist/esm/mds-filter.entry.js +114 -20
  695. package/dist/esm/mds-header-bar.entry.js +29 -2
  696. package/dist/esm/mds-header.entry.js +1 -1
  697. package/dist/esm/mds-horizontal-scroll.entry.js +38 -2
  698. package/dist/esm/mds-hr.entry.js +1 -1
  699. package/dist/esm/mds-img.entry.js +1 -1
  700. package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
  701. package/dist/esm/mds-input-date-range.entry.js +16 -2
  702. package/dist/esm/mds-input-date.entry.js +36 -4
  703. package/dist/esm/mds-input-field.entry.js +1 -1
  704. package/dist/esm/mds-input-range.entry.js +1 -1
  705. package/dist/esm/mds-input-select.entry.js +32 -5
  706. package/dist/esm/mds-input-switch_2.entry.js +21 -8
  707. package/dist/esm/mds-input-tip_2.entry.js +2 -2
  708. package/dist/esm/mds-input-upload.entry.js +1 -1
  709. package/dist/esm/mds-input.entry.js +12 -3
  710. package/dist/esm/mds-keyboard-key.entry.js +1 -1
  711. package/dist/esm/mds-keyboard.entry.js +1 -1
  712. package/dist/esm/mds-kpi-item.entry.js +1 -1
  713. package/dist/esm/mds-label.entry.js +1 -1
  714. package/dist/esm/mds-list-item.entry.js +2 -3
  715. package/dist/esm/mds-mention.entry.js +1 -1
  716. package/dist/esm/mds-modal.entry.js +31 -4
  717. package/dist/esm/mds-note.entry.js +1 -1
  718. package/dist/esm/mds-notification.entry.js +2 -2
  719. package/dist/esm/mds-paginator-item.entry.js +1 -1
  720. package/dist/esm/mds-paginator.entry.js +1 -1
  721. package/dist/esm/mds-policy-ai.entry.js +1 -1
  722. package/dist/esm/mds-pref-animation.entry.js +1 -1
  723. package/dist/esm/mds-pref-consumption.entry.js +1 -1
  724. package/dist/esm/mds-pref-contrast.entry.js +1 -1
  725. package/dist/esm/mds-pref-language.entry.js +1 -1
  726. package/dist/esm/mds-pref-mode.entry.js +1 -1
  727. package/dist/esm/mds-pref-theme-item.entry.js +4 -3
  728. package/dist/esm/mds-pref-theme.entry.js +30 -3
  729. package/dist/esm/mds-pref.entry.js +24 -53
  730. package/dist/esm/mds-price-table-features-cell.entry.js +2 -2
  731. package/dist/esm/mds-price-table-features-row.entry.js +2 -2
  732. package/dist/esm/mds-price-table-features.entry.js +2 -2
  733. package/dist/esm/mds-price-table-header.entry.js +1 -1
  734. package/dist/esm/mds-price-table-list-item.entry.js +2 -2
  735. package/dist/esm/mds-price-table-list.entry.js +2 -2
  736. package/dist/esm/mds-price-table.entry.js +1 -1
  737. package/dist/esm/mds-progress_2.entry.js +4 -4
  738. package/dist/esm/mds-push-notification-item.entry.js +4 -4
  739. package/dist/esm/mds-push-notification.entry.js +2 -2
  740. package/dist/esm/mds-quote.entry.js +2 -2
  741. package/dist/esm/mds-radial-menu-item.entry.js +2 -2
  742. package/dist/esm/mds-radial-menu.entry.js +40 -4
  743. package/dist/esm/mds-separator.entry.js +2 -2
  744. package/dist/esm/mds-status-bar.entry.js +2 -2
  745. package/dist/esm/mds-stepper-bar-item.entry.js +2 -2
  746. package/dist/esm/mds-stepper-bar.entry.js +2 -2
  747. package/dist/esm/mds-tab-bar-item.entry.js +2 -2
  748. package/dist/esm/mds-tab-bar.entry.js +2 -2
  749. package/dist/esm/mds-tab_2.entry.js +43 -8
  750. package/dist/esm/mds-table-body.entry.js +2 -2
  751. package/dist/esm/mds-table-footer.entry.js +2 -2
  752. package/dist/esm/mds-table-header-cell.entry.js +117 -78
  753. package/dist/esm/mds-table-header.entry.js +2 -2
  754. package/dist/esm/mds-table-row.entry.js +23 -17
  755. package/dist/esm/mds-table.entry.js +9 -2
  756. package/dist/esm/mds-text.entry.js +37 -27
  757. package/dist/esm/mds-toast.entry.js +2 -2
  758. package/dist/esm/mds-tooltip.entry.js +17 -4
  759. package/dist/esm/mds-tree-item.entry.js +2 -2
  760. package/dist/esm/mds-tree.entry.js +2 -2
  761. package/dist/esm/mds-url-view.entry.js +2 -2
  762. package/dist/esm/mds-usage.entry.js +23 -4
  763. package/dist/esm/mds-video-wall.entry.js +2 -2
  764. package/dist/esm/mds-zero.entry.js +2 -2
  765. package/dist/esm/string-6pgPWpGI.js +5 -0
  766. package/dist/esm-es5/_commonjsHelpers-B85MJLTf.js +1 -0
  767. package/dist/esm-es5/{floating-controller-BTYkH_Ih.js → floating-controller-D5-8D9mH.js} +11 -5
  768. package/dist/esm-es5/{floating-ui.dom-CHAGzQT-.js → floating-ui.dom-JMPfVnGv.js} +80 -48
  769. package/dist/esm-es5/icon-pNJmnrhq.js +1 -0
  770. package/dist/esm-es5/index-BxPbQB28.js +36 -36
  771. package/dist/esm-es5/index.js +37 -20
  772. package/dist/esm-es5/loader.js +1 -1
  773. package/dist/esm-es5/magma-components.js +1 -1
  774. package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
  775. package/dist/esm-es5/mds-accordion-timer-item.entry.js +2 -2
  776. package/dist/esm-es5/mds-accordion-timer.entry.js +2 -2
  777. package/dist/esm-es5/mds-accordion.entry.js +2 -2
  778. package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
  779. package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
  780. package/dist/esm-es5/mds-avatar.entry.js +2 -2
  781. package/dist/esm-es5/mds-badge.entry.js +1 -1
  782. package/dist/esm-es5/mds-banner_3.entry.js +3 -3
  783. package/dist/esm-es5/mds-bibliography.entry.js +2 -2
  784. package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
  785. package/dist/esm-es5/mds-breadcrumb.entry.js +2 -2
  786. package/dist/esm-es5/mds-button-dropdown.entry.js +3 -3
  787. package/dist/esm-es5/mds-button_3.entry.js +50 -7
  788. package/dist/esm-es5/mds-calendar_2.entry.js +8 -6
  789. package/dist/esm-es5/mds-card-media.entry.js +1 -1
  790. package/dist/esm-es5/mds-card.entry.js +5 -5
  791. package/dist/esm-es5/mds-details.entry.js +2 -2
  792. package/dist/esm-es5/mds-dropdown.entry.js +16 -16
  793. package/dist/esm-es5/mds-emoji.entry.js +18 -18
  794. package/dist/esm-es5/mds-entity.entry.js +1 -1
  795. package/dist/esm-es5/mds-file-preview.entry.js +7 -7
  796. package/dist/esm-es5/mds-file.entry.js +15 -2835
  797. package/dist/esm-es5/mds-filter-item.entry.js +16 -1
  798. package/dist/esm-es5/mds-filter.entry.js +18 -2
  799. package/dist/esm-es5/mds-header-bar.entry.js +3 -3
  800. package/dist/esm-es5/mds-header.entry.js +7 -7
  801. package/dist/esm-es5/mds-horizontal-scroll.entry.js +13 -13
  802. package/dist/esm-es5/mds-hr.entry.js +1 -1
  803. package/dist/esm-es5/mds-img.entry.js +1 -1
  804. package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
  805. package/dist/esm-es5/mds-input-date-range.entry.js +7 -2
  806. package/dist/esm-es5/mds-input-date.entry.js +8 -3
  807. package/dist/esm-es5/mds-input-field.entry.js +1 -1
  808. package/dist/esm-es5/mds-input-range.entry.js +7 -7
  809. package/dist/esm-es5/mds-input-select.entry.js +14 -5
  810. package/dist/esm-es5/mds-input-switch_2.entry.js +17 -9
  811. package/dist/esm-es5/mds-input-tip_2.entry.js +2 -2
  812. package/dist/esm-es5/mds-input-upload.entry.js +1 -1
  813. package/dist/esm-es5/mds-input.entry.js +30 -25
  814. package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
  815. package/dist/esm-es5/mds-keyboard.entry.js +1 -1
  816. package/dist/esm-es5/mds-kpi-item.entry.js +2 -2
  817. package/dist/esm-es5/mds-label.entry.js +2 -2
  818. package/dist/esm-es5/mds-list-item.entry.js +2 -2
  819. package/dist/esm-es5/mds-mention.entry.js +1 -1
  820. package/dist/esm-es5/mds-modal.entry.js +5 -5
  821. package/dist/esm-es5/mds-note.entry.js +1 -1
  822. package/dist/esm-es5/mds-notification.entry.js +3 -3
  823. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  824. package/dist/esm-es5/mds-paginator.entry.js +3 -3
  825. package/dist/esm-es5/mds-policy-ai.entry.js +1 -1
  826. package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
  827. package/dist/esm-es5/mds-pref-consumption.entry.js +2 -2
  828. package/dist/esm-es5/mds-pref-contrast.entry.js +2 -2
  829. package/dist/esm-es5/mds-pref-language.entry.js +1 -1
  830. package/dist/esm-es5/mds-pref-mode.entry.js +1 -1
  831. package/dist/esm-es5/mds-pref-theme-item.entry.js +3 -3
  832. package/dist/esm-es5/mds-pref-theme.entry.js +15 -7
  833. package/dist/esm-es5/mds-pref.entry.js +14 -5
  834. package/dist/esm-es5/mds-price-table-features-cell.entry.js +2 -2
  835. package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
  836. package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
  837. package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
  838. package/dist/esm-es5/mds-price-table-list-item.entry.js +2 -2
  839. package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
  840. package/dist/esm-es5/mds-price-table.entry.js +1 -1
  841. package/dist/esm-es5/mds-progress_2.entry.js +3 -3
  842. package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
  843. package/dist/esm-es5/mds-push-notification.entry.js +2 -2
  844. package/dist/esm-es5/mds-quote.entry.js +2 -2
  845. package/dist/esm-es5/mds-radial-menu-item.entry.js +2 -2
  846. package/dist/esm-es5/mds-radial-menu.entry.js +2 -2
  847. package/dist/esm-es5/mds-separator.entry.js +1 -1
  848. package/dist/esm-es5/mds-status-bar.entry.js +2 -2
  849. package/dist/esm-es5/mds-stepper-bar-item.entry.js +3 -3
  850. package/dist/esm-es5/mds-stepper-bar.entry.js +4 -4
  851. package/dist/esm-es5/mds-tab-bar-item.entry.js +3 -3
  852. package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
  853. package/dist/esm-es5/mds-tab_2.entry.js +25 -4
  854. package/dist/esm-es5/mds-table-body.entry.js +1 -1
  855. package/dist/esm-es5/mds-table-footer.entry.js +1 -1
  856. package/dist/esm-es5/mds-table-header-cell.entry.js +22 -3
  857. package/dist/esm-es5/mds-table-header.entry.js +4 -4
  858. package/dist/esm-es5/mds-table-row.entry.js +12 -4
  859. package/dist/esm-es5/mds-table.entry.js +11 -5
  860. package/dist/esm-es5/mds-text.entry.js +25 -7
  861. package/dist/esm-es5/mds-toast.entry.js +2 -2
  862. package/dist/esm-es5/mds-tooltip.entry.js +8 -3
  863. package/dist/esm-es5/mds-tree-item.entry.js +2 -2
  864. package/dist/esm-es5/mds-tree.entry.js +3 -3
  865. package/dist/esm-es5/mds-url-view.entry.js +2 -2
  866. package/dist/esm-es5/mds-usage.entry.js +9 -3
  867. package/dist/esm-es5/mds-video-wall.entry.js +2 -2
  868. package/dist/esm-es5/mds-zero.entry.js +1 -1
  869. package/dist/esm-es5/string-6pgPWpGI.js +2 -0
  870. package/dist/hydrate/index.js +1580 -8246
  871. package/dist/hydrate/index.mjs +1580 -8246
  872. package/dist/magma-components/index.esm.js +1 -1
  873. package/dist/magma-components/magma-components.esm.js +1 -1
  874. package/dist/magma-components/p-00ce5c81.entry.js +1 -0
  875. package/dist/magma-components/{p-5c94e0c2.system.entry.js → p-00ff586a.system.entry.js} +2 -2
  876. package/dist/magma-components/p-01f05a56.entry.js +1 -0
  877. package/dist/magma-components/p-0345cbd0.system.entry.js +83 -0
  878. package/dist/magma-components/p-03a6a8bd.system.entry.js +46 -0
  879. package/dist/magma-components/p-05de42e1.system.entry.js +1 -0
  880. package/dist/magma-components/p-063bccb3.entry.js +1 -0
  881. package/dist/magma-components/p-0c89c485.entry.js +1 -0
  882. package/dist/magma-components/p-0d94a2b8.entry.js +8 -0
  883. package/dist/magma-components/{p-ee1e7f07.system.entry.js → p-0d97e28d.system.entry.js} +1 -1
  884. package/dist/magma-components/p-108e31e6.entry.js +1 -0
  885. package/dist/magma-components/p-114f0bb7.system.entry.js +14 -0
  886. package/dist/magma-components/{p-e8ed096b.entry.js → p-121730d1.entry.js} +1 -1
  887. package/dist/magma-components/p-137116df.entry.js +1 -0
  888. package/dist/magma-components/p-13b0babc.system.entry.js +1 -0
  889. package/dist/magma-components/p-14a108e8.system.entry.js +8 -0
  890. package/dist/magma-components/p-14eadf95.system.entry.js +21 -0
  891. package/dist/magma-components/p-154aff83.entry.js +1 -0
  892. package/dist/magma-components/p-155f79f4.system.entry.js +47 -0
  893. package/dist/magma-components/p-17b62839.entry.js +1 -0
  894. package/dist/magma-components/{p-0a551e86.entry.js → p-1802d6a7.entry.js} +1 -1
  895. package/dist/magma-components/{p-91c4015f.system.entry.js → p-188d9770.system.entry.js} +1 -1
  896. package/dist/magma-components/p-18ba4766.entry.js +1 -0
  897. package/dist/magma-components/p-1c63801f.system.entry.js +11 -0
  898. package/dist/magma-components/p-1c6a507c.system.entry.js +17 -0
  899. package/dist/magma-components/p-1e2388be.entry.js +1 -0
  900. package/dist/magma-components/{p-eaff7300.entry.js → p-22e9a507.entry.js} +1 -1
  901. package/dist/magma-components/p-24a9871a.system.entry.js +1 -0
  902. package/dist/magma-components/p-26332bce.system.entry.js +1 -0
  903. package/dist/magma-components/p-26c85354.system.entry.js +1 -0
  904. package/dist/magma-components/p-2708561b.system.entry.js +10 -0
  905. package/dist/magma-components/{p-a4a83a63.entry.js → p-2710ddc4.entry.js} +1 -1
  906. package/dist/magma-components/p-294241fa.entry.js +1 -0
  907. package/dist/magma-components/p-2b2d0910.system.entry.js +1 -0
  908. package/dist/magma-components/p-2c940d19.entry.js +1 -0
  909. package/dist/magma-components/{p-93d39066.entry.js → p-2de5f5fe.entry.js} +1 -1
  910. package/dist/magma-components/p-2e74231d.system.entry.js +4 -0
  911. package/dist/magma-components/p-2e83f801.system.entry.js +1 -0
  912. package/dist/magma-components/{p-dd58f9ee.entry.js → p-2f0815f3.entry.js} +1 -1
  913. package/dist/magma-components/p-30d36dfe.entry.js +1 -0
  914. package/dist/magma-components/p-323c7aa4.system.entry.js +25 -0
  915. package/dist/magma-components/{p-493fb2f4.system.entry.js → p-32e077c0.system.entry.js} +2 -2
  916. package/dist/magma-components/p-334b305d.system.entry.js +16 -0
  917. package/dist/magma-components/{p-6c18c40e.system.entry.js → p-341994b3.system.entry.js} +1 -1
  918. package/dist/magma-components/p-35434d4b.system.entry.js +32 -0
  919. package/dist/magma-components/p-37495e03.entry.js +1 -0
  920. package/dist/magma-components/{p-439c9ce3.system.entry.js → p-38e0379a.system.entry.js} +2 -2
  921. package/dist/magma-components/p-3b91efd1.entry.js +1 -0
  922. package/dist/magma-components/p-3dc4db04.system.entry.js +16 -0
  923. package/dist/magma-components/p-3f0e82bc.entry.js +1 -0
  924. package/dist/magma-components/p-3fa6cf85.system.entry.js +1 -0
  925. package/dist/magma-components/p-40e97485.entry.js +1 -0
  926. package/dist/magma-components/p-4159c306.entry.js +1 -0
  927. package/dist/magma-components/p-42411854.system.entry.js +102 -0
  928. package/dist/magma-components/{p-2f520704.entry.js → p-42ebba8c.entry.js} +1 -1
  929. package/dist/magma-components/p-4356d96e.system.entry.js +21 -0
  930. package/dist/magma-components/p-4577948d.system.entry.js +12 -0
  931. package/dist/magma-components/p-4658a200.entry.js +1 -0
  932. package/dist/magma-components/{p-b431ca8a.entry.js → p-4cfa925a.entry.js} +1 -1
  933. package/dist/magma-components/p-4dfeb655.system.entry.js +23 -0
  934. package/dist/magma-components/p-4ef19542.entry.js +1 -0
  935. package/dist/magma-components/{p-ac81f63a.system.entry.js → p-508e10b5.system.entry.js} +1 -1
  936. package/dist/magma-components/p-522fd3d0.system.entry.js +4 -0
  937. package/dist/magma-components/p-528d913c.system.entry.js +17 -0
  938. package/dist/magma-components/p-569cbe13.entry.js +1 -0
  939. package/dist/magma-components/p-574c2c13.system.entry.js +222 -0
  940. package/dist/magma-components/{p-218d8254.system.entry.js → p-584a4ee8.system.entry.js} +1 -1
  941. package/dist/magma-components/{p-577db922.entry.js → p-595fde64.entry.js} +1 -1
  942. package/dist/magma-components/p-5989cdf2.system.entry.js +16 -0
  943. package/dist/magma-components/p-5c17a324.entry.js +1 -0
  944. package/dist/magma-components/p-5df91427.system.entry.js +15 -0
  945. package/dist/magma-components/p-5fcc1455.entry.js +1 -0
  946. package/dist/magma-components/p-61638aa3.entry.js +1 -0
  947. package/dist/magma-components/p-634727e6.system.entry.js +22 -0
  948. package/dist/magma-components/{p-03c2060d.entry.js → p-6465c8f4.entry.js} +1 -1
  949. package/dist/magma-components/p-6764b13a.entry.js +1 -0
  950. package/dist/magma-components/p-6812f01b.entry.js +1 -0
  951. package/dist/magma-components/{p-4211ce6c.system.entry.js → p-6901428b.system.entry.js} +1 -1
  952. package/dist/magma-components/p-699a7926.entry.js +1 -0
  953. package/dist/magma-components/p-69d6cc9e.system.entry.js +7 -0
  954. package/dist/magma-components/p-6a798061.entry.js +1 -0
  955. package/dist/magma-components/p-6d350c7c.entry.js +1 -0
  956. package/dist/magma-components/p-6f5a1248.entry.js +1 -0
  957. package/dist/magma-components/p-6fba5e6c.entry.js +1 -0
  958. package/dist/magma-components/p-6fd9a2ae.entry.js +1 -0
  959. package/dist/magma-components/p-6pgPWpGI.js +1 -0
  960. package/dist/magma-components/p-70caf05b.system.entry.js +10 -0
  961. package/dist/magma-components/{p-832883c4.entry.js → p-70cc167f.entry.js} +1 -1
  962. package/dist/magma-components/{p-86f4b6eb.system.entry.js → p-736c0e25.system.entry.js} +2 -2
  963. package/dist/magma-components/p-73e593a2.system.entry.js +95 -0
  964. package/dist/magma-components/p-7450a7a7.system.entry.js +49 -0
  965. package/dist/magma-components/p-7535328a.entry.js +1 -0
  966. package/dist/magma-components/{p-4cb88b06.system.entry.js → p-76f02296.system.entry.js} +1 -1
  967. package/dist/magma-components/p-79bc2e81.entry.js +1 -0
  968. package/dist/magma-components/p-79dc2243.entry.js +1 -0
  969. package/dist/magma-components/p-7b1c6eb0.entry.js +1 -0
  970. package/dist/magma-components/p-7b8b51c8.entry.js +1 -0
  971. package/dist/magma-components/p-7bc0a6c4.entry.js +1 -0
  972. package/dist/magma-components/{p-8d53bd61.system.entry.js → p-7c8e79a7.system.entry.js} +1 -1
  973. package/dist/magma-components/p-7c90298a.entry.js +1 -0
  974. package/dist/magma-components/p-7e02237b.entry.js +1 -0
  975. package/dist/magma-components/{p-f733ae92.system.entry.js → p-7f247e64.system.entry.js} +2 -2
  976. package/dist/magma-components/p-808f6796.entry.js +1 -0
  977. package/dist/magma-components/{p-e213640b.entry.js → p-82480df5.entry.js} +1 -1
  978. package/dist/magma-components/p-842b1dfc.entry.js +1 -0
  979. package/dist/magma-components/p-88c7be3d.system.entry.js +68 -0
  980. package/dist/magma-components/p-89733d3a.system.entry.js +14 -0
  981. package/dist/magma-components/p-8c75425d.entry.js +1 -0
  982. package/dist/magma-components/{p-5ac9e2f4.entry.js → p-8c76410b.entry.js} +1 -1
  983. package/dist/magma-components/p-8cdad12f.entry.js +1 -0
  984. package/dist/magma-components/p-8d2a6896.entry.js +1 -0
  985. package/dist/magma-components/p-8d7835e2.system.entry.js +10 -0
  986. package/dist/magma-components/p-8f039ca0.system.entry.js +7 -0
  987. package/dist/magma-components/p-8f54cf62.system.entry.js +4 -0
  988. package/dist/magma-components/p-8f6bd147.entry.js +1 -0
  989. package/dist/magma-components/p-9017022c.system.entry.js +15 -0
  990. package/dist/magma-components/p-909f5b60.system.entry.js +55 -0
  991. package/dist/magma-components/p-94e9f2be.system.entry.js +11 -0
  992. package/dist/magma-components/p-976bb373.system.entry.js +90 -0
  993. package/dist/magma-components/p-97d82884.system.entry.js +16 -0
  994. package/dist/magma-components/p-97de86c6.system.entry.js +16 -0
  995. package/dist/magma-components/p-97e9a197.system.entry.js +32 -0
  996. package/dist/magma-components/p-9a936cae.system.entry.js +45 -0
  997. package/dist/magma-components/p-9c6d184f.entry.js +1 -0
  998. package/dist/magma-components/p-9db0a6e9.entry.js +1 -0
  999. package/dist/magma-components/p-9e662528.entry.js +1 -0
  1000. package/dist/magma-components/{p-7ffda4f5.entry.js → p-9ff02a82.entry.js} +1 -1
  1001. package/dist/magma-components/p-B85MJLTf.js +1 -0
  1002. package/dist/magma-components/p-BJqUjYIG.system.js +1 -0
  1003. package/dist/magma-components/{p-Dg8nxRUX.system.js → p-BcYSdbK0.system.js} +85 -53
  1004. package/dist/magma-components/p-BeYLDgbf.js +1 -0
  1005. package/dist/magma-components/p-CKfEQ187.system.js +107 -0
  1006. package/dist/magma-components/p-D6-Ny6z1.system.js +1 -0
  1007. package/dist/magma-components/{p-BPNsbMrg.system.js → p-DhhAXEdA.system.js} +11 -5
  1008. package/dist/magma-components/p-JMPfVnGv.js +1 -0
  1009. package/dist/magma-components/p-ZDRIVCAt.system.js +1 -1
  1010. package/dist/magma-components/p-a3e3a653.system.entry.js +81 -0
  1011. package/dist/magma-components/p-a4c26b4d.system.entry.js +19 -0
  1012. package/dist/magma-components/{p-dcc3be64.system.entry.js → p-a61c7ae9.system.entry.js} +1 -1
  1013. package/dist/magma-components/p-a653e096.entry.js +1 -0
  1014. package/dist/magma-components/p-a8bf46cb.system.entry.js +1 -0
  1015. package/dist/magma-components/p-a9736d68.system.entry.js +4 -0
  1016. package/dist/magma-components/p-ac4435e7.entry.js +1 -0
  1017. package/dist/magma-components/p-ac873ab4.entry.js +1 -0
  1018. package/dist/magma-components/p-acae292f.system.entry.js +28 -0
  1019. package/dist/magma-components/p-add1a8d0.system.entry.js +7 -0
  1020. package/dist/magma-components/p-b1a0e56e.system.entry.js +42 -0
  1021. package/dist/magma-components/p-b33a6f7e.system.entry.js +13 -0
  1022. package/dist/magma-components/p-b492dd4c.entry.js +1 -0
  1023. package/dist/magma-components/p-b99cac43.entry.js +1 -0
  1024. package/dist/magma-components/p-baf0359b.entry.js +1 -0
  1025. package/dist/magma-components/p-bbd414dc.entry.js +1 -0
  1026. package/dist/magma-components/p-be1aad5f.entry.js +1 -0
  1027. package/dist/magma-components/p-bf05f9f3.entry.js +1 -0
  1028. package/dist/magma-components/p-bf8c6647.system.entry.js +11 -0
  1029. package/dist/magma-components/p-bfe19e4b.entry.js +1 -0
  1030. package/dist/magma-components/p-c1a7266a.entry.js +1 -0
  1031. package/dist/magma-components/p-c3585de7.system.entry.js +7 -0
  1032. package/dist/magma-components/p-c45d9a64.system.entry.js +32 -0
  1033. package/dist/magma-components/p-c4ceaef6.system.entry.js +10 -0
  1034. package/dist/magma-components/{p-57762bae.entry.js → p-c575cb7b.entry.js} +1 -1
  1035. package/dist/magma-components/p-c644c5fc.system.entry.js +1 -0
  1036. package/dist/magma-components/{p-61bedbe7.system.entry.js → p-c69ec735.system.entry.js} +8 -3
  1037. package/dist/magma-components/p-c7d84d1c.system.entry.js +1 -0
  1038. package/dist/magma-components/p-cb8b45fd.entry.js +1 -0
  1039. package/dist/magma-components/p-cbfd8b10.system.entry.js +16 -0
  1040. package/dist/magma-components/{p-ed897f9f.entry.js → p-ce46191c.entry.js} +1 -1
  1041. package/dist/magma-components/p-cebe7b52.entry.js +1 -0
  1042. package/dist/magma-components/p-cefdc01f.system.entry.js +7 -0
  1043. package/dist/magma-components/{p-f29a059d.system.entry.js → p-d025a34f.system.entry.js} +1 -1
  1044. package/dist/magma-components/p-d1c47baa.entry.js +1 -0
  1045. package/dist/magma-components/p-d269bfb0.entry.js +1 -0
  1046. package/dist/magma-components/p-d42f267b.system.entry.js +40 -0
  1047. package/dist/magma-components/p-d65d8a09.system.entry.js +1 -0
  1048. package/dist/magma-components/p-d6eca2ef.entry.js +1 -0
  1049. package/dist/magma-components/p-d716efe9.system.entry.js +1 -0
  1050. package/dist/magma-components/{p-314abfba.entry.js → p-da6ccc03.entry.js} +1 -1
  1051. package/dist/magma-components/p-dbaf5368.system.entry.js +7 -0
  1052. package/dist/magma-components/p-dc340618.entry.js +1 -0
  1053. package/dist/magma-components/p-dc752e9b.entry.js +1 -0
  1054. package/dist/magma-components/p-e238e2eb.entry.js +1 -0
  1055. package/dist/magma-components/p-e388f1f2.system.entry.js +19 -0
  1056. package/dist/magma-components/{p-74b51db8.entry.js → p-e50fdcee.entry.js} +1 -1
  1057. package/dist/magma-components/{p-2c44c961.system.entry.js → p-e779a67f.system.entry.js} +3 -3
  1058. package/dist/magma-components/p-e8ae4016.system.entry.js +1 -0
  1059. package/dist/magma-components/{p-9eb1e154.system.entry.js → p-e8d95868.system.entry.js} +2 -2
  1060. package/dist/magma-components/p-ed232c76.entry.js +1 -0
  1061. package/dist/magma-components/{p-6fdb3fe7.system.entry.js → p-ed6e287d.system.entry.js} +25 -7
  1062. package/dist/magma-components/{p-88287207.system.entry.js → p-ed87425c.system.entry.js} +1 -1
  1063. package/dist/magma-components/p-ed897125.entry.js +1 -0
  1064. package/dist/magma-components/p-ee876b20.system.entry.js +4 -0
  1065. package/dist/magma-components/p-efe0bb12.system.entry.js +7 -0
  1066. package/dist/magma-components/p-f2412853.system.entry.js +27 -0
  1067. package/dist/magma-components/p-f2743a2b.entry.js +1 -0
  1068. package/dist/magma-components/p-f2f2945b.entry.js +1 -0
  1069. package/dist/magma-components/p-f37f1343.entry.js +1 -0
  1070. package/dist/magma-components/p-f3dd135e.system.entry.js +32 -0
  1071. package/dist/magma-components/p-f5ce24e8.entry.js +1 -0
  1072. package/dist/magma-components/p-f8a88f11.entry.js +1 -0
  1073. package/dist/magma-components/p-f900fe90.entry.js +1 -0
  1074. package/dist/magma-components/p-pNJmnrhq.js +1 -0
  1075. package/dist/magma-components/p-pxyGaQ-P.system.js +2 -0
  1076. package/dist/stats.json +2920 -2147
  1077. package/dist/types/common/floating-controller.d.ts +8 -1
  1078. package/dist/types/common/hash.d.ts +8 -0
  1079. package/dist/types/common/navigation.d.ts +32 -0
  1080. package/dist/types/common/string.d.ts +3 -1
  1081. package/dist/types/components/mds-button/mds-button.d.ts +33 -2
  1082. package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +1 -0
  1083. package/dist/types/components/mds-calendar/mds-calendar.d.ts +1 -0
  1084. package/dist/types/components/mds-file/mds-file.d.ts +6 -1
  1085. package/dist/types/components/mds-filter/mds-filter.d.ts +15 -0
  1086. package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +18 -1
  1087. package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +1 -0
  1088. package/dist/types/components/mds-horizontal-scroll/mds-horizontal-scroll.d.ts +1 -0
  1089. package/dist/types/components/mds-input/mds-input.d.ts +8 -1
  1090. package/dist/types/components/mds-input-date/mds-input-date.d.ts +6 -0
  1091. package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +5 -0
  1092. package/dist/types/components/mds-input-select/mds-input-select.d.ts +15 -2
  1093. package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +8 -3
  1094. package/dist/types/components/mds-modal/mds-modal.d.ts +1 -0
  1095. package/dist/types/components/mds-pref/mds-pref.d.ts +5 -8
  1096. package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +8 -0
  1097. package/dist/types/components/mds-radial-menu/mds-radial-menu.d.ts +1 -0
  1098. package/dist/types/components/mds-tab/mds-tab.d.ts +14 -1
  1099. package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +6 -1
  1100. package/dist/types/components/mds-table/mds-table.d.ts +8 -1
  1101. package/dist/types/components/mds-table/meta/type.d.ts +1 -0
  1102. package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +33 -14
  1103. package/dist/types/components/mds-table-header-cell/meta/event-detail.d.ts +6 -0
  1104. package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -2
  1105. package/dist/types/components/mds-text/mds-text.d.ts +8 -4
  1106. package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +8 -1
  1107. package/dist/types/components/mds-usage/mds-usage.d.ts +5 -1
  1108. package/dist/types/components/mds-usage/meta/variants.d.ts +7 -19
  1109. package/dist/types/components.d.ts +127 -22
  1110. package/dist/types/index.d.ts +12 -4
  1111. package/dist/types/type/floating-ui.d.ts +2 -0
  1112. package/dist/types/type/input.d.ts +3 -0
  1113. package/package.json +18 -18
  1114. package/dist/cjs/_commonjsHelpers-B83fTs8d.js +0 -36
  1115. package/dist/collection/dictionary/icon.js +0 -10
  1116. package/dist/collection/type/icon.js +0 -1
  1117. package/dist/components/p-1aH7xiMs.js +0 -1
  1118. package/dist/components/p-B05zwjTY.js +0 -1
  1119. package/dist/components/p-BOu_NOgd.js +0 -1
  1120. package/dist/components/p-BTpjOy0A.js +0 -1
  1121. package/dist/components/p-BVw5aqzn.js +0 -1
  1122. package/dist/components/p-BWpSxp3h.js +0 -1
  1123. package/dist/components/p-BXPIlPIF.js +0 -1
  1124. package/dist/components/p-BzvYQBdf.js +0 -1
  1125. package/dist/components/p-C3Sn8bRc.js +0 -1
  1126. package/dist/components/p-CGkSDkOY.js +0 -1
  1127. package/dist/components/p-CHAGzQT-.js +0 -1
  1128. package/dist/components/p-CIcshx6K.js +0 -1
  1129. package/dist/components/p-CKS4r32k.js +0 -1
  1130. package/dist/components/p-COkF_8bh.js +0 -1
  1131. package/dist/components/p-CmHMhHMt.js +0 -1
  1132. package/dist/components/p-Cnt6G6GK.js +0 -1
  1133. package/dist/components/p-CsL9U6eU.js +0 -1
  1134. package/dist/components/p-Cyj1BFxx.js +0 -1
  1135. package/dist/components/p-DQqUzCGR.js +0 -1
  1136. package/dist/components/p-DR46G4-6.js +0 -1
  1137. package/dist/components/p-DcW0iRnZ.js +0 -1
  1138. package/dist/components/p-DebgFlHq.js +0 -1
  1139. package/dist/components/p-Dpf8NWF9.js +0 -1
  1140. package/dist/components/p-DwA-5c8G.js +0 -1
  1141. package/dist/components/p-Dws02cT2.js +0 -8
  1142. package/dist/components/p-E-ZsRS8r.js +0 -1
  1143. package/dist/components/p-K3QNYRhf.js +0 -1
  1144. package/dist/components/p-PQ_EO5-U.js +0 -1
  1145. package/dist/components/p-akEzGmDD.js +0 -1
  1146. package/dist/components/p-bDVBqkn0.js +0 -1
  1147. package/dist/esm/_commonjsHelpers-E-ZsRS8r.js +0 -32
  1148. package/dist/esm-es5/_commonjsHelpers-E-ZsRS8r.js +0 -1
  1149. package/dist/magma-components/p-00e47e49.system.entry.js +0 -14
  1150. package/dist/magma-components/p-0141c597.system.entry.js +0 -15
  1151. package/dist/magma-components/p-021f96f8.entry.js +0 -1
  1152. package/dist/magma-components/p-0255924b.system.entry.js +0 -22
  1153. package/dist/magma-components/p-05014374.entry.js +0 -1
  1154. package/dist/magma-components/p-05f73994.entry.js +0 -1
  1155. package/dist/magma-components/p-0646392d.entry.js +0 -1
  1156. package/dist/magma-components/p-0a904a12.entry.js +0 -1
  1157. package/dist/magma-components/p-106f39c6.entry.js +0 -1
  1158. package/dist/magma-components/p-10ad73e3.system.entry.js +0 -19
  1159. package/dist/magma-components/p-1150ffb8.system.entry.js +0 -10
  1160. package/dist/magma-components/p-12c5ae26.entry.js +0 -1
  1161. package/dist/magma-components/p-13a1d35f.entry.js +0 -1
  1162. package/dist/magma-components/p-15d4846d.entry.js +0 -1
  1163. package/dist/magma-components/p-1673225e.system.entry.js +0 -8
  1164. package/dist/magma-components/p-188f4b1d.system.entry.js +0 -7
  1165. package/dist/magma-components/p-18c8628c.entry.js +0 -1
  1166. package/dist/magma-components/p-1be45c75.entry.js +0 -1
  1167. package/dist/magma-components/p-1e3d89cd.system.entry.js +0 -1
  1168. package/dist/magma-components/p-1e700f0a.entry.js +0 -1
  1169. package/dist/magma-components/p-20e4f7dd.system.entry.js +0 -15
  1170. package/dist/magma-components/p-21865dd2.entry.js +0 -1
  1171. package/dist/magma-components/p-21c46e74.system.entry.js +0 -4
  1172. package/dist/magma-components/p-231b604f.system.entry.js +0 -1
  1173. package/dist/magma-components/p-2507f5cf.entry.js +0 -1
  1174. package/dist/magma-components/p-277444bc.entry.js +0 -1
  1175. package/dist/magma-components/p-283b0548.system.entry.js +0 -102
  1176. package/dist/magma-components/p-2ec0db8e.entry.js +0 -1
  1177. package/dist/magma-components/p-30c3872d.entry.js +0 -1
  1178. package/dist/magma-components/p-322a5452.entry.js +0 -1
  1179. package/dist/magma-components/p-3231a6a3.entry.js +0 -1
  1180. package/dist/magma-components/p-34401d35.entry.js +0 -1
  1181. package/dist/magma-components/p-35aa29c5.entry.js +0 -1
  1182. package/dist/magma-components/p-36a67b51.entry.js +0 -1
  1183. package/dist/magma-components/p-3a1339bb.system.entry.js +0 -4
  1184. package/dist/magma-components/p-3d56e3f4.entry.js +0 -1
  1185. package/dist/magma-components/p-3e0eed90.system.entry.js +0 -12
  1186. package/dist/magma-components/p-3ecade3c.system.entry.js +0 -11
  1187. package/dist/magma-components/p-3eefca33.system.entry.js +0 -16
  1188. package/dist/magma-components/p-436f9b27.system.entry.js +0 -38
  1189. package/dist/magma-components/p-44e2a945.system.entry.js +0 -1
  1190. package/dist/magma-components/p-4658154f.entry.js +0 -1
  1191. package/dist/magma-components/p-474047fa.system.entry.js +0 -10
  1192. package/dist/magma-components/p-474c5d53.system.entry.js +0 -11
  1193. package/dist/magma-components/p-4ac94b84.system.entry.js +0 -32
  1194. package/dist/magma-components/p-4c73f14b.system.entry.js +0 -14
  1195. package/dist/magma-components/p-4dd6a39b.entry.js +0 -1
  1196. package/dist/magma-components/p-4e7f21ac.entry.js +0 -1
  1197. package/dist/magma-components/p-4f14a166.entry.js +0 -1
  1198. package/dist/magma-components/p-50ea11c9.system.entry.js +0 -32
  1199. package/dist/magma-components/p-52793bdb.system.entry.js +0 -1
  1200. package/dist/magma-components/p-5299f709.system.entry.js +0 -26
  1201. package/dist/magma-components/p-58b82b40.system.entry.js +0 -10
  1202. package/dist/magma-components/p-5a7267e8.system.entry.js +0 -4
  1203. package/dist/magma-components/p-5a911e7b.system.entry.js +0 -13
  1204. package/dist/magma-components/p-5ccf493c.system.entry.js +0 -7
  1205. package/dist/magma-components/p-5d119459.entry.js +0 -1
  1206. package/dist/magma-components/p-5fd04ce1.entry.js +0 -1
  1207. package/dist/magma-components/p-60f67c37.entry.js +0 -1
  1208. package/dist/magma-components/p-632bc44c.entry.js +0 -1
  1209. package/dist/magma-components/p-69c21eae.entry.js +0 -1
  1210. package/dist/magma-components/p-6a6326c6.entry.js +0 -1
  1211. package/dist/magma-components/p-6c800411.entry.js +0 -1
  1212. package/dist/magma-components/p-6e03b83a.entry.js +0 -1
  1213. package/dist/magma-components/p-6ed05d99.entry.js +0 -1
  1214. package/dist/magma-components/p-6f74cdf5.system.entry.js +0 -12
  1215. package/dist/magma-components/p-73fde271.system.entry.js +0 -72
  1216. package/dist/magma-components/p-76ecad2f.entry.js +0 -18
  1217. package/dist/magma-components/p-774ce1d2.entry.js +0 -1
  1218. package/dist/magma-components/p-77615947.system.entry.js +0 -1
  1219. package/dist/magma-components/p-7770b989.system.entry.js +0 -1
  1220. package/dist/magma-components/p-7787ebaf.system.entry.js +0 -1
  1221. package/dist/magma-components/p-7927010f.system.entry.js +0 -25
  1222. package/dist/magma-components/p-79421ee1.system.entry.js +0 -11
  1223. package/dist/magma-components/p-7ab15184.entry.js +0 -1
  1224. package/dist/magma-components/p-7afec7ee.entry.js +0 -1
  1225. package/dist/magma-components/p-7e085c82.entry.js +0 -1
  1226. package/dist/magma-components/p-7e7cf986.system.entry.js +0 -7
  1227. package/dist/magma-components/p-809adece.system.entry.js +0 -17
  1228. package/dist/magma-components/p-8183b7ed.entry.js +0 -1
  1229. package/dist/magma-components/p-83394280.system.entry.js +0 -32
  1230. package/dist/magma-components/p-835fc007.entry.js +0 -1
  1231. package/dist/magma-components/p-84645c60.system.entry.js +0 -1
  1232. package/dist/magma-components/p-87026d34.entry.js +0 -1
  1233. package/dist/magma-components/p-87faaa8e.system.entry.js +0 -16
  1234. package/dist/magma-components/p-883c223a.system.entry.js +0 -4
  1235. package/dist/magma-components/p-88f99a4f.system.entry.js +0 -81
  1236. package/dist/magma-components/p-8a3d2259.system.entry.js +0 -17
  1237. package/dist/magma-components/p-8aafbfdf.system.entry.js +0 -49
  1238. package/dist/magma-components/p-8afc9bc4.system.entry.js +0 -2838
  1239. package/dist/magma-components/p-8ca1d30d.system.entry.js +0 -1
  1240. package/dist/magma-components/p-8ccd187a.entry.js +0 -1
  1241. package/dist/magma-components/p-90993b0b.system.entry.js +0 -68
  1242. package/dist/magma-components/p-915c5f06.system.entry.js +0 -47
  1243. package/dist/magma-components/p-91ff1560.system.entry.js +0 -7
  1244. package/dist/magma-components/p-92d9b537.entry.js +0 -1
  1245. package/dist/magma-components/p-932620b6.entry.js +0 -1
  1246. package/dist/magma-components/p-9344a234.entry.js +0 -1
  1247. package/dist/magma-components/p-97f6166e.system.entry.js +0 -28
  1248. package/dist/magma-components/p-9d1cdb42.system.entry.js +0 -15
  1249. package/dist/magma-components/p-9dcfc247.entry.js +0 -1
  1250. package/dist/magma-components/p-9fe14430.system.entry.js +0 -7
  1251. package/dist/magma-components/p-BpVYIPkx.js +0 -1
  1252. package/dist/magma-components/p-CHAGzQT-.js +0 -1
  1253. package/dist/magma-components/p-D7BrzK-C.system.js +0 -90
  1254. package/dist/magma-components/p-DIUTGDX_.system.js +0 -1
  1255. package/dist/magma-components/p-E-ZsRS8r.js +0 -1
  1256. package/dist/magma-components/p-a64bbb36.system.entry.js +0 -40
  1257. package/dist/magma-components/p-a6af4083.system.entry.js +0 -32
  1258. package/dist/magma-components/p-a7e7f2c0.entry.js +0 -1
  1259. package/dist/magma-components/p-aba96089.entry.js +0 -1
  1260. package/dist/magma-components/p-aed8b119.entry.js +0 -1
  1261. package/dist/magma-components/p-b24b5179.entry.js +0 -1
  1262. package/dist/magma-components/p-b295e4ab.system.entry.js +0 -1
  1263. package/dist/magma-components/p-b2c62b6e.system.entry.js +0 -7
  1264. package/dist/magma-components/p-b5559b28.system.entry.js +0 -1
  1265. package/dist/magma-components/p-b897c97d.entry.js +0 -1
  1266. package/dist/magma-components/p-bab4c75e.system.entry.js +0 -45
  1267. package/dist/magma-components/p-bc53c19e.entry.js +0 -8
  1268. package/dist/magma-components/p-bf2fe278.system.entry.js +0 -16
  1269. package/dist/magma-components/p-c0136138.entry.js +0 -1
  1270. package/dist/magma-components/p-c166ec50.system.entry.js +0 -47
  1271. package/dist/magma-components/p-c22887f7.system.entry.js +0 -90
  1272. package/dist/magma-components/p-c28fce23.entry.js +0 -1
  1273. package/dist/magma-components/p-c48bad95.entry.js +0 -1
  1274. package/dist/magma-components/p-cb2c5f1b.entry.js +0 -1
  1275. package/dist/magma-components/p-cc0c6ae7.entry.js +0 -1
  1276. package/dist/magma-components/p-cc2a09f2.system.entry.js +0 -16
  1277. package/dist/magma-components/p-cc9d9458.entry.js +0 -1
  1278. package/dist/magma-components/p-ccb14076.system.entry.js +0 -217
  1279. package/dist/magma-components/p-ccb6898a.system.entry.js +0 -4
  1280. package/dist/magma-components/p-d04ac65d.entry.js +0 -1
  1281. package/dist/magma-components/p-d07d227b.system.entry.js +0 -8
  1282. package/dist/magma-components/p-d1faf129.entry.js +0 -1
  1283. package/dist/magma-components/p-d282a929.entry.js +0 -1
  1284. package/dist/magma-components/p-d2f134ac.entry.js +0 -1
  1285. package/dist/magma-components/p-d47df503.system.entry.js +0 -37
  1286. package/dist/magma-components/p-d9804d2f.entry.js +0 -1
  1287. package/dist/magma-components/p-dc06b29e.entry.js +0 -1
  1288. package/dist/magma-components/p-dc59b764.entry.js +0 -1
  1289. package/dist/magma-components/p-dc7bada4.entry.js +0 -1
  1290. package/dist/magma-components/p-de091be7.system.entry.js +0 -7
  1291. package/dist/magma-components/p-dfe8552c.system.entry.js +0 -11
  1292. package/dist/magma-components/p-e1e69217.system.entry.js +0 -1
  1293. package/dist/magma-components/p-e2ef5996.entry.js +0 -1
  1294. package/dist/magma-components/p-e7751639.entry.js +0 -1
  1295. package/dist/magma-components/p-e887a14c.entry.js +0 -1
  1296. package/dist/magma-components/p-e8cd2b93.system.entry.js +0 -4
  1297. package/dist/magma-components/p-eb681207.system.entry.js +0 -1
  1298. package/dist/magma-components/p-ec9cc7b9.entry.js +0 -1
  1299. package/dist/magma-components/p-eca99a0a.system.entry.js +0 -1
  1300. package/dist/magma-components/p-ecd3c27f.entry.js +0 -1
  1301. package/dist/magma-components/p-ef3424e3.entry.js +0 -1
  1302. package/dist/magma-components/p-f654eafe.entry.js +0 -1
  1303. package/dist/magma-components/p-f8eb19b3.entry.js +0 -1
  1304. package/dist/magma-components/p-f8feee93.system.entry.js +0 -4
  1305. package/dist/magma-components/p-ffa1a0b4.system.entry.js +0 -1
  1306. package/dist/types/dictionary/icon.d.ts +0 -4
  1307. package/dist/types/type/icon.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{K as KeyboardManager}from"./keyboard-manager-KRu9I7dw.js";import{L as Locale}from"./locale-CVJm6KFD.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var badgeDone$3="Ολοκληρώθηκε";var badgeCurrent$3="Καθημερινή";var badgeQueued$3="Σε αναμονή";var step$3="Βήμα {{ index }}";var localeEl={badgeDone:badgeDone$3,badgeCurrent:badgeCurrent$3,badgeQueued:badgeQueued$3,step:step$3};var badgeDone$2="Done";var badgeCurrent$2="Current";var badgeQueued$2="Queued";var step$2="Step {{ index }}";var localeEn={badgeDone:badgeDone$2,badgeCurrent:badgeCurrent$2,badgeQueued:badgeQueued$2,step:step$2};var badgeDone$1="Completado";var badgeCurrent$1="En curso";var badgeQueued$1="En cola";var step$1="Paso {{ index }}";var localeEs={badgeDone:badgeDone$1,badgeCurrent:badgeCurrent$1,badgeQueued:badgeQueued$1,step:step$1};var badgeDone="Completato";var badgeCurrent="In corso";var badgeQueued="In coda";var step="Step {{ index }}";var localeIt={badgeDone:badgeDone,badgeCurrent:badgeCurrent,badgeQueued:badgeQueued,step:step};var mdsStepperBarItemCss=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{--tw-ease:initial}}}:host{--mds-stepper-bar-item-header-gap:var(--mds-stepper-bar-gap,calc(var(--spacing,.0025rem)*50));--mds-stepper-bar-item-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-stepper-bar-item-duration:.25s;--private-stepper-bar-item-duaration:var(--mds-stepper-bar-item-duration,.25s);--mds-stepper-bar-item-transition-duration:var(--duration-200,.2s);--private-stepper-bar-item-transition-duration:var(--mds-stepper-bar-item-transition-duration);--mds-stepper-bar-item-icon-background-done:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-stepper-bar-item-icon-background-current:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-progress-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));--mds-stepper-bar-item-icon-color-done:rgb(var(--magma-success-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-stepper-bar-item-icon-color-current:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-stepper-bar-item-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-stepper-bar-item-min-width:180px;--mds-stepper-bar-item-progress-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-stepper-bar-item-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-stepper-bar-item-progress-thickness:calc(var(--spacing,.0025rem)*200);align-items:flex-start;border-radius:var(--radius-xl,20px);display:grid;flex:1 0 0;flex-direction:column;gap:calc(var(--spacing,.0025rem)*400);min-width:var(--mds-stepper-bar-item-min-width,180px);position:relative;scroll-snap-align:center;-webkit-transition-duration:var(--private-stepper-bar-item-duaration);transition-duration:var(--private-stepper-bar-item-duaration);transition-property:outline,outline-offset,background-color}:host(:last-of-type){-ms-flex-preferred-size:calc(var(--spacing,.0025rem)*100);flex-basis:calc(var(--spacing,.0025rem)*100)}:host(:last-of-type) .progress{display:none}:host([done]) .icon{--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-icon-background-done,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))));--mds-stepper-bar-item-icon-color:var(--mds-stepper-bar-item-icon-color-done,rgb(var(--magma-success-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));transition-delay:0s}:host([current]) .icon{--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-icon-background-current,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));--mds-stepper-bar-item-icon-color:var(--mds-stepper-bar-item-icon-color-current,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));-webkit-transition-delay:calc(var(--private-stepper-bar-item-duaration)/2);transition-delay:calc(var(--private-stepper-bar-item-duaration)/2)}.header{--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));align-items:center;border-radius:var(--radius-md,12px);display:flex;gap:var(--mds-stepper-bar-item-header-gap);-webkit-transition-duration:var(--private-stepper-bar-item-transition-duration);transition-duration:var(--private-stepper-bar-item-transition-duration);transition-property:outline,outline-offset;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));width:100%}.icon{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:var(--mds-stepper-bar-item-icon-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));border-radius:var(--radius-full,1000px);display:flex;fill:var(--mds-stepper-bar-item-icon-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));flex-shrink:0;padding:calc(var(--spacing,.0025rem)*200);position:relative;-webkit-transition-duration:var(--private-stepper-bar-item-duaration);transition-duration:var(--private-stepper-bar-item-duaration);transition-property:background-color,fill;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.progress{--mds-progress-background:var(--mds-stepper-bar-item-progress-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));--mds-progress-color:var(--mds-stepper-bar-item-progress-color,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))));--mds-progress-thickness:var(--mds-stepper-bar-item-progress-thickness,calc(var(--spacing,.0025rem)*200));--mds-progress-radius:0;flex-grow:1}.infos{display:grid;gap:calc(var(--spacing,.0025rem)*100);padding-left:calc(var(--spacing,.0025rem)*100)}.text{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));color:var(--mds-stepper-bar-item-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));pointer-events:none;-webkit-transition-duration:var(--private-stepper-bar-item-duaration);transition-duration:var(--private-stepper-bar-item-duaration);transition-property:color;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.badge,.step{border-radius:var(--radius-full,1000px);pointer-events:none}.step{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}: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-stepper-bar-item-duaration:0s;--private-stepper-bar-item-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@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-stepper-bar-item-duaration:0s;--private-stepper-bar-item-transition-duration:0s}}'};var MdsStepperBarItem=/** @class */function(){function e(e){var a=this;registerInstance(this,e);this.doneEvent=createEvent(this,"mdsStepperBarItemDone",7);this.km=new KeyboardManager;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});
1
+ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{K as KeyboardManager}from"./keyboard-manager-KRu9I7dw.js";import{L as Locale}from"./locale-CVJm6KFD.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var badgeDone$3="Ολοκληρώθηκε";var badgeCurrent$3="Καθημερινή";var badgeQueued$3="Σε αναμονή";var step$3="Βήμα {{ index }}";var localeEl={badgeDone:badgeDone$3,badgeCurrent:badgeCurrent$3,badgeQueued:badgeQueued$3,step:step$3};var badgeDone$2="Done";var badgeCurrent$2="Current";var badgeQueued$2="Queued";var step$2="Step {{ index }}";var localeEn={badgeDone:badgeDone$2,badgeCurrent:badgeCurrent$2,badgeQueued:badgeQueued$2,step:step$2};var badgeDone$1="Completado";var badgeCurrent$1="En curso";var badgeQueued$1="En cola";var step$1="Paso {{ index }}";var localeEs={badgeDone:badgeDone$1,badgeCurrent:badgeCurrent$1,badgeQueued:badgeQueued$1,step:step$1};var badgeDone="Completato";var badgeCurrent="In corso";var badgeQueued="In coda";var step="Step {{ index }}";var localeIt={badgeDone:badgeDone,badgeCurrent:badgeCurrent,badgeQueued:badgeQueued,step:step};var mdsStepperBarItemCss=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{--tw-ease:initial}}}:host{--mds-stepper-bar-item-header-gap:var(--mds-stepper-bar-gap,calc(var(--spacing,.0025rem)*50));--mds-stepper-bar-item-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-stepper-bar-item-duration:.25s;--private-stepper-bar-item-duaration:var(--mds-stepper-bar-item-duration,.25s);--mds-stepper-bar-item-transition-duration:var(--duration-200,.2s);--private-stepper-bar-item-transition-duration:var(--mds-stepper-bar-item-transition-duration);--mds-stepper-bar-item-icon-background-done:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-stepper-bar-item-icon-background-current:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-progress-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));--mds-stepper-bar-item-icon-color-done:rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-stepper-bar-item-icon-color-current:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-stepper-bar-item-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-stepper-bar-item-min-width:180px;--mds-stepper-bar-item-progress-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-stepper-bar-item-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-stepper-bar-item-progress-thickness:calc(var(--spacing,.0025rem)*200);align-items:flex-start;border-radius:var(--radius-xl,20px);display:grid;flex:1 0 0;flex-direction:column;gap:calc(var(--spacing,.0025rem)*400);min-width:var(--mds-stepper-bar-item-min-width,180px);position:relative;scroll-snap-align:center;transition-duration:var(--private-stepper-bar-item-duaration);transition-property:outline,outline-offset,background-color}:host(:last-of-type){flex-basis:calc(var(--spacing,.0025rem)*100)}:host(:last-of-type) .progress{display:none}:host([done]) .icon{--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-icon-background-done,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))));--mds-stepper-bar-item-icon-color:var(--mds-stepper-bar-item-icon-color-done,rgb(var(--magma-success-on-emphasis,var(--tone-neutral-seed,255 255 255))));transition-delay:0s}:host([current]) .icon{--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-icon-background-current,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-stepper-bar-item-icon-color:var(--mds-stepper-bar-item-icon-color-current,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));transition-delay:calc(var(--private-stepper-bar-item-duaration)/2)}.header{--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));align-items:center;border-radius:var(--radius-md,12px);display:flex;gap:var(--mds-stepper-bar-item-header-gap);transition-duration:var(--private-stepper-bar-item-transition-duration);transition-property:outline,outline-offset;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));width:100%}.icon{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:var(--mds-stepper-bar-item-icon-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--radius-full,1000px);display:flex;fill:var(--mds-stepper-bar-item-icon-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));flex-shrink:0;padding:calc(var(--spacing,.0025rem)*200);position:relative;transition-duration:var(--private-stepper-bar-item-duaration);transition-property:background-color,fill;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.progress{--mds-progress-background:var(--mds-stepper-bar-item-progress-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));--mds-progress-color:var(--mds-stepper-bar-item-progress-color,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))));--mds-progress-thickness:var(--mds-stepper-bar-item-progress-thickness,calc(var(--spacing,.0025rem)*200));--mds-progress-radius:0;flex-grow:1}.infos{display:grid;gap:calc(var(--spacing,.0025rem)*100);padding-left:calc(var(--spacing,.0025rem)*100)}.text{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));color:var(--mds-stepper-bar-item-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));pointer-events:none;transition-duration:var(--private-stepper-bar-item-duaration);transition-property:color;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.badge,.step{border-radius:var(--radius-full,1000px);pointer-events:none}.step{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}: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-stepper-bar-item-duaration:0s;--private-stepper-bar-item-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@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-stepper-bar-item-duaration:0s;--private-stepper-bar-item-transition-duration:0s}}'};var MdsStepperBarItem=/** @class */function(){function e(e){var r=this;registerInstance(this,e);this.doneEvent=createEvent(this,"mdsStepperBarItemDone",7);this.km=new KeyboardManager;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});
2
2
  /**
3
3
  * Specifies the icon displayed of the component when is checked
4
4
  */this.iconChecked=this.icon;
@@ -10,7 +10,7 @@ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from".
10
10
  */this.current=false;
11
11
  /**
12
12
  * Specifies the typography of the element
13
- */this.typography="h6";this.showBadge=function(){if(a.isDone){return h("mds-badge",{class:"badge",variant:"success",tone:"weak",typography:"option"},a.t.get("badgeDone"))}if(a.isCurrent){return h("mds-badge",{class:"badge",variant:"info",tone:"weak",typography:"option"},a.t.get("badgeCurrent"))}return h("mds-badge",{class:"badge",variant:"dark",tone:"weak",typography:"option"},a.t.get("badgeQueued"))}}e.prototype.componentWillLoad=function(){var e=this;this.isCurrent=this.current;this.isDone=this.done;var a=this.host.parentElement;
13
+ */this.typography="h6";this.showBadge=function(){if(r.isDone){return h("mds-badge",{class:"badge",variant:"success",tone:"weak",typography:"option"},r.t.get("badgeDone"))}if(r.isCurrent){return h("mds-badge",{class:"badge",variant:"info",tone:"weak",typography:"option"},r.t.get("badgeCurrent"))}return h("mds-badge",{class:"badge",variant:"dark",tone:"weak",typography:"option"},r.t.get("badgeQueued"))}}e.prototype.componentWillLoad=function(){var e=this;this.isCurrent=this.current;this.isDone=this.done;var r=this.host.parentElement;
14
14
  // childNodes counts the whitespace between the tags, so formatted markup made
15
15
  // the step numbers come out doubled: 2, 4, 6, 8 for four steps.
16
- if(a){this.index=Array.from(a.children).filter((function(a){return a.tagName===e.host.tagName})).indexOf(this.host)}};e.prototype.componentDidLoad=function(){this.km.addElement(this.host);this.km.attachClickBehavior()};e.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};e.prototype.selectedHandler=function(e){this.isDone=e};e.prototype.currentHandler=function(e){this.isCurrent=e};e.prototype.render=function(){return h(Host,{key:"76613b70e079b98f95f090b5dae2a8fcc284bd00","pref-animation":preferenceStore.state.animation},h("div",{key:"203b989ddfe1c7210f5a3fa58ad0531ff16f0ceb",class:"header"},h("mds-icon",{key:"eb2ac2c896f449884532144204240be3b9762b5c",class:"icon",name:clsx(this.isDone&&!this.isCurrent?this.iconChecked:this.icon)}),h("mds-progress",{key:"e1b9592f8f8e0a4d11149040c544a395219abfe9","aria-hidden":"true",class:"progress",progress:this.isDone?1:0})),h("div",{key:"d1b155a6f87d4ae4378cc5f74fe634ef8c55e96f",class:"infos"},this.step&&h("mds-text",{key:"bf08860ae9f87eef75122e68f10c905f9c99ef90",class:"step",typography:"option"},this.t.get("step",{index:this.index+1})),this.label&&h("mds-text",{key:"f2e3370be74e7b104d64e1618e0a400e2cd50a37",class:"text",typography:this.typography},this.label),this.badge&&h("div",{key:"1b8a2d7a15e6aba58e1b264c8e6dbc217b0c7a5c",part:"badge"},this.showBadge())))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{done:[{selectedHandler:0}],current:[{currentHandler:0}]}},enumerable:false,configurable:true});return e}();MdsStepperBarItem.style=mdsStepperBarItemCss();export{MdsStepperBarItem as mds_stepper_bar_item};
16
+ if(r){this.index=Array.from(r.children).filter((function(r){return r.tagName===e.host.tagName})).indexOf(this.host)}};e.prototype.componentDidLoad=function(){this.km.addElement(this.host);this.km.attachClickBehavior()};e.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};e.prototype.selectedHandler=function(e){this.isDone=e};e.prototype.currentHandler=function(e){this.isCurrent=e};e.prototype.render=function(){return h(Host,{key:"12dc4ba9dbbe002327b5529070e1964af09b7c60","pref-animation":preferenceStore.state.animation},h("div",{key:"0ac0651ba779da9d1bd54abbace2e6cb412954bd",class:"header"},h("mds-icon",{key:"8c811dadf67e90faece25997e904f2b75c0cb347",class:"icon",name:clsx(this.isDone&&!this.isCurrent?this.iconChecked:this.icon)}),h("mds-progress",{key:"a605e454f32b074a62ad4301198f8a499bd196c8","aria-hidden":"true",class:"progress",progress:this.isDone?1:0})),h("div",{key:"e4ee9389e788dcc1a2b9cbe6865735f74334c0df",class:"infos"},this.step&&h("mds-text",{key:"2148817cc5c119a6fd627458a945fcc2eeea3167",class:"step",typography:"option"},this.t.get("step",{index:this.index+1})),this.label&&h("mds-text",{key:"6ab16ea2f7d6ea9d8ba30ffce12303606cb29adc",class:"text",typography:this.typography},this.label),this.badge&&h("div",{key:"2ba2e78044bd2c2318c79f087c544a7e8be13d72",part:"badge"},this.showBadge())))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{done:[{selectedHandler:0}],current:[{currentHandler:0}]}},enumerable:false,configurable:true});return e}();MdsStepperBarItem.style=mdsStepperBarItemCss();export{MdsStepperBarItem as mds_stepper_bar_item};
@@ -1,13 +1,13 @@
1
- import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";var mdsStepperBarCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-progress,mds-stepper-bar-item):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-stepper-bar-gap:calc(var(--spacing,.0025rem)*50);--mds-stepper-bar-offset-margin:0;--mds-stepper-bar-scroll-behavior:smooth;--mds-stepper-bar-scrollbar-margin:0;--mds-stepper-bar-scrollbar-radius:0;--mds-stepper-bar-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-stepper-bar-scrollbar-thumb-background:rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))));--mds-stepper-bar-scrollbar-track-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));display:grid;gap:calc(var(--spacing,.0025rem)*600);position:relative}.items{align-items:start;display:flex;flex-grow:1;gap:var(--mds-stepper-bar-gap);margin:0 calc(var(--mds-stepper-bar-offset-margin,0)*-1);overflow:auto;padding:0 var(--mds-stepper-bar-offset-margin,0);position:relative;scroll-behavior:var(--mds-stepper-bar-scroll-behavior,smooth);-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;width:100%;z-index:10}:host([linear=true]) ::slotted(mds-stepper-bar-item),:host([linear]) ::slotted(mds-stepper-bar-item){pointer-events:none}:host([linear=false]) ::slotted(mds-stepper-bar-item){pointer-events:auto}.contents{display:flex;flex-direction:column;width:100%}:host(:not([navigation=scrollbar])) .items{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([navigation=scrollbar])) .items::-webkit-scrollbar{display:none}:host([navigation=scrollbar]) .items::-webkit-scrollbar{height:var(--mds-stepper-bar-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-stepper-bar-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([navigation=scrollbar]) .items::-webkit-scrollbar-track{background-color:var(--mds-stepper-bar-scrollbar-track-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));border-radius:var(--mds-stepper-bar-scrollbar-radius,0);margin-block:var(--mds-stepper-bar-scrollbar-margin,0);margin-inline:var(--mds-stepper-bar-scrollbar-margin,0)}:host([navigation=scrollbar]) .items::-webkit-scrollbar-thumb{background-color:var(--mds-stepper-bar-scrollbar-thumb-background,rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140)))));border-radius:var(--mds-stepper-bar-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.items{scrollbar-color:var(--mds-stepper-bar-scrollbar-thumb-background,rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))))) var(--mds-stepper-bar-scrollbar-track-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));scrollbar-width:thin}}@media (prefers-reduced-motion:reduce){:host{--mds-stepper-bar-scroll-behavior:auto}}"};var MdsStepperBar=/** @class */function(){function r(r){var t=this;registerInstance(this,r);this.changedEvent=createEvent(this,"mdsStepperBarChange",7);this.currentItem=0;
1
+ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";var mdsStepperBarCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-progress,mds-stepper-bar-item):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-stepper-bar-gap:calc(var(--spacing,.0025rem)*50);--mds-stepper-bar-offset-margin:0;--mds-stepper-bar-scroll-behavior:smooth;--mds-stepper-bar-scrollbar-margin:0;--mds-stepper-bar-scrollbar-radius:0;--mds-stepper-bar-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-stepper-bar-scrollbar-thumb-background:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-stepper-bar-scrollbar-track-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));display:grid;gap:calc(var(--spacing,.0025rem)*600);position:relative}.items{align-items:start;display:flex;flex-grow:1;gap:var(--mds-stepper-bar-gap);margin:0 calc(var(--mds-stepper-bar-offset-margin,0)*-1);overflow:auto;padding:0 var(--mds-stepper-bar-offset-margin,0);position:relative;scroll-behavior:var(--mds-stepper-bar-scroll-behavior,smooth);scroll-snap-type:x mandatory;width:100%;z-index:10}:host([linear=true]) ::slotted(mds-stepper-bar-item),:host([linear]) ::slotted(mds-stepper-bar-item){pointer-events:none}:host([linear=false]) ::slotted(mds-stepper-bar-item){pointer-events:auto}.contents{display:flex;flex-direction:column;width:100%}:host(:not([navigation=scrollbar])) .items{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([navigation=scrollbar])) .items::-webkit-scrollbar{display:none}:host([navigation=scrollbar]) .items::-webkit-scrollbar{height:var(--mds-stepper-bar-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-stepper-bar-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([navigation=scrollbar]) .items::-webkit-scrollbar-track{background-color:var(--mds-stepper-bar-scrollbar-track-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--mds-stepper-bar-scrollbar-radius,0);margin-block:var(--mds-stepper-bar-scrollbar-margin,0);margin-inline:var(--mds-stepper-bar-scrollbar-margin,0)}:host([navigation=scrollbar]) .items::-webkit-scrollbar-thumb{background-color:var(--mds-stepper-bar-scrollbar-thumb-background,rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140))));border-radius:var(--mds-stepper-bar-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.items{scrollbar-color:var(--mds-stepper-bar-scrollbar-thumb-background,rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)))) var(--mds-stepper-bar-scrollbar-track-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));scrollbar-width:thin}}@media (prefers-reduced-motion:reduce){:host{--mds-stepper-bar-scroll-behavior:auto}}"};var MdsStepperBar=/** @class */function(){function r(r){var e=this;registerInstance(this,r);this.changedEvent=createEvent(this,"mdsStepperBarChange",7);this.currentItem=0;
2
2
  /**
3
3
  * Sets the current item to the given index: 0 is none done, 1 is the first item done, last number + 1 is all items done
4
4
  */this.itemsDone=1;
5
5
  /**
6
6
  * Specifies the navigation type
7
- */this.navigation="none";this.queryItems=function(){return t.element.querySelectorAll("mds-stepper-bar-item")};this.queryContentItems=function(){return t.element.querySelectorAll("[slot=content]")};
7
+ */this.navigation="none";this.queryItems=function(){return e.element.querySelectorAll("mds-stepper-bar-item")};this.queryContentItems=function(){return e.element.querySelectorAll("[slot=content]")};
8
8
  // private queryContents = (): NodeListOf<HTMLElement> =>
9
9
  // this.element.querySelectorAll<HTMLElement>('[slot="content"]')
10
- this.minmax=function(r,t,e){return Math.min(Math.max(r,t),e)};this.setCurrent=function(r){t.items=t.queryItems();t.currentItem=r-1;var e=new Array;t.items.forEach((function(r,a){var s;r.done=false;if(a<t.currentItem){r.done=true;var o=(s=r.value)!==null&&s!==void 0?s:"";if(o!==""){e.push(o)}}r.current=false;if(a===t.currentItem){r.current=true;t.currentItem=a}}));t.changedEvent.emit({value:e.toString(),step:t.currentItem});t.scrollItems();t.setCurrentContent()};this.setCurrentContent=function(){t.contentItems.forEach((function(r,e){r.classList.add("hidden");if(e===t.currentItem){r.classList.remove("hidden")}}))};this.scrollItems=function(){var r;var e=(r=t.element.shadowRoot)===null||r===void 0?void 0:r.querySelector(".items");var a=t.queryItems();var s=t.minmax(t.currentItem,0,t.items.length-1);if(!e)throw Error("No mds-stepper-bar-items found");if(s<=0){e.scrollLeft=0;return}if(s>=a.length){t.scrollToItem(e,a[a.length-1],"start");return}t.scrollToItem(e,a[s],"centre")};
10
+ this.minmax=function(r,e,t){return Math.min(Math.max(r,e),t)};this.setCurrent=function(r){e.items=e.queryItems();e.currentItem=r-1;var t=new Array;e.items.forEach((function(r,a){var s;r.done=false;if(a<e.currentItem){r.done=true;var o=(s=r.value)!==null&&s!==void 0?s:"";if(o!==""){t.push(o)}}r.current=false;if(a===e.currentItem){r.current=true;e.currentItem=a}}));e.changedEvent.emit({value:t.toString(),step:e.currentItem});e.scrollItems();e.setCurrentContent()};this.setCurrentContent=function(){e.contentItems.forEach((function(r,t){r.classList.add("hidden");if(t===e.currentItem){r.classList.remove("hidden")}}))};this.scrollItems=function(){var r;var t=(r=e.element.shadowRoot)===null||r===void 0?void 0:r.querySelector(".items");var a=e.queryItems();var s=e.minmax(e.currentItem,0,e.items.length-1);if(!t)throw Error("No mds-stepper-bar-items found");if(s<=0){t.scrollLeft=0;return}if(s>=a.length){e.scrollToItem(t,a[a.length-1],"start");return}e.scrollToItem(t,a[s],"centre")};
11
11
  /**
12
12
  * Measures from the boxes and moves the current scroll by the difference.
13
13
  * `offsetLeft` would mix two coordinate systems: the items are slotted light
@@ -16,4 +16,4 @@ this.minmax=function(r,t,e){return Math.min(Math.max(r,t),e)};this.setCurrent=fu
16
16
  * div in the shadow root that measures from its own parent. What is left over
17
17
  * is the distance of the component from the left of the page, and it lands
18
18
  * straight on the scroll.
19
- */this.scrollToItem=function(r,t,e){var a=r.getBoundingClientRect();var s=t.getBoundingClientRect();var o=e==="centre"?(a.width-s.width)/2:0;r.scrollLeft+=s.left-a.left-o}}r.prototype.componentWillLoad=function(){this.items=this.queryItems();this.items.forEach((function(r,t){r.id="mds-stepper-bar-item-".concat(t)}))};r.prototype.componentDidLoad=function(){this.contentItems=this.queryContentItems();this.setCurrent(this.itemsDone)};r.prototype.itemDone=function(r){this.setCurrent(r)};r.prototype.changeEventHandler=function(r){var t=this;this.items=this.queryItems();this.items.forEach((function(e,a){e.done=false;if("mds-stepper-bar-item-".concat(a)===r.detail){e.current=true;t.currentItem=a}}))};r.prototype.render=function(){return h(Host,{key:"35f536c577499c237e0a5b1865c2dcfaa5735d72"},h("div",{key:"5c204cc4ca343076982d3357e7645cc8770a22be",class:"items",part:"items"},h("slot",{key:"69c3b461ada662e58051b875411781a862ff565d"})),h("div",{key:"7fb5381e1126a5227b50ecc202154e44928aab5e",class:"contents",part:"contents"},h("slot",{key:"535d40033b20590f72e9fef336bda3ed7b06cead",name:"content"})))};Object.defineProperty(r.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{itemsDone:[{itemDone:0}]}},enumerable:false,configurable:true});return r}();MdsStepperBar.style=mdsStepperBarCss();export{MdsStepperBar as mds_stepper_bar};
19
+ */this.scrollToItem=function(r,e,t){var a=r.getBoundingClientRect();var s=e.getBoundingClientRect();var o=t==="centre"?(a.width-s.width)/2:0;r.scrollLeft+=s.left-a.left-o}}r.prototype.componentWillLoad=function(){this.items=this.queryItems();this.items.forEach((function(r,e){r.id="mds-stepper-bar-item-".concat(e)}))};r.prototype.componentDidLoad=function(){this.contentItems=this.queryContentItems();this.setCurrent(this.itemsDone)};r.prototype.itemDone=function(r){this.setCurrent(r)};r.prototype.changeEventHandler=function(r){var e=this;this.items=this.queryItems();this.items.forEach((function(t,a){t.done=false;if("mds-stepper-bar-item-".concat(a)===r.detail){t.current=true;e.currentItem=a}}))};r.prototype.render=function(){return h(Host,{key:"b372ff6ad3669649d7344ffab289991f52e38c81"},h("div",{key:"14a3e159bd3d5da76db864e9e8d279c6e2786deb",class:"items",part:"items"},h("slot",{key:"7dd65096c82048345c861278ba602a4e42de20bb"})),h("div",{key:"fc0e3ad4985d714297a0aaf504522bdaff9b9129",class:"contents",part:"contents"},h("slot",{key:"56e695e7ffe42aa3a1524aabc9c428ba23fc4791",name:"content"})))};Object.defineProperty(r.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{itemsDone:[{itemDone:0}]}},enumerable:false,configurable:true});return r}();MdsStepperBar.style=mdsStepperBarCss();export{MdsStepperBar as mds_stepper_bar};
@@ -1,8 +1,8 @@
1
- import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{r as readSlottedLabel,s as sanitizeLabel}from"./slot-C0o_l0td.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsTabBarItemCss=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{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-bar-item-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-tab-bar-item-background-selected:#0000;--mds-tab-bar-item-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-tab-bar-item-transition-duration:var(--duration-200,.2s);--private-tab-bar-item-transition-duration:var(--mds-tab-bar-item-transition-duration);--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-tab-bar-item-background,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237)))));color:var(--mds-tab-bar-item-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));cursor:pointer;display:flex;fill:var(--mds-tab-bar-item-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));flex:1 0 0;flex-direction:column;gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*200);text-align:center;-webkit-transition-duration:var(--private-tab-bar-item-transition-duration);transition-duration:var(--private-tab-bar-item-transition-duration);transition-property:color,background-color,fill;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([selected]:not([selected=false])){background-color:var(--mds-tab-bar-item-background-selected,#0000);color:var(--mds-tab-bar-item-color-selected,rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204)))));fill:var(--mds-tab-bar-item-color-selected,rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204)))))}: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-tab-bar-item-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-tab-bar-item-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([pref-contrast=more]){--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}@property --tw-ease{syntax:"*";inherits:false}@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-tab-bar-item-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-tab-bar-item-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}}'};var MdsTabBarItem=/** @class */function(){function t(t){var a=this;registerInstance(this,t);this.selectedEvent=createEvent(this,"mdsTabBarItemSelect",7);
1
+ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{r as readSlottedLabel,s as sanitizeLabel}from"./slot-C0o_l0td.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsTabBarItemCss=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{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-bar-item-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-tab-bar-item-background-selected:#0000;--mds-tab-bar-item-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-tab-bar-item-transition-duration:var(--duration-200,.2s);--private-tab-bar-item-transition-duration:var(--mds-tab-bar-item-transition-duration);--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-tab-bar-item-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));color:var(--mds-tab-bar-item-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));cursor:pointer;display:flex;fill:var(--mds-tab-bar-item-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));flex:1 0 0;flex-direction:column;gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*200);text-align:center;transition-duration:var(--private-tab-bar-item-transition-duration);transition-property:color,background-color,fill;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([selected]:not([selected=false])){background-color:var(--mds-tab-bar-item-background-selected,#0000);color:var(--mds-tab-bar-item-color-selected,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));fill:var(--mds-tab-bar-item-color-selected,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))))}: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-tab-bar-item-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-tab-bar-item-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--variant-primary-02,0 57 163)))}:host([pref-contrast=more]){--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--variant-primary-02,0 57 163)))}@property --tw-ease{syntax:"*";inherits:false}@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-tab-bar-item-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-tab-bar-item-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--variant-primary-02,0 57 163)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--variant-primary-02,0 57 163)))}}'};var MdsTabBarItem=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.selectedEvent=createEvent(this,"mdsTabBarItemSelect",7);
2
2
  /**
3
3
  * The icon displayed in the tab bar item.
4
4
  */this.icon="";
5
5
  /**
6
6
  * Specifies the typography of the element
7
- */this.typography="tip";this.select=function(){a.isSelected=!a.isSelected;if(a.isSelected){a.selectedEvent.emit(a.element.id)}};this.onSlotChangeHandler=function(){var t;
8
- /* this should be removed in the future once slotted text is no longer used, use the label property instead */if(((t=a.label)!==null&&t!==void 0?t:"")!=="")return;a.label=readSlottedLabel(a.element)}}t.prototype.componentWillLoad=function(){this.isSelected=this.selected};t.prototype.validateSelected=function(t){this.isSelected=t};t.prototype.labelChanged=function(t){this.label=sanitizeLabel(t)};t.prototype.render=function(){return h(Host,{key:"6e2c08fad0e04d0725ab7ef827c654cf9edecb51",onClick:this.select,"pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("mds-icon",{key:"cc8cc878d899d20532b1582ae7eb2aa459a82078",name:this.icon}),h("mds-text",{key:"ea6030247b5999f34cd64a6a3ea8b15de66ba5ab",typography:this.typography},this.label||h("slot",{key:"b922dbfe1b35997ac2c9e9d384e22505838a6994",onSlotchange:this.onSlotChangeHandler})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:[{validateSelected:0}],label:[{labelChanged:0}]}},enumerable:false,configurable:true});return t}();MdsTabBarItem.style=mdsTabBarItemCss();export{MdsTabBarItem as mds_tab_bar_item};
7
+ */this.typography="tip";this.select=function(){t.isSelected=!t.isSelected;if(t.isSelected){t.selectedEvent.emit(t.element.id)}};this.onSlotChangeHandler=function(){var e;
8
+ /* this should be removed in the future once slotted text is no longer used, use the label property instead */if(((e=t.label)!==null&&e!==void 0?e:"")!=="")return;t.label=readSlottedLabel(t.element)}}e.prototype.componentWillLoad=function(){this.isSelected=this.selected};e.prototype.validateSelected=function(e){this.isSelected=e};e.prototype.labelChanged=function(e){this.label=sanitizeLabel(e)};e.prototype.render=function(){return h(Host,{key:"6f0512a0b1573502fb7a670dfc98347561d48a9f",onClick:this.select,"pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("mds-icon",{key:"7f42e15ab36fee44a8e293de4385ebf76f093ca9",name:this.icon}),h("mds-text",{key:"81152d93c2cec346d56bdbbfd047aa27f8de8d4a",typography:this.typography},this.label||h("slot",{key:"87794df6827caa30fdfafed3cec10e90fbc56b3f",onSlotchange:this.onSlotChangeHandler})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{selected:[{validateSelected:0}],label:[{labelChanged:0}]}},enumerable:false,configurable:true});return e}();MdsTabBarItem.style=mdsTabBarItemCss();export{MdsTabBarItem as mds_tab_bar_item};
@@ -1 +1 @@
1
- import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsTabBarCss=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{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-tab-bar-item:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-bar-transition-duration:var(--duration-200,.2s);--private-tab-bar-transition-duration:var(--mds-tab-bar-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));bottom:0;-webkit-box-shadow:var(--shadow-ring-weak-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.15));box-shadow:var(--shadow-ring-weak-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.15));display:flex;justify-content:space-around;left:0;position:fixed;right:0;-webkit-transition-duration:var(--private-tab-bar-transition-duration);transition-duration:var(--private-tab-bar-transition-duration);transition-property:background-color,color,box-shadow;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}: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-tab-bar-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}@property --tw-ease{syntax:"*";inherits:false}@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-tab-bar-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}'};var MdsTabBar=/** @class */function(){function r(r){var t=this;registerInstance(this,r);this.changedEvent=createEvent(this,"mdsTabBarChange",7);this.queryItems=function(){return t.element.querySelectorAll("mds-tab-bar-item")}}r.prototype.componentWillLoad=function(){var r=this.queryItems();r.forEach((function(r,t){return r.id="mds-tab-bar-item-".concat(t)}))};r.prototype.changeEventHandler=function(r){var t=this;var e=this.queryItems();e.forEach((function(e,a){e.selected="mds-tab-bar-item-".concat(a)===r.detail;if(e.selected){t.changedEvent.emit({index:a})}}))};r.prototype.render=function(){return h(Host,{key:"1b483700e0c4edc11963b74580724a6b2774b2f5","pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("slot",{key:"0e21381bf8d13ca5de7c7109f4f7da80b3efaf49"}))};Object.defineProperty(r.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return r}();MdsTabBar.style=mdsTabBarCss();export{MdsTabBar as mds_tab_bar};
1
+ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsTabBarCss=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{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-tab-bar-item:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-bar-transition-duration:var(--duration-200,.2s);--private-tab-bar-transition-duration:var(--mds-tab-bar-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));bottom:0;box-shadow:var(--shadow-ring-weak-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.15));display:flex;justify-content:space-around;left:0;position:fixed;right:0;transition-duration:var(--private-tab-bar-transition-duration);transition-property:background-color,color,box-shadow;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}: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-tab-bar-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}@property --tw-ease{syntax:"*";inherits:false}@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-tab-bar-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}'};var MdsTabBar=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.changedEvent=createEvent(this,"mdsTabBarChange",7);this.queryItems=function(){return t.element.querySelectorAll("mds-tab-bar-item")}}e.prototype.componentWillLoad=function(){var e=this.queryItems();e.forEach((function(e,t){return e.id="mds-tab-bar-item-".concat(t)}))};e.prototype.changeEventHandler=function(e){var t=this;var r=this.queryItems();r.forEach((function(r,a){r.selected="mds-tab-bar-item-".concat(a)===e.detail;if(r.selected){t.changedEvent.emit({index:a})}}))};e.prototype.render=function(){return h(Host,{key:"9ab51cbd84a4cc05f5eeddc4de653a37fe20ea04","pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("slot",{key:"2a9714515c52dcac254c3fedb9154b754e57a2e4"}))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsTabBar.style=mdsTabBarCss();export{MdsTabBar as mds_tab_bar};
@@ -1,10 +1,23 @@
1
- import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{b as queryChildrenBySlot}from"./slot-C0o_l0td.js";import{s as setAttributeIfEmpty,h as hashRandomValue}from"./aria-CSCy6TMW.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{c as cssDurationToMilliseconds}from"./unit-D8eZRaSQ.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsTabCss=function(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-tab-item:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-direction-vertical-columns:auto auto;--mds-tab-item-default-background:#0000;--mds-tab-item-default-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-tab-item-default-shadow:#0000;--mds-tab-item-hover-background:#0000;--mds-tab-item-hover-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-tab-item-hover-shadow:#0000;--mds-tab-item-radius:calc(var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px))) - var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200)));--mds-tab-item-selected-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-tab-item-selected-shadow:var(--shadow-sm,0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a);--mds-tab-scroll-behavior:smooth;--mds-tab-scroll-scrollbar-margin:0;--mds-tab-scroll-scrollbar-radius:0;--mds-tab-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-tab-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))/.3);--mds-tab-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))));--mds-tab-slide-delay:.125s;--mds-tab-tabs-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-tab-tabs-gap:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-overflow-shadow-size:calc(var(--spacing,.0025rem)*600);--mds-tab-tabs-overflow-shadow:0 0 var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem)*600)) -2px #00000060;--mds-tab-tabs-padding:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));--mds-tab-tabs-wrapper-margin:0;--mds-tab-tabs-wrapper-outline-opacity:.7;--mds-tab-tabs-wrapper-shadow-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237)))));--mds-tab-tabs-wrapper-shadow:0 0 0 2px var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))) inset;--mds-tab-transition-duration:.5s;--private-tab-transition-duration:var(--mds-tab-transition-duration,.5s);--mds-tab-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-tab-corner-shape:var(--magma-corner-shape,squircle);border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));corner-shape:var(--mds-tab-corner-shape,round);display:grid;gap:0 calc(var(--spacing,.0025rem)*600);grid-template-rows:-webkit-min-content auto;grid-template-rows:min-content auto;position:relative}:host([animation=slide]) ::slotted(mds-tab-item){--mds-tab-item-hover-background:#0000;--mds-tab-item-selected-background:#0000;--mds-tab-item-selected-shadow:#0000;--mds-tab-item-default-background:#0000;--mds-tab-item-default-shadow:#0000}.tabs{align-items:flex-start;background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237)))));box-sizing:border-box;display:flex;gap:var(--mds-tab-tabs-gap,calc(var(--spacing,.0025rem)*200));overflow:auto;padding:var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem)*200));scroll-behavior:var(--mds-tab-scroll-behavior);-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;-webkit-transition-duration:var(--private-tab-transition-duration);transition-duration:var(--private-tab-transition-duration);transition-property:background-color;-webkit-transition-timing-function:var(--mds-tab-transition-timing-function);transition-timing-function:var(--mds-tab-transition-timing-function);z-index:0}.tabs,.tabs-wrapper{border-radius:inherit;corner-shape:inherit;position:relative}.tabs-wrapper{display:grid;flex-shrink:0;margin:var(--mds-tab-tabs-wrapper-margin,0);max-width:max-content;overflow:hidden}.tabs-wrapper--fill{max-width:100%}.tabs-wrapper:after{border-radius:inherit;corner-shape:inherit;border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));-webkit-box-shadow:var(--mds-tab-tabs-wrapper-shadow);box-shadow:var(--mds-tab-tabs-wrapper-shadow);content:"";inset:0;opacity:var(--mds-tab-tabs-wrapper-outline-opacity,.7);pointer-events:none;position:absolute;-webkit-transition-duration:var(--private-tab-transition-duration);transition-duration:var(--private-tab-transition-duration);-webkit-transition-duration:var(--mds-tab-transition-duration,.5s);transition-duration:var(--mds-tab-transition-duration,.5s);transition-property:box-shadow,opacity;-webkit-transition-timing-function:var(--mds-tab-transition-timing-function);transition-timing-function:var(--mds-tab-transition-timing-function);z-index:1}.contents{--mds-tab-contents-height:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;align-items:stretch;box-sizing:border-box;display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*600);height:var(--mds-tab-contents-height);overflow:auto hidden;position:relative;scroll-behavior:var(--mds-tab-scroll-behavior);-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-transition-duration:var(--private-tab-transition-duration);transition-duration:var(--private-tab-transition-duration);transition-property:height;-webkit-transition-timing-function:var(--mds-tab-transition-timing-function);transition-timing-function:var(--mds-tab-transition-timing-function)}.contents::-webkit-scrollbar{display:none}.contents:empty{display:none}::slotted([slot=content]){flex-basis:0;flex-grow:1;min-width:100%;scroll-snap-align:start;width:100%}::slotted([slot=content][mds-tab-content-hidden]){display:none!important}.slider{--mds-tab-slider-offset-x:0;--mds-tab-slider-offset-y:0;--mds-tab-slider-width:0;--mds-tab-slider-height:0;background-color:var(--mds-tab-item-selected-background);border-radius:var(--mds-tab-item-radius);-webkit-box-shadow:var(--mds-tab-item-selected-shadow);box-shadow:var(--mds-tab-item-selected-shadow);corner-shape:var(--mds-tab-corner-shape);height:var(--mds-tab-slider-height);inset:0 auto auto 0;pointer-events:none;position:absolute;-webkit-transform:translate(var(--mds-tab-slider-offset-x),var(--mds-tab-slider-offset-y));transform:translate(var(--mds-tab-slider-offset-x),var(--mds-tab-slider-offset-y));-webkit-transition-duration:var(--mds-tab-transition-duration,.5s);transition-duration:var(--mds-tab-transition-duration,.5s);transition-property:background-color,box-shadow,transform,width;-webkit-transition-timing-function:var(--mds-tab-transition-timing-function);transition-timing-function:var(--mds-tab-transition-timing-function);width:var(--mds-tab-slider-width);will-change:height,transform,width;z-index:-1}::slotted(mds-tab-item){position:relative;z-index:1}:host([direction=vertical]){grid-template-columns:var(--mds-tab-direction-vertical-columns,auto auto);grid-template-rows:1fr}:host([direction=vertical]) .tabs{align-self:start;flex-direction:column}:host([direction=vertical]) .tabs-wrapper{align-self:start;max-width:none}:host([direction=vertical][fill]) :is(.tabs,.tabs-wrapper){align-self:auto}:host([direction=vertical])::slotted(mds-tab-item){width:100%}:host(:not([scrollbar])) .tabs{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([scrollbar])) .tabs::-webkit-scrollbar{display:none}:host([scrollbar]) .tabs::-webkit-scrollbar{height:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([scrollbar]) .tabs::-webkit-scrollbar-track{background-color:var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225)))));border-radius:var(--mds-tab-scroll-scrollbar-radius,0);margin-block:var(--mds-tab-scroll-scrollbar-margin,0);margin-inline:var(--mds-tab-scroll-scrollbar-margin,0)}:host([scrollbar]) .tabs::-webkit-scrollbar-thumb{background-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))/.3));border-radius:var(--mds-tab-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.tabs{scrollbar-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))/.3)) var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225)))));scrollbar-width:thin}}.tabs-wrapper-overflow-left,.tabs-wrapper-overflow-right{--size:calc(var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200)) * 2);--offset-outside:calc(var(--size) + var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem) * 600)));background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237)))));border-radius:100%;-webkit-box-shadow:var(--mds-tab-tabs-overflow-shadow);box-shadow:var(--mds-tab-tabs-overflow-shadow);content:"";display:inline-flex;height:auto;pointer-events:none;position:absolute;transition-duration:.5s;transition-property: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:var(--size);z-index:2}.tabs-wrapper-overflow-left{inset:0 auto 0 0;-webkit-transform:translateX(calc(var(--offset-outside)*-1));transform:translateX(calc(var(--offset-outside)*-1))}.tabs-wrapper-overflow-right{inset:0 0 0 auto;-webkit-transform:translateX(var(--offset-outside));transform:translateX(var(--offset-outside))}.tabs-wrapper-overflow-left--show{transform:translate(-100%)}.tabs-wrapper-overflow-right--show{transform:translate(100%)}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-tab-item-selected-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}:host([pref-contrast=more]){--mds-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))));--mds-tab-tabs-wrapper-outline-opacity:.3}: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-tab-transition-duration:0s}@media (prefers-reduced-motion:reduce){:host{--mds-tab-scroll-behavior:auto}: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-tab-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-tab-item-selected-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-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))));--mds-tab-tabs-wrapper-outline-opacity:.3}}'};var MdsTab=/** @class */function(){function t(t){var a=this;registerInstance(this,t);this.changedEvent=createEvent(this,"mdsTabChange",7);this.currentItemIndex=-1;this.tabItems=[];this.contentItems=[];this.sliderWidth=-1;this.sliderHeight=-1;this.sliderOffsetX=-1;this.sliderOffsetY=-1;this.overflowLeft=false;this.overflowRight=false;
1
+ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{b as queryChildrenBySlot}from"./slot-C0o_l0td.js";import{s as setAttributeIfEmpty,h as hashRandomValue}from"./aria-CSCy6TMW.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{c as cssDurationToMilliseconds}from"./unit-D8eZRaSQ.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsTabCss=function(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-tab-item:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-direction-vertical-columns:auto auto;--mds-tab-item-default-background:#0000;--mds-tab-item-default-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-tab-item-default-shadow:#0000;--mds-tab-item-hover-background:#0000;--mds-tab-item-hover-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-hover-shadow:#0000;--mds-tab-item-radius:min(calc(var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px))) - var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200))),var(--magma-corner-cap,.5) * var(--private-tab-item-height));--mds-tab-item-selected-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-selected-shadow:var(--shadow-sm,0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a);--mds-tab-scroll-behavior:smooth;--mds-tab-scroll-scrollbar-margin:0;--mds-tab-scroll-scrollbar-radius:0;--mds-tab-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-tab-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3);--mds-tab-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-tab-slide-delay:.125s;--mds-tab-tabs-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-tab-tabs-gap:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-overflow-shadow-size:calc(var(--spacing,.0025rem)*600);--mds-tab-tabs-overflow-shadow:0 0 var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem)*600)) -2px #00000060;--mds-tab-tabs-padding:calc(var(--spacing,.0025rem)*200);--mds-tab-tabs-radius:min(var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)),var(--magma-corner-cap,.5) * var(--private-tab-item-height) + var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem)*200)));--mds-tab-tabs-wrapper-margin:0;--mds-tab-tabs-wrapper-outline-opacity:.7;--mds-tab-tabs-wrapper-shadow-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));--mds-tab-tabs-wrapper-shadow:0 0 0 2px var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-transition-duration:.5s;--private-tab-transition-duration:var(--mds-tab-transition-duration,.5s);--private-tab-item-height:calc(var(--spacing,.0025rem)*900);--mds-tab-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-tab-corner-shape:var(--magma-corner-shape,squircle);border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));corner-shape:var(--mds-tab-corner-shape,round);display:grid;gap:0 calc(var(--spacing,.0025rem)*600);grid-template-rows:min-content auto;position:relative}:host([size=sm]){--private-tab-item-height:calc(var(--spacing,.0025rem)*700)}:host([animation=slide]) ::slotted(mds-tab-item){--mds-tab-item-hover-background:#0000;--mds-tab-item-selected-background:#0000;--mds-tab-item-selected-shadow:#0000;--mds-tab-item-default-background:#0000;--mds-tab-item-default-shadow:#0000}.tabs{align-items:flex-start;background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));box-sizing:border-box;display:flex;gap:var(--mds-tab-tabs-gap,calc(var(--spacing,.0025rem)*200));overflow:auto;padding:var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem)*200));scroll-behavior:var(--mds-tab-scroll-behavior);scroll-snap-type:x mandatory;transition-duration:var(--private-tab-transition-duration);transition-property:background-color;transition-timing-function:var(--mds-tab-transition-timing-function);z-index:0}.tabs,.tabs-wrapper{border-radius:inherit;corner-shape:inherit;position:relative}.tabs-wrapper{display:grid;flex-shrink:0;margin:var(--mds-tab-tabs-wrapper-margin,0);max-width:max-content;overflow:hidden}.tabs-wrapper--fill{max-width:100%}.tabs-wrapper:after{border-radius:inherit;corner-shape:inherit;border-radius:var(--mds-tab-tabs-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));box-shadow:var(--mds-tab-tabs-wrapper-shadow);content:"";inset:0;opacity:var(--mds-tab-tabs-wrapper-outline-opacity,.7);pointer-events:none;position:absolute;transition-duration:var(--private-tab-transition-duration);transition-duration:var(--mds-tab-transition-duration,.5s);transition-property:box-shadow,opacity;transition-timing-function:var(--mds-tab-transition-timing-function);z-index:1}.contents{--mds-tab-contents-height:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;align-items:stretch;box-sizing:border-box;display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*600);height:var(--mds-tab-contents-height);overflow:auto hidden;position:relative;scroll-behavior:var(--mds-tab-scroll-behavior);scroll-snap-type:x mandatory;scrollbar-width:none;transition-duration:var(--private-tab-transition-duration);transition-property:height;transition-timing-function:var(--mds-tab-transition-timing-function)}.contents::-webkit-scrollbar{display:none}.contents--empty{display:none}::slotted([slot=content]){flex-basis:0;flex-grow:1;min-width:100%;scroll-snap-align:start;width:100%}::slotted([slot=content][mds-tab-content-hidden]){display:none!important}.slider{--mds-tab-slider-offset-x:0;--mds-tab-slider-offset-y:0;--mds-tab-slider-width:0;--mds-tab-slider-height:0;background-color:var(--mds-tab-item-selected-background);border-radius:var(--mds-tab-item-radius);box-shadow:var(--mds-tab-item-selected-shadow);corner-shape:var(--mds-tab-corner-shape);height:var(--mds-tab-slider-height);inset:0 auto auto 0;pointer-events:none;position:absolute;transform:translate(var(--mds-tab-slider-offset-x),var(--mds-tab-slider-offset-y));transition-duration:var(--mds-tab-transition-duration,.5s);transition-property:background-color,box-shadow,transform,width;transition-timing-function:var(--mds-tab-transition-timing-function);width:var(--mds-tab-slider-width);will-change:height,transform,width;z-index:-1}.slider--still{transition-property:background-color,box-shadow}::slotted(mds-tab-item){position:relative;z-index:1}:host([direction=vertical]){--mds-tab-tabs-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));grid-template-columns:var(--mds-tab-direction-vertical-columns,auto auto);grid-template-rows:1fr}:host([direction=vertical]) .tabs{align-self:start;flex-direction:column}:host([direction=vertical]) .tabs-wrapper{align-self:start;max-width:none}:host([direction=vertical][fill]) :is(.tabs,.tabs-wrapper){align-self:auto}:host([direction=vertical]) .tabs-wrapper--no-content{grid-column:1/-1}:host([direction=vertical])::slotted(mds-tab-item){width:100%}:host(:not([scrollbar])) .tabs{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([scrollbar])) .tabs::-webkit-scrollbar{display:none}:host([scrollbar]) .tabs::-webkit-scrollbar{height:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-tab-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([scrollbar]) .tabs::-webkit-scrollbar-track{background-color:var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-tab-scroll-scrollbar-radius,0);margin-block:var(--mds-tab-scroll-scrollbar-margin,0);margin-inline:var(--mds-tab-scroll-scrollbar-margin,0)}:host([scrollbar]) .tabs::-webkit-scrollbar-thumb{background-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3));border-radius:var(--mds-tab-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.tabs{scrollbar-color:var(--mds-tab-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3)) var(--mds-tab-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));scrollbar-width:thin}}.tabs-wrapper-overflow-left,.tabs-wrapper-overflow-right{--size:calc(var(--mds-tab-tabs-padding,calc(var(--spacing,.0025rem) * 200)) * 2);--offset-outside:calc(var(--size) + var(--mds-tab-tabs-overflow-shadow-size,calc(var(--spacing,.0025rem) * 600)));background-color:var(--mds-tab-tabs-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));border-radius:100%;box-shadow:var(--mds-tab-tabs-overflow-shadow);content:"";display:inline-flex;height:auto;pointer-events:none;position:absolute;transition-duration:.5s;transition-property:transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:var(--size);z-index:2}.tabs-wrapper-overflow-left{inset:0 auto 0 0;transform:translateX(calc(var(--offset-outside)*-1))}.tabs-wrapper-overflow-right{inset:0 0 0 auto;transform:translateX(var(--offset-outside))}.tabs-wrapper-overflow-left--show{transform:translate(-100%)}.tabs-wrapper-overflow-right--show{transform:translate(100%)}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-tab-item-selected-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([pref-contrast=more]){--mds-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-tab-tabs-wrapper-outline-opacity:.3}: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-tab-transition-duration:0s}@media (prefers-reduced-motion:reduce){:host{--mds-tab-scroll-behavior:auto}: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-tab-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-tab-item-selected-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-item-selected-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));--mds-tab-tabs-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-tab-tabs-wrapper-shadow-color,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))) inset;--mds-tab-tabs-wrapper-shadow-color:rgb(var(--magma-border-strong,var(--border-neutral-strong,140 140 140)));--mds-tab-tabs-wrapper-outline-opacity:.3}}'};var MdsTab=/** @class */function(){function t(t){var a=this;registerInstance(this,t);this.changedEvent=createEvent(this,"mdsTabChange",7);this.currentItemIndex=-1;this.tabItems=[];this.contentItems=[];this.sliderWidth=-1;this.sliderHeight=-1;this.sliderOffsetX=-1;this.sliderOffsetY=-1;
2
+ /** the slider slides only to follow a selection, any other move draws it in place */this.sliderSlides=false;this.overflowLeft=false;this.overflowRight=false;
3
+ /** every item is a link: the strip is a navigation, not a tablist */this.navigation=false;this.hasContent=false;
2
4
  /**
3
5
  * Sets if the component distributes item vertically or horzontally
4
6
  */this.direction="horizontal";
5
7
  /**
6
8
  * Sets the animation type of the selection transition between `mds-tab-item` elements
7
- */this.animation="slide";this.queryContentItems=function(){return queryChildrenBySlot(a.element,"content")};this.updateContentItems=function(){a.contentItems=a.queryContentItems();a.contentItems.forEach((function(t,r){setAttributeIfEmpty(t,"role","tabpanel");setAttributeIfEmpty(t,"aria-labelledby",a.tabItems[r].id)}));a.selectContentItem()};this.setTabsItems=function(){a.tabItems=Array.from(a.element.querySelectorAll("mds-tab-item"));a.currentItemIndex=-1;a.tabItems.forEach((function(t){t.size=a.size;t.direction=a.direction;t.animation=a.animation}));a.tabItems.forEach((function(t,r){if(t.id===""){setAttributeIfEmpty(t,"id",hashRandomValue("mds-tab-item"))}if(t.selected){a.currentItemIndex=r;a.currentItemEl=a.tabItems[a.currentItemIndex]}}))};this.updateTabItems=function(){a.setTabsItems();if(a.overflow)a.updateOverflowState();a.updateSliderPosition();a.scrollTabs(a.currentItemIndex)};this.unsetOverflowCheck=function(){a.tabs.removeEventListener("scroll",a.updateOverflowState);a.observer.unobserve(a.tabsContainer)};this.initOverflowCheck=function(){a.tabs.addEventListener("scroll",a.updateOverflowState);a.observer=new ResizeObserver((function(){if(a.overflow)a.updateOverflowState();a.updateSliderPosition()}));a.observer.observe(a.tabsContainer);a.updateOverflowState()};this.updateOverflowState=function(){if(a.tabs==null||a.tabsContainer==null)return;var t=a.tabsContainer.offsetWidth;var r=a.tabs.scrollWidth;var e=a.tabs.scrollLeft;a.overflowLeft=e>0;a.overflowRight=Math.ceil(e+t)<r-1};this.updateSliderPosition=function(){if(a.animation==="slide"&&a.currentItemIndex>=0){self.requestAnimationFrame((function(){a.sliderWidth=a.currentItemEl.offsetWidth;a.sliderHeight=a.currentItemEl.offsetHeight;a.sliderOffsetX=a.currentItemEl.offsetLeft-a.tabsContainer.offsetLeft;a.sliderOffsetY=a.currentItemEl.offsetTop-a.tabsContainer.offsetTop+a.currentItemEl.offsetHeight-a.sliderHeight}))}else{a.sliderHeight=-1;a.sliderOffsetX=-1;a.sliderOffsetY=-1;a.sliderWidth=-1}};this.scrollTabs=function(t){var r=a.tabItems[t];setTimeout((function(){a.tabs.scrollLeft=r.offsetLeft-a.tabs.offsetLeft-a.tabs.offsetWidth/2+r.offsetWidth/2;a.updateOverflowState()}),cssDurationToMilliseconds(a.cssSlideDelayDuration))};this.selectContentItem=function(){a.contentItems.forEach((function(t,r){t.setAttribute("mds-tab-content-hidden","");if(r===a.currentItemIndex){t.removeAttribute("mds-tab-content-hidden")}}))};this.updateCSSCustomProps=function(){if(typeof window==="undefined")return;var t=window.getComputedStyle(a.element);a.cssSlideDelayDuration=t.getPropertyValue("--mds-tab-slide-delay")}}t.prototype.componentWillLoad=function(){this.setTabsItems()};t.prototype.disconnectedCallback=function(){this.unsetOverflowCheck()};t.prototype.componentDidLoad=function(){var t,a,r,e;this.updateCSSCustomProps();this.tabs=(t=this.element.shadowRoot)===null||t===void 0?void 0:t.querySelector(".tabs");this.tabsContainer=(a=this.element.shadowRoot)===null||a===void 0?void 0:a.querySelector(".tabs-wrapper");
9
+ */this.animation="slide";this.queryContentItems=function(){return queryChildrenBySlot(a.element,"content")};this.updateContentItems=function(){a.contentItems=a.queryContentItems();a.hasContent=a.contentItems.length>0;a.contentItems.forEach((function(t,r){setAttributeIfEmpty(t,"role","tabpanel");setAttributeIfEmpty(t,"aria-labelledby",a.tabItems[r].id)}));a.selectContentItem()};this.setTabsItems=function(){a.tabItems=Array.from(a.element.querySelectorAll("mds-tab-item"));a.currentItemIndex=-1;a.navigation=a.tabItems.length>0&&a.tabItems.every((function(t){var a;return((a=t.href)!==null&&a!==void 0?a:"")!==""}));a.tabItems.forEach((function(t){t.size=a.size;t.direction=a.direction;t.animation=a.animation}));a.tabItems.forEach((function(t,r){if(t.id===""){setAttributeIfEmpty(t,"id",hashRandomValue("mds-tab-item"))}if(t.selected){a.currentItemIndex=r;a.currentItemEl=a.tabItems[a.currentItemIndex]}}))};this.updateTabItems=function(){a.setTabsItems();if(a.overflow)a.updateOverflowState();a.updateSliderPosition();a.scrollTabs(a.currentItemIndex)};this.unsetOverflowCheck=function(){a.tabs.removeEventListener("scroll",a.updateOverflowState);a.observer.unobserve(a.tabsContainer)};this.initOverflowCheck=function(){a.tabs.addEventListener("scroll",a.updateOverflowState);a.observer=new ResizeObserver((function(){if(a.overflow)a.updateOverflowState();a.updateSliderPosition()}));a.observer.observe(a.tabsContainer);a.updateOverflowState()};this.updateOverflowState=function(){if(a.tabs==null||a.tabsContainer==null)return;var t=a.tabsContainer.offsetWidth;var r=a.tabs.scrollWidth;var e=a.tabs.scrollLeft;a.overflowLeft=e>0;a.overflowRight=Math.ceil(e+t)<r-1};
10
+ /**
11
+ * Moves the slider under the selected item. It slides there only to follow a selection
12
+ * (`slide`): on load, after a change of the layout, or when the strip is shown again after
13
+ * being hidden, it is drawn in place, so the strip appears with the selected tab already
14
+ * marked (#924).
15
+ */this.updateSliderPosition=function(t){if(t===void 0){t=false}if(a.animation==="slide"&&a.currentItemIndex>=0){self.requestAnimationFrame((function(){
16
+ // a hidden strip has no box, and every measure reads 0: the slider keeps its place
17
+ // instead of collapsing in the corner, and the observer moves it once the strip is shown
18
+ if(!a.currentItemEl.offsetWidth)return;a.sliderSlides=t;a.sliderWidth=a.currentItemEl.offsetWidth;a.sliderHeight=a.currentItemEl.offsetHeight;a.sliderOffsetX=a.currentItemEl.offsetLeft-a.tabsContainer.offsetLeft;a.sliderOffsetY=a.currentItemEl.offsetTop-a.tabsContainer.offsetTop+a.currentItemEl.offsetHeight-a.sliderHeight}))}else{a.sliderHeight=-1;a.sliderOffsetX=-1;a.sliderOffsetY=-1;a.sliderWidth=-1}};this.scrollTabs=function(t){
19
+ // no item selected: nothing to bring into view
20
+ if(t<0||t>=a.tabItems.length)return;var r=a.tabItems[t];setTimeout((function(){a.tabs.scrollLeft=r.offsetLeft-a.tabs.offsetLeft-a.tabs.offsetWidth/2+r.offsetWidth/2;a.updateOverflowState()}),cssDurationToMilliseconds(a.cssSlideDelayDuration))};this.selectContentItem=function(){a.contentItems.forEach((function(t,r){t.setAttribute("mds-tab-content-hidden","");if(r===a.currentItemIndex){t.removeAttribute("mds-tab-content-hidden")}}))};this.updateCSSCustomProps=function(){if(typeof window==="undefined")return;var t=window.getComputedStyle(a.element);a.cssSlideDelayDuration=t.getPropertyValue("--mds-tab-slide-delay")}}t.prototype.componentWillLoad=function(){this.setTabsItems();this.hasContent=this.queryContentItems().length>0};t.prototype.disconnectedCallback=function(){this.unsetOverflowCheck()};t.prototype.componentDidLoad=function(){var t,a,r,e;this.updateCSSCustomProps();this.tabs=(t=this.element.shadowRoot)===null||t===void 0?void 0:t.querySelector(".tabs");this.tabsContainer=(a=this.element.shadowRoot)===null||a===void 0?void 0:a.querySelector(".tabs-wrapper");
8
21
  // attach onSlotChange event here to prevent fire event before componentDidLoad
9
22
  (e=(r=this.element.shadowRoot)===null||r===void 0?void 0:r.querySelector("slot"))===null||e===void 0?void 0:e.addEventListener("slotchange",this.updateTabItems.bind(this));this.updateContentItems();this.initOverflowCheck();this.updateSliderPosition();if(this.currentItemIndex>0){this.scrollTabs(this.currentItemIndex)}};t.prototype.changeEventHandler=function(t){var a=this;
10
23
  // since the external developer can define a custom id
@@ -12,7 +25,7 @@ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from".
12
25
  this.tabItems.forEach((function(r,e){var s;if(r.id===t.detail.target.id){a.changedEvent.emit({id:e,value:r.value});a.currentItemIndex=e;a.currentItemEl=a.tabItems[a.currentItemIndex];a.scrollTabs(e);r.selected=true;
13
26
  // for some reason, mds-tab-item looses focus when we click Enter with the keyboard,
14
27
  // which forces user to find again where the tab is with keyboard
15
- var i=(s=a.tabItems[a.currentItemIndex].shadowRoot)===null||s===void 0?void 0:s.querySelector("mds-button");setTimeout((function(){i.focus()}),0);return}r.selected=undefined}));this.selectContentItem();this.updateSliderPosition()};t.prototype.focusEventHandler=function(t){var a=this;this.tabItems.forEach((function(r,e){if(r.id===t.detail.target.id){a.scrollTabs(e)}}))};t.prototype.handleAnimationChange=function(t){this.tabItems.forEach((function(a){a.animation=t}));this.updateSliderPosition()};t.prototype.handleDirectionChange=function(t){this.tabItems.forEach((function(a){a.direction=t}))};t.prototype.handleScrollbarChange=function(t){if(t===false){this.scrollbar=undefined}};t.prototype.handleFillChange=function(t){if(t===false){this.fill=undefined}};t.prototype.handleOverflowChange=function(t){if(!t){this.unsetOverflowCheck();return}this.initOverflowCheck()};t.prototype.handleSizeChange=function(t){this.tabItems.forEach((function(a){a.size=t}))};t.prototype.render=function(){return h(Host,{key:"8176eaae2703463a918f36d44d42401d618b9654","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:"82ba8b499fc1903bf90e7188288d6c5e270e81ae",class:clsx("tabs-wrapper",this.fill&&"tabs-wrapper--fill")},this.overflow&&h("div",{key:"f10af152c6e9daa6b9bd884a394c282277c329ee",class:clsx("tabs-wrapper-overflow-left",this.overflowLeft&&"tabs-wrapper-overflow-left--show")}),this.overflow&&h("div",{key:"f5dc27fb90f6f354dcb4f5ed865e2067da2793e2",class:clsx("tabs-wrapper-overflow-right",this.overflowRight&&"tabs-wrapper-overflow-right--show")}),h("div",{key:"b88cc64d8de510ad22afb7470492ea638e62c131",class:"tabs",part:"tabs",role:"tablist"},h("slot",{key:"f32e73f653e4b825edb97250bd9cb151ff09b918"}),this.animation==="slide"&&h("div",{key:"9d99b52eeb1bed53a1d519a953186bdc586a36f0",class:"slider",part:"slider",style:{"--mds-tab-slider-width":"".concat(this.sliderWidth,"px"),"--mds-tab-slider-height":"".concat(this.sliderHeight,"px"),"--mds-tab-slider-offset-x":"".concat(this.sliderOffsetX,"px"),"--mds-tab-slider-offset-y":"".concat(this.sliderOffsetY,"px")}}))),h("div",{key:"a1f9c8e469218c71c2d6b5d6944cd3dd8f34a8d2",class:"contents",part:"contents"},h("slot",{key:"8ff17223381aec121bbf41ab4c7291563336a74c",name:"content",onSlotchange:this.updateContentItems})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{animation:[{handleAnimationChange:0}],direction:[{handleDirectionChange:0}],scrollbar:[{handleScrollbarChange:0}],fill:[{handleFillChange:0}],overflow:[{handleOverflowChange:0}],size:[{handleSizeChange:0}]}},enumerable:false,configurable:true});return t}();MdsTab.style=mdsTabCss();var mdsTabItemCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-item-selected-shadow:inherit;--mds-tab-item-radius:inherit;corner-shape:var(--magma-corner-shape,squircle);cursor:pointer;display:flex}:host([animation=slide]){--mds-tab-item-hover-background:#0000;--mds-tab-item-selected-background:#0000;--mds-tab-item-selected-shadow:none;--mds-tab-item-default-background:#0000;--mds-tab-item-default-shadow:none}.button{--mds-button-background:var(--mds-tab-item-default-background);--mds-button-color:var(--mds-tab-item-default-color);--mds-button-radius:var(--mds-tab-item-radius);--mds-button-border-default-opacity:0;--mds-button-corner-shape:var(--mds-tab-item-corner-shape,var(--magma-corner-shape,squircle));aspect-ratio:auto;flex-grow:1}.button:hover{--mds-button-background:var(--mds-tab-item-hover-background);--mds-button-color:var(--mds-tab-item-hover-color)}.button.selected,.button.selected:hover{--mds-button-background:var(--mds-tab-item-selected-background);--mds-button-color:var(--mds-tab-item-selected-color);-webkit-box-shadow:var(--mds-tab-item-selected-shadow);box-shadow:var(--mds-tab-item-selected-shadow);pointer-events:none}:host([disabled]){pointer-events:none}:host([direction=vertical]){width:100%}:host([direction=vertical]) .button{justify-content:start}:host([pref-contrast=more]){--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-tab-item-selected-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-tab-item-selected-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}}"};var MdsTabItem=/** @class */function(){function t(t){var a=this;registerInstance(this,t);this.selectedEvent=createEvent(this,"mdsTabItemSelect",7);this.focusedEvent=createEvent(this,"mdsTabItemFocus",7);
28
+ var i=(s=a.tabItems[a.currentItemIndex].shadowRoot)===null||s===void 0?void 0:s.querySelector("mds-button");setTimeout((function(){i.focus()}),0);return}r.selected=undefined}));this.selectContentItem();this.updateSliderPosition(true)};t.prototype.focusEventHandler=function(t){var a=this;this.tabItems.forEach((function(r,e){if(r.id===t.detail.target.id){a.scrollTabs(e)}}))};t.prototype.handleAnimationChange=function(t){this.tabItems.forEach((function(a){a.animation=t}));this.updateSliderPosition()};t.prototype.handleDirectionChange=function(t){this.tabItems.forEach((function(a){a.direction=t}))};t.prototype.handleScrollbarChange=function(t){if(t===false){this.scrollbar=undefined}};t.prototype.handleFillChange=function(t){if(t===false){this.fill=undefined}};t.prototype.handleOverflowChange=function(t){if(!t){this.unsetOverflowCheck();return}this.initOverflowCheck()};t.prototype.handleSizeChange=function(t){this.tabItems.forEach((function(a){a.size=t}))};t.prototype.render=function(){return h(Host,{key:"cd4099108ea07ad5e23f6ff1d85d473f9b3aa908","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:"4cb36490dc47b012362aef2a8715e73818e4dc10",class:clsx("tabs-wrapper",this.fill&&"tabs-wrapper--fill",!this.hasContent&&"tabs-wrapper--no-content")},this.overflow&&h("div",{key:"3383208dc4594679b38bc66b21dfac2579c37369",class:clsx("tabs-wrapper-overflow-left",this.overflowLeft&&"tabs-wrapper-overflow-left--show")}),this.overflow&&h("div",{key:"9920ee4a75aaf6d05427ee10eb690c5b2258e6e5",class:clsx("tabs-wrapper-overflow-right",this.overflowRight&&"tabs-wrapper-overflow-right--show")}),h("div",{key:"76c292c9b65df4933411da50ea7c016a156c78c9",class:"tabs",part:"tabs",role:this.navigation?undefined:"tablist"},h("slot",{key:"5a5dda062820ec7d3c9323bf4f5c329d958a0889"}),this.animation==="slide"&&h("div",{key:"ee5cef90a082056a6fa7a607fd745591a5305b9d",class:clsx("slider",!this.sliderSlides&&"slider--still"),part:"slider",style:{"--mds-tab-slider-width":"".concat(this.sliderWidth,"px"),"--mds-tab-slider-height":"".concat(this.sliderHeight,"px"),"--mds-tab-slider-offset-x":"".concat(this.sliderOffsetX,"px"),"--mds-tab-slider-offset-y":"".concat(this.sliderOffsetY,"px")}}))),h("div",{key:"2151d66bddf1eb9297b6714801267489405f55ee",class:clsx("contents",!this.hasContent&&"contents--empty"),part:"contents"},h("slot",{key:"f0efc24b4e891ed38a05bb9972c71ca0dfcd6758",name:"content",onSlotchange:this.updateContentItems})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{animation:[{handleAnimationChange:0}],direction:[{handleDirectionChange:0}],scrollbar:[{handleScrollbarChange:0}],fill:[{handleFillChange:0}],overflow:[{handleOverflowChange:0}],size:[{handleSizeChange:0}]}},enumerable:false,configurable:true});return t}();MdsTab.style=mdsTabCss();var mdsTabItemCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-item-selected-shadow:inherit;--mds-tab-item-radius:inherit;corner-shape:var(--magma-corner-shape,squircle);cursor:pointer;display:flex}:host([animation=slide]){--mds-tab-item-hover-background:#0000;--mds-tab-item-selected-background:#0000;--mds-tab-item-selected-shadow:none;--mds-tab-item-default-background:#0000;--mds-tab-item-default-shadow:none}.button{--mds-button-background:var(--mds-tab-item-default-background);--mds-button-color:var(--mds-tab-item-default-color);--mds-button-radius:var(--mds-tab-item-radius);--mds-button-border-default-opacity:0;--mds-button-corner-shape:var(--mds-tab-item-corner-shape,var(--magma-corner-shape,squircle));aspect-ratio:auto;flex-grow:1}.button:hover{--mds-button-background:var(--mds-tab-item-hover-background);--mds-button-color:var(--mds-tab-item-hover-color)}.button.selected,.button.selected:hover{--mds-button-background:var(--mds-tab-item-selected-background);--mds-button-color:var(--mds-tab-item-selected-color);box-shadow:var(--mds-tab-item-selected-shadow);pointer-events:none}:host([disabled]){pointer-events:none}:host([direction=vertical]){width:100%}:host([direction=vertical]) .button{justify-content:start}:host([pref-contrast=more]){--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-selected-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-item-selected-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-tab-item-selected-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))}}"};var MdsTabItem=/** @class */function(){function t(t){var a=this;registerInstance(this,t);this.selectedEvent=createEvent(this,"mdsTabItemSelect",7);this.focusedEvent=createEvent(this,"mdsTabItemFocus",7);
16
29
  /**
17
30
  * Specifies the horizontal position of the icon displayed in the tab item
18
31
  */this.iconPosition="left";
@@ -21,6 +34,14 @@ var i=(s=a.tabItems[a.currentItemIndex].shadowRoot)===null||s===void 0?void 0:s.
21
34
  */this.type="submit";
22
35
  /**
23
36
  * Specifies the size for the tab item
24
- */this.size="md";this.toggle=function(){if(a.disabled){return}a.isSelected=!a.isSelected;if(a.isSelected){a.selectedEvent.emit({target:a.element,value:a.value})}};this.focus=function(){a.focusedEvent.emit({target:a.element,value:a.value})}}t.prototype.validateActive=function(t){this.isSelected=t;if(this.isSelected){this.selectedEvent.emit({target:this.element,value:this.value})}};t.prototype.componentWillLoad=function(){this.hasText=this.element.innerHTML!==""};t.prototype.render=function(){var t;return h(Host,{key:"83668d45e4a9ea1a2fa08fa7454cd07e31269910","pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("mds-button",{key:"857f668264e6b3db32045105d8de005c010b176d",class:clsx("button",this.selected?"selected":""),await:this.await,disabled:(t=this.disabled)!==null&&t!==void 0?t:undefined,href:this.href,icon:this.icon,iconPosition:this.iconPosition,onKeyDown:this.focus,onClick:this.toggle,part:"button",role:"tab","aria-expanded":this.expanded===undefined?undefined:"".concat(this.expanded),label:this.label,size:this.size,
37
+ */this.size="md";this.isLink=function(){var t;return((t=a.href)!==null&&t!==void 0?t:"")!==""};this.toggle=function(t){if(a.disabled){return}
38
+ // a modifier click on a link opens it elsewhere (new tab or window): the strip stays as it is
39
+ if(a.isLink()&&(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){return}a.isSelected=!a.isSelected;if(a.isSelected){a.selectedEvent.emit({target:a.element,value:a.value})}};this.focus=function(){a.focusedEvent.emit({target:a.element,value:a.value})}}t.prototype.validateActive=function(t){
40
+ // the item that announced its selection gets `selected` back from the parent: it has
41
+ // announced it already, a second time would double the parent's mdsTabChange
42
+ if(this.isSelected===t)return;this.isSelected=t;if(this.isSelected){this.selectedEvent.emit({target:this.element,value:this.value})}};t.prototype.componentWillLoad=function(){this.hasText=this.element.innerHTML!==""};t.prototype.render=function(){var t;return h(Host,{key:"35dfa8daba22b46e4d6ccc25c636a43e66fef55b","pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("mds-button",{key:"22d833d4bc3bfa18e54739983c557472d5c11b7f",class:clsx("button",this.selected?"selected":""),await:this.await,disabled:(t=this.disabled)!==null&&t!==void 0?t:undefined,href:this.href,icon:this.icon,iconPosition:this.iconPosition,onKeyDown:this.focus,onClick:this.toggle,part:"button",
43
+ // a tab controls a panel; one with href is a link to another page or place, which
44
+ // ARIA names as such, the selected one being the current one
45
+ role:this.isLink()?"link":"tab","aria-current":this.isLink()&&this.selected?"true":undefined,"aria-expanded":this.expanded===undefined?undefined:"".concat(this.expanded),label:this.label,size:this.size,
25
46
  // the tab is the inner button: an icon-only item takes its accessible name from the host title
26
47
  title:this.element.title||undefined,type:this.type}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:[{validateActive:0}]}},enumerable:false,configurable:true});return t}();MdsTabItem.style=mdsTabItemCss();export{MdsTab as mds_tab,MdsTabItem as mds_tab_item};
@@ -1 +1 @@
1
- import{r as registerInstance,h,e as Host}from"./index-BxPbQB28.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsTableBodyCss=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{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-table-row: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-table-body-background-hover:var(--mds-table-background-alt,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));--mds-table-body-background:var(--mds-table-background,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-body-background-alt:var(--mds-table-body-background-hover);--mds-table-body-color-alt:var(--mds-table-color-alt,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));--mds-table-body-color:var(--mds-table-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));--mds-table-row-color:var(--mds-table-body-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));--mds-table-body-transition-duration:var(--duration-200,.2s);--private-table-body-transition-duration:var(--mds-table-body-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:var(--mds-table-body-background,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));display:table-row-group;overflow:hidden;-webkit-transition-duration:var(--private-table-body-transition-duration);transition-duration:var(--private-table-body-transition-duration);transition-property:background-color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}:host(:last-of-type) ::slotted(:last-of-type){--private-cell-border-color:#0000}:host([interactive]:hover){--mds-table-row-background:var(--mds-table-body-background-hover);--mds-table-row-color:var(--mds-table-body-color-alt,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))))}:host([selection]){--mds-table-body-background:var(--mds-table-body-background-alt,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))))}: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-table-body-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@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-table-body-transition-duration:0s}}'};var MdsTableBody=/** @class */function(){function a(a){registerInstance(this,a)}a.prototype.render=function(){return h(Host,{key:"5e918bf491f104a62a39beeeaa8f5ffde267928a",role:"rowgroup","pref-animation":preferenceStore.state.animation},h("slot",{key:"2a0b4df364406f5461136b670e63394df7202c29"}))};return a}();MdsTableBody.style=mdsTableBodyCss();export{MdsTableBody as mds_table_body};
1
+ import{r as registerInstance,h,e as Host}from"./index-BxPbQB28.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsTableBodyCss=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{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-table-row: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-table-body-background-hover:var(--mds-table-background-alt,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));--mds-table-body-background:var(--mds-table-background,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));--mds-table-body-background-alt:var(--mds-table-body-background-hover);--mds-table-body-color-alt:var(--mds-table-color-alt,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--mds-table-body-color:var(--mds-table-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));--mds-table-row-color:var(--mds-table-body-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));--mds-table-body-transition-duration:var(--duration-200,.2s);--private-table-body-transition-duration:var(--mds-table-body-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:var(--mds-table-body-background,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));display:table-row-group;overflow:hidden;transition-duration:var(--private-table-body-transition-duration);transition-property:background-color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}:host(:last-of-type) ::slotted(:last-of-type){--private-cell-border-color:#0000}:host([interactive]:hover){--mds-table-row-background:var(--mds-table-body-background-hover);--mds-table-row-color:var(--mds-table-body-color-alt,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))))}:host([selection]){--mds-table-body-background:var(--mds-table-body-background-alt,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))))}: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-table-body-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@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-table-body-transition-duration:0s}}'};var MdsTableBody=/** @class */function(){function a(a){registerInstance(this,a)}a.prototype.render=function(){return h(Host,{key:"0b0ed3715f5ae4716811e80809abf5e2df62a2c5",role:"rowgroup","pref-animation":preferenceStore.state.animation},h("slot",{key:"fa0fdc9da9967427cbb2d5da39e57f7b5474184e"}))};return a}();MdsTableBody.style=mdsTableBodyCss();export{MdsTableBody as mds_table_body};
@@ -1 +1 @@
1
- import{r as registerInstance,h,e as Host}from"./index-BxPbQB28.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsTableFooterCss=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{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-table-cell: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-table-footer-transition-duration:var(--duration-200,.2s);--private-table-footer-transition-duration:var(--mds-table-footer-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));border-top:var(--private-cell-border-width) solid var(--private-cell-border-color);display:table-row;overflow:hidden;-webkit-transition-duration:var(--private-table-footer-transition-duration);transition-duration:var(--private-table-footer-transition-duration);transition-property:border-color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}::slotted(mds-table-cell){--private-cell-border-color:#0000}: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-table-footer-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@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-table-footer-transition-duration:0s}}'};var MdsTableFooter=/** @class */function(){function t(t){registerInstance(this,t)}t.prototype.render=function(){return h(Host,{key:"db86f8b31d0ac9628680bc518b3658f35cff59a5",role:"row","pref-animation":preferenceStore.state.animation},h("slot",{key:"a96640480619b8a5b456cbd2ab84205a6981983b"}))};return t}();MdsTableFooter.style=mdsTableFooterCss();export{MdsTableFooter as mds_table_footer};
1
+ import{r as registerInstance,h,e as Host}from"./index-BxPbQB28.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var mdsTableFooterCss=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{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-table-cell: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-table-footer-transition-duration:var(--duration-200,.2s);--private-table-footer-transition-duration:var(--mds-table-footer-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));border-top:var(--private-cell-border-width) solid var(--private-cell-border-color);display:table-row;overflow:hidden;transition-duration:var(--private-table-footer-transition-duration);transition-property:border-color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}::slotted(mds-table-cell){--private-cell-border-color:#0000}: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-table-footer-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@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-table-footer-transition-duration:0s}}'};var MdsTableFooter=/** @class */function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){return h(Host,{key:"410ee1441da900840954eaeb87458ea5c16b89d3",role:"row","pref-animation":preferenceStore.state.animation},h("slot",{key:"4b0155b98ccac684f6a1453e7ab5b84addfd3e25"}))};return e}();MdsTableFooter.style=mdsTableFooterCss();export{MdsTableFooter as mds_table_footer};
@@ -1,4 +1,23 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,a;i<n;i++){if(a||!(i in t)){if(!a)a=Array.prototype.slice.call(t,0,i);a[i]=t[i]}}return e.concat(a||Array.prototype.slice.call(t))};import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";import{m as miBaselineKeyboardArrowUp}from"./keyboard-arrow-up-Ccz0jCNB.js";import{m as miBaselineKeyboardArrowDown}from"./keyboard-arrow-down-DiWN48aq.js";import{c as clsx}from"./clsx-ChV9xqsO.js";var miBaselineUnfoldMore='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5.83L15.17 9l1.41-1.41L12 3L7.41 7.59L8.83 9L12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15L12 18.17z"/></svg>';var mdsTableHeaderCellCss=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{--tw-ease:initial;--tw-font-weight:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,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-table-header-cell-transition-duration:var(--duration-200,.2s);--private-table-header-cell-transition-duration:var(--mds-table-header-cell-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:var(--mds-table-background);border-bottom:var(--private-cell-border-width) solid var(--private-cell-border-color)!important;border-top:var(--private-cell-border-width) solid #0000!important;display:table-cell;padding:var(--mds-table-cell-padding);-webkit-transition-duration:var(--private-table-header-cell-transition-duration);transition-duration:var(--private-table-header-cell-transition-duration);transition-property:background-color,border-color,color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));vertical-align:top;white-space:nowrap}.action{margin-inline:calc(var(--spacing,.0025rem)*-200);padding-inline:calc(var(--spacing,.0025rem)*200)}.action:hover,:host([direction=ascending]) .action,:host([direction=descending]) .action{background-color:var(--mds-table-background-alt)}.action::part(label){font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);min-height:auto;text-box:trim-both cap alphabetic;--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700);text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--text-size-info-label,.75rem);font-weight:var(--tw-font-weight,var(--text-size-info-label--font-weight,700));line-height:var(--tw-leading,var(--text-size-info-label--line-height,1rem))}.label{align-items:center;display:inline-flex;height:calc(var(--spacing,.0025rem)*700)}: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-table-header-cell-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@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-table-header-cell-transition-duration:0s}}'};var Sort;(function(e){e["ASC"]="ascending";e["DESC"]="descending";e["NONE"]="none"})(Sort||(Sort={}));var MdsTableHeaderCell=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.isAscending=true;this.currentDirection=Sort.NONE;this.index=0;
1
+ var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++){if(a||!(n in t)){if(!a)a=Array.prototype.slice.call(t,0,n);a[n]=t[n]}}return e.concat(a||Array.prototype.slice.call(t))};import{r as registerInstance,d as createEvent,h,e as Host,g as getElement,B as Build}from"./index-BxPbQB28.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";import{m as miBaselineKeyboardArrowUp}from"./keyboard-arrow-up-Ccz0jCNB.js";import{m as miBaselineKeyboardArrowDown}from"./keyboard-arrow-down-DiWN48aq.js";import{c as clsx}from"./clsx-ChV9xqsO.js";var miBaselineUnfoldMore='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5.83L15.17 9l1.41-1.41L12 3L7.41 7.59L8.83 9L12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15L12 18.17z"/></svg>';var mdsTableHeaderCellCss=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{--tw-ease:initial;--tw-font-weight:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,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-table-header-cell-transition-duration:var(--duration-200,.2s);--private-table-header-cell-transition-duration:var(--mds-table-header-cell-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:var(--mds-table-background);border-bottom:var(--private-cell-border-width) solid var(--private-cell-border-color)!important;border-top:var(--private-cell-border-width) solid #0000!important;display:table-cell;padding:var(--mds-table-cell-padding);transition-duration:var(--private-table-header-cell-transition-duration);transition-property:background-color,border-color,color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));vertical-align:top;white-space:nowrap}.action{margin-inline:calc(var(--spacing,.0025rem)*-200);padding-inline:calc(var(--spacing,.0025rem)*200)}.action:hover,:host([direction=ascending]) .action,:host([direction=descending]) .action{background-color:var(--mds-table-background-alt)}.action::part(label){font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);min-height:auto;text-box:trim-both cap alphabetic;--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700);text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--text-size-info-label,.75rem);font-weight:var(--tw-font-weight,var(--text-size-info-label--font-weight,700));line-height:var(--tw-leading,var(--text-size-info-label--line-height,1rem))}.label{align-items:center;display:inline-flex;height:calc(var(--spacing,.0025rem)*700)}: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-table-header-cell-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@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-table-header-cell-transition-duration:0s}}'};var cycle=["none","ascending","descending"];
2
+ // the order the rows of a table body had before any column sorted them, brought back when the
3
+ // last sorted column returns to none; rows that left the body in the meantime stay out
4
+ var naturalOrder=new WeakMap;var MdsTableHeaderCell=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.sortEvent=createEvent(this,"mdsTableHeaderCellSort",7);
5
+ // set while the click writes `direction`: the watcher must not take it for a write from outside
6
+ this.writingDirection=false;
2
7
  /**
3
- * Specifies the current sort direction of the column.
4
- */this.direction="none";this.prepareSorter=function(){var e,r,i;if(!t.sortable||t.sortable&&((e=t.tableHeaderCellSiblings)===null||e===void 0?void 0:e.length)!==undefined&&((r=t.tableHeaderCellSiblings)===null||r===void 0?void 0:r.length)!==0)return;t.tableBody=(i=t.element.closest("mds-table"))===null||i===void 0?void 0:i.querySelector("mds-table-body");t.tableHeader=t.element.closest("mds-table-header");t.tableHeaderCellSiblings=Array.from(t.tableHeader.children);t.index=t.tableHeaderCellSiblings.indexOf(t.element);t.tableRows=Array.from(t.tableBody.children);t.tableRowsDefaultSorted=Array.from(t.tableBody.children)};this.getValue=function(e){if(e.value!=null&&e.value!==""&&e.value!==0&&!Number.isNaN(e.value)){return e.value}return e.textContent!==null&&e.textContent!==""?e.textContent.trim():""};this.resetSortAttribute=function(){t.tableHeaderCellSiblings.forEach((function(e){if(t.tableHeaderCellSiblings.indexOf(e)!==t.index){e.direction="none"}}));t.tableRows=Array.from(t.tableBody.children);t.tableRows.forEach((function(e){var r=Array.from(e.children);r.forEach((function(e,r){if(t.index===r&&t.currentDirection!==Sort.NONE){e.setAttribute("sorted","");return}e.removeAttribute("sorted")}))}))};this.sortRows=function(){if(t.currentDirection===Sort.NONE){t.tableRowsDefaultSorted.forEach((function(e){return t.tableBody.appendChild(e)}));return}t.tableRows=Array.from(t.tableBody.children);var e=__spreadArray([],t.tableRows,true).sort((function(e,r){var i=t.getValue(e.querySelectorAll("mds-table-cell")[t.index]);var n=t.getValue(r.querySelectorAll("mds-table-cell")[t.index]);var a=!isNaN(Number(i))&&!isNaN(Number(n));if(a){return t.direction==="ascending"?Number(i)-Number(n):Number(n)-Number(i)}return t.direction==="ascending"?String(i).localeCompare(String(n)):String(n).localeCompare(String(i))}));e.forEach((function(e){return t.tableBody.appendChild(e)}))};this.updateDirection=function(){t.currentDirection=Object.values(Sort)[(Object.values(Sort).indexOf(t.currentDirection)+1)%Object.values(Sort).length];t.direction=t.currentDirection.toString()};this.sort=function(){t.updateDirection();t.sortRows();t.resetSortAttribute();t.tableRows=Array.from(t.tableBody.children);if(t.currentDirection!==Sort.NONE){t.tableRows.forEach((function(e){e.setAttribute("sorted","")}));return}t.tableRows.forEach((function(e){e.removeAttribute("sorted")}))}}e.prototype.componentDidLoad=function(){this.prepareSorter()};e.prototype.sortableHandler=function(){this.prepareSorter()};e.prototype.directionHandler=function(e){if(e==="none"){this.direction="none";this.currentDirection=Sort.NONE}};e.prototype.render=function(){return h(Host,{key:"e7c077673fa918dfd50f25d7b341881f72eaefe2",role:"columnheader","aria-sort":this.direction,"pref-animation":preferenceStore.state.animation},this.sortable?h("mds-button",{class:"action",icon:clsx(this.direction==="none"&&miBaselineUnfoldMore,this.direction==="ascending"&&miBaselineKeyboardArrowUp,this.direction==="descending"&&miBaselineKeyboardArrowDown),"icon-position":"right",onClick:this.sort,tone:"text",variant:"dark",size:"sm",part:"action",label:this.label}):h("mds-text",{class:"label",typography:"label",part:"label"},this.label))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{sortable:[{sortableHandler:0}],direction:[{directionHandler:0}]}},enumerable:false,configurable:true});return e}();MdsTableHeaderCell.style=mdsTableHeaderCellCss();export{MdsTableHeaderCell as mds_table_header_cell};
8
+ * Specifies the current sort direction of the column. Set from outside, it sorts the rows like a
9
+ * click, or only shows the order when the table has `sorting="external"`.
10
+ */this.direction="none";this.table=function(){return t.element.closest("mds-table")};this.body=function(){var e;return(e=t.table())===null||e===void 0?void 0:e.querySelector("mds-table-body")};this.rows=function(e){return Array.from(e.children)};this.index=function(){var e,r;return Array.from((r=(e=t.element.closest("mds-table-header"))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[]).indexOf(t.element)};this.siblings=function(){var e,r;return Array.from((r=(e=t.element.closest("mds-table-header"))===null||e===void 0?void 0:e.querySelectorAll("mds-table-header-cell"))!==null&&r!==void 0?r:[]).filter((function(e){return e!==t.element}))};this.hasSortedSibling=function(){return t.siblings().some((function(e){return e.direction!=="none"}))};this.isExternal=function(){var e;var r=t.table();return((e=r===null||r===void 0?void 0:r.sorting)!==null&&e!==void 0?e:r===null||r===void 0?void 0:r.getAttribute("sorting"))==="external"};this.getValue=function(e){if(e.value!=null&&e.value!==""&&e.value!==0&&!Number.isNaN(e.value)){return e.value}return e.textContent!==null&&e.textContent!==""?e.textContent.trim():""};this.sortRows=function(e){if(t.direction==="none"){
11
+ // another column drives the order now: there is nothing of this one to undo
12
+ if(t.hasSortedSibling()){return}var r=naturalOrder.get(e);naturalOrder.delete(e);if(!r){return}var n=new Set(r);var i=t.rows(e).filter((function(e){return!n.has(e)}));__spreadArray(__spreadArray([],r.filter((function(t){return t.parentElement===e})),true),i,true).forEach((function(t){return e.appendChild(t)}));return}if(!naturalOrder.has(e)){naturalOrder.set(e,t.rows(e))}var a=t.index();var o=__spreadArray([],t.rows(e),true).sort((function(e,r){var n=t.getValue(e.querySelectorAll("mds-table-cell")[a]);var i=t.getValue(r.querySelectorAll("mds-table-cell")[a]);var o=!isNaN(Number(n))&&!isNaN(Number(i));if(o){return t.direction==="ascending"?Number(n)-Number(i):Number(i)-Number(n)}return t.direction==="ascending"?String(n).localeCompare(String(i)):String(i).localeCompare(String(n))}));o.forEach((function(t){return e.appendChild(t)}))};
13
+ // the rows of a sorted table and the cells of the sorted column carry `sorted`, which their
14
+ // styles read; a column that returns to none clears its own cells, and the rows only when no
15
+ // other column is sorted
16
+ this.markRows=function(e){var r=t.index();var n=t.direction!=="none";var i=!n&&t.hasSortedSibling();t.rows(e).forEach((function(e){if(n){e.setAttribute("sorted","")}else if(!i){e.removeAttribute("sorted")}var t=e.children[r];if(n){t===null||t===void 0?void 0:t.setAttribute("sorted","")}else{t===null||t===void 0?void 0:t.removeAttribute("sorted")}}))};
17
+ // rows rendered after the sort, the page an application loads with `sorting="external"`, get
18
+ // the marks of the sorted column too
19
+ this.observeRows=function(e){var r;(r=t.bodyObserver)===null||r===void 0?void 0:r.disconnect();t.bodyObserver=undefined;if(t.direction==="none"||!Build.isBrowser){return}t.bodyObserver=new MutationObserver((function(){return t.markRows(e)}));t.bodyObserver.observe(e,{childList:true})};
20
+ /**
21
+ * Brings the table in line with `direction`, whoever set it: one sorted column at a time, the
22
+ * rows in its order unless the table sorts them outside, the marks of the sorted column.
23
+ */this.applyDirection=function(){var e=t.body();if(!t.sortable||!e){return}if(t.direction!=="none"){t.siblings().forEach((function(e){if(e.direction!=="none"){e.direction="none"}}))}if(!t.isExternal()){t.sortRows(e)}t.markRows(e);t.observeRows(e)};this.sort=function(){var e=cycle[(cycle.indexOf(t.direction)+1)%cycle.length];t.writingDirection=true;t.direction=e;t.writingDirection=false;t.applyDirection();t.sortEvent.emit({direction:e,index:t.index(),sortKey:t.sortKey})}}e.prototype.componentDidLoad=function(){if(this.direction!=="none"){this.applyDirection()}};e.prototype.disconnectedCallback=function(){var e;(e=this.bodyObserver)===null||e===void 0?void 0:e.disconnect()};e.prototype.directionHandler=function(){if(this.writingDirection){return}this.applyDirection()};e.prototype.render=function(){return h(Host,{key:"3d9917c2e6c3a80fb2ef0b2b5f116a5b6fb0fb93",role:"columnheader","aria-sort":this.direction,"pref-animation":preferenceStore.state.animation},this.sortable?h("mds-button",{class:"action",icon:clsx(this.direction==="none"&&miBaselineUnfoldMore,this.direction==="ascending"&&miBaselineKeyboardArrowUp,this.direction==="descending"&&miBaselineKeyboardArrowDown),"icon-position":"right",onClick:this.sort,tone:"text",variant:"dark",size:"sm",part:"action",label:this.label}):h("mds-text",{class:"label",typography:"label",part:"label"},this.label))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{direction:[{directionHandler:0}]}},enumerable:false,configurable:true});return e}();MdsTableHeaderCell.style=mdsTableHeaderCellCss();export{MdsTableHeaderCell as mds_table_header_cell};
@@ -1,14 +1,14 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,o,a){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function r(e){try{l(a.next(e))}catch(e){n(e)}}function s(e){try{l(a["throw"](e))}catch(e){n(e)}}function l(e){e.done?o(e.value):i(e.value).then(r,s)}l((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,i,n,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=s(0),r["throw"]=s(1),r["return"]=s(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(s){if(a)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(o=0)),o)try{if(a=1,i&&(n=s[0]&2?i["return"]:s[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;if(i=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;i=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){o.label=s[1];break}if(s[0]===6&&o.label<n[1]){o.label=n[1];n=s;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(s);break}if(n[2])o.ops.pop();o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e];i=0}finally{a=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{L as Locale}from"./locale-CVJm6KFD.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var actions$3="Ενέργεια";var selectAllRows$3="Επιλογή όλων των γραμμών";var selectNoneRows$3="Αποεπιλογή όλων των γραμμών";var localeEl={actions:actions$3,selectAllRows:selectAllRows$3,selectNoneRows:selectNoneRows$3};var actions$2="Action";var selectAllRows$2="Select all rows";var selectNoneRows$2="Deselect all rows";var localeEn={actions:actions$2,selectAllRows:selectAllRows$2,selectNoneRows:selectNoneRows$2};var actions$1="Acción";var selectAllRows$1="Seleccionar todas las filas";var selectNoneRows$1="Deseleccionar todas las filas";var localeEs={actions:actions$1,selectAllRows:selectAllRows$1,selectNoneRows:selectNoneRows$1};var actions="Azione";var selectAllRows="Seleziona tutte le righe";var selectNoneRows="Deseleziona tutte le righe";var localeIt={actions:actions,selectAllRows:selectAllRows,selectNoneRows:selectNoneRows};var mdsTableHeaderCss=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{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-input-switch,mds-table-cell,mds-table-header-cell):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-table-header-transition-duration:var(--duration-200,.2s);--private-table-header-transition-duration:var(--mds-table-header-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));border-bottom:var(--private-cell-border-width) solid var(--private-cell-border-color);display:table-row;overflow:hidden;-webkit-transition-duration:var(--private-table-header-transition-duration);transition-duration:var(--private-table-header-transition-duration);transition-property:border-color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.actions{text-align:right}.selection{vertical-align:middle}.checkbox-wrapper{display:flex}: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-table-header-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@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-table-header-transition-duration:0s}}'};var MdsTableHeader=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.selectAll=false;this.hasActions=false;this.indeterminate=false;this.hasSelection=false;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.handleSelectAllChange=function(e){var o,a;if(t.indeterminate){t.selectAll=true}else{t.selectAll=(o=e.detail.checked)!==null&&o!==void 0?o:false}t.indeterminate=false;(a=t.table)===null||a===void 0?void 0:a.selectAll(t.selectAll)}}
1
+ var __awaiter=this&&this.__awaiter||function(e,t,a,o){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function r(e){try{l(o.next(e))}catch(e){n(e)}}function s(e){try{l(o["throw"](e))}catch(e){n(e)}}function l(e){e.done?a(e.value):i(e.value).then(r,s)}l((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,i,n,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=s(0),r["throw"]=s(1),r["return"]=s(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(s){if(o)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(a=0)),a)try{if(o=1,i&&(n=s[0]&2?i["return"]:s[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;if(i=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:a.label++;return{value:s[1],done:false};case 5:a.label++;i=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(s[0]===6&&a.label<n[1]){a.label=n[1];n=s;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(s);break}if(n[2])a.ops.pop();a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e];i=0}finally{o=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{L as Locale}from"./locale-CVJm6KFD.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var actions$3="Ενέργεια";var selectAllRows$3="Επιλογή όλων των γραμμών";var selectNoneRows$3="Αποεπιλογή όλων των γραμμών";var localeEl={actions:actions$3,selectAllRows:selectAllRows$3,selectNoneRows:selectNoneRows$3};var actions$2="Action";var selectAllRows$2="Select all rows";var selectNoneRows$2="Deselect all rows";var localeEn={actions:actions$2,selectAllRows:selectAllRows$2,selectNoneRows:selectNoneRows$2};var actions$1="Acción";var selectAllRows$1="Seleccionar todas las filas";var selectNoneRows$1="Deseleccionar todas las filas";var localeEs={actions:actions$1,selectAllRows:selectAllRows$1,selectNoneRows:selectNoneRows$1};var actions="Azione";var selectAllRows="Seleziona tutte le righe";var selectNoneRows="Deseleziona tutte le righe";var localeIt={actions:actions,selectAllRows:selectAllRows,selectNoneRows:selectNoneRows};var mdsTableHeaderCss=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{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-input-switch,mds-table-cell,mds-table-header-cell):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-table-header-transition-duration:var(--duration-200,.2s);--private-table-header-transition-duration:var(--mds-table-header-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));border-bottom:var(--private-cell-border-width) solid var(--private-cell-border-color);display:table-row;overflow:hidden;transition-duration:var(--private-table-header-transition-duration);transition-property:border-color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.actions{text-align:right}.selection{vertical-align:middle}.checkbox-wrapper{display:flex}: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-table-header-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@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-table-header-transition-duration:0s}}'};var MdsTableHeader=/** @class */function(){function e(e){var t=this;registerInstance(this,e);this.selectAll=false;this.hasActions=false;this.indeterminate=false;this.hasSelection=false;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.handleSelectAllChange=function(e){var a,o;if(t.indeterminate){t.selectAll=true}else{t.selectAll=(a=e.detail.checked)!==null&&a!==void 0?a:false}t.indeterminate=false;(o=t.table)===null||o===void 0?void 0:o.selectAll(t.selectAll)}}
2
2
  /**
3
3
  * Updates the header's select-all state from the number of selected rows.
4
4
  * @param selectedItems the number of currently selected rows
5
5
  * @param totalItems the total number of selectable rows
6
- */e.prototype.setSelection=function(e,t){return __awaiter(this,void 0,void 0,(function(){var o,a;return __generator(this,(function(i){this.indeterminate=e!==0&&e!==t;
6
+ */e.prototype.setSelection=function(e,t){return __awaiter(this,void 0,void 0,(function(){var a,o;return __generator(this,(function(i){this.indeterminate=e!==0&&e!==t;
7
7
  // the reference used to be looked up only on the indeterminate branch, so the first
8
8
  // call that was NOT indeterminate - select all, or unselect the last row - threw on an
9
9
  // undefined checkbox; and a header that is not selectable renders none at all
10
- (o=this.checkboxEl)!==null&&o!==void 0?o:this.checkboxEl=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelector(".checkbox");if(!this.checkboxEl){return[2/*return*/]}
10
+ (a=this.checkboxEl)!==null&&a!==void 0?a:this.checkboxEl=(o=this.host.shadowRoot)===null||o===void 0?void 0:o.querySelector(".checkbox");if(!this.checkboxEl){return[2/*return*/]}
11
11
  // totalItems 0 would otherwise read as "all of them are selected"
12
12
  this.checkboxEl.checked=t>0&&e===t;return[2/*return*/]}))}))};e.prototype.componentWillLoad=function(){var e;this.table=this.host.closest("mds-table");
13
13
  // standalone header (or SSR of the subtree alone): no surrounding table
14
- this.hasActions=((e=this.table)===null||e===void 0?void 0:e.querySelector('mds-table-row > [slot="action"]'))!=null};e.prototype.render=function(){return h(Host,{key:"baddc3d097dcd80328e41f6e6ce8e0b2715d9106",role:"row","pref-animation":preferenceStore.state.animation},this.selectable&&h("mds-table-cell",{key:"8a41dc518880eacc33c2ffb28b0fef809dbfe4aa",class:"selection",role:"columnheader"},h("div",{key:"4c4a38797cb22651e9f5b0b12a82e89685bf0425",class:"checkbox-wrapper"},h("mds-input-switch",{key:"7d7bc20272297d092e1a40781c87716a352da40d",class:"checkbox",title:this.t.get(this.selectAll?"selectNoneRows":"selectAllRows"),type:"checkbox",onMdsInputSwitchChange:this.handleSelectAllChange,indeterminate:this.indeterminate}))),h("slot",{key:"2599339021e0e24c57252cbcb772efcfb1366907"}),this.hasActions&&h("mds-table-header-cell",{key:"6dbca32874f7ea85c0d21f3e0e4b433f5a0d3553",part:"actions",class:"actions",label:this.t.get("actions")}))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsTableHeader.style=mdsTableHeaderCss();export{MdsTableHeader as mds_table_header};
14
+ this.hasActions=((e=this.table)===null||e===void 0?void 0:e.querySelector('mds-table-row > [slot="action"]'))!=null};e.prototype.render=function(){return h(Host,{key:"cd1f0d8a5aefa3044da766c6e8f4cb40ae880057",role:"row","pref-animation":preferenceStore.state.animation},this.selectable&&h("mds-table-cell",{key:"0d87e775dba458bda2fd78396e5c4f66cd665c7f",class:"selection",role:"columnheader"},h("div",{key:"ba85a1a8fad0c5fa7801581c22d888f86c99674a",class:"checkbox-wrapper"},h("mds-input-switch",{key:"b3516c6593a57fda8ceb55c77a11325a3f8d2f4c",class:"checkbox",title:this.t.get(this.selectAll?"selectNoneRows":"selectAllRows"),type:"checkbox",onMdsInputSwitchChange:this.handleSelectAllChange,indeterminate:this.indeterminate}))),h("slot",{key:"de4abfa026bfcce02ed997d5a7e3a60d3ed11d9c"}),this.hasActions&&h("mds-table-header-cell",{key:"4baee2478076ad6f0278746dbc4d9c41e0e1c194",part:"actions",class:"actions",label:this.t.get("actions")}))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsTableHeader.style=mdsTableHeaderCss();export{MdsTableHeader as mds_table_header};
@@ -1,8 +1,16 @@
1
- import{r as registerInstance,h,e as Host,g as getElement}from"./index-BxPbQB28.js";import{h as hasChildWithSlot}from"./slot-C0o_l0td.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{L as Locale}from"./locale-CVJm6KFD.js";import{i as isSafari}from"./browser-Dje8Mggf.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var selectRow$3="Επιλογή γραμμής";var unselectRow$3="Αποεπιλογή γραμμής";var localeEl={selectRow:selectRow$3,unselectRow:unselectRow$3};var selectRow$2="Select row";var unselectRow$2="Deselect row";var localeEn={selectRow:selectRow$2,unselectRow:unselectRow$2};var selectRow$1="Seleccionar fila";var unselectRow$1="Deseleccionar fila";var localeEs={selectRow:selectRow$1,unselectRow:unselectRow$1};var selectRow="Seleziona riga";var unselectRow="Deseleziona riga";var localeIt={selectRow:selectRow,unselectRow:unselectRow};var mdsTableRowCss=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{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-input-switch,mds-table-cell):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-table-row-color-hover:var(--mds-table-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));--mds-table-row-color-alt:var(--mds-table-color-alt,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));--mds-table-row-background-hover:var(--mds-table-background,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-background-alt:var(--mds-table-background-alt,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-actions-gap:var(--mds-table-actions-gap,calc(var(--spacing,.0025rem)*400));--mds-table-row-transition-duration:var(--duration-200,.2s);--private-table-row-transition-duration:var(--mds-table-row-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));color:var(--mds-table-row-color);display:table-row;position:relative;-webkit-transition-duration:var(--private-table-row-transition-duration);transition-duration:var(--private-table-row-transition-duration);transition-property:color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.selection-cell{vertical-align:middle}.checkbox-wrapper{display:flex}:host([interactive]:hover){--mds-table-row-actions-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))))}:host([selected]){--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))))}:host([sorted]){--mds-table-row-background:var(--mds-table-row-background-alt);--mds-table-row-color:var(--mds-table-row-color-alt)}:host([sorted][selected]){--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))))}.actions-view{display:flex;justify-content:end;pointer-events:none;position:absolute}.actions,.actions-view{align-items:center;inset:0}.actions{--mds-table-row-actions-background:var(--mds-table-row-background);background-color:var(--mds-table-row-actions-background);border-bottom-left-radius:calc(var(--radius-lg,16px) + var(--mds-table-border-width)*2);border-top-left-radius:calc(var(--radius-lg,16px) + var(--mds-table-border-width)*2);display:inline-flex;gap:var(--mds-table-row-actions-gap,calc(var(--spacing,.0025rem)*400));margin-right:100%;padding:calc(var(--mds-table-border-width)*2);padding-right:0;pointer-events:auto;position:sticky;transform:translate(100%);transition-duration:.5s;transition-property:transform,background-color,padding-right;-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))}:host(:hover) .actions{transform:translate(100%)}:host([overlay-actions]) .actions{padding-right:var(--mds-table-cell-padding);transform:translate(100%)}:host([overlay-actions]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background);transform:translate(0)}:host(:not([interactive]):hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))))}:host([selection]:not([interactive]):not([selected]):hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-alt)}.actions-cell--disable,.actions-cell--disable .actions{position:static!important}.actions-cell--disable .actions{margin-right:0!important;transform:translate(0)!important}.actions-cell--hidden{display:none}: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-table-row-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@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-table-row-transition-duration:0s}}'};var MdsTableRow=/** @class */function(){function a(a){var t=this;registerInstance(this,a);this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});
1
+ import{r as registerInstance,h,e as Host,g as getElement,B as Build}from"./index-BxPbQB28.js";import{h as hasChildWithSlot}from"./slot-C0o_l0td.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{L as Locale}from"./locale-CVJm6KFD.js";import{i as isSafari}from"./browser-Dje8Mggf.js";import{p as preferenceStore}from"./preference-DNNqH7BU.js";var selectRow$3="Επιλογή γραμμής";var unselectRow$3="Αποεπιλογή γραμμής";var localeEl={selectRow:selectRow$3,unselectRow:unselectRow$3};var selectRow$2="Select row";var unselectRow$2="Deselect row";var localeEn={selectRow:selectRow$2,unselectRow:unselectRow$2};var selectRow$1="Seleccionar fila";var unselectRow$1="Deseleccionar fila";var localeEs={selectRow:selectRow$1,unselectRow:unselectRow$1};var selectRow="Seleziona riga";var unselectRow="Deseleziona riga";var localeIt={selectRow:selectRow,unselectRow:unselectRow};var mdsTableRowCss=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{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-input-switch,mds-table-cell):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-table-row-color-hover:var(--mds-table-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));--mds-table-row-color-alt:var(--mds-table-color-alt,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));--mds-table-row-background-hover:var(--mds-table-background,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));--mds-table-row-background-alt:var(--mds-table-background-alt,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));--mds-table-row-actions-gap:var(--mds-table-actions-gap,calc(var(--spacing,.0025rem)*400));--mds-table-row-transition-duration:var(--duration-200,.2s);--private-table-row-transition-duration:var(--mds-table-row-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));color:var(--mds-table-row-color);display:table-row;position:relative;transition-duration:var(--private-table-row-transition-duration);transition-property:color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.selection-cell{vertical-align:middle}.checkbox-wrapper{display:flex}:host([interactive]:hover){--mds-table-row-actions-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))))}:host([selected]){--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))))}:host([sorted]){--mds-table-row-background:var(--mds-table-row-background-alt);--mds-table-row-color:var(--mds-table-row-color-alt)}:host([sorted][selected]){--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))))}.actions-view{display:flex;justify-content:end;pointer-events:none;position:absolute}.actions,.actions-view{align-items:center;inset:0}.actions{--mds-table-row-actions-background:var(--mds-table-row-background);background-color:var(--mds-table-row-actions-background);border-bottom-left-radius:calc(var(--radius-lg,16px) + var(--mds-table-border-width)*2);border-top-left-radius:calc(var(--radius-lg,16px) + var(--mds-table-border-width)*2);display:inline-flex;gap:var(--mds-table-row-actions-gap,calc(var(--spacing,.0025rem)*400));margin-right:100%;padding:calc(var(--mds-table-border-width)*2);padding-right:0;pointer-events:auto;position:sticky;transform:translate(100%);transition-duration:.5s;transition-property:transform,background-color,padding-right;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}:host(:hover) .actions{transform:translate(100%)}:host([overlay-actions]) .actions{padding-right:var(--mds-table-cell-padding);transform:translate(100%)}:host([overlay-actions]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background);transform:translate(0)}:host(:not([interactive]):hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--surface-neutral-default,242 242 242))))}:host([selection]:not([interactive]):not([selected]):hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-alt)}.actions-cell--disable,.actions-cell--disable .actions{position:static!important}.actions-cell--disable .actions{margin-right:0!important;transform:translate(0)!important}.actions-cell--hidden{display:none}: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-table-row-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@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-table-row-transition-duration:0s}}'};var MdsTableRow=/** @class */function(){function a(a){var e=this;registerInstance(this,a);this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});
2
2
  /**
3
3
  * Specifies whether the row can be selected via a checkbox.
4
- */this.selectable=undefined;this.onActionSlotChange=function(){t.hasActions=hasChildWithSlot(t.host,"action")};this.handleSelectionChange=function(a){var e;t.selected=a.detail.checked;(e=t.host.closest("mds-table"))===null||e===void 0?void 0:e.updateSelection()}}a.prototype.componentWillLoad=function(){this.hasActions=hasChildWithSlot(this.host,"action")};a.prototype.componentDidLoad=function(){
4
+ */this.selectable=undefined;this.onActionSlotChange=function(){e.hasActions=hasChildWithSlot(e.host,"action")};this.handleSelectionChange=function(a){var t;e.selected=a.detail.checked;(t=e.host.closest("mds-table"))===null||t===void 0?void 0:t.updateSelection()}}a.prototype.componentWillLoad=function(){this.hasActions=hasChildWithSlot(this.host,"action")};a.prototype.connectedCallback=function(){
5
+ // a row moved or re-attached after its first load lost the observer in disconnectedCallback:
6
+ // React reveals a streamed SSR boundary that way, moving the rows hydrated in a hidden
7
+ // container, so the width measured there (0, or nothing yet) would never be updated
8
+ this.observeActions()};a.prototype.componentDidLoad=function(){
5
9
  // needed to capture sizer width when become visible
6
- if(this.actions)this.initObserver(this.actions)};a.prototype.initObserver=function(a){var t=this;this.observer=new ResizeObserver((function(a){var e,r,o;
10
+ this.observeActions()};a.prototype.observeActions=function(){var a=this;var e;
11
+ // nothing to measure on the server; the actions are not rendered before the first load
12
+ if(!Build.isBrowser||!this.actions)return;(e=this.observer)!==null&&e!==void 0?e:this.observer=new ResizeObserver((function(e){var t,r,o;
7
13
  // the cell is hidden while the slot is empty: no border box to read
8
- t.sizerWidth="".concat((o=(r=(e=a[0].borderBoxSize)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.inlineSize)!==null&&o!==void 0?o:0,"px")}));this.observer.observe(a)};a.prototype.disconnectedCallback=function(){if(this.observer)this.observer.disconnect()};a.prototype.render=function(){var a=this;return h(Host,{key:"91445d614b5efaca4be25d8dc8d8bb0538cd5593",role:"row","pref-animation":preferenceStore.state.animation},this.selectable&&h("mds-table-cell",{key:"1131e129c560711e9ff07047c25d466f90d9dcca",class:"selection-cell"},h("div",{key:"9fa11c1034e8af890d46ee3892e0bfada6ea991d",class:"checkbox-wrapper"},h("mds-input-switch",{key:"4eb0ddb0aa7fad9988f7dc86faffa5a3a0c55ec1",title:this.t.get(this.selected?"unselectRow":"selectRow"),type:"checkbox",checked:this.selected,onMdsInputSwitchChange:this.handleSelectionChange}))),h("slot",{key:"2a5b127a0807c8e8157b1ff852a9b8b1be05201b"}),isSafari()&&h("mds-table-cell",{key:"cf667906f594fb43281494e87a0fe9ffeb2e8322",class:clsx("actions-cell","actions-cell--disable",!this.hasActions&&"actions-cell--hidden")},h("div",{key:"7b503843294bd545da0d99096cae7690108fdb1e",class:"actions"},h("slot",{key:"061c720ef290863dee361420a79787ffb41fe7d6",name:"action",onSlotchange:this.onActionSlotChange}))),!isSafari()&&h("mds-table-cell",{key:"77820da87b9db6696b1d32f648f0a68241e72193",class:clsx("actions-cell",!this.hasActions&&"actions-cell--hidden")},h("div",{key:"0f0f584f8de818d31adb371ed6c294aef182b301",class:"actions-sizer",style:{minHeight:"1px",maxWidth:this.sizerWidth,minWidth:this.sizerWidth}}),h("div",{key:"18505dd8b6199426bd08b5944336bd1405cdad3c",class:"actions-view"},h("div",{key:"8f61f4a774ca45f304d5fb3db75ff442d6336881",class:"actions",ref:function(t){return a.actions=t},style:{marginRight:"calc(".concat(this.sizerWidth," + var(--mds-table-cell-padding))")}},h("slot",{key:"903ab2118cf6c450e9065a5d9ae5773ab6f3f96e",name:"action",onSlotchange:this.onActionSlotChange})))))};Object.defineProperty(a.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return a}();MdsTableRow.style=mdsTableRowCss();export{MdsTableRow as mds_table_row};
14
+ a.sizerWidth="".concat((o=(r=(t=e[0].borderBoxSize)===null||t===void 0?void 0:t[0])===null||r===void 0?void 0:r.inlineSize)!==null&&o!==void 0?o:0,"px")}));
15
+ // a new observation always reports the current size first
16
+ this.observer.observe(this.actions)};a.prototype.disconnectedCallback=function(){var a;(a=this.observer)===null||a===void 0?void 0:a.disconnect()};a.prototype.render=function(){var a=this;return h(Host,{key:"ce7a0c7f5373d8d27e0743c7323bb8c169c5e23b",role:"row","pref-animation":preferenceStore.state.animation},this.selectable&&h("mds-table-cell",{key:"d98cf72a534efaabb9c85cab721fe22dd91c9217",class:"selection-cell"},h("div",{key:"9613d75cb8d45ffc31c36610942a2791de741364",class:"checkbox-wrapper"},h("mds-input-switch",{key:"85727930540e3775b17c31bfb3b1c2f53c84337e",title:this.t.get(this.selected?"unselectRow":"selectRow"),type:"checkbox",checked:this.selected,onMdsInputSwitchChange:this.handleSelectionChange}))),h("slot",{key:"0654a8a523d722d064ca31bb8f7d8903ca9c24a3"}),isSafari()&&h("mds-table-cell",{key:"82255b04a22482f6bc04df087b11395b117273aa",class:clsx("actions-cell","actions-cell--disable",!this.hasActions&&"actions-cell--hidden")},h("div",{key:"0f606bf59d2d3cad0e229bb78bb129e135fe4d22",class:"actions"},h("slot",{key:"ae7a808aa15f678a12fc232ccf10df55aa7fbe12",name:"action",onSlotchange:this.onActionSlotChange}))),!isSafari()&&h("mds-table-cell",{key:"d9e1df554752fcc45699229c993e840e597cda54",class:clsx("actions-cell",!this.hasActions&&"actions-cell--hidden")},h("div",{key:"3a42b170aea4a21c22edc656ec91b1f0f2d7b002",class:"actions-sizer",style:Object.assign({minHeight:"1px"},this.sizerWidth&&{maxWidth:this.sizerWidth,minWidth:this.sizerWidth})}),h("div",{key:"423909f03fc7ffcce54884fbc51a44b2c9569506",class:"actions-view"},h("div",{key:"896e3c1e2fdcfe013343ccbf4f795388dc88b858",class:"actions",ref:function(e){return a.actions=e},style:this.sizerWidth!==undefined?{marginRight:"calc(".concat(this.sizerWidth," + var(--mds-table-cell-padding))")}:undefined},h("slot",{key:"5251ddfd5066eadd3e0d24eee38a62e6ec96e469",name:"action",onSlotchange:this.onActionSlotChange})))))};Object.defineProperty(a.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return a}();MdsTableRow.style=mdsTableRowCss();export{MdsTableRow as mds_table_row};