@melodicdev/components 2.0.3 → 3.0.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 (328) hide show
  1. package/README.md +7 -6
  2. package/assets/melodic-components.js +5570 -4150
  3. package/assets/melodic-components.js.map +1 -1
  4. package/assets/melodic-components.min.js +6466 -5147
  5. package/lib/components/data-display/activity-feed/activity-feed-item.component.d.ts +15 -14
  6. package/lib/components/data-display/activity-feed/activity-feed-item.component.d.ts.map +1 -1
  7. package/lib/components/data-display/activity-feed/activity-feed-item.component.js +36 -16
  8. package/lib/components/data-display/activity-feed/activity-feed-item.styles.d.ts.map +1 -1
  9. package/lib/components/data-display/activity-feed/activity-feed-item.styles.js +4 -0
  10. package/lib/components/data-display/activity-feed/activity-feed-item.template.d.ts.map +1 -1
  11. package/lib/components/data-display/activity-feed/activity-feed-item.template.js +15 -14
  12. package/lib/components/data-display/avatar/avatar.component.d.ts +9 -4
  13. package/lib/components/data-display/avatar/avatar.component.d.ts.map +1 -1
  14. package/lib/components/data-display/avatar/avatar.component.js +12 -3
  15. package/lib/components/data-display/avatar/avatar.template.js +1 -1
  16. package/lib/components/data-display/badge/badge.component.d.ts +2 -3
  17. package/lib/components/data-display/badge/badge.component.d.ts.map +1 -1
  18. package/lib/components/data-display/badge/badge.styles.d.ts.map +1 -1
  19. package/lib/components/data-display/badge/badge.styles.js +56 -35
  20. package/lib/components/data-display/badge/badge.types.d.ts +2 -0
  21. package/lib/components/data-display/badge/badge.types.d.ts.map +1 -1
  22. package/lib/components/data-display/calendar-view/calendar-view.utils.d.ts +10 -0
  23. package/lib/components/data-display/calendar-view/calendar-view.utils.d.ts.map +1 -1
  24. package/lib/components/data-display/calendar-view/calendar-view.utils.js +59 -27
  25. package/lib/components/data-display/data-grid/data-grid.component.d.ts +6 -5
  26. package/lib/components/data-display/data-grid/data-grid.component.d.ts.map +1 -1
  27. package/lib/components/data-display/data-grid/data-grid.component.js +49 -110
  28. package/lib/components/data-display/data-grid/data-grid.template.d.ts.map +1 -1
  29. package/lib/components/data-display/data-grid/data-grid.template.js +2 -6
  30. package/lib/components/data-display/list/list-item.component.d.ts +15 -6
  31. package/lib/components/data-display/list/list-item.component.d.ts.map +1 -1
  32. package/lib/components/data-display/list/list-item.component.js +57 -6
  33. package/lib/components/data-display/list/list-item.styles.d.ts.map +1 -1
  34. package/lib/components/data-display/list/list-item.styles.js +5 -0
  35. package/lib/components/data-display/list/list-item.template.d.ts.map +1 -1
  36. package/lib/components/data-display/list/list-item.template.js +18 -12
  37. package/lib/components/data-display/profile-card/profile-card.component.d.ts +2 -2
  38. package/lib/components/data-display/profile-card/profile-card.component.d.ts.map +1 -1
  39. package/lib/components/data-display/profile-card/profile-card.component.js +17 -15
  40. package/lib/components/data-display/profile-card/profile-card.template.js +1 -1
  41. package/lib/components/data-display/stat-card/stat-card.component.d.ts +6 -6
  42. package/lib/components/data-display/stat-card/stat-card.component.d.ts.map +1 -1
  43. package/lib/components/data-display/stat-card/stat-card.component.js +14 -6
  44. package/lib/components/data-display/stat-card/stat-card.template.js +4 -4
  45. package/lib/components/data-display/table/table.component.d.ts +7 -5
  46. package/lib/components/data-display/table/table.component.d.ts.map +1 -1
  47. package/lib/components/data-display/table/table.component.js +40 -117
  48. package/lib/components/data-display/table/table.template.d.ts.map +1 -1
  49. package/lib/components/data-display/table/table.template.js +1 -6
  50. package/lib/components/data-display/table-core/index.d.ts +3 -0
  51. package/lib/components/data-display/table-core/index.d.ts.map +1 -0
  52. package/lib/components/data-display/table-core/index.js +2 -0
  53. package/lib/components/data-display/table-core/table-core.d.ts +137 -0
  54. package/lib/components/data-display/table-core/table-core.d.ts.map +1 -0
  55. package/lib/components/data-display/table-core/table-core.js +225 -0
  56. package/lib/components/data-display/tag/tag.component.d.ts +14 -7
  57. package/lib/components/data-display/tag/tag.component.d.ts.map +1 -1
  58. package/lib/components/data-display/tag/tag.component.js +29 -5
  59. package/lib/components/data-display/tag/tag.template.js +2 -2
  60. package/lib/components/data-display/tag/tag.types.d.ts +8 -1
  61. package/lib/components/data-display/tag/tag.types.d.ts.map +1 -1
  62. package/lib/components/feedback/alert/alert.component.d.ts +6 -3
  63. package/lib/components/feedback/alert/alert.component.d.ts.map +1 -1
  64. package/lib/components/feedback/alert/alert.component.js +13 -4
  65. package/lib/components/feedback/alert/alert.template.js +1 -1
  66. package/lib/components/feedback/progress/progress.component.d.ts +4 -0
  67. package/lib/components/feedback/progress/progress.component.d.ts.map +1 -1
  68. package/lib/components/feedback/progress/progress.component.js +9 -0
  69. package/lib/components/feedback/progress/progress.template.d.ts.map +1 -1
  70. package/lib/components/feedback/progress/progress.template.js +19 -5
  71. package/lib/components/feedback/toast/toast.component.d.ts +6 -3
  72. package/lib/components/feedback/toast/toast.component.d.ts.map +1 -1
  73. package/lib/components/feedback/toast/toast.component.js +13 -4
  74. package/lib/components/feedback/toast/toast.service.d.ts.map +1 -1
  75. package/lib/components/feedback/toast/toast.service.js +2 -1
  76. package/lib/components/feedback/toast/toast.template.js +1 -1
  77. package/lib/components/forms/autocomplete/autocomplete.component.d.ts +12 -4
  78. package/lib/components/forms/autocomplete/autocomplete.component.d.ts.map +1 -1
  79. package/lib/components/forms/autocomplete/autocomplete.component.js +39 -30
  80. package/lib/components/forms/autocomplete/autocomplete.template.d.ts.map +1 -1
  81. package/lib/components/forms/autocomplete/autocomplete.template.js +14 -0
  82. package/lib/components/forms/button/button.component.d.ts +28 -3
  83. package/lib/components/forms/button/button.component.d.ts.map +1 -1
  84. package/lib/components/forms/button/button.component.js +81 -6
  85. package/lib/components/forms/button/button.template.js +1 -1
  86. package/lib/components/forms/button/button.types.d.ts +8 -1
  87. package/lib/components/forms/button/button.types.d.ts.map +1 -1
  88. package/lib/components/forms/button-group/button-group-item.component.d.ts +2 -2
  89. package/lib/components/forms/button-group/button-group-item.component.d.ts.map +1 -1
  90. package/lib/components/forms/button-group/button-group.component.d.ts +4 -2
  91. package/lib/components/forms/button-group/button-group.component.d.ts.map +1 -1
  92. package/lib/components/forms/button-group/button-group.component.js +3 -1
  93. package/lib/components/forms/button-group/button-group.styles.d.ts.map +1 -1
  94. package/lib/components/forms/button-group/button-group.styles.js +15 -1
  95. package/lib/components/forms/button-group/button-group.template.d.ts.map +1 -1
  96. package/lib/components/forms/button-group/button-group.template.js +4 -2
  97. package/lib/components/forms/checkbox/checkbox.component.d.ts +4 -2
  98. package/lib/components/forms/checkbox/checkbox.component.d.ts.map +1 -1
  99. package/lib/components/forms/checkbox/checkbox.component.js +3 -1
  100. package/lib/components/forms/checkbox/checkbox.styles.d.ts.map +1 -1
  101. package/lib/components/forms/checkbox/checkbox.styles.js +19 -0
  102. package/lib/components/forms/checkbox/checkbox.template.d.ts.map +1 -1
  103. package/lib/components/forms/checkbox/checkbox.template.js +4 -2
  104. package/lib/components/forms/date-picker/calendar.component.js +1 -1
  105. package/lib/components/forms/date-picker/date-picker.component.d.ts +11 -4
  106. package/lib/components/forms/date-picker/date-picker.component.d.ts.map +1 -1
  107. package/lib/components/forms/date-picker/date-picker.component.js +99 -32
  108. package/lib/components/forms/date-picker/date-picker.styles.d.ts.map +1 -1
  109. package/lib/components/forms/date-picker/date-picker.styles.js +0 -10
  110. package/lib/components/forms/date-picker/date-picker.template.d.ts.map +1 -1
  111. package/lib/components/forms/date-picker/date-picker.template.js +3 -4
  112. package/lib/components/forms/file-upload/file-upload-item.component.d.ts +7 -0
  113. package/lib/components/forms/file-upload/file-upload-item.component.d.ts.map +1 -1
  114. package/lib/components/forms/file-upload/file-upload-item.component.js +15 -0
  115. package/lib/components/forms/file-upload/file-upload.component.d.ts +15 -0
  116. package/lib/components/forms/file-upload/file-upload.component.d.ts.map +1 -1
  117. package/lib/components/forms/file-upload/file-upload.component.js +56 -0
  118. package/lib/components/forms/form-field/form-field.component.d.ts +12 -4
  119. package/lib/components/forms/form-field/form-field.component.d.ts.map +1 -1
  120. package/lib/components/forms/form-field/form-field.component.js +50 -31
  121. package/lib/components/forms/form-field/form-field.template.js +1 -1
  122. package/lib/components/forms/input/input.component.d.ts +2 -2
  123. package/lib/components/forms/input/input.component.d.ts.map +1 -1
  124. package/lib/components/forms/radio/radio-group.component.d.ts +6 -0
  125. package/lib/components/forms/radio/radio-group.component.d.ts.map +1 -1
  126. package/lib/components/forms/radio/radio-group.component.js +69 -2
  127. package/lib/components/forms/radio/radio-group.template.js +1 -1
  128. package/lib/components/forms/radio/radio.component.d.ts +7 -2
  129. package/lib/components/forms/radio/radio.component.d.ts.map +1 -1
  130. package/lib/components/forms/radio/radio.component.js +5 -0
  131. package/lib/components/forms/radio/radio.template.d.ts.map +1 -1
  132. package/lib/components/forms/radio/radio.template.js +1 -0
  133. package/lib/components/forms/select/select.component.d.ts +13 -6
  134. package/lib/components/forms/select/select.component.d.ts.map +1 -1
  135. package/lib/components/forms/select/select.component.js +32 -36
  136. package/lib/components/forms/select/select.template.d.ts.map +1 -1
  137. package/lib/components/forms/select/select.template.js +6 -2
  138. package/lib/components/forms/slider/slider.component.d.ts +2 -2
  139. package/lib/components/forms/slider/slider.component.d.ts.map +1 -1
  140. package/lib/components/forms/slider/slider.component.js +5 -1
  141. package/lib/components/forms/textarea/textarea.component.d.ts +2 -2
  142. package/lib/components/forms/textarea/textarea.component.d.ts.map +1 -1
  143. package/lib/components/forms/toggle/toggle.component.d.ts +4 -2
  144. package/lib/components/forms/toggle/toggle.component.d.ts.map +1 -1
  145. package/lib/components/forms/toggle/toggle.component.js +3 -1
  146. package/lib/components/forms/toggle/toggle.styles.d.ts.map +1 -1
  147. package/lib/components/forms/toggle/toggle.styles.js +19 -0
  148. package/lib/components/forms/toggle/toggle.template.d.ts.map +1 -1
  149. package/lib/components/forms/toggle/toggle.template.js +11 -3
  150. package/lib/components/foundation/card/card.component.d.ts +7 -6
  151. package/lib/components/foundation/card/card.component.d.ts.map +1 -1
  152. package/lib/components/foundation/card/card.component.js +18 -7
  153. package/lib/components/foundation/card/card.styles.d.ts.map +1 -1
  154. package/lib/components/foundation/card/card.styles.js +5 -0
  155. package/lib/components/foundation/card/card.template.d.ts.map +1 -1
  156. package/lib/components/foundation/card/card.template.js +16 -11
  157. package/lib/components/foundation/divider/divider.component.d.ts +5 -4
  158. package/lib/components/foundation/divider/divider.component.d.ts.map +1 -1
  159. package/lib/components/foundation/divider/divider.component.js +11 -3
  160. package/lib/components/foundation/divider/divider.styles.d.ts.map +1 -1
  161. package/lib/components/foundation/divider/divider.styles.js +6 -0
  162. package/lib/components/foundation/divider/divider.template.d.ts +5 -0
  163. package/lib/components/foundation/divider/divider.template.d.ts.map +1 -1
  164. package/lib/components/foundation/divider/divider.template.js +9 -6
  165. package/lib/components/general/icon/icon.template.d.ts.map +1 -1
  166. package/lib/components/general/icon/icon.template.js +3 -1
  167. package/lib/components/navigation/pagination/pagination.component.d.ts +5 -0
  168. package/lib/components/navigation/pagination/pagination.component.d.ts.map +1 -1
  169. package/lib/components/navigation/pagination/pagination.component.js +22 -10
  170. package/lib/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
  171. package/lib/components/navigation/pagination/pagination.styles.js +6 -4
  172. package/lib/components/navigation/sidebar/sidebar-item.component.d.ts +4 -4
  173. package/lib/components/navigation/sidebar/sidebar-item.component.d.ts.map +1 -1
  174. package/lib/components/navigation/sidebar/sidebar-item.component.js +11 -4
  175. package/lib/components/navigation/sidebar/sidebar-item.template.js +2 -2
  176. package/lib/components/navigation/sidebar/sidebar.component.d.ts +7 -0
  177. package/lib/components/navigation/sidebar/sidebar.component.d.ts.map +1 -1
  178. package/lib/components/navigation/sidebar/sidebar.component.js +48 -5
  179. package/lib/components/navigation/steps/step-panel.component.d.ts +7 -0
  180. package/lib/components/navigation/steps/step-panel.component.d.ts.map +1 -1
  181. package/lib/components/navigation/steps/step-panel.component.js +7 -0
  182. package/lib/components/navigation/steps/step-panel.template.d.ts +1 -1
  183. package/lib/components/navigation/steps/step-panel.template.d.ts.map +1 -1
  184. package/lib/components/navigation/steps/step-panel.template.js +2 -2
  185. package/lib/components/navigation/steps/step.component.d.ts +2 -2
  186. package/lib/components/navigation/steps/step.component.d.ts.map +1 -1
  187. package/lib/components/navigation/steps/step.component.js +8 -2
  188. package/lib/components/navigation/steps/step.template.js +1 -1
  189. package/lib/components/navigation/steps/steps.component.d.ts +3 -1
  190. package/lib/components/navigation/steps/steps.component.d.ts.map +1 -1
  191. package/lib/components/navigation/steps/steps.component.js +47 -14
  192. package/lib/components/navigation/steps/steps.template.d.ts.map +1 -1
  193. package/lib/components/navigation/steps/steps.template.js +5 -1
  194. package/lib/components/navigation/tabs/tab-panel.component.d.ts +7 -0
  195. package/lib/components/navigation/tabs/tab-panel.component.d.ts.map +1 -1
  196. package/lib/components/navigation/tabs/tab-panel.component.js +7 -0
  197. package/lib/components/navigation/tabs/tab-panel.template.d.ts +1 -1
  198. package/lib/components/navigation/tabs/tab-panel.template.d.ts.map +1 -1
  199. package/lib/components/navigation/tabs/tab-panel.template.js +2 -2
  200. package/lib/components/navigation/tabs/tabs.component.d.ts +5 -3
  201. package/lib/components/navigation/tabs/tabs.component.d.ts.map +1 -1
  202. package/lib/components/navigation/tabs/tabs.component.js +49 -14
  203. package/lib/components/navigation/tabs/tabs.template.d.ts.map +1 -1
  204. package/lib/components/navigation/tabs/tabs.template.js +6 -1
  205. package/lib/components/overlays/dialog/dialog-ref.class.d.ts +17 -2
  206. package/lib/components/overlays/dialog/dialog-ref.class.d.ts.map +1 -1
  207. package/lib/components/overlays/dialog/dialog-ref.class.js +52 -6
  208. package/lib/components/overlays/dialog/dialog.component.d.ts.map +1 -1
  209. package/lib/components/overlays/dialog/dialog.component.js +5 -1
  210. package/lib/components/overlays/dialog/dialog.service.d.ts +2 -2
  211. package/lib/components/overlays/dialog/dialog.service.d.ts.map +1 -1
  212. package/lib/components/overlays/dialog/dialog.service.js +46 -18
  213. package/lib/components/overlays/drawer/drawer.component.d.ts +9 -2
  214. package/lib/components/overlays/drawer/drawer.component.d.ts.map +1 -1
  215. package/lib/components/overlays/drawer/drawer.component.js +34 -4
  216. package/lib/components/overlays/drawer/drawer.styles.d.ts.map +1 -1
  217. package/lib/components/overlays/drawer/drawer.styles.js +4 -0
  218. package/lib/components/overlays/dropdown/dropdown-item.component.d.ts +5 -2
  219. package/lib/components/overlays/dropdown/dropdown-item.component.d.ts.map +1 -1
  220. package/lib/components/overlays/dropdown/dropdown-item.component.js +18 -0
  221. package/lib/components/overlays/dropdown/dropdown-item.template.d.ts.map +1 -1
  222. package/lib/components/overlays/dropdown/dropdown-item.template.js +0 -3
  223. package/lib/components/overlays/dropdown/dropdown.component.d.ts +8 -4
  224. package/lib/components/overlays/dropdown/dropdown.component.d.ts.map +1 -1
  225. package/lib/components/overlays/dropdown/dropdown.component.js +61 -60
  226. package/lib/components/overlays/popover/popover.component.d.ts +6 -4
  227. package/lib/components/overlays/popover/popover.component.d.ts.map +1 -1
  228. package/lib/components/overlays/popover/popover.component.js +37 -51
  229. package/lib/components/overlays/tooltip/tooltip.component.d.ts +29 -4
  230. package/lib/components/overlays/tooltip/tooltip.component.d.ts.map +1 -1
  231. package/lib/components/overlays/tooltip/tooltip.component.js +73 -31
  232. package/lib/components/overlays/tooltip/tooltip.styles.d.ts.map +1 -1
  233. package/lib/components/overlays/tooltip/tooltip.styles.js +22 -10
  234. package/lib/components/overlays/tooltip/tooltip.template.d.ts.map +1 -1
  235. package/lib/components/overlays/tooltip/tooltip.template.js +3 -2
  236. package/lib/components/pages/auth/login-page.component.d.ts +11 -4
  237. package/lib/components/pages/auth/login-page.component.d.ts.map +1 -1
  238. package/lib/components/pages/auth/login-page.component.js +18 -5
  239. package/lib/components/pages/auth/login-page.template.d.ts.map +1 -1
  240. package/lib/components/pages/auth/login-page.template.js +9 -10
  241. package/lib/components/pages/auth/signup-page.component.d.ts +11 -4
  242. package/lib/components/pages/auth/signup-page.component.d.ts.map +1 -1
  243. package/lib/components/pages/auth/signup-page.component.js +18 -5
  244. package/lib/components/pages/auth/signup-page.template.d.ts.map +1 -1
  245. package/lib/components/pages/auth/signup-page.template.js +9 -10
  246. package/lib/components/pages/dashboard/dashboard-page.component.d.ts +18 -11
  247. package/lib/components/pages/dashboard/dashboard-page.component.d.ts.map +1 -1
  248. package/lib/components/pages/dashboard/dashboard-page.component.js +55 -13
  249. package/lib/components/pages/dashboard/dashboard-page.template.js +1 -1
  250. package/lib/components/sections/app-shell/app-shell.component.d.ts +6 -6
  251. package/lib/components/sections/app-shell/app-shell.component.d.ts.map +1 -1
  252. package/lib/components/sections/app-shell/app-shell.component.js +14 -6
  253. package/lib/components/sections/app-shell/app-shell.template.js +3 -3
  254. package/lib/components/sections/hero/hero-section.component.d.ts +6 -3
  255. package/lib/components/sections/hero/hero-section.component.d.ts.map +1 -1
  256. package/lib/components/sections/hero/hero-section.component.js +13 -4
  257. package/lib/components/sections/hero/hero-section.template.js +2 -2
  258. package/lib/components/sections/page-header/page-header.component.d.ts +16 -17
  259. package/lib/components/sections/page-header/page-header.component.d.ts.map +1 -1
  260. package/lib/components/sections/page-header/page-header.component.js +36 -25
  261. package/lib/components/sections/page-header/page-header.styles.d.ts.map +1 -1
  262. package/lib/components/sections/page-header/page-header.styles.js +9 -0
  263. package/lib/components/sections/page-header/page-header.template.d.ts +5 -0
  264. package/lib/components/sections/page-header/page-header.template.d.ts.map +1 -1
  265. package/lib/components/sections/page-header/page-header.template.js +42 -31
  266. package/lib/components/sections/page-section/page-section.component.d.ts +16 -12
  267. package/lib/components/sections/page-section/page-section.component.d.ts.map +1 -1
  268. package/lib/components/sections/page-section/page-section.component.js +34 -12
  269. package/lib/components/sections/page-section/page-section.styles.d.ts.map +1 -1
  270. package/lib/components/sections/page-section/page-section.styles.js +6 -0
  271. package/lib/components/sections/page-section/page-section.template.d.ts +6 -0
  272. package/lib/components/sections/page-section/page-section.template.d.ts.map +1 -1
  273. package/lib/components/sections/page-section/page-section.template.js +26 -15
  274. package/lib/components/sections/page-section/sanitize-href.function.d.ts +12 -0
  275. package/lib/components/sections/page-section/sanitize-href.function.d.ts.map +1 -0
  276. package/lib/components/sections/page-section/sanitize-href.function.js +15 -0
  277. package/lib/directives/tooltip.directive.d.ts +8 -2
  278. package/lib/directives/tooltip.directive.d.ts.map +1 -1
  279. package/lib/directives/tooltip.directive.js +103 -9
  280. package/lib/functions/deprecation.functions.d.ts +21 -0
  281. package/lib/functions/deprecation.functions.d.ts.map +1 -0
  282. package/lib/functions/deprecation.functions.js +44 -0
  283. package/lib/functions/index.d.ts +2 -0
  284. package/lib/functions/index.d.ts.map +1 -1
  285. package/lib/functions/index.js +2 -0
  286. package/lib/functions/watch-slot-presence.function.d.ts +17 -0
  287. package/lib/functions/watch-slot-presence.function.d.ts.map +1 -0
  288. package/lib/functions/watch-slot-presence.function.js +27 -0
  289. package/lib/theme/functions/create-theme.function.d.ts +15 -1
  290. package/lib/theme/functions/create-theme.function.d.ts.map +1 -1
  291. package/lib/theme/functions/create-theme.function.js +57 -11
  292. package/lib/theme/index.d.ts +1 -0
  293. package/lib/theme/index.d.ts.map +1 -1
  294. package/lib/types/index.d.ts +8 -2
  295. package/lib/types/index.d.ts.map +1 -1
  296. package/lib/utils/accessibility/focus-trap.d.ts +19 -1
  297. package/lib/utils/accessibility/focus-trap.d.ts.map +1 -1
  298. package/lib/utils/accessibility/focus-trap.js +77 -8
  299. package/lib/utils/accessibility/index.d.ts +2 -1
  300. package/lib/utils/accessibility/index.d.ts.map +1 -1
  301. package/lib/utils/accessibility/index.js +1 -1
  302. package/lib/utils/accessibility/live-region.d.ts +10 -3
  303. package/lib/utils/accessibility/live-region.d.ts.map +1 -1
  304. package/lib/utils/accessibility/live-region.js +64 -35
  305. package/lib/utils/directives/click-outside.directive.d.ts.map +1 -1
  306. package/lib/utils/directives/click-outside.directive.js +5 -3
  307. package/lib/utils/overlay/index.d.ts +4 -0
  308. package/lib/utils/overlay/index.d.ts.map +1 -0
  309. package/lib/utils/overlay/index.js +2 -0
  310. package/lib/utils/overlay/overlay-positioner.d.ts +54 -0
  311. package/lib/utils/overlay/overlay-positioner.d.ts.map +1 -0
  312. package/lib/utils/overlay/overlay-positioner.js +85 -0
  313. package/lib/utils/overlay/toggle-dismiss-guard.d.ts +24 -0
  314. package/lib/utils/overlay/toggle-dismiss-guard.d.ts.map +1 -0
  315. package/lib/utils/overlay/toggle-dismiss-guard.js +36 -0
  316. package/lib/utils/positioning/auto-update.d.ts.map +1 -1
  317. package/lib/utils/positioning/auto-update.js +3 -0
  318. package/lib/utils/positioning/compute-position.d.ts.map +1 -1
  319. package/lib/utils/positioning/compute-position.js +8 -4
  320. package/lib/utils/positioning/middlewares/flip.middleware.d.ts.map +1 -1
  321. package/lib/utils/positioning/middlewares/flip.middleware.js +10 -3
  322. package/lib/utils/positioning/middlewares/offset.middleware.d.ts +15 -0
  323. package/lib/utils/positioning/middlewares/offset.middleware.d.ts.map +1 -1
  324. package/lib/utils/positioning/middlewares/offset.middleware.js +31 -1
  325. package/lib/utils/positioning/middlewares/shift.middleware.d.ts +13 -3
  326. package/lib/utils/positioning/middlewares/shift.middleware.d.ts.map +1 -1
  327. package/lib/utils/positioning/middlewares/shift.middleware.js +15 -7
  328. package/package.json +6 -2
