atomicuilibrary 0.0.1

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 (1108) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -0
  3. package/dist/cjs/category-section.cjs.entry.js +30 -0
  4. package/dist/cjs/component-size-DsYFUZcz.js +29 -0
  5. package/dist/cjs/dom-oP1E4Rd3.js +267 -0
  6. package/dist/cjs/event-bus-B6M2f8CQ.js +23 -0
  7. package/dist/cjs/exploration-project-tailwind.cjs.js +24 -0
  8. package/dist/cjs/focus-trap-i9T6oXLc.js +139 -0
  9. package/dist/cjs/index-ClkOYpT8.js +2275 -0
  10. package/dist/cjs/index.cjs.js +260 -0
  11. package/dist/cjs/layout-manager.cjs.entry.js +616 -0
  12. package/dist/cjs/library-card.cjs.entry.js +63 -0
  13. package/dist/cjs/lm-container_2.cjs.entry.js +79 -0
  14. package/dist/cjs/lm-panel_3.cjs.entry.js +108 -0
  15. package/dist/cjs/loader.cjs.js +12 -0
  16. package/dist/cjs/my-component.cjs.entry.js +33 -0
  17. package/dist/cjs/my-step.cjs.entry.js +29 -0
  18. package/dist/cjs/nav-bar.cjs.entry.js +247 -0
  19. package/dist/cjs/security-E1JcwxGc.js +1547 -0
  20. package/dist/cjs/smart-step.cjs.entry.js +47 -0
  21. package/dist/cjs/timeline-item.cjs.entry.js +29 -0
  22. package/dist/cjs/ui-accordion_10.cjs.entry.js +5733 -0
  23. package/dist/cjs/ui-advanced-data-table.cjs.entry.js +2684 -0
  24. package/dist/cjs/ui-anchor.cjs.entry.js +558 -0
  25. package/dist/cjs/ui-animate-on-scroll.cjs.entry.js +285 -0
  26. package/dist/cjs/ui-aside-panel.cjs.entry.js +638 -0
  27. package/dist/cjs/ui-avatar-group_3.cjs.entry.js +634 -0
  28. package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +56 -0
  29. package/dist/cjs/ui-breadcrumb.cjs.entry.js +201 -0
  30. package/dist/cjs/ui-callout-banner.cjs.entry.js +291 -0
  31. package/dist/cjs/ui-card.cjs.entry.js +411 -0
  32. package/dist/cjs/ui-carousel.cjs.entry.js +547 -0
  33. package/dist/cjs/ui-checkbox-group.cjs.entry.js +330 -0
  34. package/dist/cjs/ui-checkbox.cjs.entry.js +260 -0
  35. package/dist/cjs/ui-code-editor.cjs.entry.js +961 -0
  36. package/dist/cjs/ui-code-preview.cjs.entry.js +315 -0
  37. package/dist/cjs/ui-color-controller.cjs.entry.js +150 -0
  38. package/dist/cjs/ui-color-picker.cjs.entry.js +658 -0
  39. package/dist/cjs/ui-command-palette.cjs.entry.js +178 -0
  40. package/dist/cjs/ui-dialog-box.cjs.entry.js +1808 -0
  41. package/dist/cjs/ui-dialog-content.cjs.entry.js +31 -0
  42. package/dist/cjs/ui-dialog-footer_2.cjs.entry.js +193 -0
  43. package/dist/cjs/ui-divider.cjs.entry.js +481 -0
  44. package/dist/cjs/ui-dock-host.cjs.entry.js +128 -0
  45. package/dist/cjs/ui-dock.cjs.entry.js +221 -0
  46. package/dist/cjs/ui-drag-drop.cjs.entry.js +172 -0
  47. package/dist/cjs/ui-dropdown_2.cjs.entry.js +1552 -0
  48. package/dist/cjs/ui-empty-state.cjs.entry.js +398 -0
  49. package/dist/cjs/ui-fab-item.cjs.entry.js +39 -0
  50. package/dist/cjs/ui-fab.cjs.entry.js +277 -0
  51. package/dist/cjs/ui-file-upload.cjs.entry.js +418 -0
  52. package/dist/cjs/ui-horizontal-nav.cjs.entry.js +135 -0
  53. package/dist/cjs/ui-image-button.cjs.entry.js +67 -0
  54. package/dist/cjs/ui-input-pair.cjs.entry.js +44 -0
  55. package/dist/cjs/ui-knob.cjs.entry.js +447 -0
  56. package/dist/cjs/ui-library.cjs.entry.js +134 -0
  57. package/dist/cjs/ui-list-group_2.cjs.entry.js +586 -0
  58. package/dist/cjs/ui-list.cjs.entry.js +732 -0
  59. package/dist/cjs/ui-masonry.cjs.entry.js +478 -0
  60. package/dist/cjs/ui-meter-group.cjs.entry.js +173 -0
  61. package/dist/cjs/ui-navigation-item.cjs.entry.js +104 -0
  62. package/dist/cjs/ui-number-input.cjs.entry.js +191 -0
  63. package/dist/cjs/ui-otp-input.cjs.entry.js +246 -0
  64. package/dist/cjs/ui-pagination_3.cjs.entry.js +1621 -0
  65. package/dist/cjs/ui-panel.cjs.entry.js +614 -0
  66. package/dist/cjs/ui-pattern-input.cjs.entry.js +278 -0
  67. package/dist/cjs/ui-popover.cjs.entry.js +517 -0
  68. package/dist/cjs/ui-progress.cjs.entry.js +516 -0
  69. package/dist/cjs/ui-radio-group.cjs.entry.js +205 -0
  70. package/dist/cjs/ui-radio.cjs.entry.js +206 -0
  71. package/dist/cjs/ui-range-slider.cjs.entry.js +637 -0
  72. package/dist/cjs/ui-resizable-panel.cjs.entry.js +484 -0
  73. package/dist/cjs/ui-scroll-top.cjs.entry.js +459 -0
  74. package/dist/cjs/ui-smart-context-menu.cjs.entry.js +376 -0
  75. package/dist/cjs/ui-smart-location-dropdown.cjs.entry.js +565 -0
  76. package/dist/cjs/ui-smart-stepper.cjs.entry.js +137 -0
  77. package/dist/cjs/ui-snackbar.cjs.entry.js +863 -0
  78. package/dist/cjs/ui-speed-dial.cjs.entry.js +520 -0
  79. package/dist/cjs/ui-speedometer.cjs.entry.js +428 -0
  80. package/dist/cjs/ui-splitter.cjs.entry.js +282 -0
  81. package/dist/cjs/ui-step.cjs.entry.js +30 -0
  82. package/dist/cjs/ui-stepper.cjs.entry.js +640 -0
  83. package/dist/cjs/ui-switch.cjs.entry.js +405 -0
  84. package/dist/cjs/ui-tabs.cjs.entry.js +703 -0
  85. package/dist/cjs/ui-tag.cjs.entry.js +299 -0
  86. package/dist/cjs/ui-timeline.cjs.entry.js +267 -0
  87. package/dist/cjs/ui-timer.cjs.entry.js +502 -0
  88. package/dist/cjs/ui-toolbar.cjs.entry.js +619 -0
  89. package/dist/cjs/ui-tooltip.cjs.entry.js +697 -0
  90. package/dist/cjs/ui-top-bar.cjs.entry.js +121 -0
  91. package/dist/cjs/ui-transfer-list.cjs.entry.js +592 -0
  92. package/dist/cjs/ui-tree.cjs.entry.js +874 -0
  93. package/dist/cjs/ui-workspace-manager.cjs.entry.js +1201 -0
  94. package/dist/cjs/utils-DVZ6gul6.js +26 -0
  95. package/dist/collection/assets/js/component-config.js +41 -0
  96. package/dist/collection/assets/js/demo-loader.js +147 -0
  97. package/dist/collection/assets/js/demo-nav.js +273 -0
  98. package/dist/collection/assets/js/demos/about-demo.js +60 -0
  99. package/dist/collection/assets/js/demos/accordion-demo.js +1954 -0
  100. package/dist/collection/assets/js/demos/advanced-data-table-demo.js +2952 -0
  101. package/dist/collection/assets/js/demos/anchor-demo.js +527 -0
  102. package/dist/collection/assets/js/demos/animate-on-scroll-demo.js +174 -0
  103. package/dist/collection/assets/js/demos/aside-panel-demo.js +1109 -0
  104. package/dist/collection/assets/js/demos/avatar-demo.js +508 -0
  105. package/dist/collection/assets/js/demos/badge-demo.js +620 -0
  106. package/dist/collection/assets/js/demos/breadcrumb-demo.js +365 -0
  107. package/dist/collection/assets/js/demos/button-demo.js +1223 -0
  108. package/dist/collection/assets/js/demos/button-toggle-demo.js +978 -0
  109. package/dist/collection/assets/js/demos/callout-banner-demo.js +366 -0
  110. package/dist/collection/assets/js/demos/card-demo.js +427 -0
  111. package/dist/collection/assets/js/demos/carousel-demo.js +360 -0
  112. package/dist/collection/assets/js/demos/checkbox-demo.js +489 -0
  113. package/dist/collection/assets/js/demos/code-preview-demo.js +216 -0
  114. package/dist/collection/assets/js/demos/color-picker-demo.js +117 -0
  115. package/dist/collection/assets/js/demos/command-palette-demo.js +105 -0
  116. package/dist/collection/assets/js/demos/complex-form-demo.js +45 -0
  117. package/dist/collection/assets/js/demos/context-menu-data.js +436 -0
  118. package/dist/collection/assets/js/demos/context-menu-demo.js +829 -0
  119. package/dist/collection/assets/js/demos/dashboard-demo.js +5 -0
  120. package/dist/collection/assets/js/demos/dialog-demo-temp.js +411 -0
  121. package/dist/collection/assets/js/demos/dialog-demo.js +2567 -0
  122. package/dist/collection/assets/js/demos/divider-demo.js +853 -0
  123. package/dist/collection/assets/js/demos/dock-demo.js +422 -0
  124. package/dist/collection/assets/js/demos/dock-host-init.js +117 -0
  125. package/dist/collection/assets/js/demos/dock-host-playground.js +59 -0
  126. package/dist/collection/assets/js/demos/documentation-demo.js +34 -0
  127. package/dist/collection/assets/js/demos/drag-drop-demo.js +132 -0
  128. package/dist/collection/assets/js/demos/dropdown-demo.js +1410 -0
  129. package/dist/collection/assets/js/demos/dropdown-subtitle-demo.js +18 -0
  130. package/dist/collection/assets/js/demos/empty-state-demo.js +580 -0
  131. package/dist/collection/assets/js/demos/fab-demo.js +374 -0
  132. package/dist/collection/assets/js/demos/file-upload-demo.js +171 -0
  133. package/dist/collection/assets/js/demos/home-components.js +750 -0
  134. package/dist/collection/assets/js/demos/home-demo.js +441 -0
  135. package/dist/collection/assets/js/demos/horizontal-nav-demo.js +277 -0
  136. package/dist/collection/assets/js/demos/icon-demo.js +380 -0
  137. package/dist/collection/assets/js/demos/input-demo.js +1932 -0
  138. package/dist/collection/assets/js/demos/knob-demo.js +570 -0
  139. package/dist/collection/assets/js/demos/layout-manager-demo.js +918 -0
  140. package/dist/collection/assets/js/demos/list-demo.js +1402 -0
  141. package/dist/collection/assets/js/demos/loader-demo.js +453 -0
  142. package/dist/collection/assets/js/demos/meter-group-demo.js +499 -0
  143. package/dist/collection/assets/js/demos/multi-level-context-menu-demo.js +924 -0
  144. package/dist/collection/assets/js/demos/my-profile-demo.js +237 -0
  145. package/dist/collection/assets/js/demos/nav-bar-demo.js +187 -0
  146. package/dist/collection/assets/js/demos/number-input-demo.js +242 -0
  147. package/dist/collection/assets/js/demos/overview-demo.js +11 -0
  148. package/dist/collection/assets/js/demos/pagination-demo.js +1042 -0
  149. package/dist/collection/assets/js/demos/panel-demo.js +789 -0
  150. package/dist/collection/assets/js/demos/pattern-input-demo.js +241 -0
  151. package/dist/collection/assets/js/demos/popover-demo.js +882 -0
  152. package/dist/collection/assets/js/demos/progress-demo.js +462 -0
  153. package/dist/collection/assets/js/demos/radio-demo.js +413 -0
  154. package/dist/collection/assets/js/demos/range-slider-demo.js +1217 -0
  155. package/dist/collection/assets/js/demos/rating-demo.js +383 -0
  156. package/dist/collection/assets/js/demos/scroll-top-demo.js +353 -0
  157. package/dist/collection/assets/js/demos/skeleton-demo.js +490 -0
  158. package/dist/collection/assets/js/demos/skeleton-performance-demo.js +26 -0
  159. package/dist/collection/assets/js/demos/smart-dialog-demo.js +552 -0
  160. package/dist/collection/assets/js/demos/smart-menu-demo.js +375 -0
  161. package/dist/collection/assets/js/demos/smart-stepper-demo.js +50 -0
  162. package/dist/collection/assets/js/demos/snackbar-demo.js +1040 -0
  163. package/dist/collection/assets/js/demos/speed-dial-demo.js +764 -0
  164. package/dist/collection/assets/js/demos/speedometer-demo.js +425 -0
  165. package/dist/collection/assets/js/demos/split-button-demo.js +201 -0
  166. package/dist/collection/assets/js/demos/stack-demo.js +228 -0
  167. package/dist/collection/assets/js/demos/stepper-demo.js +798 -0
  168. package/dist/collection/assets/js/demos/switch-demo.js +849 -0
  169. package/dist/collection/assets/js/demos/tabs-demo.js +1032 -0
  170. package/dist/collection/assets/js/demos/tag-demo.js +842 -0
  171. package/dist/collection/assets/js/demos/theme-selector-demo.js +466 -0
  172. package/dist/collection/assets/js/demos/timeline-demo.js +365 -0
  173. package/dist/collection/assets/js/demos/timeline-playground.js +59 -0
  174. package/dist/collection/assets/js/demos/timer-demo.js +313 -0
  175. package/dist/collection/assets/js/demos/toolbar-demo.js +643 -0
  176. package/dist/collection/assets/js/demos/tooltip-demo.js +730 -0
  177. package/dist/collection/assets/js/demos/top-bar-demo.js +417 -0
  178. package/dist/collection/assets/js/demos/transfer-list-demo.js +555 -0
  179. package/dist/collection/assets/js/demos/tree-demo.js +693 -0
  180. package/dist/collection/assets/js/demos/workspace-manager-demo.js +241 -0
  181. package/dist/collection/assets/js/index-boot.js +104 -0
  182. package/dist/collection/assets/js/nav-bar-demo.js +20 -0
  183. package/dist/collection/assets/js/nav-bar-init.js +119 -0
  184. package/dist/collection/assets/js/utils/layout-loader.js +80 -0
  185. package/dist/collection/collection-manifest.json +113 -0
  186. package/dist/collection/components/accordion/accordion.css +2090 -0
  187. package/dist/collection/components/accordion/accordion.js +2955 -0
  188. package/dist/collection/components/accordion/types.js +1 -0
  189. package/dist/collection/components/advanced-data-table/advanced-data-table.css +2606 -0
  190. package/dist/collection/components/advanced-data-table/advanced-data-table.js +5394 -0
  191. package/dist/collection/components/advanced-data-table/types.js +1 -0
  192. package/dist/collection/components/anchor/anchor.css +395 -0
  193. package/dist/collection/components/anchor/anchor.js +1404 -0
  194. package/dist/collection/components/anchor/types.js +1 -0
  195. package/dist/collection/components/animate-on-scroll/animate-on-scroll.css +804 -0
  196. package/dist/collection/components/animate-on-scroll/animate-on-scroll.js +696 -0
  197. package/dist/collection/components/aside-panel/aside-panel.css +472 -0
  198. package/dist/collection/components/aside-panel/aside-panel.js +1697 -0
  199. package/dist/collection/components/avatar/avatar.css +696 -0
  200. package/dist/collection/components/avatar/avatar.js +2007 -0
  201. package/dist/collection/components/avatar/types.js +1 -0
  202. package/dist/collection/components/avatar-group/avatar-group.css +253 -0
  203. package/dist/collection/components/avatar-group/avatar-group.js +405 -0
  204. package/dist/collection/components/avatar-group/types.js +1 -0
  205. package/dist/collection/components/badge/badge.css +580 -0
  206. package/dist/collection/components/badge/badge.js +723 -0
  207. package/dist/collection/components/badge/types.js +1 -0
  208. package/dist/collection/components/breadcrumb/breadcrumb-item.js +231 -0
  209. package/dist/collection/components/breadcrumb/breadcrumb.css +313 -0
  210. package/dist/collection/components/breadcrumb/breadcrumb.js +510 -0
  211. package/dist/collection/components/breadcrumb/types.js +1 -0
  212. package/dist/collection/components/button/button.css +1862 -0
  213. package/dist/collection/components/button/button.js +1380 -0
  214. package/dist/collection/components/button/types.js +1 -0
  215. package/dist/collection/components/button-toggle/button-toggle.css +97 -0
  216. package/dist/collection/components/button-toggle/button-toggle.js +620 -0
  217. package/dist/collection/components/button-toggle-group/button-toggle-group.css +401 -0
  218. package/dist/collection/components/button-toggle-group/button-toggle-group.js +1572 -0
  219. package/dist/collection/components/button-toggle-group/types.js +1 -0
  220. package/dist/collection/components/callout-banner/callout-banner.css +684 -0
  221. package/dist/collection/components/callout-banner/callout-banner.js +1076 -0
  222. package/dist/collection/components/callout-banner/types.js +1 -0
  223. package/dist/collection/components/card/card.css +663 -0
  224. package/dist/collection/components/card/card.js +1697 -0
  225. package/dist/collection/components/card/types.js +1 -0
  226. package/dist/collection/components/carousel/carousel.css +549 -0
  227. package/dist/collection/components/carousel/carousel.js +1512 -0
  228. package/dist/collection/components/carousel/types.js +1 -0
  229. package/dist/collection/components/checkbox/checkbox.css +863 -0
  230. package/dist/collection/components/checkbox/checkbox.js +1201 -0
  231. package/dist/collection/components/checkbox/types.js +1 -0
  232. package/dist/collection/components/checkbox-group/checkbox-group.css +223 -0
  233. package/dist/collection/components/checkbox-group/checkbox-group.js +1001 -0
  234. package/dist/collection/components/checkbox-group/types.js +1 -0
  235. package/dist/collection/components/code-editor/code-editor.css +1081 -0
  236. package/dist/collection/components/code-editor/code-editor.js +1211 -0
  237. package/dist/collection/components/code-editor/types.js +1 -0
  238. package/dist/collection/components/code-preview/types.js +1 -0
  239. package/dist/collection/components/code-preview/ui-code-preview.css +209 -0
  240. package/dist/collection/components/code-preview/ui-code-preview.js +548 -0
  241. package/dist/collection/components/color-controller/color-controller.css +108 -0
  242. package/dist/collection/components/color-controller/color-controller.js +224 -0
  243. package/dist/collection/components/color-picker/color-picker.css +323 -0
  244. package/dist/collection/components/color-picker/color-picker.js +1139 -0
  245. package/dist/collection/components/color-picker/types.js +1 -0
  246. package/dist/collection/components/command-palette/command-palette.css +260 -0
  247. package/dist/collection/components/command-palette/command-palette.js +429 -0
  248. package/dist/collection/components/command-palette/types.js +1 -0
  249. package/dist/collection/components/context-menu/context-menu.css +388 -0
  250. package/dist/collection/components/context-menu/context-menu.js +1412 -0
  251. package/dist/collection/components/context-menu/types.js +1 -0
  252. package/dist/collection/components/dialog-box/dialog-box.css +1261 -0
  253. package/dist/collection/components/dialog-box/dialog-box.js +4314 -0
  254. package/dist/collection/components/dialog-box/dialog-tray.css +268 -0
  255. package/dist/collection/components/dialog-box/types.js +1 -0
  256. package/dist/collection/components/dialog-content/dialog-content.css +83 -0
  257. package/dist/collection/components/dialog-content/dialog-content.js +96 -0
  258. package/dist/collection/components/dialog-footer/dialog-footer.css +89 -0
  259. package/dist/collection/components/dialog-footer/dialog-footer.js +94 -0
  260. package/dist/collection/components/dialog-footer/types.js +1 -0
  261. package/dist/collection/components/dialog-header/dialog-header.css +203 -0
  262. package/dist/collection/components/dialog-header/dialog-header.js +630 -0
  263. package/dist/collection/components/dialog-header/types.js +1 -0
  264. package/dist/collection/components/divider/divider.css +948 -0
  265. package/dist/collection/components/divider/divider.js +1612 -0
  266. package/dist/collection/components/divider/types.js +1 -0
  267. package/dist/collection/components/dock/dock.css +348 -0
  268. package/dist/collection/components/dock/dock.js +464 -0
  269. package/dist/collection/components/dock/types.js +1 -0
  270. package/dist/collection/components/dock-host/index.js +1 -0
  271. package/dist/collection/components/dock-host/types.js +1 -0
  272. package/dist/collection/components/dock-host/ui-dock-host.css +155 -0
  273. package/dist/collection/components/dock-host/ui-dock-host.js +226 -0
  274. package/dist/collection/components/drag-drop/drag-drop.css +103 -0
  275. package/dist/collection/components/drag-drop/drag-drop.js +385 -0
  276. package/dist/collection/components/drag-drop/types.js +1 -0
  277. package/dist/collection/components/dropdown/dropdown.css +1142 -0
  278. package/dist/collection/components/dropdown/dropdown.js +2033 -0
  279. package/dist/collection/components/dropdown/types.js +1 -0
  280. package/dist/collection/components/empty-state/empty-state.css +712 -0
  281. package/dist/collection/components/empty-state/empty-state.js +1256 -0
  282. package/dist/collection/components/empty-state/types.js +1 -0
  283. package/dist/collection/components/fab/fab.css +601 -0
  284. package/dist/collection/components/fab/fab.js +1124 -0
  285. package/dist/collection/components/fab-item/fab-item.css +107 -0
  286. package/dist/collection/components/fab-item/fab-item.js +177 -0
  287. package/dist/collection/components/fab-item/types.js +1 -0
  288. package/dist/collection/components/file-upload/file-upload.css +243 -0
  289. package/dist/collection/components/file-upload/file-upload.js +1022 -0
  290. package/dist/collection/components/file-upload/types.js +1 -0
  291. package/dist/collection/components/horizontal-nav/horizontal-nav.css +394 -0
  292. package/dist/collection/components/horizontal-nav/horizontal-nav.js +375 -0
  293. package/dist/collection/components/icon/icon.css +113 -0
  294. package/dist/collection/components/icon/icon.js +583 -0
  295. package/dist/collection/components/image-button/image-button.css +154 -0
  296. package/dist/collection/components/image-button/image-button.js +310 -0
  297. package/dist/collection/components/image-button/types.js +1 -0
  298. package/dist/collection/components/input/input.css +1544 -0
  299. package/dist/collection/components/input/input.js +3690 -0
  300. package/dist/collection/components/input/types.js +1 -0
  301. package/dist/collection/components/input-pair/input-pair.css +72 -0
  302. package/dist/collection/components/input-pair/input-pair.js +309 -0
  303. package/dist/collection/components/knob/knob.css +162 -0
  304. package/dist/collection/components/knob/knob.js +986 -0
  305. package/dist/collection/components/knob/types.js +1 -0
  306. package/dist/collection/components/layout-manager/layout-manager.css +41 -0
  307. package/dist/collection/components/layout-manager/layout-manager.js +525 -0
  308. package/dist/collection/components/layout-manager/lm-container/lm-container.css +117 -0
  309. package/dist/collection/components/layout-manager/lm-container/lm-container.js +110 -0
  310. package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.css +0 -0
  311. package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.js +49 -0
  312. package/dist/collection/components/layout-manager/lm-panel/lm-panel.css +97 -0
  313. package/dist/collection/components/layout-manager/lm-panel/lm-panel.js +58 -0
  314. package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.css +57 -0
  315. package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.js +120 -0
  316. package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.css +149 -0
  317. package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.js +130 -0
  318. package/dist/collection/components/layout-manager/types.js +1 -0
  319. package/dist/collection/components/library/category-section.css +147 -0
  320. package/dist/collection/components/library/category-section.js +139 -0
  321. package/dist/collection/components/library/data.js +74 -0
  322. package/dist/collection/components/library/library-card.css +181 -0
  323. package/dist/collection/components/library/library-card.js +203 -0
  324. package/dist/collection/components/library/library.css +358 -0
  325. package/dist/collection/components/library/library.js +91 -0
  326. package/dist/collection/components/list/list.css +1029 -0
  327. package/dist/collection/components/list/list.js +2167 -0
  328. package/dist/collection/components/list-group/list-group.css +275 -0
  329. package/dist/collection/components/list-group/list-group.js +356 -0
  330. package/dist/collection/components/list-item/list-item.css +1491 -0
  331. package/dist/collection/components/list-item/list-item.js +2184 -0
  332. package/dist/collection/components/masonry/masonry.css +414 -0
  333. package/dist/collection/components/masonry/masonry.js +1104 -0
  334. package/dist/collection/components/masonry/types.js +1 -0
  335. package/dist/collection/components/meter-group/meter-group.css +184 -0
  336. package/dist/collection/components/meter-group/meter-group.js +471 -0
  337. package/dist/collection/components/meter-group/types.js +1 -0
  338. package/dist/collection/components/my-component/my-component.css +27 -0
  339. package/dist/collection/components/my-component/my-component.js +95 -0
  340. package/dist/collection/components/my-step/my-step.css +25 -0
  341. package/dist/collection/components/my-step/my-step.js +237 -0
  342. package/dist/collection/components/nav-bar/nav-bar.css +448 -0
  343. package/dist/collection/components/nav-bar/nav-bar.js +608 -0
  344. package/dist/collection/components/number-input/number-input.css +200 -0
  345. package/dist/collection/components/number-input/number-input.js +695 -0
  346. package/dist/collection/components/otp-input/otp-input.css +243 -0
  347. package/dist/collection/components/otp-input/otp-input.js +761 -0
  348. package/dist/collection/components/otp-input/types.js +1 -0
  349. package/dist/collection/components/pagination/pagination.css +1399 -0
  350. package/dist/collection/components/pagination/pagination.js +2033 -0
  351. package/dist/collection/components/pagination/types.js +1 -0
  352. package/dist/collection/components/panel/panel.css +837 -0
  353. package/dist/collection/components/panel/panel.js +1842 -0
  354. package/dist/collection/components/panel/types.js +1 -0
  355. package/dist/collection/components/pattern-input/pattern-input.css +252 -0
  356. package/dist/collection/components/pattern-input/pattern-input.js +788 -0
  357. package/dist/collection/components/popover/popover.css +399 -0
  358. package/dist/collection/components/popover/popover.js +1449 -0
  359. package/dist/collection/components/popover/types.js +1 -0
  360. package/dist/collection/components/progress/progress.css +588 -0
  361. package/dist/collection/components/progress/progress.js +1414 -0
  362. package/dist/collection/components/progress/types.js +1 -0
  363. package/dist/collection/components/radio/radio.css +773 -0
  364. package/dist/collection/components/radio/radio.js +1059 -0
  365. package/dist/collection/components/radio/types.js +1 -0
  366. package/dist/collection/components/radio-group/radio-group.css +202 -0
  367. package/dist/collection/components/radio-group/radio-group.js +903 -0
  368. package/dist/collection/components/radio-group/types.js +1 -0
  369. package/dist/collection/components/range-slider/range-slider.css +602 -0
  370. package/dist/collection/components/range-slider/range-slider.js +1369 -0
  371. package/dist/collection/components/range-slider/types.js +1 -0
  372. package/dist/collection/components/rating/rating.css +768 -0
  373. package/dist/collection/components/rating/rating.js +1062 -0
  374. package/dist/collection/components/rating/types.js +1 -0
  375. package/dist/collection/components/resizable-panel/resizable-panel.css +247 -0
  376. package/dist/collection/components/resizable-panel/resizable-panel.js +874 -0
  377. package/dist/collection/components/resizable-panel/types.js +1 -0
  378. package/dist/collection/components/scroll-top/scroll-top.css +397 -0
  379. package/dist/collection/components/scroll-top/scroll-top.js +1178 -0
  380. package/dist/collection/components/scroll-top/types.js +1 -0
  381. package/dist/collection/components/skeleton/skeleton-loader.css +429 -0
  382. package/dist/collection/components/skeleton/skeleton-loader.js +1193 -0
  383. package/dist/collection/components/skeleton/types.js +1 -0
  384. package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.css +357 -0
  385. package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.js +1190 -0
  386. package/dist/collection/components/smart-location-dropdown/types.js +1 -0
  387. package/dist/collection/components/smart-menu/menu-item.interface.js +1 -0
  388. package/dist/collection/components/smart-menu/smart-menu.css +119 -0
  389. package/dist/collection/components/smart-menu/smart-menu.js +544 -0
  390. package/dist/collection/components/smart-stepper/smart-step.css +213 -0
  391. package/dist/collection/components/smart-stepper/smart-step.js +170 -0
  392. package/dist/collection/components/smart-stepper/smart-stepper.css +146 -0
  393. package/dist/collection/components/smart-stepper/smart-stepper.js +338 -0
  394. package/dist/collection/components/snackbar/snackbar.css +1480 -0
  395. package/dist/collection/components/snackbar/snackbar.js +1759 -0
  396. package/dist/collection/components/snackbar/types.js +1 -0
  397. package/dist/collection/components/speed-dial/speed-dial.css +478 -0
  398. package/dist/collection/components/speed-dial/speed-dial.js +1183 -0
  399. package/dist/collection/components/speed-dial/types.js +1 -0
  400. package/dist/collection/components/speedometer/speedometer.css +95 -0
  401. package/dist/collection/components/speedometer/speedometer.js +868 -0
  402. package/dist/collection/components/speedometer/types.js +1 -0
  403. package/dist/collection/components/splitter/splitter.css +269 -0
  404. package/dist/collection/components/splitter/splitter.js +713 -0
  405. package/dist/collection/components/splitter/types.js +1 -0
  406. package/dist/collection/components/stack/stack.css +269 -0
  407. package/dist/collection/components/stack/stack.js +297 -0
  408. package/dist/collection/components/stack/types.js +1 -0
  409. package/dist/collection/components/step/step.css +77 -0
  410. package/dist/collection/components/step/step.js +214 -0
  411. package/dist/collection/components/step/types.js +1 -0
  412. package/dist/collection/components/stepper/stepper.css +1079 -0
  413. package/dist/collection/components/stepper/stepper.js +1850 -0
  414. package/dist/collection/components/stepper/types.js +1 -0
  415. package/dist/collection/components/switch/switch.css +1099 -0
  416. package/dist/collection/components/switch/switch.js +1578 -0
  417. package/dist/collection/components/tabs/tabs.css +1355 -0
  418. package/dist/collection/components/tabs/tabs.js +1474 -0
  419. package/dist/collection/components/tabs/types.js +1 -0
  420. package/dist/collection/components/tag/tag.css +893 -0
  421. package/dist/collection/components/tag/tag.js +1119 -0
  422. package/dist/collection/components/tag/types.js +1 -0
  423. package/dist/collection/components/tag-group/tag-group.css +144 -0
  424. package/dist/collection/components/tag-group/tag-group.js +887 -0
  425. package/dist/collection/components/tag-group/types.js +1 -0
  426. package/dist/collection/components/timeline/timeline.css +1850 -0
  427. package/dist/collection/components/timeline/timeline.js +889 -0
  428. package/dist/collection/components/timeline/types.js +1 -0
  429. package/dist/collection/components/timeline/ui-timeline.stories.js +19 -0
  430. package/dist/collection/components/timeline-item/timeline-item.css +75 -0
  431. package/dist/collection/components/timeline-item/timeline-item.js +91 -0
  432. package/dist/collection/components/timer/timer.css +367 -0
  433. package/dist/collection/components/timer/timer.js +1292 -0
  434. package/dist/collection/components/timer/types.js +1 -0
  435. package/dist/collection/components/timer/ui-timer.stories.js +19 -0
  436. package/dist/collection/components/toggle-group/toggle-group.css +361 -0
  437. package/dist/collection/components/toggle-group/toggle-group.js +1212 -0
  438. package/dist/collection/components/toggle-group/types.js +1 -0
  439. package/dist/collection/components/toolbar/toolbar-types.js +1 -0
  440. package/dist/collection/components/toolbar/toolbar.css +1186 -0
  441. package/dist/collection/components/toolbar/toolbar.js +1635 -0
  442. package/dist/collection/components/tooltip/tooltip.css +609 -0
  443. package/dist/collection/components/tooltip/tooltip.js +1882 -0
  444. package/dist/collection/components/tooltip/types.js +1 -0
  445. package/dist/collection/components/top-bar/top-bar.css +274 -0
  446. package/dist/collection/components/top-bar/top-bar.js +383 -0
  447. package/dist/collection/components/transfer-list/transfer-list.css +520 -0
  448. package/dist/collection/components/transfer-list/transfer-list.js +1225 -0
  449. package/dist/collection/components/transfer-list/types.js +1 -0
  450. package/dist/collection/components/tree/tree.css +1197 -0
  451. package/dist/collection/components/tree/tree.js +2509 -0
  452. package/dist/collection/components/tree/types.js +1 -0
  453. package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.css +830 -0
  454. package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.js +1231 -0
  455. package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-types.js +1 -0
  456. package/dist/collection/components/ui-navigation-bar/navigation-item.css +679 -0
  457. package/dist/collection/components/ui-navigation-bar/navigation-item.js +385 -0
  458. package/dist/collection/components/ui-navigation-bar/navigation-types.js +1 -0
  459. package/dist/collection/components/workspace-manager/types.js +1 -0
  460. package/dist/collection/components/workspace-manager/workspace-manager.css +1094 -0
  461. package/dist/collection/components/workspace-manager/workspace-manager.js +1914 -0
  462. package/dist/collection/components.js +51 -0
  463. package/dist/collection/index.js +108 -0
  464. package/dist/collection/service/drag-manager.js +23 -0
  465. package/dist/collection/service/event-bus.js +19 -0
  466. package/dist/collection/service/serialization.js +8 -0
  467. package/dist/collection/service/state-engine.js +247 -0
  468. package/dist/collection/service/theme-switcher.js +146 -0
  469. package/dist/collection/stories/Button.stories.js +15 -0
  470. package/dist/collection/types/common.js +1 -0
  471. package/dist/collection/types/index.js +4 -0
  472. package/dist/collection/utils/aria-live.js +60 -0
  473. package/dist/collection/utils/component-size.js +25 -0
  474. package/dist/collection/utils/dom.js +260 -0
  475. package/dist/collection/utils/focus-trap.js +135 -0
  476. package/dist/collection/utils/security.js +10 -0
  477. package/dist/collection/utils/test/setup-component-test-env.js +92 -0
  478. package/dist/collection/utils/utils.js +21 -0
  479. package/dist/collection/utils/validation.js +74 -0
  480. package/dist/components/avatar-group.js +1 -0
  481. package/dist/components/avatar.js +1 -0
  482. package/dist/components/badge.js +1 -0
  483. package/dist/components/button-toggle.js +1 -0
  484. package/dist/components/category-section.d.ts +11 -0
  485. package/dist/components/category-section.js +1 -0
  486. package/dist/components/category-section2.js +1 -0
  487. package/dist/components/checkbox.js +1 -0
  488. package/dist/components/context-menu.js +1 -0
  489. package/dist/components/dialog-footer.js +1 -0
  490. package/dist/components/dialog-header.js +1 -0
  491. package/dist/components/dom.js +1 -0
  492. package/dist/components/dropdown.js +1 -0
  493. package/dist/components/event-bus.js +1 -0
  494. package/dist/components/focus-trap.js +1 -0
  495. package/dist/components/icon.js +2 -0
  496. package/dist/components/index.d.ts +35 -0
  497. package/dist/components/index.js +1 -0
  498. package/dist/components/input.js +1 -0
  499. package/dist/components/layout-manager.d.ts +11 -0
  500. package/dist/components/layout-manager.js +1 -0
  501. package/dist/components/library-card.d.ts +11 -0
  502. package/dist/components/library-card.js +1 -0
  503. package/dist/components/library-card2.js +1 -0
  504. package/dist/components/list-group.js +1 -0
  505. package/dist/components/list-item.js +1 -0
  506. package/dist/components/lm-container.d.ts +11 -0
  507. package/dist/components/lm-container.js +1 -0
  508. package/dist/components/lm-container2.js +1 -0
  509. package/dist/components/lm-floating-window.d.ts +11 -0
  510. package/dist/components/lm-floating-window.js +1 -0
  511. package/dist/components/lm-floating-window2.js +1 -0
  512. package/dist/components/lm-panel.d.ts +11 -0
  513. package/dist/components/lm-panel.js +1 -0
  514. package/dist/components/lm-panel2.js +1 -0
  515. package/dist/components/lm-splitter.d.ts +11 -0
  516. package/dist/components/lm-splitter.js +1 -0
  517. package/dist/components/lm-splitter2.js +1 -0
  518. package/dist/components/lm-tabs.d.ts +11 -0
  519. package/dist/components/lm-tabs.js +1 -0
  520. package/dist/components/lm-tabs2.js +1 -0
  521. package/dist/components/my-component.d.ts +11 -0
  522. package/dist/components/my-component.js +1 -0
  523. package/dist/components/my-step.d.ts +11 -0
  524. package/dist/components/my-step.js +1 -0
  525. package/dist/components/nav-bar.d.ts +11 -0
  526. package/dist/components/nav-bar.js +1 -0
  527. package/dist/components/pagination.js +1 -0
  528. package/dist/components/radio.js +1 -0
  529. package/dist/components/range-slider.js +1 -0
  530. package/dist/components/rating.js +1 -0
  531. package/dist/components/resizable-panel.js +1 -0
  532. package/dist/components/skeleton-loader.js +1 -0
  533. package/dist/components/smart-step.d.ts +11 -0
  534. package/dist/components/smart-step.js +1 -0
  535. package/dist/components/stack.js +1 -0
  536. package/dist/components/switch.js +1 -0
  537. package/dist/components/tag-group.js +1 -0
  538. package/dist/components/tag.js +1 -0
  539. package/dist/components/timeline-item.d.ts +11 -0
  540. package/dist/components/timeline-item.js +1 -0
  541. package/dist/components/toggle-group.js +1 -0
  542. package/dist/components/tooltip.js +1 -0
  543. package/dist/components/ui-accordion.d.ts +11 -0
  544. package/dist/components/ui-accordion.js +1 -0
  545. package/dist/components/ui-advanced-data-table.d.ts +11 -0
  546. package/dist/components/ui-advanced-data-table.js +1 -0
  547. package/dist/components/ui-anchor.d.ts +11 -0
  548. package/dist/components/ui-anchor.js +1 -0
  549. package/dist/components/ui-animate-on-scroll.d.ts +11 -0
  550. package/dist/components/ui-animate-on-scroll.js +1 -0
  551. package/dist/components/ui-aside-panel.d.ts +11 -0
  552. package/dist/components/ui-aside-panel.js +1 -0
  553. package/dist/components/ui-avatar-group.d.ts +11 -0
  554. package/dist/components/ui-avatar-group.js +1 -0
  555. package/dist/components/ui-avatar.d.ts +11 -0
  556. package/dist/components/ui-avatar.js +1 -0
  557. package/dist/components/ui-badge.d.ts +11 -0
  558. package/dist/components/ui-badge.js +1 -0
  559. package/dist/components/ui-breadcrumb-item.d.ts +11 -0
  560. package/dist/components/ui-breadcrumb-item.js +1 -0
  561. package/dist/components/ui-breadcrumb.d.ts +11 -0
  562. package/dist/components/ui-breadcrumb.js +1 -0
  563. package/dist/components/ui-button-toggle-group.d.ts +11 -0
  564. package/dist/components/ui-button-toggle-group.js +1 -0
  565. package/dist/components/ui-button-toggle.d.ts +11 -0
  566. package/dist/components/ui-button-toggle.js +1 -0
  567. package/dist/components/ui-button.d.ts +11 -0
  568. package/dist/components/ui-button.js +1 -0
  569. package/dist/components/ui-callout-banner.d.ts +11 -0
  570. package/dist/components/ui-callout-banner.js +1 -0
  571. package/dist/components/ui-card.d.ts +11 -0
  572. package/dist/components/ui-card.js +1 -0
  573. package/dist/components/ui-carousel.d.ts +11 -0
  574. package/dist/components/ui-carousel.js +1 -0
  575. package/dist/components/ui-checkbox-group.d.ts +11 -0
  576. package/dist/components/ui-checkbox-group.js +1 -0
  577. package/dist/components/ui-checkbox.d.ts +11 -0
  578. package/dist/components/ui-checkbox.js +1 -0
  579. package/dist/components/ui-code-editor.d.ts +11 -0
  580. package/dist/components/ui-code-editor.js +1 -0
  581. package/dist/components/ui-code-preview.d.ts +11 -0
  582. package/dist/components/ui-code-preview.js +1 -0
  583. package/dist/components/ui-color-controller.d.ts +11 -0
  584. package/dist/components/ui-color-controller.js +1 -0
  585. package/dist/components/ui-color-picker.d.ts +11 -0
  586. package/dist/components/ui-color-picker.js +1 -0
  587. package/dist/components/ui-command-palette.d.ts +11 -0
  588. package/dist/components/ui-command-palette.js +1 -0
  589. package/dist/components/ui-context-menu.d.ts +11 -0
  590. package/dist/components/ui-context-menu.js +1 -0
  591. package/dist/components/ui-dialog-box.d.ts +11 -0
  592. package/dist/components/ui-dialog-box.js +1 -0
  593. package/dist/components/ui-dialog-content.d.ts +11 -0
  594. package/dist/components/ui-dialog-content.js +1 -0
  595. package/dist/components/ui-dialog-footer.d.ts +11 -0
  596. package/dist/components/ui-dialog-footer.js +1 -0
  597. package/dist/components/ui-dialog-header.d.ts +11 -0
  598. package/dist/components/ui-dialog-header.js +1 -0
  599. package/dist/components/ui-divider.d.ts +11 -0
  600. package/dist/components/ui-divider.js +1 -0
  601. package/dist/components/ui-dock-host.d.ts +11 -0
  602. package/dist/components/ui-dock-host.js +1 -0
  603. package/dist/components/ui-dock.d.ts +11 -0
  604. package/dist/components/ui-dock.js +1 -0
  605. package/dist/components/ui-drag-drop.d.ts +11 -0
  606. package/dist/components/ui-drag-drop.js +1 -0
  607. package/dist/components/ui-dropdown.d.ts +11 -0
  608. package/dist/components/ui-dropdown.js +1 -0
  609. package/dist/components/ui-empty-state.d.ts +11 -0
  610. package/dist/components/ui-empty-state.js +1 -0
  611. package/dist/components/ui-fab-item.d.ts +11 -0
  612. package/dist/components/ui-fab-item.js +1 -0
  613. package/dist/components/ui-fab.d.ts +11 -0
  614. package/dist/components/ui-fab.js +1 -0
  615. package/dist/components/ui-file-upload.d.ts +11 -0
  616. package/dist/components/ui-file-upload.js +1 -0
  617. package/dist/components/ui-horizontal-nav.d.ts +11 -0
  618. package/dist/components/ui-horizontal-nav.js +1 -0
  619. package/dist/components/ui-icon.d.ts +11 -0
  620. package/dist/components/ui-icon.js +1 -0
  621. package/dist/components/ui-image-button.d.ts +11 -0
  622. package/dist/components/ui-image-button.js +1 -0
  623. package/dist/components/ui-input-pair.d.ts +11 -0
  624. package/dist/components/ui-input-pair.js +1 -0
  625. package/dist/components/ui-input.d.ts +11 -0
  626. package/dist/components/ui-input.js +1 -0
  627. package/dist/components/ui-knob.d.ts +11 -0
  628. package/dist/components/ui-knob.js +1 -0
  629. package/dist/components/ui-library.d.ts +11 -0
  630. package/dist/components/ui-library.js +1 -0
  631. package/dist/components/ui-list-group.d.ts +11 -0
  632. package/dist/components/ui-list-group.js +1 -0
  633. package/dist/components/ui-list-item.d.ts +11 -0
  634. package/dist/components/ui-list-item.js +1 -0
  635. package/dist/components/ui-list.d.ts +11 -0
  636. package/dist/components/ui-list.js +1 -0
  637. package/dist/components/ui-masonry.d.ts +11 -0
  638. package/dist/components/ui-masonry.js +1 -0
  639. package/dist/components/ui-meter-group.d.ts +11 -0
  640. package/dist/components/ui-meter-group.js +1 -0
  641. package/dist/components/ui-navigation-bar.d.ts +11 -0
  642. package/dist/components/ui-navigation-bar.js +1 -0
  643. package/dist/components/ui-navigation-item.d.ts +11 -0
  644. package/dist/components/ui-navigation-item.js +1 -0
  645. package/dist/components/ui-number-input.d.ts +11 -0
  646. package/dist/components/ui-number-input.js +1 -0
  647. package/dist/components/ui-otp-input.d.ts +11 -0
  648. package/dist/components/ui-otp-input.js +1 -0
  649. package/dist/components/ui-pagination.d.ts +11 -0
  650. package/dist/components/ui-pagination.js +1 -0
  651. package/dist/components/ui-panel.d.ts +11 -0
  652. package/dist/components/ui-panel.js +1 -0
  653. package/dist/components/ui-pattern-input.d.ts +11 -0
  654. package/dist/components/ui-pattern-input.js +1 -0
  655. package/dist/components/ui-popover.d.ts +11 -0
  656. package/dist/components/ui-popover.js +1 -0
  657. package/dist/components/ui-progress.d.ts +11 -0
  658. package/dist/components/ui-progress.js +1 -0
  659. package/dist/components/ui-radio-group.d.ts +11 -0
  660. package/dist/components/ui-radio-group.js +1 -0
  661. package/dist/components/ui-radio.d.ts +11 -0
  662. package/dist/components/ui-radio.js +1 -0
  663. package/dist/components/ui-range-slider.d.ts +11 -0
  664. package/dist/components/ui-range-slider.js +1 -0
  665. package/dist/components/ui-rating.d.ts +11 -0
  666. package/dist/components/ui-rating.js +1 -0
  667. package/dist/components/ui-resizable-panel.d.ts +11 -0
  668. package/dist/components/ui-resizable-panel.js +1 -0
  669. package/dist/components/ui-scroll-top.d.ts +11 -0
  670. package/dist/components/ui-scroll-top.js +1 -0
  671. package/dist/components/ui-skeleton.d.ts +11 -0
  672. package/dist/components/ui-skeleton.js +1 -0
  673. package/dist/components/ui-smart-context-menu.d.ts +11 -0
  674. package/dist/components/ui-smart-context-menu.js +1 -0
  675. package/dist/components/ui-smart-location-dropdown.d.ts +11 -0
  676. package/dist/components/ui-smart-location-dropdown.js +1 -0
  677. package/dist/components/ui-smart-stepper.d.ts +11 -0
  678. package/dist/components/ui-smart-stepper.js +1 -0
  679. package/dist/components/ui-snackbar.d.ts +11 -0
  680. package/dist/components/ui-snackbar.js +1 -0
  681. package/dist/components/ui-speed-dial.d.ts +11 -0
  682. package/dist/components/ui-speed-dial.js +1 -0
  683. package/dist/components/ui-speedometer.d.ts +11 -0
  684. package/dist/components/ui-speedometer.js +1 -0
  685. package/dist/components/ui-splitter.d.ts +11 -0
  686. package/dist/components/ui-splitter.js +1 -0
  687. package/dist/components/ui-stack.d.ts +11 -0
  688. package/dist/components/ui-stack.js +1 -0
  689. package/dist/components/ui-step.d.ts +11 -0
  690. package/dist/components/ui-step.js +1 -0
  691. package/dist/components/ui-stepper.d.ts +11 -0
  692. package/dist/components/ui-stepper.js +1 -0
  693. package/dist/components/ui-switch.d.ts +11 -0
  694. package/dist/components/ui-switch.js +1 -0
  695. package/dist/components/ui-tabs.d.ts +11 -0
  696. package/dist/components/ui-tabs.js +1 -0
  697. package/dist/components/ui-tag-group.d.ts +11 -0
  698. package/dist/components/ui-tag-group.js +1 -0
  699. package/dist/components/ui-tag.d.ts +11 -0
  700. package/dist/components/ui-tag.js +1 -0
  701. package/dist/components/ui-timeline.d.ts +11 -0
  702. package/dist/components/ui-timeline.js +1 -0
  703. package/dist/components/ui-timer.d.ts +11 -0
  704. package/dist/components/ui-timer.js +1 -0
  705. package/dist/components/ui-toggle-group.d.ts +11 -0
  706. package/dist/components/ui-toggle-group.js +1 -0
  707. package/dist/components/ui-toolbar.d.ts +11 -0
  708. package/dist/components/ui-toolbar.js +1 -0
  709. package/dist/components/ui-tooltip.d.ts +11 -0
  710. package/dist/components/ui-tooltip.js +1 -0
  711. package/dist/components/ui-top-bar.d.ts +11 -0
  712. package/dist/components/ui-top-bar.js +1 -0
  713. package/dist/components/ui-transfer-list.d.ts +11 -0
  714. package/dist/components/ui-transfer-list.js +1 -0
  715. package/dist/components/ui-tree.d.ts +11 -0
  716. package/dist/components/ui-tree.js +1 -0
  717. package/dist/components/ui-workspace-manager.d.ts +11 -0
  718. package/dist/components/ui-workspace-manager.js +1 -0
  719. package/dist/components/utils.js +1 -0
  720. package/dist/esm/category-section.entry.js +28 -0
  721. package/dist/esm/component-size-C7gf39HE.js +27 -0
  722. package/dist/esm/dom-BMFah5q3.js +262 -0
  723. package/dist/esm/event-bus-vwwmWKs9.js +21 -0
  724. package/dist/esm/exploration-project-tailwind.js +20 -0
  725. package/dist/esm/focus-trap-BSQ8klD4.js +137 -0
  726. package/dist/esm/index-DUsoYu9r.js +2264 -0
  727. package/dist/esm/index.js +256 -0
  728. package/dist/esm/layout-manager.entry.js +614 -0
  729. package/dist/esm/library-card.entry.js +61 -0
  730. package/dist/esm/lm-container_2.entry.js +76 -0
  731. package/dist/esm/lm-panel_3.entry.js +104 -0
  732. package/dist/esm/loader.js +10 -0
  733. package/dist/esm/my-component.entry.js +31 -0
  734. package/dist/esm/my-step.entry.js +27 -0
  735. package/dist/esm/nav-bar.entry.js +245 -0
  736. package/dist/esm/security-D2WzX6vR.js +1545 -0
  737. package/dist/esm/smart-step.entry.js +45 -0
  738. package/dist/esm/timeline-item.entry.js +27 -0
  739. package/dist/esm/ui-accordion_10.entry.js +5722 -0
  740. package/dist/esm/ui-advanced-data-table.entry.js +2682 -0
  741. package/dist/esm/ui-anchor.entry.js +556 -0
  742. package/dist/esm/ui-animate-on-scroll.entry.js +283 -0
  743. package/dist/esm/ui-aside-panel.entry.js +636 -0
  744. package/dist/esm/ui-avatar-group_3.entry.js +630 -0
  745. package/dist/esm/ui-breadcrumb-item.entry.js +54 -0
  746. package/dist/esm/ui-breadcrumb.entry.js +199 -0
  747. package/dist/esm/ui-callout-banner.entry.js +289 -0
  748. package/dist/esm/ui-card.entry.js +409 -0
  749. package/dist/esm/ui-carousel.entry.js +545 -0
  750. package/dist/esm/ui-checkbox-group.entry.js +328 -0
  751. package/dist/esm/ui-checkbox.entry.js +258 -0
  752. package/dist/esm/ui-code-editor.entry.js +959 -0
  753. package/dist/esm/ui-code-preview.entry.js +313 -0
  754. package/dist/esm/ui-color-controller.entry.js +148 -0
  755. package/dist/esm/ui-color-picker.entry.js +656 -0
  756. package/dist/esm/ui-command-palette.entry.js +176 -0
  757. package/dist/esm/ui-dialog-box.entry.js +1806 -0
  758. package/dist/esm/ui-dialog-content.entry.js +29 -0
  759. package/dist/esm/ui-dialog-footer_2.entry.js +190 -0
  760. package/dist/esm/ui-divider.entry.js +479 -0
  761. package/dist/esm/ui-dock-host.entry.js +126 -0
  762. package/dist/esm/ui-dock.entry.js +219 -0
  763. package/dist/esm/ui-drag-drop.entry.js +170 -0
  764. package/dist/esm/ui-dropdown_2.entry.js +1549 -0
  765. package/dist/esm/ui-empty-state.entry.js +396 -0
  766. package/dist/esm/ui-fab-item.entry.js +37 -0
  767. package/dist/esm/ui-fab.entry.js +275 -0
  768. package/dist/esm/ui-file-upload.entry.js +416 -0
  769. package/dist/esm/ui-horizontal-nav.entry.js +133 -0
  770. package/dist/esm/ui-image-button.entry.js +65 -0
  771. package/dist/esm/ui-input-pair.entry.js +42 -0
  772. package/dist/esm/ui-knob.entry.js +445 -0
  773. package/dist/esm/ui-library.entry.js +132 -0
  774. package/dist/esm/ui-list-group_2.entry.js +583 -0
  775. package/dist/esm/ui-list.entry.js +730 -0
  776. package/dist/esm/ui-masonry.entry.js +476 -0
  777. package/dist/esm/ui-meter-group.entry.js +171 -0
  778. package/dist/esm/ui-navigation-item.entry.js +102 -0
  779. package/dist/esm/ui-number-input.entry.js +189 -0
  780. package/dist/esm/ui-otp-input.entry.js +244 -0
  781. package/dist/esm/ui-pagination_3.entry.js +1617 -0
  782. package/dist/esm/ui-panel.entry.js +612 -0
  783. package/dist/esm/ui-pattern-input.entry.js +276 -0
  784. package/dist/esm/ui-popover.entry.js +515 -0
  785. package/dist/esm/ui-progress.entry.js +514 -0
  786. package/dist/esm/ui-radio-group.entry.js +203 -0
  787. package/dist/esm/ui-radio.entry.js +204 -0
  788. package/dist/esm/ui-range-slider.entry.js +635 -0
  789. package/dist/esm/ui-resizable-panel.entry.js +482 -0
  790. package/dist/esm/ui-scroll-top.entry.js +457 -0
  791. package/dist/esm/ui-smart-context-menu.entry.js +374 -0
  792. package/dist/esm/ui-smart-location-dropdown.entry.js +563 -0
  793. package/dist/esm/ui-smart-stepper.entry.js +135 -0
  794. package/dist/esm/ui-snackbar.entry.js +861 -0
  795. package/dist/esm/ui-speed-dial.entry.js +518 -0
  796. package/dist/esm/ui-speedometer.entry.js +426 -0
  797. package/dist/esm/ui-splitter.entry.js +280 -0
  798. package/dist/esm/ui-step.entry.js +28 -0
  799. package/dist/esm/ui-stepper.entry.js +638 -0
  800. package/dist/esm/ui-switch.entry.js +403 -0
  801. package/dist/esm/ui-tabs.entry.js +701 -0
  802. package/dist/esm/ui-tag.entry.js +297 -0
  803. package/dist/esm/ui-timeline.entry.js +265 -0
  804. package/dist/esm/ui-timer.entry.js +500 -0
  805. package/dist/esm/ui-toolbar.entry.js +617 -0
  806. package/dist/esm/ui-tooltip.entry.js +695 -0
  807. package/dist/esm/ui-top-bar.entry.js +119 -0
  808. package/dist/esm/ui-transfer-list.entry.js +590 -0
  809. package/dist/esm/ui-tree.entry.js +872 -0
  810. package/dist/esm/ui-workspace-manager.entry.js +1199 -0
  811. package/dist/esm/utils-Ck6jDuhz.js +23 -0
  812. package/dist/exploration-project-tailwind/exploration-project-tailwind.css +1 -0
  813. package/dist/exploration-project-tailwind/exploration-project-tailwind.esm.js +1 -0
  814. package/dist/exploration-project-tailwind/index.esm.js +1 -0
  815. package/dist/exploration-project-tailwind/p-01c7db7a.entry.js +1 -0
  816. package/dist/exploration-project-tailwind/p-049744f9.entry.js +1 -0
  817. package/dist/exploration-project-tailwind/p-06f0c679.entry.js +1 -0
  818. package/dist/exploration-project-tailwind/p-0b004861.entry.js +1 -0
  819. package/dist/exploration-project-tailwind/p-0d31c9e9.entry.js +1 -0
  820. package/dist/exploration-project-tailwind/p-148e81df.entry.js +1 -0
  821. package/dist/exploration-project-tailwind/p-200241f8.entry.js +1 -0
  822. package/dist/exploration-project-tailwind/p-287dbf09.entry.js +1 -0
  823. package/dist/exploration-project-tailwind/p-2d273118.entry.js +1 -0
  824. package/dist/exploration-project-tailwind/p-2f1aebb3.entry.js +1 -0
  825. package/dist/exploration-project-tailwind/p-2f961934.entry.js +1 -0
  826. package/dist/exploration-project-tailwind/p-35296877.entry.js +1 -0
  827. package/dist/exploration-project-tailwind/p-36861546.entry.js +1 -0
  828. package/dist/exploration-project-tailwind/p-3d3d48fd.entry.js +1 -0
  829. package/dist/exploration-project-tailwind/p-41cd6bf0.entry.js +1 -0
  830. package/dist/exploration-project-tailwind/p-45482d86.entry.js +1 -0
  831. package/dist/exploration-project-tailwind/p-46596a28.entry.js +1 -0
  832. package/dist/exploration-project-tailwind/p-46efdea3.entry.js +1 -0
  833. package/dist/exploration-project-tailwind/p-47e2a7ee.entry.js +1 -0
  834. package/dist/exploration-project-tailwind/p-4d73c143.entry.js +1 -0
  835. package/dist/exploration-project-tailwind/p-4de419d5.entry.js +1 -0
  836. package/dist/exploration-project-tailwind/p-4f6bba75.entry.js +1 -0
  837. package/dist/exploration-project-tailwind/p-5508874f.entry.js +1 -0
  838. package/dist/exploration-project-tailwind/p-5ce0dbd8.entry.js +1 -0
  839. package/dist/exploration-project-tailwind/p-5e3e80ae.entry.js +1 -0
  840. package/dist/exploration-project-tailwind/p-61717490.entry.js +1 -0
  841. package/dist/exploration-project-tailwind/p-62352ef2.entry.js +1 -0
  842. package/dist/exploration-project-tailwind/p-64e3a484.entry.js +1 -0
  843. package/dist/exploration-project-tailwind/p-6ab80ead.entry.js +1 -0
  844. package/dist/exploration-project-tailwind/p-6e9694f2.entry.js +1 -0
  845. package/dist/exploration-project-tailwind/p-6fa9dc15.entry.js +1 -0
  846. package/dist/exploration-project-tailwind/p-70d82d79.entry.js +1 -0
  847. package/dist/exploration-project-tailwind/p-717dad1f.entry.js +1 -0
  848. package/dist/exploration-project-tailwind/p-7376ac95.entry.js +1 -0
  849. package/dist/exploration-project-tailwind/p-73d29a4a.entry.js +1 -0
  850. package/dist/exploration-project-tailwind/p-7515b1e3.entry.js +1 -0
  851. package/dist/exploration-project-tailwind/p-77124686.entry.js +1 -0
  852. package/dist/exploration-project-tailwind/p-77a21491.entry.js +1 -0
  853. package/dist/exploration-project-tailwind/p-77cc333a.entry.js +1 -0
  854. package/dist/exploration-project-tailwind/p-7f91d949.entry.js +1 -0
  855. package/dist/exploration-project-tailwind/p-807c6555.entry.js +1 -0
  856. package/dist/exploration-project-tailwind/p-81961fb1.entry.js +1 -0
  857. package/dist/exploration-project-tailwind/p-85bf89fd.entry.js +1 -0
  858. package/dist/exploration-project-tailwind/p-85e36111.entry.js +1 -0
  859. package/dist/exploration-project-tailwind/p-875be805.entry.js +1 -0
  860. package/dist/exploration-project-tailwind/p-898dd0fa.entry.js +1 -0
  861. package/dist/exploration-project-tailwind/p-8d951aef.entry.js +1 -0
  862. package/dist/exploration-project-tailwind/p-9d0c8760.entry.js +1 -0
  863. package/dist/exploration-project-tailwind/p-9fa70359.entry.js +1 -0
  864. package/dist/exploration-project-tailwind/p-9fc06ff0.entry.js +1 -0
  865. package/dist/exploration-project-tailwind/p-BMFah5q3.js +1 -0
  866. package/dist/exploration-project-tailwind/p-BSQ8klD4.js +1 -0
  867. package/dist/exploration-project-tailwind/p-C7gf39HE.js +1 -0
  868. package/dist/exploration-project-tailwind/p-Ck6jDuhz.js +1 -0
  869. package/dist/exploration-project-tailwind/p-D2WzX6vR.js +2 -0
  870. package/dist/exploration-project-tailwind/p-DUsoYu9r.js +2 -0
  871. package/dist/exploration-project-tailwind/p-a1ad32a2.entry.js +1 -0
  872. package/dist/exploration-project-tailwind/p-a3f465d9.entry.js +1 -0
  873. package/dist/exploration-project-tailwind/p-a42fdc33.entry.js +1 -0
  874. package/dist/exploration-project-tailwind/p-a4f52a76.entry.js +1 -0
  875. package/dist/exploration-project-tailwind/p-aa85ff78.entry.js +1 -0
  876. package/dist/exploration-project-tailwind/p-ab752761.entry.js +1 -0
  877. package/dist/exploration-project-tailwind/p-ba21fed3.entry.js +1 -0
  878. package/dist/exploration-project-tailwind/p-c174a372.entry.js +1 -0
  879. package/dist/exploration-project-tailwind/p-c2ca71ac.entry.js +1 -0
  880. package/dist/exploration-project-tailwind/p-c4ba7e52.entry.js +1 -0
  881. package/dist/exploration-project-tailwind/p-c5ddc817.entry.js +1 -0
  882. package/dist/exploration-project-tailwind/p-c69dd43e.entry.js +1 -0
  883. package/dist/exploration-project-tailwind/p-c6fd72e1.entry.js +1 -0
  884. package/dist/exploration-project-tailwind/p-c7e87fbb.entry.js +1 -0
  885. package/dist/exploration-project-tailwind/p-c87aeab6.entry.js +1 -0
  886. package/dist/exploration-project-tailwind/p-c90722ec.entry.js +1 -0
  887. package/dist/exploration-project-tailwind/p-ccb5c737.entry.js +1 -0
  888. package/dist/exploration-project-tailwind/p-ce1222a1.entry.js +1 -0
  889. package/dist/exploration-project-tailwind/p-d16c9635.entry.js +1 -0
  890. package/dist/exploration-project-tailwind/p-d2308a00.entry.js +1 -0
  891. package/dist/exploration-project-tailwind/p-d30e24bd.entry.js +1 -0
  892. package/dist/exploration-project-tailwind/p-d419eaf0.entry.js +1 -0
  893. package/dist/exploration-project-tailwind/p-debede45.entry.js +1 -0
  894. package/dist/exploration-project-tailwind/p-e5322e59.entry.js +1 -0
  895. package/dist/exploration-project-tailwind/p-e8ba0c95.entry.js +1 -0
  896. package/dist/exploration-project-tailwind/p-e90d5307.entry.js +1 -0
  897. package/dist/exploration-project-tailwind/p-ea51c5d8.entry.js +1 -0
  898. package/dist/exploration-project-tailwind/p-ecda1cc3.entry.js +1 -0
  899. package/dist/exploration-project-tailwind/p-f0830120.entry.js +1 -0
  900. package/dist/exploration-project-tailwind/p-f11e5cae.entry.js +1 -0
  901. package/dist/exploration-project-tailwind/p-f5719913.entry.js +1 -0
  902. package/dist/exploration-project-tailwind/p-ffb1754a.entry.js +1 -0
  903. package/dist/exploration-project-tailwind/p-vwwmWKs9.js +1 -0
  904. package/dist/index.cjs.js +1 -0
  905. package/dist/index.js +1 -0
  906. package/dist/types/components/accordion/accordion.d.ts +352 -0
  907. package/dist/types/components/accordion/types.d.ts +69 -0
  908. package/dist/types/components/advanced-data-table/advanced-data-table.d.ts +697 -0
  909. package/dist/types/components/advanced-data-table/types.d.ts +120 -0
  910. package/dist/types/components/anchor/anchor.d.ts +133 -0
  911. package/dist/types/components/anchor/types.d.ts +17 -0
  912. package/dist/types/components/animate-on-scroll/animate-on-scroll.d.ts +101 -0
  913. package/dist/types/components/aside-panel/aside-panel.d.ts +249 -0
  914. package/dist/types/components/avatar/avatar.d.ts +201 -0
  915. package/dist/types/components/avatar/types.d.ts +132 -0
  916. package/dist/types/components/avatar-group/avatar-group.d.ts +52 -0
  917. package/dist/types/components/avatar-group/types.d.ts +31 -0
  918. package/dist/types/components/badge/badge.d.ts +109 -0
  919. package/dist/types/components/badge/types.d.ts +6 -0
  920. package/dist/types/components/breadcrumb/breadcrumb-item.d.ts +36 -0
  921. package/dist/types/components/breadcrumb/breadcrumb.d.ts +73 -0
  922. package/dist/types/components/breadcrumb/types.d.ts +5 -0
  923. package/dist/types/components/button/button.d.ts +133 -0
  924. package/dist/types/components/button/types.d.ts +1 -0
  925. package/dist/types/components/button-toggle/button-toggle.d.ts +64 -0
  926. package/dist/types/components/button-toggle-group/button-toggle-group.d.ts +141 -0
  927. package/dist/types/components/button-toggle-group/types.d.ts +7 -0
  928. package/dist/types/components/callout-banner/callout-banner.d.ts +115 -0
  929. package/dist/types/components/callout-banner/types.d.ts +7 -0
  930. package/dist/types/components/card/card.d.ts +160 -0
  931. package/dist/types/components/card/types.d.ts +13 -0
  932. package/dist/types/components/carousel/carousel.d.ts +150 -0
  933. package/dist/types/components/carousel/types.d.ts +8 -0
  934. package/dist/types/components/checkbox/checkbox.d.ts +92 -0
  935. package/dist/types/components/checkbox/types.d.ts +5 -0
  936. package/dist/types/components/checkbox-group/checkbox-group.d.ts +87 -0
  937. package/dist/types/components/checkbox-group/types.d.ts +8 -0
  938. package/dist/types/components/code-editor/code-editor.d.ts +147 -0
  939. package/dist/types/components/code-editor/types.d.ts +20 -0
  940. package/dist/types/components/code-preview/types.d.ts +5 -0
  941. package/dist/types/components/code-preview/ui-code-preview.d.ts +69 -0
  942. package/dist/types/components/color-controller/color-controller.d.ts +24 -0
  943. package/dist/types/components/color-picker/color-picker.d.ts +116 -0
  944. package/dist/types/components/color-picker/types.d.ts +24 -0
  945. package/dist/types/components/command-palette/command-palette.d.ts +41 -0
  946. package/dist/types/components/command-palette/types.d.ts +7 -0
  947. package/dist/types/components/context-menu/context-menu.d.ts +135 -0
  948. package/dist/types/components/context-menu/types.d.ts +20 -0
  949. package/dist/types/components/dialog-box/dialog-box.d.ts +648 -0
  950. package/dist/types/components/dialog-box/types.d.ts +1 -0
  951. package/dist/types/components/dialog-content/dialog-content.d.ts +9 -0
  952. package/dist/types/components/dialog-footer/dialog-footer.d.ts +9 -0
  953. package/dist/types/components/dialog-footer/types.d.ts +1 -0
  954. package/dist/types/components/dialog-header/dialog-header.d.ts +102 -0
  955. package/dist/types/components/dialog-header/types.d.ts +2 -0
  956. package/dist/types/components/divider/divider.d.ts +245 -0
  957. package/dist/types/components/divider/types.d.ts +14 -0
  958. package/dist/types/components/dock/dock.d.ts +37 -0
  959. package/dist/types/components/dock/types.d.ts +11 -0
  960. package/dist/types/components/dock-host/index.d.ts +1 -0
  961. package/dist/types/components/dock-host/types.d.ts +1 -0
  962. package/dist/types/components/dock-host/ui-dock-host.d.ts +23 -0
  963. package/dist/types/components/drag-drop/drag-drop.d.ts +52 -0
  964. package/dist/types/components/drag-drop/types.d.ts +9 -0
  965. package/dist/types/components/dropdown/dropdown.d.ts +264 -0
  966. package/dist/types/components/dropdown/types.d.ts +19 -0
  967. package/dist/types/components/empty-state/empty-state.d.ts +74 -0
  968. package/dist/types/components/empty-state/types.d.ts +13 -0
  969. package/dist/types/components/fab/fab.d.ts +73 -0
  970. package/dist/types/components/fab-item/fab-item.d.ts +14 -0
  971. package/dist/types/components/fab-item/types.d.ts +3 -0
  972. package/dist/types/components/file-upload/file-upload.d.ts +91 -0
  973. package/dist/types/components/file-upload/types.d.ts +15 -0
  974. package/dist/types/components/horizontal-nav/horizontal-nav.d.ts +68 -0
  975. package/dist/types/components/icon/icon.d.ts +66 -0
  976. package/dist/types/components/image-button/image-button.d.ts +31 -0
  977. package/dist/types/components/image-button/types.d.ts +1 -0
  978. package/dist/types/components/input/input.d.ts +217 -0
  979. package/dist/types/components/input/types.d.ts +6 -0
  980. package/dist/types/components/input-pair/input-pair.d.ts +28 -0
  981. package/dist/types/components/knob/knob.d.ts +147 -0
  982. package/dist/types/components/knob/types.d.ts +4 -0
  983. package/dist/types/components/layout-manager/layout-manager.d.ts +32 -0
  984. package/dist/types/components/layout-manager/lm-container/lm-container.d.ts +7 -0
  985. package/dist/types/components/layout-manager/lm-floating-window/lm-floating-window.d.ts +6 -0
  986. package/dist/types/components/layout-manager/lm-panel/lm-panel.d.ts +7 -0
  987. package/dist/types/components/layout-manager/lm-splitter/lm-splitter.d.ts +12 -0
  988. package/dist/types/components/layout-manager/lm-tabs/lm-tabs.d.ts +12 -0
  989. package/dist/types/components/layout-manager/types.d.ts +1 -0
  990. package/dist/types/components/library/category-section.d.ts +15 -0
  991. package/dist/types/components/library/data.d.ts +11 -0
  992. package/dist/types/components/library/library-card.d.ts +19 -0
  993. package/dist/types/components/library/library.d.ts +9 -0
  994. package/dist/types/components/list/list.d.ts +183 -0
  995. package/dist/types/components/list-group/list-group.d.ts +28 -0
  996. package/dist/types/components/list-item/list-item.d.ts +200 -0
  997. package/dist/types/components/masonry/masonry.d.ts +105 -0
  998. package/dist/types/components/masonry/types.d.ts +5 -0
  999. package/dist/types/components/meter-group/meter-group.d.ts +66 -0
  1000. package/dist/types/components/meter-group/types.d.ts +12 -0
  1001. package/dist/types/components/my-component/my-component.d.ts +16 -0
  1002. package/dist/types/components/my-step/index.d.ts +12 -0
  1003. package/dist/types/components/my-step/my-step.d.ts +13 -0
  1004. package/dist/types/components/nav-bar/nav-bar.d.ts +119 -0
  1005. package/dist/types/components/number-input/number-input.d.ts +72 -0
  1006. package/dist/types/components/otp-input/otp-input.d.ts +64 -0
  1007. package/dist/types/components/otp-input/types.d.ts +3 -0
  1008. package/dist/types/components/pagination/pagination.d.ts +295 -0
  1009. package/dist/types/components/pagination/types.d.ts +1 -0
  1010. package/dist/types/components/panel/panel.d.ts +275 -0
  1011. package/dist/types/components/panel/types.d.ts +7 -0
  1012. package/dist/types/components/pattern-input/pattern-input.d.ts +88 -0
  1013. package/dist/types/components/popover/popover.d.ts +161 -0
  1014. package/dist/types/components/popover/types.d.ts +3 -0
  1015. package/dist/types/components/progress/progress.d.ts +224 -0
  1016. package/dist/types/components/progress/types.d.ts +6 -0
  1017. package/dist/types/components/radio/radio.d.ts +87 -0
  1018. package/dist/types/components/radio/types.d.ts +7 -0
  1019. package/dist/types/components/radio-group/radio-group.d.ts +74 -0
  1020. package/dist/types/components/radio-group/types.d.ts +2 -0
  1021. package/dist/types/components/range-slider/range-slider.d.ts +201 -0
  1022. package/dist/types/components/range-slider/types.d.ts +4 -0
  1023. package/dist/types/components/rating/rating.d.ts +127 -0
  1024. package/dist/types/components/rating/types.d.ts +1 -0
  1025. package/dist/types/components/resizable-panel/resizable-panel.d.ts +59 -0
  1026. package/dist/types/components/resizable-panel/types.d.ts +11 -0
  1027. package/dist/types/components/scroll-top/scroll-top.d.ts +186 -0
  1028. package/dist/types/components/scroll-top/types.d.ts +1 -0
  1029. package/dist/types/components/skeleton/skeleton-loader.d.ts +149 -0
  1030. package/dist/types/components/skeleton/types.d.ts +1 -0
  1031. package/dist/types/components/smart-location-dropdown/smart-location-dropdown.d.ts +119 -0
  1032. package/dist/types/components/smart-location-dropdown/types.d.ts +37 -0
  1033. package/dist/types/components/smart-menu/menu-item.interface.d.ts +10 -0
  1034. package/dist/types/components/smart-menu/smart-menu.d.ts +64 -0
  1035. package/dist/types/components/smart-stepper/smart-step.d.ts +29 -0
  1036. package/dist/types/components/smart-stepper/smart-stepper.d.ts +53 -0
  1037. package/dist/types/components/snackbar/snackbar.d.ts +223 -0
  1038. package/dist/types/components/snackbar/types.d.ts +104 -0
  1039. package/dist/types/components/speed-dial/speed-dial.d.ts +171 -0
  1040. package/dist/types/components/speed-dial/types.d.ts +11 -0
  1041. package/dist/types/components/speedometer/speedometer.d.ts +125 -0
  1042. package/dist/types/components/speedometer/types.d.ts +8 -0
  1043. package/dist/types/components/splitter/splitter.d.ts +63 -0
  1044. package/dist/types/components/splitter/types.d.ts +9 -0
  1045. package/dist/types/components/stack/stack.d.ts +34 -0
  1046. package/dist/types/components/stack/types.d.ts +3 -0
  1047. package/dist/types/components/step/step.d.ts +16 -0
  1048. package/dist/types/components/step/types.d.ts +1 -0
  1049. package/dist/types/components/stepper/stepper.d.ts +218 -0
  1050. package/dist/types/components/stepper/types.d.ts +39 -0
  1051. package/dist/types/components/switch/switch.d.ts +162 -0
  1052. package/dist/types/components/tabs/tabs.d.ts +182 -0
  1053. package/dist/types/components/tabs/types.d.ts +17 -0
  1054. package/dist/types/components/tag/tag.d.ts +172 -0
  1055. package/dist/types/components/tag/types.d.ts +4 -0
  1056. package/dist/types/components/tag-group/tag-group.d.ts +107 -0
  1057. package/dist/types/components/tag-group/types.d.ts +2 -0
  1058. package/dist/types/components/timeline/timeline.d.ts +73 -0
  1059. package/dist/types/components/timeline/types.d.ts +28 -0
  1060. package/dist/types/components/timeline/ui-timeline.stories.d.ts +9 -0
  1061. package/dist/types/components/timeline-item/timeline-item.d.ts +15 -0
  1062. package/dist/types/components/timer/timer.d.ts +123 -0
  1063. package/dist/types/components/timer/types.d.ts +18 -0
  1064. package/dist/types/components/timer/ui-timer.stories.d.ts +9 -0
  1065. package/dist/types/components/toggle-group/toggle-group.d.ts +136 -0
  1066. package/dist/types/components/toggle-group/types.d.ts +5 -0
  1067. package/dist/types/components/toolbar/toolbar-types.d.ts +189 -0
  1068. package/dist/types/components/toolbar/toolbar.d.ts +150 -0
  1069. package/dist/types/components/tooltip/tooltip.d.ts +166 -0
  1070. package/dist/types/components/tooltip/types.d.ts +3 -0
  1071. package/dist/types/components/top-bar/top-bar.d.ts +76 -0
  1072. package/dist/types/components/transfer-list/transfer-list.d.ts +137 -0
  1073. package/dist/types/components/transfer-list/types.d.ts +13 -0
  1074. package/dist/types/components/tree/tree.d.ts +180 -0
  1075. package/dist/types/components/tree/types.d.ts +76 -0
  1076. package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-bar.d.ts +108 -0
  1077. package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-types.d.ts +17 -0
  1078. package/dist/types/components/ui-navigation-bar/navigation-item.d.ts +26 -0
  1079. package/dist/types/components/ui-navigation-bar/navigation-types.d.ts +19 -0
  1080. package/dist/types/components/workspace-manager/types.d.ts +48 -0
  1081. package/dist/types/components/workspace-manager/workspace-manager.d.ts +211 -0
  1082. package/dist/types/components.d.ts +29634 -0
  1083. package/dist/types/index.d.ts +21 -0
  1084. package/dist/types/service/drag-manager.d.ts +8 -0
  1085. package/dist/types/service/event-bus.d.ts +9 -0
  1086. package/dist/types/service/serialization.d.ts +5 -0
  1087. package/dist/types/service/state-engine.d.ts +25 -0
  1088. package/dist/types/service/theme-switcher.d.ts +46 -0
  1089. package/dist/types/stencil-public-runtime.d.ts +1860 -0
  1090. package/dist/types/types/animation.type.d.ts +96 -0
  1091. package/dist/types/types/common.d.ts +52 -0
  1092. package/dist/types/types/common.type.d.ts +608 -0
  1093. package/dist/types/types/index.d.ts +37 -0
  1094. package/dist/types/types/text.type.d.ts +32 -0
  1095. package/dist/types/utils/aria-live.d.ts +20 -0
  1096. package/dist/types/utils/component-size.d.ts +2 -0
  1097. package/dist/types/utils/dom.d.ts +58 -0
  1098. package/dist/types/utils/focus-trap.d.ts +35 -0
  1099. package/dist/types/utils/security.d.ts +5 -0
  1100. package/dist/types/utils/test/setup-component-test-env.d.ts +14 -0
  1101. package/dist/types/utils/utils.d.ts +7 -0
  1102. package/dist/types/utils/validation.d.ts +43 -0
  1103. package/loader/cdn.js +1 -0
  1104. package/loader/index.cjs.js +1 -0
  1105. package/loader/index.d.ts +24 -0
  1106. package/loader/index.es2017.js +1 -0
  1107. package/loader/index.js +2 -0
  1108. package/package.json +77 -0
