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,959 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-DUsoYu9r.js';
2
+ import { s as sanitizeHTML } from './security-D2WzX6vR.js';
3
+
4
+ const codeEditorCss = () => `.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:flex;flex-direction:column;font-family:"Menlo", "Monaco", "Courier New", monospace;font-size:14px;line-height:1.5;position:relative;border-radius:8px;overflow:hidden;border:1px solid var(--border-color, var(--border-subtle, #e2e8f0));background-color:var(--editor-bg);color:var(--editor-fg);--editor-bg:var(--bg-primary, #ffffff);--editor-fg:var(--text-primary, #1e293b);--line-num-bg:var(--bg-primary, #f8fafc);--line-num-fg:var(--color-primary, #94a3b8);--indent-guide:rgba(0, 0, 0, 0.05);--cursor-color:var(--text-primary, #000);--selection-bg:var(--color-primary, #b3d4fc);--status-bar-bg:var(--bg-secondary, #f1f5f9);--status-bar-fg:var(--color-primary, #64748b);--minimap-width:60px;--git-added:var(--color-success, #28a745);--git-modified:var(--color-danger, #ffc107)}:host(.theme-vs-dark){--editor-bg:var(--bg-primary, #1e1e1e);--editor-fg:var(--bg-secondary, #d4d4d4);--line-num-bg:var(--bg-primary, #1e1e1e);--line-num-fg:var(--text-muted, #858585);--cursor-color:var(--text-standard, #ffffff);--selection-bg:var(--color-primary, #264f78);--status-bar-bg:var(--color-primary, #007acc);--status-bar-fg:var(--bg-primary, #ffffff);border-color:var(--border-strong, #333)}.code-editor-container{display:flex;flex-direction:column;flex:1;position:relative;overflow:hidden;height:100%}.code-editor-layout{display:grid;grid-template-columns:auto 1fr auto;flex:1;min-height:0;position:relative;overflow:hidden;background-color:var(--editor-bg)}.sidebar-tabs{width:48px;flex-shrink:0;background-color:var(--status-bar-bg);border-right:1px solid var(--border-color);display:flex;flex-direction:column;align-items:center;padding:12px 0;gap:20px}.sidebar-tabs .sidebar-tab{font-size:20px;color:var(--status-bar-fg);cursor:pointer;width:100%;display:flex;justify-content:center;position:relative;padding:8px 0;opacity:0.6;transition:all 0.2s}.sidebar-tabs .sidebar-tab.active{opacity:1;color:var(--color-primary, #007acc);border-left:2px solid var(--color-primary, #007acc)}.sidebar-tabs .sidebar-tab:hover{opacity:1}.sidebar-content{flex:1;overflow-y:auto;padding:0}.sidebar-header{padding:10px 16px;font-size:11px;font-weight:600;color:var(--status-bar-fg);text-transform:uppercase;letter-spacing:0.5px}.file-list{padding:4px 0}.file-item{display:flex;align-items:center;padding:6px 16px;gap:8px;cursor:pointer;font-size:13px;color:var(--status-bar-fg);transition:background 0.2s}.file-item:hover{background-color:rgba(128, 128, 128, 0.1);color:var(--editor-fg)}.file-item.active{background-color:rgba(0, 122, 204, 0.1);color:var(--color-primary, #007acc);font-weight:500}.file-item i{width:16px;text-align:center}.file-item .text-warning{color:var(--color-warning, #f59e0b)}.file-item .text-danger{color:var(--color-danger, #ef4444)}.file-item .text-primary{color:var(--color-primary, #10b981)}.editor-main-panel{display:flex;flex-direction:column;min-width:0;flex:1}.editor-breadcrumbs{height:35px;background-color:var(--editor-bg);border-bottom:1px solid var(--border-color);display:flex;align-items:center;padding:0 16px;font-size:13px;color:var(--status-bar-fg);gap:10px;user-select:none}.editor-breadcrumbs .breadcrumb-item{display:flex;align-items:center;gap:6px;cursor:pointer}.editor-breadcrumbs .breadcrumb-item:hover{color:var(--editor-fg)}.editor-breadcrumbs .breadcrumb-item i{font-size:14px}.editor-breadcrumbs .breadcrumb-item .separator{opacity:0.5;margin:0 4px}.editor-bottom-panel{height:250px;background-color:var(--editor-bg);border-top:1px solid var(--border-color);display:flex;flex-direction:column;overflow:hidden;transition:height 0.3s ease}.editor-bottom-panel.collapsed{height:0;border-top:none}.editor-bottom-panel .panel-header{height:35px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid var(--border-color);background-color:var(--status-bar-bg)}.editor-bottom-panel .panel-tabs{display:flex;gap:20px;height:100%}.editor-bottom-panel .panel-tabs .panel-tab{font-size:11px;font-weight:600;color:var(--status-bar-fg);height:100%;display:flex;align-items:center;cursor:pointer;border-bottom:2px solid transparent;opacity:0.7;transition:all 0.2s}.editor-bottom-panel .panel-tabs .panel-tab:hover{opacity:1}.editor-bottom-panel .panel-tabs .panel-tab.active{opacity:1;color:var(--color-primary, #007acc);border-bottom-color:var(--color-primary, #007acc)}.editor-bottom-panel .panel-controls i{font-size:12px;color:var(--status-bar-fg);cursor:pointer;opacity:0.6}.editor-bottom-panel .panel-controls i:hover{opacity:1;color:var(--color-danger, #ef4444)}.editor-bottom-panel .panel-content{flex:1;overflow-y:auto;padding:12px 16px;font-family:"Menlo", "Monaco", "Courier New", monospace;background-color:var(--editor-bg)}.editor-bottom-panel .terminal-content .log-item{margin-bottom:4px;font-size:12px;display:flex;gap:8px}.editor-bottom-panel .terminal-content .log-item .log-time{opacity:0.5}.editor-bottom-panel .terminal-content .log-item.info{color:var(--color-success, #10b981)}.editor-bottom-panel .terminal-content .log-item.error{color:var(--color-danger, #ef4444)}.editor-bottom-panel .terminal-content .log-item.warn{color:var(--color-warning, #f59e0b)}.editor-bottom-panel .terminal-content .terminal-input-line{display:flex;gap:8px;margin-top:8px;align-items:center}.editor-bottom-panel .terminal-content .terminal-input-line .terminal-prompt{color:var(--color-primary, #007acc);font-weight:bold}.editor-bottom-panel .terminal-content .terminal-input-line .terminal-input{background:transparent;border:none;color:var(--editor-fg);outline:none;flex:1;font-family:inherit;font-size:12px}.line-numbers{flex-shrink:0;padding:10px 0;text-align:right;background-color:var(--line-num-bg);color:var(--line-num-fg);border-right:1px solid rgba(128, 128, 128, 0.1);user-select:none;min-width:45px;overflow:hidden}.line-numbers .line-number{display:flex;padding:0 4px 0 8px;height:1.5em;white-space:nowrap;justify-content:space-between;cursor:pointer}.line-numbers .line-number .fold-icon{opacity:0;font-size:9px;margin-left:4px;display:flex;align-items:center;color:var(--line-num-fg)}.line-numbers .line-number.git-added{border-left:3px solid var(--git-added)}.line-numbers .line-number.git-modified{border-left:3px solid var(--git-modified)}.line-numbers .line-number:hover .fold-icon{opacity:1;color:var(--editor-fg)}.folded-placeholder{background-color:var(--status-bar-bg);color:var(--status-bar-fg);padding:0 4px;border-radius:2px;font-size:10px;cursor:pointer;user-select:none;margin-left:4px;display:inline-block;height:14px;line-height:14px}.editor-wrapper{flex-grow:1;position:relative;overflow:hidden}.editor-content,.syntax-highlighter{margin:0;padding:10px;border:none;box-sizing:border-box;font-family:inherit;font-size:inherit;line-height:inherit;tab-size:2;white-space:pre;word-wrap:normal;overflow-x:auto;overflow-y:auto;position:absolute;top:0;left:0;width:100%;height:100%}.editor-content{color:transparent;background:transparent;caret-color:var(--cursor-color);z-index:1;resize:none;outline:none;background-image:linear-gradient(to right, var(--indent-guide) 1px, transparent 1px);background-size:calc(var(--indent-size, 2) * 8.4px) 100%;background-repeat:repeat-x;background-attachment:local}.editor-content::selection{background:var(--selection-bg);color:transparent}.syntax-highlighter{z-index:0;pointer-events:none;color:var(--editor-fg)}.lint-error{text-decoration:underline wavy var(--color-danger, #ff4d4d);text-decoration-thickness:2px;position:relative}.minimap-container{width:var(--minimap-width);border-left:1px solid rgba(128, 128, 128, 0.1);background:var(--editor-bg);overflow:hidden;position:relative;user-select:none;flex-shrink:0;cursor:pointer}.minimap-content{transform-origin:top left;transform:scale(0.15);width:666%;pointer-events:none;padding:10px}.minimap-viewport{position:absolute;left:0;width:100%;background:rgba(100, 100, 100, 0.2);cursor:grab;transition:background 0.2s}.minimap-viewport:hover{background:rgba(100, 100, 100, 0.3)}.minimap-viewport:active{cursor:grabbing;background:rgba(100, 100, 100, 0.4)}.status-bar{display:flex;justify-content:flex-end;gap:16px;padding:4px 12px;background-color:var(--status-bar-bg);color:var(--status-bar-fg);font-size:11px;flex-shrink:0;user-select:none}.status-item{display:flex;align-items:center;gap:6px;cursor:default}.status-item i{font-size:10px}.command-palette-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:100;display:flex;justify-content:center;align-items:flex-start;padding-top:20px;backdrop-filter:blur(1px)}.command-palette{width:400px;max-width:90%;background:var(--editor-bg);border:1px solid var(--border-color, #454545);box-shadow:0 4px 12px rgba(0, 0, 0, 0.25);border-radius:6px;display:flex;flex-direction:column;overflow:hidden;animation:slideDown 0.15s ease-out}.command-palette input{width:100%;padding:10px;border:none;background:var(--status-bar-bg);color:var(--editor-fg);font-family:inherit;font-size:13px;outline:none;border-bottom:1px solid var(--border-color, rgba(128, 128, 128, 0.2))}.command-palette .command-list{max-height:250px;overflow-y:auto;margin:0;padding:0;list-style:none}.command-palette .command-item{padding:8px 12px;cursor:pointer;font-size:13px;display:flex;justify-content:space-between;color:var(--editor-fg);border-left:2px solid transparent;}.command-palette .command-item:hover,.command-palette .command-item.active{background-color:var(--selection-bg);border-left-color:var(--status-bar-bg)}.command-palette .command-item .shortcut{opacity:0.6;font-size:11px}@keyframes slideDown{from{transform:translateY(-10px);opacity:0}to{transform:translateY(0);opacity:1}}.token.comment{color:var(--color-success, #6a9955);font-style:italic}.token.string{color:var(--color-danger, #ce9178)}.token.number{color:var(--color-primary, #b5cea8)}.token.boolean{color:var(--color-primary, #569cd6)}.token.keyword{color:var(--color-primary, #c586c0);font-weight:bold}.token.function{color:var(--color-primary, #dcdcaa)}.token.operator{color:var(--bg-secondary, #d4d4d4)}.token.class{color:var(--color-primary, #4ec9b0)}.token.variable{color:var(--color-primary, #9cdcfe)}.token.tag{color:var(--color-primary, #569cd6)}.token.attr-name{color:var(--color-primary, #9cdcfe)}.token.property{color:var(--color-primary, #9cdcfe)}.token.selector{color:var(--color-primary, #d7ba7d)}:host(:not(.theme-vs-dark)) .token.string{color:var(--color-danger, #a31515)}:host(:not(.theme-vs-dark)) .token.keyword{color:var(--color-primary, #af00db)}:host(:not(.theme-vs-dark)) .token.function{color:var(--color-primary, #795e26)}:host(:not(.theme-vs-dark)) .token.number{color:var(--color-success, #098658)}:host(:not(.theme-vs-dark)) .token.comment{color:var(--color-success, #008000)}:host(:not(.theme-vs-dark)) .token.selector{color:var(--text-primary, #800000)}.copy-button{position:absolute;top:8px;right:20px;z-index:10;background:rgba(128, 128, 128, 0.2);border:none;color:var(--editor-fg);padding:4px 8px;border-radius:4px;cursor:pointer;opacity:0;transition:opacity 0.2s;font-size:12px}.copy-button:hover{background:rgba(128, 128, 128, 0.4)}:host(:hover) .copy-button{opacity:1}.search-widget{position:absolute;top:10px;right:40px;right:60px;z-index:50;display:flex;background:var(--editor-bg);border:1px solid var(--border-color, #ccc);box-shadow:0 4px 6px rgba(0, 0, 0, 0.1);border-radius:4px;padding:4px;align-items:center}.search-widget .search-input{border:none;outline:none;background:transparent;color:var(--editor-fg);padding:4px;font-size:13px;width:150px}.search-widget .search-actions{display:flex;gap:2px}.search-widget .search-actions button{background:transparent;border:none;color:var(--status-bar-fg);cursor:pointer;padding:4px;border-radius:2px}.search-widget .search-actions button:hover{background:var(--line-num-bg);color:var(--editor-fg)}.suggestion-list{position:absolute;z-index:100;background:var(--editor-bg);border:1px solid var(--border-color, #ccc);box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);border-radius:4px;max-height:200px;overflow-y:auto;width:200px;margin:0;padding:0;list-style:none;font-size:13px;font-family:inherit}.suggestion-list li{padding:4px 8px;cursor:pointer;display:flex;align-items:center;gap:8px;color:var(--editor-fg)}.suggestion-list li.active,.suggestion-list li:hover{background:var(--selection-bg);color:var(--editor-fg)}.suggestion-list li .icon{opacity:0.7;font-size:11px}.editor-tabs{display:flex;background-color:var(--status-bar-bg);background-color:var(--bg-primary, #252526);overflow-x:auto;flex-shrink:0;}.editor-tabs::-webkit-scrollbar{height:4px}.editor-tabs::-webkit-scrollbar-thumb{background:rgba(128, 128, 128, 0.3)}:host(:not(.theme-vs-dark)) .editor-tabs{background-color:var(--bg-primary, #f3f3f3)}.editor-tab{display:flex;align-items:center;gap:8px;padding:8px 12px;color:var(--text-muted, #969696);background-color:transparent;cursor:pointer;border-right:1px solid rgba(0, 0, 0, 0.1);font-size:13px;white-space:nowrap;border-top:2px solid transparent;}.editor-tab:hover{background-color:rgba(128, 128, 128, 0.1);color:var(--editor-fg)}.editor-tab.active{background-color:var(--editor-bg);color:var(--editor-fg);border-top-color:var(--color-primary, #007acc);}.editor-tab .tab-icon{font-size:12px;opacity:0.8}.editor-tab{}.editor-ribbon-container{display:flex;flex-direction:column;background-color:var(--ribbon-bg, #f3f3f3);border-bottom:1px solid var(--border-color, #d1d1d1);flex-shrink:0;user-select:none;font-family:"Segoe UI", system-ui, -apple-system, sans-serif;--ribbon-bg:var(--bg-primary, #f3f3f3);--ribbon-tab-active:var(--bg-primary, #ffffff);--ribbon-tab-fg:var(--text-secondary, #333333);--ribbon-accent:var(--color-primary, #2b579a);}:host(.theme-vs-dark) .editor-ribbon-container{--ribbon-bg:var(--bg-secondary, #2d2d2d);--ribbon-tab-active:var(--text-secondary, #3c3c3c);--ribbon-tab-fg:var(--bg-secondary, #cccccc);--ribbon-accent:var(--color-primary, #007acc);border-bottom-color:var(--border-strong, #3e3e3e)}.ribbon-tabs{display:flex;padding:0 10px;background-color:var(--ribbon-accent);gap:2px}.ribbon-tab{padding:4px 12px;cursor:pointer;opacity:0.7;transition:all 0.2s;border-bottom:2px solid transparent;font-size:11px;font-weight:500;display:flex;align-items:center;gap:6px;min-width:60px;justify-content:center}.ribbon-tab ui-tooltip{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.ribbon-tab i{font-size:14px}.ribbon-tab:hover{background-color:rgba(255, 255, 255, 0.15);opacity:1}.ribbon-tab:hover i{transform:scale(1.1)}.ribbon-tab.active{background-color:var(--ribbon-bg);color:var(--ribbon-tab-fg);font-weight:600;border-bottom:none;border-radius:4px 4px 0 0;margin-top:4px;padding-top:4px;opacity:1}.ribbon-tab.active i{opacity:1}.ribbon-content{background:var(--editor-bg);border-bottom:1px solid var(--border-color);min-height:0;padding:4px;display:flex;gap:8px;overflow-x:auto}.labels-hover .ribbon-content,.labels-hidden .ribbon-content{min-height:48px}.ribbon-panel{display:flex;gap:12px;height:100%;align-items:stretch}.ribbon-group{display:flex;flex-direction:column;gap:2px;padding-right:12px;border-right:1px solid var(--border-color);height:100%;justify-content:space-between}.ribbon-group:last-child{border-right:none}.ribbon-group.divider{padding:0;width:1px;background:linear-gradient(to bottom, transparent 10%, var(--border-color, #d1d1d1) 20%, var(--border-color, #d1d1d1) 80%, transparent 90%);margin:2px 4px}.ribbon-group-content{display:flex;gap:4px;align-items:center;flex:1}.ribbon-group-label{font-size:9px;color:var(--status-bar-fg);text-align:center;text-transform:uppercase;letter-spacing:0.5px;opacity:0.7}.labels-hidden .ribbon-group-label{display:none}.ribbon-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 8px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--editor-fg);cursor:pointer;transition:all 0.2s;min-width:32px;font-size:11px}.ribbon-btn i{font-size:16px}.ribbon-btn:hover{background:rgba(144, 144, 144, 0.1);border-color:var(--border-color)}.ribbon-btn.active{background:rgba(0, 122, 204, 0.1);border-color:var(--color-primary, #007acc);color:var(--color-primary, #007acc)}.ribbon-btn.lg{padding:4px 12px;gap:4px;min-width:48px}.ribbon-btn.lg i{font-size:20px}.ribbon-btn.icon-only{padding:4px;min-width:28px;height:28px}.ribbon-btn.icon-only span{display:none}.ribbon-btn.icon-only i{font-size:16px}.ribbon-select-container{display:flex;flex-direction:column;gap:2px;align-items:center}.ribbon-select-container select{padding:2px 4px;font-size:11px;border:1px solid var(--border-color, #ccc);border-radius:3px;background:var(--editor-bg);color:var(--editor-fg);outline:none}.ribbon-select-container span{font-size:10px;opacity:0.7}.help-modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.5);z-index:200;display:flex;justify-content:center;align-items:center;backdrop-filter:blur(2px)}.help-modal{background:var(--editor-bg);color:var(--editor-fg);width:400px;max-width:90%;border-radius:8px;border:1px solid var(--border-color, #454545);box-shadow:0 10px 25px rgba(0, 0, 0, 0.5);display:flex;flex-direction:column;overflow:hidden;animation:fadeIn 0.2s ease-out}.help-modal .help-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--status-bar-bg);color:var(--status-bar-fg);border-bottom:1px solid rgba(128, 128, 128, 0.2)}.help-modal .help-header h3{margin:0;font-size:14px;font-weight:600}.help-modal .help-header .close-btn{background:transparent;border:none;color:inherit;cursor:pointer;font-size:14px;padding:4px}.help-modal .help-header .close-btn:hover{opacity:0.8}.help-modal .help-content{padding:16px;display:flex;flex-direction:column;gap:16px}.help-modal .help-section h4{margin:0 0 8px 0;font-size:12px;text-transform:uppercase;letter-spacing:0.5px;opacity:0.7;border-bottom:1px solid rgba(128, 128, 128, 0.2);padding-bottom:4px}.help-modal .help-section ul{list-style:none;padding:0;margin:0;font-size:13px}.help-modal .help-section ul li{margin-bottom:6px;display:flex;align-items:center;gap:8px}.help-modal kbd{background:rgba(128, 128, 128, 0.2);padding:2px 4px;border-radius:3px;font-family:inherit;font-size:11px;border:1px solid rgba(128, 128, 128, 0.3)}@keyframes fadeIn{from{opacity:0;transform:scale(0.95)}to{opacity:1;transform:scale(1)}}`;
5
+
6
+ const AppCodeEditor = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.valueChange = createEvent(this, "valueChange");
10
+ this.runCode = createEvent(this, "runCode");
11
+ }
12
+ value = '';
13
+ language = 'javascript';
14
+ theme = 'vs-dark';
15
+ readonly = false;
16
+ lineNumbers = true;
17
+ toolbar = false;
18
+ toolbarLabelDisplay = 'hover';
19
+ toolbarGroups = ['all'];
20
+ tabs = [];
21
+ valueChange;
22
+ runCode;
23
+ highlightedCode = '';
24
+ lineCount = 1;
25
+ statusStats = { line: 1, col: 1, selected: 0 };
26
+ showSearch = false;
27
+ searchQuery = '';
28
+ showPalette = false;
29
+ paletteQuery = '';
30
+ showHelp = false;
31
+ activeTabIndex = 0;
32
+ unfoldedLines = new Set(); // Stores lines that are explicitly folded (using inverse logic for lighter default?) -> Actually let's store folded lines
33
+ foldedLines = new Set();
34
+ lintErrors = [];
35
+ activeToolbarTab = 'home';
36
+ fontSize = 14;
37
+ showLineNumbers = true;
38
+ showMinimap = true;
39
+ showSidebar = true;
40
+ showBottomPanel = true;
41
+ activeSidebarTab = 'files';
42
+ activeBottomTab = 'terminal';
43
+ activeFileIndex = 0;
44
+ files = [
45
+ { name: 'index.js', language: 'javascript', content: '// Welcome to the IDE\n// Start coding here...' },
46
+ { name: 'styles.css', language: 'css', content: '/* Add your styles here */\nbody {\n margin: 0;\n}' },
47
+ { name: 'index.html', language: 'html', content: '<!DOCTYPE html>\n<html>\n<body>\n <h1>Hello</h1>\n</body>\n</html>' }
48
+ ];
49
+ terminalLogs = [
50
+ { type: 'info', text: 'IDE Terminal initialized.', time: new Date().toLocaleTimeString() }
51
+ ];
52
+ // Autocompletion State
53
+ suggestions = [];
54
+ suggestionIndex = 0;
55
+ showSuggestions = false;
56
+ suggestionPos = { top: 0, left: 0 };
57
+ textarea;
58
+ pre;
59
+ lineNumbersRef;
60
+ minimapRef;
61
+ minimapViewport;
62
+ searchInput;
63
+ paletteInput;
64
+ charWidth = 8.4; // Default estimate
65
+ lineHeight = 21;
66
+ keywords = {
67
+ javascript: ['function', 'return', 'const', 'let', 'var', 'import', 'export', 'class', 'if', 'else', 'for', 'while', 'switch', 'case', 'break', 'continue', 'true', 'false', 'null', 'undefined', 'console', 'log', 'document', 'window', 'async', 'await', 'try', 'catch', 'throw', 'new', 'this', 'super', 'typeof', 'instanceof', 'void', 'delete', 'in', 'of'],
68
+ python: ['def', 'class', 'return', 'if', 'elif', 'else', 'for', 'while', 'try', 'except', 'finally', 'import', 'from', 'as', 'pass', 'break', 'continue', 'True', 'False', 'None', 'print', 'with', 'yield', 'lambda', 'global', 'nonlocal', 'raise', 'assert'],
69
+ html: ['div', 'span', 'h1', 'h2', 'h3', 'p', 'a', 'button', 'input', 'form', 'img', 'ul', 'li', 'script', 'style', 'head', 'body', 'html', 'meta', 'link', 'title', 'header', 'footer', 'nav', 'main', 'section', 'article', 'aside'],
70
+ css: ['color', 'background', 'border', 'margin', 'padding', 'width', 'height', 'display', 'flex', 'grid', 'font-size', 'position', 'top', 'left', 'right', 'bottom', 'opacity', 'z-index', 'transform', 'transition', 'animation', 'justify-content', 'align-items'],
71
+ java: ['public', 'private', 'protected', 'class', 'interface', 'extends', 'implements', 'void', 'int', 'double', 'String', 'boolean', 'if', 'else', 'for', 'while', 'return', 'new', 'this', 'super', 'try', 'catch', 'finally', 'throw', 'throws', 'package', 'import', 'static', 'final'],
72
+ csharp: ['public', 'private', 'protected', 'class', 'interface', 'void', 'int', 'string', 'bool', 'if', 'else', 'for', 'while', 'return', 'new', 'this', 'var', 'namespace', 'using', 'static', 'readonly', 'async', 'await'],
73
+ };
74
+ commands = [
75
+ { id: 'theme-toggle', label: 'Toggle Theme (Dark/Light)', action: () => this.toggleTheme() },
76
+ { id: 'minimap-toggle', label: 'Toggle Minimap', action: () => (this.showMinimap = !this.showMinimap) },
77
+ { id: 'line-nums-toggle', label: 'Toggle Line Numbers', action: () => (this.showLineNumbers = !this.showLineNumbers) },
78
+ { id: 'format', label: 'Format Document (Simple Indent)', action: () => this.simpleFormat() },
79
+ { id: 'clear', label: 'Clear Code', action: () => { this.value = ''; this.valueChange.emit(''); } },
80
+ { id: 'copy', label: 'Copy to Clipboard', action: () => this.handleCopy() },
81
+ { id: 'fold-all', label: 'Fold All', action: () => this.foldAll() },
82
+ { id: 'unfold-all', label: 'Unfold All', action: () => this.unfoldAll() },
83
+ { id: 'undo', label: 'Undo', action: () => document.execCommand('undo') },
84
+ { id: 'redo', label: 'Redo', action: () => document.execCommand('redo') },
85
+ ];
86
+ componentWillLoad() {
87
+ this.highlightCode();
88
+ this.updateLineCount();
89
+ this.runLinting();
90
+ }
91
+ componentDidLoad() {
92
+ this.measureChar();
93
+ // Initialize tabs if present
94
+ if (this.tabs.length > 0) {
95
+ this.handleTabClick(0);
96
+ }
97
+ }
98
+ measureChar() {
99
+ if (!this.pre)
100
+ return;
101
+ const span = document.createElement('span');
102
+ span.textContent = 'M';
103
+ span.style.visibility = 'hidden';
104
+ this.pre.appendChild(span);
105
+ const rect = span.getBoundingClientRect();
106
+ this.charWidth = rect.width;
107
+ this.lineHeight = rect.height;
108
+ this.pre.removeChild(span);
109
+ }
110
+ valueChanged() {
111
+ this.highlightCode();
112
+ this.updateLineCount();
113
+ this.runLinting();
114
+ }
115
+ languageChanged() {
116
+ this.highlightCode();
117
+ this.runLinting();
118
+ }
119
+ tabsChanged() {
120
+ if (this.tabs.length > 0 && this.activeTabIndex >= this.tabs.length) {
121
+ this.handleTabClick(0);
122
+ }
123
+ }
124
+ searchQueryChanged() {
125
+ this.highlightCode();
126
+ }
127
+ executeCode() {
128
+ if (this.language === 'javascript' || this.language === 'json') {
129
+ try {
130
+ const output = [];
131
+ const mockConsole = {
132
+ log: (...args) => output.push({ type: 'info', text: args.map(a => typeof a === 'object' ? JSON.stringify(a) : String(a)).join(' ') }),
133
+ error: (...args) => output.push({ type: 'error', text: args.join(' ') }),
134
+ warn: (...args) => output.push({ type: 'warn', text: args.join(' ') })
135
+ };
136
+ const fn = new Function('console', this.value);
137
+ fn(mockConsole);
138
+ return output.length > 0 ? output : [{ type: 'info', text: '(Success: No output)' }];
139
+ }
140
+ catch (e) {
141
+ return [{ type: 'error', text: `Runtime Error: ${e.message}` }];
142
+ }
143
+ }
144
+ return [{ type: 'info', text: `Simulation for ${this.language} complete. (Code execution restricted to JS)` }];
145
+ }
146
+ handleInput = (ev) => {
147
+ const target = ev.target;
148
+ this.value = target.value;
149
+ this.valueChange.emit(this.value);
150
+ // Autocompletion Trigger
151
+ this.checkSuggestions();
152
+ };
153
+ checkSuggestions() {
154
+ if (!this.textarea)
155
+ return;
156
+ const { selectionStart, value } = this.textarea;
157
+ // Find current word
158
+ let start = selectionStart - 1;
159
+ while (start >= 0 && /[\w]/.test(value[start])) {
160
+ start--;
161
+ }
162
+ const currentWord = value.substring(start + 1, selectionStart);
163
+ if (currentWord.length < 1) {
164
+ this.showSuggestions = false;
165
+ return;
166
+ }
167
+ const langKeywords = this.keywords[this.language] || [];
168
+ const matches = langKeywords.filter(k => k.toLowerCase().startsWith(currentWord.toLowerCase()) && k !== currentWord);
169
+ if (matches.length > 0) {
170
+ this.suggestions = matches;
171
+ this.suggestionIndex = 0;
172
+ this.showSuggestions = true;
173
+ // Calculate Position
174
+ const lines = value.substring(0, selectionStart).split('\n');
175
+ const line = lines.length;
176
+ const col = lines[lines.length - 1].length;
177
+ this.suggestionPos = {
178
+ top: (line * this.lineHeight) - this.textarea.scrollTop + 5,
179
+ left: (col * this.charWidth) - this.textarea.scrollLeft + 10 // + padding
180
+ };
181
+ }
182
+ else {
183
+ this.showSuggestions = false;
184
+ }
185
+ }
186
+ acceptSuggestion(suggestion) {
187
+ if (!this.textarea)
188
+ return;
189
+ const { selectionStart, value } = this.textarea;
190
+ // Find current word start again
191
+ let start = selectionStart - 1;
192
+ while (start >= 0 && /[\w]/.test(value[start])) {
193
+ start--;
194
+ }
195
+ start++; // Start of word
196
+ const newValue = value.substring(0, start) + suggestion + value.substring(selectionStart);
197
+ this.value = newValue;
198
+ this.valueChange.emit(newValue);
199
+ this.showSuggestions = false;
200
+ // Move Cursor
201
+ requestAnimationFrame(() => {
202
+ const newCursor = start + suggestion.length;
203
+ this.textarea.selectionStart = this.textarea.selectionEnd = newCursor;
204
+ this.highlightCode();
205
+ this.textarea.focus();
206
+ });
207
+ }
208
+ handleScroll = () => {
209
+ if (this.textarea && this.pre) {
210
+ const { scrollTop, scrollLeft } = this.textarea;
211
+ this.pre.scrollTop = scrollTop;
212
+ this.pre.scrollLeft = scrollLeft;
213
+ // Sync Minimap
214
+ if (this.minimapRef) {
215
+ const ratio = scrollTop / (this.textarea.scrollHeight - this.textarea.clientHeight);
216
+ const minimapScroll = ratio * (this.minimapRef.scrollHeight - this.minimapRef.clientHeight);
217
+ this.minimapRef.scrollTop = minimapScroll;
218
+ // Update Viewport Indicator
219
+ if (this.minimapViewport) {
220
+ const viewportRatio = this.textarea.clientHeight / this.textarea.scrollHeight;
221
+ this.minimapViewport.style.top = `${(scrollTop / this.textarea.scrollHeight) * 100}%`;
222
+ this.minimapViewport.style.height = `${viewportRatio * 100}%`;
223
+ }
224
+ }
225
+ }
226
+ if (this.lineNumbersRef && this.textarea) {
227
+ this.lineNumbersRef.scrollTop = this.textarea.scrollTop;
228
+ }
229
+ };
230
+ handleKeydown = (e) => {
231
+ const isCtrl = e.ctrlKey || e.metaKey;
232
+ // Command Palette (Ctrl+Shift+P)
233
+ if (isCtrl && e.shiftKey && (e.key === 'p' || e.key === 'P')) {
234
+ e.preventDefault();
235
+ this.togglePalette();
236
+ return;
237
+ }
238
+ // Search (Ctrl+F)
239
+ if (isCtrl && e.key === 'f') {
240
+ e.preventDefault();
241
+ this.toggleSearch();
242
+ return;
243
+ }
244
+ // Suggestions Navigation
245
+ if (this.showSuggestions) {
246
+ if (e.key === 'ArrowDown') {
247
+ e.preventDefault();
248
+ this.suggestionIndex = (this.suggestionIndex + 1) % this.suggestions.length;
249
+ return;
250
+ }
251
+ else if (e.key === 'ArrowUp') {
252
+ e.preventDefault();
253
+ this.suggestionIndex = (this.suggestionIndex - 1 + this.suggestions.length) % this.suggestions.length;
254
+ return;
255
+ }
256
+ else if (e.key === 'Enter' || e.key === 'Tab') {
257
+ e.preventDefault();
258
+ this.acceptSuggestion(this.suggestions[this.suggestionIndex]);
259
+ return;
260
+ }
261
+ else if (e.key === 'Escape') {
262
+ this.showSuggestions = false;
263
+ return;
264
+ }
265
+ }
266
+ // Tab Handling
267
+ if (e.key === 'Tab') {
268
+ e.preventDefault();
269
+ const start = this.textarea.selectionStart;
270
+ const end = this.textarea.selectionEnd;
271
+ const tabChar = ' ';
272
+ this.value = this.value.substring(0, start) + tabChar + this.value.substring(end);
273
+ requestAnimationFrame(() => {
274
+ this.textarea.selectionStart = this.textarea.selectionEnd = start + tabChar.length;
275
+ this.highlightCode();
276
+ });
277
+ this.valueChange.emit(this.value);
278
+ return;
279
+ }
280
+ // --- Smart Behaviors ---
281
+ const start = this.textarea.selectionStart;
282
+ const end = this.textarea.selectionEnd;
283
+ const val = this.value;
284
+ // Auto-Close
285
+ const pairs = { '(': ')', '{': '}', '[': ']', '"': '"', "'": "'" };
286
+ if (pairs[e.key]) {
287
+ e.preventDefault();
288
+ this.value = val.substring(0, start) + e.key + pairs[e.key] + val.substring(end);
289
+ requestAnimationFrame(() => {
290
+ this.textarea.selectionStart = this.textarea.selectionEnd = start + 1;
291
+ this.highlightCode();
292
+ });
293
+ this.valueChange.emit(this.value);
294
+ return;
295
+ }
296
+ // Skip closing
297
+ const closingChars = ['}', ']', ')', '"', "'"];
298
+ if (closingChars.includes(e.key) && val[start] === e.key) {
299
+ e.preventDefault();
300
+ this.textarea.selectionStart = this.textarea.selectionEnd = start + 1;
301
+ return;
302
+ }
303
+ // Auto-Indent (Enter)
304
+ if (e.key === 'Enter') {
305
+ e.preventDefault();
306
+ const beforeCursor = val.substring(0, start);
307
+ const currentLine = beforeCursor.split('\n').pop();
308
+ const indentMatch = currentLine.match(/^\s*/);
309
+ let indent = indentMatch ? indentMatch[0] : '';
310
+ if (currentLine.trim().endsWith('{') || currentLine.trim().endsWith(':')) {
311
+ indent += ' ';
312
+ }
313
+ this.value = val.substring(0, start) + '\n' + indent + val.substring(end);
314
+ requestAnimationFrame(() => {
315
+ this.textarea.selectionStart = this.textarea.selectionEnd = start + 1 + indent.length;
316
+ this.highlightCode();
317
+ });
318
+ this.valueChange.emit(this.value);
319
+ return;
320
+ }
321
+ // Backspace pair delete
322
+ if (e.key === 'Backspace' && start === end && start > 0) {
323
+ const charBefore = val[start - 1];
324
+ const charAfter = val[start];
325
+ if ((charBefore === '{' && charAfter === '}') ||
326
+ (charBefore === '(' && charAfter === ')') ||
327
+ (charBefore === '[' && charAfter === ']') ||
328
+ (charBefore === '"' && charAfter === '"') ||
329
+ (charBefore === "'" && charAfter === "'")) {
330
+ e.preventDefault();
331
+ this.value = val.substring(0, start - 1) + val.substring(start + 1);
332
+ requestAnimationFrame(() => {
333
+ this.textarea.selectionStart = this.textarea.selectionEnd = start - 1;
334
+ this.highlightCode();
335
+ });
336
+ this.valueChange.emit(this.value);
337
+ }
338
+ }
339
+ };
340
+ handleSelection = (ev) => {
341
+ const target = ev.target;
342
+ const val = target.value;
343
+ const selStart = target.selectionStart;
344
+ const linesToCursor = val.substring(0, selStart).split('\n');
345
+ const line = linesToCursor.length;
346
+ const col = linesToCursor[linesToCursor.length - 1].length + 1;
347
+ const selLen = target.selectionEnd - target.selectionStart;
348
+ this.statusStats = { line, col, selected: selLen };
349
+ };
350
+ handleMinimapClick = (ev) => {
351
+ const rect = ev.currentTarget.getBoundingClientRect();
352
+ const clickY = ev.clientY - rect.top;
353
+ const percentage = clickY / rect.height;
354
+ if (this.textarea) {
355
+ this.textarea.scrollTop = percentage * this.textarea.scrollHeight - (this.textarea.clientHeight / 2);
356
+ }
357
+ };
358
+ handleCopy = () => {
359
+ navigator.clipboard.writeText(this.value);
360
+ };
361
+ handleTabClick(index) {
362
+ if (index < 0 || index >= this.tabs.length)
363
+ return;
364
+ this.activeTabIndex = index;
365
+ const tab = this.tabs[index];
366
+ this.value = tab.content;
367
+ // Cast to any to avoid strict type validation issues with dynamic strings vs union type
368
+ this.language = tab.language;
369
+ // Emit change?
370
+ this.valueChange.emit(this.value);
371
+ }
372
+ // --- Feature Logic ---
373
+ toggleSearch = () => {
374
+ this.showSearch = !this.showSearch;
375
+ if (this.showSearch) {
376
+ setTimeout(() => this.searchInput?.focus(), 50);
377
+ }
378
+ else {
379
+ this.searchQuery = '';
380
+ }
381
+ };
382
+ findNext() {
383
+ if (!this.searchQuery)
384
+ return;
385
+ const val = this.value;
386
+ const start = this.textarea.selectionEnd;
387
+ let index = val.indexOf(this.searchQuery, start);
388
+ if (index === -1) {
389
+ // Wrap around
390
+ index = val.indexOf(this.searchQuery, 0);
391
+ }
392
+ if (index !== -1) {
393
+ this.selectAndScroll(index, index + this.searchQuery.length);
394
+ }
395
+ }
396
+ findPrev() {
397
+ if (!this.searchQuery)
398
+ return;
399
+ const val = this.value;
400
+ const end = this.textarea.selectionStart;
401
+ let index = val.lastIndexOf(this.searchQuery, end - 1);
402
+ if (index === -1) {
403
+ // Wrap around
404
+ index = val.lastIndexOf(this.searchQuery);
405
+ }
406
+ if (index !== -1) {
407
+ this.selectAndScroll(index, index + this.searchQuery.length);
408
+ }
409
+ }
410
+ selectAndScroll(start, end) {
411
+ this.textarea.focus();
412
+ this.textarea.selectionStart = start;
413
+ this.textarea.selectionEnd = end;
414
+ // Ensure scroll sync
415
+ this.handleScroll();
416
+ }
417
+ togglePalette = () => {
418
+ this.showPalette = !this.showPalette;
419
+ this.paletteQuery = '';
420
+ if (this.showPalette) {
421
+ setTimeout(() => this.paletteInput?.focus(), 50);
422
+ }
423
+ };
424
+ runCommand(cmd) {
425
+ if (cmd.isSymbol) {
426
+ this.selectAndScroll(cmd.start, cmd.end);
427
+ }
428
+ else {
429
+ cmd.action();
430
+ }
431
+ this.showPalette = false;
432
+ }
433
+ getPaletteItems() {
434
+ if (this.paletteQuery.startsWith('@')) {
435
+ return this.getSymbols(this.paletteQuery.substring(1));
436
+ }
437
+ const query = this.paletteQuery.toLowerCase();
438
+ return this.commands.filter(cmd => cmd.label.toLowerCase().includes(query));
439
+ }
440
+ getSymbols(query) {
441
+ const symbols = [];
442
+ const lines = this.value.split('\n');
443
+ const q = query.toLowerCase();
444
+ // Simple regex-based symbol detection
445
+ const patterns = {
446
+ javascript: /function\s+([\w$]+)|const\s+([\w$]+)\s*=\s*\([^)]*\)\s*=>|class\s+([\w$]+)/g,
447
+ python: /def\s+([\w]+)|class\s+([\w]+)/g,
448
+ java: /(?:public|private|protected|static|\s) +[\w\<\>\[\]]+\s+([\w]+)\s*\([^)]*\)\s*\{|class\s+([\w]+)/g,
449
+ csharp: /(?:public|private|protected|static|\s) +[\w\<\>\[\]]+\s+([\w]+)\s*\([^)]*\)\s*\{|class\s+([\w]+)/g,
450
+ };
451
+ const pattern = patterns[this.language];
452
+ if (!pattern)
453
+ return [];
454
+ let currentPos = 0;
455
+ for (let i = 0; i < lines.length; i++) {
456
+ const line = lines[i];
457
+ let match;
458
+ while ((match = pattern.exec(line)) !== null) {
459
+ const name = match[1] || match[2] || match[3];
460
+ if (name && name.toLowerCase().includes(q)) {
461
+ symbols.push({
462
+ id: `symbol-${i}`,
463
+ label: `@${name}`,
464
+ isSymbol: true,
465
+ start: currentPos + match.index,
466
+ end: currentPos + match.index + match[0].length,
467
+ line: i + 1
468
+ });
469
+ }
470
+ }
471
+ currentPos += line.length + 1;
472
+ }
473
+ return symbols;
474
+ }
475
+ toggleTheme() {
476
+ this.theme = this.theme === 'vs-dark' ? 'vs-light' : 'vs-dark';
477
+ }
478
+ toggleMinimap() {
479
+ this.showMinimap = !this.showMinimap;
480
+ }
481
+ handleSelectAll() {
482
+ if (this.textarea) {
483
+ this.textarea.select();
484
+ }
485
+ }
486
+ handleUndo() {
487
+ document.execCommand('undo');
488
+ }
489
+ handleRedo() {
490
+ document.execCommand('redo');
491
+ }
492
+ handleCommentSelection() {
493
+ if (!this.textarea)
494
+ return;
495
+ const start = this.textarea.selectionStart;
496
+ const end = this.textarea.selectionEnd;
497
+ const val = this.value;
498
+ const selection = val.substring(start, end);
499
+ let newValue;
500
+ if (this.language === 'javascript' || this.language === 'python' || this.language === 'java' || this.language === 'csharp') {
501
+ const commentPrefix = this.language === 'python' ? '# ' : '// ';
502
+ if (selection.includes('\n')) {
503
+ newValue = selection.split('\n').map(l => l.startsWith(commentPrefix) ? l.substring(commentPrefix.length) : commentPrefix + l).join('\n');
504
+ }
505
+ else {
506
+ newValue = selection.startsWith(commentPrefix) ? selection.substring(commentPrefix.length) : commentPrefix + selection;
507
+ }
508
+ }
509
+ else if (this.language === 'html') {
510
+ newValue = selection.startsWith('<!--') ? selection.replace(/^<!--\s*([\s\S]*?)\s*-->$/, '$1') : `<!-- ${selection} -->`;
511
+ }
512
+ else if (this.language === 'css') {
513
+ newValue = selection.startsWith('/*') ? selection.replace(/^\/\*\s*([\s\S]*?)\s*\*\/$/, '$1') : `/* ${selection} */`;
514
+ }
515
+ if (newValue !== undefined) {
516
+ this.value = val.substring(0, start) + newValue + val.substring(end);
517
+ this.valueChange.emit(this.value);
518
+ requestAnimationFrame(() => {
519
+ this.textarea.selectionStart = start;
520
+ this.textarea.selectionEnd = start + newValue.length;
521
+ this.highlightCode();
522
+ });
523
+ }
524
+ }
525
+ simpleFormat() {
526
+ if (this.language === 'json') {
527
+ try {
528
+ const parsed = JSON.parse(this.value);
529
+ this.value = JSON.stringify(parsed, null, 2);
530
+ this.valueChange.emit(this.value);
531
+ }
532
+ catch (e) { }
533
+ return;
534
+ }
535
+ // Generic Indentation Formatter for C-style languages (JS, CSS, Java, C#, etc.)
536
+ const lines = this.value.split('\n');
537
+ let indentLevel = 0;
538
+ const indentString = ' '; // 2 spaces
539
+ const formattedLines = [];
540
+ for (let i = 0; i < lines.length; i++) {
541
+ let line = lines[i].trim();
542
+ if (line === '') {
543
+ formattedLines.push('');
544
+ continue;
545
+ }
546
+ // Heuristic: Decrease indent if line starts with closing brace/tag
547
+ if (line.match(/^[\}\]\)]/) || line.startsWith('</')) {
548
+ indentLevel = Math.max(0, indentLevel - 1);
549
+ }
550
+ // Apply Indent
551
+ formattedLines.push(indentString.repeat(indentLevel) + line);
552
+ // Heuristic: Increase indent if line ends with opening brace, start tag, or is a control statement start not ending in ;
553
+ if (line.endsWith('{') ||
554
+ line.endsWith('[') ||
555
+ line.endsWith('(') ||
556
+ (line.match(/<[^/].*>$/) && !line.match(/\/>$/) && !line.includes('</')) // HTML opening tag
557
+ ) {
558
+ indentLevel++;
559
+ }
560
+ }
561
+ this.value = formattedLines.join('\n');
562
+ this.valueChange.emit(this.value);
563
+ this.terminalLogs = [...this.terminalLogs, { type: 'info', text: 'Document formatted successfully.', time: new Date().toLocaleTimeString() }];
564
+ }
565
+ getLineGitStatus(lineIndex) {
566
+ // Mock Git status: green for new, yellow for modified
567
+ if (lineIndex % 15 === 0)
568
+ return 'added';
569
+ if (lineIndex % 25 === 0)
570
+ return 'modified';
571
+ return 'none';
572
+ }
573
+ // --- Linting ---
574
+ runLinting() {
575
+ const errors = [];
576
+ const lines = this.value.split('\n');
577
+ // Check for unbalanced brackets (Naive check per line usually fails for multi-line, doing global stack is better)
578
+ // But for "Simple Line Linting" let's check basic things.
579
+ // Actually, let's do a stack check for the whole file and find THE FIRST error line.
580
+ const stack = [];
581
+ for (let i = 0; i < lines.length; i++) {
582
+ const line = lines[i];
583
+ for (let j = 0; j < line.length; j++) {
584
+ const char = line[j];
585
+ if (['{', '[', '('].includes(char)) {
586
+ stack.push({ char, line: i + 1 });
587
+ }
588
+ else if (['}', ']', ')'].includes(char)) {
589
+ const last = stack.pop();
590
+ if (!last || !this.matches(last.char, char)) {
591
+ errors.push({ line: i + 1, msg: `Unexpected '${char}'` });
592
+ }
593
+ }
594
+ }
595
+ }
596
+ // If stack remains, the opened ones are unclosed
597
+ if (stack.length > 0) {
598
+ stack.forEach(item => {
599
+ errors.push({ line: item.line, msg: `Unclosed '${item.char}'` });
600
+ });
601
+ }
602
+ this.lintErrors = errors;
603
+ }
604
+ matches(open, close) {
605
+ return (open === '{' && close === '}') ||
606
+ (open === '[' && close === ']') ||
607
+ (open === '(' && close === ')');
608
+ }
609
+ // --- Folding ---
610
+ isLineFoldable(lineIndex, lines) {
611
+ // Simple heuristic: ends with { or start of block indentation
612
+ // Keeping it simple: Indentation increase check is robust for most languages
613
+ if (lineIndex >= lines.length - 1)
614
+ return false;
615
+ const currentIndent = this.getIndentLevel(lines[lineIndex]);
616
+ const nextIndent = this.getIndentLevel(lines[lineIndex + 1]);
617
+ return nextIndent > currentIndent || lines[lineIndex].trim().endsWith('{') || lines[lineIndex].trim().endsWith(':');
618
+ }
619
+ getIndentLevel(line) {
620
+ const match = line.match(/^\s*/);
621
+ return match ? match[0].length : 0;
622
+ }
623
+ toggleFold(lineNum) {
624
+ if (this.foldedLines.has(lineNum)) {
625
+ this.foldedLines.delete(lineNum);
626
+ }
627
+ else {
628
+ this.foldedLines.add(lineNum);
629
+ }
630
+ // Force re-render -> handled by State change
631
+ this.foldedLines = new Set(this.foldedLines);
632
+ }
633
+ foldAll() {
634
+ const lines = this.value.split('\n');
635
+ for (let i = 0; i < lines.length; i++) {
636
+ if (this.isLineFoldable(i, lines))
637
+ this.foldedLines.add(i + 1);
638
+ }
639
+ this.foldedLines = new Set(this.foldedLines);
640
+ }
641
+ unfoldAll() {
642
+ this.foldedLines.clear();
643
+ this.foldedLines = new Set(this.foldedLines);
644
+ }
645
+ // --- Rendering ---
646
+ updateLineCount() {
647
+ const lines = this.value ? this.value.split('\n').length : 1;
648
+ this.lineCount = lines;
649
+ }
650
+ highlightCode() {
651
+ if (!this.value) {
652
+ this.highlightedCode = '';
653
+ return;
654
+ }
655
+ let code = this.escapeHtml(this.value);
656
+ switch (this.language) {
657
+ case 'javascript':
658
+ case 'json':
659
+ code = this.highlightJS(code);
660
+ break;
661
+ case 'html':
662
+ code = this.highlightHTML(code);
663
+ break;
664
+ case 'css':
665
+ code = this.highlightCSS(code);
666
+ break;
667
+ case 'python':
668
+ code = this.highlightPython(code);
669
+ break;
670
+ case 'java':
671
+ case 'csharp':
672
+ code = this.highlightJavaCSharp(code);
673
+ break;
674
+ case 'ladder':
675
+ code = this.highlightLadder(code);
676
+ break;
677
+ }
678
+ // Add Linting Decorators (Regex replace on specific lines is hard on already HTML-escaped code)
679
+ // Simplification: We will only mark the line numbers in red for now,
680
+ // to avoid breaking the syntax highlighter HTML structure.
681
+ if (this.value.endsWith('\n')) {
682
+ code += '<br>';
683
+ }
684
+ this.highlightedCode = code;
685
+ }
686
+ // ... highlight engines ...
687
+ escapeRegex(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); }
688
+ escapeHtml(unsafe) { return unsafe.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;"); }
689
+ highlightJS(code) {
690
+ return code.replace(/\/\/.*/g, '<span class="token comment">$&</span>')
691
+ .replace(/\/\*[\s\S]*?\*\//g, '<span class="token comment">$&</span>')
692
+ .replace(/('.*?')|(".*?")|(`[\s\S]*?`)/g, '<span class="token string">$&</span>')
693
+ .replace(/\b(const|let|var|function|return|if|else|for|while|import|export|class|this|new|true|false|null|undefined|async|await|try|catch|finally|throw|break|continue|default|case|switch|typeof|instanceof|void|delete|in|of|static|get|set|extends|super)\b/g, '<span class="token keyword">$&</span>')
694
+ .replace(/\b(\d+)\b/g, '<span class="token number">$&</span>')
695
+ .replace(/\b([A-Z][a-zA-Z0-9_]*)\b/g, '<span class="token class">$&</span>')
696
+ .replace(/(\w+)(?=\()/g, '<span class="token function">$&</span>');
697
+ }
698
+ highlightHTML(code) {
699
+ return code.replace(/(&lt;\/?)(\w+)(.*?)(&gt;)/g, (_m, p1, p2, p3, p4) => `<span class="token tag">${p1}${p2}</span>${p3.replace(/(\w+)=("[^"]*")/g, '<span class="token attr-name">$1</span>=<span class="token string">$2</span>')}<span class="token tag">${p4}</span>`)
700
+ .replace(/&lt;!--[\s\S]*?--&gt;/g, '<span class="token comment">$&</span>');
701
+ }
702
+ highlightCSS(code) {
703
+ return code.replace(/\/\*[\s\S]*?\*\//g, '<span class="token comment">$&</span>')
704
+ .replace(/([a-zA-Z-]+)(?=:)/g, '<span class="token property">$1</span>')
705
+ .replace(/(:)([^;]+)(;)/g, (_m, p1, p2, p3) => `${p1}<span class="token number">${p2}</span>${p3}`)
706
+ .replace(/(\.|#)([\w-]+)/g, '<span class="token selector">$1$2</span>');
707
+ }
708
+ highlightPython(code) {
709
+ return code.replace(/#.*/g, '<span class="token comment">$&</span>')
710
+ .replace(/("""[\s\S]*?""")|('''.*?''')/g, '<span class="token string">$&</span>')
711
+ .replace(/('.*?')|(".*?")/g, '<span class="token string">$&</span>')
712
+ .replace(/\b(def|class|if|elif|else|for|while|return|import|from|as|try|except|finally|with|pass|continue|break|True|False|None)\b/g, '<span class="token keyword">$&</span>')
713
+ .replace(/\b(\d+)\b/g, '<span class="token number">$&</span>')
714
+ .replace(/\b([A-Z][a-zA-Z0-9_]*)\b/g, '<span class="token class">$&</span>')
715
+ .replace(/@\w+/g, '<span class="token function">$&</span>');
716
+ }
717
+ highlightJavaCSharp(code) {
718
+ return code.replace(/\/\/.*/g, '<span class="token comment">$&</span>')
719
+ .replace(/('.*?')|(".*?")/g, '<span class="token string">$&</span>').replace(/\b(public|private|protected|static|final|class|interface|void|int|double|String|boolean|if|else|for|while|return|new|this|super|extends|implements|try|catch|finally|throw|throws|package|import|namespace|using|var)\b/g, '<span class="token keyword">$&</span>')
720
+ .replace(/\b(\d+)\b/g, '<span class="token number">$&</span>').replace(/\b([A-Z][a-zA-Z0-9_]*)\b/g, '<span class="token class">$&</span>').replace(/@\w+/g, '<span class="token function">$&</span>');
721
+ }
722
+ highlightLadder(code) {
723
+ return code.replace(/\(\*.*?\*\)/g, '<span class="token comment">$&</span>').replace(/\b(XIC|XIO|OTE|OTL|OTU|TON|TOF|RTO|CTU|CTD|MOV|COP|ADD|SUB|MUL|DIV|LIM|EQU|NEQ|LES|GRT|LEQ|GEQ|JMP|LBL)\b/g, '<span class="token keyword">$&</span>').replace(/\b(PROGRAM|END_PROGRAM|VAR|END_VAR|BOOL|INT|REAL|TIME|TON|IF|THEN|END_IF)\b/g, '<span class="token keyword">$&</span>').replace(/%[IQM][\d\.]+/g, '<span class="token number">$&</span>').replace(/\b([A-Z][a-zA-Z0-9_]*)\b/g, '<span class="token variable">$&</span>');
724
+ }
725
+ renderLineNumbers() {
726
+ if (!this.showLineNumbers)
727
+ return null;
728
+ const lines = this.value.split('\n');
729
+ return (h("div", { class: "line-numbers", ref: el => this.lineNumbersRef = el }, lines.map((_content, i) => {
730
+ const lineNum = i + 1;
731
+ const isError = this.lintErrors.find(e => e.line === lineNum);
732
+ const isFoldable = this.isLineFoldable(i, lines);
733
+ const isFolded = this.foldedLines.has(lineNum);
734
+ const gitStatus = this.getLineGitStatus(i);
735
+ return (h("div", { class: {
736
+ 'line-number': true,
737
+ [`git-${gitStatus}`]: gitStatus !== 'none'
738
+ }, onClick: () => isFoldable && this.toggleFold(lineNum), style: { color: isError ? '#ff4d4d' : 'inherit' }, title: isError ? isError.msg : '' }, lineNum, isFoldable && (h("span", { class: "fold-icon" }, h("ui-icon", { name: `chevron-${isFolded ? 'right' : 'down'}`, library: "fontawesome", size: "10px" })))));
739
+ })));
740
+ }
741
+ renderPalette() {
742
+ if (!this.showPalette)
743
+ return null;
744
+ const items = this.getPaletteItems();
745
+ return (h("div", { class: "editor-palette-overlay", onClick: this.togglePalette }, h("div", { class: "editor-palette", onClick: e => e.stopPropagation() }, h("div", { class: "palette-input-wrapper" }, h("ui-icon", { name: "terminal", library: "fontawesome" }), h("ui-input", { type: "text", placeholder: "Type a command or @ for symbols...", value: this.paletteQuery, onInputChange: (e) => this.paletteQuery = e.detail, ref: el => this.paletteInput = el, onInputKeydown: e => {
746
+ if (e.detail.key === 'Escape')
747
+ this.togglePalette();
748
+ if (e.detail.key === 'Enter' && items.length > 0)
749
+ this.runCommand(items[0]);
750
+ }, variant: "plain", size: "sm" })), h("div", { class: "palette-results" }, items.length > 0 ? items.map(cmd => (h("div", { class: "palette-item", onClick: () => this.runCommand(cmd) }, h("ui-icon", { name: cmd.isSymbol ? "at" : "play", library: "fontawesome", size: "14px" }), h("span", null, cmd.label), cmd.line && h("span", { class: "palette-meta" }, "Line ", cmd.line)))) : (h("div", { class: "palette-no-results" }, "No results found"))))));
751
+ }
752
+ renderSearch() {
753
+ if (!this.showSearch)
754
+ return null;
755
+ return (h("div", { class: "search-widget" }, h("ui-input", { customClass: "search-input", ref: el => this.searchInput = el, type: "text", placeholder: "Find", value: this.searchQuery, onInputChange: (e) => this.searchQuery = e.detail, onInputKeydown: (e) => {
756
+ const event = e.detail;
757
+ if (event.key === 'Escape')
758
+ this.showSearch = false;
759
+ if (event.key === 'Enter') {
760
+ event.shiftKey ? this.findPrev() : this.findNext();
761
+ }
762
+ }, size: "sm", variant: "outlined" }), h("div", { class: "search-actions" }, h("ui-button", { variant: "ghost", size: "sm", onClick: () => this.findPrev(), ariaLabel: "Previous (Shift+Enter)", icon: "arrow-up", iconLibrary: "fontawesome", iconOnly: true, iconSize: "14px" }), h("ui-button", { variant: "ghost", size: "sm", onClick: () => this.findNext(), ariaLabel: "Next (Enter)", icon: "arrow-down", iconLibrary: "fontawesome", iconOnly: true, iconSize: "14px" }), h("ui-button", { variant: "ghost", size: "sm", onClick: () => this.showSearch = false, ariaLabel: "Close search", icon: "times", iconLibrary: "fontawesome", iconOnly: true, iconSize: "14px" }))));
763
+ }
764
+ renderMinimap() {
765
+ if (!this.showMinimap)
766
+ return null;
767
+ return (h("div", { class: "minimap-container", onClick: this.handleMinimapClick }, h("div", { class: "minimap-content", innerHTML: sanitizeHTML(this.highlightedCode), ref: el => this.minimapRef = el }), h("div", { class: "minimap-viewport", ref: el => this.minimapViewport = el })));
768
+ }
769
+ renderStatusBar() {
770
+ return (h("div", { class: "status-bar" }, h("div", { class: "status-item" }, h("ui-icon", { name: "code-branch", library: "fontawesome", size: "14px" }), " main"), h("div", { class: "status-item" }, h("ui-icon", { name: "exclamation-circle", library: "fontawesome", size: "14px" }), " ", this.lintErrors.length, " Errors"), h("div", { class: "status-item" }, "Ln ", this.statusStats.line, ", Col ", this.statusStats.col), h("div", { class: "status-item" }, this.statusStats.selected > 0 ? `(${this.statusStats.selected} selected)` : ''), h("div", { class: "status-item" }, "Spaces: 2"), h("div", { class: "status-item" }, this.language.toUpperCase()), h("div", { class: "status-item", onClick: () => this.toggleTheme(), style: { cursor: 'pointer' } }, this.theme === 'vs-dark' ? h("ui-icon", { name: "moon", library: "fontawesome", size: "14px" }) : h("ui-icon", { name: "sun", library: "fontawesome", size: "14px" }))));
771
+ }
772
+ renderSuggestions() {
773
+ if (!this.showSuggestions)
774
+ return null;
775
+ return (h("ul", { class: "suggestion-list", style: { top: `${this.suggestionPos.top}px`, left: `${this.suggestionPos.left}px` } }, this.suggestions.map((s, i) => (h("li", { class: i === this.suggestionIndex ? 'active' : '', onClick: () => this.acceptSuggestion(s), onMouseDown: e => e.preventDefault() }, h("ui-icon", { name: "cube", library: "fontawesome", size: "14px", class: "icon" }), " ", s)))));
776
+ }
777
+ renderRibbonButton(icon, label, onClick, options = {}) {
778
+ const { lg = false, color } = options;
779
+ const showLabel = this.toolbarLabelDisplay === 'always';
780
+ const useTooltip = this.toolbarLabelDisplay === 'hover';
781
+ const btn = (h("ui-button", { slot: useTooltip ? "target" : undefined,
782
+ // class={{
783
+ // 'ribbon-btn': true,
784
+ // 'lg': lg,
785
+ // 'active': active,
786
+ // 'icon-only': !showLabel
787
+ // }}
788
+ onClick: onClick, style: color ? { color } : {}, ariaLabel: label, label: showLabel ? label : undefined, icon: icon.replace(/^fa[sb]? fa-/, ''), iconLibrary: "fontawesome", iconOnly: !showLabel, size: lg ? 'lg' : 'md', variant: "ghost" }));
789
+ if (useTooltip) {
790
+ return (h("ui-tooltip", { content: label, position: "bottom" }, btn));
791
+ }
792
+ return btn;
793
+ }
794
+ isGroupVisible(groupName) {
795
+ if (!this.toolbarGroups || this.toolbarGroups.includes('all'))
796
+ return true;
797
+ return this.toolbarGroups.includes(groupName);
798
+ }
799
+ renderToolbar() {
800
+ if (!this.toolbar)
801
+ return null;
802
+ return (h("div", { class: `editor-ribbon-container labels-${this.toolbarLabelDisplay}` }, h("div", { class: "ribbon-tabs" }, h("div", { class: `ribbon-tab ${this.activeToolbarTab === 'home' ? 'active' : ''}`, onClick: () => this.activeToolbarTab = 'home' }, h("ui-tooltip", { content: "Home", position: "bottom" }, h("ui-icon", { name: "home", library: "fontawesome", slot: "target", size: "16px" }))), h("div", { class: `ribbon-tab ${this.activeToolbarTab === 'edit' ? 'active' : ''}`, onClick: () => this.activeToolbarTab = 'edit' }, h("ui-tooltip", { content: "Edit", position: "bottom" }, h("ui-icon", { name: "edit", library: "fontawesome", slot: "target", size: "16px" }))), h("div", { class: `ribbon-tab ${this.activeToolbarTab === 'view' ? 'active' : ''}`, onClick: () => this.activeToolbarTab = 'view' }, h("ui-tooltip", { content: "View", position: "bottom" }, h("ui-icon", { name: "eye", library: "fontawesome", slot: "target", size: "16px" }))), h("div", { class: `ribbon-tab ${this.activeToolbarTab === 'run' ? 'active' : ''}`, onClick: () => this.activeToolbarTab = 'run' }, h("ui-tooltip", { content: "Run", position: "bottom" }, h("ui-icon", { name: "play", library: "fontawesome", slot: "target", size: "16px" })))), h("div", { class: "ribbon-content" }, this.activeToolbarTab === 'home' && (h("div", { class: "ribbon-panel" }, this.isGroupVisible('history') && (h("div", { class: "ribbon-group" }, h("div", { class: "ribbon-group-content" }, this.renderRibbonButton('fas fa-undo', 'Undo', () => this.handleUndo(), { lg: true }), this.renderRibbonButton('fas fa-redo', 'Redo', () => this.handleRedo(), { lg: true })), h("div", { class: "ribbon-group-label" }, "History"))), this.isGroupVisible('history') && this.isGroupVisible('clipboard') && h("div", { class: "ribbon-group divider" }), this.isGroupVisible('clipboard') && (h("div", { class: "ribbon-group" }, h("div", { class: "ribbon-group-content" }, this.renderRibbonButton('fas fa-copy', 'Copy', () => this.handleCopy()), this.renderRibbonButton('fas fa-mouse-pointer', 'Select All', () => this.handleSelectAll())), h("div", { class: "ribbon-group-label" }, "Clipboard"))), (this.isGroupVisible('history') || this.isGroupVisible('clipboard')) && this.isGroupVisible('search') && h("div", { class: "ribbon-group divider" }), this.isGroupVisible('search') && (h("div", { class: "ribbon-group" }, h("div", { class: "ribbon-group-content" }, this.renderRibbonButton('fas fa-search', 'Find', () => this.toggleSearch(), { lg: true }), this.renderRibbonButton('fas fa-terminal', 'Palette', () => this.togglePalette(), { lg: true })), h("div", { class: "ribbon-group-label" }, "Search"))))), this.activeToolbarTab === 'edit' && (h("div", { class: "ribbon-panel" }, this.isGroupVisible('document') && (h("div", { class: "ribbon-group" }, h("div", { class: "ribbon-group-content" }, this.renderRibbonButton('fas fa-code', 'Format', () => this.simpleFormat(), { lg: true })), h("div", { class: "ribbon-group-label" }, "Document"))), this.isGroupVisible('document') && this.isGroupVisible('folding') && h("div", { class: "ribbon-group divider" }), this.isGroupVisible('folding') && (h("div", { class: "ribbon-group" }, h("div", { class: "ribbon-group-content" }, this.renderRibbonButton('fas fa-minus-square', 'Fold All', () => this.foldAll()), this.renderRibbonButton('fas fa-plus-square', 'Unfold All', () => this.unfoldAll())), h("div", { class: "ribbon-group-label" }, "Folding"))), (this.isGroupVisible('document') || this.isGroupVisible('folding')) && this.isGroupVisible('actions') && h("div", { class: "ribbon-group divider" }), this.isGroupVisible('actions') && (h("div", { class: "ribbon-group" }, h("div", { class: "ribbon-group-content" }, this.renderRibbonButton('fas fa-comment-slash', 'Comment', () => this.handleCommentSelection())), h("div", { class: "ribbon-group-label" }, "Actions"))))), this.activeToolbarTab === 'view' && (h("div", { class: "ribbon-panel" }, this.isGroupVisible('interface') && (h("div", { class: "ribbon-group" }, h("div", { class: "ribbon-group-content" }, this.renderRibbonButton('fas fa-map', 'Minimap', () => this.toggleMinimap(), { lg: true, active: this.showMinimap }), this.renderRibbonButton('fas fa-list-ol', 'Line Numbers', () => this.showLineNumbers = !this.showLineNumbers, { lg: true, active: this.showLineNumbers })), h("div", { class: "ribbon-group-label" }, "Interface"))), this.isGroupVisible('interface') && this.isGroupVisible('theme') && h("div", { class: "ribbon-group divider" }), this.isGroupVisible('theme') && (h("div", { class: "ribbon-group" }, h("div", { class: "ribbon-group-content" }, this.renderRibbonButton(this.theme === 'vs-dark' ? 'fas fa-moon' : 'fas fa-sun', this.theme === 'vs-dark' ? 'Dark' : 'Light', () => this.toggleTheme(), { lg: true })), h("div", { class: "ribbon-group-label" }, "Theme"))), (this.isGroupVisible('interface') || this.isGroupVisible('theme')) && this.isGroupVisible('appearance') && h("div", { class: "ribbon-group divider" }), this.isGroupVisible('appearance') && (h("div", { class: "ribbon-group" }, h("div", { class: "ribbon-group-content" }, h("div", { class: "ribbon-select-container" }, h("select", { onChange: (e) => this.fontSize = parseInt(e.target.value) }, [10, 12, 14, 16, 18, 20, 24].map(size => (h("option", { value: size, selected: this.fontSize === size }, size, "px")))), this.toolbarLabelDisplay === 'always' && h("span", null, "Font Size"))), h("div", { class: "ribbon-group-label" }, "Appearance"))))), this.activeToolbarTab === 'run' && (h("div", { class: "ribbon-panel" }, this.isGroupVisible('execution') && (h("div", { class: "ribbon-group" }, h("div", { class: "ribbon-group-content" }, this.renderRibbonButton('fas fa-play', 'Run Code', () => this.runCode.emit(), { lg: true, color: '#4ade80' })), h("div", { class: "ribbon-group-label" }, "Execution"))))))));
803
+ }
804
+ renderHelp() {
805
+ if (!this.showHelp)
806
+ return null;
807
+ return (h("div", { class: "help-modal-overlay", onClick: () => this.showHelp = false }, h("div", { class: "help-modal", onClick: e => e.stopPropagation() }, h("div", { class: "help-header" }, h("h3", null, "Editor Shortcuts & Help"), h("ui-button", { variant: "ghost", onClick: () => this.showHelp = false, ariaLabel: "Close help", icon: "times", iconLibrary: "fontawesome", iconOnly: true })), h("div", { class: "help-content" }, h("div", { class: "help-section" }, h("h4", null, "Keyboard Shortcuts"), h("ul", null, h("li", null, h("kbd", null, "Ctrl"), " + ", h("kbd", null, "F"), " : Find / Search"), h("li", null, h("kbd", null, "Ctrl"), " + ", h("kbd", null, "Shift"), " + ", h("kbd", null, "P"), " : Command Palette"), h("li", null, h("kbd", null, "Ctrl"), " + ", h("kbd", null, "Space"), " : Trigger Suggestions"), h("li", null, h("kbd", null, "Tab"), " : Indent / Accept Suggestion"))), h("div", { class: "help-section" }, h("h4", null, "Toolbar Features"), h("ul", null, h("li", null, h("ui-icon", { name: "play", library: "fontawesome", style: { color: '#4ade80' }, size: "14px" }), " ", h("strong", null, "Run"), ": Execute code (demo mode)"), h("li", null, h("ui-icon", { name: "indent", library: "fontawesome", size: "14px" }), " ", h("strong", null, "Format"), ": Auto-indent code"), h("li", null, h("ui-icon", { name: "moon", library: "fontawesome", size: "14px" }), " ", h("strong", null, "Theme"), ": Toggle Dark/Light")))))));
808
+ }
809
+ renderTabBar() {
810
+ if (!this.tabs || this.tabs.length === 0)
811
+ return null;
812
+ return (h("div", { class: "editor-tabs" }, this.tabs.map((tab, i) => (h("div", { class: `editor-tab ${i === this.activeTabIndex ? 'active' : ''}`, onClick: () => this.handleTabClick(i) }, h("ui-icon", { class: "tab-icon", name: this.getIconForLang(tab.language), library: "fontawesome" }), h("span", { class: "tab-title" }, tab.title))))));
813
+ }
814
+ getIconForLang(lang) {
815
+ switch (lang) {
816
+ case 'javascript': return 'js-square'; // Needs font awesome brands or just use file-code
817
+ case 'html': return 'html5';
818
+ case 'css': return 'css3';
819
+ case 'python': return 'python';
820
+ case 'java': return 'java';
821
+ case 'json': return 'code';
822
+ default: return 'file-alt';
823
+ }
824
+ }
825
+ // --- Advanced IDE Methods ---
826
+ renderSidebar() {
827
+ if (!this.showSidebar)
828
+ return null;
829
+ return (h("div", { class: { 'editor-sidebar': true, 'collapsed': !this.showSidebar } }, h("div", { class: "sidebar-tabs" }, h("div", { class: { 'sidebar-tab': true, 'active': this.activeSidebarTab === 'files' }, onClick: () => this.activeSidebarTab = 'files' }, h("ui-icon", { name: "copy", library: "fontawesome" }))), h("div", { class: "sidebar-content" }, this.activeSidebarTab === 'files' && (h("div", { class: "file-explorer" }, h("div", { class: "sidebar-header" }, "EXPLORER"), h("div", { class: "file-list" }, this.files.map((file, index) => (h("div", { class: { 'file-item': true, 'active': this.activeFileIndex === index }, onClick: () => this.switchFile(index) }, h("ui-icon", { name: this.getFileIcon(file.name).split(' ').find(c => c.startsWith('fa-')).replace('fa-', ''), library: "fontawesome", class: this.getFileIcon(file.name) }), h("span", null, file.name))))))))));
830
+ }
831
+ handleTerminalKeyDown = (e) => {
832
+ if (e.key === 'Enter') {
833
+ const input = e.target;
834
+ const cmd = input.value.trim().toLowerCase();
835
+ if (!cmd)
836
+ return;
837
+ this.terminalLogs = [...this.terminalLogs, { type: 'info', text: `$ ${input.value}`, time: new Date().toLocaleTimeString() }];
838
+ if (cmd === 'clear') {
839
+ this.terminalLogs = [];
840
+ }
841
+ else if (cmd === 'run' || cmd === 'node index.js') {
842
+ this.terminalLogs = [...this.terminalLogs, { type: 'info', text: 'Executing program...', time: new Date().toLocaleTimeString() }];
843
+ setTimeout(() => {
844
+ const results = this.executeCode();
845
+ const logs = results.map(r => ({ ...r, time: new Date().toLocaleTimeString() }));
846
+ this.terminalLogs = [...this.terminalLogs, ...logs];
847
+ this.runCode.emit();
848
+ }, 500);
849
+ }
850
+ else if (cmd === 'help') {
851
+ this.terminalLogs = [...this.terminalLogs, { type: 'info', text: 'Available commands: run, clear, help, ls, whoami', time: new Date().toLocaleTimeString() }];
852
+ }
853
+ else {
854
+ this.terminalLogs = [...this.terminalLogs, { type: 'error', text: `Command not found: ${cmd}`, time: new Date().toLocaleTimeString() }];
855
+ }
856
+ input.value = '';
857
+ }
858
+ };
859
+ renderBreadcrumbs() {
860
+ const activeFile = this.files[this.activeFileIndex];
861
+ return (h("div", { class: "editor-breadcrumbs" }, h("div", { class: "breadcrumb-item" }, h("ui-icon", { name: "folder-open", library: "fontawesome", size: "12px" }), h("span", null, "project"), h("span", { class: "separator" }, "/")), h("div", { class: "breadcrumb-item" }, h("ui-icon", { name: this.getFileIcon(activeFile.name).split(' ').find(c => c.startsWith('fa-')).replace('fa-', ''), library: "fontawesome", class: this.getFileIcon(activeFile.name), size: "12px" }), h("span", null, activeFile.name))));
862
+ }
863
+ renderBottomPanel() {
864
+ if (!this.showBottomPanel)
865
+ return null;
866
+ return (h("div", { class: { 'editor-bottom-panel': true, 'collapsed': !this.showBottomPanel } }, h("div", { class: "panel-header" }, h("div", { class: "panel-tabs" }, h("div", { class: { 'panel-tab': true, 'active': this.activeBottomTab === 'terminal' }, onClick: () => this.activeBottomTab = 'terminal' }, "TERMINAL"), h("div", { class: { 'panel-tab': true, 'active': this.activeBottomTab === 'output' }, onClick: () => this.activeBottomTab = 'output' }, "OUTPUT"), h("div", { class: { 'panel-tab': true, 'active': this.activeBottomTab === 'problems' }, onClick: () => this.activeBottomTab = 'problems' }, "PROBLEMS")), h("div", { class: "panel-controls" }, h("ui-icon", { name: "times", library: "fontawesome", onClick: () => this.showBottomPanel = false, style: { cursor: 'pointer' } }))), h("div", { class: "panel-content" }, this.activeBottomTab === 'terminal' && (h("div", { class: "terminal-content" }, this.terminalLogs.map(log => (h("div", { class: `log-item ${log.type}` }, h("span", { class: "log-time" }, "[", log.time, "]"), h("span", { class: "log-text" }, log.text)))), h("div", { class: "terminal-input-line" }, h("span", { class: "terminal-prompt" }, "$"), h("ui-input", { type: "text", customClass: "terminal-input", placeholder: "Type a command (run, clear, help)...", onInputKeydown: (e) => this.handleTerminalKeyDown(e.detail), variant: "plain", size: "sm", fullWidth: true })))), this.activeBottomTab === 'output' && (h("div", { class: "output-preview", style: { display: 'flex', alignItems: 'center', justifyCenter: 'center', height: '100%', background: '#f8fafc', color: '#64748b' } }, h("div", { style: { textAlign: 'center' } }, h("ui-icon", { name: "eye-slash", library: "fontawesome", size: "32px", style: { opacity: 0.5, marginBottom: '12px' } }), h("p", { style: { fontSize: '14px', fontWeight: '500' } }, "Live Preview Disabled (No Iframe)")))))));
867
+ }
868
+ switchFile(index) {
869
+ this.activeFileIndex = index;
870
+ const file = this.files[index];
871
+ this.value = file.content;
872
+ this.language = file.language;
873
+ this.valueChange.emit(this.value);
874
+ }
875
+ getFileIcon(name) {
876
+ if (name.endsWith('.js'))
877
+ return 'fab fa-js-square text-warning';
878
+ if (name.endsWith('.html'))
879
+ return 'fab fa-html5 text-danger';
880
+ if (name.endsWith('.css'))
881
+ return 'fab fa-css3-alt text-primary';
882
+ return 'fas fa-file-code';
883
+ }
884
+ // --- Render ---
885
+ render() {
886
+ const themeClass = this.theme === 'vs-light' ? 'theme-vs-light' : 'theme-vs-dark';
887
+ const lines = this.value.split('\n');
888
+ let skipUntilIndentCheck = -1;
889
+ let indentLevelToCheck = -1;
890
+ for (let i = 0; i < lines.length; i++) {
891
+ if (skipUntilIndentCheck !== -1) {
892
+ const currentIndent = this.getIndentLevel(lines[i]);
893
+ if (currentIndent <= indentLevelToCheck && lines[i].trim() !== '') {
894
+ // End fold
895
+ skipUntilIndentCheck = -1;
896
+ }
897
+ else {
898
+ // Still hidden
899
+ continue;
900
+ }
901
+ }
902
+ else {
903
+ if (this.foldedLines.has(i + 1)) {
904
+ // Start fold
905
+ skipUntilIndentCheck = i + 1;
906
+ indentLevelToCheck = this.getIndentLevel(lines[i]);
907
+ }
908
+ }
909
+ }
910
+ // Reconstruct visible value for display is tricky because textarea needs full value.
911
+ // For now, we will use CSS transformation or just mask the lines in line-number rendering?
912
+ // Actually, preventing rendering in the textarea is problematic for editing.
913
+ // Proper code folding usually uses a specialized view model.
914
+ // Quick Hack: We can't easily hide lines in a native textarea without breaking editing sync.
915
+ // Strategy change: Just hide the "Preview" lines? No, that desyncs.
916
+ // Strategy change for MVP: Only support folding visually in the "Read Only" mode or just acknowledge limitation.
917
+ // Better: We will NOT physically hide lines in textarea because it breaks cursor.
918
+ // We will just show the UI for it and maybe collapse the HEIGHT of those lines to 0?
919
+ // Implementing line-height collapsing in a plain textarea is impossible.
920
+ // So, rigorous folding is impossible with a naive Textarea overlay.
921
+ // Compromise: We will implement the Logic and UI but maybe "Mock" the folding effect by removing content from display?
922
+ // Let's stick to the visual cues for now and maybe "Filter" the content if Readonly.
923
+ // Or... we actually strip the lines from the value temporarily? No, dangerous.
924
+ // Let's implement the Command Palette and Linting primarily. Folding might remain "Visual only" (icon toggles state but nothing happens)
925
+ // unless we switch to `contenteditable` div which is out of scope.
926
+ // Wait! We can set `line-height: 0` on specific lines? No, textarea is one block.
927
+ // OK, for this task, I will enable the "UI" of folding (icons) but adding a "Not fully supported in Textarea mode" note?
928
+ // OR: I can replace the textarea value with a "Folded" version when folded?
929
+ // i.e. `Line 1 {\n ... }` -> `Line 1 { ...`
930
+ // Then map cursor positions. Too complex.
931
+ // Revised Plan for Folding:
932
+ // Since we are building a "Premium" feel demo, getting stuck on Textarea limitations is bad.
933
+ // But rewriting to contenteditable is huge.
934
+ // I will implement the Linting and Palette fully.
935
+ // For Folding, I'll add the Icons and State, but maybe disable the actual hiding to avoid broken editing.
936
+ // OR: changing the `textarea` height/transform? No.
937
+ // I'll leave the Folding Logic in place but comment out the Layout shift if it's too risky.
938
+ // Actually, let's try to just filter the `lines` map in `renderLineNumbers` to visually show we handle it,
939
+ // but for the textarea/pre, we CANNOT hide separate lines.
940
+ return (h("div", { key: '321fc92d91bf5365394b866e7efef0bcce5f92e8', class: `code-editor-container ${themeClass}` }, this.renderTabBar(), this.renderToolbar(), this.renderPalette(), h("div", { key: '212c74c9fae6bddf8206698c2b7279acc328cdf6', class: "code-editor-layout" }, this.renderSidebar(), h("div", { key: '6afeb17b34a66e4cdaf72d8582041913a58d13fc', class: "editor-main-panel" }, this.renderBreadcrumbs(), h("div", { key: '7a3e97d74cc5b68250a4471a3e1b9fa858d22b98', class: "editor-main-content", style: { display: 'flex', flex: '1', minHeight: '0', position: 'relative' } }, this.renderLineNumbers(), h("div", { key: 'ce569b57f4c9b4365cd9f014d8aff2d1c8679b8b', class: "editor-wrapper" }, this.renderSearch(), this.renderSuggestions(), h("ui-button", { key: '629168b1f60cc6a962af7d4f81e0078d5c13f2d4', variant: "ghost", class: "copy-button", onClick: this.handleCopy, ariaLabel: "Copy Code", icon: "copy", iconLibrary: "fontawesome", iconOnly: true }), h("pre", { key: 'd4fa13f823d5ba4ab80db9ab66286de099ba28cc', class: "syntax-highlighter", ref: el => this.pre = el, innerHTML: sanitizeHTML(this.highlightedCode) }), h("textarea", { key: '77d8ec6eb4aa8cea02da3ca30d1b5a992717d319', class: "editor-content", ref: el => this.textarea = el, value: this.value, onInput: this.handleInput, onScroll: this.handleScroll, onKeyDown: this.handleKeydown, onSelect: this.handleSelection, onClick: this.handleSelection, onKeyUp: this.handleSelection, spellcheck: false, readonly: this.readonly, role: "textbox", "aria-multiline": "true", "aria-label": "Code Editor" })), this.renderMinimap()), this.renderBottomPanel())), this.renderStatusBar(), this.renderHelp()));
941
+ }
942
+ static get watchers() { return {
943
+ "value": [{
944
+ "valueChanged": 0
945
+ }],
946
+ "language": [{
947
+ "languageChanged": 0
948
+ }],
949
+ "tabs": [{
950
+ "tabsChanged": 0
951
+ }],
952
+ "searchQuery": [{
953
+ "searchQueryChanged": 0
954
+ }]
955
+ }; }
956
+ };
957
+ AppCodeEditor.style = codeEditorCss();
958
+
959
+ export { AppCodeEditor as ui_code_editor };