@@ -22,8 +22,8 @@ export declare class SidebarItemComponent implements IElementRef, OnCreate, OnDe
22
22
  elementRef: HTMLElement;
23
23
  /** Icon name */
24
24
  icon: string;
25
- /** Icon format (passed through to ml-icon) */
26
- 'icon-format': 'fill' | 'thin' | 'light' | 'regular' | 'bold' | '';
25
+ /** Icon format (passed through to ml-icon; attribute: icon-format) */
26
+ iconFormat: 'fill' | 'thin' | 'light' | 'regular' | 'bold' | '';
27
27
  /** Display label */
28
28
  label: string;
29
29
  /** Unique value identifier */
@@ -36,8 +36,8 @@ export declare class SidebarItemComponent implements IElementRef, OnCreate, OnDe
36
36
  disabled: boolean;
37
37
  /** Badge text */
38
38
  badge: string;
39
- /** Badge color variant */
40
- 'badge-color': BadgeColor;
39
+ /** Badge color variant (attribute: badge-color) */
40
+ badgeColor: BadgeColor;
41
41
  /** External link */
42
42
  external: boolean;
43
43
  /** Submenu expanded state */
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar-item.component.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/sidebar/sidebar-item.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAMa,oBAAqB,YAAW,WAAW,EAAE,QAAQ,EAAE,SAAS;IACrE,UAAU,EAAG,WAAW,CAAC;IAEhC,gBAAgB;IACT,IAAI,SAAM;IAEjB,8CAA8C;IACvC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,EAAE,CAAM;IAE/E,oBAAoB;IACb,KAAK,SAAM;IAElB,8BAA8B;IACvB,KAAK,SAAM;IAElB,qBAAqB;IACd,IAAI,SAAM;IAEjB,+CAA+C;IACxC,MAAM,UAAS;IAEtB,qBAAqB;IACd,QAAQ,UAAS;IAExB,iBAAiB;IACV,KAAK,SAAM;IAElB,0BAA0B;IACnB,aAAa,EAAE,UAAU,CAAa;IAE7C,oBAAoB;IACb,QAAQ,UAAS;IAExB,6BAA6B;IACtB,QAAQ,UAAS;IAExB,2DAA2D;IACpD,SAAS,UAAS;IAEzB,yCAAyC;IAClC,KAAK,SAAO;IAEnB,6BAA6B;IAC7B,OAAO,CAAC,YAAY,CAAS;IAE7B,yCAAyC;IACzC,IAAW,WAAW,IAAI,OAAO,CAEhC;IAEM,QAAQ,IAAI,IAAI;IAKhB,SAAS,IAAI,IAAI;IAIxB,oDAAoD;IAC7C,gBAAgB,GAAI,OAAO,KAAK,KAAG,IAAI,CAI5C;IAEF,2BAA2B;IACpB,WAAW,GAAI,OAAO,KAAK,KAAG,IAAI,CAiBvC;CACF"}
1
+ {"version":3,"file":"sidebar-item.component.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/sidebar/sidebar-item.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKrD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAMa,oBAAqB,YAAW,WAAW,EAAE,QAAQ,EAAE,SAAS;IACrE,UAAU,EAAG,WAAW,CAAC;IAEhC,gBAAgB;IACT,IAAI,SAAM;IAEjB,sEAAsE;IAC/D,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,EAAE,CAAM;IAE5E,oBAAoB;IACb,KAAK,SAAM;IAElB,8BAA8B;IACvB,KAAK,SAAM;IAElB,qBAAqB;IACd,IAAI,SAAM;IAEjB,+CAA+C;IACxC,MAAM,UAAS;IAEtB,qBAAqB;IACd,QAAQ,UAAS;IAExB,iBAAiB;IACV,KAAK,SAAM;IAElB,mDAAmD;IAC5C,UAAU,EAAE,UAAU,CAAa;IAE1C,oBAAoB;IACb,QAAQ,UAAS;IAExB,6BAA6B;IACtB,QAAQ,UAAS;IAExB,2DAA2D;IACpD,SAAS,UAAS;IAEzB,yCAAyC;IAClC,KAAK,SAAO;IAEnB,6BAA6B;IAC7B,OAAO,CAAC,YAAY,CAAS;IAE7B,yCAAyC;IACzC,IAAW,WAAW,IAAI,OAAO,CAEhC;IAEM,QAAQ,IAAI,IAAI;IAKhB,SAAS,IAAI,IAAI;IAIxB,oDAAoD;IAC7C,gBAAgB,GAAI,OAAO,KAAK,KAAG,IAAI,CAI5C;IAEF,2BAA2B;IACpB,WAAW,GAAI,OAAO,KAAK,KAAG,IAAI,CAiBvC;CACF"}
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import { MelodicComponent } from '@melodicdev/core';
8
8
  import { sidebarItemTemplate } from './sidebar-item.template.js';
