@agent-ui-kit/web-components 0.0.8 → 0.0.15

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 (563) hide show
  1. package/README.md +67 -4
  2. package/dist/agent-ui.css +1 -1
  3. package/dist/api.colors.json +2 -2
  4. package/dist/api.colors.yaml +2 -2
  5. package/dist/api.components.json +8214 -2794
  6. package/dist/api.tokens.json +35 -3
  7. package/dist/api.tokens.yaml +27 -3
  8. package/dist/blocks/agent-chat/agent-chat.d.ts +0 -0
  9. package/dist/blocks/announcement-card/announcement-card.d.ts +0 -0
  10. package/dist/blocks/bpm-process/bpm-process.d.ts +0 -0
  11. package/dist/blocks/chart-activity/chart-activity.d.ts +0 -0
  12. package/dist/blocks/chart-card/chart-card.d.ts +0 -0
  13. package/dist/blocks/chart-donut/chart-donut.d.ts +0 -0
  14. package/dist/blocks/chart-grouped/chart-grouped.d.ts +0 -0
  15. package/dist/blocks/chart-horizontal/chart-horizontal.d.ts +0 -0
  16. package/dist/blocks/chart-interactive/chart-interactive.d.ts +0 -0
  17. package/dist/blocks/chart-labeled/chart-labeled.d.ts +0 -0
  18. package/dist/blocks/checkout-form/checkout-form.d.ts +0 -0
  19. package/dist/blocks/clinical-trial/clinical-trial.d.ts +0 -0
  20. package/dist/blocks/contributors/contributors.d.ts +0 -0
  21. package/dist/blocks/cyber-threat/cyber-threat.d.ts +0 -0
  22. package/dist/blocks/dashboard-layout/dashboard-layout.d.ts +0 -0
  23. package/dist/blocks/data-eng-dag/data-eng-dag.d.ts +0 -0
  24. package/dist/blocks/date-picker/date-picker.d.ts +0 -0
  25. package/dist/blocks/ddx-workflow/ddx-workflow.d.ts +0 -0
  26. package/dist/blocks/empty-state/empty-state.d.ts +0 -0
  27. package/dist/blocks/env-variables/env-variables.d.ts +0 -0
  28. package/dist/blocks/feature-upgrade/feature-upgrade.d.ts +0 -0
  29. package/dist/blocks/financial-risk/financial-risk.d.ts +0 -0
  30. package/dist/blocks/flow-editor/flow-editor.d.ts +0 -0
  31. package/dist/blocks/gen-ai-pipeline/gen-ai-pipeline.d.ts +0 -0
  32. package/dist/blocks/index.d.ts +0 -0
  33. package/dist/blocks/issue-assign/issue-assign.d.ts +0 -0
  34. package/dist/blocks/keyboard-shortcuts/keyboard-shortcuts.d.ts +0 -0
  35. package/dist/blocks/login-branded/login-branded.d.ts +0 -0
  36. package/dist/blocks/login-email-only/login-email-only.d.ts +0 -0
  37. package/dist/blocks/login-form/login-form.d.ts +0 -0
  38. package/dist/blocks/login-simple/login-simple.d.ts +0 -0
  39. package/dist/blocks/login-social/login-social.d.ts +0 -0
  40. package/dist/blocks/login-two-column/login-two-column.d.ts +0 -0
  41. package/dist/blocks/marketing-automation/marketing-automation.d.ts +0 -0
  42. package/dist/blocks/member-list/member-list.d.ts +0 -0
  43. package/dist/blocks/ml-pipeline/ml-pipeline.d.ts +0 -0
  44. package/dist/blocks/nav-card/nav-card.d.ts +0 -0
  45. package/dist/blocks/notification-list/notification-list.d.ts +0 -0
  46. package/dist/blocks/oncology-pathway/oncology-pathway.d.ts +0 -0
  47. package/dist/blocks/pricing-card/pricing-card.d.ts +0 -0
  48. package/dist/blocks/processing-state/processing-state.d.ts +0 -0
  49. package/dist/blocks/profile-card/profile-card.d.ts +0 -0
  50. package/dist/blocks/saas-onboarding/saas-onboarding.d.ts +0 -0
  51. package/dist/blocks/settings-form/settings-form.d.ts +0 -0
  52. package/dist/blocks/settings-panel/settings-panel.d.ts +0 -0
  53. package/dist/blocks/sidebar-nav/sidebar-nav.d.ts +0 -0
  54. package/dist/blocks/signup-form/signup-form.d.ts +0 -0
  55. package/dist/blocks/stat-cards/stat-cards.d.ts +0 -0
  56. package/dist/blocks/status-card/status-card.d.ts +0 -0
  57. package/dist/blocks/suggested-labs/suggested-labs.d.ts +0 -0
  58. package/dist/blocks/supply-chain/supply-chain.d.ts +0 -0
  59. package/dist/blocks/survey-card/survey-card.d.ts +0 -0
  60. package/dist/blocks/tabbed-panel/tabbed-panel.d.ts +0 -0
  61. package/dist/blocks/team-empty/team-empty.d.ts +0 -0
  62. package/dist/blocks/usage-billing/usage-billing.d.ts +0 -0
  63. package/dist/blocks-incoming/action-toolbar/action-toolbar.d.ts +0 -0
  64. package/dist/blocks-incoming/agent-artifact-card/agent-artifact-card.d.ts +0 -0
  65. package/dist/blocks-incoming/agent-chat-response/agent-chat-response.d.ts +0 -0
  66. package/dist/blocks-incoming/agent-code-result/agent-code-result.d.ts +0 -0
  67. package/dist/blocks-incoming/agent-context-panel/agent-context-panel.d.ts +0 -0
  68. package/dist/blocks-incoming/agent-feedback-controls/agent-feedback-controls.d.ts +0 -0
  69. package/dist/blocks-incoming/agent-follow-up-chips/agent-follow-up-chips.d.ts +0 -0
  70. package/dist/blocks-incoming/agent-model-selector/agent-model-selector.d.ts +0 -0
  71. package/dist/blocks-incoming/agent-prompt-input/agent-prompt-input.d.ts +0 -0
  72. package/dist/blocks-incoming/agent-streaming-message/agent-streaming-message.d.ts +0 -0
  73. package/dist/blocks-incoming/agent-suggestion-card/agent-suggestion-card.d.ts +0 -0
  74. package/dist/blocks-incoming/agent-task-card/agent-task-card.d.ts +0 -0
  75. package/dist/blocks-incoming/agent-thinking-state/agent-thinking-state.d.ts +0 -0
  76. package/dist/blocks-incoming/agent-tool-use-card/agent-tool-use-card.d.ts +0 -0
  77. package/dist/blocks-incoming/auth-card/auth-card.d.ts +0 -0
  78. package/dist/blocks-incoming/commerce-pricing-table/commerce-pricing-table.d.ts +0 -0
  79. package/dist/blocks-incoming/comms-chat-thread/comms-chat-thread.d.ts +0 -0
  80. package/dist/blocks-incoming/comms-notification-list/comms-notification-list.d.ts +0 -0
  81. package/dist/blocks-incoming/content-article-card/content-article-card.d.ts +0 -0
  82. package/dist/blocks-incoming/dashboard-kpi-grid/dashboard-kpi-grid.d.ts +0 -0
  83. package/dist/blocks-incoming/data-activity-log/data-activity-log.d.ts +0 -0
  84. package/dist/blocks-incoming/data-metric-card/data-metric-card.d.ts +0 -0
  85. package/dist/blocks-incoming/data-table/data-table.d.ts +0 -0
  86. package/dist/blocks-incoming/data-timeline/data-timeline.d.ts +0 -0
  87. package/dist/blocks-incoming/feedback-alert-banner/feedback-alert-banner.d.ts +0 -0
  88. package/dist/blocks-incoming/feedback-empty-state/feedback-empty-state.d.ts +0 -0
  89. package/dist/blocks-incoming/feedback-progress-stepper/feedback-progress-stepper.d.ts +0 -0
  90. package/dist/blocks-incoming/form-settings-section/form-settings-section.d.ts +0 -0
  91. package/dist/blocks-incoming/game-battleship/game-battleship.d.ts +0 -0
  92. package/dist/blocks-incoming/game-chess/game-chess.d.ts +0 -0
  93. package/dist/blocks-incoming/game-connect-four/game-connect-four.d.ts +0 -0
  94. package/dist/blocks-incoming/game-tic-tac-toe/game-tic-tac-toe.d.ts +0 -0
  95. package/dist/blocks-incoming/list-kanban-board/list-kanban-board.d.ts +0 -0
  96. package/dist/blocks-incoming/media-image-gallery/media-image-gallery.d.ts +0 -0
  97. package/dist/blocks-incoming/nav-sidebar/nav-sidebar.d.ts +0 -0
  98. package/dist/blocks-incoming/onboard-stepper/onboard-stepper.d.ts +0 -0
  99. package/dist/blocks-incoming/overlay-confirmation-modal/overlay-confirmation-modal.d.ts +0 -0
  100. package/dist/blocks-incoming/overlay-dropdown-menu/overlay-dropdown-menu.d.ts +0 -0
  101. package/dist/blocks-incoming/user-profile-card/user-profile-card.d.ts +0 -0
  102. package/dist/blocks-incoming/user-team-list/user-team-list.d.ts +0 -0
  103. package/dist/chunks/{agent-ciCayeod.js → agent-BF_R_HJk.js} +68 -64
  104. package/dist/chunks/{agent-ciCayeod.js.map → agent-BF_R_HJk.js.map} +1 -1
  105. package/dist/chunks/meter-Dju8ik6C.js +5395 -0
  106. package/dist/chunks/meter-Dju8ik6C.js.map +1 -0
  107. package/dist/components/accordion/accordion-item.d.ts +9 -0
  108. package/dist/components/accordion/accordion.d.ts +9 -0
  109. package/dist/components/accordion/index.d.ts +2 -0
  110. package/dist/components/agent/agent-activity.d.ts +13 -0
  111. package/dist/components/agent/agent-feed.d.ts +13 -0
  112. package/dist/components/agent/agent-input.d.ts +18 -0
  113. package/dist/components/agent/agent-message.d.ts +22 -0
  114. package/dist/components/agent/agent-panel.d.ts +16 -0
  115. package/dist/components/agent/agent-prompt.d.ts +7 -0
  116. package/dist/components/agent/agent-seeds.d.ts +15 -0
  117. package/dist/components/agent/agent-text.d.ts +14 -0
  118. package/dist/components/agent/agent-thread.d.ts +11 -0
  119. package/dist/components/agent/index.d.ts +9 -0
  120. package/dist/components/agent.js +6 -6
  121. package/dist/components/alert/alert.d.ts +3 -0
  122. package/dist/components/alert/index.d.ts +1 -0
  123. package/dist/components/app-shell/app-shell.d.ts +4 -0
  124. package/dist/components/app-shell/index.d.ts +1 -0
  125. package/dist/components/avatar/avatar.d.ts +0 -0
  126. package/dist/components/avatar-group/avatar-group.d.ts +10 -0
  127. package/dist/components/avatar-group/index.d.ts +1 -0
  128. package/dist/components/badge/badge.d.ts +0 -0
  129. package/dist/components/bar/bar.d.ts +0 -0
  130. package/dist/components/breadcrumb/breadcrumb-item.d.ts +8 -0
  131. package/dist/components/breadcrumb/breadcrumb.d.ts +9 -0
  132. package/dist/components/breadcrumb/index.d.ts +2 -0
  133. package/dist/components/button/button.d.ts +17 -0
  134. package/dist/components/button/index.d.ts +1 -0
  135. package/dist/components/button-group/button-group.d.ts +0 -0
  136. package/dist/components/calendar/calendar.d.ts +26 -0
  137. package/dist/components/calendar/index.d.ts +3 -0
  138. package/dist/components/calendar/store/calendar-store.d.ts +60 -0
  139. package/dist/components/calendar-picker/calendar-picker.d.ts +14 -0
  140. package/dist/components/calendar-picker/index.d.ts +1 -0
  141. package/dist/components/calendar-range-picker/calendar-range-picker.d.ts +14 -0
  142. package/dist/components/calendar-range-picker/index.d.ts +1 -0
  143. package/dist/components/canvas/canvas.d.ts +19 -0
  144. package/dist/components/canvas/index.d.ts +1 -0
  145. package/dist/components/carousel/carousel.d.ts +13 -0
  146. package/dist/components/carousel/index.d.ts +1 -0
  147. package/dist/components/checkbox/checkbox.d.ts +18 -0
  148. package/dist/components/checkbox/index.d.ts +1 -0
  149. package/dist/components/chip/chip.d.ts +8 -0
  150. package/dist/components/chip/index.d.ts +1 -0
  151. package/dist/components/code/code.d.ts +0 -0
  152. package/dist/components/code-block/code-block.d.ts +10 -0
  153. package/dist/components/code-block/index.d.ts +1 -0
  154. package/dist/components/color-area/color-area.d.ts +12 -0
  155. package/dist/components/color-area/index.d.ts +1 -0
  156. package/dist/components/color-field/color-field.d.ts +10 -0
  157. package/dist/components/color-field/index.d.ts +1 -0
  158. package/dist/components/color-picker/color-picker.d.ts +11 -0
  159. package/dist/components/color-picker/index.d.ts +1 -0
  160. package/dist/components/color-picker/oklch-utils.d.ts +18 -0
  161. package/dist/components/color-slider/color-slider.d.ts +15 -0
  162. package/dist/components/color-slider/index.d.ts +1 -0
  163. package/dist/components/color-swatch/color-swatch.d.ts +0 -0
  164. package/dist/components/command/command-empty.d.ts +4 -0
  165. package/dist/components/command/command-group.d.ts +6 -0
  166. package/dist/components/command/command-input.d.ts +12 -0
  167. package/dist/components/command/command-item.d.ts +10 -0
  168. package/dist/components/command/command-list.d.ts +4 -0
  169. package/dist/components/command/command.d.ts +6 -0
  170. package/dist/components/command/index.d.ts +6 -0
  171. package/dist/components/container/container.d.ts +11 -0
  172. package/dist/components/container/index.d.ts +1 -0
  173. package/dist/components/content/content.d.ts +0 -0
  174. package/dist/components/context-menu/context-menu.d.ts +12 -0
  175. package/dist/components/context-menu/index.d.ts +1 -0
  176. package/dist/components/copy-button/copy-button.d.ts +10 -0
  177. package/dist/components/copy-button/index.d.ts +1 -0
  178. package/dist/components/date-field/date-field.d.ts +13 -0
  179. package/dist/components/date-field/index.d.ts +1 -0
  180. package/dist/components/description-list/description-list.d.ts +0 -0
  181. package/dist/components/dialog/dialog.d.ts +12 -0
  182. package/dist/components/dialog/index.d.ts +1 -0
  183. package/dist/components/disclosure/disclosure.d.ts +10 -0
  184. package/dist/components/disclosure/index.d.ts +1 -0
  185. package/dist/components/disclosure-group/disclosure-group.d.ts +8 -0
  186. package/dist/components/disclosure-group/index.d.ts +1 -0
  187. package/dist/components/divider/divider.d.ts +0 -0
  188. package/dist/components/drawer/drawer.d.ts +13 -0
  189. package/dist/components/drawer/index.d.ts +1 -0
  190. package/dist/components/dropdown-menu/dropdown-menu.d.ts +12 -0
  191. package/dist/components/dropdown-menu/index.d.ts +1 -0
  192. package/dist/components/editor/context.d.ts +15 -0
  193. package/dist/components/editor/editor-layer.d.ts +11 -0
  194. package/dist/components/editor/editor.d.ts +32 -0
  195. package/dist/components/editor/index.d.ts +4 -0
  196. package/dist/components/editor.js +1 -1
  197. package/dist/components/empty-state/empty-state.d.ts +10 -0
  198. package/dist/components/empty-state/index.d.ts +1 -0
  199. package/dist/components/feed/feed.d.ts +11 -0
  200. package/dist/components/feed/index.d.ts +1 -0
  201. package/dist/components/field/index.d.ts +0 -0
  202. package/dist/components/fieldset/fieldset.d.ts +0 -0
  203. package/dist/components/file-upload/file-upload.d.ts +13 -0
  204. package/dist/components/file-upload/index.d.ts +1 -0
  205. package/dist/components/footer/footer.d.ts +0 -0
  206. package/dist/components/graph/graph-layer.d.ts +3 -0
  207. package/dist/components/graph/graph-node.d.ts +13 -0
  208. package/dist/components/graph/graph-noodle.d.ts +19 -0
  209. package/dist/components/graph/graph-port.d.ts +17 -0
  210. package/dist/components/graph/graph-ui.d.ts +10 -0
  211. package/dist/components/graph/index.d.ts +5 -0
  212. package/dist/components/graph.js +1 -1
  213. package/dist/components/grid/grid.d.ts +0 -0
  214. package/dist/components/gripper/gripper.d.ts +9 -0
  215. package/dist/components/gripper/index.d.ts +1 -0
  216. package/dist/components/header/header.d.ts +0 -0
  217. package/dist/components/heading/heading.d.ts +0 -0
  218. package/dist/components/hover-card/hover-card.d.ts +11 -0
  219. package/dist/components/hover-card/index.d.ts +1 -0
  220. package/dist/components/icon/icon.d.ts +12 -0
  221. package/dist/components/icon/index.d.ts +2 -0
  222. package/dist/components/icon/registry.d.ts +8 -0
  223. package/dist/components/image/image.d.ts +13 -0
  224. package/dist/components/image/index.d.ts +1 -0
  225. package/dist/components/index.d.ts +72 -0
  226. package/dist/components/input/index.d.ts +2 -0
  227. package/dist/components/input/input-otp.d.ts +17 -0
  228. package/dist/components/input/input.d.ts +29 -0
  229. package/dist/components/input-group/input-group.d.ts +0 -0
  230. package/dist/components/inset/inset.d.ts +0 -0
  231. package/dist/components/kbd/kbd.d.ts +0 -0
  232. package/dist/components/link/index.d.ts +1 -0
  233. package/dist/components/link/link.d.ts +3 -0
  234. package/dist/components/meter/index.d.ts +1 -0
  235. package/dist/components/meter/meter.d.ts +8 -0
  236. package/dist/components/nav-item/index.d.ts +1 -0
  237. package/dist/components/nav-item/nav-item.d.ts +3 -0
  238. package/dist/components/noodles/datasets.d.ts +16 -0
  239. package/dist/components/noodles/index.d.ts +3 -0
  240. package/dist/components/noodles/noodle-controller.d.ts +71 -0
  241. package/dist/components/noodles/noodles.d.ts +30 -0
  242. package/dist/components/notification-center/index.d.ts +2 -0
  243. package/dist/components/notification-center/notification-center.d.ts +27 -0
  244. package/dist/components/optgroup/index.d.ts +1 -0
  245. package/dist/components/optgroup/optgroup.d.ts +9 -0
  246. package/dist/components/option/index.d.ts +1 -0
  247. package/dist/components/option/option.d.ts +11 -0
  248. package/dist/components/page/index.d.ts +3 -0
  249. package/dist/components/page/page-context.d.ts +4 -0
  250. package/dist/components/page/page-main.d.ts +3 -0
  251. package/dist/components/page/page.d.ts +4 -0
  252. package/dist/components/pagination/index.d.ts +1 -0
  253. package/dist/components/pagination/pagination.d.ts +10 -0
  254. package/dist/components/pane/index.d.ts +2 -0
  255. package/dist/components/pane/pane.d.ts +27 -0
  256. package/dist/components/pane/panes.d.ts +10 -0
  257. package/dist/components/preview-app/index.d.ts +1 -0
  258. package/dist/components/preview-app/preview-app.d.ts +8 -0
  259. package/dist/components/progress/index.d.ts +1 -0
  260. package/dist/components/progress/progress.d.ts +6 -0
  261. package/dist/components/progress-circle/index.d.ts +1 -0
  262. package/dist/components/progress-circle/progress-circle.d.ts +9 -0
  263. package/dist/components/radio/index.d.ts +2 -0
  264. package/dist/components/radio/radio-group.d.ts +10 -0
  265. package/dist/components/radio/radio.d.ts +17 -0
  266. package/dist/components/range/index.d.ts +1 -0
  267. package/dist/components/range/range.d.ts +18 -0
  268. package/dist/components/root/index.d.ts +1 -0
  269. package/dist/components/root/root.d.ts +4 -0
  270. package/dist/components/segmented-control/index.d.ts +2 -0
  271. package/dist/components/segmented-control/segment.d.ts +8 -0
  272. package/dist/components/segmented-control/segmented-control.d.ts +13 -0
  273. package/dist/components/select/index.d.ts +1 -0
  274. package/dist/components/select/select.d.ts +37 -0
  275. package/dist/components/sidebar/index.d.ts +4 -0
  276. package/dist/components/sidebar/sidebar-content.d.ts +4 -0
  277. package/dist/components/sidebar/sidebar-footer.d.ts +4 -0
  278. package/dist/components/sidebar/sidebar-header.d.ts +4 -0
  279. package/dist/components/sidebar/sidebar.d.ts +14 -0
  280. package/dist/components/skeleton/index.d.ts +1 -0
  281. package/dist/components/skeleton/skeleton.d.ts +3 -0
  282. package/dist/components/sparkline/index.d.ts +1 -0
  283. package/dist/components/sparkline/sparkline.d.ts +8 -0
  284. package/dist/components/spinner/index.d.ts +1 -0
  285. package/dist/components/spinner/spinner.d.ts +3 -0
  286. package/dist/components/stack/stack.d.ts +0 -0
  287. package/dist/components/stat/index.d.ts +1 -0
  288. package/dist/components/stat/stat.d.ts +15 -0
  289. package/dist/components/stepper/index.d.ts +2 -0
  290. package/dist/components/stepper/step.d.ts +3 -0
  291. package/dist/components/stepper/stepper.d.ts +3 -0
  292. package/dist/components/switch/index.d.ts +1 -0
  293. package/dist/components/switch/switch.d.ts +16 -0
  294. package/dist/components/tab/index.d.ts +3 -0
  295. package/dist/components/tab/tab-panel.d.ts +7 -0
  296. package/dist/components/tab/tab.d.ts +8 -0
  297. package/dist/components/tab/tabs.d.ts +9 -0
  298. package/dist/components/table/index.d.ts +7 -0
  299. package/dist/components/table/table-body.d.ts +3 -0
  300. package/dist/components/table/table-cell.d.ts +3 -0
  301. package/dist/components/table/table-column.d.ts +11 -0
  302. package/dist/components/table/table-head.d.ts +3 -0
  303. package/dist/components/table/table-header.d.ts +3 -0
  304. package/dist/components/table/table-row.d.ts +3 -0
  305. package/dist/components/table/table.d.ts +16 -0
  306. package/dist/components/tag-group/index.d.ts +1 -0
  307. package/dist/components/tag-group/tag-group.d.ts +10 -0
  308. package/dist/components/text/text.d.ts +0 -0
  309. package/dist/components/textarea/index.d.ts +1 -0
  310. package/dist/components/textarea/textarea.d.ts +23 -0
  311. package/dist/components/time-field/index.d.ts +1 -0
  312. package/dist/components/time-field/time-field.d.ts +15 -0
  313. package/dist/components/toast/index.d.ts +2 -0
  314. package/dist/components/toast/toast.d.ts +19 -0
  315. package/dist/components/tooltip/index.d.ts +1 -0
  316. package/dist/components/tooltip/tooltip.d.ts +9 -0
  317. package/dist/components/tree/index.d.ts +2 -0
  318. package/dist/components/tree/tree-item.d.ts +11 -0
  319. package/dist/components/tree/tree.d.ts +6 -0
  320. package/dist/components/wrap/wrap.d.ts +0 -0
  321. package/dist/components.js +117 -3127
  322. package/dist/components.js.map +1 -1
  323. package/dist/docs/blocks/chart-interactive.yaml +4 -10
  324. package/dist/docs/blocks/checkout-form.yaml +13 -13
  325. package/dist/docs/blocks/contributors.yaml +25 -26
  326. package/dist/docs/blocks/dashboard-layout.yaml +24 -42
  327. package/dist/docs/blocks/empty-state.yaml +4 -9
  328. package/dist/docs/blocks/env-variables.yaml +2 -2
  329. package/dist/docs/blocks/feature-upgrade.yaml +4 -4
  330. package/dist/docs/blocks/issue-assign.yaml +7 -7
  331. package/dist/docs/blocks/login-two-column.yaml +6 -6
  332. package/dist/docs/blocks/profile-card.yaml +12 -21
  333. package/dist/docs/blocks/settings-form.yaml +4 -4
  334. package/dist/docs/blocks/sidebar-nav.yaml +19 -19
  335. package/dist/docs/blocks/stat-cards.yaml +9 -26
  336. package/dist/docs/blocks/status-card.yaml +3 -3
  337. package/dist/docs/blocks/suggested-labs.yaml +4 -4
  338. package/dist/docs/blocks/survey-card.yaml +9 -9
  339. package/dist/docs/blocks/tabbed-panel.yaml +1 -1
  340. package/dist/docs/blocks/team-empty.yaml +6 -14
  341. package/dist/docs/blocks/usage-billing.yaml +12 -37
  342. package/dist/docs/components/accordion-item.yaml +13 -21
  343. package/dist/docs/components/accordion.yaml +23 -29
  344. package/dist/docs/components/agent-activity.yaml +27 -39
  345. package/dist/docs/components/agent-feed.yaml +15 -22
  346. package/dist/docs/components/agent-input.yaml +238 -0
  347. package/dist/docs/components/agent-message.yaml +29 -48
  348. package/dist/docs/components/agent-panel.yaml +21 -24
  349. package/dist/docs/components/agent-prompt.yaml +28 -46
  350. package/dist/docs/components/agent-seeds.yaml +15 -23
  351. package/dist/docs/components/agent-text.yaml +14 -24
  352. package/dist/docs/components/agent-thread.yaml +15 -24
  353. package/dist/docs/components/alert.yaml +81 -0
  354. package/dist/docs/components/avatar-group.yaml +113 -0
  355. package/dist/docs/components/avatar.yaml +99 -0
  356. package/dist/docs/components/badge.yaml +110 -0
  357. package/dist/docs/components/bar.yaml +84 -0
  358. package/dist/docs/components/breadcrumb-item.yaml +8 -17
  359. package/dist/docs/components/breadcrumb.yaml +60 -25
  360. package/dist/docs/components/button-group.yaml +93 -0
  361. package/dist/docs/components/button.yaml +177 -261
  362. package/dist/docs/components/calendar-picker.yaml +122 -0
  363. package/dist/docs/components/calendar-range-picker.yaml +121 -0
  364. package/dist/docs/components/calendar.yaml +11 -29
  365. package/dist/docs/components/canvas.yaml +44 -61
  366. package/dist/docs/components/checkbox.yaml +37 -49
  367. package/dist/docs/components/chip.yaml +125 -0
  368. package/dist/docs/components/code-block.yaml +127 -0
  369. package/dist/docs/components/code.yaml +37 -0
  370. package/dist/docs/components/color-area.yaml +119 -0
  371. package/dist/docs/components/color-field.yaml +121 -0
  372. package/dist/docs/components/color-picker.yaml +104 -0
  373. package/dist/docs/components/color-slider.yaml +153 -0
  374. package/dist/docs/components/color-swatch.yaml +98 -0
  375. package/dist/docs/components/command.yaml +13 -18
  376. package/dist/docs/components/container.yaml +83 -73
  377. package/dist/docs/components/content.yaml +100 -0
  378. package/dist/docs/components/context-menu.yaml +93 -0
  379. package/dist/docs/components/date-field.yaml +163 -0
  380. package/dist/docs/components/description-list.yaml +81 -0
  381. package/dist/docs/components/disclosure-group.yaml +88 -0
  382. package/dist/docs/components/disclosure.yaml +95 -0
  383. package/dist/docs/components/divider.yaml +63 -0
  384. package/dist/docs/components/dropdown-menu.yaml +137 -0
  385. package/dist/docs/components/feed.yaml +15 -24
  386. package/dist/docs/components/field.yaml +50 -71
  387. package/dist/docs/components/fieldset.yaml +92 -0
  388. package/dist/docs/components/footer.yaml +147 -0
  389. package/dist/docs/components/grid.yaml +87 -0
  390. package/dist/docs/components/gripper.yaml +11 -23
  391. package/dist/docs/components/header.yaml +168 -0
  392. package/dist/docs/components/heading.yaml +54 -0
  393. package/dist/docs/components/hover-card.yaml +77 -0
  394. package/dist/docs/components/icon.yaml +32 -65
  395. package/dist/docs/components/index.yaml +168 -0
  396. package/dist/docs/components/input-group.yaml +102 -0
  397. package/dist/docs/components/input-otp.yaml +20 -19
  398. package/dist/docs/components/input.yaml +103 -118
  399. package/dist/docs/components/inset.yaml +59 -0
  400. package/dist/docs/components/kbd.yaml +57 -0
  401. package/dist/docs/components/link.yaml +76 -0
  402. package/dist/docs/components/meter.yaml +78 -0
  403. package/dist/docs/components/nav-item.yaml +104 -0
  404. package/dist/docs/components/noodles.yaml +72 -104
  405. package/dist/docs/components/option.yaml +12 -23
  406. package/dist/docs/components/pagination.yaml +21 -18
  407. package/dist/docs/components/pane.yaml +18 -32
  408. package/dist/docs/components/panes.yaml +19 -27
  409. package/dist/docs/components/progress-circle.yaml +114 -0
  410. package/dist/docs/components/progress.yaml +88 -0
  411. package/dist/docs/components/radio-group.yaml +99 -40
  412. package/dist/docs/components/radio.yaml +40 -41
  413. package/dist/docs/components/range.yaml +24 -27
  414. package/dist/docs/components/segmented-control.yaml +58 -17
  415. package/dist/docs/components/select.yaml +80 -100
  416. package/dist/docs/components/skeleton.yaml +81 -0
  417. package/dist/docs/components/sparkline.yaml +71 -0
  418. package/dist/docs/components/spinner.yaml +74 -0
  419. package/dist/docs/components/stack.yaml +126 -0
  420. package/dist/docs/components/step.yaml +91 -0
  421. package/dist/docs/components/stepper.yaml +84 -0
  422. package/dist/docs/components/switch.yaml +36 -47
  423. package/dist/docs/components/tab-panel.yaml +27 -18
  424. package/dist/docs/components/tab.yaml +25 -22
  425. package/dist/docs/components/table-header.yaml +22 -12
  426. package/dist/docs/components/tabs.yaml +103 -20
  427. package/dist/docs/components/tag-group.yaml +106 -0
  428. package/dist/docs/components/text.yaml +67 -0
  429. package/dist/docs/components/textarea.yaml +43 -60
  430. package/dist/docs/components/time-field.yaml +161 -0
  431. package/dist/docs/components/toast.yaml +13 -30
  432. package/dist/docs/components/tooltip.yaml +56 -49
  433. package/dist/docs/components/tree-item.yaml +9 -10
  434. package/dist/docs/components/tree.yaml +127 -10
  435. package/dist/docs/components/wrap.yaml +60 -0
  436. package/dist/docs/traits/toggle-theme.yaml +34 -0
  437. package/dist/element/agent-element.d.ts +29 -0
  438. package/dist/element/context.d.ts +20 -0
  439. package/dist/element/define.d.ts +2 -0
  440. package/dist/element/index.d.ts +4 -0
  441. package/dist/element/types.d.ts +23 -0
  442. package/dist/element.js +1 -1
  443. package/dist/icons.d.ts +1 -0
  444. package/dist/icons.js +85 -59
  445. package/dist/icons.js.map +1 -1
  446. package/dist/reactivity.js +2 -2
  447. package/dist/register.d.ts +0 -0
  448. package/dist/register.js +417 -376
  449. package/dist/register.js.map +1 -1
  450. package/dist/store.js +1 -1
  451. package/dist/styles-entry.d.ts +0 -0
  452. package/dist/traits/attach.d.ts +12 -0
  453. package/dist/traits/auto-dismiss/auto-dismiss.d.ts +0 -0
  454. package/dist/traits/auto-dismiss/auto-dismiss.trait.d.ts +2 -0
  455. package/dist/traits/backtick-wrap/backtick-wrap.d.ts +0 -0
  456. package/dist/traits/backtick-wrap/backtick-wrap.trait.d.ts +2 -0
  457. package/dist/traits/clipboard/clipboard.d.ts +0 -0
  458. package/dist/traits/clipboard/clipboard.trait.d.ts +2 -0
  459. package/dist/traits/collapsible/collapsible.d.ts +0 -0
  460. package/dist/traits/collapsible/collapsible.trait.d.ts +2 -0
  461. package/dist/traits/confetti/confetti.d.ts +0 -0
  462. package/dist/traits/confetti/confetti.trait.d.ts +2 -0
  463. package/dist/traits/copy/copy.d.ts +0 -0
  464. package/dist/traits/copy/copy.trait.d.ts +2 -0
  465. package/dist/traits/css-inspect/css-inspect-controller.d.ts +38 -0
  466. package/dist/traits/css-inspect/css-inspect.d.ts +0 -0
  467. package/dist/traits/css-inspect/css-inspect.trait.d.ts +2 -0
  468. package/dist/traits/dismiss/dismiss.d.ts +0 -0
  469. package/dist/traits/dismiss/dismiss.trait.d.ts +2 -0
  470. package/dist/traits/drag/drag.d.ts +0 -0
  471. package/dist/traits/drag/drag.trait.d.ts +2 -0
  472. package/dist/traits/drop-zone/drop-zone.d.ts +0 -0
  473. package/dist/traits/drop-zone/drop-zone.trait.d.ts +2 -0
  474. package/dist/traits/edit/edit.d.ts +0 -0
  475. package/dist/traits/edit/edit.trait.d.ts +2 -0
  476. package/dist/traits/flip/flip.d.ts +0 -0
  477. package/dist/traits/flip/flip.trait.d.ts +2 -0
  478. package/dist/traits/gateway/gateway.d.ts +0 -0
  479. package/dist/traits/gateway/gateway.trait.d.ts +2 -0
  480. package/dist/traits/hover/hover.d.ts +0 -0
  481. package/dist/traits/hover/hover.trait.d.ts +2 -0
  482. package/dist/traits/index.d.ts +6 -0
  483. package/dist/traits/intersect/intersect.d.ts +0 -0
  484. package/dist/traits/intersect/intersect.trait.d.ts +2 -0
  485. package/dist/traits/link-paste/link-paste.d.ts +0 -0
  486. package/dist/traits/link-paste/link-paste.trait.d.ts +2 -0
  487. package/dist/traits/linked-scroll/linked-scroll.d.ts +0 -0
  488. package/dist/traits/linked-scroll/linked-scroll.trait.d.ts +2 -0
  489. package/dist/traits/list-navigate/list-navigate.d.ts +0 -0
  490. package/dist/traits/list-navigate/list-navigate.trait.d.ts +2 -0
  491. package/dist/traits/magnet/magnet.d.ts +0 -0
  492. package/dist/traits/magnet/magnet.trait.d.ts +2 -0
  493. package/dist/traits/mention/mention.d.ts +0 -0
  494. package/dist/traits/mention/mention.trait.d.ts +2 -0
  495. package/dist/traits/modal/modal.d.ts +0 -0
  496. package/dist/traits/modal/modal.trait.d.ts +2 -0
  497. package/dist/traits/noodle/noodle.d.ts +0 -0
  498. package/dist/traits/noodle/noodle.trait.d.ts +2 -0
  499. package/dist/traits/overlay/overlay.d.ts +0 -0
  500. package/dist/traits/overlay/overlay.trait.d.ts +3 -0
  501. package/dist/traits/pan-zoom/pan-zoom.d.ts +0 -0
  502. package/dist/traits/pan-zoom/pan-zoom.trait.d.ts +2 -0
  503. package/dist/traits/parallax/parallax.d.ts +0 -0
  504. package/dist/traits/parallax/parallax.trait.d.ts +2 -0
  505. package/dist/traits/parse.d.ts +3 -0
  506. package/dist/traits/persist/persist.d.ts +0 -0
  507. package/dist/traits/persist/persist.trait.d.ts +2 -0
  508. package/dist/traits/popover/overlay.d.ts +2 -0
  509. package/dist/traits/popover/popover.d.ts +0 -0
  510. package/dist/traits/popover/popover.trait.d.ts +2 -0
  511. package/dist/traits/present/present.d.ts +0 -0
  512. package/dist/traits/present/present.trait.d.ts +2 -0
  513. package/dist/traits/press-hold/press-hold.d.ts +0 -0
  514. package/dist/traits/press-hold/press-hold.trait.d.ts +2 -0
  515. package/dist/traits/range-select/range-select.d.ts +0 -0
  516. package/dist/traits/range-select/range-select.trait.d.ts +2 -0
  517. package/dist/traits/registry.d.ts +17 -0
  518. package/dist/traits/resize/resize.d.ts +0 -0
  519. package/dist/traits/resize/resize.trait.d.ts +2 -0
  520. package/dist/traits/ripple/ripple.d.ts +0 -0
  521. package/dist/traits/ripple/ripple.trait.d.ts +2 -0
  522. package/dist/traits/roving-focus/roving-focus.d.ts +0 -0
  523. package/dist/traits/roving-focus/roving-focus.trait.d.ts +2 -0
  524. package/dist/traits/search/search.d.ts +0 -0
  525. package/dist/traits/search/search.trait.d.ts +2 -0
  526. package/dist/traits/selection/selection.d.ts +0 -0
  527. package/dist/traits/selection/selection.trait.d.ts +2 -0
  528. package/dist/traits/shortcut/shortcut.d.ts +0 -0
  529. package/dist/traits/shortcut/shortcut.trait.d.ts +2 -0
  530. package/dist/traits/slash-command/slash-command.d.ts +0 -0
  531. package/dist/traits/slash-command/slash-command.trait.d.ts +2 -0
  532. package/dist/traits/snap-resize/snap-resize.d.ts +0 -0
  533. package/dist/traits/snap-resize/snap-resize.trait.d.ts +2 -0
  534. package/dist/traits/sort/sort.d.ts +0 -0
  535. package/dist/traits/sort/sort.trait.d.ts +2 -0
  536. package/dist/traits/store/store.d.ts +0 -0
  537. package/dist/traits/store/store.trait.d.ts +2 -0
  538. package/dist/traits/swipe/swipe.d.ts +0 -0
  539. package/dist/traits/swipe/swipe.trait.d.ts +2 -0
  540. package/dist/traits/text-trigger/text-trigger.d.ts +0 -0
  541. package/dist/traits/text-trigger/text-trigger.trait.d.ts +2 -0
  542. package/dist/traits/toast/toast.d.ts +0 -0
  543. package/dist/traits/toast/toast.trait.d.ts +2 -0
  544. package/dist/traits/toggle-scheme/toggle-scheme.d.ts +0 -0
  545. package/dist/traits/toggle-scheme/toggle-scheme.trait.d.ts +2 -0
  546. package/dist/traits/toggle-state/toggle-state.d.ts +0 -0
  547. package/dist/traits/toggle-state/toggle-state.trait.d.ts +2 -0
  548. package/dist/traits/toggle-theme/toggle-theme.d.ts +0 -0
  549. package/dist/traits/toggle-theme/toggle-theme.trait.d.ts +2 -0
  550. package/dist/traits/tooltip/tooltip.d.ts +0 -0
  551. package/dist/traits/tooltip/tooltip.trait.d.ts +2 -0
  552. package/dist/traits/toss/toss.d.ts +0 -0
  553. package/dist/traits/toss/toss.trait.d.ts +2 -0
  554. package/dist/traits/trap-focus/trap-focus.d.ts +0 -0
  555. package/dist/traits/trap-focus/trap-focus.trait.d.ts +2 -0
  556. package/dist/traits/types.d.ts +45 -0
  557. package/dist/traits/validate/validate.d.ts +0 -0
  558. package/dist/traits/validate/validate.trait.d.ts +2 -0
  559. package/dist/traits/virtual-scroll/virtual-scroll.d.ts +0 -0
  560. package/dist/traits/virtual-scroll/virtual-scroll.trait.d.ts +2 -0
  561. package/dist/traits.js +553 -510
  562. package/dist/traits.js.map +1 -1
  563. package/package.json +52 -13