@@ -0,0 +1,1549 @@
1
+ import { r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-DUsoYu9r.js';
2
+ import { c as calculateUniversalPlacement } from './dom-BMFah5q3.js';
3
+
4
+ /**
5
+ * Utility for managing ARIA live regions to announce dynamic content to screen readers.
6
+ */
7
+ class AriaLiveManager {
8
+ container;
9
+ politeRegion;
10
+ assertiveRegion;
11
+ constructor() {
12
+ this.init();
13
+ }
14
+ init() {
15
+ const existing = document.getElementById('aria-live-regions');
16
+ if (existing) {
17
+ this.container = existing;
18
+ this.politeRegion = document.getElementById('aria-live-polite');
19
+ this.assertiveRegion = document.getElementById('aria-live-assertive');
20
+ return;
21
+ }
22
+ this.container = document.createElement('div');
23
+ this.container.id = 'aria-live-regions';
24
+ this.container.style.position = 'absolute';
25
+ this.container.style.width = '1px';
26
+ this.container.style.height = '1px';
27
+ this.container.style.padding = '0';
28
+ this.container.style.margin = '-1px';
29
+ this.container.style.overflow = 'hidden';
30
+ this.container.style.clip = 'rect(0, 0, 0, 0)';
31
+ this.container.style.whiteSpace = 'nowrap';
32
+ this.container.style.border = '0';
33
+ this.politeRegion = this.createRegion('polite');
34
+ this.assertiveRegion = this.createRegion('assertive');
35
+ this.container.appendChild(this.politeRegion);
36
+ this.container.appendChild(this.assertiveRegion);
37
+ document.body.appendChild(this.container);
38
+ }
39
+ createRegion(politeness) {
40
+ const el = document.createElement('div');
41
+ el.id = `aria-live-${politeness}`;
42
+ el.setAttribute('aria-live', politeness);
43
+ el.setAttribute('aria-atomic', 'true');
44
+ return el;
45
+ }
46
+ /**
47
+ * Announce a message to screen readers.
48
+ * @param message The text to announce.
49
+ * @param politeness 'polite' (default) waits for the user to pause, 'assertive' interrupts.
50
+ */
51
+ announce(message, politeness = 'polite') {
52
+ if (!this.container)
53
+ this.init();
54
+ const region = politeness === 'assertive' ? this.assertiveRegion : this.politeRegion;
55
+ // Clear and reset content to ensure announcement triggers even if same message
56
+ region.textContent = '';
57
+ // Tiny delay to ensure the clearing is registered
58
+ setTimeout(() => {
59
+ region.textContent = message;
60
+ }, 50);
61
+ }
62
+ }
63
+ const ariaLive = new AriaLiveManager();
64
+
65
+ const dropdownCss = () => `.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}.a11y-sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}:root{--dd-primary:var(--color-primary, #2563eb);--dd-border:var(--border-default, #cfd8e3);--dd-border-strong:var(--border-strong, #b4c1d1);--dd-focus:var(--color-primary-hover, #2563eb);--dd-text:var(--label-color, var(--text-primary, var(--color-on-surface, #10213a)));--dd-muted:var(--label-subtitle-color, var(--text-secondary, var(--color-on-surface-muted, #62748a)));--dd-bg:var(--bg-primary, #ffffff);--dd-panel:rgba(255, 255, 255, 0.98);--dd-panel-solid:var(--bg-primary, #ffffff);--dd-hover:var(--bg-primary, #f3f8ff);--dd-selected:var(--dropdown-selected-bg, var(--color-success-light, #ecfdf5));--dd-selected-bg:var(--dropdown-selected-bg, var(--color-success-light, #ecfdf5));--dd-selected-text:var(--dropdown-selected-text, var(--color-success, var(--color-on-primary, #059669)));--dd-selected-icon:var(--dropdown-selected-icon, var(--color-success, var(--color-on-primary, #059669)));--dd-selected-border:var(--dropdown-selected-border, var(--color-success-border, var(--color-on-primary-border, #a7f3d0)));--dd-transition:all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);--dd-error:var(--color-danger, #ef4444);--dd-radius-sm:8px;--dd-radius-md:10px}.dropdown-label{display:block;font-size:11px;font-weight:700;color:var(--dd-text);margin-bottom:8px;letter-spacing:0.08em;text-transform:uppercase;opacity:0.65;cursor:default}.dropdown-container{position:relative;display:inline-flex;flex-direction:column;width:max-content;min-width:50px;vertical-align:middle}.dropdown-full-width{width:100%;display:block;}.dropdown-fit-content{width:max-content;min-width:unset}.dropdown-fit-content .ui-dropdown-menu{width:max-content;min-width:100%;white-space:nowrap}.dropdown-fit-content .dropdown-trigger{width:max-content}.dropdown-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--bg-primary, #ffffff);border:1px solid var(--dd-border);border-radius:var(--dd-radius-md);cursor:pointer;transition:var(--dd-transition);-webkit-user-select:none;user-select:none;gap:12px;padding:0 16px;box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);color:var(--dd-text);font-weight:500;line-height:normal;box-sizing:border-box}.dropdown-trigger:hover{border-color:var(--dd-border-strong);box-shadow:0 10px 22px rgba(var(--color-primary-rgb, 37, 99, 235), 0.08)}.dropdown-open .dropdown-trigger{border-color:var(--dd-focus);background:var(--dd-bg);box-shadow:0 0 0 2px rgba(var(--color-primary-rgb, 37, 99, 235), 0.1)}.dropdown-disabled .dropdown-trigger{background:var(--bg-secondary, #f1f5f9);cursor:not-allowed;opacity:0.7;border-color:var(--dd-border);box-shadow:none}.dropdown-disabled .dropdown-trigger:hover{background:var(--bg-secondary, #f1f5f9)}.dropdown-sm .dropdown-trigger{padding:0 12px;font-size:13px;min-height:32px;height:32px;border-radius:var(--dd-radius-sm)}.dropdown-md .dropdown-trigger{padding:0 16px;font-size:14px;min-height:40px;height:40px;border-radius:var(--dd-radius-md)}.dropdown-lg .dropdown-trigger{padding:0 20px;font-size:15px;min-height:44px;height:44px;border-radius:var(--dd-radius-md)}.dropdown-shape-square .dropdown-trigger,.dropdown-shape-square .dropdown-menu{border-radius:0 !important}.dropdown-shape-rounded .dropdown-trigger,.dropdown-shape-rounded .dropdown-menu{border-radius:20px !important}.dropdown-shape-pill .dropdown-trigger{border-radius:999px !important}.dropdown-shape-pill .dropdown-menu{border-radius:28px !important}.dropdown-appearance-button .dropdown-trigger{background:var(--dd-primary);border-color:var(--dd-primary);color:var(--color-primary-text, var(--dd-text, #ffffff));box-shadow:0 4px 14px 0 rgba(var(--color-primary-rgb, 37, 99, 235), 0.39)}.dropdown-appearance-button .dropdown-trigger:hover{background:var(--color-primary, #1d4ed8);border-color:var(--color-primary, #1d4ed8);transform:translateY(-1px);box-shadow:0 6px 20px rgba(var(--color-primary-rgb, 37, 99, 235), 0.23)}.dropdown-appearance-button .dropdown-trigger:active{transform:translateY(0)}.variant-glass .dropdown-trigger{background:rgba(255, 255, 255, 0.08);backdrop-filter:blur(12px) saturate(180%);border:1px solid rgba(255, 255, 255, 0.12);color:var(--text-standard, #ffffff);box-shadow:0 8px 32px 0 rgba(31, 38, 135, 0.07)}.variant-glass .dropdown-trigger:hover{background:rgba(255, 255, 255, 0.12);border-color:rgba(255, 255, 255, 0.2)}.variant-glass .dropdown-display,.variant-glass .dropdown-placeholder{color:var(--text-standard, #ffffff)}.variant-glass.dropdown-open .dropdown-trigger{background:rgba(255, 255, 255, 0.15);border-color:var(--dd-focus)}.variant-toggle{min-width:unset !important}.variant-toggle .dropdown-trigger{background:transparent;border-color:transparent;padding:0 !important;min-height:unset !important;height:auto !important;box-shadow:none;gap:4px}.variant-toggle .dropdown-trigger:hover{background:var(--dd-hover);border-color:var(--dd-border)}.variant-toggle.dropdown-open .dropdown-trigger{background:var(--dd-hover);border-color:var(--dd-focus);box-shadow:0 0 0 2px rgba(var(--color-primary-rgb, 37, 99, 235), 0.1)}.variant-toggle .dropdown-display{padding:2px}.dropdown-appearance-button .dropdown-display{color:var(--color-primary-text, var(--dd-text, #ffffff))}.dropdown-appearance-button .dropdown-clear,.dropdown-appearance-button .dropdown-arrow{color:var(--color-primary-text, var(--dd-text, #ffffff))}.dropdown-display{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center}.dropdown-has-chips .dropdown-trigger{height:auto;min-height:48px;padding:6px 16px}.dropdown-chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 0;width:100%}.dropdown-placeholder{color:var(--label-subtitle-color, #91a0b4);font-weight:400}.dropdown-icons{display:flex;align-items:center;gap:8px;flex-shrink:0}.dropdown-clear{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--bg-primary, #eef4fb);color:var(--dd-muted);transition:var(--dd-transition)}.dropdown-clear:hover{background:var(--bg-primary, #e2ecf8);color:var(--dd-text)}.dropdown-arrow{display:flex;align-items:center;color:var(--dd-muted);transition:transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1)}.dropdown-arrow.open{transform:rotate(180deg);color:var(--dd-focus)}.ui-dropdown-menu{position:fixed;display:flex !important;flex-direction:column !important;gap:0;background:var(--bg-primary, #ffffff) !important;border:1px solid rgba(0, 0, 0, 0.08);border-radius:16px;box-shadow:0 20px 50px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);z-index:10001;overflow:hidden;animation:dropdownPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);width:auto;min-width:0}.ui-dropdown-menu--local{position:absolute}@keyframes dropdownPop{from{opacity:0;transform:translateY(12px) scale(0.96)}to{opacity:1;transform:translateY(0) scale(1)}}.dropdown-menu-top{top:auto;bottom:calc(100% + 8px);animation:dropdownPopTop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1)}@keyframes dropdownPopTop{from{opacity:0;transform:translateY(-4px) scale(0.97)}to{opacity:1;transform:translateY(0) scale(1)}}.dropdown-search{padding:12px;border-bottom:1px solid var(--border-subtle, #edf2f7);background:var(--dd-panel)}.dropdown-search-container{position:relative;display:flex;align-items:center}.dropdown-search-icon{position:absolute;left:12px;color:var(--dd-muted);pointer-events:none}.dropdown-search-input{width:100%;padding:11px 13px 11px 36px;background:var(--bg-primary, #f9fbfe);border:1px solid var(--border-default, #d4deea);border-radius:12px;font-size:14px;color:var(--dd-text);outline:none;transition:var(--dd-transition)}.dropdown-search-input::placeholder{color:var(--dd-muted);opacity:0.8}.dropdown-search-input:focus{background:var(--bg-primary, #ffffff);border-color:var(--dd-focus);box-shadow:0 0 0 4px rgba(var(--color-primary-rgb, 37, 99, 235), 0.1)}.dropdown-options{flex:1;min-height:0;overflow-y:auto;padding:8px;background:var(--dd-panel-solid)}.dropdown-menu-sm{border-radius:12px;--dd-option-min-height:28px;--dd-option-padding-y:8px;--dd-option-padding-x:12px;--dd-option-gap:10px;--dd-option-spacing-y:2px}.dropdown-menu-sm .dropdown-search{padding:8px}.dropdown-menu-sm .dropdown-search-input{min-height:34px;font-size:13px;padding:8px 12px 8px 34px}.dropdown-menu-sm .dropdown-options{padding:6px}.dropdown-menu-sm .dropdown-option-label{font-size:13px}.dropdown-menu-sm .dropdown-option-subtitle,.dropdown-menu-sm .dropdown-empty,.dropdown-menu-sm .dropdown-group-header,.dropdown-menu-sm .dropdown-bulk-actions,.dropdown-menu-sm .dropdown-select-all,.dropdown-menu-sm .dropdown-clear-all{font-size:12px}.dropdown-menu-md{border-radius:16px;--dd-option-min-height:30px;--dd-option-padding-y:10px;--dd-option-padding-x:16px;--dd-option-gap:12px;--dd-option-spacing-y:4px}.dropdown-menu-lg{border-radius:18px;--dd-option-min-height:32px;--dd-option-padding-y:12px;--dd-option-padding-x:18px;--dd-option-gap:14px;--dd-option-spacing-y:6px}.dropdown-menu-lg .dropdown-search{padding:14px}.dropdown-menu-lg .dropdown-search-input{min-height:46px;font-size:15px;padding:12px 14px 12px 40px}.dropdown-menu-lg .dropdown-options{padding:10px}.dropdown-menu-lg .dropdown-option-label{font-size:15px}.dropdown-menu-lg .dropdown-option-subtitle,.dropdown-menu-lg .dropdown-empty,.dropdown-menu-lg .dropdown-group-header,.dropdown-menu-lg .dropdown-bulk-actions,.dropdown-menu-lg .dropdown-select-all,.dropdown-menu-lg .dropdown-clear-all{font-size:14px}.dropdown-options::-webkit-scrollbar{width:5px}.dropdown-options::-webkit-scrollbar-track{background:transparent}.dropdown-options::-webkit-scrollbar-thumb{background:var(--color-primary, #cbd5e1);border-radius:10px}.dropdown-options::-webkit-scrollbar-thumb:hover{background:var(--color-primary, #94a3b8)}.dropdown-option-wrapper{position:relative}.ui-dropdown-option,.dropdowndata{display:flex !important;flex-direction:row !important;flex-wrap:nowrap !important;align-items:center;gap:var(--dd-option-gap, 12px);background-color:transparent;transition:var(--dd-transition);border-radius:12px;margin:var(--dd-option-spacing-y, 4px) 0;padding:var(--dd-option-padding-y, 10px) var(--dd-option-padding-x, 16px);min-height:var(--dd-option-min-height, 48px);width:100%;box-sizing:border-box}.dropdown-menu-sm .ui-dropdown-option,.dropdown-menu-sm .dropdowndata{border-radius:10px}.dropdown-menu-lg .ui-dropdown-option,.dropdown-menu-lg .dropdowndata{border-radius:14px}.ui-dropdown-option:hover,.dropdowndata:hover,.dropdown-option-highlighted{background:var(--dd-hover);border-color:var(--color-primary, #d7e7ff);box-shadow:0 10px 24px rgba(var(--color-primary-rgb, 37, 99, 235), 0.08);transform:translateY(-1px)}.ui-dropdown-option-selected{background:var(--dd-selected-bg) !important;color:var(--dd-selected-text) !important;font-weight:600;border-radius:12px;margin:4px 0;box-shadow:none !important}.ui-dropdown-option-selected .dropdown-option-label{color:var(--dd-selected-text) !important;font-weight:600 !important}.dropdown-option-disabled{opacity:0.4;cursor:not-allowed;pointer-events:none}.dropdown-option-parent{font-weight:600;letter-spacing:-0.01em}.dropdown-option-left{display:flex;align-items:center;justify-content:center;flex-shrink:0}.dropdown-option-icon{display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--dd-muted);line-height:1}.dropdown-option-text{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;overflow:hidden;line-height:normal;padding:4px 0}.dropdown-option-text .dropdown-option-content{width:100%;min-width:0;overflow:hidden}.dropdown-option-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;font-size:14px;font-weight:500;color:var(--dd-text, var(--color-on-surface, #10213a))}.dropdown-option-subtitle{font-size:12px;color:var(--dd-muted, var(--color-on-surface-muted, #62748a));font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.dropdown-option-description{font-size:12px;color:var(--dd-muted, var(--color-on-surface-muted, #62748a));font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.dropdown-option-right{display:flex !important;flex-direction:row !important;flex-wrap:nowrap !important;align-items:center;justify-content:flex-end;flex-shrink:0;margin-left:auto;gap:8px}.dropdown-option-right:empty{display:none}.dropdown-option-tag{flex-shrink:0}.dropdown-option-right-icon{display:flex;align-items:center;justify-content:center;color:var(--dd-muted);opacity:0.8}.ui-dropdown-selected-marker{display:inline-flex !important;align-items:center !important;justify-content:center !important;flex-shrink:0 !important;animation:checkPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1)}.ui-dropdown-selected-marker-wrap{display:inline-flex;align-items:center;gap:4px;flex-shrink:0}.ui-dropdown-selected-marker-label{font-size:11px;font-weight:500;color:var(--dd-selected-text);white-space:nowrap;animation:checkPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1)}@keyframes checkPop{from{transform:scale(0.5);opacity:0}to{transform:scale(1);opacity:1}}.dropdown-checkbox{display:flex;align-items:center;justify-content:center;width:18px;height:18px;border:2px solid var(--color-primary, #cbd5e1);border-radius:5px;flex-shrink:0;transition:var(--dd-transition);background:var(--bg-primary, #ffffff);line-height:1}.dropdown-checkbox ui-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--text-standard, #ffffff)}.dropdown-option-selected .dropdown-checkbox,.dropdown-checkbox.checked,.dropdown-checkbox.dropdown-checkbox-selected{background:var(--dd-primary);border-color:var(--dd-primary);box-shadow:0 0 0 2px rgba(var(--color-primary-rgb, 37, 99, 235), 0.2)}.dropdown-expand-icon{transition:transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);color:var(--dd-muted);opacity:0.6}.dropdown-expand-icon.expanded{transform:rotate(90deg);color:var(--dd-primary);opacity:1}.dropdown-children{margin-left:20px;padding-left:12px;border-left:1px solid var(--dd-border);margin-top:-1px;margin-bottom:4px}.dropdown-empty{padding:32px 16px;font-size:14px}.dropdown-helper-text{margin-top:6px;font-size:12px;color:var(--dd-muted);display:flex;align-items:center;gap:6px;padding:0 4px}.dropdown-error-text{color:var(--dd-error);font-weight:500;animation:dropdownShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both}.dropdown-invalid .dropdown-trigger{border-color:var(--dd-error)}.dropdown-invalid .dropdown-trigger:hover{box-shadow:0 0 0 4px rgba(var(--color-danger-rgb, 239, 68, 68), 0.1)}@keyframes dropdownShake{10%,90%{transform:translate3d(-1px, 0, 0)}20%,80%{transform:translate3d(2px, 0, 0)}30%,50%,70%{transform:translate3d(-4px, 0, 0)}40%,60%{transform:translate3d(4px, 0, 0)}}.dropdown-spinner{display:flex;animation:dropdownSpin 1s linear infinite;color:var(--dd-primary)}@keyframes dropdownSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.dropdown-group-header{padding:12px 14px 6px;font-size:11px;font-weight:700;color:var(--dd-muted);text-transform:uppercase;letter-spacing:0.05em;background:var(--dd-panel-solid)}.dropdown-select-all{display:flex;align-items:center;gap:8px;padding:8px 10px;cursor:pointer;font-weight:600;font-size:14px;color:var(--dd-primary);background:transparent;transition:var(--dd-transition);border-bottom:none;border-radius:10px;min-height:36px;flex:1;justify-content:flex-start}.dropdown-select-all.dropdown-select-all-with-clear{border-bottom:1px solid var(--dd-border)}.dropdown-select-all:hover{background:rgba(var(--color-primary-rgb, 37, 99, 235), 0.08)}.dropdown-select-all .dropdown-checkbox{width:18px;height:18px;border:1px solid var(--dd-border-strong);border-radius:4px;display:flex;align-items:center;justify-content:center;transition:var(--dd-transition)}.dropdown-select-all .dropdown-checkbox.checked{background-color:var(--dd-primary);border-color:var(--dd-primary)}.dropdown-skeleton{pointer-events:none}.dropdown-skeleton .dropdown-trigger{background:var(--bg-secondary, #f1f5f9);border-color:var(--border-subtle, #e2e8f0);box-shadow:none}.dropdown-skeleton .dropdown-skeleton-text{width:60%;height:14px;background:linear-gradient(90deg, var(--bg-primary, #e2e8f0) 25%, var(--bg-primary, #f8fafc) 50%, var(--bg-primary, #e2e8f0) 75%);background-size:200% 100%;animation:dropdownShimmer 1.5s infinite;border-radius:4px}.dropdown-skeleton .dropdown-skeleton-icon{width:16px;height:16px;background:var(--bg-primary, #e2e8f0);border-radius:4px}@keyframes dropdownShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}.dropdown-separator{height:1px;background-color:var(--dd-border);margin:6px 10px;pointer-events:none}.dropdown-search-highlight{background-color:var(--bg-primary, #fef08a);color:var(--color-danger, #854d0e);border-radius:2px;padding:0 1px;font-weight:600}.dropdown-bulk-actions{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--dd-border);background:linear-gradient(180deg, var(--bg-primary, #fbfdff) 0%, var(--bg-primary, #f8fafc) 100%);font-size:13px;gap:12px}.dropdown-clear-all{display:flex;align-items:center;gap:8px;color:var(--color-danger, #ef4444);cursor:pointer;padding:8px 10px;border-radius:10px;transition:all 0.2s;font-weight:500;min-height:36px;justify-content:center;white-space:nowrap}.dropdown-clear-all:hover{background-color:var(--bg-primary, #fef2f2);color:var(--color-danger-hover, #dc2626)}.dropdown-menu-variant-nested-menu{overflow:visible}.dropdown-menu-variant-nested-menu .dropdown-options{overflow:visible;padding:6px}.dropdown-nested-columns{display:flex;align-items:stretch;min-width:max-content}.dropdown-nested-panel{min-width:210px;max-width:280px;padding:2px}.dropdown-nested-panel+.dropdown-nested-panel{border-left:1px solid var(--dd-border);margin-left:4px;padding-left:10px}.dropdown-menu-sm .dropdown-nested-panel{min-width:180px}.dropdown-menu-lg .dropdown-nested-panel{min-width:240px}.dropdown-nested-option{margin:2px 0}.dropdown-nested-option-active{background:var(--dd-hover);border-color:var(--dd-border-strong)}.variant-detailed .dropdown-trigger{border-color:var(--dd-border);border-radius:14px;min-height:48px;background:linear-gradient(180deg, var(--bg-primary, #ffffff) 0%, var(--bg-primary, #f8fbff) 100%);box-shadow:0 2px 8px rgba(15, 23, 42, 0.04);font-weight:500}.variant-detailed .dropdown-trigger:hover{border-color:var(--dd-border-strong);box-shadow:0 10px 22px rgba(var(--color-primary-rgb, 37, 99, 235), 0.08)}.variant-detailed.dropdown-open .dropdown-trigger{border-color:var(--dd-focus);box-shadow:0 0 0 4px rgba(var(--color-primary-rgb, 37, 99, 235), 0.14), 0 16px 32px rgba(var(--color-primary-rgb, 37, 99, 235), 0.14)}.variant-detailed .dropdown-menu{border-radius:20px !important;padding:6px !important;background:rgba(255, 255, 255, 0.98) !important;backdrop-filter:blur(20px) !important;box-shadow:0 20px 50px rgba(15, 23, 42, 0.22) !important}.variant-detailed .dropdown-options{padding:4px !important}.variant-detailed .ui-dropdown-option,.variant-detailed .dropdowndata{padding:12px 14px !important;border-radius:16px !important;margin:4px 0 !important;gap:14px !important;border:1px solid transparent !important;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important}.variant-detailed .ui-dropdown-option:hover,.variant-detailed .ui-dropdown-option.dropdown-option-highlighted,.variant-detailed .dropdowndata:hover,.variant-detailed .dropdowndata.dropdown-option-highlighted{background:var(--bg-primary, #f0f7ff) !important;border-color:var(--border-subtle, #dbeafe) !important;transform:translateY(-1.5px) !important;box-shadow:0 8px 16px rgba(var(--color-primary-rgb, 37, 99, 235), 0.08) !important}.variant-detailed .ui-dropdown-option.ui-dropdown-option-selected,.variant-detailed .dropdowndata.ui-dropdown-option-selected{background:var(--dd-selected-bg) !important;border-color:var(--dd-selected-border) !important;box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.5) !important}.variant-detailed .ui-dropdown-option.ui-dropdown-option-selected .dropdown-option-label,.variant-detailed .dropdowndata.ui-dropdown-option-selected .dropdown-option-label{color:var(--dd-selected-text) !important;font-weight:700 !important}.variant-detailed .dropdown-option-label{font-size:14px !important;font-weight:600 !important;color:var(--text-primary, #1e293b) !important;margin-bottom:2px !important}.variant-detailed .dropdown-option-subtitle{font-size:11px !important;color:var(--text-muted, #64748b) !important;font-weight:500 !important;text-transform:uppercase !important;letter-spacing:0.02em !important}.variant-detailed .dropdown-option-tag{font-size:10px !important;font-weight:700 !important;letter-spacing:0.05em !important;padding:4px 10px !important;border-radius:999px !important;box-shadow:0 1px 2px rgba(0, 0, 0, 0.05) !important}.variant-detailed .dropdown-option-icon,.variant-detailed .dropdown-option-right-icon{font-size:20px !important;display:flex !important;align-items:center !important;justify-content:center !important}.variant-detailed .dropdown-option-right-icon{color:var(--color-primary, #cbd5e1) !important;transition:all 0.2s !important}.variant-detailed .dropdown-option-right-icon:hover{color:var(--color-warning, #f59e0b) !important;transform:scale(1.1) !important}.variant-detailed .ui-dropdown-selected-marker{display:inline-flex !important;align-items:center !important;justify-content:center !important;color:var(--dd-primary) !important;background:var(--bg-primary, #dbeafe) !important;padding:4px !important;border-radius:50% !important;flex-shrink:0 !important}.variant-detailed .dropdown-trigger-content{display:flex !important;align-items:center !important;gap:10px !important}.variant-detailed .dropdown-trigger-icon{color:var(--dd-primary, var(--color-primary, #10b981)) !important;font-size:18px !important;flex-shrink:0 !important}.variant-detailed .dropdown-trigger-label{overflow:hidden !important;text-overflow:ellipsis !important;white-space:nowrap !important}.variant-detailed .dropdown-expand-group{display:flex !important;align-items:center !important;gap:8px !important}.variant-detailed .dropdown-badge{background:var(--dd-primary, var(--color-primary, #10b981)) !important;color:var(--text-standard, #ffffff) !important;font-size:10px !important;font-weight:800 !important;height:18px !important;min-width:18px !important;padding:0 5px !important;border-radius:9px !important;display:flex !important;align-items:center !important;justify-content:center !important;box-shadow:0 4px 10px rgba(var(--color-primary-rgb, 59, 130, 246), 0.3) !important;animation:badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important}@keyframes badgePop{0%{transform:scale(0);opacity:0}100%{transform:scale(1);opacity:1}}.dropdown-option:active{transform:scale(0.98);transition:transform 0.1s ease}.dropdown-option-selected.dropdowndata{position:relative;overflow:hidden}.dropdown-option-selected.dropdowndata::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(circle, rgba(var(--color-primary-rgb, 59, 130, 246), 0.1) 0%, transparent 70%);pointer-events:none}`;
66
+
67
+ const Dropdown = class {
68
+ constructor(hostRef) {
69
+ registerInstance(this, hostRef);
70
+ this.valueChange = createEvent(this, "valueChange");
71
+ this.dropdownOpen = createEvent(this, "dropdownOpen");
72
+ this.dropdownClose = createEvent(this, "dropdownClose");
73
+ }
74
+ get hostElement() { return getElement(this); }
75
+ /**
76
+ * Options as JSON string or DropdownOption array
77
+ */
78
+ options = [];
79
+ /**
80
+ * Placeholder text
81
+ */
82
+ placeholder = 'Select an option';
83
+ /**
84
+ * Enable multi-select mode
85
+ */
86
+ multiSelect = false;
87
+ /**
88
+ * Enable cascading/hierarchical selection
89
+ */
90
+ cascading = false;
91
+ /**
92
+ * Selected value(s) - string for single, comma-separated for multi
93
+ */
94
+ value = '';
95
+ /**
96
+ * Disabled state
97
+ */
98
+ disabled = false;
99
+ /**
100
+ * Show search/filter input
101
+ */
102
+ searchable = false;
103
+ /**
104
+ * Maximum height of dropdown (in pixels)
105
+ */
106
+ maxHeight = 300;
107
+ /**
108
+ * Size variant
109
+ */
110
+ size = 'md';
111
+ /**
112
+ * Appearance: default dropdown or button-like (no arrow)
113
+ */
114
+ appearance = 'dropdown';
115
+ /**
116
+ * Aesthetic variant
117
+ */
118
+ variant = 'default';
119
+ /**
120
+ * Use chips for multi-select display
121
+ */
122
+ chipView = false;
123
+ /**
124
+ * Controls visibility of the arrow icon. If false, no arrow is shown.
125
+ * Defaults to true for dropdown appearance; false when appearance is 'button'.
126
+ */
127
+ showArrow;
128
+ /**
129
+ * If true, dropdown positioning ignores transformed/positioned parent offsets.
130
+ * Use this when the menu is portaled and should stay anchored to viewport coordinates.
131
+ */
132
+ ignoreParentPosition = true;
133
+ /**
134
+ * Show clear (✕) button when a value is selected.
135
+ * - When not set (default): automatically shown for multi-select, hidden for single-select.
136
+ * - Set to `true` : always show the clear button (both single & multi).
137
+ * - Set to `false` : always hide the clear button (both single & multi).
138
+ */
139
+ clearable;
140
+ /**
141
+ * If true, the dropdown will take up the full width of its container.
142
+ */
143
+ fullWidth = false;
144
+ /**
145
+ * If true, the dropdown width fits its longest option (max-content).
146
+ */
147
+ fitContent = false;
148
+ /**
149
+ * Optional width for the dropdown options panel.
150
+ * Accepts a number (pixels) or any valid CSS width value such as `320px`, `24rem`, or `min(28rem, 90vw)`.
151
+ * By default, the menu matches the trigger width.
152
+ */
153
+ menuWidth;
154
+ /**
155
+ * Loading state
156
+ */
157
+ loading = false;
158
+ /**
159
+ * Validation state
160
+ */
161
+ invalid = false;
162
+ /**
163
+ * Helper text / validation message
164
+ */
165
+ helperText;
166
+ /**
167
+ * Error message to show when invalid
168
+ */
169
+ errorMessage;
170
+ /**
171
+ * Placeholder for the search input
172
+ */
173
+ searchPlaceholder = 'Search...';
174
+ /**
175
+ * Default icon library for option icons (e.g. 'lucide', 'ionicons')
176
+ */
177
+ iconLibrary = 'ionicons';
178
+ /**
179
+ * If true, show the full hierarchy path in selected value (for cascading)
180
+ */
181
+ showPath = false;
182
+ /** Use high-fidelity animation (Framer-like physics) */
183
+ highFidelity = true;
184
+ /** RTL support */
185
+ rtl = false;
186
+ /**
187
+ * Shape variant (inherits from design system or parent)
188
+ */
189
+ shape = 'default';
190
+ /**
191
+ * If true, shows a checkmark (tick) next to the selected item in single-select mode.
192
+ */
193
+ showSelectedMarker = true;
194
+ /**
195
+ * Custom icon for the selection marker
196
+ */
197
+ selectedMarkerIcon = 'check';
198
+ /**
199
+ * Icon library for the selection marker icon
200
+ */
201
+ selectedMarkerLibrary = 'lucide';
202
+ /**
203
+ * Optional label text shown after the checkmark on the selected item.
204
+ */
205
+ selectedMarkerLabel = '';
206
+ /**
207
+ * Color for the selection marker icon. Defaults to the selected state color token.
208
+ */
209
+ selectedMarkerColor = '';
210
+ isOpen = false;
211
+ parsedOptions = [];
212
+ selectedValues = new Set();
213
+ searchQuery = '';
214
+ expandedNodes = new Set();
215
+ dropdownPosition = 'bottom';
216
+ menuLeft = 0;
217
+ menuTop = 0;
218
+ computedMenuWidth = 0;
219
+ menuMaxHeight = 0;
220
+ highlightedIndex = -1;
221
+ nestedPath = [];
222
+ optionsRef = [];
223
+ searchInputRef;
224
+ searchDebounce;
225
+ menuElement;
226
+ rafId = null;
227
+ isPortaled = false;
228
+ handleDocumentClick = (event) => {
229
+ if (!this.isOpen)
230
+ return;
231
+ const path = event.composedPath();
232
+ const isInsideHost = path.some(node => node === this.hostElement);
233
+ const isInsideMenu = this.menuElement && path.some(node => node === this.menuElement || (node instanceof Node && this.menuElement.contains(node)));
234
+ if (!isInsideHost && !isInsideMenu) {
235
+ this.closeDropdown();
236
+ }
237
+ };
238
+ /**
239
+ * If true, all nodes in a cascading dropdown will be expanded by default.
240
+ */
241
+ expandAll = false;
242
+ /**
243
+ * If true, shows a skeleton loading state for the trigger
244
+ */
245
+ skeleton = false;
246
+ /**
247
+ * If true, shows a "Select All" option in multi-select mode
248
+ */
249
+ showSelectAll = false;
250
+ /**
251
+ * Label for the Select All option
252
+ */
253
+ selectAllLabel = 'Select All';
254
+ /**
255
+ * Custom text color for the dropdown display
256
+ */
257
+ textColor = '';
258
+ /**
259
+ * If true, enables virtual scrolling (renders only a subset of items for performance)
260
+ */
261
+ virtualScroll = false;
262
+ /**
263
+ * If true, search filtering is case-sensitive
264
+ */
265
+ caseSensitive = false;
266
+ /**
267
+ * Label text shown above the dropdown
268
+ */
269
+ label = '';
270
+ /**
271
+ * Emitted when value changes
272
+ */
273
+ valueChange;
274
+ /**
275
+ * Emitted when dropdown opens
276
+ */
277
+ dropdownOpen;
278
+ /**
279
+ * Emitted when dropdown closes
280
+ */
281
+ dropdownClose;
282
+ handleOptionsChange(newValue) {
283
+ this.parseOptions(newValue);
284
+ this.syncNestedPath();
285
+ }
286
+ handleValueChange(newValue) {
287
+ this.updateSelectedValues(newValue);
288
+ this.syncNestedPath();
289
+ }
290
+ handleSearchQueryChange() {
291
+ clearTimeout(this.searchDebounce);
292
+ this.searchDebounce = setTimeout(() => {
293
+ const count = this.getVisibleOptionCount();
294
+ ariaLive.announce(`${count} option${count !== 1 ? 's' : ''} found`);
295
+ }, 300);
296
+ }
297
+ componentWillLoad() {
298
+ this.parseOptions(this.options);
299
+ this.updateSelectedValues(this.value);
300
+ this.syncNestedPath();
301
+ if (this.expandAll && this.cascading) {
302
+ this.expandAllNodes(this.parsedOptions);
303
+ }
304
+ }
305
+ expandAllNodes(options) {
306
+ options.forEach(opt => {
307
+ if (opt.children) {
308
+ this.expandedNodes.add(opt.value.toString());
309
+ this.expandAllNodes(opt.children);
310
+ }
311
+ });
312
+ this.expandedNodes = new Set(this.expandedNodes);
313
+ }
314
+ /**
315
+ * Programmatically open the dropdown menu
316
+ */
317
+ async open() {
318
+ if (!this.isOpen) {
319
+ this.toggleDropdown();
320
+ }
321
+ }
322
+ componentDidUpdate() {
323
+ if (this.isOpen && this.menuElement) {
324
+ this.calculateDropdownPosition();
325
+ }
326
+ }
327
+ connectedCallback() {
328
+ this.handleViewportChange = this.handleViewportChange.bind(this);
329
+ window.addEventListener('scroll', this.handleViewportChange, true);
330
+ window.addEventListener('resize', this.handleViewportChange);
331
+ document.addEventListener('click', this.handleDocumentClick, true);
332
+ window.addEventListener('popstate', this.closeDropdown);
333
+ window.addEventListener('hashchange', this.closeDropdown);
334
+ }
335
+ disconnectedCallback() {
336
+ window.removeEventListener('scroll', this.handleViewportChange, true);
337
+ window.removeEventListener('resize', this.handleViewportChange);
338
+ document.removeEventListener('click', this.handleDocumentClick, true);
339
+ window.removeEventListener('popstate', this.closeDropdown);
340
+ window.removeEventListener('hashchange', this.closeDropdown);
341
+ this.cleanupPortal();
342
+ }
343
+ getOptionId(index) {
344
+ return `dropdown-option-${index}`;
345
+ }
346
+ handleKeyDown = (event) => {
347
+ if (this.disabled)
348
+ return;
349
+ if (!this.searchable && event.key.length === 1 && this.isOpen) {
350
+ const char = event.key.toLowerCase();
351
+ const flatOptions = this.getVisibleOptions();
352
+ const startIndex = this.highlightedIndex + 1;
353
+ const searchList = [...flatOptions.slice(startIndex), ...flatOptions.slice(0, startIndex)];
354
+ const matchIndex = searchList.findIndex(o => (o.label ?? '').toLowerCase().startsWith(char));
355
+ if (matchIndex !== -1) {
356
+ let trueIndex = startIndex + matchIndex;
357
+ if (trueIndex >= flatOptions.length)
358
+ trueIndex -= flatOptions.length;
359
+ this.highlightedIndex = trueIndex;
360
+ this.scrollToHighlighted();
361
+ ariaLive.announce(flatOptions[trueIndex].label ?? '');
362
+ }
363
+ return;
364
+ }
365
+ switch (event.key) {
366
+ case 'Enter':
367
+ case ' ':
368
+ if (!this.isOpen) {
369
+ event.preventDefault();
370
+ this.toggleDropdown();
371
+ }
372
+ else if (this.highlightedIndex >= 0) {
373
+ event.preventDefault();
374
+ const flatOptions = this.getVisibleOptions();
375
+ if (flatOptions[this.highlightedIndex]) {
376
+ this.handleOptionClick(flatOptions[this.highlightedIndex], event);
377
+ }
378
+ }
379
+ break;
380
+ case 'ArrowDown':
381
+ event.preventDefault();
382
+ if (!this.isOpen) {
383
+ this.toggleDropdown();
384
+ }
385
+ else {
386
+ const count = this.getVisibleOptionCount();
387
+ this.highlightedIndex = Math.min(this.highlightedIndex + 1, count - 1);
388
+ this.scrollToHighlighted();
389
+ }
390
+ break;
391
+ case 'ArrowUp':
392
+ event.preventDefault();
393
+ if (this.isOpen) {
394
+ this.highlightedIndex = Math.max(this.highlightedIndex - 1, 0);
395
+ this.scrollToHighlighted();
396
+ }
397
+ break;
398
+ case 'Escape':
399
+ if (this.isOpen) {
400
+ event.preventDefault();
401
+ this.closeDropdown();
402
+ this.hostElement.shadowRoot?.querySelector('.dropdown-trigger')?.focus();
403
+ }
404
+ break;
405
+ case 'Tab':
406
+ if (this.isOpen) {
407
+ this.closeDropdown();
408
+ }
409
+ break;
410
+ }
411
+ };
412
+ getVisibleOptions() {
413
+ if (this.isNestedMenuVariant()) {
414
+ return this.getNestedMenuLevels(this.filterOptions(this.parsedOptions)).flat();
415
+ }
416
+ const flatOptions = [];
417
+ const flatten = (opts) => {
418
+ opts.forEach(o => {
419
+ flatOptions.push(o);
420
+ if (o.children && (this.expandedNodes.has(o.value?.toString() ?? '') || this.searchQuery)) {
421
+ flatten(o.children);
422
+ }
423
+ });
424
+ };
425
+ if (this.cascading)
426
+ flatten(this.filterOptions(this.parsedOptions));
427
+ else {
428
+ const filtered = this.filterOptions(this.parsedOptions);
429
+ filtered.forEach(o => flatOptions.push(o));
430
+ }
431
+ return flatOptions;
432
+ }
433
+ getVisibleOptionCount() {
434
+ return this.getVisibleOptions().length;
435
+ }
436
+ scrollToHighlighted() {
437
+ const optionEl = this.optionsRef[this.highlightedIndex];
438
+ if (optionEl) {
439
+ optionEl.scrollIntoView({ block: 'nearest' });
440
+ }
441
+ }
442
+ isNestedMenuVariant() {
443
+ return this.variant === 'nested-menu' && this.cascading && !this.searchQuery;
444
+ }
445
+ findOptionPathByValue(options, targetValue, path = []) {
446
+ for (const option of options) {
447
+ const currentValue = option.value?.toString() ?? '';
448
+ const nextPath = currentValue ? [...path, currentValue] : [...path];
449
+ if (currentValue === targetValue) {
450
+ return nextPath;
451
+ }
452
+ if (option.children) {
453
+ const childPath = this.findOptionPathByValue(option.children, targetValue, nextPath);
454
+ if (childPath) {
455
+ return childPath;
456
+ }
457
+ }
458
+ }
459
+ return null;
460
+ }
461
+ syncNestedPath() {
462
+ if (this.variant !== 'nested-menu' || !this.cascading) {
463
+ this.nestedPath = [];
464
+ return;
465
+ }
466
+ const selectedValue = Array.from(this.selectedValues)[0];
467
+ if (!selectedValue) {
468
+ this.nestedPath = [];
469
+ return;
470
+ }
471
+ this.nestedPath = this.findOptionPathByValue(this.parsedOptions, selectedValue) ?? [];
472
+ }
473
+ setNestedPath(level, value) {
474
+ const nextPath = this.nestedPath.slice(0, level);
475
+ nextPath[level] = value;
476
+ this.nestedPath = nextPath;
477
+ }
478
+ getNestedMenuLevels(options) {
479
+ const levels = [];
480
+ let currentOptions = options;
481
+ if (currentOptions.length > 0) {
482
+ levels.push(currentOptions);
483
+ }
484
+ for (let level = 0; level < this.nestedPath.length; level++) {
485
+ const activeValue = this.nestedPath[level];
486
+ const activeOption = currentOptions.find(option => (option.value?.toString() ?? '') === activeValue);
487
+ if (!activeOption?.children?.length) {
488
+ break;
489
+ }
490
+ currentOptions = activeOption.children;
491
+ levels.push(currentOptions);
492
+ }
493
+ return levels;
494
+ }
495
+ getNestedMenuEstimatedWidth() {
496
+ const perPanelWidth = this.size === 'sm' ? 190 : this.size === 'lg' ? 260 : 220;
497
+ const levelCount = Math.max(1, this.getNestedMenuLevels(this.filterOptions(this.parsedOptions)).length);
498
+ return perPanelWidth * levelCount;
499
+ }
500
+ parseOptions(options) {
501
+ let rawOptions = [];
502
+ if (typeof options === 'string' && options.length > 0) {
503
+ try {
504
+ rawOptions = JSON.parse(options);
505
+ }
506
+ catch (error) {
507
+ console.error('Invalid JSON for dropdown options:', error);
508
+ rawOptions = [];
509
+ }
510
+ }
511
+ else if (Array.isArray(options) && options.length > 0) {
512
+ rawOptions = options;
513
+ }
514
+ else {
515
+ // Fallback: Parse native <option> tags from children
516
+ const nativeOptions = Array.from(this.hostElement.querySelectorAll('option'));
517
+ if (nativeOptions.length > 0) {
518
+ rawOptions = nativeOptions.map(opt => ({
519
+ label: opt.textContent || '',
520
+ value: opt.value || opt.textContent || '',
521
+ disabled: opt.disabled,
522
+ ...(opt.dataset.icon ? { icon: opt.dataset.icon } : {}),
523
+ ...(opt.dataset.subtitle ? { subtitle: opt.dataset.subtitle } : {}),
524
+ ...(opt.dataset.description ? { description: opt.dataset.description } : {}),
525
+ ...(opt.dataset.group ? { group: opt.dataset.group } : {}),
526
+ }));
527
+ }
528
+ else {
529
+ rawOptions = [];
530
+ }
531
+ }
532
+ // Transform DropdownGroup to flat list with 'group' property if detected
533
+ const transformed = [];
534
+ rawOptions.forEach(opt => {
535
+ if (opt.options && Array.isArray(opt.options)) {
536
+ // This is a group
537
+ opt.options.forEach((child) => {
538
+ transformed.push({ ...child, group: opt.label });
539
+ });
540
+ }
541
+ else {
542
+ // This is a direct option
543
+ transformed.push(opt);
544
+ }
545
+ });
546
+ this.parsedOptions = transformed;
547
+ }
548
+ updateSelectedValues(valueString) {
549
+ if (!valueString) {
550
+ this.selectedValues = new Set();
551
+ }
552
+ else if (this.multiSelect) {
553
+ this.selectedValues = new Set(valueString.split(',').filter(v => v));
554
+ }
555
+ else {
556
+ this.selectedValues = new Set([valueString]);
557
+ }
558
+ }
559
+ toggleDropdown = () => {
560
+ if (this.disabled)
561
+ return;
562
+ // Only open if trigger is visible
563
+ const trigger = (this.hostElement.shadowRoot?.querySelector('.dropdown-trigger') || this.hostElement.querySelector('.dropdown-trigger'));
564
+ if (!trigger)
565
+ return;
566
+ const rect = trigger.getBoundingClientRect();
567
+ if (rect.width === 0 && rect.height === 0)
568
+ return;
569
+ this.isOpen = !this.isOpen;
570
+ if (this.isOpen) {
571
+ this.dropdownOpen.emit();
572
+ this.highlightedIndex = -1;
573
+ if (this.variant === 'nested-menu' && this.cascading) {
574
+ this.syncNestedPath();
575
+ }
576
+ this.schedulePositionUpdate();
577
+ if (!this.multiSelect && this.selectedValues.size > 0) {
578
+ const visible = this.getVisibleOptions();
579
+ const idx = visible.findIndex(o => this.selectedValues.has(o.value?.toString() ?? ''));
580
+ if (idx !== -1)
581
+ this.highlightedIndex = idx;
582
+ }
583
+ setTimeout(() => {
584
+ this.calculateDropdownPosition(); // Force recalculation after paint
585
+ if (this.searchable && this.searchInputRef) {
586
+ this.searchInputRef.focus();
587
+ }
588
+ }, 50);
589
+ }
590
+ else {
591
+ this.closeDropdown();
592
+ }
593
+ };
594
+ /**
595
+ * Schedule position updates after the menu element renders.
596
+ * Since the trigger has a CSS transition (0.2s), we re-calculate for 250ms
597
+ * to ensure the menu stays perfectly aligned as the transition progresses.
598
+ */
599
+ schedulePositionUpdate() {
600
+ if (this.rafId !== null) {
601
+ cancelAnimationFrame(this.rafId);
602
+ }
603
+ const startTime = performance.now();
604
+ const update = (now) => {
605
+ if (!this.isOpen) {
606
+ this.rafId = null;
607
+ return;
608
+ }
609
+ this.calculateDropdownPosition();
610
+ // Continue updating during the transition period (250ms)
611
+ if (now - startTime < 250) {
612
+ this.rafId = requestAnimationFrame(update);
613
+ }
614
+ else {
615
+ this.rafId = null;
616
+ }
617
+ };
618
+ this.rafId = requestAnimationFrame(update);
619
+ }
620
+ cleanupPortal() {
621
+ if (this.rafId !== null) {
622
+ cancelAnimationFrame(this.rafId);
623
+ this.rafId = null;
624
+ }
625
+ if (this.isPortaled && this.menuElement && this.menuElement.parentElement === document.body) {
626
+ this.hostElement.appendChild(this.menuElement);
627
+ this.isPortaled = false;
628
+ }
629
+ }
630
+ handleViewportChange() {
631
+ if (this.isOpen) {
632
+ this.calculateDropdownPosition();
633
+ }
634
+ }
635
+ parseConfiguredMenuWidth() {
636
+ if (this.menuWidth === undefined || this.menuWidth === null) {
637
+ return {};
638
+ }
639
+ if (typeof this.menuWidth === 'number' && Number.isFinite(this.menuWidth)) {
640
+ return {
641
+ cssWidth: `${this.menuWidth}px`,
642
+ pixelWidth: this.menuWidth,
643
+ };
644
+ }
645
+ const rawWidth = String(this.menuWidth).trim();
646
+ if (!rawWidth) {
647
+ return {};
648
+ }
649
+ if (/^\d+(?:\.\d+)?$/.test(rawWidth)) {
650
+ const pxValue = Number(rawWidth);
651
+ return {
652
+ cssWidth: `${pxValue}px`,
653
+ pixelWidth: pxValue,
654
+ };
655
+ }
656
+ if (/^\d+(?:\.\d+)?px$/i.test(rawWidth)) {
657
+ return {
658
+ cssWidth: rawWidth,
659
+ pixelWidth: parseFloat(rawWidth),
660
+ };
661
+ }
662
+ return { cssWidth: rawWidth };
663
+ }
664
+ getMenuStyle(usesLocalMenuPosition) {
665
+ const configuredWidth = this.parseConfiguredMenuWidth();
666
+ const measuredWidth = this.computedMenuWidth > 0 ? `${this.computedMenuWidth}px` : undefined;
667
+ const effectiveMaxHeight = this.menuMaxHeight > 0 ? this.menuMaxHeight : (this.maxHeight || 300);
668
+ const baseStyles = {
669
+ left: `${this.menuLeft}px`,
670
+ maxWidth: 'calc(100vw - 16px)',
671
+ maxHeight: `${effectiveMaxHeight}px`,
672
+ visibility: usesLocalMenuPosition ? 'visible' : (this.menuLeft === 0 && this.menuTop === 0 ? 'hidden' : 'visible'),
673
+ top: `${this.menuTop}px`,
674
+ };
675
+ // User explicitly set a width via menuWidth prop — honour it exactly.
676
+ if (configuredWidth.cssWidth) {
677
+ return {
678
+ ...baseStyles,
679
+ width: configuredWidth.cssWidth,
680
+ };
681
+ }
682
+ // fullWidth — stretch to 100% of the container/viewport.
683
+ if (this.fullWidth) {
684
+ return {
685
+ ...baseStyles,
686
+ width: measuredWidth,
687
+ minWidth: measuredWidth,
688
+ };
689
+ }
690
+ // All other cases: size to content (widest option + reserved tick space).
691
+ return {
692
+ ...baseStyles,
693
+ width: 'max-content',
694
+ minWidth: measuredWidth,
695
+ };
696
+ }
697
+ shouldPortalMenu() {
698
+ // Always portal to document.body so the panel is positioned with fixed
699
+ // coordinates and never clipped by overflow:hidden on ancestor containers
700
+ // (e.g. ui-toolbar shadow host, demo cards, etc.)
701
+ return true;
702
+ }
703
+ calculateDropdownPosition() {
704
+ if (!this.hostElement || !this.isOpen || !this.menuElement)
705
+ return;
706
+ const trigger = (this.hostElement.shadowRoot?.querySelector('.dropdown-trigger') || this.hostElement.querySelector('.dropdown-trigger'));
707
+ if (!trigger)
708
+ return;
709
+ // Guard: Only position if trigger is visible and has size
710
+ const rect = trigger.getBoundingClientRect();
711
+ if (rect.width === 0 && rect.height === 0) {
712
+ // Hide menu if trigger is not visible
713
+ this.menuLeft = 0;
714
+ this.menuTop = 0;
715
+ this.computedMenuWidth = 0;
716
+ this.dropdownPosition = 'bottom';
717
+ return;
718
+ }
719
+ const configuredWidth = this.parseConfiguredMenuWidth();
720
+ const triggerWidth = trigger.offsetWidth || rect.width;
721
+ const placementWidth = !this.fitContent && configuredWidth.pixelWidth
722
+ ? configuredWidth.pixelWidth
723
+ : this.isNestedMenuVariant()
724
+ ? Math.max(triggerWidth, this.getNestedMenuEstimatedWidth())
725
+ : triggerWidth;
726
+ const shouldPortal = this.shouldPortalMenu();
727
+ if (shouldPortal && this.menuElement.parentElement !== document.body) {
728
+ document.body.appendChild(this.menuElement);
729
+ this.isPortaled = true;
730
+ }
731
+ else if (!shouldPortal && this.isPortaled) {
732
+ this.cleanupPortal();
733
+ }
734
+ const gap = 4;
735
+ const { left, top, placement: finalPlacement, availableHeight: spaceHeight } = calculateUniversalPlacement(trigger, {
736
+ menuWidth: placementWidth,
737
+ menuHeight: this.maxHeight || 300,
738
+ gap,
739
+ placement: 'auto',
740
+ useTransformedAncestorOffset: shouldPortal ? !this.ignoreParentPosition : true,
741
+ });
742
+ // Compute how much vertical space is actually available so the options list
743
+ // can be constrained and will show a scrollbar instead of overflowing.
744
+ const nextMaxHeight = Math.max(80, Math.min(this.maxHeight || 300, spaceHeight));
745
+ let nextLeft = left;
746
+ let nextTop = top;
747
+ if (!shouldPortal) {
748
+ // If not portaling, we need relative coordinates to host
749
+ // However, calculateUniversalPlacement already handles offsetParent.
750
+ // If host is the offsetParent, then left/top are already relative.
751
+ // If NOT, we might need adjustments.
752
+ // Re-check the previous logic: it subtracted hostRect.left.
753
+ nextLeft = left;
754
+ nextTop = top;
755
+ }
756
+ if (this.menuLeft !== nextLeft ||
757
+ this.menuTop !== nextTop ||
758
+ this.computedMenuWidth !== triggerWidth ||
759
+ this.dropdownPosition !== finalPlacement ||
760
+ this.menuMaxHeight !== nextMaxHeight) {
761
+ this.menuLeft = nextLeft;
762
+ this.menuTop = nextTop;
763
+ this.computedMenuWidth = triggerWidth;
764
+ this.dropdownPosition = finalPlacement;
765
+ this.menuMaxHeight = nextMaxHeight;
766
+ }
767
+ }
768
+ closeDropdown = () => {
769
+ if (this.isOpen) {
770
+ this.isOpen = false;
771
+ this.dropdownClose.emit();
772
+ this.searchQuery = '';
773
+ this.cleanupPortal();
774
+ }
775
+ };
776
+ handleOptionClick = (option, event) => {
777
+ event.stopPropagation();
778
+ if (option.disabled)
779
+ return;
780
+ if (this.cascading && option.children && option.children.length > 0) {
781
+ if (this.isNestedMenuVariant()) {
782
+ const visibleLevels = this.getNestedMenuLevels(this.filterOptions(this.parsedOptions));
783
+ const level = visibleLevels.findIndex(levelOptions => levelOptions.some(levelOption => (levelOption.value?.toString() ?? '') === (option.value?.toString() ?? '')));
784
+ this.setNestedPath(level === -1 ? 0 : level, option.value?.toString() ?? '');
785
+ return;
786
+ }
787
+ this.toggleNode(option.value?.toString() ?? '');
788
+ return;
789
+ }
790
+ if (this.multiSelect) {
791
+ const newSelected = new Set(this.selectedValues);
792
+ const stringValue = option.value?.toString() ?? '';
793
+ if (newSelected.has(stringValue)) {
794
+ newSelected.delete(stringValue);
795
+ ariaLive.announce(`Deselected ${option.label}`);
796
+ }
797
+ else {
798
+ newSelected.add(stringValue);
799
+ ariaLive.announce(`Selected ${option.label}`);
800
+ }
801
+ this.selectedValues = newSelected;
802
+ this.value = Array.from(newSelected).join(',');
803
+ }
804
+ else {
805
+ const val = option.value?.toString() ?? '';
806
+ this.selectedValues = new Set([val]);
807
+ this.value = val;
808
+ this.closeDropdown();
809
+ this.hostElement.shadowRoot?.querySelector('.dropdown-trigger')?.focus();
810
+ ariaLive.announce(`Selected ${option.label}`);
811
+ }
812
+ this.emitChangeEvent();
813
+ };
814
+ toggleNode = (value) => {
815
+ const newExpanded = new Set(this.expandedNodes);
816
+ if (newExpanded.has(value)) {
817
+ newExpanded.delete(value);
818
+ }
819
+ else {
820
+ newExpanded.add(value);
821
+ }
822
+ this.expandedNodes = newExpanded;
823
+ };
824
+ handleClear = (event) => {
825
+ event.stopPropagation();
826
+ this.selectedValues = new Set();
827
+ this.value = '';
828
+ this.emitChangeEvent();
829
+ this.hostElement.shadowRoot?.querySelector('.dropdown-trigger')?.focus();
830
+ };
831
+ handleSearchInput = (event) => {
832
+ const input = event.target;
833
+ this.searchQuery = input.value.toLowerCase();
834
+ };
835
+ emitChangeEvent() {
836
+ const selectedOptions = this.getSelectedOptions();
837
+ this.valueChange.emit({
838
+ value: this.value,
839
+ selectedOptions,
840
+ });
841
+ }
842
+ getSelectedOptions() {
843
+ const selected = [];
844
+ const findSelected = (options) => {
845
+ options.forEach(option => {
846
+ if (this.selectedValues.has(option.value?.toString() ?? '')) {
847
+ selected.push(option);
848
+ }
849
+ if (option.children) {
850
+ findSelected(option.children);
851
+ }
852
+ });
853
+ };
854
+ findSelected(this.parsedOptions);
855
+ return selected;
856
+ }
857
+ getSelectedDescendantCount(option) {
858
+ if (!option.children)
859
+ return 0;
860
+ let count = 0;
861
+ const countSelected = (options) => {
862
+ options.forEach(o => {
863
+ if (this.selectedValues.has(o.value?.toString() ?? ''))
864
+ count++;
865
+ if (o.children)
866
+ countSelected(o.children);
867
+ });
868
+ };
869
+ countSelected(option.children);
870
+ return count;
871
+ }
872
+ filterOptions(options) {
873
+ if (!this.searchQuery)
874
+ return options;
875
+ return options
876
+ .filter(option => {
877
+ const query = this.caseSensitive ? this.searchQuery : this.searchQuery.toLowerCase();
878
+ const label = this.caseSensitive ? (option.label ?? '') : (option.label ?? '').toLowerCase();
879
+ const subtitle = this.caseSensitive ? (option.subtitle || '') : (option.subtitle || '').toLowerCase();
880
+ const description = this.caseSensitive ? (option.description || '') : (option.description || '').toLowerCase();
881
+ const group = this.caseSensitive ? (option.group || '') : (option.group || '').toLowerCase();
882
+ const matchesLabel = label.includes(query);
883
+ const matchesSubtitle = subtitle.includes(query);
884
+ const matchesDesc = description.includes(query);
885
+ const matchesGroup = group.includes(query);
886
+ const hasMatchingChildren = option.children && this.filterOptions(option.children).length > 0;
887
+ return matchesLabel || matchesSubtitle || matchesDesc || matchesGroup || hasMatchingChildren;
888
+ })
889
+ .map(option => ({
890
+ ...option,
891
+ children: option.children ? this.filterOptions(option.children) : undefined,
892
+ }));
893
+ }
894
+ getIconSize(type) {
895
+ const sizes = {
896
+ sm: { main: '14px', sub: '12px', marker: '16px' },
897
+ md: { main: '16px', sub: '14px', marker: '18px' },
898
+ lg: { main: '18px', sub: '16px', marker: '20px' },
899
+ };
900
+ // Defensive: fallback to 'md' if size is not a key
901
+ let safeSize = 'md';
902
+ if (this.size === 'sm' || this.size === 'md' || this.size === 'lg') {
903
+ safeSize = this.size;
904
+ }
905
+ return sizes[safeSize][type];
906
+ }
907
+ highlightMatches(text) {
908
+ if (!this.searchQuery || !text)
909
+ return text;
910
+ const query = this.searchQuery.toLowerCase();
911
+ const index = text.toLowerCase().indexOf(query);
912
+ if (index === -1)
913
+ return text;
914
+ return (h("span", null, text.substring(0, index), h("span", { class: "dropdown-search-highlight" }, text.substring(index, index + query.length)), text.substring(index + query.length)));
915
+ }
916
+ renderOption(option, level = 0, indexObj = { current: 0 }) {
917
+ if (option.isSeparator) {
918
+ return h("div", { class: "dropdown-separator" });
919
+ }
920
+ const isSelected = this.selectedValues.has(option.value?.toString() ?? '');
921
+ const hasChildren = !!(this.cascading && option.children && option.children.length > 0);
922
+ const myIndex = indexObj.current;
923
+ indexObj.current++;
924
+ const isHighlighted = myIndex === this.highlightedIndex;
925
+ const optionId = this.getOptionId(myIndex);
926
+ return (h("div", { class: "dropdown-option-wrapper", key: option.value?.toString() ?? '', role: "option", id: optionId, "aria-selected": isSelected ? 'true' : 'false' }, h("div", { class: {
927
+ 'ui-dropdown-option': true,
928
+ 'dropdowndata': true,
929
+ 'ui-dropdown-option-selected': isSelected,
930
+ 'dropdown-option-highlighted': isHighlighted,
931
+ 'dropdown-option-disabled': !!option.disabled,
932
+ 'dropdown-option-parent': hasChildren
933
+ }, style: {
934
+ paddingLeft: `${16}px`,
935
+ display: 'flex',
936
+ flexDirection: 'row',
937
+ alignItems: 'center',
938
+ justifyContent: 'space-between',
939
+ gap: '12px',
940
+ boxSizing: 'border-box',
941
+ width: '100%',
942
+ whiteSpace: 'nowrap',
943
+ ...(isSelected ? { backgroundColor: 'var(--dd-selected-bg)', color: 'var(--dd-selected-text)', borderRadius: '12px' } : {})
944
+ }, onClick: (e) => this.handleOptionClick(option, e), ref: (el) => {
945
+ if (el)
946
+ this.optionsRef[myIndex] = el;
947
+ } }, ((this.multiSelect && !hasChildren) || option.icon) && (h("div", { class: "dropdown-option-left" }, this.multiSelect && !hasChildren && (h("div", { class: { 'dropdown-checkbox': true, 'checked': isSelected, 'dropdown-checkbox-selected': isSelected } }, isSelected && h("ui-icon", { name: "check", library: "lucide", size: this.getIconSize('sub'), color: "white" }))), option.icon && (h("span", { class: "dropdown-option-icon" }, typeof option.icon === 'string' ? (h("ui-icon", { name: option.icon, library: option.iconLibrary, size: this.getIconSize('main') })) : (option.icon))))), h("div", { class: "dropdown-option-text" }, h("div", { class: { 'dropdown-option-content': true, 'dropdown-content-parent': hasChildren } }, h("div", { class: "dropdown-option-label" }, this.highlightMatches(option.label ?? '')), (option.subtitle || option.description) && (h("div", { class: "dropdown-option-subtitle" }, this.highlightMatches(option.subtitle ?? option.description ?? ''))))), h("div", { class: "dropdown-option-right" }, option.rightTag && (h("ui-tag", { label: option.rightTag, color: option.rightTagColor || 'default', size: "sm", variant: "light", class: "dropdown-option-tag" })), option.rightIcon && (h("span", { class: "dropdown-option-right-icon" }, h("ui-icon", { name: option.rightIcon, library: option.rightIconLibrary, size: this.getIconSize('sub') }))), hasChildren && (h("div", { class: "dropdown-expand-group" }, this.multiSelect && ((() => {
948
+ const count = this.getSelectedDescendantCount(option);
949
+ return count > 0 ? h("span", { class: "dropdown-badge" }, count) : null;
950
+ })()), h("ui-icon", { name: "chevron-right", library: "lucide", size: this.getIconSize('sub'), class: { 'dropdown-expand-icon': true, 'expanded': this.expandedNodes.has(option.value?.toString() ?? '') } }))), !this.multiSelect && !hasChildren && this.showSelectedMarker && (h("span", { class: "ui-dropdown-selected-marker-wrap", style: !isSelected ? { visibility: 'hidden' } : {} }, h("ui-icon", { name: this.selectedMarkerIcon, library: this.selectedMarkerLibrary, size: this.getIconSize('marker'), class: "ui-dropdown-selected-marker", color: this.selectedMarkerColor || 'var(--dd-selected-icon)' }), this.selectedMarkerLabel && h("span", { class: "ui-dropdown-selected-marker-label" }, this.selectedMarkerLabel))))), hasChildren && this.expandedNodes.has(option.value?.toString() ?? '') && (h("div", { class: "dropdown-children" }, option.children?.map(child => this.renderOption(child, level + 1, indexObj))))));
951
+ }
952
+ renderChips() {
953
+ const selectedOptions = this.getSelectedOptions();
954
+ if (selectedOptions.length === 0)
955
+ return this.placeholder;
956
+ return (h("div", { class: "dropdown-chips" }, selectedOptions.map(option => (h("ui-tag", { label: option.label ?? '', size: "sm", color: "primary", variant: "light", removable: true, animation: "slide", onTagRemove: (e) => {
957
+ e.stopPropagation();
958
+ this.handleOptionClick(option, e);
959
+ } })))));
960
+ }
961
+ getDisplayText() {
962
+ if (this.selectedValues.size === 0) {
963
+ return this.placeholder;
964
+ }
965
+ if (this.multiSelect) {
966
+ if (this.chipView)
967
+ return this.renderChips();
968
+ const selectedOptions = this.getSelectedOptions();
969
+ if (selectedOptions.length === 1) {
970
+ return selectedOptions[0].label;
971
+ }
972
+ return `${selectedOptions.length} items selected`;
973
+ }
974
+ else {
975
+ const selectedOptions = this.getSelectedOptions();
976
+ if (selectedOptions.length > 0) {
977
+ const option = selectedOptions[0];
978
+ if (this.variant === 'detailed' && option.icon) {
979
+ return (h("div", { class: "dropdown-trigger-content" }, h("ui-icon", { name: option.icon, library: option.iconLibrary || this.iconLibrary, size: "18px", class: "dropdown-trigger-icon" }), h("span", { class: "dropdown-trigger-label" }, option.label)));
980
+ }
981
+ return option.label;
982
+ }
983
+ return this.placeholder;
984
+ }
985
+ }
986
+ renderValidationSubstrate() {
987
+ if (this.invalid && this.errorMessage) {
988
+ return (h("div", { class: "dropdown-helper-text dropdown-error-text" }, h("ui-icon", { name: "alert-circle", library: "lucide", size: "12px" }), h("span", null, this.errorMessage)));
989
+ }
990
+ if (this.helperText) {
991
+ return h("div", { class: "dropdown-helper-text" }, this.helperText);
992
+ }
993
+ return null;
994
+ }
995
+ render() {
996
+ if (this.skeleton) {
997
+ return (h("div", { class: { 'dropdown-container': true, 'dropdown-skeleton': true, [`dropdown-${this.size}`]: true, 'dropdown-full-width': this.fullWidth, 'dropdown-fit-content': this.fitContent, [`variant-${this.variant}`]: true } }, h("div", { class: "dropdown-trigger" }, h("div", { class: "dropdown-skeleton-text" }), h("div", { class: "dropdown-skeleton-icon" }))));
998
+ }
999
+ const filteredOptions = this.filterOptions(this.parsedOptions);
1000
+ const hasSelection = this.selectedValues.size > 0;
1001
+ const showArrow = this.showArrow !== undefined ? this.showArrow : this.appearance !== 'button';
1002
+ const effectiveClearable = this.clearable !== undefined ? this.clearable : (this.multiSelect && !this.chipView);
1003
+ const indexObj = { current: 0 };
1004
+ const activeDescendantId = this.isOpen && this.highlightedIndex >= 0 ? this.getOptionId(this.highlightedIndex) : undefined;
1005
+ const usesLocalMenuPosition = !this.shouldPortalMenu();
1006
+ // Always use theme variable for text color unless textColor is set and not placeholder
1007
+ let displayStyle = {};
1008
+ if (this.textColor && hasSelection) {
1009
+ displayStyle.color = this.textColor;
1010
+ }
1011
+ else {
1012
+ displayStyle.color = 'var(--dd-text, var(--color-on-surface, #10213a))';
1013
+ }
1014
+ return (h("div", { class: {
1015
+ 'dropdown-container': true,
1016
+ [`dropdown-${this.size}`]: true,
1017
+ [`variant-${this.variant}`]: true,
1018
+ 'dropdown-disabled': this.disabled,
1019
+ 'dropdown-open': this.isOpen,
1020
+ 'dropdown-invalid': this.invalid,
1021
+ 'dropdown-appearance-button': this.appearance === 'button',
1022
+ 'dropdown-full-width': this.fullWidth,
1023
+ 'dropdown-fit-content': this.fitContent,
1024
+ 'dropdown-has-chips': this.chipView && this.multiSelect && hasSelection,
1025
+ 'dropdown-rtl': this.rtl,
1026
+ [`dropdown-shape-${this.shape}`]: this.shape !== 'default',
1027
+ }, dir: this.rtl ? 'rtl' : 'ltr' }, this.label && h("label", { class: "dropdown-label" }, this.label), h("div", { class: "dropdown-trigger", onClick: this.toggleDropdown, onKeyDown: this.handleKeyDown, tabIndex: this.disabled ? -1 : 0, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": "dropdown-list", "aria-label": this.placeholder, "aria-activedescendant": activeDescendantId }, h("slot", { name: "prefix" }), h("div", { class: {
1028
+ 'dropdown-display': true,
1029
+ 'dropdown-placeholder': !hasSelection,
1030
+ }, style: displayStyle }, this.getDisplayText()), h("div", { class: "dropdown-icons" }, this.loading && h("span", { class: "dropdown-spinner" }, h("ui-icon", { name: "loader-2", library: "lucide", spin: true, size: "16px" })), hasSelection && effectiveClearable && !this.disabled && (h("span", { class: "dropdown-clear", onClick: this.handleClear, tabIndex: 0, role: "button", "aria-label": "Clear selection", onKeyDown: e => {
1031
+ if (e.key === 'Enter' || e.key === ' ') {
1032
+ e.stopPropagation();
1033
+ this.handleClear(e);
1034
+ }
1035
+ } }, h("ui-icon", { name: "x", library: "lucide", size: this.getIconSize('sub') }))), showArrow && (h("ui-icon", { name: "chevron-down", library: "lucide", size: this.getIconSize('sub'), class: { 'dropdown-arrow': true, 'open': this.isOpen } })))), this.renderValidationSubstrate(), this.isOpen && (h("div", { class: {
1036
+ 'ui-dropdown-menu': true,
1037
+ 'ui-dropdown-menu--local': usesLocalMenuPosition,
1038
+ 'dropdown-menu-top': this.dropdownPosition === 'top',
1039
+ [`dropdown-menu-${this.size}`]: true,
1040
+ [`dropdown-menu-variant-${this.variant}`]: true,
1041
+ 'dropdown-menu-searchable': this.searchable,
1042
+ 'dropdown-menu-cascading': this.cascading,
1043
+ }, id: "dropdown-list", role: "listbox", "aria-multiselectable": this.multiSelect ? 'true' : 'false', ref: el => {
1044
+ if (el)
1045
+ this.menuElement = el;
1046
+ }, style: this.getMenuStyle(usesLocalMenuPosition) }, this.searchable && (h("div", { class: "dropdown-search" }, h("div", { class: "dropdown-search-container" }, h("ui-icon", { name: "search", library: "lucide", size: "16px", class: "dropdown-search-icon" }), h("input", { type: "text", class: "dropdown-search-input", placeholder: this.searchPlaceholder, value: this.searchQuery, onInput: this.handleSearchInput, ref: el => {
1047
+ if (el)
1048
+ this.searchInputRef = el;
1049
+ }, onKeyDown: this.handleKeyDown, "aria-activedescendant": activeDescendantId })))), h("div", { class: "dropdown-options" }, this.renderBulkActions(filteredOptions), filteredOptions.length > 0 ? this.renderMenuContents(filteredOptions, indexObj) : (h("div", { class: "dropdown-empty" }, h("slot", { name: "empty-state" }, "No options found"))))))));
1050
+ }
1051
+ isAllSelected(options) {
1052
+ const flattenOptions = (opts) => {
1053
+ let result = [];
1054
+ opts.forEach(o => {
1055
+ result.push(o.value?.toString() ?? '');
1056
+ if (o.children)
1057
+ result = [...result, ...flattenOptions(o.children)];
1058
+ });
1059
+ return result;
1060
+ };
1061
+ const allValues = flattenOptions(options);
1062
+ if (allValues.length === 0)
1063
+ return false;
1064
+ return allValues.every(v => this.selectedValues.has(v));
1065
+ }
1066
+ toggleSelectAll(options) {
1067
+ const flattenOptions = (opts) => {
1068
+ let result = [];
1069
+ opts.forEach(o => {
1070
+ result.push(o.value?.toString() ?? '');
1071
+ if (o.children)
1072
+ result = [...result, ...flattenOptions(o.children)];
1073
+ });
1074
+ return result;
1075
+ };
1076
+ const allValues = flattenOptions(options);
1077
+ const isAll = this.isAllSelected(options);
1078
+ if (isAll) {
1079
+ allValues.forEach(v => this.selectedValues.delete(v));
1080
+ }
1081
+ else {
1082
+ allValues.forEach(v => this.selectedValues.add(v));
1083
+ }
1084
+ this.selectedValues = new Set(this.selectedValues);
1085
+ this.value = Array.from(this.selectedValues).join(',');
1086
+ this.emitChangeEvent();
1087
+ }
1088
+ clearAllSelections() {
1089
+ this.selectedValues = new Set();
1090
+ this.value = ''; // Assuming value should also be cleared
1091
+ this.emitChangeEvent();
1092
+ }
1093
+ renderBulkActions(filteredOptions) {
1094
+ if (!this.multiSelect || this.searchQuery)
1095
+ return null; // Only show bulk actions for multi-select when not searching
1096
+ const allSelected = this.isAllSelected(filteredOptions);
1097
+ const hasAnySelection = this.selectedValues.size > 0;
1098
+ const showSelectAllAction = this.showSelectAll && filteredOptions.length > 0;
1099
+ if (!showSelectAllAction && !hasAnySelection) {
1100
+ return null;
1101
+ }
1102
+ return (h("div", { class: "dropdown-bulk-actions" }, showSelectAllAction && (h("div", { class: { 'dropdown-select-all': true, 'dropdown-select-all-with-clear': hasAnySelection }, onClick: e => { e.stopPropagation(); this.toggleSelectAll(filteredOptions); } }, h("div", { class: { 'dropdown-checkbox': true, 'dropdown-checkbox-selected': allSelected } }, allSelected && h("ui-icon", { name: "check", library: "lucide", size: "12px" })), h("span", null, this.selectAllLabel))), hasAnySelection && (h("div", { class: "dropdown-clear-all", onClick: e => { e.stopPropagation(); this.clearAllSelections(); } }, h("ui-icon", { name: "trash-2", library: "lucide", size: "14px" }), h("span", null, "Clear All")))));
1103
+ }
1104
+ renderNestedMenuContents(options, indexObj) {
1105
+ const levels = this.getNestedMenuLevels(options);
1106
+ return (h("div", { class: "dropdown-nested-columns" }, levels.map((levelOptions, levelIndex) => (h("div", { class: "dropdown-nested-panel", key: `nested-level-${levelIndex}` }, levelOptions.map(option => {
1107
+ const hasChildren = !!option.children?.length;
1108
+ const value = option.value?.toString() ?? '';
1109
+ const isSelected = this.selectedValues.has(value);
1110
+ const isActive = this.nestedPath[levelIndex] === value;
1111
+ const myIndex = indexObj.current;
1112
+ indexObj.current++;
1113
+ const isHighlighted = myIndex === this.highlightedIndex;
1114
+ const optionId = this.getOptionId(myIndex);
1115
+ return (h("div", { class: "dropdown-option-wrapper", key: `${value}-${levelIndex}`, role: "option", id: optionId, "aria-selected": isSelected ? 'true' : 'false' }, h("div", { class: {
1116
+ 'ui-dropdown-option': true,
1117
+ 'dropdowndata': true,
1118
+ 'dropdown-nested-option': true,
1119
+ 'ui-dropdown-option-selected': isSelected,
1120
+ 'dropdown-option-highlighted': isHighlighted,
1121
+ 'dropdown-option-disabled': !!option.disabled,
1122
+ 'dropdown-option-parent': hasChildren,
1123
+ 'dropdown-nested-option-active': isActive,
1124
+ }, onMouseEnter: () => {
1125
+ if (hasChildren) {
1126
+ this.setNestedPath(levelIndex, value);
1127
+ }
1128
+ }, onClick: (e) => this.handleOptionClick(option, e), ref: (el) => {
1129
+ if (el)
1130
+ this.optionsRef[myIndex] = el;
1131
+ } }, ((this.multiSelect && !hasChildren) || option.icon) && (h("div", { class: "dropdown-option-left" }, this.multiSelect && !hasChildren && (h("div", { class: { 'dropdown-checkbox': true, 'checked': isSelected, 'dropdown-checkbox-selected': isSelected } }, isSelected && h("ui-icon", { name: "check", library: "lucide", size: this.getIconSize('sub'), color: "white" }))), option.icon && (h("span", { class: "dropdown-option-icon" }, typeof option.icon === 'string' ? (h("ui-icon", { name: option.icon, library: option.iconLibrary, size: this.getIconSize('main') })) : (option.icon))))), h("div", { class: "dropdown-option-text" }, h("div", { class: "dropdown-option-content" }, h("div", { class: "dropdown-option-label" }, this.highlightMatches(option.label ?? '')), (option.subtitle || option.description) && (h("div", { class: "dropdown-option-subtitle" }, this.highlightMatches(option.subtitle ?? option.description ?? ''))))), h("div", { class: "dropdown-option-right" }, option.rightTag && (h("ui-tag", { label: option.rightTag, color: option.rightTagColor || 'default', size: "sm", variant: "light", class: "dropdown-option-tag" })), hasChildren && (h("ui-icon", { name: "chevron-right", library: "lucide", size: this.getIconSize('sub'), class: { 'dropdown-expand-icon': true, 'expanded': isActive } })), !this.multiSelect && !hasChildren && this.showSelectedMarker && (h("span", { class: "ui-dropdown-selected-marker-wrap", style: !isSelected ? { visibility: 'hidden' } : {} }, h("ui-icon", { name: this.selectedMarkerIcon, library: this.selectedMarkerLibrary, size: this.getIconSize('marker'), class: "ui-dropdown-selected-marker", color: this.selectedMarkerColor || 'var(--dd-selected-icon)' }), this.selectedMarkerLabel && h("span", { class: "ui-dropdown-selected-marker-label" }, this.selectedMarkerLabel)))))));
1132
+ }))))));
1133
+ }
1134
+ renderMenuContents(options, indexObj) {
1135
+ if (this.isNestedMenuVariant()) {
1136
+ return this.renderNestedMenuContents(options, indexObj);
1137
+ }
1138
+ const rendered = [];
1139
+ let lastGroup = null;
1140
+ const displayOptions = this.virtualScroll ? options.slice(0, 50) : options;
1141
+ displayOptions.forEach(option => {
1142
+ if (option.group && option.group !== lastGroup) {
1143
+ rendered.push(h("div", { class: "dropdown-group-header" }, option.group));
1144
+ lastGroup = option.group;
1145
+ }
1146
+ rendered.push(this.renderOption(option, 0, indexObj));
1147
+ });
1148
+ if (this.virtualScroll && options.length > 50) {
1149
+ rendered.push(h("div", { class: "dropdown-more-info" }, "Showing 50 of ", options.length, " items. Use search to find more."));
1150
+ }
1151
+ return rendered;
1152
+ }
1153
+ static get watchers() { return {
1154
+ "options": [{
1155
+ "handleOptionsChange": 0
1156
+ }],
1157
+ "value": [{
1158
+ "handleValueChange": 0
1159
+ }],
1160
+ "searchQuery": [{
1161
+ "handleSearchQueryChange": 0
1162
+ }]
1163
+ }; }
1164
+ };
1165
+ Dropdown.style = dropdownCss();
1166
+
1167
+ const toggleGroupCss = () => `.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}.a11y-sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}:host{display:block;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--toggle-group-gap:16px;--toggle-group-border:var(--border-subtle, #e2e8f0);--toggle-group-text:var(--text-primary, #1e293b);--toggle-group-muted:var(--color-primary, #64748b);--toggle-group-primary:var(--color-primary-hover, #2563eb);--toggle-group-danger:var(--color-danger, #ef4444)}.toggle-group-host{display:flex;flex-direction:column}.toggle-group-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.toggle-group-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;opacity:0.65;color:var(--toggle-group-text);display:flex;align-items:center}.toggle-group-label .required{color:var(--toggle-group-danger);margin-left:4px}.collapse-btn{background:transparent;border:none;cursor:pointer;padding:4px;border-radius:4px;color:var(--toggle-group-muted);transition:all 0.2s}.collapse-btn:hover{background:var(--bg-secondary, #f1f5f9);color:var(--toggle-group-text)}.search-container{position:relative;margin-bottom:16px}.search-container .search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--toggle-group-muted)}.search-container .search-input{width:100%;padding:8px 12px 8px 36px;border:1px solid var(--toggle-group-border);border-radius:8px;font-size:14px;transition:all 0.2s;outline:none}.search-container .search-input:focus{border-color:var(--toggle-group-primary);box-shadow:0 0 0 3px rgba(var(--color-primary-rgb, 37, 99, 235), 0.1)}.group-controls{display:flex;gap:12px;align-items:center;margin-bottom:16px}.group-controls .control-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:var(--bg-primary, #ffffff);border:1px solid var(--toggle-group-border);border-radius:6px;font-size:13px;font-weight:600;color:var(--toggle-group-muted);cursor:pointer;transition:all 0.2s}.group-controls .control-btn ui-icon{color:var(--toggle-group-muted)}.group-controls .control-btn:hover{background:var(--bg-primary, #f8fafc);border-color:var(--color-primary, #cbd5e1);transform:translateY(-1px);color:var(--toggle-group-text)}.max-badge{font-size:11px;background:var(--bg-secondary, #f1f5f9);color:var(--toggle-group-muted);padding:2px 8px;border-radius:9999px;font-weight:600}.group-compact{gap:8px}.group-compact .toggle-list{gap:8px}.group-compact .layout-vertical{gap:4px}.group-compact .toggle-group-header{margin-bottom:4px}.toggle-list{display:flex;gap:var(--toggle-group-gap)}.toggle-list.layout-horizontal{flex-direction:row;flex-wrap:wrap}.toggle-list.layout-vertical{flex-direction:column;gap:8px}.toggle-list.layout-grid{display:grid;gap:16px}.toggle-list{}.toggle-list.is-segmented{position:relative;background:var(--bg-secondary, #f1f5f9);padding:6px;border-radius:16px;display:inline-flex;width:fit-content;gap:0;border:none;box-shadow:0 2px 8px rgba(0, 0, 0, 0.05)}.toggle-list.is-segmented .toggle-item-wrapper{position:relative;z-index:2;padding:10px 24px;border-radius:12px;background:transparent !important;border:none !important;box-shadow:none !important;transform:none !important;flex:1;justify-content:center;transition:all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);min-width:120px;font-weight:700}.toggle-list.is-segmented .toggle-item-wrapper ui-switch{transition:color 0.3s ease;--switch-track-bg:transparent;--switch-thumb-bg:transparent;--switch-glow:none;pointer-events:none;width:100%;display:flex;justify-content:center}.toggle-list.is-segmented .toggle-item-wrapper ui-switch::part(track){opacity:0;visibility:hidden;display:none}.toggle-list.is-segmented .toggle-item-wrapper ui-switch::part(thumb){opacity:0;visibility:hidden;display:none}.toggle-list.is-segmented .toggle-item-wrapper ui-switch::part(container){margin:0;width:100%;display:flex;justify-content:center}.toggle-list.is-segmented .toggle-item-wrapper ui-switch::part(label){margin:0;width:100%;text-align:center;justify-content:center;align-items:center}.toggle-list.is-segmented .toggle-item-wrapper.is-active ui-switch::part(label){color:#ffffff !important;font-weight:700;text-shadow:0 1px 2px rgba(0, 0, 0, 0.1)}.toggle-list.is-segmented .toggle-item-wrapper:hover:not(.is-active){background:rgba(0, 0, 0, 0.03) !important}.toggle-list.is-segmented .segmented-indicator{position:absolute;top:6px;left:6px;bottom:6px;border-radius:12px;transition:transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), width 0.4s ease, background-color 0.4s ease;box-shadow:0 4px 12px rgba(0, 0, 0, 0.12);z-index:1}.toggle-item-wrapper{display:flex;align-items:center;gap:12px;padding:6px 12px;border-radius:12px;border:1px solid transparent;transition:background-color 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s ease;cursor:pointer}.toggle-item-wrapper:hover{background:rgba(var(--toggle-group-primary-rgb, 37, 99, 235), 0.03);transform:translateY(-2px);box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.05)}.toggle-item-wrapper:active{transform:scale(0.96);background:rgba(var(--toggle-group-primary-rgb, 37, 99, 235), 0.06)}.toggle-item-wrapper:focus-within{background:rgba(var(--toggle-group-primary-rgb, 37, 99, 235), 0.05);border-color:rgba(var(--toggle-group-primary-rgb, 37, 99, 235), 0.4);box-shadow:0 0 0 3px rgba(var(--toggle-group-primary-rgb, 37, 99, 235), 0.15)}.toggle-item-wrapper.is-dragging{opacity:0.5;transform:scale(0.98);background:var(--bg-secondary, #f1f5f9);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1)}.toggle-item-wrapper.is-drag-over{border-top:2px solid var(--toggle-group-primary);padding-top:2px}.toggle-item-wrapper.is-focused{background:rgba(var(--toggle-group-primary-rgb, 37, 99, 235), 0.05)}.drag-handle{cursor:grab;color:var(--toggle-group-muted);opacity:0.4}.drag-handle:hover{opacity:1}.drag-handle:active{cursor:grabbing}.error-message{margin-top:8px;font-size:13px;color:var(--toggle-group-danger);display:flex;align-items:center;gap:6px}.helper-text{margin-top:8px;font-size:13px;color:var(--toggle-group-muted)}.skeleton-container{display:flex;flex-direction:inherit;gap:16px}.skeleton-item{display:flex;align-items:center;gap:12px}.skeleton-item .skeleton-switch{width:44px;height:24px;border-radius:12px;background:var(--bg-secondary, #f1f5f9)}.skeleton-item .skeleton-text{width:120px;height:16px;border-radius:4px;background:var(--bg-secondary, #f1f5f9)}.skeleton-item{animation:pulse 1.5s infinite ease-in-out}@keyframes pulse{0%{opacity:0.6}50%{opacity:1}100%{opacity:0.6}}.group-disabled{opacity:0.5;pointer-events:none}.group-collapsed .toggle-list{display:none}`;
1168
+
1169
+ const UIToggleGroup = class {
1170
+ constructor(hostRef) {
1171
+ registerInstance(this, hostRef);
1172
+ this.toggleGroupChange = createEvent(this, "toggleGroupChange");
1173
+ this.toggleGroupSearch = createEvent(this, "toggleGroupSearch");
1174
+ this.toggleGroupReorder = createEvent(this, "toggleGroupReorder");
1175
+ this.toggleGroupCollapse = createEvent(this, "toggleGroupCollapse");
1176
+ }
1177
+ get el() { return getElement(this); }
1178
+ /** Current selected value or array of values */
1179
+ value = [];
1180
+ /** Group name for forms */
1181
+ name = '';
1182
+ /** Disabled state for the entire group */
1183
+ disabled = false;
1184
+ /** Readonly state */
1185
+ readonly = false;
1186
+ /** Required field indicator */
1187
+ required = false;
1188
+ /** Invalid state */
1189
+ invalid = false;
1190
+ /** Group label */
1191
+ label = '';
1192
+ /** Helper text below group */
1193
+ helperText = '';
1194
+ /** Error message when invalid */
1195
+ errorMessage = '';
1196
+ /** Layout orientation */
1197
+ layout = 'horizontal';
1198
+ /** Grid columns count */
1199
+ columns = 3;
1200
+ /** Selection mode */
1201
+ selectionMode = 'single';
1202
+ /** Size passed to children */
1203
+ size = 'md';
1204
+ /** Semantic color passed to children */
1205
+ color = 'primary';
1206
+ /** Material archetype passed to children */
1207
+ variant = 'solid';
1208
+ /** Shape passed to children */
1209
+ shape = 'default';
1210
+ /** Options array (label, value, icon, disabled) */
1211
+ options = [];
1212
+ /** Label position for children */
1213
+ labelPosition = 'right';
1214
+ /** Show icons in children */
1215
+ showIcons = false;
1216
+ /** Enable animations */
1217
+ enableAnimation = true;
1218
+ /** Enable keyboard navigation */
1219
+ keyboardNavigation = true;
1220
+ /** Show select all/none controls (multiple mode only) */
1221
+ showSelectAll = false;
1222
+ /** Enable search/filter */
1223
+ searchable = false;
1224
+ /** Search placeholder text */
1225
+ searchPlaceholder = 'Search toggles...';
1226
+ /** Enable drag to reorder */
1227
+ isDraggable = false;
1228
+ /** Enable expand/collapse */
1229
+ collapsible = false;
1230
+ /** Initially collapsed */
1231
+ collapsed = false;
1232
+ /** Loading state */
1233
+ loading = false;
1234
+ /** Loading text */
1235
+ loadingText = 'Loading options...';
1236
+ /** Maximum selections (multiple mode) */
1237
+ maxSelections = 0;
1238
+ /** Show skeleton loading state */
1239
+ showSkeleton = false;
1240
+ /** Number of skeletons to show */
1241
+ skeletonCount = 3;
1242
+ /** Compact mode for tighter spacing */
1243
+ compact = false;
1244
+ items = [];
1245
+ searchQuery = '';
1246
+ focusedIndex = -1;
1247
+ isCollapsed = false;
1248
+ draggedIndex = -1;
1249
+ dragOverIndex = -1;
1250
+ /** Position and dimensions of the sliding indicator (segmented mode only) */
1251
+ indicatorRect = { left: 0, top: 0, width: 0, height: 0, opacity: 0 };
1252
+ listEl;
1253
+ resizeObserver;
1254
+ internals;
1255
+ toggleGroupChange;
1256
+ toggleGroupSearch;
1257
+ toggleGroupReorder;
1258
+ toggleGroupCollapse;
1259
+ handleOptionsChange() {
1260
+ this.parseOptions();
1261
+ }
1262
+ handleValueChange() {
1263
+ this.syncToggles();
1264
+ this.updateIndicator();
1265
+ }
1266
+ componentWillLoad() {
1267
+ if (typeof this.el.attachInternals === 'function') {
1268
+ this.internals = this.el.attachInternals();
1269
+ }
1270
+ this.parseOptions();
1271
+ this.isCollapsed = this.collapsed;
1272
+ // Ensure value is array for multiple mode if not already
1273
+ if (this.selectionMode === 'multiple' && !Array.isArray(this.value)) {
1274
+ this.value = this.value ? [this.value] : [];
1275
+ }
1276
+ this.updateFormValue();
1277
+ }
1278
+ updateFormValue() {
1279
+ if (this.internals) {
1280
+ const val = Array.isArray(this.value) ? this.value.join(',') : this.value;
1281
+ this.internals.setFormValue(val);
1282
+ }
1283
+ }
1284
+ componentDidRender() {
1285
+ this.updateIndicator();
1286
+ if (!this.resizeObserver && this.el && typeof ResizeObserver !== 'undefined') {
1287
+ this.resizeObserver = new ResizeObserver(() => this.updateIndicator());
1288
+ this.resizeObserver.observe(this.el);
1289
+ }
1290
+ }
1291
+ disconnectedCallback() {
1292
+ if (this.resizeObserver) {
1293
+ this.resizeObserver.disconnect();
1294
+ this.resizeObserver = undefined;
1295
+ }
1296
+ }
1297
+ /**
1298
+ * Recalculates the position of the sliding background indicator.
1299
+ * Only active in 'segmented' variant for single-selection groups.
1300
+ */
1301
+ async updateIndicator() {
1302
+ if (this.variant !== 'segmented' || !this.listEl || this.selectionMode === 'multiple') {
1303
+ if (this.indicatorRect.opacity !== 0) {
1304
+ this.indicatorRect = { ...this.indicatorRect, opacity: 0 };
1305
+ }
1306
+ return;
1307
+ }
1308
+ // Give the DOM a tiny moment to stabilize if called during layout changes
1309
+ requestAnimationFrame(() => {
1310
+ const selectedValue = this.value;
1311
+ if (!selectedValue) {
1312
+ this.indicatorRect = { ...this.indicatorRect, opacity: 0 };
1313
+ return;
1314
+ }
1315
+ // Find the wrapper for the selected switch
1316
+ const activeItem = this.listEl?.querySelector(`.toggle-item-wrapper[data-value="${selectedValue}"]`);
1317
+ if (activeItem) {
1318
+ this.indicatorRect = {
1319
+ left: activeItem.offsetLeft,
1320
+ top: activeItem.offsetTop,
1321
+ width: activeItem.offsetWidth,
1322
+ height: activeItem.offsetHeight,
1323
+ opacity: 1
1324
+ };
1325
+ }
1326
+ else {
1327
+ this.indicatorRect = { ...this.indicatorRect, opacity: 0 };
1328
+ }
1329
+ });
1330
+ }
1331
+ parseOptions() {
1332
+ if (typeof this.options === 'string') {
1333
+ try {
1334
+ this.items = JSON.parse(this.options);
1335
+ }
1336
+ catch (e) {
1337
+ console.error('Invalid options JSON in ui-toggle-group');
1338
+ this.items = [];
1339
+ }
1340
+ }
1341
+ else {
1342
+ this.items = [...(this.options || [])];
1343
+ }
1344
+ }
1345
+ handleSwitchChange(event) {
1346
+ event.stopPropagation();
1347
+ const newValue = event.detail.value;
1348
+ const isChecked = event.detail.checked;
1349
+ if (this.selectionMode === 'single') {
1350
+ if (isChecked) {
1351
+ this.value = newValue;
1352
+ }
1353
+ else if (!this.required) {
1354
+ this.value = '';
1355
+ }
1356
+ }
1357
+ else {
1358
+ let values = Array.isArray(this.value) ? [...this.value] : [];
1359
+ if (isChecked) {
1360
+ if (this.maxSelections > 0 && values.length >= this.maxSelections) {
1361
+ // Prevent selection if max reached
1362
+ event.target.checked = false;
1363
+ return;
1364
+ }
1365
+ if (!values.includes(newValue))
1366
+ values.push(newValue);
1367
+ }
1368
+ else {
1369
+ values = values.filter(v => v !== newValue);
1370
+ }
1371
+ this.value = values;
1372
+ }
1373
+ this.toggleGroupChange.emit({ value: this.value });
1374
+ this.syncToggles();
1375
+ this.updateFormValue();
1376
+ }
1377
+ syncToggles() {
1378
+ const switches = this.el.shadowRoot?.querySelectorAll('ui-switch');
1379
+ switches?.forEach((sw) => {
1380
+ if (this.selectionMode === 'single') {
1381
+ sw.checked = sw.value === this.value;
1382
+ }
1383
+ else {
1384
+ const vals = Array.isArray(this.value) ? this.value : [];
1385
+ sw.checked = vals.includes(sw.value);
1386
+ }
1387
+ });
1388
+ }
1389
+ handleSearch = (e) => {
1390
+ this.searchQuery = e.detail.toLowerCase();
1391
+ const results = this.getFilteredItems();
1392
+ this.toggleGroupSearch.emit({ query: this.searchQuery, results });
1393
+ };
1394
+ getFilteredItems() {
1395
+ if (!this.searchQuery)
1396
+ return this.items;
1397
+ return this.items.filter(item => item.label?.toLowerCase().includes(this.searchQuery) ||
1398
+ item.value?.toLowerCase().includes(this.searchQuery));
1399
+ }
1400
+ handleSelectAll = (select) => {
1401
+ if (this.selectionMode !== 'multiple')
1402
+ return;
1403
+ if (select) {
1404
+ const allValues = this.items.map(i => i.value);
1405
+ this.value = this.maxSelections > 0 ? allValues.slice(0, this.maxSelections) : allValues;
1406
+ }
1407
+ else {
1408
+ this.value = [];
1409
+ }
1410
+ this.toggleGroupChange.emit({ value: this.value });
1411
+ this.syncToggles();
1412
+ this.updateFormValue();
1413
+ };
1414
+ toggleCollapse = () => {
1415
+ this.isCollapsed = !this.isCollapsed;
1416
+ this.toggleGroupCollapse.emit({ collapsed: this.isCollapsed });
1417
+ };
1418
+ // --- Drag & Drop ---
1419
+ onDragStart = (idx) => {
1420
+ if (!this.isDraggable)
1421
+ return;
1422
+ this.draggedIndex = idx;
1423
+ };
1424
+ onDragOver = (e, idx) => {
1425
+ if (!this.isDraggable)
1426
+ return;
1427
+ e.preventDefault();
1428
+ this.dragOverIndex = idx;
1429
+ };
1430
+ onDrop = (idx) => {
1431
+ if (!this.isDraggable || this.draggedIndex === -1)
1432
+ return;
1433
+ const newItems = [...this.items];
1434
+ const item = newItems.splice(this.draggedIndex, 1)[0];
1435
+ newItems.splice(idx, 0, item);
1436
+ this.items = newItems;
1437
+ this.toggleGroupReorder.emit({ oldIndex: this.draggedIndex, newIndex: idx, items: newItems });
1438
+ this.draggedIndex = -1;
1439
+ this.dragOverIndex = -1;
1440
+ };
1441
+ handleKeyDown = (e) => {
1442
+ if (!this.keyboardNavigation)
1443
+ return;
1444
+ const filtered = this.getFilteredItems();
1445
+ if (e.key === 'ArrowDown' || e.key === 'ArrowRight') {
1446
+ e.preventDefault();
1447
+ this.focusedIndex = (this.focusedIndex + 1) % filtered.length;
1448
+ }
1449
+ else if (e.key === 'ArrowUp' || e.key === 'ArrowLeft') {
1450
+ e.preventDefault();
1451
+ this.focusedIndex = (this.focusedIndex - 1 + filtered.length) % filtered.length;
1452
+ }
1453
+ else if (e.key === 'Enter' || e.key === ' ') {
1454
+ e.preventDefault();
1455
+ if (this.focusedIndex !== -1) {
1456
+ const item = filtered[this.focusedIndex];
1457
+ this.toggleItemValue(item.value);
1458
+ }
1459
+ }
1460
+ };
1461
+ toggleItemValue(itemValue) {
1462
+ if (this.selectionMode === 'single') {
1463
+ this.value = itemValue;
1464
+ }
1465
+ else {
1466
+ let vals = Array.isArray(this.value) ? [...this.value] : [];
1467
+ if (vals.includes(itemValue)) {
1468
+ vals = vals.filter(v => v !== itemValue);
1469
+ }
1470
+ else {
1471
+ if (this.maxSelections === 0 || vals.length < this.maxSelections) {
1472
+ vals.push(itemValue);
1473
+ }
1474
+ }
1475
+ this.value = vals;
1476
+ }
1477
+ this.toggleGroupChange.emit({ value: this.value });
1478
+ this.syncToggles();
1479
+ this.updateFormValue();
1480
+ }
1481
+ // --- Render Helpers ---
1482
+ renderLabel() {
1483
+ if (!this.label)
1484
+ return null;
1485
+ return (h("div", { class: "toggle-group-header" }, h("label", { class: "toggle-group-label" }, this.label, this.required && h("span", { class: "required" }, "*")), this.collapsible && (h("ui-button", { variant: "ghost", size: "xxs", iconOnly: true, icon: this.isCollapsed ? 'chevron-down' : 'chevron-up', iconLibrary: "lucide", iconSize: "16px", onClick: this.toggleCollapse, ariaLabel: this.isCollapsed ? 'Expand' : 'Collapse' }))));
1486
+ }
1487
+ renderSearch() {
1488
+ if (!this.searchable)
1489
+ return null;
1490
+ return (h("div", { class: "search-container" }, h("ui-icon", { name: "search", library: "lucide", size: "14px", class: "search-icon" }), h("ui-input", { type: "text", placeholder: this.searchPlaceholder, onInputChange: this.handleSearch, value: this.searchQuery, size: "sm", fullWidth: true })));
1491
+ }
1492
+ renderControls() {
1493
+ if (!this.showSelectAll || this.selectionMode !== 'multiple')
1494
+ return null;
1495
+ return (h("div", { class: "group-controls" }, h("ui-button", { variant: "ghost", size: "sm", onClick: () => this.handleSelectAll(true), icon: "check-circle", iconLibrary: "lucide", iconSize: "14px", label: "Select All", ariaLabel: "Select All" }), h("ui-button", { variant: "ghost", size: "sm", onClick: () => this.handleSelectAll(false), icon: "x-circle", iconLibrary: "lucide", iconSize: "14px", label: "Deselect All", ariaLabel: "Deselect All" }), this.maxSelections > 0 && h("span", { class: "max-badge" }, "Max: ", this.maxSelections)));
1496
+ }
1497
+ renderLoading() {
1498
+ if (this.showSkeleton) {
1499
+ return (h("div", { class: "skeleton-container" }, Array.from({ length: this.skeletonCount }).map(() => (h("div", { class: "skeleton-item" }, h("div", { class: "skeleton-switch" }), h("div", { class: "skeleton-text" }))))));
1500
+ }
1501
+ if (this.loading) {
1502
+ return h("div", { class: "loading-container" }, h("ui-icon", { name: "refresh", spin: true }), " ", this.loadingText);
1503
+ }
1504
+ return null;
1505
+ }
1506
+ render() {
1507
+ const isChecked = (val) => {
1508
+ if (this.selectionMode === 'single')
1509
+ return this.value === val;
1510
+ return Array.isArray(this.value) && this.value.includes(val);
1511
+ };
1512
+ const filtered = this.getFilteredItems();
1513
+ return (h(Host, { class: {
1514
+ 'toggle-group-host': true,
1515
+ 'group-disabled': this.disabled,
1516
+ 'group-invalid': this.invalid,
1517
+ 'group-collapsed': this.isCollapsed,
1518
+ 'group-compact': this.compact,
1519
+ }, onKeyDown: this.handleKeyDown }, this.renderLabel(), this.renderSearch(), this.renderControls(), (this.loading || this.showSkeleton) ? this.renderLoading() : (!this.isCollapsed && (h("div", { class: {
1520
+ 'toggle-list': true,
1521
+ [`layout-${this.layout}`]: true,
1522
+ 'is-segmented': this.variant === 'segmented'
1523
+ }, style: this.layout === 'grid' ? { 'grid-template-columns': `repeat(${this.columns}, 1fr)` } : {}, ref: (el) => this.listEl = el }, this.variant === 'segmented' && (h("div", { class: "segmented-indicator", style: {
1524
+ transform: `translate3d(${this.indicatorRect.left}px, ${this.indicatorRect.top}px, 0)`,
1525
+ width: `${this.indicatorRect.width}px`,
1526
+ height: `${this.indicatorRect.height}px`,
1527
+ opacity: `${this.indicatorRect.opacity}`,
1528
+ backgroundColor: `var(--toggle-group-${this.color})`
1529
+ } })), filtered.map((opt, idx) => (h("div", { class: {
1530
+ 'toggle-item-wrapper': true,
1531
+ 'is-dragging': this.draggedIndex === idx,
1532
+ 'is-drag-over': this.dragOverIndex === idx,
1533
+ 'is-focused': this.focusedIndex === idx,
1534
+ 'is-active': isChecked(opt.value) && this.variant === 'segmented'
1535
+ }, "data-value": opt.value, onClick: () => this.toggleItemValue(opt.value), draggable: this.isDraggable, onDragStart: () => this.onDragStart(idx), onDragOver: (e) => this.onDragOver(e, idx), onDrop: () => this.onDrop(idx) }, this.isDraggable && h("ui-icon", { name: "menu", class: "drag-handle" }), h("ui-switch", { value: opt.value, label: opt.label, "icon-on": opt.icon, disabled: this.disabled || opt.disabled, checked: isChecked(opt.value), size: this.size, color: this.color, variant: this.variant, shape: this.shape, "label-position": this.labelPosition, "show-icons": this.showIcons, "enable-animation": this.enableAnimation, readonly: this.readonly }))))))), this.invalid && this.errorMessage && (h("div", { class: "error-message" }, h("ui-icon", { name: "alert-circle", library: "lucide", size: "14px" }), this.errorMessage)), this.helperText && !this.invalid && h("div", { class: "helper-text" }, this.helperText)));
1536
+ }
1537
+ static get formAssociated() { return true; }
1538
+ static get watchers() { return {
1539
+ "options": [{
1540
+ "handleOptionsChange": 0
1541
+ }],
1542
+ "value": [{
1543
+ "handleValueChange": 0
1544
+ }]
1545
+ }; }
1546
+ };
1547
+ UIToggleGroup.style = toggleGroupCss();
1548
+
1549
+ export { Dropdown as ui_dropdown, UIToggleGroup as ui_toggle_group };