9
9
  import { sidebarItemStyles } from './sidebar-item.styles.js';
10
+ import { defineLegacyAliases } from '../../../functions/index.js';
10
11
  /**
11
12
  * ml-sidebar-item - Navigation link for use within ml-sidebar
12
13
  *
@@ -29,8 +30,8 @@ let SidebarItemComponent = class SidebarItemComponent {
29
30
  constructor() {
30
31
  /** Icon name */
31
32
  this.icon = '';
32
- /** Icon format (passed through to ml-icon) */
33
- this['icon-format'] = '';
33
+ /** Icon format (passed through to ml-icon; attribute: icon-format) */
34
+ this.iconFormat = '';
34
35
  /** Display label */
35
36
  this.label = '';
36
37
  /** Unique value identifier */
@@ -43,8 +44,8 @@ let SidebarItemComponent = class SidebarItemComponent {
43
44
  this.disabled = false;
44
45
  /** Badge text */
45
46
  this.badge = '';
46
- /** Badge color variant */
47
- this['badge-color'] = 'default';
47
+ /** Badge color variant (attribute: badge-color) */
48
+ this.badgeColor = 'default';
48
49
  /** External link */
49
50
  this.external = false;
50
51
  /** Submenu expanded state */
@@ -99,3 +100,9 @@ SidebarItemComponent = __decorate([
99
100
  })
100
101
  ], SidebarItemComponent);