package/dist/register.js CHANGED
@@ -1,9 +1,10 @@
1
- import { A as T, s as S, a as I, b as $, d as F, e as o, p as W, v as X, f as K, g as B, h as _, i as j, j as J, k as V, l as Z, m as Q, n as tt } from "./chunks/agent-ciCayeod.js";
1
+ import { A as T, l as S, m as I, n as $, o as z, p as n, q as O, v as X, d as _, k as B, f as K, j, b as J, i as V, g as Z, e as Q, h as tt } from "./chunks/agent-BF_R_HJk.js";
2
2
  import { registerBuiltinTraits as et } from "./traits.js";
3
3
  import { AuiEditor as it, AuiEditorLayer as st } from "./components/editor.js";
4
- import { AuiGraphUi as at, AuiGraphLayer as nt, AuiGraphNode as ot, AuiGraphNoodle as rt, AuiGraphPort as lt } from "./components/graph.js";
5
- import { AuiButton as ut, AuiInput as dt, AuiCheckbox as ht, AuiSwitch as ct, AuiRadio as mt, AuiRadioGroup as ft, AuiTextarea as pt, AuiContainer as bt, AuiDialog as gt, AuiDrawer as vt, AuiIcon as yt, AuiTooltip as At, AuiRange as wt, AuiInputOtp as xt, AuiGripper as Et, AuiOption as Ct, AuiOptgroup as kt, AuiSelect as St, AuiToast as Pt, AuiTabs as $t, AuiTab as Lt, AuiTabPanel as Mt, AuiAccordion as Dt, AuiAccordionItem as Tt, AuiBreadcrumb as It, AuiBreadcrumbItem as Nt, AuiSegmentedControl as Yt, AuiSegment as qt, AuiPagination as Rt, AuiCommand as zt, AuiCommandInput as Ft, AuiCommandList as Gt, AuiCommandItem as Ut, AuiCommandGroup as Ht, AuiCommandEmpty as Ot, AuiPanes as Wt, AuiPane as Xt, AuiTable as Kt, AuiTableHead as Bt, AuiTableBody as _t, AuiTableRow as jt, AuiTableHeader as Jt, AuiTableCell as Vt, AuiTree as Zt, AuiTreeItem as Qt, AuiFeed as te, AuiRoot as ee, AuiAppShell as ie, AuiPage as se, AuiPageMain as ae, AuiPageContext as ne, AuiSidebar as oe, AuiSidebarHeader as re, AuiSidebarContent as le, AuiSidebarFooter as ue } from "./components.js";
6
- class de extends T {
4
+ import { AuiGraphUi as at, AuiGraphLayer as nt, AuiGraphNode as ot, AuiGraphNoodle as rt, AuiGraphPort as ut } from "./components/graph.js";
5
+ import "./icons.js";
6
+ import { f as lt, N as dt, j as ct, ac as ht, $ as mt, a0 as ft, an as pt, w as bt, B as gt, E as vt, L as At, aq as yt, a1 as wt, O as Ct, J as xt, S as Et, R as kt, a5 as St, ap as Pt, al as $t, ad as Mt, ae as Lt, A as Dt, a as Tt, d as It, e as Nt, a4 as Yt, a3 as qt, W as Rt, q as Ft, t as zt, v as Gt, u as Ut, s as Ht, r as Wt, Y as Ot, X as Xt, af as _t, ai as Bt, ag as Kt, ak as jt, aj as Jt, ah as Vt, ar as Zt, as as Qt, H as te, a2 as ee, g as ie, h as se, b as ae, T as ne, V as oe, U as re, a6 as ue, a9 as le, a7 as de, a8 as ce, Z as he, l as me, aa as fe, k as pe, C as be, c as ge, _ as ve, D as Ae, am as ye, m as we, p as Ce, n as xe, ao as Ee, z as ke, x as Se, F as Pe, K as $e, o as Me, I as Le, y as De, ab as Te, M as Ie, i as Ne, Q as Ye, G as qe, P as Re } from "./chunks/meter-Dju8ik6C.js";
7
+ class Fe extends T {
7
8
  static attributes = {
8
9
  key: { type: "string", default: "" },
9
10
  label: { type: "string", default: "" },
@@ -14,7 +15,7 @@ class de extends T {
14
15
  align: { type: "enum", values: ["start", "center", "end"], default: "start" }
15
16
  };
16
17
  }
17
- class he extends T {
18
+ class ze extends T {
18
19
  static attributes = {
19
20
  background: { type: "string", default: "none" },
20
21
  orientation: { type: "string", default: "horizontal" },
@@ -29,8 +30,8 @@ class he extends T {
29
30
  // Pan state
30
31
  #a = 0;
31
32
  #s = 0;
32
- #l = !1;
33
- #u = 0;
33
+ #u = !1;
34
+ #l = 0;
34
35
  #i = 0;
35
36
  #m = 0;
36
37
  #f = 0;
@@ -73,14 +74,14 @@ class he extends T {
73
74
  this.appendChild(this.#e);
74
75
  }
75
76
  const t = this.hasAttribute("pan-enabled") || this.hasAttribute("zoom-enabled") || this.hasAttribute("infinite") || this.#e.querySelector(':scope > [slot^="float-"]');
76
- t && this.#c(), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.setAttribute("role", "region"), t && this.addEventListener("keydown", this.#h);
77
+ t && this.#h(), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.setAttribute("role", "region"), t && this.addEventListener("keydown", this.#c);
77
78
  }
78
79
  dispose() {
79
80
  const t = this.#n;
80
- t && (t.removeEventListener("pointerdown", this.#A), t.removeEventListener("pointermove", this.#w), t.removeEventListener("pointerup", this.#v), t.removeEventListener("pointercancel", this.#v), t.removeEventListener("wheel", this.#y)), this.removeEventListener("keydown", this.#h);
81
+ t && (t.removeEventListener("pointerdown", this.#y), t.removeEventListener("pointermove", this.#w), t.removeEventListener("pointerup", this.#v), t.removeEventListener("pointercancel", this.#v), t.removeEventListener("wheel", this.#A)), this.removeEventListener("keydown", this.#c);
81
82
  }
82
83
  // ── DOM stamping ──
83
- #c() {
84
+ #h() {
84
85
  const t = this.#e, e = document.createElement("div");
85
86
  e.setAttribute("data-viewport", "");
86
87
  const i = document.createElement("div");
@@ -94,8 +95,8 @@ class he extends T {
94
95
  i.appendChild(r);
95
96
  }
96
97
  e.appendChild(i), t.appendChild(e), this.#n = e, this.#t = i;
97
- const a = this.hasAttribute("pan-enabled") || this.hasAttribute("infinite"), n = this.hasAttribute("zoom-enabled") || this.hasAttribute("infinite");
98
- a && (t.addEventListener("pointerdown", this.#A), t.addEventListener("pointermove", this.#w), t.addEventListener("pointerup", this.#v), t.addEventListener("pointercancel", this.#v)), n && t.addEventListener("wheel", this.#y, { passive: !1 }), this.#o();
98
+ const a = this.hasAttribute("pan-enabled") || this.hasAttribute("infinite"), o = this.hasAttribute("zoom-enabled") || this.hasAttribute("infinite");
99
+ a && (t.addEventListener("pointerdown", this.#y), t.addEventListener("pointermove", this.#w), t.addEventListener("pointerup", this.#v), t.addEventListener("pointercancel", this.#v)), o && t.addEventListener("wheel", this.#A, { passive: !1 }), this.#o();
99
100
  }
100
101
  // ── Transform ──
101
102
  #o() {
@@ -116,29 +117,29 @@ class he extends T {
116
117
  }));
117
118
  }
118
119
  // ── Pan handlers ──
119
- #A = (t) => {
120
+ #y = (t) => {
120
121
  if (t.button !== 0) return;
121
122
  const e = t.target, i = this.#t;
122
- i && i.contains(e) || (this.#l = !0, this.#u = t.clientX, this.#i = t.clientY, this.#m = this.#a, this.#f = this.#s, this.#e.setPointerCapture(t.pointerId), this.setAttribute("data-canvas-panning", ""));
123
+ i && i.contains(e) || (this.#u = !0, this.#l = t.clientX, this.#i = t.clientY, this.#m = this.#a, this.#f = this.#s, this.#e.setPointerCapture(t.pointerId), this.setAttribute("data-canvas-panning", ""));
123
124
  };
124
125
  #w = (t) => {
125
- this.#l && (this.#a = this.#m + (t.clientX - this.#u), this.#s = this.#f + (t.clientY - this.#i), this.#o());
126
+ this.#u && (this.#a = this.#m + (t.clientX - this.#l), this.#s = this.#f + (t.clientY - this.#i), this.#o());
126
127
  };
127
128
  #v = (t) => {
128
- this.#l && (this.#l = !1, this.removeAttribute("data-canvas-panning"), this.#d());
129
+ this.#u && (this.#u = !1, this.removeAttribute("data-canvas-panning"), this.#d());
129
130
  };
130
131
  // ── Zoom handler ──
131
- #y = (t) => {
132
+ #A = (t) => {
132
133
  t.preventDefault();
133
134
  const e = t.deltaY > 0 ? -0.05 : 0.05, i = Math.max(0.1, Math.min(10, this.#r + e * this.#r));
134
135
  if (this.#e) {
135
- const s = this.#e.getBoundingClientRect(), a = (t.clientX - s.left) / s.width, n = (t.clientY - s.top) / s.height, r = i / this.#r;
136
- this.#a = a * s.width * (1 - r) + this.#a * r, this.#s = n * s.height * (1 - r) + this.#s * r;
136
+ const s = this.#e.getBoundingClientRect(), a = (t.clientX - s.left) / s.width, o = (t.clientY - s.top) / s.height, r = i / this.#r;
137
+ this.#a = a * s.width * (1 - r) + this.#a * r, this.#s = o * s.height * (1 - r) + this.#s * r;
137
138
  }
138
139
  this.#r = i, this.#o(), this.#b();
139
140
  };
140
141
  // ── Keyboard ──
141
- #h = (t) => {
142
+ #c = (t) => {
142
143
  switch (t.key) {
143
144
  case "0":
144
145
  t.preventDefault(), this.#r = 1, this.#o(), this.#b();
@@ -156,19 +157,19 @@ class he extends T {
156
157
  }
157
158
  };
158
159
  }
159
- function L(m) {
160
- if (!m) return null;
161
- const t = /* @__PURE__ */ new Date(m + "T00:00:00");
160
+ function M(f) {
161
+ if (!f) return null;
162
+ const t = /* @__PURE__ */ new Date(f + "T00:00:00");
162
163
  return isNaN(t.getTime()) ? null : t;
163
164
  }
164
- function ce(m) {
165
- const t = m.getFullYear(), e = String(m.getMonth() + 1).padStart(2, "0"), i = String(m.getDate()).padStart(2, "0");
165
+ function Ge(f) {
166
+ const t = f.getFullYear(), e = String(f.getMonth() + 1).padStart(2, "0"), i = String(f.getDate()).padStart(2, "0");
166
167
  return `${t}-${e}-${i}`;
167
168
  }
168
- function N(m, t) {
169
- return m.getFullYear() === t.getFullYear() && m.getMonth() === t.getMonth() && m.getDate() === t.getDate();
169
+ function N(f, t) {
170
+ return f.getFullYear() === t.getFullYear() && f.getMonth() === t.getMonth() && f.getDate() === t.getDate();
170
171
  }
171
- class me {
172
+ class Ue {
172
173
  view;
173
174
  focusedYear;
174
175
  focusedMonth;
@@ -183,7 +184,7 @@ class me {
183
184
  years;
184
185
  title;
185
186
  constructor(t = {}) {
186
- const e = /* @__PURE__ */ new Date(), i = L(t.value ?? null) ?? e;
187
+ const e = /* @__PURE__ */ new Date(), i = M(t.value ?? null) ?? e;
187
188
  this.view = S("day"), this.focusedYear = S(i.getFullYear()), this.focusedMonth = S(i.getMonth()), this.value = S(t.value ?? null), this.rangeStart = S(t.rangeStart ?? null), this.rangeEnd = S(t.rangeEnd ?? null), this.min = S(t.min ?? null), this.max = S(t.max ?? null), this.days = I(() => this.#n()), this.months = I(() => this.#t()), this.years = I(() => this.#e()), this.title = I(() => this.#a());
188
189
  }
189
190
  // ── Navigation ──
@@ -231,32 +232,32 @@ class me {
231
232
  }
232
233
  // ── Validation ──
233
234
  isDateDisabled(t) {
234
- const e = L(this.min.value), i = L(this.max.value), s = L(t);
235
+ const e = M(this.min.value), i = M(this.max.value), s = M(t);
235
236
  return !!(!s || e && s < e || i && s > i);
236
237
  }
237
238
  // ── Private Computations ──
238
239
  #n() {
239
- const t = this.focusedYear.value, e = this.focusedMonth.value, i = L(this.value.value), s = /* @__PURE__ */ new Date(), a = L(this.rangeStart.value), n = L(this.rangeEnd.value), c = new Date(t, e, 1).getDay(), h = new Date(t, e, 1 - c), f = [];
240
- for (let u = 0; u < 42; u++) {
241
- const l = new Date(h.getFullYear(), h.getMonth(), h.getDate() + u), v = ce(l), d = l.getMonth() === e, p = N(l, s), g = i ? N(l, i) : !1, E = this.isDateDisabled(v);
242
- let b = !1, A = !1, P = !1;
243
- if (a && n) {
244
- const C = a <= n ? a : n, D = a <= n ? n : a;
245
- b = l >= C && l <= D, A = N(l, C), P = N(l, D);
240
+ const t = this.focusedYear.value, e = this.focusedMonth.value, i = M(this.value.value), s = /* @__PURE__ */ new Date(), a = M(this.rangeStart.value), o = M(this.rangeEnd.value), c = new Date(t, e, 1).getDay(), u = new Date(t, e, 1 - c), m = [];
241
+ for (let h = 0; h < 42; h++) {
242
+ const d = new Date(u.getFullYear(), u.getMonth(), u.getDate() + h), v = Ge(d), l = d.getMonth() === e, p = N(d, s), b = i ? N(d, i) : !1, x = this.isDateDisabled(v);
243
+ let g = !1, y = !1, P = !1;
244
+ if (a && o) {
245
+ const E = a <= o ? a : o, D = a <= o ? o : a;
246
+ g = d >= E && d <= D, y = N(d, E), P = N(d, D);
246
247
  }
247
- f.push({
248
+ m.push({
248
249
  date: v,
249
- day: l.getDate(),
250
- inMonth: d,
250
+ day: d.getDate(),
251
+ inMonth: l,
251
252
  isToday: p,
252
- isSelected: g,
253
- isDisabled: E,
254
- inRange: b,
255
- isRangeStart: A,
253
+ isSelected: b,
254
+ isDisabled: x,
255
+ inRange: g,
256
+ isRangeStart: y,
256
257
  isRangeEnd: P
257
258
  });
258
259
  }
259
- return f;
260
+ return m;
260
261
  }
261
262
  #t() {
262
263
  const t = this.focusedYear.value, e = this.focusedMonth.value;
@@ -305,7 +306,7 @@ class me {
305
306
  }
306
307
  }
307
308
  }
308
- class fe extends T {
309
+ class He extends T {
309
310
  static attributes = {
310
311
  value: { type: "string", default: "" },
311
312
  min: { type: "string", default: "" },
@@ -314,14 +315,14 @@ class fe extends T {
314
315
  range: { type: "boolean", default: !1 }
315
316
  };
316
317
  #n;
317
- #t = new me();
318
+ #t = new Ue();
318
319
  #e = S(!1);
319
320
  // WHY: Track focused cell index for keyboard navigation within the grid
320
321
  #a = S(0);
321
322
  // WHY: 3-phase range cycle: idle → selecting (hover previews) → committed → idle
322
323
  #s = "idle";
323
324
  // WHY: Drag-based range selection — pointerdown starts, pointermove previews, pointerup commits
324
- #l = !1;
325
+ #u = !1;
325
326
  constructor() {
326
327
  super(), this.#n = this.attachInternals(), this.#n.role = "group";
327
328
  }
@@ -370,16 +371,16 @@ class fe extends T {
370
371
  const t = this.getAttribute("value"), e = this.getAttribute("min"), i = this.getAttribute("max");
371
372
  $(() => {
372
373
  t && (this.#t.value.value = t), e && (this.#t.min.value = e), i && (this.#t.max.value = i);
373
- }), this.#u(), this.addEventListener("keydown", this.#C), this.addEffect(() => this.#i()), this.addEffect(() => {
374
+ }), this.#l(), this.addEventListener("keydown", this.#E), this.addEffect(() => this.#i()), this.addEffect(() => {
374
375
  this.setAttribute("aria-label", this.#t.title.value);
375
376
  });
376
377
  }
377
378
  dispose() {
378
379
  this.querySelector('aui-button[data-role="prev"]')?.removeEventListener("click", this.#m), this.querySelector('aui-button[data-role="next"]')?.removeEventListener("click", this.#f), this.querySelector('aui-button[data-role="title"]')?.removeEventListener("click", this.#r);
379
380
  const t = this.querySelector("[data-cal-grid]");
380
- t?.removeEventListener("click", this.#c), t?.removeEventListener("pointermove", this.#o), t?.removeEventListener("pointerdown", this.#d), t?.removeEventListener("pointerup", this.#b), this.removeEventListener("keydown", this.#C), super.dispose();
381
+ t?.removeEventListener("click", this.#h), t?.removeEventListener("pointermove", this.#o), t?.removeEventListener("pointerdown", this.#d), t?.removeEventListener("pointerup", this.#b), this.removeEventListener("keydown", this.#E), super.dispose();
381
382
  }
382
- #u() {
383
+ #l() {
383
384
  this.innerHTML = `
384
385
  <div data-cal-header>
385
386
  <aui-button data-role="prev" aria-label="Previous" tabindex="-1"><aui-icon name="caret-left"></aui-icon></aui-button>
@@ -394,31 +395,31 @@ class fe extends T {
394
395
  const t = this.querySelector('aui-button[data-role="prev"]'), e = this.querySelector('aui-button[data-role="next"]'), i = this.querySelector('aui-button[data-role="title"]');
395
396
  t?.addEventListener("click", this.#m), e?.addEventListener("click", this.#f), i?.addEventListener("click", this.#r);
396
397
  const s = this.querySelector("[data-cal-grid]");
397
- s?.addEventListener("click", this.#c), s?.addEventListener("pointermove", this.#o), s?.addEventListener("pointerdown", this.#d), s?.addEventListener("pointerup", this.#b);
398
+ s?.addEventListener("click", this.#h), s?.addEventListener("pointermove", this.#o), s?.addEventListener("pointerdown", this.#d), s?.addEventListener("pointerup", this.#b);
398
399
  }
399
400
  #i() {
400
401
  const t = this.#t.view.value, e = this.querySelector('aui-button[data-role="title"]'), i = this.querySelector("[data-cal-weekdays]"), s = this.querySelector("[data-cal-grid]");
401
402
  if (!(!e || !i || !s)) {
402
403
  if (e.textContent = this.#t.title.value, t === "day") {
403
- this.setAttribute("view", "day"), i.innerHTML = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((n) => `<span data-cal-weekday>${n}</span>`).join("");
404
+ this.setAttribute("view", "day"), i.innerHTML = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((o) => `<span data-cal-weekday>${o}</span>`).join("");
404
405
  const a = this.#t.days.value;
405
- s.innerHTML = a.map((n, r) => {
406
- let c = `data-date="${n.date}" data-index="${r}" tabindex="-1"`;
407
- return n.inMonth || (c += " data-outside"), n.isToday && (c += ' data-today aria-current="date"'), n.isSelected && (c += ' data-selected aria-selected="true"'), n.isDisabled && (c += " disabled"), n.inRange && (c += " data-in-range"), n.isRangeStart && (c += " data-range-start"), n.isRangeEnd && (c += " data-range-end"), `<div data-cal-day ${c}>${n.day}</div>`;
406
+ s.innerHTML = a.map((o, r) => {
407
+ let c = `data-date="${o.date}" data-index="${r}" tabindex="-1"`;
408
+ return o.inMonth || (c += " data-outside"), o.isToday && (c += ' data-today aria-current="date"'), o.isSelected && (c += ' data-selected aria-selected="true"'), o.isDisabled && (c += " disabled"), o.inRange && (c += " data-in-range"), o.isRangeStart && (c += " data-range-start"), o.isRangeEnd && (c += " data-range-end"), `<div data-cal-day ${c}>${o.day}</div>`;
408
409
  }).join("");
409
410
  } else if (t === "month") {
410
411
  this.setAttribute("view", "month"), i.innerHTML = "";
411
412
  const a = this.#t.months.value;
412
- s.innerHTML = a.map((n) => {
413
- let r = `data-month="${n.month}" tabindex="-1"`;
414
- return n.isCurrent && (r += ' data-today aria-current="date"'), n.isSelected && (r += ' data-selected aria-selected="true"'), `<div data-cal-cell ${r}>${n.name}</div>`;
413
+ s.innerHTML = a.map((o) => {
414
+ let r = `data-month="${o.month}" tabindex="-1"`;
415
+ return o.isCurrent && (r += ' data-today aria-current="date"'), o.isSelected && (r += ' data-selected aria-selected="true"'), `<div data-cal-cell ${r}>${o.name}</div>`;
415
416
  }).join("");
416
417
  } else {
417
418
  this.setAttribute("view", "year"), i.innerHTML = "";
418
419
  const a = this.#t.years.value;
419
- s.innerHTML = a.map((n) => {
420
- let r = `data-year="${n.year}" tabindex="-1"`;
421
- return n.inDecade || (r += " data-outside"), n.isCurrent && (r += ' data-today aria-current="date"'), n.isSelected && (r += ' data-selected aria-selected="true"'), `<div data-cal-cell ${r}>${n.year}</div>`;
420
+ s.innerHTML = a.map((o) => {
421
+ let r = `data-year="${o.year}" tabindex="-1"`;
422
+ return o.inDecade || (r += " data-outside"), o.isCurrent && (r += ' data-today aria-current="date"'), o.isSelected && (r += ' data-selected aria-selected="true"'), `<div data-cal-cell ${r}>${o.year}</div>`;
422
423
  }).join("");
423
424
  }
424
425
  for (const a of s.querySelectorAll("[data-cal-day]:not([disabled]), [data-cal-cell]"))
@@ -426,7 +427,7 @@ class fe extends T {
426
427
  }
427
428
  }
428
429
  #m = () => {
429
- this.#A();
430
+ this.#y();
430
431
  };
431
432
  #f = () => {
432
433
  this.#w();
@@ -434,11 +435,11 @@ class fe extends T {
434
435
  #r = () => {
435
436
  this.#v();
436
437
  };
437
- #c = (t) => {
438
- this.#y(t);
438
+ #h = (t) => {
439
+ this.#A(t);
439
440
  };
440
441
  #o = (t) => {
441
- this.#E(t);
442
+ this.#x(t);
442
443
  };
443
444
  #d = (t) => {
444
445
  this.#k(t);
@@ -446,7 +447,7 @@ class fe extends T {
446
447
  #b = (t) => {
447
448
  this.#p(t);
448
449
  };
449
- #A() {
450
+ #y() {
450
451
  const t = this.#t.view.value;
451
452
  t === "day" ? this.#t.prevMonth() : t === "month" ? this.#t.prevYear() : this.#t.prevDecade();
452
453
  }
@@ -458,14 +459,14 @@ class fe extends T {
458
459
  const t = this.#t.view.value;
459
460
  t === "day" ? this.#t.view.value = "month" : t === "month" && (this.#t.view.value = "year");
460
461
  }
461
- #y(t) {
462
+ #A(t) {
462
463
  if (this.#e.value) return;
463
464
  const e = t.target.closest("[data-cal-day], [data-cal-cell]");
464
465
  if (!e || e.hasAttribute("disabled")) return;
465
466
  const i = e.dataset.date, s = e.dataset.month, a = e.dataset.year;
466
- i ? this.#h(i) : s !== void 0 ? this.#t.selectMonth(Number(s)) : a !== void 0 && this.#t.selectYear(Number(a));
467
+ i ? this.#c(i) : s !== void 0 ? this.#t.selectMonth(Number(s)) : a !== void 0 && this.#t.selectYear(Number(a));
467
468
  }
468
- #h(t) {
469
+ #c(t) {
469
470
  this.range ? this.#s === "idle" ? ($(() => {
470
471
  this.#t.selectDate(t), this.#t.setRange(t, null);
471
472
  }), this.setAttribute("value", t), this.#s = "selecting") : this.#s === "selecting" ? this.#g(t) : ($(() => {
@@ -478,7 +479,7 @@ class fe extends T {
478
479
  }
479
480
  #g(t) {
480
481
  const e = this.#t.rangeStart.value;
481
- e && (this.#t.setRange(e, t), this.#s = "committed", this.#l = !1, this.dispatchEvent(new CustomEvent("aui:range-select", {
482
+ e && (this.#t.setRange(e, t), this.#s = "committed", this.#u = !1, this.dispatchEvent(new CustomEvent("aui:range-select", {
482
483
  bubbles: !0,
483
484
  composed: !0,
484
485
  detail: { start: this.#t.rangeStart.value, end: this.#t.rangeEnd.value }
@@ -489,12 +490,12 @@ class fe extends T {
489
490
  const e = t.target.closest("[data-cal-day]");
490
491
  if (!e || e.hasAttribute("disabled")) return;
491
492
  const i = e.dataset.date;
492
- i && (this.#l = !0, (this.#s === "idle" || this.#s === "committed") && ($(() => {
493
+ i && (this.#u = !0, (this.#s === "idle" || this.#s === "committed") && ($(() => {
493
494
  this.#t.selectDate(i), this.#t.setRange(i, null);
494
495
  }), this.setAttribute("value", i), this.#s = "selecting"));
495
496
  }
496
497
  #p(t) {
497
- if (!this.#l || (this.#l = !1, this.#s !== "selecting")) return;
498
+ if (!this.#u || (this.#u = !1, this.#s !== "selecting")) return;
498
499
  const e = t.target.closest("[data-cal-day]");
499
500
  if (!e || e.hasAttribute("disabled")) return;
500
501
  const i = e.dataset.date;
@@ -502,7 +503,7 @@ class fe extends T {
502
503
  const s = this.#t.rangeStart.value;
503
504
  s && s !== i && this.#g(i);
504
505
  }
505
- #E(t) {
506
+ #x(t) {
506
507
  if (this.#e.value || !this.range || this.#s !== "selecting") return;
507
508
  const e = t.target.closest("[data-cal-day]");
508
509
  if (!e || e.hasAttribute("disabled")) return;
@@ -511,7 +512,7 @@ class fe extends T {
511
512
  const s = this.#t.rangeStart.value;
512
513
  s && this.#t.setRange(s, i);
513
514
  }
514
- #C = (t) => {
515
+ #E = (t) => {
515
516
  if (this.#e.value || this.#t.view.value !== "day") return;
516
517
  const i = this.#t.days.value;
517
518
  let s = this.#a.value, a = !0;
@@ -542,8 +543,8 @@ class fe extends T {
542
543
  break;
543
544
  case "Enter":
544
545
  case " ": {
545
- const n = i[s];
546
- n && !n.isDisabled && this.#h(n.date);
546
+ const o = i[s];
547
+ o && !o.isDisabled && this.#c(o.date);
547
548
  break;
548
549
  }
549
550
  default:
@@ -552,12 +553,12 @@ class fe extends T {
552
553
  a && (t.preventDefault(), s = Math.max(0, Math.min(41, s)), this.#a.value = s, s < 0 && this.#t.prevMonth(), s > 41 && this.#t.nextMonth());
553
554
  };
554
555
  }
555
- let pe = 0;
556
- function H(m) {
557
- return `${m}-${Date.now().toString(36)}-${(++pe).toString(36)}`;
556
+ let We = 0;
557
+ function H(f) {
558
+ return `${f}-${Date.now().toString(36)}-${(++We).toString(36)}`;
558
559
  }
559
- const be = 50, M = "http://www.w3.org/2000/svg";
560
- class ge {
560
+ const Oe = 50, L = "http://www.w3.org/2000/svg";
561
+ class Xe {
561
562
  host;
562
563
  // ── Public mutable options ──
563
564
  selector;
@@ -576,13 +577,13 @@ class ge {
576
577
  #e = /* @__PURE__ */ new Map();
577
578
  #a = null;
578
579
  #s = null;
579
- #l = [];
580
- #u = null;
580
+ #u = [];
581
+ #l = null;
581
582
  #i = null;
582
583
  #m = null;
583
584
  #f = null;
584
585
  #r = 0;
585
- #c = !1;
586
+ #h = !1;
586
587
  #o = !1;
587
588
  #d = null;
588
589
  constructor(t, e = {}) {
@@ -598,19 +599,19 @@ class ge {
598
599
  // ── Lifecycle ──
599
600
  attach() {
600
601
  if (this.#n) return;
601
- this.#n = !0, getComputedStyle(this.host).position === "static" && (this.host.style.position = "relative"), this.host.style.isolation = "isolate", this.#b(), this.#w(), this.#R(), this.showPorts && this.#S(), this.host.addEventListener("aui:magnet-snap", this.#x), this.host.addEventListener("aui:magnet-drop", this.#x), this.host.addEventListener("aui:drag-move", this.#x), this.#p();
602
+ this.#n = !0, getComputedStyle(this.host).position === "static" && (this.host.style.position = "relative"), this.host.style.isolation = "isolate", this.#b(), this.#w(), this.#R(), this.showPorts && this.#S(), this.host.addEventListener("aui:magnet-snap", this.#C), this.host.addEventListener("aui:magnet-drop", this.#C), this.host.addEventListener("aui:drag-move", this.#C), this.#p();
602
603
  }
603
604
  detach() {
604
- this.#n && (this.#n = !1, this.#z(), this.#T(), this.#A(), this.#v(), this.host.style.isolation = "", this.host.removeEventListener("aui:magnet-snap", this.#x), this.host.removeEventListener("aui:magnet-drop", this.#x), this.host.removeEventListener("aui:drag-move", this.#x), this.#r && (cancelAnimationFrame(this.#r), this.#r = 0), this.#c = !1);
605
+ this.#n && (this.#n = !1, this.#F(), this.#T(), this.#y(), this.#v(), this.host.style.isolation = "", this.host.removeEventListener("aui:magnet-snap", this.#C), this.host.removeEventListener("aui:magnet-drop", this.#C), this.host.removeEventListener("aui:drag-move", this.#C), this.#r && (cancelAnimationFrame(this.#r), this.#r = 0), this.#h = !1);
605
606
  }
606
607
  destroy() {
607
- this.#M(), this.detach(), this.#e.clear();
608
+ this.#L(), this.detach(), this.#e.clear();
608
609
  }
609
610
  // ── Public API ──
610
611
  /** Add a connection. Returns the connection ID. */
611
612
  connect(t, e, i = "right", s = "left") {
612
- const a = H("noodle"), n = { id: a, from: t, to: e, fromPort: i, toPort: s };
613
- return this.#e.set(a, n), this.#p(), this.host.dispatchEvent(new CustomEvent("aui:noodle-connect", {
613
+ const a = H("noodle"), o = { id: a, from: t, to: e, fromPort: i, toPort: s };
614
+ return this.#e.set(a, o), this.#p(), this.host.dispatchEvent(new CustomEvent("aui:noodle-connect", {
614
615
  bubbles: !0,
615
616
  composed: !0,
616
617
  detail: { id: a, from: t, to: e, fromPort: i, toPort: s }
@@ -654,14 +655,14 @@ class ge {
654
655
  /** Force re-render all paths and rebuild port indicators.
655
656
  * Call after programmatic element moves or when the set of port elements changes. */
656
657
  update() {
657
- this.#p(), this.showPorts && !this.#u && this.#S();
658
+ this.#p(), this.showPorts && !this.#l && this.#S();
658
659
  }
659
660
  // ── SVG overlay ──
660
661
  #b() {
661
- const t = document.createElementNS(M, "svg");
662
- t.setAttribute("data-noodle-svg", ""), t.style.cssText = "position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:0;", this.#s = document.createElementNS(M, "g"), this.#s.setAttribute("data-noodle-hits", ""), t.appendChild(this.#s), this.#a = document.createElementNS(M, "g"), this.#a.setAttribute("data-noodle-paths", ""), t.appendChild(this.#a), this.host.appendChild(t), this.#t = t;
662
+ const t = document.createElementNS(L, "svg");
663
+ t.setAttribute("data-noodle-svg", ""), t.style.cssText = "position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:0;", this.#s = document.createElementNS(L, "g"), this.#s.setAttribute("data-noodle-hits", ""), t.appendChild(this.#s), this.#a = document.createElementNS(L, "g"), this.#a.setAttribute("data-noodle-paths", ""), t.appendChild(this.#a), this.host.appendChild(t), this.#t = t;
663
664
  }
664
- #A() {
665
+ #y() {
665
666
  this.#t?.remove(), this.#t = null, this.#a = null, this.#s = null;
666
667
  }
667
668
  #w() {
@@ -675,7 +676,7 @@ class ge {
675
676
  // ── Coordinate helpers ──
676
677
  /** Convert client (screen) coordinates to the host's layout coordinate space,
677
678
  * accounting for CSS transforms (zoom/pan) on the host or its ancestors. */
678
- #y(t, e) {
679
+ #A(t, e) {
679
680
  const i = this.host.getBoundingClientRect(), s = i.width / (this.host.clientWidth || 1), a = i.height / (this.host.clientHeight || 1);
680
681
  return {
681
682
  x: (t - i.left) / s,
@@ -683,18 +684,18 @@ class ge {
683
684
  };
684
685
  }
685
686
  // ── Path computation ──
686
- #h(t, e) {
687
+ #c(t, e) {
687
688
  const i = this.host.querySelector(`#${CSS.escape(t)}`);
688
689
  if (!i) return null;
689
- let s = 0, a = 0, n = i;
690
- for (; n && n !== this.host; ) {
691
- s += n.offsetLeft, a += n.offsetTop;
692
- const h = n.style.translate;
693
- if (h) {
694
- const f = h.match(/-?[\d.]+/g);
695
- f && (s += parseFloat(f[0]) || 0, a += parseFloat(f[1]) || 0);
690
+ let s = 0, a = 0, o = i;
691
+ for (; o && o !== this.host; ) {
692
+ s += o.offsetLeft, a += o.offsetTop;
693
+ const u = o.style.translate;
694
+ if (u) {
695
+ const m = u.match(/-?[\d.]+/g);
696
+ m && (s += parseFloat(m[0]) || 0, a += parseFloat(m[1]) || 0);
696
697
  }
697
- n = n.offsetParent;
698
+ o = o.offsetParent;
698
699
  }
699
700
  const r = i.offsetWidth, c = i.offsetHeight;
700
701
  switch (e) {
@@ -721,7 +722,7 @@ class ge {
721
722
  }
722
723
  }
723
724
  #k(t) {
724
- const e = this.#h(t.from, t.fromPort), i = this.#h(t.to, t.toPort);
725
+ const e = this.#c(t.from, t.fromPort), i = this.#c(t.to, t.toPort);
725
726
  if (!e || !i) return null;
726
727
  switch (this.style) {
727
728
  case "straight":
@@ -732,8 +733,8 @@ class ge {
732
733
  }
733
734
  case "bezier":
734
735
  default: {
735
- const s = Math.max(Math.abs(i.x - e.x), Math.abs(i.y - e.y)), a = Math.max(50, s * this.tension), [n, r] = this.#g(e.x, e.y, t.fromPort, a), [c, h] = this.#g(i.x, i.y, t.toPort, a);
736
- return `M ${e.x} ${e.y} C ${n} ${r}, ${c} ${h}, ${i.x} ${i.y}`;
736
+ const s = Math.max(Math.abs(i.x - e.x), Math.abs(i.y - e.y)), a = Math.max(50, s * this.tension), [o, r] = this.#g(e.x, e.y, t.fromPort, a), [c, u] = this.#g(i.x, i.y, t.toPort, a);
737
+ return `M ${e.x} ${e.y} C ${o} ${r}, ${c} ${u}, ${i.x} ${i.y}`;
737
738
  }
738
739
  }
739
740
  }
@@ -745,26 +746,26 @@ class ge {
745
746
  const e = this.#k(t);
746
747
  if (!e) continue;
747
748
  if (this.editable) {
748
- const s = document.createElementNS(M, "path");
749
+ const s = document.createElementNS(L, "path");
749
750
  s.setAttribute("d", e), s.setAttribute("stroke", "transparent"), s.setAttribute("stroke-width", "14"), s.setAttribute("fill", "none"), s.style.pointerEvents = "stroke", s.style.cursor = "pointer", s.dataset.noodleId = t.id, s.addEventListener("pointerdown", this.#q), this.#s.appendChild(s);
750
751
  }
751
- const i = document.createElementNS(M, "path");
752
+ const i = document.createElementNS(L, "path");
752
753
  i.setAttribute("d", e), i.setAttribute("fill", "none"), i.setAttribute("stroke-linecap", "round"), this.disabled ? (i.setAttribute("stroke", "var(--aui-ink-muted)"), i.setAttribute("stroke-width", String(this.strokeWidth)), i.setAttribute("stroke-dasharray", "6 4"), i.style.opacity = "0.6") : (i.setAttribute("stroke", t.color ?? this.color), i.setAttribute("stroke-width", String(this.strokeWidth)), this.animated && (i.setAttribute("stroke-dasharray", "8 4"), i.style.animation = "noodle-flow 0.6s linear infinite")), this.#a.appendChild(i);
753
754
  }
754
- this.#u || queueMicrotask(() => {
755
+ this.#l || queueMicrotask(() => {
755
756
  this.#o = !1;
756
757
  });
757
758
  }
758
759
  }
759
- #E() {
760
- this.#c || (this.#c = !0, this.#r = requestAnimationFrame(() => {
761
- this.#c = !1, this.#p(), this.showPorts && this.#D();
760
+ #x() {
761
+ this.#h || (this.#h = !0, this.#r = requestAnimationFrame(() => {
762
+ this.#h = !1, this.#p(), this.showPorts && this.#D();
762
763
  }));
763
764
  }
764
765
  /** Full update: recreate port indicators (for child list changes). */
765
- #C() {
766
- this.#c || (this.#c = !0, this.#r = requestAnimationFrame(() => {
767
- this.#c = !1, this.#p(), this.showPorts && !this.#u && this.#S();
766
+ #E() {
767
+ this.#h || (this.#h = !0, this.#r = requestAnimationFrame(() => {
768
+ this.#h = !1, this.#p(), this.showPorts && !this.#l && this.#S();
768
769
  }));
769
770
  }
770
771
  // ── Port indicators (edit mode) ──
@@ -775,24 +776,24 @@ class ge {
775
776
  const i = (e.getAttribute("data-noodle-port") ?? "").split(/\s+/).filter(Boolean), s = e.id;
776
777
  if (s)
777
778
  for (const a of i) {
778
- const n = document.createElement("div");
779
- n.setAttribute("data-noodle-port-indicator", ""), n.setAttribute("data-noodle-side", a), n.setAttribute("data-noodle-target", s), n.style.cssText = `position:absolute;width:${this.portSize}px;height:${this.portSize}px;border-radius:50%;background:${this.color};border:2px solid white;pointer-events:auto;cursor:crosshair;z-index:5;touch-action:none;transform:translate(-50%,-50%);transition:transform 150ms ease,box-shadow 150ms ease;box-shadow:0 1px 3px rgba(0,0,0,0.2);`, n.addEventListener("pointerdown", this.#I), this.host.appendChild(n), this.#l.push(n);
779
+ const o = document.createElement("div");
780
+ o.setAttribute("data-noodle-port-indicator", ""), o.setAttribute("data-noodle-side", a), o.setAttribute("data-noodle-target", s), o.style.cssText = `position:absolute;width:${this.portSize}px;height:${this.portSize}px;border-radius:50%;background:${this.color};border:2px solid white;pointer-events:auto;cursor:crosshair;z-index:5;touch-action:none;transform:translate(-50%,-50%);transition:transform 150ms ease,box-shadow 150ms ease;box-shadow:0 1px 3px rgba(0,0,0,0.2);`, o.addEventListener("pointerdown", this.#I), this.host.appendChild(o), this.#u.push(o);
780
781
  }
781
782
  }
782
- this.#D(), this.#u || queueMicrotask(() => {
783
+ this.#D(), this.#l || queueMicrotask(() => {
783
784
  this.#o = !1;
784
785
  });
785
786
  }
786
787
  #D() {
787
- for (const t of this.#l) {
788
- const e = t.getAttribute("data-noodle-target"), i = t.getAttribute("data-noodle-side"), s = this.#h(e, i);
788
+ for (const t of this.#u) {
789
+ const e = t.getAttribute("data-noodle-target"), i = t.getAttribute("data-noodle-side"), s = this.#c(e, i);
789
790
  s && (t.style.left = `${s.x}px`, t.style.top = `${s.y}px`);
790
791
  }
791
792
  }
792
793
  #T() {
793
- for (const t of this.#l)
794
+ for (const t of this.#u)
794
795
  t.removeEventListener("pointerdown", this.#I), t.remove();
795
- this.#l = [];
796
+ this.#u = [];
796
797
  }
797
798
  // ── Edit mode: drag-to-connect ──
798
799
  #I = (t) => {
@@ -802,73 +803,73 @@ class ge {
802
803
  t.preventDefault(), t.stopPropagation();
803
804
  const i = e.getAttribute("data-noodle-target"), s = e.getAttribute("data-noodle-side"), a = this.host.querySelector(`#${CSS.escape(i)}`);
804
805
  if (a) {
805
- this.#u = {
806
+ this.#l = {
806
807
  fromElement: a,
807
808
  fromPort: s,
808
809
  fromId: i,
809
810
  pointerId: t.pointerId,
810
811
  sourceDot: e
811
812
  }, e.setAttribute("data-noodle-dragging", "");
812
- for (const n of this.#l) {
813
- if (n === e) continue;
814
- const r = n.getAttribute("data-noodle-target"), c = n.getAttribute("data-noodle-side");
815
- r === i && c === s || n.setAttribute("data-noodle-droppable", "");
813
+ for (const o of this.#u) {
814
+ if (o === e) continue;
815
+ const r = o.getAttribute("data-noodle-target"), c = o.getAttribute("data-noodle-side");
816
+ r === i && c === s || o.setAttribute("data-noodle-droppable", "");
816
817
  }
817
- this.#o = !0, this.#i = document.createElementNS(M, "path"), this.#i.setAttribute("stroke", "var(--aui-ink-muted)"), this.#i.setAttribute("stroke-width", String(this.strokeWidth)), this.#i.setAttribute("fill", "none"), this.#i.setAttribute("stroke-dasharray", "6 4"), this.#i.setAttribute("stroke-linecap", "round"), this.#i.style.opacity = "0.7", this.#a?.appendChild(this.#i), this.host.dispatchEvent(new CustomEvent("aui:noodle-drag", {
818
+ this.#o = !0, this.#i = document.createElementNS(L, "path"), this.#i.setAttribute("stroke", "var(--aui-ink-muted)"), this.#i.setAttribute("stroke-width", String(this.strokeWidth)), this.#i.setAttribute("fill", "none"), this.#i.setAttribute("stroke-dasharray", "6 4"), this.#i.setAttribute("stroke-linecap", "round"), this.#i.style.opacity = "0.7", this.#a?.appendChild(this.#i), this.host.dispatchEvent(new CustomEvent("aui:noodle-drag", {
818
819
  bubbles: !0,
819
820
  composed: !0,
820
821
  detail: { from: i, fromPort: s, x: t.clientX, y: t.clientY }
821
- })), document.addEventListener("pointermove", this.#P), document.addEventListener("pointerup", this.#$), document.addEventListener("pointercancel", this.#L);
822
+ })), document.addEventListener("pointermove", this.#P), document.addEventListener("pointerup", this.#$), document.addEventListener("pointercancel", this.#M);
822
823
  }
823
824
  };
824
825
  #P = (t) => {
825
- const e = this.#u;
826
+ const e = this.#l;
826
827
  if (!e || !this.#i) return;
827
- const i = this.#h(e.fromId, e.fromPort);
828
+ const i = this.#c(e.fromId, e.fromPort);
828
829
  if (!i) return;
829
- const { x: s, y: a } = this.#y(t.clientX, t.clientY), n = Math.max(Math.abs(s - i.x), Math.abs(a - i.y)), r = Math.max(50, n * this.tension), [c, h] = this.#g(i.x, i.y, e.fromPort, r), f = `M ${i.x} ${i.y} C ${c} ${h}, ${s} ${a}, ${s} ${a}`;
830
- this.#i.setAttribute("d", f), this.#Y(t.clientX, t.clientY);
830
+ const { x: s, y: a } = this.#A(t.clientX, t.clientY), o = Math.max(Math.abs(s - i.x), Math.abs(a - i.y)), r = Math.max(50, o * this.tension), [c, u] = this.#g(i.x, i.y, e.fromPort, r), m = `M ${i.x} ${i.y} C ${c} ${u}, ${s} ${a}, ${s} ${a}`;
831
+ this.#i.setAttribute("d", m), this.#Y(t.clientX, t.clientY);
831
832
  };
832
833
  #$ = (t) => {
833
- const e = this.#u;
834
+ const e = this.#l;
834
835
  if (!e) return;
835
836
  const i = this.#N(t.clientX, t.clientY);
836
837
  if (i) {
837
838
  const s = i.getAttribute("data-noodle-target"), a = i.getAttribute("data-noodle-side");
838
839
  (s !== e.fromId || a !== e.fromPort) && this.connect(e.fromId, s, e.fromPort, a);
839
840
  }
840
- this.#M();
841
+ this.#L();
841
842
  };
842
- #L = () => {
843
- this.#M();
843
+ #M = () => {
844
+ this.#L();
844
845
  };
845
- #M() {
846
- for (const t of this.#l)
846
+ #L() {
847
+ for (const t of this.#u)
847
848
  t.removeAttribute("data-noodle-dragging"), t.removeAttribute("data-noodle-droppable"), t.removeAttribute("data-noodle-drop-ready");
848
- this.#i?.remove(), this.#i = null, this.#u = null, document.removeEventListener("pointermove", this.#P), document.removeEventListener("pointerup", this.#$), document.removeEventListener("pointercancel", this.#L), this.#o = !1;
849
+ this.#i?.remove(), this.#i = null, this.#l = null, document.removeEventListener("pointermove", this.#P), document.removeEventListener("pointerup", this.#$), document.removeEventListener("pointercancel", this.#M), this.#o = !1;
849
850
  }
850
851
  // ── Proximity helpers ──
851
852
  /** Find the nearest droppable port within DROP_SNAP_RADIUS of a screen point. */
852
853
  #N(t, e) {
853
- let i = null, s = be;
854
- for (const a of this.#l) {
854
+ let i = null, s = Oe;
855
+ for (const a of this.#u) {
855
856
  if (!a.hasAttribute("data-noodle-droppable")) continue;
856
- const n = a.getBoundingClientRect(), r = n.left + n.width / 2, c = n.top + n.height / 2, h = Math.hypot(t - r, e - c);
857
- h < s && (s = h, i = a);
857
+ const o = a.getBoundingClientRect(), r = o.left + o.width / 2, c = o.top + o.height / 2, u = Math.hypot(t - r, e - c);
858
+ u < s && (s = u, i = a);
858
859
  }
859
860
  return i;
860
861
  }
861
862
  /** Toggle data-noodle-drop-ready on the nearest droppable port and update drag path color. */
862
863
  #Y(t, e) {
863
864
  const i = this.#N(t, e);
864
- for (const s of this.#l)
865
+ for (const s of this.#u)
865
866
  s === i ? s.setAttribute("data-noodle-drop-ready", "") : s.removeAttribute("data-noodle-drop-ready");
866
- if (i && this.#i && this.#u) {
867
+ if (i && this.#i && this.#l) {
867
868
  this.#i.setAttribute("stroke", this.color), this.#i.style.opacity = "1", this.#i.removeAttribute("stroke-dasharray");
868
- const s = i.getAttribute("data-noodle-target"), a = i.getAttribute("data-noodle-side"), n = this.#h(s, a), r = this.#h(this.#u.fromId, this.#u.fromPort);
869
- if (r && n) {
870
- const c = Math.max(Math.abs(n.x - r.x), Math.abs(n.y - r.y)), h = Math.max(50, c * this.tension), [f, u] = this.#g(r.x, r.y, this.#u.fromPort, h), [l, v] = this.#g(n.x, n.y, a, h);
871
- this.#i.setAttribute("d", `M ${r.x} ${r.y} C ${f} ${u}, ${l} ${v}, ${n.x} ${n.y}`);
869
+ const s = i.getAttribute("data-noodle-target"), a = i.getAttribute("data-noodle-side"), o = this.#c(s, a), r = this.#c(this.#l.fromId, this.#l.fromPort);
870
+ if (r && o) {
871
+ const c = Math.max(Math.abs(o.x - r.x), Math.abs(o.y - r.y)), u = Math.max(50, c * this.tension), [m, h] = this.#g(r.x, r.y, this.#l.fromPort, u), [d, v] = this.#g(o.x, o.y, a, u);
872
+ this.#i.setAttribute("d", `M ${r.x} ${r.y} C ${m} ${h}, ${d} ${v}, ${o.x} ${o.y}`);
872
873
  }
873
874
  } else this.#i && (this.#i.setAttribute("stroke", "var(--aui-ink-muted)"), this.#i.style.opacity = "0.7", this.#i.setAttribute("stroke-dasharray", "6 4"));
874
875
  }
@@ -880,58 +881,58 @@ class ge {
880
881
  const s = this.#e.get(i);
881
882
  if (!s) return;
882
883
  t.preventDefault(), t.stopPropagation(), this.#o = !0;
883
- const a = this.#h(s.from, s.fromPort), n = this.#h(s.to, s.toPort);
884
- if (!a || !n) {
884
+ const a = this.#c(s.from, s.fromPort), o = this.#c(s.to, s.toPort);
885
+ if (!a || !o) {
885
886
  this.#o = !1;
886
887
  return;
887
888
  }
888
- const { x: r, y: c } = this.#y(t.clientX, t.clientY), h = Math.hypot(r - a.x, c - a.y), f = Math.hypot(r - n.x, c - n.y), u = h < f ? s.to : s.from, l = h < f ? s.toPort : s.fromPort;
889
+ const { x: r, y: c } = this.#A(t.clientX, t.clientY), u = Math.hypot(r - a.x, c - a.y), m = Math.hypot(r - o.x, c - o.y), h = u < m ? s.to : s.from, d = u < m ? s.toPort : s.fromPort;
889
890
  this.disconnect(i);
890
- const v = this.#l.find(
891
- (b) => b.getAttribute("data-noodle-target") === u && b.getAttribute("data-noodle-side") === l
891
+ const v = this.#u.find(
892
+ (g) => g.getAttribute("data-noodle-target") === h && g.getAttribute("data-noodle-side") === d
892
893
  );
893
894
  if (!v) {
894
895
  this.#o = !1;
895
896
  return;
896
897
  }
897
- const d = this.host.querySelector(`#${CSS.escape(u)}`);
898
- if (!d) {
898
+ const l = this.host.querySelector(`#${CSS.escape(h)}`);
899
+ if (!l) {
899
900
  this.#o = !1;
900
901
  return;
901
902
  }
902
- this.#u = {
903
- fromElement: d,
904
- fromPort: l,
905
- fromId: u,
903
+ this.#l = {
904
+ fromElement: l,
905
+ fromPort: d,
906
+ fromId: h,
906
907
  pointerId: t.pointerId,
907
908
  sourceDot: v,
908
909
  reconnectId: i
909
910
  }, v.setAttribute("data-noodle-dragging", "");
910
- for (const b of this.#l) {
911
- if (b === v) continue;
912
- const A = b.getAttribute("data-noodle-target"), P = b.getAttribute("data-noodle-side");
913
- A === u && P === l || b.setAttribute("data-noodle-droppable", "");
911
+ for (const g of this.#u) {
912
+ if (g === v) continue;
913
+ const y = g.getAttribute("data-noodle-target"), P = g.getAttribute("data-noodle-side");
914
+ y === h && P === d || g.setAttribute("data-noodle-droppable", "");
914
915
  }
915
- this.#i = document.createElementNS(M, "path"), this.#i.setAttribute("stroke", "var(--aui-ink-muted)"), this.#i.setAttribute("stroke-width", String(this.strokeWidth)), this.#i.setAttribute("fill", "none"), this.#i.setAttribute("stroke-dasharray", "6 4"), this.#i.setAttribute("stroke-linecap", "round"), this.#i.style.opacity = "0.7";
916
- const p = this.#h(u, l), { x: g, y: E } = this.#y(t.clientX, t.clientY);
916
+ this.#i = document.createElementNS(L, "path"), this.#i.setAttribute("stroke", "var(--aui-ink-muted)"), this.#i.setAttribute("stroke-width", String(this.strokeWidth)), this.#i.setAttribute("fill", "none"), this.#i.setAttribute("stroke-dasharray", "6 4"), this.#i.setAttribute("stroke-linecap", "round"), this.#i.style.opacity = "0.7";
917
+ const p = this.#c(h, d), { x: b, y: x } = this.#A(t.clientX, t.clientY);
917
918
  if (p) {
918
- const b = Math.max(Math.abs(g - p.x), Math.abs(E - p.y)), A = Math.max(50, b * this.tension), [P, C] = this.#g(p.x, p.y, l, A);
919
- this.#i.setAttribute("d", `M ${p.x} ${p.y} C ${P} ${C}, ${g} ${E}, ${g} ${E}`);
919
+ const g = Math.max(Math.abs(b - p.x), Math.abs(x - p.y)), y = Math.max(50, g * this.tension), [P, E] = this.#g(p.x, p.y, d, y);
920
+ this.#i.setAttribute("d", `M ${p.x} ${p.y} C ${P} ${E}, ${b} ${x}, ${b} ${x}`);
920
921
  }
921
922
  this.#a?.appendChild(this.#i), this.host.dispatchEvent(new CustomEvent("aui:noodle-drag", {
922
923
  bubbles: !0,
923
924
  composed: !0,
924
- detail: { from: u, fromPort: l, x: t.clientX, y: t.clientY, reconnect: !0 }
925
- })), document.addEventListener("pointermove", this.#P), document.addEventListener("pointerup", this.#$), document.addEventListener("pointercancel", this.#L);
925
+ detail: { from: h, fromPort: d, x: t.clientX, y: t.clientY, reconnect: !0 }
926
+ })), document.addEventListener("pointermove", this.#P), document.addEventListener("pointerup", this.#$), document.addEventListener("pointercancel", this.#M);
926
927
  };
927
928
  // ── Movement tracking ──
928
- #x = () => {
929
- this.#E();
929
+ #C = () => {
930
+ this.#x();
930
931
  };
931
932
  #R() {
932
- this.#m = new ResizeObserver(() => this.#E()), this.#m.observe(this.host), this.#f = new MutationObserver((t) => {
933
+ this.#m = new ResizeObserver(() => this.#x()), this.#m.observe(this.host), this.#f = new MutationObserver((t) => {
933
934
  if (this.#o) return;
934
- t.some((i) => i.type === "childList") ? this.#C() : this.#E();
935
+ t.some((i) => i.type === "childList") ? this.#E() : this.#x();
935
936
  }), this.#f.observe(this.host, {
936
937
  childList: !0,
937
938
  subtree: !0,
@@ -939,11 +940,11 @@ class ge {
939
940
  attributeFilter: ["style", "class", "translate", "data-noodle-port"]
940
941
  });
941
942
  }
942
- #z() {
943
+ #F() {
943
944
  this.#m?.disconnect(), this.#m = null, this.#f?.disconnect(), this.#f = null;
944
945
  }
945
946
  }
946
- class ve extends T {
947
+ class _e extends T {
947
948
  static attributes = {
948
949
  editable: { type: "boolean", default: !1 },
949
950
  color: { type: "string", default: "" },
@@ -983,7 +984,7 @@ class ve extends T {
983
984
  }
984
985
  // ── Lifecycle ──
985
986
  activate() {
986
- this.#n = new ge(this, this.#t());
987
+ this.#n = new Xe(this, this.#t());
987
988
  }
988
989
  dispose() {
989
990
  this.#n?.destroy(), this.#n = null;
@@ -1013,8 +1014,8 @@ class ve extends T {
1013
1014
  const r = Number(a);
1014
1015
  isNaN(r) || (t.portSize = r);
1015
1016
  }
1016
- const n = this.getAttribute("curve");
1017
- return (n === "bezier" || n === "step" || n === "straight") && (t.style = n), t;
1017
+ const o = this.getAttribute("curve");
1018
+ return (o === "bezier" || o === "step" || o === "straight") && (t.style = o), t;
1018
1019
  }
1019
1020
  #e(t, e) {
1020
1021
  const i = this.#n;
@@ -1055,11 +1056,11 @@ class ve extends T {
1055
1056
  }
1056
1057
  }
1057
1058
  }
1058
- const ye = '<svg width="20" height="20" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M92.2671 346.112C88.1711 262.144 202.347 250.88 288.875 237.568C288.363 202.752 290.923 133.12 221.291 133.12C206.955 133.12 197.227 134.144 186.987 137.216L189.547 147.968C228.459 148.992 238.187 173.056 237.163 193.024C235.115 229.888 196.715 242.688 169.579 242.688C141.419 242.688 104.555 227.328 106.091 186.88C107.627 143.872 163.435 112.64 250.987 112.64C348.779 112.64 403.563 139.776 403.563 244.736V351.744C403.563 369.152 407.659 375.296 417.387 375.296C422.507 375.296 427.627 369.664 431.723 361.984L444.523 369.152C423.019 401.408 391.275 415.744 362.603 415.744C302.699 415.744 279.147 377.856 308.331 313.856L296.043 309.76C277.611 386.048 232.555 415.744 180.331 415.744C135.787 415.744 94.3151 391.68 92.2671 346.112ZM202.859 327.168C208.491 348.672 227.435 357.888 245.355 351.232C267.883 343.04 285.291 311.808 288.363 265.216L288.875 257.536C232.555 267.776 191.083 283.136 202.859 327.168Z" fill="currentColor"/></svg>';
1059
- function k(m) {
1060
- return m.split("-").map((t) => t[0].toUpperCase() + t.slice(1)).join(" ");
1059
+ const Be = '<svg width="20" height="20" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M92.2671 346.112C88.1711 262.144 202.347 250.88 288.875 237.568C288.363 202.752 290.923 133.12 221.291 133.12C206.955 133.12 197.227 134.144 186.987 137.216L189.547 147.968C228.459 148.992 238.187 173.056 237.163 193.024C235.115 229.888 196.715 242.688 169.579 242.688C141.419 242.688 104.555 227.328 106.091 186.88C107.627 143.872 163.435 112.64 250.987 112.64C348.779 112.64 403.563 139.776 403.563 244.736V351.744C403.563 369.152 407.659 375.296 417.387 375.296C422.507 375.296 427.627 369.664 431.723 361.984L444.523 369.152C423.019 401.408 391.275 415.744 362.603 415.744C302.699 415.744 279.147 377.856 308.331 313.856L296.043 309.76C277.611 386.048 232.555 415.744 180.331 415.744C135.787 415.744 94.3151 391.68 92.2671 346.112ZM202.859 327.168C208.491 348.672 227.435 357.888 245.355 351.232C267.883 343.04 285.291 311.808 288.363 265.216L288.875 257.536C232.555 267.776 191.083 283.136 202.859 327.168Z" fill="currentColor"/></svg>';
1060
+ function k(f) {
1061
+ return f.split("-").map((t) => t[0].toUpperCase() + t.slice(1)).join(" ");
1061
1062
  }
1062
- class Ae extends T {
1063
+ class Ke extends T {
1063
1064
  static attributes = {
1064
1065
  src: { type: "string", default: "./preview.json" }
1065
1066
  };
@@ -1070,12 +1071,12 @@ class Ae extends T {
1070
1071
  #a = null;
1071
1072
  #s = null;
1072
1073
  activate() {
1073
- this.#l();
1074
+ this.#u();
1074
1075
  }
1075
1076
  dispose() {
1076
1077
  document.removeEventListener("keydown", this.#f);
1077
1078
  }
1078
- async #l() {
1079
+ async #u() {
1079
1080
  let t;
1080
1081
  try {
1081
1082
  t = await (await fetch(this.src)).json();
@@ -1083,98 +1084,98 @@ class Ae extends T {
1083
1084
  this.textContent = "Failed to load preview.json";
1084
1085
  return;
1085
1086
  }
1086
- const { section: e, param: i, items: s, links: a } = t, r = new URL(this.src, window.location.href).href.replace(/preview\.json$/, ""), h = new URLSearchParams(location.search).get(i), f = document.createElement("div");
1087
- f.setAttribute("data-role", "navbar");
1088
- const u = document.createElement("aui-select");
1089
- u.setAttribute("mode", "bar"), u.setAttribute("width", "full");
1090
- const l = document.createElement("aui-option");
1091
- l.setAttribute("value", ""), l.setAttribute("overflow-pin", ""), l.setAttribute("data-preview-logo", ""), l.dataset.href = window.location.pathname, l.innerHTML = `${ye} AgentUI`, u.appendChild(l);
1092
- const v = "aui-preview-scheme", d = localStorage.getItem(v);
1093
- d && (document.documentElement.dataset.theme = d, document.documentElement.style.colorScheme = d);
1087
+ const { section: e, param: i, items: s, links: a } = t, r = new URL(this.src, window.location.href).href.replace(/preview\.json$/, ""), u = new URLSearchParams(location.search).get(i), m = document.createElement("div");
1088
+ m.setAttribute("data-role", "navbar");
1089
+ const h = document.createElement("aui-select");
1090
+ h.setAttribute("mode", "bar"), h.setAttribute("width", "full");
1091
+ const d = document.createElement("aui-option");
1092
+ d.setAttribute("value", ""), d.setAttribute("overflow-pin", ""), d.setAttribute("data-preview-logo", ""), d.dataset.href = window.location.pathname, d.innerHTML = `${Be} AgentUI`, h.appendChild(d);
1093
+ const v = "aui-preview-scheme", l = localStorage.getItem(v);
1094
+ l && (document.documentElement.dataset.theme = l, document.documentElement.style.colorScheme = l);
1094
1095
  const p = document.createElement("aui-button");
1095
1096
  p.setAttribute("ghost", ""), p.setAttribute("size", "sm"), p.setAttribute("hide-label", ""), p.setAttribute("label", "Toggle color scheme");
1096
- const g = document.createElement("aui-icon"), E = document.documentElement.dataset.theme === "dark";
1097
- g.setAttribute("name", E ? "sun" : "moon"), p.appendChild(g), u.appendChild(p), p.addEventListener("click", () => {
1098
- const y = document.documentElement, x = y.dataset.theme === "dark", w = x ? "light" : "dark";
1099
- y.dataset.theme = w, y.style.colorScheme = w, localStorage.setItem(v, w), g.setAttribute("name", x ? "moon" : "sun");
1097
+ const b = document.createElement("aui-icon"), x = document.documentElement.dataset.theme === "dark";
1098
+ b.setAttribute("name", x ? "sun" : "moon"), p.appendChild(b), h.appendChild(p), p.addEventListener("click", () => {
1099
+ const A = document.documentElement, C = A.dataset.theme === "dark", w = C ? "light" : "dark";
1100
+ A.dataset.theme = w, A.style.colorScheme = w, localStorage.setItem(v, w), b.setAttribute("name", C ? "moon" : "sun");
1100
1101
  });
1101
- const b = document.createElement("aui-select");
1102
- if (b.setAttribute("placeholder", k(e)), b.setAttribute("outline", ""), b.setAttribute("data-role", "page-select"), a.length) {
1103
- const y = document.createElement("aui-optgroup");
1104
- y.setAttribute("label", "Sections");
1105
- for (const x of a) {
1102
+ const g = document.createElement("aui-select");
1103
+ if (g.setAttribute("placeholder", k(e)), g.setAttribute("outline", ""), g.setAttribute("data-role", "page-select"), a.length) {
1104
+ const A = document.createElement("aui-optgroup");
1105
+ A.setAttribute("label", "Sections");
1106
+ for (const C of a) {
1106
1107
  const w = document.createElement("aui-option");
1107
- w.setAttribute("value", `go-${x.label.toLowerCase()}`), w.dataset.href = x.href, w.textContent = x.label, y.appendChild(w);
1108
+ w.setAttribute("value", `go-${C.label.toLowerCase()}`), w.dataset.href = C.href, w.textContent = C.label, A.appendChild(w);
1108
1109
  }
1109
- b.appendChild(y);
1110
+ g.appendChild(A);
1110
1111
  }
1111
- let A = null, P = "";
1112
- for (const y of s) {
1113
- const x = y.group || k(e);
1114
- x !== P && (A = document.createElement("aui-optgroup"), A.setAttribute("label", x), b.appendChild(A), P = x);
1112
+ let y = null, P = "";
1113
+ for (const A of s) {
1114
+ const C = A.group || k(e);
1115
+ C !== P && (y = document.createElement("aui-optgroup"), y.setAttribute("label", C), g.appendChild(y), P = C);
1115
1116
  const w = document.createElement("aui-option");
1116
- w.setAttribute("value", y.slug), y.file && (w.dataset.file = y.file), y.slug === h && w.setAttribute("selected", ""), w.textContent = y.name || k(y.slug), A.appendChild(w);
1117
+ w.setAttribute("value", A.slug), A.file && (w.dataset.file = A.file), A.slug === u && w.setAttribute("selected", ""), w.textContent = A.name || k(A.slug), y.appendChild(w);
1117
1118
  }
1118
- h && b.setAttribute("value", h), u.appendChild(b), f.appendChild(u), this.appendChild(f);
1119
- const C = document.createElement("aui-editor");
1120
- C.setAttribute("data-role", "canvas"), C.setAttribute("background", "dots");
1119
+ u && g.setAttribute("value", u), h.appendChild(g), m.appendChild(h), this.appendChild(m);
1120
+ const E = document.createElement("aui-editor");
1121
+ E.setAttribute("data-role", "canvas"), E.setAttribute("background", "dots");
1121
1122
  const D = document.createElement("aui-editor-layer");
1122
1123
  D.setAttribute("name", "content");
1123
1124
  const R = document.createElement("div");
1124
- if (R.setAttribute("data-role", "content"), D.appendChild(R), C.appendChild(D), this.appendChild(C), this.#n = C, this.#t = R, u.addEventListener("click", (y) => {
1125
- const w = y.target.closest("aui-option")?.dataset?.href;
1125
+ if (R.setAttribute("data-role", "content"), D.appendChild(R), E.appendChild(D), this.appendChild(E), this.#n = E, this.#t = R, h.addEventListener("click", (A) => {
1126
+ const w = A.target.closest("aui-option")?.dataset?.href;
1126
1127
  w && (window.location.href = w);
1127
- }), b.addEventListener("change", (y) => {
1128
- const x = y.target.value, G = b.querySelector(`aui-option[value="${x}"]`)?.dataset?.href;
1128
+ }), g.addEventListener("change", (A) => {
1129
+ const C = A.target.value, G = g.querySelector(`aui-option[value="${C}"]`)?.dataset?.href;
1129
1130
  if (G) {
1130
1131
  window.location.href = G;
1131
1132
  return;
1132
1133
  }
1133
1134
  const U = new URL(window.location.href);
1134
- U.searchParams.set(i, x), window.location.href = U.toString();
1135
- }), h) {
1136
- const x = s.find((w) => w.slug === h)?.file || `${h}/${h}.html`;
1137
- document.title = `${k(h)} — AgentUI ${k(e)}`, await this.#c(x, r);
1135
+ U.searchParams.set(i, C), window.location.href = U.toString();
1136
+ }), u) {
1137
+ const C = s.find((w) => w.slug === u)?.file || `${u}/${u}.html`;
1138
+ document.title = `${k(u)} — AgentUI ${k(e)}`, await this.#h(C, r);
1138
1139
  } else
1139
1140
  document.title = `AgentUI — ${k(e)}`, await this.#o(s, r);
1140
- this.#e = t, this.#a = h, this.#u(t, i), document.addEventListener("keydown", this.#f), requestAnimationFrame(() => this.#d());
1141
+ this.#e = t, this.#a = u, this.#l(t, i), document.addEventListener("keydown", this.#f), requestAnimationFrame(() => this.#d());
1141
1142
  }
1142
1143
  // ── Command palette ──
1143
- #u(t, e) {
1144
+ #l(t, e) {
1144
1145
  const i = document.createElement("aui-dialog");
1145
1146
  i.setAttribute("size", "sm");
1146
1147
  const s = document.createElement("aui-command");
1147
1148
  s.setAttribute("max-width", "full");
1148
1149
  const a = document.createElement("aui-command-input");
1149
1150
  a.setAttribute("placeholder", `Go to ${k(t.section)}…`), s.appendChild(a);
1150
- const n = document.createElement("aui-command-list");
1151
+ const o = document.createElement("aui-command-list");
1151
1152
  if (t.links.length) {
1152
- const f = document.createElement("aui-command-group");
1153
- f.setAttribute("label", "Sections");
1154
- for (const u of t.links) {
1155
- const l = document.createElement("aui-command-item");
1156
- l.setAttribute("value", `section:${u.label}`), l.dataset.href = u.href, l.textContent = u.label, f.appendChild(l);
1153
+ const m = document.createElement("aui-command-group");
1154
+ m.setAttribute("label", "Sections");
1155
+ for (const h of t.links) {
1156
+ const d = document.createElement("aui-command-item");
1157
+ d.setAttribute("value", `section:${h.label}`), d.dataset.href = h.href, d.textContent = h.label, m.appendChild(d);
1157
1158
  }
1158
- n.appendChild(f);
1159
+ o.appendChild(m);
1159
1160
  }
1160
1161
  let r = null, c = "";
1161
- for (const f of t.items) {
1162
- const u = f.group || k(t.section);
1163
- u !== c && (r = document.createElement("aui-command-group"), r.setAttribute("label", u), n.appendChild(r), c = u);
1164
- const l = document.createElement("aui-command-item");
1165
- l.setAttribute("value", f.slug), f.summary && l.setAttribute("keywords", f.summary), l.textContent = f.name || k(f.slug), r.appendChild(l);
1162
+ for (const m of t.items) {
1163
+ const h = m.group || k(t.section);
1164
+ h !== c && (r = document.createElement("aui-command-group"), r.setAttribute("label", h), o.appendChild(r), c = h);
1165
+ const d = document.createElement("aui-command-item");
1166
+ d.setAttribute("value", m.slug), m.summary && d.setAttribute("keywords", m.summary), d.textContent = m.name || k(m.slug), r.appendChild(d);
1166
1167
  }
1167
- s.appendChild(n);
1168
- const h = document.createElement("aui-command-empty");
1169
- h.textContent = "No results.", s.appendChild(h), s.addEventListener("select", (f) => {
1170
- const { value: u } = f.detail, v = s.querySelector(`aui-command-item[value="${CSS.escape(u)}"]`)?.dataset?.href;
1168
+ s.appendChild(o);
1169
+ const u = document.createElement("aui-command-empty");
1170
+ u.textContent = "No results.", s.appendChild(u), s.addEventListener("select", (m) => {
1171
+ const { value: h } = m.detail, v = s.querySelector(`aui-command-item[value="${CSS.escape(h)}"]`)?.dataset?.href;
1171
1172
  if (v) {
1172
1173
  window.location.href = v;
1173
1174
  return;
1174
1175
  }
1175
- if (u.startsWith("section:")) return;
1176
- const d = new URL(window.location.href);
1177
- d.searchParams.set(e, u), window.location.href = d.toString();
1176
+ if (h.startsWith("section:")) return;
1177
+ const l = new URL(window.location.href);
1178
+ l.searchParams.set(e, h), window.location.href = l.toString();
1178
1179
  }), s.addEventListener("dismiss", () => this.#m()), i.addEventListener("close", () => {
1179
1180
  this.#s?.removeAttribute("open");
1180
1181
  }), i.appendChild(s), this.appendChild(i), this.#s = i;
@@ -1208,185 +1209,225 @@ class Ae extends T {
1208
1209
  if (!e.length) return;
1209
1210
  let a = (this.#a ? e.findIndex((c) => c.slug === this.#a) : -1) + t;
1210
1211
  a >= e.length && (a = 0), a < 0 && (a = e.length - 1);
1211
- const n = e[a];
1212
- if (!n) return;
1212
+ const o = e[a];
1213
+ if (!o) return;
1213
1214
  const r = new URL(window.location.href);
1214
- r.searchParams.set(i, n.slug), window.location.href = r.toString();
1215
+ r.searchParams.set(i, o.slug), window.location.href = r.toString();
1215
1216
  }
1216
- async #c(t, e) {
1217
- const i = t.split("/")[0], s = `${e}${t}`, a = `${e}${i}/${i}.css`, n = `${e}${i}/${i}.ts`;
1217
+ async #h(t, e) {
1218
+ const i = `${e}${t}`, s = t.replace(/\.html$/, ""), a = `${e}${s}.css`, o = `${e}${s}.ts`;
1218
1219
  try {
1219
- const d = await fetch(s);
1220
- d.ok && (this.#t.innerHTML = await d.text());
1220
+ const l = await fetch(i);
1221
+ l.ok && (this.#t.innerHTML = await l.text());
1221
1222
  } catch {
1222
1223
  }
1223
- await new Promise((d) => requestAnimationFrame(() => requestAnimationFrame(d))), await new Promise((d) => requestAnimationFrame(() => requestAnimationFrame(d)));
1224
+ await new Promise((l) => requestAnimationFrame(() => requestAnimationFrame(l))), await new Promise((l) => requestAnimationFrame(() => requestAnimationFrame(l)));
1224
1225
  const r = Array.from(this.#t.children).filter(
1225
- (d) => d.nodeType === 1 && d.tagName !== "SCRIPT"
1226
- ), c = 96, h = 200, f = r.map((d) => ({
1227
- el: d,
1228
- height: d.offsetHeight,
1229
- width: d.offsetWidth
1226
+ (l) => l.nodeType === 1 && l.tagName !== "SCRIPT"
1227
+ ), c = 96, u = 200, m = r.map((l) => ({
1228
+ el: l,
1229
+ height: l.offsetHeight,
1230
+ width: l.offsetWidth
1230
1231
  }));
1231
- let u = h, l = 0;
1232
- for (const { el: d, height: p, width: g } of f)
1233
- d.style.position = "absolute", d.style.left = "0px", d.style.top = `${u}px`, d.tagName === "AUI-GRAPH-UI" || d.tagName === "AUI-EDITOR" || (F(d, "drag", { config: { mode: "free", modifier: "alt" } }), F(d, "resize", { config: { modifier: "alt" } })), g > l && (l = g), u += p + c;
1234
- this.#t.style.width = `${l}px`, this.#t.style.height = `${u}px`;
1235
- const v = document.createElement("link");
1236
- v.rel = "stylesheet", v.href = a, document.head.appendChild(v);
1232
+ let h = u, d = 0;
1233
+ const v = [];
1234
+ for (const { el: l, height: p, width: b } of m)
1235
+ v.push({ el: l, y: h, width: b }), b > d && (d = b), h += p + c;
1236
+ for (const { el: l, y: p, width: b } of v)
1237
+ l.style.position = "absolute", l.style.left = `${(d - b) / 2}px`, l.style.top = `${p}px`, l.tagName === "AUI-GRAPH-UI" || l.tagName === "AUI-EDITOR" || (z(l, "drag", { config: { mode: "free", modifier: "alt" } }), z(l, "resize", { config: { modifier: "alt" } }));
1238
+ this.#t.style.width = `${d}px`, this.#t.style.height = `${h}px`;
1239
+ try {
1240
+ if ((await fetch(a, { method: "HEAD" })).ok) {
1241
+ const p = document.createElement("link");
1242
+ p.rel = "stylesheet", p.href = a, document.head.appendChild(p);
1243
+ }
1244
+ } catch {
1245
+ }
1237
1246
  try {
1238
1247
  await import(
1239
1248
  /* @vite-ignore */
1240
- n
1249
+ o
1241
1250
  );
1242
1251
  } catch {
1243
1252
  }
1244
- for (const d of Array.from(this.#t.querySelectorAll("script"))) {
1253
+ for (const l of Array.from(this.#t.querySelectorAll("script"))) {
1245
1254
  const p = document.createElement("script");
1246
- for (const g of d.attributes) p.setAttribute(g.name, g.value);
1247
- p.textContent = d.textContent, d.replaceWith(p);
1255
+ for (const b of l.attributes) p.setAttribute(b.name, b.value);
1256
+ p.textContent = l.textContent, l.replaceWith(p);
1248
1257
  }
1249
1258
  requestAnimationFrame(() => this.#d());
1250
1259
  }
1251
1260
  async #o(t, e) {
1252
- const a = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
1261
+ const a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
1253
1262
  let r = 200, c = 0;
1254
- for (const h of t) {
1255
- const f = h.file || `${h.slug}/${h.slug}.html`, u = f.split("/")[0], l = `${e}${f}`, v = `${e}${u}/${u}.css`, d = `${e}${u}/${u}.ts`;
1263
+ for (const u of t) {
1264
+ const m = u.file || `${u.slug}/${u.slug}.html`, h = m.replace(/\.html$/, ""), d = `${e}${m}`, v = `${e}${h}.css`, l = `${e}${h}.ts`;
1256
1265
  if (!a.has(v)) {
1257
1266
  a.add(v);
1258
- const A = document.createElement("link");
1259
- A.rel = "stylesheet", A.href = v, document.head.appendChild(A);
1267
+ const y = document.createElement("link");
1268
+ y.rel = "stylesheet", y.href = v, document.head.appendChild(y);
1260
1269
  }
1261
- if (!n.has(d)) {
1262
- n.add(d);
1270
+ if (!o.has(l)) {
1271
+ o.add(l);
1263
1272
  try {
1264
1273
  await import(
1265
1274
  /* @vite-ignore */
1266
- d
1275
+ l
1267
1276
  );
1268
1277
  } catch {
1269
1278
  }
1270
1279
  }
1271
1280
  let p = "";
1272
1281
  try {
1273
- const A = await fetch(l);
1274
- A.ok && (p = await A.text());
1282
+ const y = await fetch(d);
1283
+ y.ok && (p = await y.text());
1275
1284
  } catch {
1276
1285
  continue;
1277
1286
  }
1278
1287
  if (!p.trim()) continue;
1279
- const g = document.createElement("div");
1280
- g.setAttribute("data-role", "gallery-item"), g.innerHTML = `<h3 style="margin:0 0 1rem;font-family:var(--aui-font-family);font-size:var(--aui-font-lg);font-weight:var(--aui-font-weight-semibold);color:var(--aui-ink-muted);">${h.name || k(h.slug)}</h3>${p}`, this.#t.appendChild(g), await new Promise((A) => requestAnimationFrame(A));
1281
- const E = g.offsetHeight, b = g.offsetWidth;
1282
- g.style.position = "absolute", g.style.left = "0px", g.style.top = `${r}px`, b > c && (c = b), r += E + 96;
1288
+ const b = document.createElement("div");
1289
+ b.setAttribute("data-role", "gallery-item"), b.innerHTML = `<h3 style="margin:0 0 1rem;font-family:var(--aui-font-family);font-size:var(--aui-font-lg);font-weight:var(--aui-font-weight-semibold);color:var(--aui-ink-muted);">${u.name || k(u.slug)}</h3>${p}`, this.#t.appendChild(b), await new Promise((y) => requestAnimationFrame(y));
1290
+ const x = b.offsetHeight, g = b.offsetWidth;
1291
+ b.style.position = "absolute", b.style.top = `${r}px`, b.__measuredWidth = g, g > c && (c = g), r += x + 96;
1292
+ }
1293
+ for (const u of Array.from(this.#t.children)) {
1294
+ const m = u.__measuredWidth ?? u.offsetWidth;
1295
+ u.style.left = `${(c - m) / 2}px`;
1283
1296
  }
1284
1297
  this.#t.style.width = `${c}px`, this.#t.style.height = `${r}px`, requestAnimationFrame(() => this.#d());
1285
1298
  }
1286
1299
  #d() {
1287
- const t = this.#n, e = this.#n.clientWidth, i = this.#t.offsetWidth, s = (e - i) / 2;
1300
+ const t = this.#n, e = this.#n.clientWidth, i = this.#t.offsetWidth, s = Math.max(16, (e - i) / 2);
1288
1301
  t.panTo?.(s, 0);
1289
1302
  }
1290
1303
  }
1291
1304
  et();
1292
- o("aui-button", ut);
1293
- o("aui-input", dt);
1294
- o("aui-checkbox", ht);
1295
- o("aui-switch", ct);
1296
- o("aui-radio", mt);
1297
- o("aui-radio-group", ft);
1298
- o("aui-textarea", pt);
1299
- o("aui-container", bt);
1300
- o("aui-dialog", gt);
1301
- o("aui-drawer", vt);
1302
- o("aui-icon", yt);
1303
- o("aui-tooltip", At);
1304
- o("aui-range", wt);
1305
- o("aui-input-otp", xt);
1306
- o("aui-gripper", Et);
1307
- o("aui-option", Ct);
1308
- o("aui-optgroup", kt);
1309
- o("aui-select", St);
1310
- o("aui-toast", Pt);
1311
- o("aui-tabs", $t);
1312
- o("aui-tab", Lt);
1313
- o("aui-tab-panel", Mt);
1314
- o("aui-accordion", Dt);
1315
- o("aui-accordion-item", Tt);
1316
- o("aui-breadcrumb", It);
1317
- o("aui-breadcrumb-item", Nt);
1318
- o("aui-segmented-control", Yt);
1319
- o("aui-segment", qt);
1320
- o("aui-pagination", Rt);
1321
- o("aui-command", zt);
1322
- o("aui-command-input", Ft);
1323
- o("aui-command-list", Gt);
1324
- o("aui-command-item", Ut);
1325
- o("aui-command-group", Ht);
1326
- o("aui-command-empty", Ot);
1327
- o("aui-panes", Wt);
1328
- o("aui-pane", Xt);
1329
- o("aui-table", Kt);
1330
- o("aui-table-head", Bt);
1331
- o("aui-table-body", _t);
1332
- o("aui-table-row", jt);
1333
- o("aui-table-header", Jt);
1334
- o("aui-table-cell", Vt);
1335
- o("aui-table-column", de);
1336
- o("aui-tree", Zt);
1337
- o("aui-tree-item", Qt);
1338
- o("aui-feed", te);
1339
- o("aui-root", ee);
1340
- o("aui-canvas", he);
1341
- o("aui-calendar", fe);
1342
- o("aui-noodles", ve);
1343
- o("aui-agent-feed", K);
1344
- o("aui-agent-thread", B);
1345
- o("aui-agent-message", _);
1346
- o("aui-agent-text", j);
1347
- o("aui-agent-activity", J);
1348
- o("aui-agent-seeds", V);
1349
- o("aui-agent-panel", Z);
1350
- o("aui-agent-input", Q);
1351
- o("aui-agent-prompt", tt);
1352
- o("aui-app-shell", ie);
1353
- o("aui-page", se);
1354
- o("aui-page-main", ae);
1355
- o("aui-page-context", ne);
1356
- o("aui-sidebar", oe);
1357
- o("aui-sidebar-header", re);
1358
- o("aui-sidebar-content", le);
1359
- o("aui-sidebar-footer", ue);
1360
- o("aui-preview-app", Ae);
1361
- o("aui-editor", it);
1362
- o("aui-editor-layer", st);
1363
- o("aui-graph-ui", at);
1364
- o("aui-graph-layer", nt);
1365
- o("aui-graph-node", ot);
1366
- o("aui-graph-noodle", rt);
1367
- o("aui-graph-port", lt);
1305
+ n("aui-button", lt);
1306
+ n("aui-input", dt);
1307
+ n("aui-checkbox", ct);
1308
+ n("aui-switch", ht);
1309
+ n("aui-radio", mt);
1310
+ n("aui-radio-group", ft);
1311
+ n("aui-textarea", pt);
1312
+ n("aui-container", bt);
1313
+ n("aui-dialog", gt);
1314
+ n("aui-drawer", vt);
1315
+ n("aui-icon", At);
1316
+ n("aui-tooltip", yt);
1317
+ n("aui-range", wt);
1318
+ n("aui-input-otp", Ct);
1319
+ n("aui-gripper", xt);
1320
+ n("aui-option", Et);
1321
+ n("aui-optgroup", kt);
1322
+ n("aui-select", St);
1323
+ n("aui-toast", Pt);
1324
+ n("aui-tabs", $t);
1325
+ n("aui-tab", Mt);
1326
+ n("aui-tab-panel", Lt);
1327
+ n("aui-accordion", Dt);
1328
+ n("aui-accordion-item", Tt);
1329
+ n("aui-breadcrumb", It);
1330
+ n("aui-breadcrumb-item", Nt);
1331
+ n("aui-segmented-control", Yt);
1332
+ n("aui-segment", qt);
1333
+ n("aui-pagination", Rt);
1334
+ n("aui-command", Ft);
1335
+ n("aui-command-input", zt);
1336
+ n("aui-command-list", Gt);
1337
+ n("aui-command-item", Ut);
1338
+ n("aui-command-group", Ht);
1339
+ n("aui-command-empty", Wt);
1340
+ n("aui-panes", Ot);
1341
+ n("aui-pane", Xt);
1342
+ n("aui-table", _t);
1343
+ n("aui-table-head", Bt);
1344
+ n("aui-table-body", Kt);
1345
+ n("aui-table-row", jt);
1346
+ n("aui-table-header", Jt);
1347
+ n("aui-table-cell", Vt);
1348
+ n("aui-table-column", Fe);
1349
+ n("aui-tree", Zt);
1350
+ n("aui-tree-item", Qt);
1351
+ n("aui-feed", te);
1352
+ n("aui-root", ee);
1353
+ n("aui-canvas", ze);
1354
+ n("aui-calendar", He);
1355
+ n("aui-calendar-picker", ie);
1356
+ n("aui-calendar-range-picker", se);
1357
+ n("aui-noodles", _e);
1358
+ n("aui-agent-feed", _);
1359
+ n("aui-agent-thread", B);
1360
+ n("aui-agent-message", K);
1361
+ n("aui-agent-text", j);
1362
+ n("aui-agent-activity", J);
1363
+ n("aui-agent-seeds", V);
1364
+ n("aui-agent-panel", Z);
1365
+ n("aui-agent-input", Q);
1366
+ n("aui-agent-prompt", tt);
1367
+ n("aui-app-shell", ae);
1368
+ n("aui-page", ne);
1369
+ n("aui-page-main", oe);
1370
+ n("aui-page-context", re);
1371
+ n("aui-sidebar", ue);
1372
+ n("aui-sidebar-header", le);
1373
+ n("aui-sidebar-content", de);
1374
+ n("aui-sidebar-footer", ce);
1375
+ n("aui-preview-app", Ke);
1376
+ n("aui-editor", it);
1377
+ n("aui-editor-layer", st);
1378
+ n("aui-graph-ui", at);
1379
+ n("aui-graph-layer", nt);
1380
+ n("aui-graph-node", ot);
1381
+ n("aui-graph-noodle", rt);
1382
+ n("aui-graph-port", ut);
1383
+ n("aui-progress", he);
1384
+ n("aui-code-block", me);
1385
+ n("aui-sparkline", fe);
1386
+ n("aui-chip", pe);
1387
+ n("aui-disclosure", be);
1388
+ n("aui-avatar-group", ge);
1389
+ n("aui-progress-circle", ve);
1390
+ n("aui-disclosure-group", Ae);
1391
+ n("aui-tag-group", ye);
1392
+ n("aui-color-area", we);
1393
+ n("aui-color-slider", Ce);
1394
+ n("aui-color-field", xe);
1395
+ n("aui-time-field", Ee);
1396
+ n("aui-date-field", ke);
1397
+ n("aui-context-menu", Se);
1398
+ n("aui-dropdown-menu", Pe);
1399
+ n("aui-hover-card", $e);
1400
+ n("aui-color-picker", Me);
1401
+ n("aui-file-upload", Le);
1402
+ n("aui-copy-button", De);
1403
+ n("aui-stat", Te);
1404
+ n("aui-image", Ie);
1405
+ n("aui-carousel", Ne);
1406
+ n("aui-notification-center", Ye);
1407
+ n("aui-empty-state", qe);
1408
+ n("aui-meter", Re);
1368
1409
  const q = /* @__PURE__ */ new WeakMap();
1369
- function Y(m) {
1370
- if (m instanceof T || q.has(m)) return;
1371
- const t = m.getAttribute("traits");
1410
+ function Y(f) {
1411
+ if (f instanceof T || q.has(f)) return;
1412
+ const t = f.getAttribute("traits");
1372
1413
  if (!t) return;
1373
- const e = W(t), i = X(e, m.localName), s = [];
1414
+ const e = O(t), i = X(e, f.localName), s = [];
1374
1415
  for (const { entry: a } of i) {
1375
- const n = F(m, a.name, {
1416
+ const o = z(f, a.name, {
1376
1417
  config: a.config
1377
1418
  });
1378
- s.push(n);
1419
+ s.push(o);
1379
1420
  }
1380
- q.set(m, s);
1421
+ q.set(f, s);
1381
1422
  }
1382
- function z(m) {
1383
- const t = q.get(m);
1423
+ function F(f) {
1424
+ const t = q.get(f);
1384
1425
  if (t) {
1385
1426
  for (const e of t) e();
1386
- q.delete(m);
1427
+ q.delete(f);
1387
1428
  }
1388
1429
  }
1389
- function O() {
1430
+ function W() {
1390
1431
  for (const t of document.querySelectorAll("[traits]"))
1391
1432
  Y(t);
1392
1433
  new MutationObserver((t) => {
@@ -1402,14 +1443,14 @@ function O() {
1402
1443
  for (const i of e.removedNodes) {
1403
1444
  if (i.nodeType !== 1) continue;
1404
1445
  const s = i;
1405
- z(s);
1446
+ F(s);
1406
1447
  for (const a of s.querySelectorAll("[traits]"))
1407
- z(a);
1448
+ F(a);
1408
1449
  }
1409
1450
  }
1410
1451
  if (e.type === "attributes" && e.attributeName === "traits") {
1411
1452
  const i = e.target;
1412
- z(i), i.hasAttribute("traits") && Y(i);
1453
+ F(i), i.hasAttribute("traits") && Y(i);
1413
1454
  }
1414
1455
  }
1415
1456
  }).observe(document.body, {
@@ -1419,9 +1460,9 @@ function O() {
1419
1460
  attributeFilter: ["traits"]
1420
1461
  });
1421
1462
  }
1422
- document.body ? O() : document.addEventListener("DOMContentLoaded", O, { once: !0 });
1423
- document.addEventListener("click", (m) => {
1424
- const t = m.target?.closest?.("[popover-trigger]");
1463
+ document.body ? W() : document.addEventListener("DOMContentLoaded", W, { once: !0 });
1464
+ document.addEventListener("click", (f) => {
1465
+ const t = f.target?.closest?.("[popover-trigger]");
1425
1466
  if (!t) return;
1426
1467
  const e = t.getAttribute("popover-trigger");
1427
1468
  if (!e) return;
@@ -1434,8 +1475,8 @@ document.addEventListener("click", (m) => {
1434
1475
  } catch {
1435
1476
  }
1436
1477
  });
1437
- for (const m of ["pointermove", "pointerdown", "pointerup", "mouseover", "mouseenter", "mouseleave"])
1438
- document.addEventListener(m, (t) => {
1478
+ for (const f of ["pointermove", "pointerdown", "pointerup", "mouseover", "mouseenter", "mouseleave"])
1479
+ document.addEventListener(f, (t) => {
1439
1480
  t.target?.closest?.("[popover], dialog") && t.stopPropagation();
1440
1481
  }, !0);
1441
1482
  //# sourceMappingURL=register.js.map