101
102
  export { SidebarItemComponent };
103
+ // Deprecated quoted kebab-case property aliases (warn once on first write;
104
+ // removed in the next major release).
105
+ defineLegacyAliases(SidebarItemComponent.prototype, 'ml-sidebar-item', {
106
+ 'icon-format': 'iconFormat',
107
+ 'badge-color': 'badgeColor'
108
+ });
@@ -5,7 +5,7 @@ export function sidebarItemTemplate(c) {
5
5
  const content = html `
6
6
  <div class="ml-sidebar-item__leading">
7
7
  <slot name="leading">
8
- ${when(!!c.icon, () => html `<ml-icon icon=${c.icon} size="sm" format=${c['icon-format'] || 'regular'}></ml-icon>`)}
8
+ ${when(!!c.icon, () => html `<ml-icon icon=${c.icon} size="sm" format=${c.iconFormat || 'regular'}></ml-icon>`)}
9
9
  </slot>
10
10
  </div>
11
11
  ${when(!isCollapsed, () => html `
@@ -15,7 +15,7 @@ export function sidebarItemTemplate(c) {
15
15
  ${when(!!c.badge, () => html `
16
16
  <span class=${classMap({
17
17
  'ml-sidebar-item__badge': true,
18
- [`ml-sidebar-item__badge--${c['badge-color']}`]: true
18
+ [`ml-sidebar-item__badge--${c.badgeColor}`]: true
19
19
  })}>${c.badge}</span>
20
20
  `)}
21
21
  ${when(c.external, () => html `<ml-icon icon="arrow-square-out" size="xs"></ml-icon>`)}
@@ -63,6 +63,13 @@ export declare class SidebarComponent implements IElementRef, OnCreate, OnDestro
63
63
  handleConfigToggle: (item: SidebarNavItem) => void;
64
64
  /** Keyboard navigation */
65
65
  handleKeyDown: (event: KeyboardEvent) => void;
66
+ /**
67
+ * Focusable navigation targets in visual order: config-mode links rendered
68
+ * in our shadow root AND the links inside slotted ml-sidebar-item shadow
69
+ * roots (slotted items previously never received keyboard focus — arrows
70
+ * changed nothing because the shadow query couldn't see them).
71
+ */
72
+ private getFocusableItems;
66
73
  /** Track expanded config items */
67
74
  expandedItems: Set<string>;
68
75
  /** Activate an item */
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar.component.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/sidebar/sidebar.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAI1F;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAMa,gBAAiB,YAAW,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ;IAC3E,UAAU,EAAG,WAAW,CAAC;IAEhC,qBAAqB;IACd,OAAO,EAAE,cAAc,CAAa;IAE3C,kCAAkC;IAC3B,MAAM,SAAM;IAEnB,yDAAyD;IAClD,SAAS,UAAS;IAEzB,yDAAyD;IAClD,UAAU,EAAE,eAAe,EAAE,CAAM;IAE1C,+BAA+B;IACxB,gBAAgB,EAAE,cAAc,EAAE,CAAM;IAE/C,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C,OAAO,CAAC,YAAY;IASpB,0CAA0C;IAC1C,OAAO,CAAC,YAAY;IASpB,2DAA2D;IAC3D,OAAO,CAAC,gBAAgB;CAexB"}
@@ -74,11 +74,14 @@ let SidebarComponent = class SidebarComponent {
74
74
  };
75
75
  /** Keyboard navigation */
76
76
  this.handleKeyDown = (event) => {
77
- const sidebar = this.elementRef.shadowRoot?.querySelector('.ml-sidebar__main');
78
- if (!sidebar)
77
+ const focusable = this.getFocusableItems();
78
+ if (focusable.length === 0)
79
79
  return;
80
- const focusable = Array.from(sidebar.querySelectorAll('.ml-sidebar__item-link:not([disabled]), button:not([disabled]), a'));
81
- const currentIndex = focusable.indexOf(event.target);
80
+ // Keydown events from inside a slotted ml-sidebar-item's shadow root are
81
+ // retargeted to the item HOST by the time they reach our listener, so
82
+ // match against either the focusable element or its host.
83
+ const target = event.target;
84
+ const currentIndex = focusable.findIndex((entry) => entry.el === target || entry.host === target);
82
85
  let newIndex = currentIndex;
83
86
  switch (event.key) {
84
87
  case 'ArrowUp':
@@ -101,7 +104,7 @@ let SidebarComponent = class SidebarComponent {
101
104
  return;
102
105
  }
103
106
  if (newIndex !== currentIndex && focusable[newIndex]) {
104
- focusable[newIndex].focus();
107
+ focusable[newIndex].el.focus();
105
108
  }
106
109
  };
107
110
  /** Track expanded config items */
@@ -143,6 +146,42 @@ let SidebarComponent = class SidebarComponent {
143
146
  clearTimeout(this._hoverTimer);
144
147
  }
145
148
  }
149
+ /**
150
+ * Focusable navigation targets in visual order: config-mode links rendered
151
+ * in our shadow root AND the links inside slotted ml-sidebar-item shadow
152
+ * roots (slotted items previously never received keyboard focus — arrows
153
+ * changed nothing because the shadow query couldn't see them).
154
+ */
155
+ getFocusableItems() {
156
+ const main = this.elementRef.shadowRoot?.querySelector('.ml-sidebar__main');
157
+ if (!main)
158
+ return [];
159
+ const result = [];
160
+ const visit = (node) => {
161
+ if (node instanceof HTMLSlotElement) {
162
+ node.assignedElements({ flatten: true }).forEach(visit);
163
+ return;
164
+ }
165
+ if (node.tagName === 'ML-SIDEBAR-ITEM') {
166
+ const link = node.shadowRoot?.querySelector('.ml-sidebar-item__link');
167
+ if (link && !link.hasAttribute('disabled') && !link.classList.contains('ml-sidebar-item__link--disabled')) {
168
+ result.push({ el: link, host: node });
169
+ }
170
+ // Submenu items are light-DOM children; only reachable when expanded.
171
+ if (node.hasAttribute('expanded') && !this.collapsed) {
172
+ Array.from(node.children).forEach(visit);
173
+ }
174
+ return;
175
+ }
176
+ if (node.matches('.ml-sidebar__item-link:not([disabled]):not(.ml-sidebar__item-link--disabled), button:not([disabled]), a')) {
177
+ result.push({ el: node, host: null });
178
+ return;
179
+ }
180
+ Array.from(node.children).forEach(visit);
181
+ };
182
+ Array.from(main.children).forEach(visit);
183
+ return result;
184
+ }
146
185
  /** Activate an item */
147
186
  activateItem(value, href) {
148
187
  this.active = value;
@@ -160,6 +199,10 @@ let SidebarComponent = class SidebarComponent {
160
199
  }
161
200
  /** Handle item click from slotted children */
162
201
  onItemClick(event) {
202
+ // ml:sidebar-item-click is internal item→sidebar coordination; consumers
203
+ // get ml:change + ml:item-click (re-emitted by activateItem). Stop the
204
+ // original so it never escapes the ml-sidebar host.
205
+ event.stopPropagation();
163
206
  const { value, href } = event.detail;
164
207
  this.activateItem(value, href);
165
208
  }
@@ -14,5 +14,12 @@ export declare class StepPanelComponent implements IElementRef {
14
14
  elementRef: HTMLElement;
15
15
  /** Panel identifier (must match ml-step value) */
16
16
  value: string;
17
+ /**
18
+ * Accessible name for the panel, kept in sync with the matching step's
19
+ * label by the parent ml-steps. ARIA id references cannot cross shadow-root
20
+ * boundaries, so the step/panel association is carried by name (aria-label)
21
+ * rather than aria-labelledby.
22
+ */
23
+ panelLabel: string;
17
24
  }
18
25
  //# sourceMappingURL=step-panel.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"step-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/steps/step-panel.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIpD;;;;;;;;;;GAUG;AACH,qBAMa,kBAAmB,YAAW,WAAW;IAC9C,UAAU,EAAG,WAAW,CAAC;IAEhC,kDAAkD;IAC3C,KAAK,SAAM;CAClB"}
1
+ {"version":3,"file":"step-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/steps/step-panel.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIpD;;;;;;;;;;GAUG;AACH,qBAMa,kBAAmB,YAAW,WAAW;IAC9C,UAAU,EAAG,WAAW,CAAC;IAEhC,kDAAkD;IAC3C,KAAK,SAAM;IAElB;;;;;OAKG;IACI,UAAU,SAAM;CACvB"}
@@ -22,6 +22,13 @@ let StepPanelComponent = class StepPanelComponent {
22
22
  constructor() {
23
23
  /** Panel identifier (must match ml-step value) */
24
24
  this.value = '';
25
+ /**
26
+ * Accessible name for the panel, kept in sync with the matching step's
27
+ * label by the parent ml-steps. ARIA id references cannot cross shadow-root
28
+ * boundaries, so the step/panel association is carried by name (aria-label)
29
+ * rather than aria-labelledby.
30
+ */
31
+ this.panelLabel = '';
25
32
  }
26
33
  };
27
34
  StepPanelComponent = __decorate([
@@ -1,3 +1,3 @@
1
1
  import type { StepPanelComponent } from './step-panel.component.js';
2
- export declare function stepPanelTemplate(_c: StepPanelComponent): import("@melodicdev/core").TemplateResult;
2
+ export declare function stepPanelTemplate(c: StepPanelComponent): import("@melodicdev/core").TemplateResult;
3
3
  //# sourceMappingURL=step-panel.template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"step-panel.template.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/steps/step-panel.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,kBAAkB,6CAMvD"}
1
+ {"version":3,"file":"step-panel.template.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/steps/step-panel.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,kBAAkB,6CAMtD"}
@@ -1,7 +1,7 @@
1
1
  import { html } from '@melodicdev/core';
2
- export function stepPanelTemplate(_c) {
2
+ export function stepPanelTemplate(c) {
3
3
  return html `
4
- <div class="ml-step-panel" role="tabpanel">
4
+ <div class="ml-step-panel" role="tabpanel" aria-label=${c.panelLabel || c.value}>
5
5
  <slot></slot>
6
6
  </div>
7
7
  `;
@@ -35,8 +35,8 @@ export declare class StepComponent implements IElementRef {
35
35
  color: StepsColor;
36
36
  /** Layout orientation (managed by parent) */
37
37
  orientation: StepsOrientation;
38
- /** Step number (managed by parent) */
39
- 'step-number': string;
38
+ /** Step number (managed by parent; attribute: step-number) */
39
+ stepNumber: string;
40
40
  /** First step flag (managed by parent) */
41
41
  first: boolean;
42
42
  /** Last step flag (managed by parent) */
@@ -1 +1 @@
1
- {"version":3,"file":"step.component.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/steps/step.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAI/G;;;;;;;;;;GAUG;AACH,qBAMa,aAAc,YAAW,WAAW;IACzC,UAAU,EAAG,WAAW,CAAC;IAEhC,sBAAsB;IACf,KAAK,SAAM;IAElB,iBAAiB;IACV,KAAK,SAAM;IAElB,iCAAiC;IAC1B,WAAW,SAAM;IAExB,oCAAoC;IAC7B,IAAI,SAAM;IAEjB,0BAA0B;IACnB,IAAI,SAAM;IAEjB,wBAAwB;IACjB,QAAQ,UAAS;IAExB,sCAAsC;IAC/B,MAAM,EAAE,UAAU,CAAc;IAEvC,yCAAyC;IAClC,OAAO,EAAE,YAAY,CAAc;IAE1C,0CAA0C;IACnC,SAAS,EAAE,cAAc,CAAW;IAE3C,uCAAuC;IAChC,KAAK,EAAE,UAAU,CAAa;IAErC,6CAA6C;IACtC,WAAW,EAAE,gBAAgB,CAAgB;IAEpD,sCAAsC;IAC/B,aAAa,SAAO;IAE3B,0CAA0C;IACnC,KAAK,UAAS;IAErB,yCAAyC;IAClC,IAAI,UAAS;IAEpB,4CAA4C;IACrC,OAAO,UAAS;IAEvB,2BAA2B;IACpB,WAAW,QAAO,IAAI,CAU3B;CACF"}
1
+ {"version":3,"file":"step.component.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/steps/step.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAK/G;;;;;;;;;;GAUG;AACH,qBAMa,aAAc,YAAW,WAAW;IACzC,UAAU,EAAG,WAAW,CAAC;IAEhC,sBAAsB;IACf,KAAK,SAAM;IAElB,iBAAiB;IACV,KAAK,SAAM;IAElB,iCAAiC;IAC1B,WAAW,SAAM;IAExB,oCAAoC;IAC7B,IAAI,SAAM;IAEjB,0BAA0B;IACnB,IAAI,SAAM;IAEjB,wBAAwB;IACjB,QAAQ,UAAS;IAExB,sCAAsC;IAC/B,MAAM,EAAE,UAAU,CAAc;IAEvC,yCAAyC;IAClC,OAAO,EAAE,YAAY,CAAc;IAE1C,0CAA0C;IACnC,SAAS,EAAE,cAAc,CAAW;IAE3C,uCAAuC;IAChC,KAAK,EAAE,UAAU,CAAa;IAErC,6CAA6C;IACtC,WAAW,EAAE,gBAAgB,CAAgB;IAEpD,8DAA8D;IACvD,UAAU,SAAO;IAExB,0CAA0C;IACnC,KAAK,UAAS;IAErB,yCAAyC;IAClC,IAAI,UAAS;IAEpB,4CAA4C;IACrC,OAAO,UAAS;IAEvB,2BAA2B;IACpB,WAAW,QAAO,IAAI,CAU3B;CACF"}
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import { MelodicComponent } from '@melodicdev/core';
8
8
  import { stepTemplate } from './step.template.js';
9
9
  import { stepStyles } from './step.styles.js';
10
+ import { defineLegacyAliases } from '../../../functions/index.js';
10
11
  /**
11
12
  * ml-step - Individual step header for use within ml-steps
12
13
  *
@@ -42,8 +43,8 @@ let StepComponent = class StepComponent {
42
43
  this.color = 'primary';
43
44
  /** Layout orientation (managed by parent) */
44
45
  this.orientation = 'horizontal';
45
- /** Step number (managed by parent) */
46
- this['step-number'] = '1';
46
+ /** Step number (managed by parent; attribute: step-number) */
47
+ this.stepNumber = '1';
47
48
  /** First step flag (managed by parent) */
48
49
  this.first = false;
49
50
  /** Last step flag (managed by parent) */
@@ -71,3 +72,8 @@ StepComponent = __decorate([
71
72
  })
72
73
  ], StepComponent);
73
74
  export { StepComponent };
75
+ // Deprecated quoted kebab-case property aliases (warn once on first write;
76
+ // removed in the next major release).
77
+ defineLegacyAliases(StepComponent.prototype, 'ml-step', {
78
+ 'step-number': 'stepNumber'
79
+ });
@@ -73,7 +73,7 @@ function renderNumberedIndicator(c) {
73
73
  return html `
74
74
  <div class="ml-step__indicator-inner ml-step__indicator-inner--numbered">
75
75
  ${when(isCompleted, () => html `<ml-icon icon="check" size="sm"></ml-icon>`)}
76
- ${when(!isCompleted, () => html `<span>${c['step-number']}</span>`)}
76
+ ${when(!isCompleted, () => html `<span>${c.stepNumber}</span>`)}
77
77
  </div>
78
78
  `;
79
79
  }
@@ -55,6 +55,8 @@ export declare class StepsComponent implements IElementRef, OnCreate, OnDestroy,
55
55
  handleStepSlotChange: (event: Event) => void;
56
56
  /** Handle step click (config mode) */
57
57
  handleStepClick: (stepValue: string, href?: string) => void;
58
+ /** Apply the active step state and notify consumers. */
59
+ private activateStep;
58
60
  /** Handle slotted step click event */
59
61
  private handleSlottedStepClick;
60
62
  /** Handle keyboard navigation */
@@ -73,7 +75,7 @@ export declare class StepsComponent implements IElementRef, OnCreate, OnDestroy,
73
75
  private updateSlottedStepStates;
74
76
  /** Update panel visibility */
75
77
  private updatePanelVisibility;
76
- /** Focus a specific step button */
78
+ /** Focus a specific step (config-mode shadow element or slotted ml-step) */
77
79
  private focusStep;
78
80
  /** Sync active step with current route */
79
81
  private syncWithRoute;
@@ -1 +1 @@
1
- {"version":3,"file":"steps.component.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/steps/steps.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAI3H;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAMa,cAAe,YAAW,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ;IACzE,UAAU,EAAG,WAAW,CAAC;IAEhC,kCAAkC;IAC3B,MAAM,SAAM;IAEnB,qBAAqB;IACd,OAAO,EAAE,YAAY,CAAc;IAE1C,yBAAyB;IAClB,WAAW,EAAE,gBAAgB,CAAgB;IAEpD,2BAA2B;IACpB,SAAS,EAAE,cAAc,CAAW;IAE3C,mBAAmB;IACZ,KAAK,EAAE,UAAU,CAAa;IAErC,wBAAwB;IACjB,OAAO,UAAS;IAEvB,gCAAgC;IACzB,MAAM,UAAS;IAEtB,oEAAoE;IAC7D,KAAK,EAAE,UAAU,EAAE,CAAM;IAEhC,yCAAyC;IACzC,OAAO,CAAC,aAAa,CAAqB;IAE1C,gDAAgD;IAChD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAgC;IAE3D,QAAQ,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C,OAAO,CAAC,YAAY;CAGpB"}
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { MelodicComponent } from '@melodicdev/core';
7
+ import { Injector, MelodicComponent, RouterService } from '@melodicdev/core';
8
8
  import { stepsTemplate } from './steps.template.js';
9
9
  import { stepsStyles } from './steps.styles.js';
10
10
  /**
@@ -75,20 +75,26 @@ let StepsComponent = class StepsComponent {
75
75
  if (step?.disabled)
76
76
  return;
77
77
  if (this.routed && href) {
78
- window.history.pushState({}, '', href);
79
- window.dispatchEvent(new PopStateEvent('popstate'));
78
+ // Route through the router pipeline (guards → resolvers → commit)
79
+ // instead of a raw pushState + synthetic popstate, and only activate
80
+ // the step when the navigation actually commits — a guard-blocked
81
+ // navigation must not advance the wizard.
82
+ void Injector.get(RouterService)
83
+ .navigate(href)
84
+ .then((result) => {
85
+ if (result.success) {
86
+ this.activateStep(stepValue);
87
+ }
88
+ });
89
+ return;
80
90
  }
81
- this.active = stepValue;
82
- this.updateSlottedStepStates();
83
- this.updatePanelVisibility();
84
- this.elementRef.dispatchEvent(new CustomEvent('ml:change', {
85
- bubbles: true,
86
- composed: true,
87
- detail: { value: stepValue }
88
- }));
91
+ this.activateStep(stepValue);
89
92
  };
90
93
  /** Handle slotted step click event */
91
94
  this.handleSlottedStepClick = (event) => {
95
+ // ml:step-click is internal step→steps coordination; consumers get
96
+ // ml:change. Stop it here so it never escapes the ml-steps host.
97
+ event.stopPropagation();
92
98
  const { value, href } = event.detail;
93
99
  this.handleStepClick(value, href);
94
100
  };
@@ -159,6 +165,17 @@ let StepsComponent = class StepsComponent {
159
165
  window.removeEventListener('NavigationEvent', this._handleNavigation);
160
166
  }
161
167
  }
168
+ /** Apply the active step state and notify consumers. */
169
+ activateStep(stepValue) {
170
+ this.active = stepValue;
171
+ this.updateSlottedStepStates();
172
+ this.updatePanelVisibility();
173
+ this.elementRef.dispatchEvent(new CustomEvent('ml:change', {
174
+ bubbles: true,
175
+ composed: true,
176
+ detail: { value: stepValue }
177
+ }));
178
+ }
162
179
  /** Get status for a step based on its position relative to active */
163
180
  getStepStatus(stepValue) {
164
181
  const allSteps = this.getAllSteps();
@@ -219,17 +236,33 @@ let StepsComponent = class StepsComponent {
219
236
  updatePanelVisibility() {
220
237
  if (this.routed)
221
238
  return;
239
+ const steps = this.getAllSteps();
222
240
  const panels = this.elementRef.querySelectorAll('ml-step-panel');
223
241
  panels.forEach((panel) => {
224
- const isActive = panel.getAttribute('value') === this.active;
242
+ const value = panel.getAttribute('value');
243
+ const isActive = value === this.active;
225
244
  panel.style.display = isActive ? '' : 'none';
245
+ // Name the panel after its step. ARIA id references cannot cross
246
+ // shadow-root boundaries, so the association is made by accessible
247
+ // name instead of aria-labelledby/aria-controls (see tabs.component).
248
+ const label = steps.find((s) => s.value === value)?.label;
249
+ if (label) {
250
+ panel.panelLabel = label;
251
+ }
226
252
  });
227
253
  }
228
- /** Focus a specific step button */
254
+ /** Focus a specific step (config-mode shadow element or slotted ml-step) */
229
255
  focusStep(value) {
230
256
  const stepList = this.elementRef.shadowRoot?.querySelector('.ml-steps__list');
231
257
  const button = stepList?.querySelector(`[data-value="${value}"]`);
232
- button?.focus();
258
+ if (button) {
259
+ button.focus();
260
+ return;
261
+ }
262
+ // Slotted mode: the focusable element lives inside the ml-step's shadow root.
263
+ const host = this._slottedSteps.find((step) => step.getAttribute('value') === value);
264
+ const slottedStep = host?.shadowRoot?.querySelector('.ml-step');
265
+ slottedStep?.focus();
233
266
  }
234
267
  /** Sync active step with current route */
235
268
  syncWithRoute() {
@@ -1 +1 @@
1
- {"version":3,"file":"steps.template.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/steps/steps.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D,wBAAgB,aAAa,CAAC,CAAC,EAAE,cAAc,6CAuC9C"}
1
+ {"version":3,"file":"steps.template.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/steps/steps.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D,wBAAgB,aAAa,CAAC,CAAC,EAAE,cAAc,6CA0C9C"}
@@ -18,7 +18,11 @@ export function stepsTemplate(c) {
18
18
  @keydown=${c.handleKeyDown}
19
19
  >
20
20
  ${hasSteps
21
- ? repeat(c.steps, (step) => `${step.value}-${c.active === step.value}`, (step, index) => renderConfigStep(c, step, index))
21
+ ? repeat(c.steps,
22
+ // Key by value ALONE — encoding the active state in the key
23
+ // destroys/recreates the focused step on selection change,
24
+ // dropping keyboard focus to <body> (see tabs.template).
25
+ (step) => step.value, (step, index) => renderConfigStep(c, step, index))
22
26
  : html `<slot name="step" @slotchange=${c.handleStepSlotChange}></slot>`}
23
27
  </div>
24
28
 
@@ -16,5 +16,12 @@ export declare class TabPanelComponent implements IElementRef {
16
16
  elementRef: HTMLElement;
17
17
  /** Panel identifier (must match ml-tab value) */
18
18
  value: string;
19
+ /**
20
+ * Accessible name for the tabpanel, kept in sync with the matching tab's
21
+ * label by the parent ml-tabs. ARIA id references cannot cross shadow-root
22
+ * boundaries, so the tab/panel association is carried by name (aria-label)
23
+ * rather than aria-labelledby.
24
+ */
25
+ panelLabel: string;
19
26
  }
20
27
  //# sourceMappingURL=tab-panel.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/tabs/tab-panel.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIpD;;;;;;;;;;;;GAYG;AACH,qBAMa,iBAAkB,YAAW,WAAW;IAC7C,UAAU,EAAG,WAAW,CAAC;IAEhC,iDAAiD;IAC1C,KAAK,SAAM;CAClB"}
1
+ {"version":3,"file":"tab-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/tabs/tab-panel.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIpD;;;;;;;;;;;;GAYG;AACH,qBAMa,iBAAkB,YAAW,WAAW;IAC7C,UAAU,EAAG,WAAW,CAAC;IAEhC,iDAAiD;IAC1C,KAAK,SAAM;IAElB;;;;;OAKG;IACI,UAAU,SAAM;CACvB"}
@@ -24,6 +24,13 @@ let TabPanelComponent = class TabPanelComponent {
24
24
  constructor() {
25
25
  /** Panel identifier (must match ml-tab value) */
26
26
  this.value = '';
27
+ /**
28
+ * Accessible name for the tabpanel, kept in sync with the matching tab's
29
+ * label by the parent ml-tabs. ARIA id references cannot cross shadow-root
30
+ * boundaries, so the tab/panel association is carried by name (aria-label)
31
+ * rather than aria-labelledby.
32
+ */
33
+ this.panelLabel = '';
27
34
  }
28
35
  };
29
36
  TabPanelComponent = __decorate([
@@ -1,3 +1,3 @@
1
1
  import type { TabPanelComponent } from './tab-panel.component.js';
2
- export declare function tabPanelTemplate(_c: TabPanelComponent): import("@melodicdev/core").TemplateResult;
2
+ export declare function tabPanelTemplate(c: TabPanelComponent): import("@melodicdev/core").TemplateResult;
3
3
  //# sourceMappingURL=tab-panel.template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab-panel.template.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/tabs/tab-panel.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,iBAAiB,6CAMrD"}
1
+ {"version":3,"file":"tab-panel.template.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/tabs/tab-panel.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,iBAAiB,6CAMpD"}
@@ -1,7 +1,7 @@
1
1
  import { html } from '@melodicdev/core';
2
- export function tabPanelTemplate(_c) {
2
+ export function tabPanelTemplate(c) {
3
3
  return html `
4
- <div class="ml-tab-panel" role="tabpanel">
4
+ <div class="ml-tab-panel" role="tabpanel" aria-label=${c.panelLabel || c.value}>
5
5
  <slot></slot>
6
6
  </div>
7
7
  `;
@@ -1,5 +1,5 @@
1
1
  import type { IElementRef, OnCreate, OnDestroy, OnRender } from '@melodicdev/core';
2
- import type { Size } from '../../../types/index.js';
2
+ import type { ControlSize } from '../../../types/index.js';
3
3
  import type { TabsVariant, TabsOrientation, TabConfig } from './tabs.types.js';
4
4
  /**
5
5
  * ml-tabs - Tabbed interface component with optional router integration
@@ -44,7 +44,7 @@ export declare class TabsComponent implements IElementRef, OnCreate, OnDestroy,
44
44
  /** Visual variant */
45
45
  variant: TabsVariant;
46
46
  /** Size variant */
47
- size: Size;
47
+ size: ControlSize;
48
48
  /** Tab orientation */
49
49
  orientation: TabsOrientation;
50
50
  /** Enable router integration */
@@ -64,6 +64,8 @@ export declare class TabsComponent implements IElementRef, OnCreate, OnDestroy,
64
64
  handleTabSlotChange: (event: Event) => void;
65
65
  /** Handle tab click */
66
66
  handleTabClick: (tabValue: string, href?: string) => void;
67
+ /** Apply the active tab state and notify consumers. */
68
+ private activateTab;
67
69
  /** Handle keyboard navigation */
68
70
  handleKeyDown: (event: KeyboardEvent) => void;
69
71
  /** Get all tabs (from config or slotted) */
@@ -74,7 +76,7 @@ export declare class TabsComponent implements IElementRef, OnCreate, OnDestroy,
74
76
  private updateTabStates;
75
77
  /** Update panel visibility */
76
78
  private updatePanelVisibility;
77
- /** Focus a specific tab */
79
+ /** Focus a specific tab (config-mode shadow button or slotted ml-tab) */
78
80
  private focusTab;
79
81
  /** Sync active tab with current route (for routed mode) */
80
82
  private syncWithRoute;
@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