@pstdio/ui 0.26.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (620) hide show
  1. package/dist/EquationComponent-DDd5UoIP.js +65 -0
  2. package/dist/EquationComponent-DDd5UoIP.js.map +1 -0
  3. package/dist/MermaidComponent-Cxg7NtjX.js +90 -0
  4. package/dist/MermaidComponent-Cxg7NtjX.js.map +1 -0
  5. package/dist/browser-storage-C_ipoNwP.js +37 -0
  6. package/dist/browser-storage-C_ipoNwP.js.map +1 -0
  7. package/dist/chat-ui.d.ts +688 -2
  8. package/dist/chat-ui.js +3271 -2848
  9. package/dist/chat-ui.js.map +1 -1
  10. package/dist/data-table-stats-row-UuTinYfL.js +415 -0
  11. package/dist/data-table-stats-row-UuTinYfL.js.map +1 -0
  12. package/dist/data-table.d.ts +174 -2
  13. package/dist/data-table.js +1349 -1187
  14. package/dist/data-table.js.map +1 -1
  15. package/dist/diff-bubble-DZsarmSG.js +61 -0
  16. package/dist/diff-bubble-DZsarmSG.js.map +1 -0
  17. package/dist/diff-drawer-45rpk3aq.js +776 -0
  18. package/dist/diff-drawer-45rpk3aq.js.map +1 -0
  19. package/dist/diff-editor-CGpeyoCE.js +124 -0
  20. package/dist/diff-editor-CGpeyoCE.js.map +1 -0
  21. package/dist/diff-size-Dydn_Uw5.js +61 -0
  22. package/dist/diff-size-Dydn_Uw5.js.map +1 -0
  23. package/dist/diff-viewer-hGkaF_zW.js +558 -0
  24. package/dist/diff-viewer-hGkaF_zW.js.map +1 -0
  25. package/dist/diff.d.ts +128 -2
  26. package/dist/diff.js +163 -1302
  27. package/dist/diff.js.map +1 -1
  28. package/dist/empty-state-3mVV_pV-.js +38 -0
  29. package/dist/empty-state-3mVV_pV-.js.map +1 -0
  30. package/dist/file-change-badge-0QFNv82B.js +64 -0
  31. package/dist/file-change-badge-0QFNv82B.js.map +1 -0
  32. package/dist/index-BfFLdci8.d.ts +189 -0
  33. package/dist/index-Dd6e8lU_.d.ts +61 -0
  34. package/dist/index-DlmvvQ6x.d.ts +143 -0
  35. package/dist/index.d.ts +1504 -40
  36. package/dist/index.js +3121 -2707
  37. package/dist/index.js.map +1 -1
  38. package/dist/kanban-renderer.d.ts +339 -2
  39. package/dist/kanban-renderer.js +1413 -1085
  40. package/dist/kanban-renderer.js.map +1 -1
  41. package/dist/list-row-De9R2zKU.js +1008 -0
  42. package/dist/list-row-De9R2zKU.js.map +1 -0
  43. package/dist/mermaid-renderer-DImi0fDp.js +553 -0
  44. package/dist/mermaid-renderer-DImi0fDp.js.map +1 -0
  45. package/dist/mermaid.d.ts +12 -2
  46. package/dist/mermaid.js +2 -5
  47. package/dist/monaco-browser-CLRPSE4-.js +14 -0
  48. package/dist/monaco-browser-CLRPSE4-.js.map +1 -0
  49. package/dist/param-editor-I0dKQeeZ.js +225 -0
  50. package/dist/param-editor-I0dKQeeZ.js.map +1 -0
  51. package/dist/param-editor-field-CBguLs_b.js +2368 -0
  52. package/dist/param-editor-field-CBguLs_b.js.map +1 -0
  53. package/dist/param-editor.d.ts +407 -2
  54. package/dist/param-editor.js +3 -47
  55. package/dist/prism-pSHJejZx.js +646 -0
  56. package/dist/prism-pSHJejZx.js.map +1 -0
  57. package/dist/radio-CiFrDN6O.js +54 -0
  58. package/dist/radio-CiFrDN6O.js.map +1 -0
  59. package/dist/resource-badge-95WPVlZf.d.ts +76 -0
  60. package/dist/rich-text-BgDvOEGH.js +7021 -0
  61. package/dist/rich-text-BgDvOEGH.js.map +1 -0
  62. package/dist/rich-text.d.ts +3 -2
  63. package/dist/rich-text.js +2 -429
  64. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  65. package/dist/scroll-area-Cr1lNXAr.js +100 -0
  66. package/dist/scroll-area-Cr1lNXAr.js.map +1 -0
  67. package/dist/slider-hwHYe98I.js +423 -0
  68. package/dist/slider-hwHYe98I.js.map +1 -0
  69. package/dist/style.css +2 -1
  70. package/dist/terminal.d.ts +203 -2
  71. package/dist/terminal.js +324 -360
  72. package/dist/terminal.js.map +1 -1
  73. package/dist/theme-0cbWICbg.js +2936 -0
  74. package/dist/theme-0cbWICbg.js.map +1 -0
  75. package/dist/theme-preference-pzfuK5cH.js +101 -0
  76. package/dist/theme-preference-pzfuK5cH.js.map +1 -0
  77. package/dist/theme.d.ts +3 -2
  78. package/dist/theme.js +2 -15
  79. package/dist/tree-list-BUfDQz3v.js +1449 -0
  80. package/dist/tree-list-BUfDQz3v.js.map +1 -0
  81. package/dist/types-yjKBk07w.d.ts +161 -0
  82. package/dist/workspace-badge-Brm3Xr3m.d.ts +75 -0
  83. package/dist/workspace-badge-DrvH8WKV.js +241 -0
  84. package/dist/workspace-badge-DrvH8WKV.js.map +1 -0
  85. package/dist-monaco/assets/codicon-ngg6Pgfi.ttf +0 -0
  86. package/dist-monaco/assets/css.worker-DFdt6_zu.js +89 -0
  87. package/dist-monaco/assets/editor.worker-O-CH8JUO.js +26 -0
  88. package/dist-monaco/assets/html.worker-JUzsMP-j.js +502 -0
  89. package/dist-monaco/assets/json.worker-B4dEhy0e.js +58 -0
  90. package/dist-monaco/assets/ts.worker-CmEKzkmF.js +67734 -0
  91. package/dist-monaco/monaco.css +1 -0
  92. package/dist-monaco/monaco.js +1201 -0
  93. package/package.json +26 -13
  94. package/dist/EquationComponent-DeDYHvqY.js +0 -62
  95. package/dist/EquationComponent-DeDYHvqY.js.map +0 -1
  96. package/dist/MermaidComponent-X__B6qib.js +0 -60
  97. package/dist/MermaidComponent-X__B6qib.js.map +0 -1
  98. package/dist/activity-timeline-BynMjXSB.js +0 -283
  99. package/dist/activity-timeline-BynMjXSB.js.map +0 -1
  100. package/dist/alert-ubcrW24X.js +0 -33
  101. package/dist/alert-ubcrW24X.js.map +0 -1
  102. package/dist/browser-storage-BinyFNJX.js +0 -40
  103. package/dist/browser-storage-BinyFNJX.js.map +0 -1
  104. package/dist/components/activity/activity-avatar.d.ts +0 -9
  105. package/dist/components/activity/activity-comment.d.ts +0 -27
  106. package/dist/components/activity/activity-composer.d.ts +0 -18
  107. package/dist/components/activity/activity-event.d.ts +0 -12
  108. package/dist/components/activity/activity-root.d.ts +0 -15
  109. package/dist/components/activity/activity-timeline.d.ts +0 -6
  110. package/dist/components/activity/activity.types.d.ts +0 -5
  111. package/dist/components/activity/index.d.ts +0 -25
  112. package/dist/components/chat-ui/components/ai-conversation.d.ts +0 -603
  113. package/dist/components/chat-ui/components/ai-message.d.ts +0 -91
  114. package/dist/components/chat-ui/components/ai-response.d.ts +0 -5
  115. package/dist/components/chat-ui/components/approval-prompt.d.ts +0 -8
  116. package/dist/components/chat-ui/components/attachment-list.d.ts +0 -23
  117. package/dist/components/chat-ui/components/auto-scroll.d.ts +0 -37
  118. package/dist/components/chat-ui/components/chat-history-story.d.ts +0 -14
  119. package/dist/components/chat-ui/components/chat-input-actions.d.ts +0 -13
  120. package/dist/components/chat-ui/components/chat-input-attachments.d.ts +0 -12
  121. package/dist/components/chat-ui/components/chat-input-history.d.ts +0 -6
  122. package/dist/components/chat-ui/components/chat-input-question-prompt.d.ts +0 -36
  123. package/dist/components/chat-ui/components/chat-input.d.ts +0 -33
  124. package/dist/components/chat-ui/components/chat-message-animation.d.ts +0 -22
  125. package/dist/components/chat-ui/components/chat-message-list-items.d.ts +0 -17
  126. package/dist/components/chat-ui/components/chat-message-list.d.ts +0 -12
  127. package/dist/components/chat-ui/components/chat-panel-composer.d.ts +0 -49
  128. package/dist/components/chat-ui/components/chat-panel-sticky-user-message.d.ts +0 -13
  129. package/dist/components/chat-ui/components/chat-panel.d.ts +0 -45
  130. package/dist/components/chat-ui/components/chat-skeleton.d.ts +0 -1
  131. package/dist/components/chat-ui/components/composer-constants.d.ts +0 -1
  132. package/dist/components/chat-ui/components/conversation-browse.d.ts +0 -22
  133. package/dist/components/chat-ui/components/message-action-panel.d.ts +0 -10
  134. package/dist/components/chat-ui/components/message-parts-renderer.d.ts +0 -13
  135. package/dist/components/chat-ui/components/message-types.d.ts +0 -116
  136. package/dist/components/chat-ui/components/model-swap-separator.d.ts +0 -5
  137. package/dist/components/chat-ui/components/queued-follow-up-list-state.d.ts +0 -4
  138. package/dist/components/chat-ui/components/queued-follow-up-list.d.ts +0 -11
  139. package/dist/components/chat-ui/components/send-button.d.ts +0 -7
  140. package/dist/components/chat-ui/components/timeline-title.d.ts +0 -6
  141. package/dist/components/chat-ui/components/timeline-tool-blocks.d.ts +0 -14
  142. package/dist/components/chat-ui/components/timeline.d.ts +0 -113
  143. package/dist/components/chat-ui/components/tool-invocation-timeline.d.ts +0 -8
  144. package/dist/components/chat-ui/components/use-chat-input-history.d.ts +0 -16
  145. package/dist/components/chat-ui/components/working-indicator.d.ts +0 -9
  146. package/dist/components/chat-ui/components/workspace-hub.d.ts +0 -19
  147. package/dist/components/chat-ui/index.d.ts +0 -19
  148. package/dist/components/chat-ui/mocks/library/index.d.ts +0 -10
  149. package/dist/components/chat-ui/performance/chat-mount-metrics.d.ts +0 -37
  150. package/dist/components/chat-ui/performance/chat-panel.perf.d.ts +0 -18
  151. package/dist/components/chat-ui/performance/chat-performance-fixtures.d.ts +0 -28
  152. package/dist/components/chat-ui/performance/chat-performance-panel.d.ts +0 -23
  153. package/dist/components/chat-ui/performance/chat-performance-story-utils.d.ts +0 -30
  154. package/dist/components/chat-ui/tool-rendering/apply-patch-renderer.d.ts +0 -2
  155. package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +0 -13
  156. package/dist/components/chat-ui/tool-rendering/default-renderers.d.ts +0 -13
  157. package/dist/components/chat-ui/tool-rendering/edit-renderer.d.ts +0 -2
  158. package/dist/components/chat-ui/tool-rendering/index.d.ts +0 -3
  159. package/dist/components/chat-ui/tool-rendering/question-prompt.d.ts +0 -9
  160. package/dist/components/chat-ui/tool-rendering/question-renderer.d.ts +0 -10
  161. package/dist/components/chat-ui/tool-rendering/shared.d.ts +0 -53
  162. package/dist/components/chat-ui/tool-rendering/standard-renderers.d.ts +0 -7
  163. package/dist/components/chat-ui/tool-rendering/todowrite-renderer.d.ts +0 -10
  164. package/dist/components/chat-ui/tool-rendering/types.d.ts +0 -12
  165. package/dist/components/chat-ui/utils/diff.d.ts +0 -21
  166. package/dist/components/chat-ui/utils/editor-state.d.ts +0 -1
  167. package/dist/components/chat-ui/utils/get-icon.d.ts +0 -36
  168. package/dist/components/chat-ui/utils/tool-name.d.ts +0 -2
  169. package/dist/components/command-palette/index.d.ts +0 -4
  170. package/dist/components/command-palette/palette-filter.d.ts +0 -23
  171. package/dist/components/command-palette/palette-list.d.ts +0 -11
  172. package/dist/components/command-palette/palette-shortcut.d.ts +0 -12
  173. package/dist/components/command-palette/palette.d.ts +0 -48
  174. package/dist/components/data-table/build-columns.d.ts +0 -16
  175. package/dist/components/data-table/categorical-color-cell.d.ts +0 -8
  176. package/dist/components/data-table/color-cell-style.d.ts +0 -13
  177. package/dist/components/data-table/color-scale-cell.d.ts +0 -7
  178. package/dist/components/data-table/data-table-column-menu.d.ts +0 -17
  179. package/dist/components/data-table/data-table-header.d.ts +0 -12
  180. package/dist/components/data-table/data-table-row-display.d.ts +0 -11
  181. package/dist/components/data-table/data-table-skeleton.d.ts +0 -13
  182. package/dist/components/data-table/data-table-stat-chart.d.ts +0 -21
  183. package/dist/components/data-table/data-table-state.d.ts +0 -27
  184. package/dist/components/data-table/data-table-stats-row.d.ts +0 -11
  185. package/dist/components/data-table/data-table-stats.d.ts +0 -19
  186. package/dist/components/data-table/data-table-table-parts.d.ts +0 -22
  187. package/dist/components/data-table/data-table.d.ts +0 -2
  188. package/dist/components/data-table/data-table.story-descriptions.d.ts +0 -6
  189. package/dist/components/data-table/data-table.story-fixtures.d.ts +0 -6
  190. package/dist/components/data-table/edit-mode-data-table-body.d.ts +0 -30
  191. package/dist/components/data-table/edit-mode-data-table-cell.d.ts +0 -16
  192. package/dist/components/data-table/edit-mode-data-table-editors.d.ts +0 -19
  193. package/dist/components/data-table/edit-mode-data-table-header.d.ts +0 -24
  194. package/dist/components/data-table/edit-mode-data-table-selection.d.ts +0 -12
  195. package/dist/components/data-table/edit-mode-data-table.d.ts +0 -2
  196. package/dist/components/data-table/edit-mode-story.d.ts +0 -5
  197. package/dist/components/data-table/friendly-json-display.d.ts +0 -31
  198. package/dist/components/data-table/helpers.d.ts +0 -10
  199. package/dist/components/data-table/index.d.ts +0 -7
  200. package/dist/components/data-table/json-cell.d.ts +0 -6
  201. package/dist/components/data-table/pagination-footer.d.ts +0 -11
  202. package/dist/components/data-table/selection-toolbar.d.ts +0 -11
  203. package/dist/components/data-table/types.d.ts +0 -117
  204. package/dist/components/diff-viewer/build-changed-files-tree.d.ts +0 -4
  205. package/dist/components/diff-viewer/code-editor.d.ts +0 -45
  206. package/dist/components/diff-viewer/diff-bubble.d.ts +0 -14
  207. package/dist/components/diff-viewer/diff-card-body.d.ts +0 -60
  208. package/dist/components/diff-viewer/diff-card-content.d.ts +0 -23
  209. package/dist/components/diff-viewer/diff-card-load-state.d.ts +0 -9
  210. package/dist/components/diff-viewer/diff-card.d.ts +0 -46
  211. package/dist/components/diff-viewer/diff-drawer-empty-state.d.ts +0 -1
  212. package/dist/components/diff-viewer/diff-drawer-height.d.ts +0 -10
  213. package/dist/components/diff-viewer/diff-drawer-scroll.d.ts +0 -28
  214. package/dist/components/diff-viewer/diff-drawer.d.ts +0 -29
  215. package/dist/components/diff-viewer/diff-editor.d.ts +0 -20
  216. package/dist/components/diff-viewer/diff-size.d.ts +0 -16
  217. package/dist/components/diff-viewer/diff-view-adapter.d.ts +0 -27
  218. package/dist/components/diff-viewer/diff-viewer-options-menu.d.ts +0 -16
  219. package/dist/components/diff-viewer/diff-viewer.d.ts +0 -14
  220. package/dist/components/diff-viewer/diff-viewer.store.d.ts +0 -21
  221. package/dist/components/diff-viewer/file-change-badge.d.ts +0 -3
  222. package/dist/components/diff-viewer/file-list-panel.d.ts +0 -18
  223. package/dist/components/diff-viewer/index.d.ts +0 -9
  224. package/dist/components/diff-viewer/monaco-browser.d.ts +0 -1
  225. package/dist/components/diff-viewer/types.d.ts +0 -13
  226. package/dist/components/diff-viewer/use-selected-diff-scroll.d.ts +0 -23
  227. package/dist/components/file-browser/column-file-browser.d.ts +0 -20
  228. package/dist/components/internal/performance-panel.d.ts +0 -40
  229. package/dist/components/internal/style-guide.d.ts +0 -14
  230. package/dist/components/internal/token-editor-controls.d.ts +0 -8
  231. package/dist/components/internal/token-editor-data.d.ts +0 -40
  232. package/dist/components/internal/token-editor-state.d.ts +0 -22
  233. package/dist/components/kanban-renderer/collection-badge.d.ts +0 -7
  234. package/dist/components/kanban-renderer/display-menu.d.ts +0 -16
  235. package/dist/components/kanban-renderer/filter-menu.d.ts +0 -12
  236. package/dist/components/kanban-renderer/index.d.ts +0 -19
  237. package/dist/components/kanban-renderer/kanban-renderer-attribute-badge.d.ts +0 -7
  238. package/dist/components/kanban-renderer/kanban-renderer-badge-helpers.d.ts +0 -46
  239. package/dist/components/kanban-renderer/kanban-renderer-board-column-header.d.ts +0 -8
  240. package/dist/components/kanban-renderer/kanban-renderer-board-group-section.d.ts +0 -17
  241. package/dist/components/kanban-renderer/kanban-renderer-board-move.d.ts +0 -21
  242. package/dist/components/kanban-renderer/kanban-renderer-board.d.ts +0 -49
  243. package/dist/components/kanban-renderer/kanban-renderer-card.d.ts +0 -17
  244. package/dist/components/kanban-renderer/kanban-renderer-content.d.ts +0 -27
  245. package/dist/components/kanban-renderer/kanban-renderer-create-dialog.d.ts +0 -12
  246. package/dist/components/kanban-renderer/kanban-renderer-create-field.d.ts +0 -10
  247. package/dist/components/kanban-renderer/kanban-renderer-enum-helpers.d.ts +0 -10
  248. package/dist/components/kanban-renderer/kanban-renderer-grouping.d.ts +0 -23
  249. package/dist/components/kanban-renderer/kanban-renderer-helpers.d.ts +0 -58
  250. package/dist/components/kanban-renderer/kanban-renderer-list-items.d.ts +0 -25
  251. package/dist/components/kanban-renderer/kanban-renderer-list.d.ts +0 -43
  252. package/dist/components/kanban-renderer/kanban-renderer-story-fixtures.d.ts +0 -14
  253. package/dist/components/kanban-renderer/kanban-renderer-toolbar.d.ts +0 -15
  254. package/dist/components/kanban-renderer/kanban-renderer-view-bar.d.ts +0 -14
  255. package/dist/components/kanban-renderer/kanban-renderer-views.d.ts +0 -12
  256. package/dist/components/kanban-renderer/kanban-renderer.d.ts +0 -43
  257. package/dist/components/kanban-renderer/types.d.ts +0 -159
  258. package/dist/components/kanban-renderer/use-kanban-renderer-store.d.ts +0 -78
  259. package/dist/components/kanban-renderer/use-resolved-attributes.d.ts +0 -14
  260. package/dist/components/layout/header.d.ts +0 -7
  261. package/dist/components/layout/horizontal-menu-stack.d.ts +0 -6
  262. package/dist/components/layout/index.d.ts +0 -8
  263. package/dist/components/layout/item-section.d.ts +0 -11
  264. package/dist/components/layout/panel-header.constants.d.ts +0 -3
  265. package/dist/components/layout/resizable-split-layout.d.ts +0 -22
  266. package/dist/components/layout/resizable-split-layout.geometry.d.ts +0 -56
  267. package/dist/components/layout/resizable-split-layout.handle.d.ts +0 -25
  268. package/dist/components/layout/resizable-split-layout.panels.d.ts +0 -29
  269. package/dist/components/layout/resizable-split-layout.root-size.d.ts +0 -3
  270. package/dist/components/list-row/list-row-actions.d.ts +0 -11
  271. package/dist/components/list-row/list-row-chrome.d.ts +0 -11
  272. package/dist/components/list-row/list-row-content.d.ts +0 -17
  273. package/dist/components/list-row/list-row-menu.d.ts +0 -12
  274. package/dist/components/list-row/list-row-root-props.d.ts +0 -34
  275. package/dist/components/list-row/list-row.d.ts +0 -2
  276. package/dist/components/list-row/list-row.types.d.ts +0 -109
  277. package/dist/components/list-row/searchable-action-menu.d.ts +0 -6
  278. package/dist/components/mermaid-renderer/download-png.d.ts +0 -7
  279. package/dist/components/mermaid-renderer/index.d.ts +0 -2
  280. package/dist/components/mermaid-renderer/mermaid-error-state.d.ts +0 -6
  281. package/dist/components/mermaid-renderer/mermaid-fixtures.d.ts +0 -9
  282. package/dist/components/mermaid-renderer/mermaid-fullscreen.d.ts +0 -10
  283. package/dist/components/mermaid-renderer/mermaid-renderer.d.ts +0 -8
  284. package/dist/components/mermaid-renderer/mermaid-svg-view.d.ts +0 -12
  285. package/dist/components/mermaid-renderer/mermaid-toolbar.d.ts +0 -12
  286. package/dist/components/mermaid-renderer/mermaid-zoom.d.ts +0 -6
  287. package/dist/components/mermaid-renderer/svg-data-url.d.ts +0 -6
  288. package/dist/components/mermaid-renderer/use-mermaid-render.d.ts +0 -5
  289. package/dist/components/notification-center/index.d.ts +0 -2
  290. package/dist/components/notification-center/notification-center.d.ts +0 -2
  291. package/dist/components/notification-center/notification-center.types.d.ts +0 -37
  292. package/dist/components/overlays/attached-menu.d.ts +0 -6
  293. package/dist/components/overlays/attached-panel.d.ts +0 -9
  294. package/dist/components/overlays/attachment-chip.d.ts +0 -13
  295. package/dist/components/overlays/bubble-button.d.ts +0 -10
  296. package/dist/components/overlays/bubble-panel.d.ts +0 -18
  297. package/dist/components/overlays/delete-confirmation-modal.d.ts +0 -13
  298. package/dist/components/overlays/dialog-accept-shortcut.d.ts +0 -12
  299. package/dist/components/overlays/index.d.ts +0 -17
  300. package/dist/components/overlays/repo-picker-dialog.d.ts +0 -25
  301. package/dist/components/overlays/resource-context-menu.d.ts +0 -35
  302. package/dist/components/overlays/search-modal-content.d.ts +0 -20
  303. package/dist/components/overlays/searchable-menu-input.d.ts +0 -9
  304. package/dist/components/overlays/searchable-menu.d.ts +0 -65
  305. package/dist/components/param-editor/index.d.ts +0 -31
  306. package/dist/components/param-editor/inputs/action-input.d.ts +0 -14
  307. package/dist/components/param-editor/inputs/anchor-grid-input.d.ts +0 -12
  308. package/dist/components/param-editor/inputs/anchor-grid.d.ts +0 -4
  309. package/dist/components/param-editor/inputs/boolean-input.d.ts +0 -13
  310. package/dist/components/param-editor/inputs/color-input.d.ts +0 -14
  311. package/dist/components/param-editor/inputs/date-input.d.ts +0 -16
  312. package/dist/components/param-editor/inputs/file-upload-input.d.ts +0 -15
  313. package/dist/components/param-editor/inputs/file-upload-value.d.ts +0 -7
  314. package/dist/components/param-editor/inputs/horizontal-text-input.d.ts +0 -13
  315. package/dist/components/param-editor/inputs/markdown-input.d.ts +0 -13
  316. package/dist/components/param-editor/inputs/number-input.d.ts +0 -18
  317. package/dist/components/param-editor/inputs/numeric-value.d.ts +0 -6
  318. package/dist/components/param-editor/inputs/range-input.d.ts +0 -18
  319. package/dist/components/param-editor/inputs/range-value.d.ts +0 -5
  320. package/dist/components/param-editor/inputs/resource-input-chips.d.ts +0 -15
  321. package/dist/components/param-editor/inputs/resource-input.d.ts +0 -20
  322. package/dist/components/param-editor/inputs/segmented-input.d.ts +0 -15
  323. package/dist/components/param-editor/inputs/selection-input.d.ts +0 -27
  324. package/dist/components/param-editor/inputs/selection-menu.d.ts +0 -39
  325. package/dist/components/param-editor/inputs/slider-marks.d.ts +0 -5
  326. package/dist/components/param-editor/inputs/text-input.d.ts +0 -14
  327. package/dist/components/param-editor/inputs/vector-input.d.ts +0 -17
  328. package/dist/components/param-editor/inputs/vector-value.d.ts +0 -7
  329. package/dist/components/param-editor/param-editor-advanced-field.d.ts +0 -14
  330. package/dist/components/param-editor/param-editor-control-fixtures.d.ts +0 -24
  331. package/dist/components/param-editor/param-editor-control-item.d.ts +0 -15
  332. package/dist/components/param-editor/param-editor-control-list.d.ts +0 -5
  333. package/dist/components/param-editor/param-editor-field-label.d.ts +0 -1
  334. package/dist/components/param-editor/param-editor-field.d.ts +0 -13
  335. package/dist/components/param-editor/param-editor-horizontal.d.ts +0 -11
  336. package/dist/components/param-editor/param-editor-inline-group.d.ts +0 -5
  337. package/dist/components/param-editor/param-editor-label.d.ts +0 -7
  338. package/dist/components/param-editor/param-editor-presentation.d.ts +0 -3
  339. package/dist/components/param-editor/param-editor-read-only-field.d.ts +0 -9
  340. package/dist/components/param-editor/param-editor-read-only-value.d.ts +0 -8
  341. package/dist/components/param-editor/param-editor-row.d.ts +0 -17
  342. package/dist/components/param-editor/param-editor-section.d.ts +0 -17
  343. package/dist/components/param-editor/param-editor.d.ts +0 -12
  344. package/dist/components/param-editor/param-editor.types.d.ts +0 -31
  345. package/dist/components/param-editor/resolve-param-value.d.ts +0 -2
  346. package/dist/components/primitives/alert.d.ts +0 -9
  347. package/dist/components/primitives/breadcrumb.d.ts +0 -20
  348. package/dist/components/primitives/checkbox.d.ts +0 -8
  349. package/dist/components/primitives/chip.d.ts +0 -4
  350. package/dist/components/primitives/content-placeholder.d.ts +0 -6
  351. package/dist/components/primitives/empty-state.d.ts +0 -12
  352. package/dist/components/primitives/error-boundary.d.ts +0 -26
  353. package/dist/components/primitives/glyph-icon.d.ts +0 -16
  354. package/dist/components/primitives/icon-color-picker.d.ts +0 -15
  355. package/dist/components/primitives/icon-options.d.ts +0 -301
  356. package/dist/components/primitives/index.d.ts +0 -39
  357. package/dist/components/primitives/info-card.d.ts +0 -12
  358. package/dist/components/primitives/integration-card.d.ts +0 -12
  359. package/dist/components/primitives/number-input.d.ts +0 -6
  360. package/dist/components/primitives/radio.d.ts +0 -8
  361. package/dist/components/primitives/resource-badge.d.ts +0 -64
  362. package/dist/components/primitives/scroll-area.d.ts +0 -17
  363. package/dist/components/primitives/segmented-control.d.ts +0 -20
  364. package/dist/components/primitives/session-indicator.d.ts +0 -15
  365. package/dist/components/primitives/simple-card.d.ts +0 -5
  366. package/dist/components/primitives/slider.d.ts +0 -5
  367. package/dist/components/primitives/switch.d.ts +0 -15
  368. package/dist/components/primitives/tag-swatch.d.ts +0 -10
  369. package/dist/components/primitives/toaster.d.ts +0 -3
  370. package/dist/components/primitives/tooltip.d.ts +0 -11
  371. package/dist/components/primitives/workspace-badge.d.ts +0 -23
  372. package/dist/components/rich-text/collaborative-markdown-editor/awareness-cursors.d.ts +0 -5
  373. package/dist/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.d.ts +0 -9
  374. package/dist/components/rich-text/index.d.ts +0 -19
  375. package/dist/components/rich-text/lazy-markdown-editor.d.ts +0 -2
  376. package/dist/components/rich-text/markdown-editor/markdown-editor-scrolling.play.d.ts +0 -4
  377. package/dist/components/rich-text/markdown-editor/markdown-editor.d.ts +0 -17
  378. package/dist/components/rich-text/markdown-editor/markdown-table.story-fixture.d.ts +0 -3
  379. package/dist/components/rich-text/markdown-editor/plugins/MarkdownSectionNavigationPlugin.d.ts +0 -8
  380. package/dist/components/rich-text/markdown-editor/plugins/MarkdownSlashCommandPlugin.d.ts +0 -1
  381. package/dist/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +0 -21
  382. package/dist/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +0 -2
  383. package/dist/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/index.d.ts +0 -2
  384. package/dist/components/rich-text/markdown-editor/plugins/markdown-history-plugin.d.ts +0 -1
  385. package/dist/components/rich-text/markdown-editor/plugins/markdown-section-navigation.d.ts +0 -20
  386. package/dist/components/rich-text/prompt-input/commands.d.ts +0 -2
  387. package/dist/components/rich-text/prompt-input/events.d.ts +0 -2
  388. package/dist/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.d.ts +0 -1
  389. package/dist/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.d.ts +0 -3
  390. package/dist/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.d.ts +0 -1
  391. package/dist/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.d.ts +0 -16
  392. package/dist/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.d.ts +0 -7
  393. package/dist/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.d.ts +0 -6
  394. package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuOption.d.ts +0 -12
  395. package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuPlugin.d.ts +0 -11
  396. package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenu.d.ts +0 -9
  397. package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenuItem.d.ts +0 -12
  398. package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/constants.d.ts +0 -2
  399. package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/hooks/useContextLookup.d.ts +0 -14
  400. package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/checkForTriggers.d.ts +0 -9
  401. package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/getSortedMenuOptions.d.ts +0 -2
  402. package/dist/components/rich-text/prompt-input/plugins/ReferencePlugin/ReferencePlugin.d.ts +0 -7
  403. package/dist/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.d.ts +0 -25
  404. package/dist/components/rich-text/prompt-input/plugins/keyboard-shortcuts.d.ts +0 -11
  405. package/dist/components/rich-text/prompt-input/prompt-input.d.ts +0 -27
  406. package/dist/components/rich-text/prompt-input/theme/prompt-input-theme.d.ts +0 -3
  407. package/dist/components/rich-text/prompt-input/utils.d.ts +0 -22
  408. package/dist/components/rich-text/resource-activity-feed/resource-activity-feed.d.ts +0 -58
  409. package/dist/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +0 -21
  410. package/dist/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +0 -2
  411. package/dist/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/index.d.ts +0 -2
  412. package/dist/components/rich-text/rich-message/rich-message.d.ts +0 -10
  413. package/dist/components/rich-text/shared/components/content-editable.d.ts +0 -9
  414. package/dist/components/rich-text/shared/components/default-rich-text-components.d.ts +0 -3
  415. package/dist/components/rich-text/shared/editor-config.d.ts +0 -5
  416. package/dist/components/rich-text/shared/lexical-code.d.ts +0 -2
  417. package/dist/components/rich-text/shared/markdown-ast.d.ts +0 -7
  418. package/dist/components/rich-text/shared/markdown-codec.d.ts +0 -3
  419. package/dist/components/rich-text/shared/markdown-export.d.ts +0 -2
  420. package/dist/components/rich-text/shared/markdown-import.d.ts +0 -2
  421. package/dist/components/rich-text/shared/markdown-inline.d.ts +0 -5
  422. package/dist/components/rich-text/shared/markdown-source-document.d.ts +0 -7
  423. package/dist/components/rich-text/shared/markdown-source-links.d.ts +0 -11
  424. package/dist/components/rich-text/shared/markdown-source-map.d.ts +0 -10
  425. package/dist/components/rich-text/shared/markdown-table.d.ts +0 -41
  426. package/dist/components/rich-text/shared/markdown-url-context.d.ts +0 -9
  427. package/dist/components/rich-text/shared/markdown-url.d.ts +0 -3
  428. package/dist/components/rich-text/shared/nodes/DataTableNode.d.ts +0 -24
  429. package/dist/components/rich-text/shared/nodes/MarkdownImageNode.d.ts +0 -35
  430. package/dist/components/rich-text/shared/nodes/MarkdownLinkNode.d.ts +0 -18
  431. package/dist/components/rich-text/shared/nodes/RawHtmlNode.d.ts +0 -31
  432. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockActionsPlugin.d.ts +0 -4
  433. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.d.ts +0 -3
  434. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeHighlightingPlugin.d.ts +0 -1
  435. package/dist/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.d.ts +0 -6
  436. package/dist/components/rich-text/shared/plugins/EquationPlugin/EquationNode.d.ts +0 -26
  437. package/dist/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.d.ts +0 -4
  438. package/dist/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.d.ts +0 -4
  439. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.d.ts +0 -4
  440. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/floating-toolbar-buttons.d.ts +0 -18
  441. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +0 -1
  442. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/resolve-block-type.d.ts +0 -17
  443. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/should-show-floating-toolbar.d.ts +0 -12
  444. package/dist/components/rich-text/shared/plugins/HorizontalRulePlugin/HorizontalRuleNode.d.ts +0 -13
  445. package/dist/components/rich-text/shared/plugins/HorizontalRulePlugin/horizontalRule.d.ts +0 -2
  446. package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.d.ts +0 -4
  447. package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/LinkPlugin.d.ts +0 -1
  448. package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/commands.d.ts +0 -2
  449. package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/index.d.ts +0 -3
  450. package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/link-editor-content.d.ts +0 -18
  451. package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/getSelectedNode.d.ts +0 -2
  452. package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/link-edit-state.d.ts +0 -1
  453. package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/selection-link-url.d.ts +0 -2
  454. package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.d.ts +0 -1
  455. package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/url.d.ts +0 -2
  456. package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.d.ts +0 -6
  457. package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidNode.d.ts +0 -23
  458. package/dist/components/rich-text/shared/plugins/StateUpdatePlugin.d.ts +0 -6
  459. package/dist/components/rich-text/shared/plugins/ToggleEditablePlugin.d.ts +0 -3
  460. package/dist/components/rich-text/shared/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +0 -1
  461. package/dist/components/rich-text/shared/prism-global.d.ts +0 -2
  462. package/dist/components/rich-text/shared/transformers/markdown-transformers-test-utils.d.ts +0 -3
  463. package/dist/components/rich-text/shared/transformers/markdown-transformers.d.ts +0 -16
  464. package/dist/components/rich-text/shared/types/rich-text-components.d.ts +0 -15
  465. package/dist/components/rich-text/theme/rich-text-theme.d.ts +0 -3
  466. package/dist/components/rich-text/types.d.ts +0 -8
  467. package/dist/components/rich-text/utils/inferResourceType.d.ts +0 -1
  468. package/dist/components/rich-text/utils/markdown.d.ts +0 -5
  469. package/dist/components/rich-text/utils/mediaType.d.ts +0 -1
  470. package/dist/components/sidenav/sidenav-footer.d.ts +0 -6
  471. package/dist/components/sidenav/sidenav-header.d.ts +0 -6
  472. package/dist/components/sidenav/sidenav.d.ts +0 -2
  473. package/dist/components/sidenav/sidenav.store.d.ts +0 -49
  474. package/dist/components/sidenav/sidenav.types.d.ts +0 -31
  475. package/dist/components/tab-strip/tab-visibility-filter.d.ts +0 -22
  476. package/dist/components/tab-strip/tab-visibility.store.d.ts +0 -41
  477. package/dist/components/tab-strip/window-tabs.d.ts +0 -15
  478. package/dist/components/tab-strip/window-title-bar.d.ts +0 -6
  479. package/dist/components/tag-editor/index.d.ts +0 -8
  480. package/dist/components/tag-editor/tag-editor-heading.d.ts +0 -11
  481. package/dist/components/tag-editor/tag-editor-row.d.ts +0 -20
  482. package/dist/components/tag-editor/tag-editor-save-bar.d.ts +0 -13
  483. package/dist/components/tag-editor/tag-editor.d.ts +0 -2
  484. package/dist/components/tag-editor/tag-editor.types.d.ts +0 -57
  485. package/dist/components/tag-editor/tag-settings-panel.d.ts +0 -30
  486. package/dist/components/terminal/bind-session.d.ts +0 -33
  487. package/dist/components/terminal/index.d.ts +0 -6
  488. package/dist/components/terminal/scripted-bridge.d.ts +0 -35
  489. package/dist/components/terminal/terminal-contract.d.ts +0 -22
  490. package/dist/components/terminal/terminal-theme.d.ts +0 -12
  491. package/dist/components/terminal/terminal.d.ts +0 -56
  492. package/dist/components/terminal/types.d.ts +0 -35
  493. package/dist/components/terminal/use-terminal-session.d.ts +0 -21
  494. package/dist/components/tree-list/tree-list-background.d.ts +0 -8
  495. package/dist/components/tree-list/tree-list-drag-provider.d.ts +0 -13
  496. package/dist/components/tree-list/tree-list-drag.d.ts +0 -7
  497. package/dist/components/tree-list/tree-list-inline-creation-story.d.ts +0 -3
  498. package/dist/components/tree-list/tree-list-inline-input.d.ts +0 -9
  499. package/dist/components/tree-list/tree-list-model.d.ts +0 -58
  500. package/dist/components/tree-list/tree-list-move-surface.d.ts +0 -7
  501. package/dist/components/tree-list/tree-list-node-row.d.ts +0 -21
  502. package/dist/components/tree-list/tree-list-order-filter.d.ts +0 -2
  503. package/dist/components/tree-list/tree-list-order.store.d.ts +0 -45
  504. package/dist/components/tree-list/tree-list-reorder.d.ts +0 -24
  505. package/dist/components/tree-list/tree-list-section-header.d.ts +0 -14
  506. package/dist/components/tree-list/tree-list-sortable.d.ts +0 -24
  507. package/dist/components/tree-list/tree-list-visibility-filter.d.ts +0 -24
  508. package/dist/components/tree-list/tree-list-visibility.store.d.ts +0 -45
  509. package/dist/components/tree-list/tree-list.d.ts +0 -41
  510. package/dist/components/tree-list/tree-list.types.d.ts +0 -63
  511. package/dist/components/tree-list/use-tree-list-keyboard-navigation.d.ts +0 -15
  512. package/dist/diff-bubble-DvUPRnfB.js +0 -183
  513. package/dist/diff-bubble-DvUPRnfB.js.map +0 -1
  514. package/dist/edit-mode-data-table-Nfmfi7bz.js +0 -847
  515. package/dist/edit-mode-data-table-Nfmfi7bz.js.map +0 -1
  516. package/dist/empty-state-Bo4HVrgr.js +0 -34
  517. package/dist/empty-state-Bo4HVrgr.js.map +0 -1
  518. package/dist/foundations/gallery/gallery-frame.d.ts +0 -21
  519. package/dist/foundations/gallery/sections/badges-section.d.ts +0 -1
  520. package/dist/foundations/gallery/sections/buttons-section.d.ts +0 -1
  521. package/dist/foundations/gallery/sections/composite-chat-section.d.ts +0 -1
  522. package/dist/foundations/gallery/sections/composites-section.d.ts +0 -1
  523. package/dist/foundations/gallery/sections/feedback-section.d.ts +0 -1
  524. package/dist/foundations/gallery/sections/input-authoring-card.d.ts +0 -1
  525. package/dist/foundations/gallery/sections/inputs-section.d.ts +0 -1
  526. package/dist/foundations/gallery/sections/layout-section.d.ts +0 -1
  527. package/dist/foundations/gallery/sections/navigation-identity-section.d.ts +0 -1
  528. package/dist/foundations/gallery/sections/overlays-section.d.ts +0 -1
  529. package/dist/foundations/gallery/sections/panels-section.d.ts +0 -1
  530. package/dist/foundations/gallery/sections/param-editor-composite-card.d.ts +0 -1
  531. package/dist/foundations/gallery/sections/settings-composite-cards.d.ts +0 -1
  532. package/dist/kanban-renderer-toolbar-Buek4icz.js +0 -1375
  533. package/dist/kanban-renderer-toolbar-Buek4icz.js.map +0 -1
  534. package/dist/lazy-markdown-editor-PzIBc9-l.js +0 -42
  535. package/dist/lazy-markdown-editor-PzIBc9-l.js.map +0 -1
  536. package/dist/list-row-DHzRa9-O.js +0 -815
  537. package/dist/list-row-DHzRa9-O.js.map +0 -1
  538. package/dist/markdown-BCfPxNpb.js +0 -1663
  539. package/dist/markdown-BCfPxNpb.js.map +0 -1
  540. package/dist/markdown-editor-CsJ4KNGu.js +0 -1034
  541. package/dist/markdown-editor-CsJ4KNGu.js.map +0 -1
  542. package/dist/mermaid-renderer-D0YP0FmJ.js +0 -425
  543. package/dist/mermaid-renderer-D0YP0FmJ.js.map +0 -1
  544. package/dist/mermaid.js.map +0 -1
  545. package/dist/monaco-browser-l82HnffN.js +0 -22
  546. package/dist/monaco-browser-l82HnffN.js.map +0 -1
  547. package/dist/param-editor-CFM2Nf3l.js +0 -161
  548. package/dist/param-editor-CFM2Nf3l.js.map +0 -1
  549. package/dist/param-editor-field-Bj-AGUY6.js +0 -1728
  550. package/dist/param-editor-field-Bj-AGUY6.js.map +0 -1
  551. package/dist/param-editor.js.map +0 -1
  552. package/dist/prism-n5gcERyD.js +0 -202
  553. package/dist/prism-n5gcERyD.js.map +0 -1
  554. package/dist/radio-BfjibByI.js +0 -51
  555. package/dist/radio-BfjibByI.js.map +0 -1
  556. package/dist/rich-message-q6Y6QJOq.js +0 -633
  557. package/dist/rich-message-q6Y6QJOq.js.map +0 -1
  558. package/dist/rich-text.js.map +0 -1
  559. package/dist/scroll-area-BMbg1WcD.js +0 -91
  560. package/dist/scroll-area-BMbg1WcD.js.map +0 -1
  561. package/dist/slider-DBHjdxsU.js +0 -1092
  562. package/dist/slider-DBHjdxsU.js.map +0 -1
  563. package/dist/test-utils/local-storage.d.ts +0 -1
  564. package/dist/theme/custom/index.d.ts +0 -2
  565. package/dist/theme/custom/vscode-theme.d.ts +0 -32
  566. package/dist/theme/global.d.ts +0 -62
  567. package/dist/theme/index.d.ts +0 -3
  568. package/dist/theme/primitives/colors.d.ts +0 -1081
  569. package/dist/theme/primitives/fonts.d.ts +0 -84
  570. package/dist/theme/primitives/sizes.d.ts +0 -207
  571. package/dist/theme/recipes/activity-comment.d.ts +0 -36
  572. package/dist/theme/recipes/alert.d.ts +0 -1
  573. package/dist/theme/recipes/badge.d.ts +0 -58
  574. package/dist/theme/recipes/button.d.ts +0 -188
  575. package/dist/theme/recipes/color-picker.d.ts +0 -18
  576. package/dist/theme/recipes/dialog.d.ts +0 -1
  577. package/dist/theme/recipes/divider.d.ts +0 -1
  578. package/dist/theme/recipes/drawer.d.ts +0 -1
  579. package/dist/theme/recipes/editable.d.ts +0 -46
  580. package/dist/theme/recipes/form.d.ts +0 -1
  581. package/dist/theme/recipes/input.d.ts +0 -94
  582. package/dist/theme/recipes/kbd.d.ts +0 -41
  583. package/dist/theme/recipes/menu.d.ts +0 -1
  584. package/dist/theme/recipes/number-input.d.ts +0 -98
  585. package/dist/theme/recipes/popover.d.ts +0 -16
  586. package/dist/theme/recipes/progress-circle.d.ts +0 -28
  587. package/dist/theme/recipes/resizable-split-layout.d.ts +0 -106
  588. package/dist/theme/recipes/segmented-control.d.ts +0 -22
  589. package/dist/theme/recipes/skeleton.d.ts +0 -1
  590. package/dist/theme/recipes/switch.d.ts +0 -18
  591. package/dist/theme/recipes/tabs.d.ts +0 -80
  592. package/dist/theme/recipes/textarea.d.ts +0 -62
  593. package/dist/theme/recipes/timeline.d.ts +0 -83
  594. package/dist/theme/recipes/tooltip.d.ts +0 -1
  595. package/dist/theme/recipes/window-title-bar.d.ts +0 -19
  596. package/dist/theme/shadowless-default-config.d.ts +0 -2
  597. package/dist/theme/theme.d.ts +0 -2
  598. package/dist/theme/tokens/borders.d.ts +0 -17
  599. package/dist/theme/tokens/colors-background.d.ts +0 -260
  600. package/dist/theme/tokens/colors-visualization.d.ts +0 -162
  601. package/dist/theme/tokens/colors.d.ts +0 -878
  602. package/dist/theme/tokens/layer-styles.d.ts +0 -1
  603. package/dist/theme/tokens/text.d.ts +0 -1
  604. package/dist/theme-AzJH4Om3.js +0 -3999
  605. package/dist/theme-AzJH4Om3.js.map +0 -1
  606. package/dist/theme-preference-DxGW1qg-.js +0 -114
  607. package/dist/theme-preference-DxGW1qg-.js.map +0 -1
  608. package/dist/theme.js.map +0 -1
  609. package/dist/tree-list-CPjbGTvs.js +0 -1348
  610. package/dist/tree-list-CPjbGTvs.js.map +0 -1
  611. package/dist/utils/apply-file-icon-theme-preference.d.ts +0 -35
  612. package/dist/utils/apply-theme-preference.d.ts +0 -22
  613. package/dist/utils/browser-storage.d.ts +0 -7
  614. package/dist/utils/file-icon-theme-preference.d.ts +0 -15
  615. package/dist/utils/get-file-type-icon.d.ts +0 -2
  616. package/dist/utils/prism.d.ts +0 -1
  617. package/dist/utils/resolve-file-icon-element.d.ts +0 -8
  618. package/dist/utils/theme-preference.d.ts +0 -20
  619. package/dist/workspace-badge-CuOcmnZc.js +0 -175
  620. package/dist/workspace-badge-CuOcmnZc.js.map +0 -1
@@ -1,1106 +1,1434 @@
1
- import { N as Z, M as Ie, g as Ue, o as ge, r as Ye, c as Ke, a as Me, b as Le, d as _e, e as Je, u as pe, f as Qe, h as Ze, i as et, K as tt } from "./kanban-renderer-toolbar-Buek4icz.js";
2
- import { D as On, F as $n, j as Bn, k as zn, l as Kn, m as Mn, n as Ln, p as _n, q as Vn, s as Wn, t as Hn, v as jn, w as Fn, x as Nn, y as Xn, z as qn } from "./kanban-renderer-toolbar-Buek4icz.js";
3
- import { jsx as d, jsxs as B, Fragment as nt } from "react/jsx-runtime";
4
- import { c as M } from "react/compiler-runtime";
5
- import { Text as _, Badge as fe, IconButton as Ee, Icon as N, Menu as F, Spacer as rt, HStack as X, Portal as ot, Wrap as we, Stack as q, Box as re, VStack as lt, Textarea as at, Button as me, Input as it, Dialog as ne, CloseButton as st } from "@chakra-ui/react";
6
- import { useState as W, useRef as Ve, useEffect as Se } from "react";
7
- import { E as dt } from "./empty-state-Bo4HVrgr.js";
8
- import { L as ke, R as We } from "./list-row-DHzRa9-O.js";
9
- import { T as ct, S as Pe } from "./scroll-area-BMbg1WcD.js";
10
- import { Plus as ut, MoreHorizontal as pt, SquareCheck as gt, Square as ft, Check as mt, ChevronDown as bt, ChevronRight as ht, Paperclip as yt } from "lucide-react";
11
- import { g as be, A as vt } from "./slider-DBHjdxsU.js";
12
- import { W as xt, h as Ct } from "./workspace-badge-CuOcmnZc.js";
13
- import { l as He, k as he, c as St, i as Dt } from "./param-editor-field-Bj-AGUY6.js";
14
- import { L as It } from "./lazy-markdown-editor-PzIBc9-l.js";
15
- const wt = async (r) => {
16
- const {
17
- settings: e,
18
- rowId: t,
19
- targetColumnId: n,
20
- targetGroupKey: a,
21
- beforeItemId: i,
22
- onAttributeChange: s,
23
- onReorder: p
24
- } = r;
25
- e.columnGrouping !== Z && s && await s(t, e.columnGrouping, n), e.rowGrouping !== Z && a && s && await s(t, e.rowGrouping, a), e.ordering.attributeId === Ie && await p?.(t, i);
26
- }, kt = async (r) => {
27
- const {
28
- settings: e,
29
- rowId: t,
30
- targetGroupKey: n,
31
- beforeItemId: a,
32
- onAttributeChange: i,
33
- onReorder: s
34
- } = r;
35
- e.rowGrouping === Z || !i || (await i(t, e.rowGrouping, n), e.ordering.attributeId === Ie && await s?.(t, a));
36
- }, Gt = (r) => {
37
- const e = M(26), {
38
- column: t,
39
- onCreateStart: n,
40
- onColumnAction: a
41
- } = r, i = t.color ?? "gray";
42
- let s;
43
- e[0] !== t.icon ? (s = be(t.icon), e[0] = t.icon, e[1] = s) : s = e[1];
44
- let p;
45
- e[2] !== s ? (p = /* @__PURE__ */ d(N, { "data-testid": "column-status-icon", as: s, boxSize: "0.875rem", color: "colorPalette.solid", flexShrink: 0 }), e[2] = s, e[3] = p) : p = e[3];
46
- let c;
47
- e[4] !== t.label ? (c = /* @__PURE__ */ d(_, { textStyle: "label/S/medium", children: t.label }), e[4] = t.label, e[5] = c) : c = e[5];
48
- let f;
49
- e[6] !== t.items.length ? (f = /* @__PURE__ */ d(fe, { variant: "number", size: "xs", colorPalette: "gray", children: t.items.length }), e[6] = t.items.length, e[7] = f) : f = e[7];
50
- let g;
51
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ d(rt, {}), e[8] = g) : g = e[8];
52
- let o;
53
- e[9] !== t.canCreate || e[10] !== t.createLabel || e[11] !== t.id || e[12] !== n ? (o = t.canCreate && n && /* @__PURE__ */ d(ct, { content: t.createLabel ?? "Create new row", children: /* @__PURE__ */ d(Ee, { size: "2xs", variant: "outline", onClick: () => n(t.id), "aria-label": t.createLabel ?? "Create row", children: /* @__PURE__ */ d(N, { as: ut, boxSize: "12px" }) }) }), e[9] = t.canCreate, e[10] = t.createLabel, e[11] = t.id, e[12] = n, e[13] = o) : o = e[13];
54
- let u;
55
- e[14] !== t.actions || e[15] !== t.id || e[16] !== t.label || e[17] !== a ? (u = t.actions.length > 0 && /* @__PURE__ */ B(F.Root, { children: [
56
- /* @__PURE__ */ d(F.Trigger, { asChild: !0, children: /* @__PURE__ */ d(Ee, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${t.label}`, children: /* @__PURE__ */ d(N, { as: pt, boxSize: "12px" }) }) }),
57
- /* @__PURE__ */ d(F.Positioner, { children: /* @__PURE__ */ d(F.Content, { minW: "180px", bg: "bg", children: t.actions.map((h) => /* @__PURE__ */ d(F.Item, { value: h.id, asChild: !0, children: /* @__PURE__ */ d(ke, { asChild: !0, variant: "full-width", label: h.label, icon: /* @__PURE__ */ d(N, { as: h.icon, boxSize: "16px" }), onActivate: () => a?.(t.id, h.id) }) }, h.id)) }) })
58
- ] }), e[14] = t.actions, e[15] = t.id, e[16] = t.label, e[17] = a, e[18] = u) : u = e[18];
59
- let b;
60
- return e[19] !== i || e[20] !== p || e[21] !== c || e[22] !== f || e[23] !== o || e[24] !== u ? (b = /* @__PURE__ */ B(X, { minH: "1.5rem", gap: "2xs", alignItems: "center", colorPalette: i, children: [
61
- p,
62
- c,
63
- f,
64
- g,
65
- o,
66
- u
67
- ] }), e[19] = i, e[20] = p, e[21] = c, e[22] = f, e[23] = o, e[24] = u, e[25] = b) : b = e[25], b;
68
- }, Q = (r) => r.stopPropagation(), Rt = (r) => Array.isArray(r.value) ? r.value : r.value ? [r.value] : [], Tt = (r, e) => r.includes(e) ? r.filter((t) => t !== e) : [...r, e], Ae = {
69
- bg: {
70
- _light: "bg.muted",
71
- _dark: "bg.subtle"
72
- },
73
- color: "fg.muted",
74
- _hover: {
75
- bg: {
76
- _light: "bg.subtle",
77
- _dark: "bg.hover"
78
- }
79
- }
80
- }, Et = (r) => r.color ? `${r.color}.fg` : "fg.muted", Pt = (r) => r.isMultiValue ? r.isSelected ? /* @__PURE__ */ d(gt, { size: 14 }) : /* @__PURE__ */ d(ft, { size: 14 }) : r.isSelected ? /* @__PURE__ */ d(mt, { size: 14 }) : null, je = (r) => {
81
- const e = M(49), {
82
- badge: t,
83
- onChange: n
84
- } = r;
85
- let a, i, s, p, c, f, g, o, u, b, h, l, m, x;
86
- if (e[0] !== t || e[1] !== n) {
87
- x = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
88
- e: {
89
- const E = t.options ?? [], v = !!(n && t.isEditable && E.length > 0), k = Array.isArray(t.value), I = Rt(t);
90
- let y;
91
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
92
- onClick: Q,
93
- onPointerDown: Q,
94
- onKeyDown: Q
95
- }, e[16] = y) : y = e[16];
96
- const S = y, R = (A) => {
97
- let z;
98
- k ? z = Tt(I, A) : z = I.includes(A) ? "" : A, n?.(t.attributeId, z);
99
- };
100
- let G;
101
- e[17] !== t ? (G = t.icon ? /* @__PURE__ */ d(N, { as: be(t.icon), boxSize: "3.5", color: Et(t) }) : null, e[17] = t, e[18] = G) : G = e[18];
102
- let $;
103
- e[19] !== v ? ($ = v ? /* @__PURE__ */ d(N, { as: bt, boxSize: "3", color: "fg.muted" }) : null, e[19] = v, e[20] = $) : $ = e[20];
104
- let O;
105
- e[21] !== t.label || e[22] !== G || e[23] !== $ ? (O = /* @__PURE__ */ B(nt, { children: [
106
- G,
107
- t.label,
108
- $
109
- ] }), e[21] = t.label, e[22] = G, e[23] = $, e[24] = O) : O = e[24];
110
- const T = O;
111
- if (!v) {
112
- let A;
113
- e[25] !== T ? (A = /* @__PURE__ */ d(fe, { variant: "subtle", gap: "2xs", textStyle: "label/XS/medium", ...Ae, children: T }), e[25] = T, e[26] = A) : A = e[26], x = A;
114
- break e;
115
- }
116
- p = F.Root, l = !k, e[27] !== T ? (m = /* @__PURE__ */ d(F.Trigger, { asChild: !0, children: /* @__PURE__ */ d(fe, { as: "span", role: "button", tabIndex: 0, variant: "subtle", gap: "2xs", textStyle: "label/XS/medium", cursor: "pointer", ...Ae, onClick: Q, onPointerDown: Q, onKeyDown: Q, children: T }) }), e[27] = T, e[28] = m) : m = e[28], s = ot, i = F.Positioner, a = F.Content, c = "180px", f = "0", g = "0", o = Q, u = Q, b = Q, h = E.map((A) => {
117
- const z = I.includes(A.value);
118
- return /* @__PURE__ */ d(F.Item, { value: A.value, asChild: !0, children: /* @__PURE__ */ d(ke, { asChild: !0, role: k ? "menuitemcheckbox" : "menuitemradio", "aria-checked": z, variant: "full-width", id: A.value, label: A.label, icon: /* @__PURE__ */ d(N, { as: be(A.icon), boxSize: "16px" }), iconColor: `${A.color ?? "gray"}.500`, isSelected: z, endContent: Pt({
119
- isMultiValue: k,
120
- isSelected: z
121
- }), onActivate: () => R(A.value), ...S }) }, A.value);
122
- });
123
- }
124
- e[0] = t, e[1] = n, e[2] = a, e[3] = i, e[4] = s, e[5] = p, e[6] = c, e[7] = f, e[8] = g, e[9] = o, e[10] = u, e[11] = b, e[12] = h, e[13] = l, e[14] = m, e[15] = x;
125
- } else
126
- a = e[2], i = e[3], s = e[4], p = e[5], c = e[6], f = e[7], g = e[8], o = e[9], u = e[10], b = e[11], h = e[12], l = e[13], m = e[14], x = e[15];
127
- if (x !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
128
- return x;
129
- let C;
130
- e[29] !== a || e[30] !== c || e[31] !== f || e[32] !== g || e[33] !== o || e[34] !== u || e[35] !== b || e[36] !== h ? (C = /* @__PURE__ */ d(a, { minW: c, p: f, gap: g, onClick: o, onPointerDown: u, onKeyDown: b, children: h }), e[29] = a, e[30] = c, e[31] = f, e[32] = g, e[33] = o, e[34] = u, e[35] = b, e[36] = h, e[37] = C) : C = e[37];
131
- let w;
132
- e[38] !== i || e[39] !== C ? (w = /* @__PURE__ */ d(i, { children: C }), e[38] = i, e[39] = C, e[40] = w) : w = e[40];
133
- let D;
134
- e[41] !== s || e[42] !== w ? (D = /* @__PURE__ */ d(s, { children: w }), e[41] = s, e[42] = w, e[43] = D) : D = e[43];
135
- let P;
136
- return e[44] !== p || e[45] !== D || e[46] !== l || e[47] !== m ? (P = /* @__PURE__ */ B(p, { closeOnSelect: l, children: [
137
- m,
138
- D
139
- ] }), e[44] = p, e[45] = D, e[46] = l, e[47] = m, e[48] = P) : P = e[48], P;
140
- }, Fe = (r) => {
141
- const e = M(30), {
142
- eyebrow: t,
143
- title: n,
144
- badges: a,
145
- customSlots: i,
146
- workspaceBadge: s,
147
- isSelected: p,
148
- draggable: c,
149
- onBadgeChange: f,
150
- onDragStart: g,
151
- onDragEnd: o,
152
- onClick: u
153
- } = r;
154
- let b;
155
- e[0] !== a ? (b = a === void 0 ? [] : a, e[0] = a, e[1] = b) : b = e[1];
156
- const h = b;
157
- let l;
158
- e[2] !== i ? (l = i === void 0 ? [] : i, e[2] = i, e[3] = l) : l = e[3];
159
- const m = l, x = p === void 0 ? !1 : p, C = h.length > 0 || m.length > 0, w = c ? "grab" : u ? "pointer" : "default";
160
- let D;
161
- e[4] !== u ? (D = (O) => {
162
- O.defaultPrevented || !(O.target instanceof Node) || !O.currentTarget.contains(O.target) || u?.();
163
- }, e[4] = u, e[5] = D) : D = e[5];
164
- const P = D, E = x ? "border.accent" : "border", v = x ? "border.accent" : "border.accent-light";
165
- let k;
166
- e[6] !== v ? (k = {
167
- borderColor: v
168
- }, e[6] = v, e[7] = k) : k = e[7];
169
- const I = u ? P : void 0, y = x ? "true" : void 0;
170
- let S;
171
- e[8] !== t || e[9] !== s ? (S = t || s ? /* @__PURE__ */ B(X, { minW: "0", gap: "2xs", children: [
172
- t ? /* @__PURE__ */ d(_, { textStyle: "label/XS", color: "fg.muted", fontFamily: "mono", truncate: !0, children: t }) : null,
173
- /* @__PURE__ */ d(X, { marginLeft: "auto", children: s ? /* @__PURE__ */ d(xt, { ...s }) : null })
174
- ] }) : null, e[8] = t, e[9] = s, e[10] = S) : S = e[10];
175
- let R;
176
- e[11] !== n ? (R = /* @__PURE__ */ d(_, { textStyle: "paragraph/S/regular", minW: "0", overflowWrap: "anywhere", children: n }), e[11] = n, e[12] = R) : R = e[12];
177
- let G;
178
- e[13] !== h || e[14] !== m || e[15] !== C || e[16] !== f ? (G = C && /* @__PURE__ */ B(we, { gap: "2xs", children: [
179
- h.map((O) => /* @__PURE__ */ d(je, { badge: O, onChange: f }, O.attributeId)),
180
- m
181
- ] }), e[13] = h, e[14] = m, e[15] = C, e[16] = f, e[17] = G) : G = e[17];
182
- let $;
183
- return e[18] !== w || e[19] !== c || e[20] !== o || e[21] !== g || e[22] !== y || e[23] !== S || e[24] !== R || e[25] !== G || e[26] !== E || e[27] !== k || e[28] !== I ? ($ = /* @__PURE__ */ B(q, { gap: "xs", padding: "compact", borderRadius: "compact", borderWidth: "1px", borderColor: E, width: "100%", background: "bg", transition: "border-color 0.2s ease-in-out, background 0.2s ease-in-out", _hover: k, cursor: w, draggable: c, onDragStart: g, onDragEnd: o, onClick: I, "data-selected": y, "data-testid": "renderer-card", children: [
184
- S,
185
- R,
186
- G
187
- ] }), e[18] = w, e[19] = c, e[20] = o, e[21] = g, e[22] = y, e[23] = S, e[24] = R, e[25] = G, e[26] = E, e[27] = k, e[28] = I, e[29] = $) : $ = e[29], $;
188
- }, At = (r) => {
189
- const e = M(30), {
190
- columnId: t,
191
- group: n,
192
- selectedItemId: a,
193
- canDragIn: i,
194
- canDragOut: s,
195
- isDropTarget: p,
196
- onDragStart: c,
197
- onDragEnd: f,
198
- onGroupDragOver: g,
199
- onGroupDragLeave: o,
200
- onGroupDrop: u
201
- } = r, [b, h] = W(!0), l = p ? "bg.subtle" : "transparent", m = i ? g : void 0, x = i ? o : void 0, C = i ? u : void 0;
202
- let w;
203
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
204
- bg: "bg.hover"
205
- }, e[0] = w) : w = e[0];
206
- let D;
207
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = () => h(Ot), e[1] = D) : D = e[1];
208
- const P = b ? "rotate(90deg)" : "rotate(0deg)";
209
- let E;
210
- e[2] !== P ? (E = /* @__PURE__ */ d(re, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ d(N, { as: ht, boxSize: "14px", color: "fg.muted", transform: P, transition: "transform 0.15s ease" }) }), e[2] = P, e[3] = E) : E = e[3];
211
- let v;
212
- e[4] !== n.label ? (v = /* @__PURE__ */ d(_, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }), e[4] = n.label, e[5] = v) : v = e[5];
213
- let k;
214
- e[6] !== n.items.length ? (k = /* @__PURE__ */ d(fe, { variant: "number", colorPalette: "gray", size: "sm", children: n.items.length }), e[6] = n.items.length, e[7] = k) : k = e[7];
215
- let I;
216
- e[8] !== E || e[9] !== v || e[10] !== k ? (I = /* @__PURE__ */ B(X, { px: "xs", py: "2xs", gap: "2xs", cursor: "pointer", _hover: w, borderRadius: "sm", onClick: D, children: [
217
- E,
218
- v,
219
- k
220
- ] }), e[8] = E, e[9] = v, e[10] = k, e[11] = I) : I = e[11];
221
- let y;
222
- e[12] !== i || e[13] !== s || e[14] !== b || e[15] !== n.items || e[16] !== f || e[17] !== c || e[18] !== u || e[19] !== a ? (y = b && /* @__PURE__ */ d(q, { gap: "xs", pt: "xs", children: n.items.map((R) => /* @__PURE__ */ d(We, { actions: R.contextMenuActions ?? [], children: /* @__PURE__ */ d(re, { onDragOver: i ? $t : void 0, onDrop: i ? (G) => {
223
- G.preventDefault(), G.stopPropagation();
224
- const $ = G.dataTransfer.getData("text/plain");
225
- !$ || $ === R.id || u(G, R.id);
226
- } : void 0, children: /* @__PURE__ */ d(Fe, { ...R.cardProps, isSelected: R.id === a, draggable: s, onDragStart: s ? c(R.id) : void 0, onDragEnd: s ? f : void 0 }) }) }, R.id)) }), e[12] = i, e[13] = s, e[14] = b, e[15] = n.items, e[16] = f, e[17] = c, e[18] = u, e[19] = a, e[20] = y) : y = e[20];
227
- let S;
228
- return e[21] !== t || e[22] !== n.key || e[23] !== l || e[24] !== m || e[25] !== I || e[26] !== y || e[27] !== x || e[28] !== C ? (S = /* @__PURE__ */ B(q, { "data-column-id": t, "data-group-key": n.key, gap: "0", borderRadius: "sm", background: l, transition: "background 150ms ease", onDragOver: m, onDragLeave: x, onDrop: C, children: [
229
- I,
230
- y
231
- ] }), e[21] = t, e[22] = n.key, e[23] = l, e[24] = m, e[25] = I, e[26] = y, e[27] = x, e[28] = C, e[29] = S) : S = e[29], S;
1
+ import { n as e, t } from "./scroll-area-Cr1lNXAr.js";
2
+ import { s as n, t as r } from "./list-row-De9R2zKU.js";
3
+ import { n as i, s as a } from "./slider-hwHYe98I.js";
4
+ import { o, t as s } from "./workspace-badge-DrvH8WKV.js";
5
+ import { t as c } from "./empty-state-3mVV_pV-.js";
6
+ import { $ as l, B as u, G as d, H as f, J as p, K as m, Q as h, U as g, V as _, W as v, X as y, Y as b, Z as x, _t as S, at as C, ct as w, dt as T, et as E, ft as D, gt as O, ht as k, it as A, lt as j, mt as M, nt as ee, ot as te, p as ne, pt as re, q as N, rt as P, st as ie, tt as ae, ut as F } from "./rich-text-BgDvOEGH.js";
7
+ import { h as I, i as L, r as R, t as oe } from "./param-editor-field-CBguLs_b.js";
8
+ import { Badge as se, Box as z, Button as B, CloseButton as ce, Dialog as V, HStack as H, Icon as U, IconButton as le, Input as ue, Menu as W, Portal as G, Spacer as K, Stack as q, Text as J, Textarea as de, VStack as fe, Wrap as pe } from "@chakra-ui/react";
9
+ import { c as Y } from "react/compiler-runtime";
10
+ import { Fragment as me, jsx as X, jsxs as Z } from "react/jsx-runtime";
11
+ import { useEffect as he, useRef as ge, useState as Q } from "react";
12
+ import { Check as _e, ChevronDown as ve, ChevronRight as ye, MoreHorizontal as be, Paperclip as xe, Plus as Se, Square as Ce, SquareCheck as we } from "lucide-react";
13
+ //#region src/components/kanban-renderer/kanban-renderer-board-move.ts
14
+ var Te = async (e) => {
15
+ let { settings: t, rowId: n, targetColumnId: r, targetGroupKey: i, beforeItemId: a, onAttributeChange: o, onReorder: s } = e;
16
+ t.columnGrouping !== "none" && o && await o(n, t.columnGrouping, r), t.rowGrouping !== "none" && i && o && await o(n, t.rowGrouping, i), t.ordering.attributeId === "manual" && await s?.(n, a);
17
+ }, Ee = async (e) => {
18
+ let { settings: t, rowId: n, targetGroupKey: r, beforeItemId: i, onAttributeChange: a, onReorder: o } = e;
19
+ t.rowGrouping !== "none" && a && (await a(n, t.rowGrouping, r), t.ordering.attributeId === "manual" && await o?.(n, i));
20
+ }, De = (t) => {
21
+ let n = Y(26), { column: a, onCreateStart: o, onColumnAction: s } = t, c = a.color ?? "gray", l;
22
+ n[0] === a.icon ? l = n[1] : (l = i(a.icon), n[0] = a.icon, n[1] = l);
23
+ let u;
24
+ n[2] === l ? u = n[3] : (u = /* @__PURE__ */ X(U, {
25
+ "data-testid": "column-status-icon",
26
+ as: l,
27
+ boxSize: "0.875rem",
28
+ color: "colorPalette.solid",
29
+ flexShrink: 0
30
+ }), n[2] = l, n[3] = u);
31
+ let d;
32
+ n[4] === a.label ? d = n[5] : (d = /* @__PURE__ */ X(J, {
33
+ textStyle: "label/S/medium",
34
+ children: a.label
35
+ }), n[4] = a.label, n[5] = d);
36
+ let f;
37
+ n[6] === a.items.length ? f = n[7] : (f = /* @__PURE__ */ X(se, {
38
+ variant: "number",
39
+ size: "xs",
40
+ colorPalette: "gray",
41
+ children: a.items.length
42
+ }), n[6] = a.items.length, n[7] = f);
43
+ let p;
44
+ n[8] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ X(K, {}), n[8] = p) : p = n[8];
45
+ let m;
46
+ n[9] !== a.canCreate || n[10] !== a.createLabel || n[11] !== a.id || n[12] !== o ? (m = a.canCreate && o && /* @__PURE__ */ X(e, {
47
+ content: a.createLabel ?? "Create new row",
48
+ children: /* @__PURE__ */ X(le, {
49
+ size: "2xs",
50
+ variant: "outline",
51
+ onClick: () => o(a.id),
52
+ "aria-label": a.createLabel ?? "Create row",
53
+ children: /* @__PURE__ */ X(U, {
54
+ as: Se,
55
+ boxSize: "12px"
56
+ })
57
+ })
58
+ }), n[9] = a.canCreate, n[10] = a.createLabel, n[11] = a.id, n[12] = o, n[13] = m) : m = n[13];
59
+ let h;
60
+ n[14] !== a.actions || n[15] !== a.id || n[16] !== a.label || n[17] !== s ? (h = a.actions.length > 0 && /* @__PURE__ */ Z(W.Root, { children: [/* @__PURE__ */ X(W.Trigger, {
61
+ asChild: !0,
62
+ children: /* @__PURE__ */ X(le, {
63
+ size: "2xs",
64
+ variant: "ghost",
65
+ "aria-label": `Column actions for ${a.label}`,
66
+ children: /* @__PURE__ */ X(U, {
67
+ as: be,
68
+ boxSize: "12px"
69
+ })
70
+ })
71
+ }), /* @__PURE__ */ X(W.Positioner, { children: /* @__PURE__ */ X(W.Content, {
72
+ minW: "180px",
73
+ bg: "bg",
74
+ children: a.actions.map((e) => /* @__PURE__ */ X(W.Item, {
75
+ value: e.id,
76
+ asChild: !0,
77
+ children: /* @__PURE__ */ X(r, {
78
+ asChild: !0,
79
+ variant: "full-width",
80
+ label: e.label,
81
+ icon: /* @__PURE__ */ X(U, {
82
+ as: e.icon,
83
+ boxSize: "16px"
84
+ }),
85
+ onActivate: () => s?.(a.id, e.id)
86
+ })
87
+ }, e.id))
88
+ }) })] }), n[14] = a.actions, n[15] = a.id, n[16] = a.label, n[17] = s, n[18] = h) : h = n[18];
89
+ let g;
90
+ return n[19] !== c || n[20] !== u || n[21] !== d || n[22] !== f || n[23] !== m || n[24] !== h ? (g = /* @__PURE__ */ Z(H, {
91
+ minH: "1.5rem",
92
+ gap: "2xs",
93
+ alignItems: "center",
94
+ colorPalette: c,
95
+ children: [
96
+ u,
97
+ d,
98
+ f,
99
+ p,
100
+ m,
101
+ h
102
+ ]
103
+ }), n[19] = c, n[20] = u, n[21] = d, n[22] = f, n[23] = m, n[24] = h, n[25] = g) : g = n[25], g;
104
+ }, $ = (e) => e.stopPropagation(), Oe = (e) => Array.isArray(e.value) ? e.value : e.value ? [e.value] : [], ke = (e, t) => e.includes(t) ? e.filter((e) => e !== t) : [...e, t], Ae = {
105
+ bg: {
106
+ _light: "bg.muted",
107
+ _dark: "bg.subtle"
108
+ },
109
+ color: "fg.muted",
110
+ _hover: { bg: {
111
+ _light: "bg.subtle",
112
+ _dark: "bg.hover"
113
+ } }
114
+ }, je = (e) => e.color ? `${e.color}.fg` : "fg.muted", Me = (e) => e.isMultiValue ? e.isSelected ? /* @__PURE__ */ X(we, { size: 14 }) : /* @__PURE__ */ X(Ce, { size: 14 }) : e.isSelected ? /* @__PURE__ */ X(_e, { size: 14 }) : null, Ne = (e) => {
115
+ let t = Y(49), { badge: n, onChange: a } = e, o, s, c, l, u, d, f, p, m, h, g, _, v, y;
116
+ if (t[0] !== n || t[1] !== a) {
117
+ y = Symbol.for("react.early_return_sentinel");
118
+ bb0: {
119
+ let e = n.options ?? [], b = !!(a && n.isEditable && e.length > 0), x = Array.isArray(n.value), S = Oe(n), C;
120
+ t[16] === Symbol.for("react.memo_cache_sentinel") ? (C = {
121
+ onClick: $,
122
+ onPointerDown: $,
123
+ onKeyDown: $
124
+ }, t[16] = C) : C = t[16];
125
+ let w = C, T = (e) => {
126
+ let t;
127
+ t = x ? ke(S, e) : S.includes(e) ? "" : e, a?.(n.attributeId, t);
128
+ }, E;
129
+ t[17] === n ? E = t[18] : (E = n.icon ? /* @__PURE__ */ X(U, {
130
+ as: i(n.icon),
131
+ boxSize: "3.5",
132
+ color: je(n)
133
+ }) : null, t[17] = n, t[18] = E);
134
+ let D;
135
+ t[19] === b ? D = t[20] : (D = b ? /* @__PURE__ */ X(U, {
136
+ as: ve,
137
+ boxSize: "3",
138
+ color: "fg.muted"
139
+ }) : null, t[19] = b, t[20] = D);
140
+ let O;
141
+ t[21] !== n.label || t[22] !== E || t[23] !== D ? (O = /* @__PURE__ */ Z(me, { children: [
142
+ E,
143
+ n.label,
144
+ D
145
+ ] }), t[21] = n.label, t[22] = E, t[23] = D, t[24] = O) : O = t[24];
146
+ let k = O;
147
+ if (!b) {
148
+ let e;
149
+ t[25] === k ? e = t[26] : (e = /* @__PURE__ */ X(se, {
150
+ variant: "subtle",
151
+ gap: "2xs",
152
+ textStyle: "label/XS/medium",
153
+ ...Ae,
154
+ children: k
155
+ }), t[25] = k, t[26] = e), y = e;
156
+ break bb0;
157
+ }
158
+ l = W.Root, _ = !x, t[27] === k ? v = t[28] : (v = /* @__PURE__ */ X(W.Trigger, {
159
+ asChild: !0,
160
+ children: /* @__PURE__ */ X(se, {
161
+ as: "span",
162
+ role: "button",
163
+ tabIndex: 0,
164
+ variant: "subtle",
165
+ gap: "2xs",
166
+ textStyle: "label/XS/medium",
167
+ cursor: "pointer",
168
+ ...Ae,
169
+ onClick: $,
170
+ onPointerDown: $,
171
+ onKeyDown: $,
172
+ children: k
173
+ })
174
+ }), t[27] = k, t[28] = v), c = G, s = W.Positioner, o = W.Content, u = "180px", d = "0", f = "0", p = $, m = $, h = $, g = e.map((e) => {
175
+ let t = S.includes(e.value);
176
+ return /* @__PURE__ */ X(W.Item, {
177
+ value: e.value,
178
+ asChild: !0,
179
+ children: /* @__PURE__ */ X(r, {
180
+ asChild: !0,
181
+ role: x ? "menuitemcheckbox" : "menuitemradio",
182
+ "aria-checked": t,
183
+ variant: "full-width",
184
+ id: e.value,
185
+ label: e.label,
186
+ icon: /* @__PURE__ */ X(U, {
187
+ as: i(e.icon),
188
+ boxSize: "16px"
189
+ }),
190
+ iconColor: `${e.color ?? "gray"}.500`,
191
+ isSelected: t,
192
+ endContent: Me({
193
+ isMultiValue: x,
194
+ isSelected: t
195
+ }),
196
+ onActivate: () => T(e.value),
197
+ ...w
198
+ })
199
+ }, e.value);
200
+ });
201
+ }
202
+ t[0] = n, t[1] = a, t[2] = o, t[3] = s, t[4] = c, t[5] = l, t[6] = u, t[7] = d, t[8] = f, t[9] = p, t[10] = m, t[11] = h, t[12] = g, t[13] = _, t[14] = v, t[15] = y;
203
+ } else o = t[2], s = t[3], c = t[4], l = t[5], u = t[6], d = t[7], f = t[8], p = t[9], m = t[10], h = t[11], g = t[12], _ = t[13], v = t[14], y = t[15];
204
+ if (y !== Symbol.for("react.early_return_sentinel")) return y;
205
+ let b;
206
+ t[29] !== o || t[30] !== u || t[31] !== d || t[32] !== f || t[33] !== p || t[34] !== m || t[35] !== h || t[36] !== g ? (b = /* @__PURE__ */ X(o, {
207
+ minW: u,
208
+ p: d,
209
+ gap: f,
210
+ onClick: p,
211
+ onPointerDown: m,
212
+ onKeyDown: h,
213
+ children: g
214
+ }), t[29] = o, t[30] = u, t[31] = d, t[32] = f, t[33] = p, t[34] = m, t[35] = h, t[36] = g, t[37] = b) : b = t[37];
215
+ let x;
216
+ t[38] !== s || t[39] !== b ? (x = /* @__PURE__ */ X(s, { children: b }), t[38] = s, t[39] = b, t[40] = x) : x = t[40];
217
+ let S;
218
+ t[41] !== c || t[42] !== x ? (S = /* @__PURE__ */ X(c, { children: x }), t[41] = c, t[42] = x, t[43] = S) : S = t[43];
219
+ let C;
220
+ return t[44] !== l || t[45] !== S || t[46] !== _ || t[47] !== v ? (C = /* @__PURE__ */ Z(l, {
221
+ closeOnSelect: _,
222
+ children: [v, S]
223
+ }), t[44] = l, t[45] = S, t[46] = _, t[47] = v, t[48] = C) : C = t[48], C;
224
+ }, Pe = (e) => {
225
+ let t = Y(30), { eyebrow: n, title: r, badges: i, customSlots: a, workspaceBadge: o, isSelected: c, draggable: l, onBadgeChange: u, onDragStart: d, onDragEnd: f, onClick: p } = e, m;
226
+ t[0] === i ? m = t[1] : (m = i === void 0 ? [] : i, t[0] = i, t[1] = m);
227
+ let h = m, g;
228
+ t[2] === a ? g = t[3] : (g = a === void 0 ? [] : a, t[2] = a, t[3] = g);
229
+ let _ = g, v = c !== void 0 && c, y = h.length > 0 || _.length > 0, b = l ? "grab" : p ? "pointer" : "default", x;
230
+ t[4] === p ? x = t[5] : (x = (e) => {
231
+ e.defaultPrevented || e.target instanceof Node && e.currentTarget.contains(e.target) && p?.();
232
+ }, t[4] = p, t[5] = x);
233
+ let S = x, C = v ? "border.accent" : "border", w = v ? "border.accent" : "border.accent-light", T;
234
+ t[6] === w ? T = t[7] : (T = { borderColor: w }, t[6] = w, t[7] = T);
235
+ let E = p ? S : void 0, D = v ? "true" : void 0, O;
236
+ t[8] !== n || t[9] !== o ? (O = n || o ? /* @__PURE__ */ Z(H, {
237
+ minW: "0",
238
+ gap: "2xs",
239
+ children: [n ? /* @__PURE__ */ X(J, {
240
+ textStyle: "label/XS",
241
+ color: "fg.muted",
242
+ fontFamily: "mono",
243
+ truncate: !0,
244
+ children: n
245
+ }) : null, /* @__PURE__ */ X(H, {
246
+ marginLeft: "auto",
247
+ children: o ? /* @__PURE__ */ X(s, { ...o }) : null
248
+ })]
249
+ }) : null, t[8] = n, t[9] = o, t[10] = O) : O = t[10];
250
+ let k;
251
+ t[11] === r ? k = t[12] : (k = /* @__PURE__ */ X(J, {
252
+ textStyle: "paragraph/S/regular",
253
+ minW: "0",
254
+ overflowWrap: "anywhere",
255
+ children: r
256
+ }), t[11] = r, t[12] = k);
257
+ let A;
258
+ t[13] !== h || t[14] !== _ || t[15] !== y || t[16] !== u ? (A = y && /* @__PURE__ */ Z(pe, {
259
+ gap: "2xs",
260
+ children: [h.map((e) => /* @__PURE__ */ X(Ne, {
261
+ badge: e,
262
+ onChange: u
263
+ }, e.attributeId)), _]
264
+ }), t[13] = h, t[14] = _, t[15] = y, t[16] = u, t[17] = A) : A = t[17];
265
+ let j;
266
+ return t[18] !== b || t[19] !== l || t[20] !== f || t[21] !== d || t[22] !== D || t[23] !== O || t[24] !== k || t[25] !== A || t[26] !== C || t[27] !== T || t[28] !== E ? (j = /* @__PURE__ */ Z(q, {
267
+ gap: "xs",
268
+ padding: "compact",
269
+ borderRadius: "compact",
270
+ borderWidth: "1px",
271
+ borderColor: C,
272
+ width: "100%",
273
+ background: "bg",
274
+ transition: "border-color 0.2s ease-in-out, background 0.2s ease-in-out",
275
+ _hover: T,
276
+ cursor: b,
277
+ draggable: l,
278
+ onDragStart: d,
279
+ onDragEnd: f,
280
+ onClick: E,
281
+ "data-selected": D,
282
+ "data-testid": "renderer-card",
283
+ children: [
284
+ O,
285
+ k,
286
+ A
287
+ ]
288
+ }), t[18] = b, t[19] = l, t[20] = f, t[21] = d, t[22] = D, t[23] = O, t[24] = k, t[25] = A, t[26] = C, t[27] = T, t[28] = E, t[29] = j) : j = t[29], j;
289
+ }, Fe = (e) => {
290
+ let t = Y(30), { columnId: r, group: i, selectedItemId: a, canDragIn: o, canDragOut: s, isDropTarget: c, onDragStart: l, onDragEnd: u, onGroupDragOver: d, onGroupDragLeave: f, onGroupDrop: p } = e, [m, h] = Q(!0), g = c ? "bg.subtle" : "transparent", _ = o ? d : void 0, v = o ? f : void 0, y = o ? p : void 0, b;
291
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (b = { bg: "bg.hover" }, t[0] = b) : b = t[0];
292
+ let x;
293
+ t[1] === Symbol.for("react.memo_cache_sentinel") ? (x = () => h(Ie), t[1] = x) : x = t[1];
294
+ let S = m ? "rotate(90deg)" : "rotate(0deg)", C;
295
+ t[2] === S ? C = t[3] : (C = /* @__PURE__ */ X(z, {
296
+ display: "flex",
297
+ alignItems: "center",
298
+ flexShrink: 0,
299
+ children: /* @__PURE__ */ X(U, {
300
+ as: ye,
301
+ boxSize: "14px",
302
+ color: "fg.muted",
303
+ transform: S,
304
+ transition: "transform 0.15s ease"
305
+ })
306
+ }), t[2] = S, t[3] = C);
307
+ let w;
308
+ t[4] === i.label ? w = t[5] : (w = /* @__PURE__ */ X(J, {
309
+ textStyle: "label/S/medium",
310
+ color: "fg.muted",
311
+ children: i.label
312
+ }), t[4] = i.label, t[5] = w);
313
+ let T;
314
+ t[6] === i.items.length ? T = t[7] : (T = /* @__PURE__ */ X(se, {
315
+ variant: "number",
316
+ colorPalette: "gray",
317
+ size: "sm",
318
+ children: i.items.length
319
+ }), t[6] = i.items.length, t[7] = T);
320
+ let E;
321
+ t[8] !== C || t[9] !== w || t[10] !== T ? (E = /* @__PURE__ */ Z(H, {
322
+ px: "xs",
323
+ py: "2xs",
324
+ gap: "2xs",
325
+ cursor: "pointer",
326
+ _hover: b,
327
+ borderRadius: "sm",
328
+ onClick: x,
329
+ children: [
330
+ C,
331
+ w,
332
+ T
333
+ ]
334
+ }), t[8] = C, t[9] = w, t[10] = T, t[11] = E) : E = t[11];
335
+ let D;
336
+ t[12] !== o || t[13] !== s || t[14] !== m || t[15] !== i.items || t[16] !== u || t[17] !== l || t[18] !== p || t[19] !== a ? (D = m && /* @__PURE__ */ X(q, {
337
+ gap: "xs",
338
+ pt: "xs",
339
+ children: i.items.map((e) => /* @__PURE__ */ X(n, {
340
+ actions: e.contextMenuActions ?? [],
341
+ children: /* @__PURE__ */ X(z, {
342
+ onDragOver: o ? Le : void 0,
343
+ onDrop: o ? (t) => {
344
+ t.preventDefault(), t.stopPropagation();
345
+ let n = t.dataTransfer.getData("text/plain");
346
+ n && n !== e.id && p(t, e.id);
347
+ } : void 0,
348
+ children: /* @__PURE__ */ X(Pe, {
349
+ ...e.cardProps,
350
+ isSelected: e.id === a,
351
+ draggable: s,
352
+ onDragStart: s ? l(e.id) : void 0,
353
+ onDragEnd: s ? u : void 0
354
+ })
355
+ })
356
+ }, e.id))
357
+ }), t[12] = o, t[13] = s, t[14] = m, t[15] = i.items, t[16] = u, t[17] = l, t[18] = p, t[19] = a, t[20] = D) : D = t[20];
358
+ let O;
359
+ return t[21] !== r || t[22] !== i.key || t[23] !== g || t[24] !== _ || t[25] !== E || t[26] !== D || t[27] !== v || t[28] !== y ? (O = /* @__PURE__ */ Z(q, {
360
+ "data-column-id": r,
361
+ "data-group-key": i.key,
362
+ gap: "0",
363
+ borderRadius: "sm",
364
+ background: g,
365
+ transition: "background 150ms ease",
366
+ onDragOver: _,
367
+ onDragLeave: v,
368
+ onDrop: y,
369
+ children: [E, D]
370
+ }), t[21] = r, t[22] = i.key, t[23] = g, t[24] = _, t[25] = E, t[26] = D, t[27] = v, t[28] = y, t[29] = O) : O = t[29], O;
232
371
  };
233
- function Ot(r) {
234
- return !r;
372
+ function Ie(e) {
373
+ return !e;
235
374
  }
236
- function $t(r) {
237
- r.preventDefault(), r.stopPropagation(), r.dataTransfer.dropEffect = "move";
375
+ function Le(e) {
376
+ e.preventDefault(), e.stopPropagation(), e.dataTransfer.dropEffect = "move";
238
377
  }
239
- const Bt = (r) => {
240
- const e = M(27), {
241
- columns: t,
242
- selectedItemId: n,
243
- onMoveItem: a,
244
- onMoveToGroup: i,
245
- onCreateStart: s,
246
- onColumnAction: p
247
- } = r, c = n === void 0 ? null : n, [f, g] = W(null), [o, u] = W(null), b = zt;
248
- let h;
249
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => {
250
- g(null), u(null);
251
- }, e[0] = h) : h = e[0];
252
- const l = h;
253
- let m;
254
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (I) => (y) => {
255
- y.preventDefault(), y.dataTransfer.dropEffect = "move", g(I);
256
- }, e[1] = m) : m = e[1];
257
- const x = m;
258
- let C;
259
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = (I) => {
260
- I.currentTarget.contains(I.relatedTarget) || g(null);
261
- }, e[2] = C) : C = e[2];
262
- const w = C;
263
- let D;
264
- e[3] !== a ? (D = (I) => (y) => {
265
- y.preventDefault(), g(null);
266
- const S = y.dataTransfer.getData("text/plain");
267
- S && a?.(S, I);
268
- }, e[3] = a, e[4] = D) : D = e[4];
269
- const P = D;
270
- let E;
271
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
272
- display: "flex",
273
- alignItems: "stretch",
274
- gap: "xs",
275
- padding: "xs",
276
- minH: "100%"
277
- }, e[5] = E) : E = e[5];
278
- let v;
279
- if (e[6] !== f || e[7] !== o || e[8] !== t || e[9] !== P || e[10] !== p || e[11] !== s || e[12] !== a || e[13] !== i || e[14] !== c) {
280
- let I;
281
- e[16] !== f || e[17] !== o || e[18] !== P || e[19] !== p || e[20] !== s || e[21] !== a || e[22] !== i || e[23] !== c ? (I = (y) => /* @__PURE__ */ B(q, { "data-testid": `board-column-${y.id}`, gap: "xs", padding: "compact", borderWidth: "1px", borderColor: "border.subtle", borderRadius: "sm", background: f === y.id ? "bg.active" : "bg.subtle", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: y.canDragIn ? x(y.id) : void 0, onDragLeave: y.canDragIn ? w : void 0, onDrop: y.canDragIn ? P(y.id) : void 0, children: [
282
- /* @__PURE__ */ d(Gt, { column: y, onCreateStart: s, onColumnAction: p }),
283
- /* @__PURE__ */ d(Pe, { flex: "1", minH: "0", size: "xs", verticalScrollbarProps: {
284
- margin: "0"
285
- }, contentProps: {
286
- spaceY: "xs"
287
- }, children: y.groups && y.groups.length > 0 ? y.groups.map((S) => {
288
- const R = `${y.id}::${S.key}`;
289
- return /* @__PURE__ */ d(At, { columnId: y.id, group: S, selectedItemId: c, canDragIn: y.canDragIn, canDragOut: y.canDragOut, isDropTarget: o === R, onDragStart: b, onDragEnd: l, onGroupDragOver: (G) => {
290
- G.preventDefault(), G.stopPropagation(), G.dataTransfer.dropEffect = "move", u(R), g(null);
291
- }, onGroupDragLeave: (G) => {
292
- G.currentTarget.contains(G.relatedTarget) || u(null);
293
- }, onGroupDrop: (G, $) => {
294
- G.preventDefault(), G.stopPropagation(), u(null), g(null);
295
- const O = G.dataTransfer.getData("text/plain");
296
- if (O) {
297
- if (a) {
298
- a(O, y.id, {
299
- beforeItemId: $,
300
- targetGroupKey: S.key
301
- });
302
- return;
303
- }
304
- i?.(O, S.key, {
305
- beforeItemId: $
306
- });
307
- }
308
- } }, S.key);
309
- }) : y.items.map((S) => /* @__PURE__ */ d(We, { actions: S.contextMenuActions ?? [], children: /* @__PURE__ */ d(re, { onDragOver: y.canDragIn ? (R) => {
310
- R.preventDefault(), R.stopPropagation(), R.dataTransfer.dropEffect = "move", g(y.id);
311
- } : void 0, onDrop: y.canDragIn ? (R) => {
312
- R.preventDefault(), R.stopPropagation(), g(null);
313
- const G = R.dataTransfer.getData("text/plain");
314
- !G || G === S.id || a?.(G, y.id, {
315
- beforeItemId: S.id
316
- });
317
- } : void 0, children: /* @__PURE__ */ d(Fe, { ...S.cardProps, isSelected: S.id === c, draggable: y.canDragOut, onDragStart: y.canDragOut ? b(S.id) : void 0, onDragEnd: y.canDragOut ? l : void 0 }) }) }, S.id)) })
318
- ] }, y.id), e[16] = f, e[17] = o, e[18] = P, e[19] = p, e[20] = s, e[21] = a, e[22] = i, e[23] = c, e[24] = I) : I = e[24], v = t.map(I), e[6] = f, e[7] = o, e[8] = t, e[9] = P, e[10] = p, e[11] = s, e[12] = a, e[13] = i, e[14] = c, e[15] = v;
319
- } else
320
- v = e[15];
321
- let k;
322
- return e[25] !== v ? (k = /* @__PURE__ */ d(Pe, { height: "100%", size: "xs", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: E, children: v }), e[25] = v, e[26] = k) : k = e[26], k;
378
+ //#endregion
379
+ //#region src/components/kanban-renderer/kanban-renderer-board.tsx
380
+ var Re = (e) => {
381
+ let r = Y(27), { columns: i, selectedItemId: a, onMoveItem: o, onMoveToGroup: s, onCreateStart: c, onColumnAction: l } = e, u = a === void 0 ? null : a, [d, f] = Q(null), [p, m] = Q(null), h = ze, g;
382
+ r[0] === Symbol.for("react.memo_cache_sentinel") ? (g = () => {
383
+ f(null), m(null);
384
+ }, r[0] = g) : g = r[0];
385
+ let _ = g, v;
386
+ r[1] === Symbol.for("react.memo_cache_sentinel") ? (v = (e) => (t) => {
387
+ t.preventDefault(), t.dataTransfer.dropEffect = "move", f(e);
388
+ }, r[1] = v) : v = r[1];
389
+ let y = v, b;
390
+ r[2] === Symbol.for("react.memo_cache_sentinel") ? (b = (e) => {
391
+ e.currentTarget.contains(e.relatedTarget) || f(null);
392
+ }, r[2] = b) : b = r[2];
393
+ let x = b, S;
394
+ r[3] === o ? S = r[4] : (S = (e) => (t) => {
395
+ t.preventDefault(), f(null);
396
+ let n = t.dataTransfer.getData("text/plain");
397
+ n && o?.(n, e);
398
+ }, r[3] = o, r[4] = S);
399
+ let C = S, w;
400
+ r[5] === Symbol.for("react.memo_cache_sentinel") ? (w = {
401
+ display: "flex",
402
+ alignItems: "stretch",
403
+ gap: "xs",
404
+ padding: "xs",
405
+ minH: "100%"
406
+ }, r[5] = w) : w = r[5];
407
+ let T;
408
+ if (r[6] !== d || r[7] !== p || r[8] !== i || r[9] !== C || r[10] !== l || r[11] !== c || r[12] !== o || r[13] !== s || r[14] !== u) {
409
+ let e;
410
+ r[16] !== d || r[17] !== p || r[18] !== C || r[19] !== l || r[20] !== c || r[21] !== o || r[22] !== s || r[23] !== u ? (e = (e) => /* @__PURE__ */ Z(q, {
411
+ "data-testid": `board-column-${e.id}`,
412
+ gap: "xs",
413
+ padding: "compact",
414
+ borderWidth: "1px",
415
+ borderColor: "border.subtle",
416
+ borderRadius: "sm",
417
+ background: d === e.id ? "bg.active" : "bg.subtle",
418
+ transition: "background 150ms ease",
419
+ height: "100%",
420
+ minH: "240px",
421
+ overflow: "hidden",
422
+ minW: "260px",
423
+ flex: "1 0 260px",
424
+ onDragOver: e.canDragIn ? y(e.id) : void 0,
425
+ onDragLeave: e.canDragIn ? x : void 0,
426
+ onDrop: e.canDragIn ? C(e.id) : void 0,
427
+ children: [/* @__PURE__ */ X(De, {
428
+ column: e,
429
+ onCreateStart: c,
430
+ onColumnAction: l
431
+ }), /* @__PURE__ */ X(t, {
432
+ flex: "1",
433
+ minH: "0",
434
+ size: "xs",
435
+ verticalScrollbarProps: { margin: "0" },
436
+ contentProps: { spaceY: "xs" },
437
+ children: e.groups && e.groups.length > 0 ? e.groups.map((t) => {
438
+ let n = `${e.id}::${t.key}`;
439
+ return /* @__PURE__ */ X(Fe, {
440
+ columnId: e.id,
441
+ group: t,
442
+ selectedItemId: u,
443
+ canDragIn: e.canDragIn,
444
+ canDragOut: e.canDragOut,
445
+ isDropTarget: p === n,
446
+ onDragStart: h,
447
+ onDragEnd: _,
448
+ onGroupDragOver: (e) => {
449
+ e.preventDefault(), e.stopPropagation(), e.dataTransfer.dropEffect = "move", m(n), f(null);
450
+ },
451
+ onGroupDragLeave: (e) => {
452
+ e.currentTarget.contains(e.relatedTarget) || m(null);
453
+ },
454
+ onGroupDrop: (n, r) => {
455
+ n.preventDefault(), n.stopPropagation(), m(null), f(null);
456
+ let i = n.dataTransfer.getData("text/plain");
457
+ if (i) {
458
+ if (o) {
459
+ o(i, e.id, {
460
+ beforeItemId: r,
461
+ targetGroupKey: t.key
462
+ });
463
+ return;
464
+ }
465
+ s?.(i, t.key, { beforeItemId: r });
466
+ }
467
+ }
468
+ }, t.key);
469
+ }) : e.items.map((t) => /* @__PURE__ */ X(n, {
470
+ actions: t.contextMenuActions ?? [],
471
+ children: /* @__PURE__ */ X(z, {
472
+ onDragOver: e.canDragIn ? (t) => {
473
+ t.preventDefault(), t.stopPropagation(), t.dataTransfer.dropEffect = "move", f(e.id);
474
+ } : void 0,
475
+ onDrop: e.canDragIn ? (n) => {
476
+ n.preventDefault(), n.stopPropagation(), f(null);
477
+ let r = n.dataTransfer.getData("text/plain");
478
+ r && r !== t.id && o?.(r, e.id, { beforeItemId: t.id });
479
+ } : void 0,
480
+ children: /* @__PURE__ */ X(Pe, {
481
+ ...t.cardProps,
482
+ isSelected: t.id === u,
483
+ draggable: e.canDragOut,
484
+ onDragStart: e.canDragOut ? h(t.id) : void 0,
485
+ onDragEnd: e.canDragOut ? _ : void 0
486
+ })
487
+ })
488
+ }, t.id))
489
+ })]
490
+ }, e.id), r[16] = d, r[17] = p, r[18] = C, r[19] = l, r[20] = c, r[21] = o, r[22] = s, r[23] = u, r[24] = e) : e = r[24], T = i.map(e), r[6] = d, r[7] = p, r[8] = i, r[9] = C, r[10] = l, r[11] = c, r[12] = o, r[13] = s, r[14] = u, r[15] = T;
491
+ } else T = r[15];
492
+ let E;
493
+ return r[25] === T ? E = r[26] : (E = /* @__PURE__ */ X(t, {
494
+ height: "100%",
495
+ size: "xs",
496
+ showHorizontalScrollbar: !0,
497
+ showVerticalScrollbar: !1,
498
+ contentProps: w,
499
+ children: T
500
+ }), r[25] = T, r[26] = E), E;
323
501
  };
324
- function zt(r) {
325
- return (e) => {
326
- e.dataTransfer.setData("text/plain", r), e.dataTransfer.effectAllowed = "move";
327
- };
502
+ function ze(e) {
503
+ return (t) => {
504
+ t.dataTransfer.setData("text/plain", e), t.dataTransfer.effectAllowed = "move";
505
+ };
328
506
  }
329
- const Ne = (r, e, t = 0) => {
330
- const n = [];
331
- for (const a of r) {
332
- const i = (a.children?.length ?? 0) > 0;
333
- n.push({
334
- id: a.id,
335
- item: a,
336
- depth: t,
337
- isGroup: a.isGroup === !0,
338
- canExpand: i
339
- }), i && Xe(e, a.id) && n.push(...Ne(a.children ?? [], e, t + 1));
340
- }
341
- return n;
342
- }, Kt = (r, e) => {
343
- if (r)
344
- return {
345
- _before: {
346
- content: '""',
347
- position: "absolute",
348
- bg: "border.accent",
349
- left: "0",
350
- top: "0",
351
- width: e ? "3px" : "100%",
352
- height: e ? "100%" : "2px"
353
- }
354
- };
355
- }, Xe = (r, e) => r[e] !== !1, Mt = (r, e, t) => ({
356
- ...r,
357
- [e]: t
358
- }), Lt = (r, e) => e ? /* @__PURE__ */ B(X, { gap: "xs", minW: "0", maxW: "full", flex: "1", children: [
359
- /* @__PURE__ */ d(_, { textStyle: "label/S/medium", minW: "0", truncate: !0, children: r.title }),
360
- /* @__PURE__ */ d(_, { textStyle: "label/XS", color: "fg.muted", flexShrink: 0, children: r.countBadge })
361
- ] }) : /* @__PURE__ */ B(X, { gap: "compact", minW: "0", maxW: "full", flex: "1", children: [
362
- r.eyebrow ? /* @__PURE__ */ d(_, { "data-testid": "list-row-eyebrow", flexShrink: 0, textStyle: "mono/XS", color: "fg.muted", truncate: !0, children: r.eyebrow }) : null,
363
- /* @__PURE__ */ d(_, { textStyle: "paragraph/S/regular", minW: "0", truncate: !0, children: r.title })
364
- ] }), _t = (r) => (r.badges?.length ?? 0) > 0 || (r.customSlots?.length ?? 0) > 0 ? /* @__PURE__ */ d(X, { gap: "xs", flexShrink: 0, children: /* @__PURE__ */ B(we, { gap: "2xs", flexShrink: 0, children: [
365
- r.badges?.map((t) => /* @__PURE__ */ d(je, { badge: t, onChange: r.onBadgeChange }, t.attributeId)),
366
- r.customSlots
367
- ] }) }) : null, Vt = (r, e) => ({
368
- id: r.id,
369
- label: Lt(r, r.isGroup === !0),
370
- icon: r.statusIcon ? /* @__PURE__ */ d(N, { "data-testid": r.isGroup ? "list-status-icon" : "row-status-icon", as: r.statusIcon, boxSize: "1rem", colorPalette: r.statusColorPalette ?? r.countColorPalette ?? "gray", color: r.statusColor ?? (r.isGroup || r.statusColorPalette ? "colorPalette.solid" : "fg.muted") }) : void 0,
371
- endContent: _t(r),
372
- isContainer: e,
373
- contextMenuItems: r.contextMenuActions?.map((t) => ({
374
- id: t.key,
375
- label: t.label,
376
- icon: t.icon ?? void 0,
377
- disabled: t.isDisabled,
378
- separatorBefore: t.separatorBefore,
379
- endContent: t.endContent,
380
- onAction: t.onClick
381
- }))
382
- }), Wt = (r) => {
383
- const e = M(24), {
384
- items: t,
385
- selectedItemId: n,
386
- expandedGroups: a,
387
- onItemClick: i,
388
- onExpandedGroupChange: s
389
- } = r, p = n === void 0 ? null : n;
390
- let c;
391
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {}, e[0] = c) : c = e[0];
392
- const [f, g] = W(c), [o, u] = W(null), [b, h] = W(null), l = a ?? f;
393
- let m, x;
394
- if (e[1] !== o || e[2] !== b || e[3] !== l || e[4] !== a || e[5] !== t || e[6] !== s || e[7] !== i || e[8] !== p) {
395
- const w = Ne(t, l);
396
- let D;
397
- e[11] !== a || e[12] !== s ? (D = (v, k) => {
398
- s?.(v, k), a === void 0 && g((I) => Mt(I, v, k));
399
- }, e[11] = a, e[12] = s, e[13] = D) : D = e[13];
400
- const P = D;
401
- m = re;
402
- let E;
403
- e[14] !== o || e[15] !== b || e[16] !== l || e[17] !== P || e[18] !== i || e[19] !== p ? (E = (v) => /* @__PURE__ */ d(Ht, { row: v, isExpanded: Xe(l, v.id), selectedItemId: p, activeDropTargetId: o, draggedItemId: b, onDraggedItemChange: h, onDropTargetChange: u, onItemClick: i, onExpandedChange: P }, v.id), e[14] = o, e[15] = b, e[16] = l, e[17] = P, e[18] = i, e[19] = p, e[20] = E) : E = e[20], x = w.map(E), e[1] = o, e[2] = b, e[3] = l, e[4] = a, e[5] = t, e[6] = s, e[7] = i, e[8] = p, e[9] = m, e[10] = x;
404
- } else
405
- m = e[9], x = e[10];
406
- let C;
407
- return e[21] !== m || e[22] !== x ? (C = /* @__PURE__ */ d(m, { children: x }), e[21] = m, e[22] = x, e[23] = C) : C = e[23], C;
408
- }, Ht = (r) => {
409
- const e = M(56), {
410
- row: t,
411
- isExpanded: n,
412
- selectedItemId: a,
413
- activeDropTargetId: i,
414
- draggedItemId: s,
415
- onDraggedItemChange: p,
416
- onDropTargetChange: c,
417
- onItemClick: f,
418
- onExpandedChange: g
419
- } = r, {
420
- item: o,
421
- isGroup: u,
422
- canExpand: b
423
- } = t, h = o.id === a, l = !!o.onDropRow && o.id !== s, m = l && o.id === i;
424
- let x;
425
- e[0] !== b || e[1] !== o ? (x = Vt(o, b), e[0] = b, e[1] = o, e[2] = x) : x = e[2];
426
- const C = x;
427
- let w;
428
- e[3] !== n || e[4] !== g || e[5] !== t.id ? (w = () => g(t.id, !n), e[3] = n, e[4] = g, e[5] = t.id, e[6] = w) : w = e[6];
429
- const D = w;
430
- let P;
431
- e[7] !== b || e[8] !== u || e[9] !== o || e[10] !== f || e[11] !== D ? (P = () => {
432
- if (b) {
433
- D();
434
- return;
435
- }
436
- u || (o.onClick?.(), f?.(o));
437
- }, e[7] = b, e[8] = u, e[9] = o, e[10] = f, e[11] = D, e[12] = P) : P = e[12];
438
- const E = P;
439
- let v;
440
- e[13] !== o.draggable || e[14] !== o.id || e[15] !== p || e[16] !== c ? (v = (K) => {
441
- o.draggable && (K.stopPropagation(), K.dataTransfer.setData("text/plain", o.id), K.dataTransfer.effectAllowed = "move", p(o.id), c(null));
442
- }, e[13] = o.draggable, e[14] = o.id, e[15] = p, e[16] = c, e[17] = v) : v = e[17];
443
- const k = v;
444
- let I;
445
- e[18] !== l || e[19] !== o.id || e[20] !== c ? (I = (K) => {
446
- l && (K.preventDefault(), K.stopPropagation(), K.dataTransfer.dropEffect = "move", c(o.id));
447
- }, e[18] = l, e[19] = o.id, e[20] = c, e[21] = I) : I = e[21];
448
- const y = I;
449
- let S;
450
- e[22] !== c ? (S = (K) => {
451
- K.currentTarget.contains(K.relatedTarget) || c(null);
452
- }, e[22] = c, e[23] = S) : S = e[23];
453
- const R = S;
454
- let G;
455
- e[24] !== l || e[25] !== o || e[26] !== p || e[27] !== c ? (G = (K) => {
456
- if (!l || !o.onDropRow)
457
- return;
458
- K.preventDefault(), K.stopPropagation(), c(null), p(null);
459
- const j = K.dataTransfer.getData("text/plain");
460
- !j || j === o.id || o.onDropRow(j);
461
- }, e[24] = l, e[25] = o, e[26] = p, e[27] = c, e[28] = G) : G = e[28];
462
- const $ = G;
463
- let O;
464
- e[29] !== p || e[30] !== c ? (O = () => {
465
- c(null), p(null);
466
- }, e[29] = p, e[30] = c, e[31] = O) : O = e[31];
467
- const T = O, A = m ? "true" : void 0, z = m ? "bg.subtle" : "transparent", U = o.draggable;
468
- let V;
469
- e[32] !== b || e[33] !== m ? (V = Kt(m, b), e[32] = b, e[33] = m, e[34] = V) : V = e[34];
470
- const ee = o.onDropRow ? R : void 0, oe = u ? void 0 : o.title, te = u ? "compact" : "collection";
471
- let H;
472
- e[35] !== b || e[36] !== E || e[37] !== n || e[38] !== h || e[39] !== t.depth || e[40] !== C || e[41] !== oe || e[42] !== te || e[43] !== D ? (H = /* @__PURE__ */ d(ke, { ...C, "aria-label": oe, variant: te, depth: t.depth, isSelected: h, isExpanded: n, showExpandToggle: b, showContextMenuTrigger: !1, onActivate: E, onToggleExpand: D }), e[35] = b, e[36] = E, e[37] = n, e[38] = h, e[39] = t.depth, e[40] = C, e[41] = oe, e[42] = te, e[43] = D, e[44] = H) : H = e[44];
473
- let Y;
474
- return e[45] !== T || e[46] !== y || e[47] !== k || e[48] !== $ || e[49] !== o.draggable || e[50] !== V || e[51] !== ee || e[52] !== H || e[53] !== A || e[54] !== z ? (Y = /* @__PURE__ */ d(re, { "data-drop-target": A, position: "relative", borderBottomWidth: "1px", borderBottomColor: "border.subtle", bg: z, draggable: U, transition: "background 120ms ease", ...V, onDragStart: k, onDragOver: y, onDragLeave: ee, onDragEnd: T, onDrop: $, children: H }), e[45] = T, e[46] = y, e[47] = k, e[48] = $, e[49] = o.draggable, e[50] = V, e[51] = ee, e[52] = H, e[53] = A, e[54] = z, e[55] = Y) : Y = e[55], Y;
475
- }, Oe = (r) => {
476
- const e = M(7), {
477
- emptyState: t,
478
- title: n,
479
- description: a,
480
- height: i
481
- } = r;
482
- if (t !== void 0) {
483
- let p;
484
- return e[0] !== t || e[1] !== i ? (p = i ? /* @__PURE__ */ d(re, { height: i, children: t }) : t, e[0] = t, e[1] = i, e[2] = p) : p = e[2], p;
485
- }
486
- let s;
487
- return e[3] !== a || e[4] !== i || e[5] !== n ? (s = /* @__PURE__ */ d(dt, { title: n, description: a, height: i }), e[3] = a, e[4] = i, e[5] = n, e[6] = s) : s = e[6], s;
488
- }, jt = (r) => {
489
- const e = M(20), {
490
- viewMode: t,
491
- boardColumns: n,
492
- listItems: a,
493
- listExpandedGroups: i,
494
- selectedRowId: s,
495
- emptyState: p,
496
- emptyTitle: c,
497
- emptyDescription: f,
498
- onBoardMoveItem: g,
499
- onBoardMoveToGroup: o,
500
- onCreateRow: u,
501
- onColumnAction: b,
502
- onListExpandedGroupChange: h,
503
- listKey: l
504
- } = r;
505
- if (t === "board") {
506
- let x;
507
- return e[0] !== n || e[1] !== f || e[2] !== p || e[3] !== c || e[4] !== g || e[5] !== o || e[6] !== b || e[7] !== u || e[8] !== s ? (x = /* @__PURE__ */ d(re, { flex: "1", minH: "0", children: n.length > 0 ? /* @__PURE__ */ d(Bt, { columns: n, selectedItemId: s, onMoveItem: g, onMoveToGroup: o, onCreateStart: u, onColumnAction: b }) : /* @__PURE__ */ d(Oe, { emptyState: p, title: c, description: f, height: "100%" }) }), e[0] = n, e[1] = f, e[2] = p, e[3] = c, e[4] = g, e[5] = o, e[6] = b, e[7] = u, e[8] = s, e[9] = x) : x = e[9], x;
508
- }
509
- if (a.length > 0) {
510
- let x;
511
- return e[10] !== i || e[11] !== a || e[12] !== l || e[13] !== h || e[14] !== s ? (x = /* @__PURE__ */ d(Wt, { items: a, selectedItemId: s, expandedGroups: i, onExpandedGroupChange: h }, l), e[10] = i, e[11] = a, e[12] = l, e[13] = h, e[14] = s, e[15] = x) : x = e[15], x;
512
- }
513
- let m;
514
- return e[16] !== f || e[17] !== p || e[18] !== c ? (m = /* @__PURE__ */ d(Oe, { emptyState: p, title: c, description: f }), e[16] = f, e[17] = p, e[18] = c, e[19] = m) : m = e[19], m;
515
- }, Ft = (r) => {
516
- const e = M(2), {
517
- children: t
518
- } = r;
519
- let n;
520
- return e[0] !== t ? (n = /* @__PURE__ */ d(_, { minH: "0.75rem", textStyle: "label/XS", color: "fg.muted", lineHeight: "1", letterSpacing: "0.08em", textTransform: "uppercase", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
521
- }, $e = (r) => {
522
- const e = M(15), {
523
- group: t,
524
- params: n,
525
- renderParam: a,
526
- variant: i,
527
- width: s
528
- } = r, p = s === void 0 ? "auto" : s, c = t.title, f = i === "small" ? "2xs" : "xs";
529
- let g;
530
- e[0] !== t.title ? (g = /* @__PURE__ */ d(Ft, { children: t.title }), e[0] = t.title, e[1] = g) : g = e[1];
531
- const o = i === "small" ? "2xs" : "xs";
532
- let u;
533
- e[2] !== n || e[3] !== a ? (u = n.map(a), e[2] = n, e[3] = a, e[4] = u) : u = e[4];
534
- let b;
535
- e[5] !== o || e[6] !== u || e[7] !== p ? (b = /* @__PURE__ */ d(X, { gap: o, flexWrap: "wrap", alignItems: "start", minW: "0", width: p, children: u }), e[5] = o, e[6] = u, e[7] = p, e[8] = b) : b = e[8];
536
- let h;
537
- return e[9] !== t.title || e[10] !== f || e[11] !== g || e[12] !== b || e[13] !== p ? (h = /* @__PURE__ */ B(lt, { as: "section", "aria-label": c, gap: f, alignItems: "start", minW: "0", width: p, children: [
538
- g,
539
- b
540
- ] }), e[9] = t.title, e[10] = f, e[11] = g, e[12] = b, e[13] = p, e[14] = h) : h = e[14], h;
541
- }, Nt = (r) => {
542
- const e = M(35), {
543
- params: t,
544
- groups: n,
545
- defaultValues: a,
546
- onChange: i,
547
- onOpenResource: s,
548
- readOnly: p,
549
- variant: c
550
- } = r;
551
- let f, g, o, u, b, h, l, m;
552
- if (e[0] !== a || e[1] !== i || e[2] !== s || e[3] !== p || e[4] !== t || e[5] !== n || e[6] !== c) {
553
- const C = t === void 0 ? [] : t, w = n === void 0 ? [] : n, D = c === void 0 ? "default" : c, P = C.filter(He), E = w.map(Xt);
554
- let v;
555
- e[15] !== a || e[16] !== i || e[17] !== s || e[18] !== p || e[19] !== D ? (v = (A) => /* @__PURE__ */ d(St, { param: A, defaultValues: a, onChange: i, onOpenResource: s, readOnly: p, presentation: "horizontal", size: D === "small" ? "xs" : "sm" }, A.id), e[15] = a, e[16] = i, e[17] = s, e[18] = p, e[19] = D, e[20] = v) : v = e[20];
556
- const k = v, I = P.filter(qt), y = P.filter(he), S = E.map(Yt).filter(Jt), R = E.map(Qt).filter(Zt), G = D === "small" ? "xs" : "sm", $ = I.length > 0 || S.length > 0;
557
- f = q, g = "1", o = "full", u = G, b = "0", h = $ ? /* @__PURE__ */ B(X, { gap: G, flexWrap: "wrap", alignItems: "start", minW: "0", children: [
558
- I.map(k),
559
- S.map((A) => {
560
- const {
561
- group: z,
562
- params: U
563
- } = A;
564
- return /* @__PURE__ */ d($e, { group: z, params: U, renderParam: k, variant: D }, z.id);
565
- })
566
- ] }) : null;
567
- let O;
568
- e[21] !== k ? (O = (A) => /* @__PURE__ */ d(re, { width: "full", minW: "0", children: k(A) }, A.id), e[21] = k, e[22] = O) : O = e[22], l = y.map(O);
569
- let T;
570
- e[23] !== k || e[24] !== D ? (T = (A) => {
571
- const {
572
- group: z,
573
- params: U
574
- } = A;
575
- return /* @__PURE__ */ d($e, { group: z, params: U, renderParam: k, variant: D, width: "full" }, `${z.id}-rich`);
576
- }, e[23] = k, e[24] = D, e[25] = T) : T = e[25], m = R.map(T), e[0] = a, e[1] = i, e[2] = s, e[3] = p, e[4] = t, e[5] = n, e[6] = c, e[7] = f, e[8] = g, e[9] = o, e[10] = u, e[11] = b, e[12] = h, e[13] = l, e[14] = m;
577
- } else
578
- f = e[7], g = e[8], o = e[9], u = e[10], b = e[11], h = e[12], l = e[13], m = e[14];
579
- let x;
580
- return e[26] !== f || e[27] !== g || e[28] !== o || e[29] !== u || e[30] !== b || e[31] !== h || e[32] !== l || e[33] !== m ? (x = /* @__PURE__ */ B(f, { flex: g, maxW: o, gap: u, minW: b, children: [
581
- h,
582
- l,
583
- m
584
- ] }), e[26] = f, e[27] = g, e[28] = o, e[29] = u, e[30] = b, e[31] = h, e[32] = l, e[33] = m, e[34] = x) : x = e[34], x;
507
+ //#endregion
508
+ //#region src/components/kanban-renderer/kanban-renderer-list.tsx
509
+ var Be = (e, t, n = 0) => {
510
+ let r = [];
511
+ for (let i of e) {
512
+ let e = (i.children?.length ?? 0) > 0;
513
+ r.push({
514
+ id: i.id,
515
+ item: i,
516
+ depth: n,
517
+ isGroup: i.isGroup === !0,
518
+ canExpand: e
519
+ }), e && He(t, i.id) && r.push(...Be(i.children ?? [], t, n + 1));
520
+ }
521
+ return r;
522
+ }, Ve = (e, t) => {
523
+ if (e) return { _before: {
524
+ content: "\"\"",
525
+ position: "absolute",
526
+ bg: "border.accent",
527
+ left: "0",
528
+ top: "0",
529
+ width: t ? "3px" : "100%",
530
+ height: t ? "100%" : "2px"
531
+ } };
532
+ }, He = (e, t) => e[t] !== !1, Ue = (e, t, n) => ({
533
+ ...e,
534
+ [t]: n
535
+ }), We = (e, t) => t ? /* @__PURE__ */ Z(H, {
536
+ gap: "xs",
537
+ minW: "0",
538
+ maxW: "full",
539
+ flex: "1",
540
+ children: [/* @__PURE__ */ X(J, {
541
+ textStyle: "label/S/medium",
542
+ minW: "0",
543
+ truncate: !0,
544
+ children: e.title
545
+ }), /* @__PURE__ */ X(J, {
546
+ textStyle: "label/XS",
547
+ color: "fg.muted",
548
+ flexShrink: 0,
549
+ children: e.countBadge
550
+ })]
551
+ }) : /* @__PURE__ */ Z(H, {
552
+ gap: "compact",
553
+ minW: "0",
554
+ maxW: "full",
555
+ flex: "1",
556
+ children: [e.eyebrow ? /* @__PURE__ */ X(J, {
557
+ "data-testid": "list-row-eyebrow",
558
+ flexShrink: 0,
559
+ textStyle: "mono/XS",
560
+ color: "fg.muted",
561
+ truncate: !0,
562
+ children: e.eyebrow
563
+ }) : null, /* @__PURE__ */ X(J, {
564
+ textStyle: "paragraph/S/regular",
565
+ minW: "0",
566
+ truncate: !0,
567
+ children: e.title
568
+ })]
569
+ }), Ge = (e) => (e.badges?.length ?? 0) > 0 || (e.customSlots?.length ?? 0) > 0 ? /* @__PURE__ */ X(H, {
570
+ gap: "xs",
571
+ flexShrink: 0,
572
+ children: /* @__PURE__ */ Z(pe, {
573
+ gap: "2xs",
574
+ flexShrink: 0,
575
+ children: [e.badges?.map((t) => /* @__PURE__ */ X(Ne, {
576
+ badge: t,
577
+ onChange: e.onBadgeChange
578
+ }, t.attributeId)), e.customSlots]
579
+ })
580
+ }) : null, Ke = (e, t) => ({
581
+ id: e.id,
582
+ label: We(e, e.isGroup === !0),
583
+ icon: e.statusIcon ? /* @__PURE__ */ X(U, {
584
+ "data-testid": e.isGroup ? "list-status-icon" : "row-status-icon",
585
+ as: e.statusIcon,
586
+ boxSize: "1rem",
587
+ colorPalette: e.statusColorPalette ?? e.countColorPalette ?? "gray",
588
+ color: e.statusColor ?? (e.isGroup || e.statusColorPalette ? "colorPalette.solid" : "fg.muted")
589
+ }) : void 0,
590
+ endContent: Ge(e),
591
+ isContainer: t,
592
+ contextMenuItems: e.contextMenuActions?.map((e) => ({
593
+ id: e.key,
594
+ label: e.label,
595
+ icon: e.icon ?? void 0,
596
+ disabled: e.isDisabled,
597
+ separatorBefore: e.separatorBefore,
598
+ endContent: e.endContent,
599
+ onAction: e.onClick
600
+ }))
601
+ }), qe = (e) => {
602
+ let t = Y(24), { items: n, selectedItemId: r, expandedGroups: i, onItemClick: a, onExpandedGroupChange: o } = e, s = r === void 0 ? null : r, c;
603
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {}, t[0] = c) : c = t[0];
604
+ let [l, u] = Q(c), [d, f] = Q(null), [p, m] = Q(null), h = i ?? l, g, _;
605
+ if (t[1] !== d || t[2] !== p || t[3] !== h || t[4] !== i || t[5] !== n || t[6] !== o || t[7] !== a || t[8] !== s) {
606
+ let e = Be(n, h), r;
607
+ t[11] !== i || t[12] !== o ? (r = (e, t) => {
608
+ o?.(e, t), i === void 0 && u((n) => Ue(n, e, t));
609
+ }, t[11] = i, t[12] = o, t[13] = r) : r = t[13];
610
+ let c = r;
611
+ g = z;
612
+ let l;
613
+ t[14] !== d || t[15] !== p || t[16] !== h || t[17] !== c || t[18] !== a || t[19] !== s ? (l = (e) => /* @__PURE__ */ X(Je, {
614
+ row: e,
615
+ isExpanded: He(h, e.id),
616
+ selectedItemId: s,
617
+ activeDropTargetId: d,
618
+ draggedItemId: p,
619
+ onDraggedItemChange: m,
620
+ onDropTargetChange: f,
621
+ onItemClick: a,
622
+ onExpandedChange: c
623
+ }, e.id), t[14] = d, t[15] = p, t[16] = h, t[17] = c, t[18] = a, t[19] = s, t[20] = l) : l = t[20], _ = e.map(l), t[1] = d, t[2] = p, t[3] = h, t[4] = i, t[5] = n, t[6] = o, t[7] = a, t[8] = s, t[9] = g, t[10] = _;
624
+ } else g = t[9], _ = t[10];
625
+ let v;
626
+ return t[21] !== g || t[22] !== _ ? (v = /* @__PURE__ */ X(g, { children: _ }), t[21] = g, t[22] = _, t[23] = v) : v = t[23], v;
627
+ }, Je = (e) => {
628
+ let t = Y(56), { row: n, isExpanded: i, selectedItemId: a, activeDropTargetId: o, draggedItemId: s, onDraggedItemChange: c, onDropTargetChange: l, onItemClick: u, onExpandedChange: d } = e, { item: f, isGroup: p, canExpand: m } = n, h = f.id === a, g = !!f.onDropRow && f.id !== s, _ = g && f.id === o, v;
629
+ t[0] !== m || t[1] !== f ? (v = Ke(f, m), t[0] = m, t[1] = f, t[2] = v) : v = t[2];
630
+ let y = v, b;
631
+ t[3] !== i || t[4] !== d || t[5] !== n.id ? (b = () => d(n.id, !i), t[3] = i, t[4] = d, t[5] = n.id, t[6] = b) : b = t[6];
632
+ let x = b, S;
633
+ t[7] !== m || t[8] !== p || t[9] !== f || t[10] !== u || t[11] !== x ? (S = () => {
634
+ if (m) {
635
+ x();
636
+ return;
637
+ }
638
+ p || (f.onClick?.(), u?.(f));
639
+ }, t[7] = m, t[8] = p, t[9] = f, t[10] = u, t[11] = x, t[12] = S) : S = t[12];
640
+ let C = S, w;
641
+ t[13] !== f.draggable || t[14] !== f.id || t[15] !== c || t[16] !== l ? (w = (e) => {
642
+ f.draggable && (e.stopPropagation(), e.dataTransfer.setData("text/plain", f.id), e.dataTransfer.effectAllowed = "move", c(f.id), l(null));
643
+ }, t[13] = f.draggable, t[14] = f.id, t[15] = c, t[16] = l, t[17] = w) : w = t[17];
644
+ let T = w, E;
645
+ t[18] !== g || t[19] !== f.id || t[20] !== l ? (E = (e) => {
646
+ g && (e.preventDefault(), e.stopPropagation(), e.dataTransfer.dropEffect = "move", l(f.id));
647
+ }, t[18] = g, t[19] = f.id, t[20] = l, t[21] = E) : E = t[21];
648
+ let D = E, O;
649
+ t[22] === l ? O = t[23] : (O = (e) => {
650
+ e.currentTarget.contains(e.relatedTarget) || l(null);
651
+ }, t[22] = l, t[23] = O);
652
+ let k = O, A;
653
+ t[24] !== g || t[25] !== f || t[26] !== c || t[27] !== l ? (A = (e) => {
654
+ if (!g || !f.onDropRow) return;
655
+ e.preventDefault(), e.stopPropagation(), l(null), c(null);
656
+ let t = e.dataTransfer.getData("text/plain");
657
+ t && t !== f.id && f.onDropRow(t);
658
+ }, t[24] = g, t[25] = f, t[26] = c, t[27] = l, t[28] = A) : A = t[28];
659
+ let j = A, M;
660
+ t[29] !== c || t[30] !== l ? (M = () => {
661
+ l(null), c(null);
662
+ }, t[29] = c, t[30] = l, t[31] = M) : M = t[31];
663
+ let ee = M, te = _ ? "true" : void 0, ne = _ ? "bg.subtle" : "transparent", re = f.draggable, N;
664
+ t[32] !== m || t[33] !== _ ? (N = Ve(_, m), t[32] = m, t[33] = _, t[34] = N) : N = t[34];
665
+ let P = f.onDropRow ? k : void 0, ie = p ? void 0 : f.title, ae = p ? "compact" : "collection", F;
666
+ t[35] !== m || t[36] !== C || t[37] !== i || t[38] !== h || t[39] !== n.depth || t[40] !== y || t[41] !== ie || t[42] !== ae || t[43] !== x ? (F = /* @__PURE__ */ X(r, {
667
+ ...y,
668
+ "aria-label": ie,
669
+ variant: ae,
670
+ depth: n.depth,
671
+ isSelected: h,
672
+ isExpanded: i,
673
+ showExpandToggle: m,
674
+ showContextMenuTrigger: !1,
675
+ onActivate: C,
676
+ onToggleExpand: x
677
+ }), t[35] = m, t[36] = C, t[37] = i, t[38] = h, t[39] = n.depth, t[40] = y, t[41] = ie, t[42] = ae, t[43] = x, t[44] = F) : F = t[44];
678
+ let I;
679
+ return t[45] !== ee || t[46] !== D || t[47] !== T || t[48] !== j || t[49] !== f.draggable || t[50] !== N || t[51] !== P || t[52] !== F || t[53] !== te || t[54] !== ne ? (I = /* @__PURE__ */ X(z, {
680
+ "data-drop-target": te,
681
+ position: "relative",
682
+ borderBottomWidth: "1px",
683
+ borderBottomColor: "border.subtle",
684
+ bg: ne,
685
+ draggable: re,
686
+ transition: "background 120ms ease",
687
+ ...N,
688
+ onDragStart: T,
689
+ onDragOver: D,
690
+ onDragLeave: P,
691
+ onDragEnd: ee,
692
+ onDrop: j,
693
+ children: F
694
+ }), t[45] = ee, t[46] = D, t[47] = T, t[48] = j, t[49] = f.draggable, t[50] = N, t[51] = P, t[52] = F, t[53] = te, t[54] = ne, t[55] = I) : I = t[55], I;
695
+ }, Ye = (e) => {
696
+ let t = Y(7), { emptyState: n, title: r, description: i, height: a } = e;
697
+ if (n !== void 0) {
698
+ let e;
699
+ return t[0] !== n || t[1] !== a ? (e = a ? /* @__PURE__ */ X(z, {
700
+ height: a,
701
+ children: n
702
+ }) : n, t[0] = n, t[1] = a, t[2] = e) : e = t[2], e;
703
+ }
704
+ let o;
705
+ return t[3] !== i || t[4] !== a || t[5] !== r ? (o = /* @__PURE__ */ X(c, {
706
+ title: r,
707
+ description: i,
708
+ height: a
709
+ }), t[3] = i, t[4] = a, t[5] = r, t[6] = o) : o = t[6], o;
710
+ }, Xe = (e) => {
711
+ let t = Y(20), { viewMode: n, boardColumns: r, listItems: i, listExpandedGroups: a, selectedRowId: o, emptyState: s, emptyTitle: c, emptyDescription: l, onBoardMoveItem: u, onBoardMoveToGroup: d, onCreateRow: f, onColumnAction: p, onListExpandedGroupChange: m, listKey: h } = e;
712
+ if (n === "board") {
713
+ let e;
714
+ return t[0] !== r || t[1] !== l || t[2] !== s || t[3] !== c || t[4] !== u || t[5] !== d || t[6] !== p || t[7] !== f || t[8] !== o ? (e = /* @__PURE__ */ X(z, {
715
+ flex: "1",
716
+ minH: "0",
717
+ children: r.length > 0 ? /* @__PURE__ */ X(Re, {
718
+ columns: r,
719
+ selectedItemId: o,
720
+ onMoveItem: u,
721
+ onMoveToGroup: d,
722
+ onCreateStart: f,
723
+ onColumnAction: p
724
+ }) : /* @__PURE__ */ X(Ye, {
725
+ emptyState: s,
726
+ title: c,
727
+ description: l,
728
+ height: "100%"
729
+ })
730
+ }), t[0] = r, t[1] = l, t[2] = s, t[3] = c, t[4] = u, t[5] = d, t[6] = p, t[7] = f, t[8] = o, t[9] = e) : e = t[9], e;
731
+ }
732
+ if (i.length > 0) {
733
+ let e;
734
+ return t[10] !== a || t[11] !== i || t[12] !== h || t[13] !== m || t[14] !== o ? (e = /* @__PURE__ */ X(qe, {
735
+ items: i,
736
+ selectedItemId: o,
737
+ expandedGroups: a,
738
+ onExpandedGroupChange: m
739
+ }, h), t[10] = a, t[11] = i, t[12] = h, t[13] = m, t[14] = o, t[15] = e) : e = t[15], e;
740
+ }
741
+ let g;
742
+ return t[16] !== l || t[17] !== s || t[18] !== c ? (g = /* @__PURE__ */ X(Ye, {
743
+ emptyState: s,
744
+ title: c,
745
+ description: l
746
+ }), t[16] = l, t[17] = s, t[18] = c, t[19] = g) : g = t[19], g;
747
+ }, Ze = (e) => {
748
+ let t = Y(2), { children: n } = e, r;
749
+ return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ X(J, {
750
+ minH: "0.75rem",
751
+ textStyle: "label/XS",
752
+ color: "fg.muted",
753
+ lineHeight: "1",
754
+ letterSpacing: "0.08em",
755
+ textTransform: "uppercase",
756
+ children: n
757
+ }), t[0] = n, t[1] = r), r;
758
+ }, Qe = (e) => {
759
+ let t = Y(15), { group: n, params: r, renderParam: i, variant: a, width: o } = e, s = o === void 0 ? "auto" : o, c = n.title, l = a === "small" ? "2xs" : "xs", u;
760
+ t[0] === n.title ? u = t[1] : (u = /* @__PURE__ */ X(Ze, { children: n.title }), t[0] = n.title, t[1] = u);
761
+ let d = a === "small" ? "2xs" : "xs", f;
762
+ t[2] !== r || t[3] !== i ? (f = r.map(i), t[2] = r, t[3] = i, t[4] = f) : f = t[4];
763
+ let p;
764
+ t[5] !== d || t[6] !== f || t[7] !== s ? (p = /* @__PURE__ */ X(H, {
765
+ gap: d,
766
+ flexWrap: "wrap",
767
+ alignItems: "start",
768
+ minW: "0",
769
+ width: s,
770
+ children: f
771
+ }), t[5] = d, t[6] = f, t[7] = s, t[8] = p) : p = t[8];
772
+ let m;
773
+ return t[9] !== n.title || t[10] !== l || t[11] !== u || t[12] !== p || t[13] !== s ? (m = /* @__PURE__ */ Z(fe, {
774
+ as: "section",
775
+ "aria-label": c,
776
+ gap: l,
777
+ alignItems: "start",
778
+ minW: "0",
779
+ width: s,
780
+ children: [u, p]
781
+ }), t[9] = n.title, t[10] = l, t[11] = u, t[12] = p, t[13] = s, t[14] = m) : m = t[14], m;
782
+ }, $e = (e) => {
783
+ let t = Y(35), { params: n, groups: r, defaultValues: i, onChange: a, onOpenResource: o, readOnly: s, variant: c } = e, l, u, d, f, p, m, h, g;
784
+ if (t[0] !== i || t[1] !== a || t[2] !== o || t[3] !== s || t[4] !== n || t[5] !== r || t[6] !== c) {
785
+ let e = n === void 0 ? [] : n, _ = r === void 0 ? [] : r, v = c === void 0 ? "default" : c, y = e.filter(R), b = _.map(et), x;
786
+ t[15] !== i || t[16] !== a || t[17] !== o || t[18] !== s || t[19] !== v ? (x = (e) => /* @__PURE__ */ X(oe, {
787
+ param: e,
788
+ defaultValues: i,
789
+ onChange: a,
790
+ onOpenResource: o,
791
+ readOnly: s,
792
+ presentation: "horizontal",
793
+ size: v === "small" ? "xs" : "sm"
794
+ }, e.id), t[15] = i, t[16] = a, t[17] = o, t[18] = s, t[19] = v, t[20] = x) : x = t[20];
795
+ let S = x, C = y.filter(tt), w = y.filter(L), T = b.map(rt).filter(it), E = b.map(at).filter(ot), D = v === "small" ? "xs" : "sm", O = C.length > 0 || T.length > 0;
796
+ l = q, u = "1", d = "full", f = D, p = "0", m = O ? /* @__PURE__ */ Z(H, {
797
+ gap: D,
798
+ flexWrap: "wrap",
799
+ alignItems: "start",
800
+ minW: "0",
801
+ children: [C.map(S), T.map((e) => {
802
+ let { group: t, params: n } = e;
803
+ return /* @__PURE__ */ X(Qe, {
804
+ group: t,
805
+ params: n,
806
+ renderParam: S,
807
+ variant: v
808
+ }, t.id);
809
+ })]
810
+ }) : null;
811
+ let k;
812
+ t[21] === S ? k = t[22] : (k = (e) => /* @__PURE__ */ X(z, {
813
+ width: "full",
814
+ minW: "0",
815
+ children: S(e)
816
+ }, e.id), t[21] = S, t[22] = k), h = w.map(k);
817
+ let A;
818
+ t[23] !== S || t[24] !== v ? (A = (e) => {
819
+ let { group: t, params: n } = e;
820
+ return /* @__PURE__ */ X(Qe, {
821
+ group: t,
822
+ params: n,
823
+ renderParam: S,
824
+ variant: v,
825
+ width: "full"
826
+ }, `${t.id}-rich`);
827
+ }, t[23] = S, t[24] = v, t[25] = A) : A = t[25], g = E.map(A), t[0] = i, t[1] = a, t[2] = o, t[3] = s, t[4] = n, t[5] = r, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f, t[11] = p, t[12] = m, t[13] = h, t[14] = g;
828
+ } else l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12], h = t[13], g = t[14];
829
+ let _;
830
+ return t[26] !== l || t[27] !== u || t[28] !== d || t[29] !== f || t[30] !== p || t[31] !== m || t[32] !== h || t[33] !== g ? (_ = /* @__PURE__ */ Z(l, {
831
+ flex: u,
832
+ maxW: d,
833
+ gap: f,
834
+ minW: p,
835
+ children: [
836
+ m,
837
+ h,
838
+ g
839
+ ]
840
+ }), t[26] = l, t[27] = u, t[28] = d, t[29] = f, t[30] = p, t[31] = m, t[32] = h, t[33] = g, t[34] = _) : _ = t[34], _;
585
841
  };
586
- function Xt(r) {
587
- return {
588
- ...r,
589
- params: r.params.filter(He)
590
- };
842
+ function et(e) {
843
+ return {
844
+ ...e,
845
+ params: e.params.filter(R)
846
+ };
591
847
  }
592
- function qt(r) {
593
- return !he(r);
848
+ function tt(e) {
849
+ return !L(e);
594
850
  }
595
- function Ut(r) {
596
- return !he(r);
851
+ function nt(e) {
852
+ return !L(e);
597
853
  }
598
- function Yt(r) {
599
- return {
600
- group: r,
601
- params: r.params.filter(Ut)
602
- };
854
+ function rt(e) {
855
+ return {
856
+ group: e,
857
+ params: e.params.filter(nt)
858
+ };
603
859
  }
604
- function Jt(r) {
605
- const {
606
- params: e
607
- } = r;
608
- return e.length > 0;
860
+ function it(e) {
861
+ let { params: t } = e;
862
+ return t.length > 0;
609
863
  }
610
- function Qt(r) {
611
- return {
612
- group: r,
613
- params: r.params.filter(he)
614
- };
864
+ function at(e) {
865
+ return {
866
+ group: e,
867
+ params: e.params.filter(L)
868
+ };
615
869
  }
616
- function Zt(r) {
617
- const {
618
- params: e
619
- } = r;
620
- return e.length > 0;
870
+ function ot(e) {
871
+ let { params: t } = e;
872
+ return t.length > 0;
621
873
  }
622
- const en = (r) => {
623
- const e = M(7), {
624
- disabled: t,
625
- field: n,
626
- onChange: a
627
- } = r, i = typeof n.defaultValue == "string" ? n.defaultValue : "", s = !t;
628
- let p;
629
- e[0] !== a ? (p = (f) => a(f), e[0] = a, e[1] = p) : p = e[1];
630
- let c;
631
- return e[2] !== n.placeholder || e[3] !== i || e[4] !== s || e[5] !== p ? (c = /* @__PURE__ */ d(It, { defaultState: i, isEditable: s, placeholder: n.placeholder, autoFocus: !0, onChange: p }), e[2] = n.placeholder, e[3] = i, e[4] = s, e[5] = p, e[6] = c) : c = e[6], c;
632
- }, tn = (r) => {
633
- const e = M(24), {
634
- disabled: t,
635
- field: n,
636
- removeLabel: a,
637
- value: i,
638
- onChange: s
639
- } = r, p = Ve(null);
640
- let c;
641
- e[0] !== i ? (c = Array.isArray(i) ? i : [], e[0] = i, e[1] = c) : c = e[1];
642
- const f = c, g = n.multiple !== !1;
643
- let o;
644
- e[2] !== n.multiple || e[3] !== f || e[4] !== s ? (o = (C) => {
645
- const w = Array.from(C.target.files ?? []);
646
- s(n.multiple === !1 ? w.slice(0, 1) : [...f, ...w]), C.target.value = "";
647
- }, e[2] = n.multiple, e[3] = f, e[4] = s, e[5] = o) : o = e[5];
648
- let u;
649
- e[6] !== n.accept || e[7] !== g || e[8] !== o ? (u = /* @__PURE__ */ d("input", { ref: p, hidden: !0, type: "file", accept: n.accept, multiple: g, onChange: o }), e[6] = n.accept, e[7] = g, e[8] = o, e[9] = u) : u = e[9];
650
- let b, h;
651
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => p.current?.click(), h = /* @__PURE__ */ d(N, { as: yt, boxSize: "4" }), e[10] = b, e[11] = h) : (b = e[10], h = e[11]);
652
- let l;
653
- e[12] !== t || e[13] !== n.label ? (l = /* @__PURE__ */ B(me, { size: "xs", variant: "ghost", disabled: t, onClick: b, children: [
654
- h,
655
- n.label
656
- ] }), e[12] = t, e[13] = n.label, e[14] = l) : l = e[14];
657
- let m;
658
- e[15] !== t || e[16] !== f || e[17] !== s || e[18] !== a ? (m = f.length > 0 ? /* @__PURE__ */ d(we, { gap: "2xs", children: f.map((C, w) => /* @__PURE__ */ d(vt, { file: C, disabled: t, removeLabel: a, onRemove: () => s(f.filter((D, P) => P !== w)) }, `${C.name}-${w.toString()}`)) }) : null, e[15] = t, e[16] = f, e[17] = s, e[18] = a, e[19] = m) : m = e[19];
659
- let x;
660
- return e[20] !== u || e[21] !== l || e[22] !== m ? (x = /* @__PURE__ */ B(q, { gap: "2xs", align: "start", children: [
661
- u,
662
- l,
663
- m
664
- ] }), e[20] = u, e[21] = l, e[22] = m, e[23] = x) : x = e[23], x;
665
- }, nn = (r) => {
666
- const e = M(45), {
667
- disabled: t,
668
- field: n,
669
- value: a,
670
- onChange: i
671
- } = r;
672
- if (n.type === "longtext") {
673
- const g = typeof a == "string" ? a : "";
674
- let o;
675
- e[0] !== i ? (o = (b) => i(b.target.value), e[0] = i, e[1] = o) : o = e[1];
676
- let u;
677
- return e[2] !== t || e[3] !== n.label || e[4] !== n.placeholder || e[5] !== g || e[6] !== o ? (u = /* @__PURE__ */ d(at, { "aria-label": n.label, minH: "120px", size: "sm", placeholder: n.placeholder, value: g, disabled: t, onChange: o }), e[2] = t, e[3] = n.label, e[4] = n.placeholder, e[5] = g, e[6] = o, e[7] = u) : u = e[7], u;
678
- }
679
- if (n.type === "select" || n.type === "multi-select") {
680
- const g = n.id, o = n.label, u = n.description ?? "";
681
- let b;
682
- e[8] !== n.type || e[9] !== a ? (b = a ?? (n.type === "multi-select" ? [] : ""), e[8] = n.type, e[9] = a, e[10] = b) : b = e[10];
683
- let h;
684
- e[11] !== n.options ? (h = n.options ?? [], e[11] = n.options, e[12] = h) : h = e[12];
685
- let l;
686
- e[13] !== h ? (l = h.map(on), e[13] = h, e[14] = l) : l = e[14];
687
- const m = n.type === "multi-select", x = n.placeholder ?? n.label, C = !n.required;
688
- let w;
689
- e[15] !== i ? (w = (P, E) => i(E), e[15] = i, e[16] = w) : w = e[16];
690
- let D;
691
- return e[17] !== t || e[18] !== n.id || e[19] !== n.label || e[20] !== u || e[21] !== b || e[22] !== l || e[23] !== m || e[24] !== x || e[25] !== C || e[26] !== w ? (D = /* @__PURE__ */ d(Dt, { hideLabel: !0, id: g, name: o, description: u, defaultValue: b, options: l, multiSelect: m, placeholder: x, clearable: C, readOnly: t, onChange: w }), e[17] = t, e[18] = n.id, e[19] = n.label, e[20] = u, e[21] = b, e[22] = l, e[23] = m, e[24] = x, e[25] = C, e[26] = w, e[27] = D) : D = e[27], D;
692
- }
693
- if (n.type === "boolean") {
694
- let g;
695
- e[28] !== i || e[29] !== a ? (g = () => i(a !== !0), e[28] = i, e[29] = a, e[30] = g) : g = e[30];
696
- let o;
697
- return e[31] !== t || e[32] !== n.label || e[33] !== g ? (o = /* @__PURE__ */ d(me, { size: "sm", variant: "outline", disabled: t, onClick: g, children: n.label }), e[31] = t, e[32] = n.label, e[33] = g, e[34] = o) : o = e[34], o;
698
- }
699
- const s = n.type === "number" ? "number" : "text", p = typeof a == "string" || typeof a == "number" ? a : "";
700
- let c;
701
- e[35] !== n.type || e[36] !== i ? (c = (g) => i(n.type === "number" && g.target.value ? Number(g.target.value) : g.target.value), e[35] = n.type, e[36] = i, e[37] = c) : c = e[37];
702
- let f;
703
- return e[38] !== t || e[39] !== n.label || e[40] !== n.placeholder || e[41] !== s || e[42] !== p || e[43] !== c ? (f = /* @__PURE__ */ d(it, { "aria-label": n.label, size: "sm", type: s, placeholder: n.placeholder, value: p, disabled: t, onChange: c }), e[38] = t, e[39] = n.label, e[40] = n.placeholder, e[41] = s, e[42] = p, e[43] = c, e[44] = f) : f = e[44], f;
704
- }, rn = (r) => {
705
- const e = M(20), {
706
- disabled: t,
707
- field: n,
708
- removeLabel: a,
709
- value: i,
710
- onChange: s
711
- } = r;
712
- if (n.type === "files") {
713
- let u;
714
- return e[0] !== t || e[1] !== n || e[2] !== s || e[3] !== a || e[4] !== i ? (u = /* @__PURE__ */ d(tn, { disabled: t, field: n, removeLabel: a, value: i, onChange: s }), e[0] = t, e[1] = n, e[2] = s, e[3] = a, e[4] = i, e[5] = u) : u = e[5], u;
715
- }
716
- if (n.type === "markdown") {
717
- let u;
718
- return e[6] !== t || e[7] !== n || e[8] !== s ? (u = /* @__PURE__ */ d(en, { disabled: t, field: n, onChange: s }), e[6] = t, e[7] = n, e[8] = s, e[9] = u) : u = e[9], u;
719
- }
720
- const p = `${n.label}${n.required ? " *" : ""}`;
721
- let c;
722
- e[10] !== p ? (c = /* @__PURE__ */ d(_, { textStyle: "label/S/medium", children: p }), e[10] = p, e[11] = c) : c = e[11];
723
- let f;
724
- e[12] !== n.description ? (f = n.description ? /* @__PURE__ */ d(_, { textStyle: "paragraph/XS/regular", color: "fg.muted", children: n.description }) : null, e[12] = n.description, e[13] = f) : f = e[13];
725
- let g;
726
- e[14] !== r ? (g = /* @__PURE__ */ d(nn, { ...r }), e[14] = r, e[15] = g) : g = e[15];
727
- let o;
728
- return e[16] !== c || e[17] !== f || e[18] !== g ? (o = /* @__PURE__ */ B(q, { gap: "2xs", children: [
729
- c,
730
- f,
731
- g
732
- ] }), e[16] = c, e[17] = f, e[18] = g, e[19] = o) : o = e[19], o;
874
+ //#endregion
875
+ //#region src/components/kanban-renderer/kanban-renderer-create-field.tsx
876
+ var st = (e) => {
877
+ let t = Y(7), { disabled: n, field: r, onChange: i } = e, a = typeof r.defaultValue == "string" ? r.defaultValue : "", o = !n, s;
878
+ t[0] === i ? s = t[1] : (s = (e) => i(e), t[0] = i, t[1] = s);
879
+ let c;
880
+ return t[2] !== r.placeholder || t[3] !== a || t[4] !== o || t[5] !== s ? (c = /* @__PURE__ */ X(ne, {
881
+ defaultState: a,
882
+ isEditable: o,
883
+ placeholder: r.placeholder,
884
+ autoFocus: !0,
885
+ onChange: s
886
+ }), t[2] = r.placeholder, t[3] = a, t[4] = o, t[5] = s, t[6] = c) : c = t[6], c;
887
+ }, ct = (e) => {
888
+ let t = Y(24), { disabled: n, field: r, removeLabel: i, value: o, onChange: s } = e, c = ge(null), l;
889
+ t[0] === o ? l = t[1] : (l = Array.isArray(o) ? o : [], t[0] = o, t[1] = l);
890
+ let u = l, d = r.multiple !== !1, f;
891
+ t[2] !== r.multiple || t[3] !== u || t[4] !== s ? (f = (e) => {
892
+ let t = Array.from(e.target.files ?? []);
893
+ s(r.multiple === !1 ? t.slice(0, 1) : [...u, ...t]), e.target.value = "";
894
+ }, t[2] = r.multiple, t[3] = u, t[4] = s, t[5] = f) : f = t[5];
895
+ let p;
896
+ t[6] !== r.accept || t[7] !== d || t[8] !== f ? (p = /* @__PURE__ */ X("input", {
897
+ ref: c,
898
+ hidden: !0,
899
+ type: "file",
900
+ accept: r.accept,
901
+ multiple: d,
902
+ onChange: f
903
+ }), t[6] = r.accept, t[7] = d, t[8] = f, t[9] = p) : p = t[9];
904
+ let m, h;
905
+ t[10] === Symbol.for("react.memo_cache_sentinel") ? (m = () => c.current?.click(), h = /* @__PURE__ */ X(U, {
906
+ as: xe,
907
+ boxSize: "4"
908
+ }), t[10] = m, t[11] = h) : (m = t[10], h = t[11]);
909
+ let g;
910
+ t[12] !== n || t[13] !== r.label ? (g = /* @__PURE__ */ Z(B, {
911
+ size: "xs",
912
+ variant: "ghost",
913
+ disabled: n,
914
+ onClick: m,
915
+ children: [h, r.label]
916
+ }), t[12] = n, t[13] = r.label, t[14] = g) : g = t[14];
917
+ let _;
918
+ t[15] !== n || t[16] !== u || t[17] !== s || t[18] !== i ? (_ = u.length > 0 ? /* @__PURE__ */ X(pe, {
919
+ gap: "2xs",
920
+ children: u.map((e, t) => /* @__PURE__ */ X(a, {
921
+ file: e,
922
+ disabled: n,
923
+ removeLabel: i,
924
+ onRemove: () => s(u.filter((e, n) => n !== t))
925
+ }, `${e.name}-${t.toString()}`))
926
+ }) : null, t[15] = n, t[16] = u, t[17] = s, t[18] = i, t[19] = _) : _ = t[19];
927
+ let v;
928
+ return t[20] !== p || t[21] !== g || t[22] !== _ ? (v = /* @__PURE__ */ Z(q, {
929
+ gap: "2xs",
930
+ align: "start",
931
+ children: [
932
+ p,
933
+ g,
934
+ _
935
+ ]
936
+ }), t[20] = p, t[21] = g, t[22] = _, t[23] = v) : v = t[23], v;
937
+ }, lt = (e) => {
938
+ let t = Y(45), { disabled: n, field: r, value: i, onChange: a } = e;
939
+ if (r.type === "longtext") {
940
+ let e = typeof i == "string" ? i : "", o;
941
+ t[0] === a ? o = t[1] : (o = (e) => a(e.target.value), t[0] = a, t[1] = o);
942
+ let s;
943
+ return t[2] !== n || t[3] !== r.label || t[4] !== r.placeholder || t[5] !== e || t[6] !== o ? (s = /* @__PURE__ */ X(de, {
944
+ "aria-label": r.label,
945
+ minH: "120px",
946
+ size: "sm",
947
+ placeholder: r.placeholder,
948
+ value: e,
949
+ disabled: n,
950
+ onChange: o
951
+ }), t[2] = n, t[3] = r.label, t[4] = r.placeholder, t[5] = e, t[6] = o, t[7] = s) : s = t[7], s;
952
+ }
953
+ if (r.type === "select" || r.type === "multi-select") {
954
+ let e = r.id, o = r.label, s = r.description ?? "", c;
955
+ t[8] !== r.type || t[9] !== i ? (c = i ?? (r.type === "multi-select" ? [] : ""), t[8] = r.type, t[9] = i, t[10] = c) : c = t[10];
956
+ let l;
957
+ t[11] === r.options ? l = t[12] : (l = r.options ?? [], t[11] = r.options, t[12] = l);
958
+ let u;
959
+ t[13] === l ? u = t[14] : (u = l.map(dt), t[13] = l, t[14] = u);
960
+ let d = r.type === "multi-select", f = r.placeholder ?? r.label, p = !r.required, m;
961
+ t[15] === a ? m = t[16] : (m = (e, t) => a(t), t[15] = a, t[16] = m);
962
+ let h;
963
+ return t[17] !== n || t[18] !== r.id || t[19] !== r.label || t[20] !== s || t[21] !== c || t[22] !== u || t[23] !== d || t[24] !== f || t[25] !== p || t[26] !== m ? (h = /* @__PURE__ */ X(I, {
964
+ hideLabel: !0,
965
+ id: e,
966
+ name: o,
967
+ description: s,
968
+ defaultValue: c,
969
+ options: u,
970
+ multiSelect: d,
971
+ placeholder: f,
972
+ clearable: p,
973
+ readOnly: n,
974
+ onChange: m
975
+ }), t[17] = n, t[18] = r.id, t[19] = r.label, t[20] = s, t[21] = c, t[22] = u, t[23] = d, t[24] = f, t[25] = p, t[26] = m, t[27] = h) : h = t[27], h;
976
+ }
977
+ if (r.type === "boolean") {
978
+ let e;
979
+ t[28] !== a || t[29] !== i ? (e = () => a(i !== !0), t[28] = a, t[29] = i, t[30] = e) : e = t[30];
980
+ let o;
981
+ return t[31] !== n || t[32] !== r.label || t[33] !== e ? (o = /* @__PURE__ */ X(B, {
982
+ size: "sm",
983
+ variant: "outline",
984
+ disabled: n,
985
+ onClick: e,
986
+ children: r.label
987
+ }), t[31] = n, t[32] = r.label, t[33] = e, t[34] = o) : o = t[34], o;
988
+ }
989
+ let o = r.type === "number" ? "number" : "text", s = typeof i == "string" || typeof i == "number" ? i : "", c;
990
+ t[35] !== r.type || t[36] !== a ? (c = (e) => a(r.type === "number" && e.target.value ? Number(e.target.value) : e.target.value), t[35] = r.type, t[36] = a, t[37] = c) : c = t[37];
991
+ let l;
992
+ return t[38] !== n || t[39] !== r.label || t[40] !== r.placeholder || t[41] !== o || t[42] !== s || t[43] !== c ? (l = /* @__PURE__ */ X(ue, {
993
+ "aria-label": r.label,
994
+ size: "sm",
995
+ type: o,
996
+ placeholder: r.placeholder,
997
+ value: s,
998
+ disabled: n,
999
+ onChange: c
1000
+ }), t[38] = n, t[39] = r.label, t[40] = r.placeholder, t[41] = o, t[42] = s, t[43] = c, t[44] = l) : l = t[44], l;
1001
+ }, ut = (e) => {
1002
+ let t = Y(20), { disabled: n, field: r, removeLabel: i, value: a, onChange: o } = e;
1003
+ if (r.type === "files") {
1004
+ let e;
1005
+ return t[0] !== n || t[1] !== r || t[2] !== o || t[3] !== i || t[4] !== a ? (e = /* @__PURE__ */ X(ct, {
1006
+ disabled: n,
1007
+ field: r,
1008
+ removeLabel: i,
1009
+ value: a,
1010
+ onChange: o
1011
+ }), t[0] = n, t[1] = r, t[2] = o, t[3] = i, t[4] = a, t[5] = e) : e = t[5], e;
1012
+ }
1013
+ if (r.type === "markdown") {
1014
+ let e;
1015
+ return t[6] !== n || t[7] !== r || t[8] !== o ? (e = /* @__PURE__ */ X(st, {
1016
+ disabled: n,
1017
+ field: r,
1018
+ onChange: o
1019
+ }), t[6] = n, t[7] = r, t[8] = o, t[9] = e) : e = t[9], e;
1020
+ }
1021
+ let s = `${r.label}${r.required ? " *" : ""}`, c;
1022
+ t[10] === s ? c = t[11] : (c = /* @__PURE__ */ X(J, {
1023
+ textStyle: "label/S/medium",
1024
+ children: s
1025
+ }), t[10] = s, t[11] = c);
1026
+ let l;
1027
+ t[12] === r.description ? l = t[13] : (l = r.description ? /* @__PURE__ */ X(J, {
1028
+ textStyle: "paragraph/XS/regular",
1029
+ color: "fg.muted",
1030
+ children: r.description
1031
+ }) : null, t[12] = r.description, t[13] = l);
1032
+ let u;
1033
+ t[14] === e ? u = t[15] : (u = /* @__PURE__ */ X(lt, { ...e }), t[14] = e, t[15] = u);
1034
+ let d;
1035
+ return t[16] !== c || t[17] !== l || t[18] !== u ? (d = /* @__PURE__ */ Z(q, {
1036
+ gap: "2xs",
1037
+ children: [
1038
+ c,
1039
+ l,
1040
+ u
1041
+ ]
1042
+ }), t[16] = c, t[17] = l, t[18] = u, t[19] = d) : d = t[19], d;
733
1043
  };
734
- function on(r) {
735
- return {
736
- id: r.value,
737
- name: r.label,
738
- icon: r.icon ?? void 0,
739
- color: r.color
740
- };
1044
+ function dt(e) {
1045
+ return {
1046
+ id: e.value,
1047
+ name: e.label,
1048
+ icon: e.icon ?? void 0,
1049
+ color: e.color
1050
+ };
741
1051
  }
742
- const ln = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type === "boolean" ? !1 : "", Be = (r) => Object.fromEntries(r.map((e) => [e.id, e.defaultValue ?? ln(e)])), an = (r, e) => r.required ? Array.isArray(e) ? e.length > 0 : typeof e == "string" ? e.trim().length > 0 : e != null : !0, De = (r) => r.filter((e) => e.editable), ze = (r, e, t) => Object.fromEntries(r.map((n) => [n.id, n.id === e ? t : n.type.kind === "enum-multi" ? [] : ""])), sn = (r, e) => {
743
- const t = {
744
- id: r.id,
745
- name: r.label,
746
- description: ""
747
- };
748
- if (r.type.kind === "enum" || r.type.kind === "enum-multi") {
749
- const n = r.type.kind === "enum-multi";
750
- return {
751
- ...t,
752
- type: "selection",
753
- defaultValue: n ? [] : "",
754
- multiSelect: n,
755
- // The trigger shows the value alone; the attribute name is the placeholder.
756
- placeholder: r.label,
757
- clearable: !e,
758
- // The column already chose this value, and the create command reads it
759
- // from the column param — editing it here would be ignored.
760
- disabled: e,
761
- options: Ue(r.type).map((a) => ({
762
- id: a.value,
763
- name: a.label,
764
- icon: a.icon ?? void 0,
765
- color: a.color
766
- }))
767
- };
768
- }
769
- return r.type.kind === "number" ? {
770
- ...t,
771
- type: "number",
772
- defaultValue: 0
773
- } : {
774
- ...t,
775
- type: "text",
776
- defaultValue: "",
777
- singleLine: !0
778
- };
779
- }, dn = (r) => {
780
- const {
781
- open: e,
782
- columnId: t,
783
- columnAttributeId: n,
784
- attributes: a,
785
- config: i,
786
- onClose: s,
787
- onSubmit: p
788
- } = r, [c, f] = W({}), [g, o] = W({}), [u, b] = W(!1), [h, l] = W(""), [m, x] = W(0), C = Ve(!1), w = De(a);
789
- Se(() => {
790
- if (!e) {
791
- C.current = !1;
792
- return;
793
- }
794
- C.current || (C.current = !0, f(Be(i.fields)), o(ze(De(a), n, t)), l(""), x((v) => v + 1));
795
- }, [a, n, t, i.fields, e]), Se(() => {
796
- if (!e) return;
797
- const v = Be(i.fields), k = new Set(i.fields.map((I) => I.id));
798
- f((I) => {
799
- const y = Object.entries(I).filter(([R]) => k.has(R)), S = Object.entries(v).filter(([R]) => !(R in I));
800
- return S.length === 0 && y.length === Object.keys(I).length ? I : {
801
- ...Object.fromEntries(S),
802
- ...Object.fromEntries(y)
803
- };
804
- });
805
- }, [i.fields, e]), Se(() => {
806
- if (!e) return;
807
- const v = De(a), k = ze(v, n, t), I = new Set(v.map((y) => y.id));
808
- o((y) => {
809
- const S = Object.entries(y).filter(([G]) => I.has(G)), R = Object.entries(k).filter(([G]) => !(G in y));
810
- return R.length === 0 && S.length === Object.keys(y).length ? y : {
811
- ...Object.fromEntries(R),
812
- ...Object.fromEntries(S)
813
- };
814
- });
815
- }, [a, e, t, n]);
816
- const D = () => {
817
- u || s();
818
- }, P = i.fields.every((v) => an(v, c[v.id])), E = async () => {
819
- if (!(!P || u)) {
820
- b(!0), l("");
821
- try {
822
- const v = new Set(i.fields.filter((y) => y.type === "files").map((y) => y.id)), k = [...v].flatMap((y) => Array.isArray(c[y]) ? c[y] : []), I = Object.fromEntries(Object.entries(c).filter(([y]) => !v.has(y)));
823
- await p({
824
- columnId: t,
825
- columnAttributeId: n,
826
- values: I,
827
- attributeValues: g,
828
- files: k
829
- }), s();
830
- } catch (v) {
831
- l(v instanceof Error ? v.message : i.labels.submitError);
832
- } finally {
833
- b(!1);
834
- }
835
- }
836
- };
837
- return /* @__PURE__ */ B(ne.Root, { open: e, size: "lg", scrollBehavior: "inside", onOpenChange: (v) => !v.open && D(), children: [
838
- /* @__PURE__ */ d(ne.Backdrop, {}),
839
- /* @__PURE__ */ d(ne.Positioner, { children: /* @__PURE__ */ B(ne.Content, { maxH: "calc(100% - 48px)", onKeyDownCapture: (v) => Ct(v, () => {
840
- E();
841
- }, P && !u), children: [
842
- /* @__PURE__ */ B(ne.Header, { children: [
843
- /* @__PURE__ */ d(_, { textStyle: "heading/M/semibold", children: i.title }),
844
- /* @__PURE__ */ d(ne.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ d(st, { size: "sm", disabled: u }) })
845
- ] }),
846
- /* @__PURE__ */ d(ne.Body, { children: /* @__PURE__ */ B(q, { gap: "md", children: [
847
- i.fields.map((v) => /* @__PURE__ */ d(rn, { field: v, removeLabel: i.labels.removeFile, value: c[v.id], disabled: u, onChange: (k) => f((I) => ({
848
- ...I,
849
- [v.id]: k
850
- })) }, `${v.id}:${m.toString()}`)),
851
- w.length > 0 ? /* @__PURE__ */ B(q, { gap: "2xs", children: [
852
- /* @__PURE__ */ d(_, { textStyle: "label/S/medium", children: i.labels.properties }),
853
- /* @__PURE__ */ d(Nt, { variant: "small", params: w.map((v) => sn(v, v.id === n)), defaultValues: g, readOnly: u, onChange: (v, k) => o((I) => ({
854
- ...I,
855
- [v]: k
856
- })) })
857
- ] }) : null,
858
- h ? /* @__PURE__ */ d(_, { textStyle: "paragraph/S/regular", color: "fg.error", children: h }) : null
859
- ] }) }),
860
- /* @__PURE__ */ d(ne.Footer, { justifyContent: "end", children: /* @__PURE__ */ B(X, { gap: "2", children: [
861
- /* @__PURE__ */ d(me, { size: "sm", variant: "ghost", disabled: u, onClick: D, children: i.labels.cancel }),
862
- /* @__PURE__ */ d(me, { size: "sm", variant: "primary", disabled: !P, loading: u, onClick: () => {
863
- E();
864
- }, children: i.submitLabel })
865
- ] }) })
866
- ] }) })
867
- ] });
868
- }, cn = (r) => {
869
- const {
870
- settings: e,
871
- visibleRows: t,
872
- grouped: n,
873
- attributes: a,
874
- onRowClick: i,
875
- onAttributeChange: s,
876
- onReorder: p,
877
- getRowContextMenuActions: c
878
- } = r, f = e.ordering.attributeId === Ie, g = e.displayProperties.filter((l) => l !== "id"), o = (l, m) => {
879
- const x = Le(a, l), C = x ? _e(x.type, m) : void 0;
880
- return {
881
- statusColorPalette: C?.color,
882
- statusIcon: be(C?.icon)
883
- };
884
- }, u = (l) => {
885
- const m = l.attributes.status;
886
- return typeof m != "string" ? {} : o("status", m);
887
- }, b = (l, m) => {
888
- const x = typeof l.attributes.id == "string" ? l.attributes.id : void 0;
889
- return {
890
- id: l.id,
891
- eyebrow: x && x !== l.title ? x : void 0,
892
- title: l.title,
893
- ...u(l),
894
- badges: Me(l, a, g),
895
- customSlots: Ke(l, a, g),
896
- contextMenuActions: c?.(l),
897
- onClick: () => i?.(l),
898
- onBadgeChange: s ? (C, w) => s(l.id, C, w) : void 0,
899
- draggable: !!(s || p),
900
- onDropRow: f && (s || p) ? (C) => {
901
- const w = Ye(e.columnGrouping, m);
902
- w && e.columnGrouping !== Z && s && s(C, e.columnGrouping, w), e.rowGrouping !== Z && m?.rowKey && s && s(C, e.rowGrouping, m.rowKey), p?.(C, l.id);
903
- } : void 0
904
- };
905
- }, h = (l, m) => {
906
- const x = m ? e.rowGrouping : e.columnGrouping;
907
- return {
908
- id: m ? `group::${m.columnKey}::${l.key}` : `group::${l.key}`,
909
- title: l.label,
910
- isGroup: !0,
911
- countBadge: l.rows.length,
912
- ...o(x, l.key),
913
- onDropRow: s && e.columnGrouping !== Z ? (C) => {
914
- const w = m?.columnKey ?? l.key;
915
- s(C, e.columnGrouping, w), e.rowGrouping !== Z && m && s(C, e.rowGrouping, l.key);
916
- } : void 0,
917
- children: ge(l.rows, e.ordering, a).map((C) => b(C, {
918
- columnKey: m?.columnKey ?? l.key,
919
- rowKey: m ? l.key : void 0
920
- }))
921
- };
922
- };
923
- return e.columnGrouping === Z ? ge(t, e.ordering, a).map((l) => b(l)) : n.map((l) => l.subgroups.length > 0 ? {
924
- id: `group::${l.key}`,
925
- title: l.label,
926
- isGroup: !0,
927
- countBadge: l.rows.length,
928
- ...o(e.columnGrouping, l.key),
929
- onDropRow: s ? (m) => s(m, e.columnGrouping, l.key) : void 0,
930
- children: l.subgroups.map((m) => h(m, {
931
- columnKey: l.key
932
- }))
933
- } : h(l));
934
- }, un = (r) => {
935
- const e = r.attributes.id;
936
- return typeof e == "string" && e ? e : r.id;
937
- }, En = (r) => {
938
- const e = M(59), {
939
- rows: t,
940
- storageKey: n,
941
- attributes: a,
942
- selectedRowId: i,
943
- emptyState: s,
944
- emptyTitle: p,
945
- emptyDescription: c,
946
- defaultSettings: f,
947
- defaultFilters: g,
948
- defaultViews: o,
949
- defaultActiveViewId: u,
950
- onRowClick: b,
951
- onAttributeChange: h,
952
- onReorder: l,
953
- createRow: m,
954
- onCreateRow: x,
955
- onColumnAction: C,
956
- getBoardColumnConfig: w,
957
- getRowContextMenuActions: D,
958
- hideToolbar: P,
959
- toolbarLeading: E
960
- } = r, v = i === void 0 ? null : i, k = p === void 0 ? "No rows found" : p, I = c === void 0 ? "Try changing filters or display settings." : c, y = P === void 0 ? !1 : P, S = Je(a), [R, G] = W(null);
961
- let $;
962
- e[0] !== u || e[1] !== g || e[2] !== f || e[3] !== o ? ($ = {
963
- settings: f,
964
- filters: g,
965
- views: o,
966
- activeViewId: u
967
- }, e[0] = u, e[1] = g, e[2] = f, e[3] = o, e[4] = $) : $ = e[4];
968
- const O = $, T = pe(n, pn, O), A = pe(n, gn, O), z = pe(n, fn, O), U = pe(n, mn, O);
969
- let V, ee;
970
- if (e[5] !== S || e[6] !== A || e[7] !== w || e[8] !== D || e[9] !== h || e[10] !== l || e[11] !== b || e[12] !== t || e[13] !== T) {
971
- const se = Qe(t, A, S), de = Ze(T.columnGrouping, S, A), le = et(se, {
972
- attributes: S,
973
- columnGrouping: T.columnGrouping,
974
- rowGrouping: T.rowGrouping,
975
- knownColumnKeys: de
976
- });
977
- V = cn({
978
- settings: T,
979
- visibleRows: se,
980
- grouped: le,
981
- attributes: S,
982
- onRowClick: b,
983
- onAttributeChange: h,
984
- onReorder: l,
985
- getRowContextMenuActions: D
986
- });
987
- const Ge = T.displayProperties.filter(bn), Re = (J) => J.map((L) => ({
988
- id: L.id,
989
- contextMenuActions: D?.(L),
990
- cardProps: {
991
- eyebrow: T.displayProperties.includes("id") ? un(L) : void 0,
992
- title: L.title,
993
- badges: Me(L, S, Ge),
994
- customSlots: Ke(L, S, Ge),
995
- onBadgeChange: h ? (xe, ue) => h(L.id, xe, ue) : void 0,
996
- onClick: () => b?.(L)
997
- }
998
- })), Te = Le(S, T.columnGrouping);
999
- ee = le.map((J) => {
1000
- const L = w?.(J.key) ?? {}, xe = ge(J.rows, T.ordering, S), ue = Te ? _e(Te.type, J.key) : void 0, qe = J.subgroups.length > 0 ? J.subgroups.map((Ce) => ({
1001
- key: Ce.key,
1002
- label: Ce.label,
1003
- items: Re(ge(Ce.rows, T.ordering, S))
1004
- })) : void 0;
1005
- return {
1006
- id: J.key,
1007
- label: J.label,
1008
- color: L.color ?? ue?.color,
1009
- icon: ue?.icon ?? "circle",
1010
- canDragIn: L.canDragIn ?? !1,
1011
- canDragOut: L.canDragOut ?? !1,
1012
- canCreate: L.canCreate ?? !1,
1013
- actions: L.actions ?? [],
1014
- items: Re(xe),
1015
- groups: qe
1016
- };
1017
- }), e[5] = S, e[6] = A, e[7] = w, e[8] = D, e[9] = h, e[10] = l, e[11] = b, e[12] = t, e[13] = T, e[14] = V, e[15] = ee;
1018
- } else
1019
- V = e[14], ee = e[15];
1020
- const oe = ee;
1021
- let te;
1022
- e[16] !== h || e[17] !== l || e[18] !== T ? (te = async (se, de, le) => {
1023
- await wt({
1024
- settings: T,
1025
- rowId: se,
1026
- targetColumnId: de,
1027
- targetGroupKey: le?.targetGroupKey,
1028
- beforeItemId: le?.beforeItemId,
1029
- onAttributeChange: h,
1030
- onReorder: l
1031
- });
1032
- }, e[16] = h, e[17] = l, e[18] = T, e[19] = te) : te = e[19];
1033
- const H = te;
1034
- let Y;
1035
- e[20] !== h || e[21] !== l || e[22] !== T ? (Y = async (se, de, le) => {
1036
- await kt({
1037
- settings: T,
1038
- rowId: se,
1039
- targetGroupKey: de,
1040
- beforeItemId: le?.beforeItemId,
1041
- onAttributeChange: h,
1042
- onReorder: l
1043
- });
1044
- }, e[20] = h, e[21] = l, e[22] = T, e[23] = Y) : Y = e[23];
1045
- const K = Y;
1046
- let j;
1047
- e[24] !== S || e[25] !== u || e[26] !== g || e[27] !== f || e[28] !== o || e[29] !== y || e[30] !== t || e[31] !== n || e[32] !== E ? (j = y ? null : /* @__PURE__ */ d(tt, { rows: t, storageKey: n, attributes: S, defaultSettings: f, defaultFilters: g, defaultViews: o, defaultActiveViewId: u, leading: E }), e[24] = S, e[25] = u, e[26] = g, e[27] = f, e[28] = o, e[29] = y, e[30] = t, e[31] = n, e[32] = E, e[33] = j) : j = e[33];
1048
- const ye = m && x ? G : void 0, ve = `${T.columnGrouping}:${T.rowGrouping}`;
1049
- let ae;
1050
- e[34] !== oe || e[35] !== I || e[36] !== s || e[37] !== k || e[38] !== z || e[39] !== H || e[40] !== K || e[41] !== V || e[42] !== C || e[43] !== v || e[44] !== U || e[45] !== T.viewMode || e[46] !== ve || e[47] !== ye ? (ae = /* @__PURE__ */ d(jt, { viewMode: T.viewMode, boardColumns: oe, listItems: V, listExpandedGroups: z, selectedRowId: v, emptyState: s, emptyTitle: k, emptyDescription: I, onBoardMoveItem: H, onBoardMoveToGroup: K, onCreateRow: ye, onColumnAction: C, onListExpandedGroupChange: U, listKey: ve }), e[34] = oe, e[35] = I, e[36] = s, e[37] = k, e[38] = z, e[39] = H, e[40] = K, e[41] = V, e[42] = C, e[43] = v, e[44] = U, e[45] = T.viewMode, e[46] = ve, e[47] = ye, e[48] = ae) : ae = e[48];
1051
- let ie;
1052
- e[49] !== S || e[50] !== R || e[51] !== m || e[52] !== x || e[53] !== T.columnGrouping ? (ie = m && x && R ? /* @__PURE__ */ d(dn, { open: !0, columnId: R, columnAttributeId: T.columnGrouping === Z ? void 0 : T.columnGrouping, attributes: S, config: m, onClose: () => G(null), onSubmit: x }) : null, e[49] = S, e[50] = R, e[51] = m, e[52] = x, e[53] = T.columnGrouping, e[54] = ie) : ie = e[54];
1053
- let ce;
1054
- return e[55] !== ae || e[56] !== ie || e[57] !== j ? (ce = /* @__PURE__ */ B(q, { "data-testid": "kanban-renderer", height: "100%", minH: "0", gap: "0", background: "bg", overflow: "hidden", children: [
1055
- j,
1056
- ae,
1057
- ie
1058
- ] }), e[55] = ae, e[56] = ie, e[57] = j, e[58] = ce) : ce = e[58], ce;
1052
+ //#endregion
1053
+ //#region src/components/kanban-renderer/kanban-renderer-create-dialog.tsx
1054
+ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !== "boolean" && "", pt = (e) => Object.fromEntries(e.map((e) => [e.id, e.defaultValue ?? ft(e)])), mt = (e, t) => e.required ? Array.isArray(t) ? t.length > 0 : typeof t == "string" ? t.trim().length > 0 : t != null : !0, ht = (e) => e.filter((e) => e.editable), gt = (e, t, n) => Object.fromEntries(e.map((e) => [e.id, e.id === t ? n : e.type.kind === "enum-multi" ? [] : ""])), _t = (e, t) => {
1055
+ let n = {
1056
+ id: e.id,
1057
+ name: e.label,
1058
+ description: ""
1059
+ };
1060
+ if (e.type.kind === "enum" || e.type.kind === "enum-multi") {
1061
+ let r = e.type.kind === "enum-multi";
1062
+ return {
1063
+ ...n,
1064
+ type: "selection",
1065
+ defaultValue: r ? [] : "",
1066
+ multiSelect: r,
1067
+ placeholder: e.label,
1068
+ clearable: !t,
1069
+ disabled: t,
1070
+ options: D(e.type).map((e) => ({
1071
+ id: e.value,
1072
+ name: e.label,
1073
+ icon: e.icon ?? void 0,
1074
+ color: e.color
1075
+ }))
1076
+ };
1077
+ }
1078
+ return e.type.kind === "number" ? {
1079
+ ...n,
1080
+ type: "number",
1081
+ defaultValue: 0
1082
+ } : {
1083
+ ...n,
1084
+ type: "text",
1085
+ defaultValue: "",
1086
+ singleLine: !0
1087
+ };
1088
+ }, vt = (e) => {
1089
+ let { open: t, columnId: n, columnAttributeId: r, attributes: i, config: a, onClose: s, onSubmit: c } = e, [l, u] = Q({}), [d, f] = Q({}), [p, m] = Q(!1), [h, g] = Q(""), [_, v] = Q(0), y = ge(!1), b = ht(i);
1090
+ he(() => {
1091
+ if (!t) {
1092
+ y.current = !1;
1093
+ return;
1094
+ }
1095
+ y.current || (y.current = !0, u(pt(a.fields)), f(gt(ht(i), r, n)), g(""), v((e) => e + 1));
1096
+ }, [
1097
+ i,
1098
+ r,
1099
+ n,
1100
+ a.fields,
1101
+ t
1102
+ ]), he(() => {
1103
+ if (!t) return;
1104
+ let e = pt(a.fields), n = new Set(a.fields.map((e) => e.id));
1105
+ u((t) => {
1106
+ let r = Object.entries(t).filter(([e]) => n.has(e)), i = Object.entries(e).filter(([e]) => !(e in t));
1107
+ return i.length === 0 && r.length === Object.keys(t).length ? t : {
1108
+ ...Object.fromEntries(i),
1109
+ ...Object.fromEntries(r)
1110
+ };
1111
+ });
1112
+ }, [a.fields, t]), he(() => {
1113
+ if (!t) return;
1114
+ let e = ht(i), a = gt(e, r, n), o = new Set(e.map((e) => e.id));
1115
+ f((e) => {
1116
+ let t = Object.entries(e).filter(([e]) => o.has(e)), n = Object.entries(a).filter(([t]) => !(t in e));
1117
+ return n.length === 0 && t.length === Object.keys(e).length ? e : {
1118
+ ...Object.fromEntries(n),
1119
+ ...Object.fromEntries(t)
1120
+ };
1121
+ });
1122
+ }, [
1123
+ i,
1124
+ t,
1125
+ n,
1126
+ r
1127
+ ]);
1128
+ let x = () => {
1129
+ p || s();
1130
+ }, S = a.fields.every((e) => mt(e, l[e.id])), C = async () => {
1131
+ if (S && !p) {
1132
+ m(!0), g("");
1133
+ try {
1134
+ let e = new Set(a.fields.filter((e) => e.type === "files").map((e) => e.id)), t = [...e].flatMap((e) => Array.isArray(l[e]) ? l[e] : []), i = Object.fromEntries(Object.entries(l).filter(([t]) => !e.has(t)));
1135
+ await c({
1136
+ columnId: n,
1137
+ columnAttributeId: r,
1138
+ values: i,
1139
+ attributeValues: d,
1140
+ files: t
1141
+ }), s();
1142
+ } catch (e) {
1143
+ g(e instanceof Error ? e.message : a.labels.submitError);
1144
+ } finally {
1145
+ m(!1);
1146
+ }
1147
+ }
1148
+ };
1149
+ return /* @__PURE__ */ Z(V.Root, {
1150
+ open: t,
1151
+ size: "lg",
1152
+ scrollBehavior: "inside",
1153
+ onOpenChange: (e) => !e.open && x(),
1154
+ children: [/* @__PURE__ */ X(V.Backdrop, {}), /* @__PURE__ */ X(V.Positioner, { children: /* @__PURE__ */ Z(V.Content, {
1155
+ maxH: "calc(100% - 48px)",
1156
+ onKeyDownCapture: (e) => o(e, () => void C(), S && !p),
1157
+ children: [
1158
+ /* @__PURE__ */ Z(V.Header, { children: [/* @__PURE__ */ X(V.Title, { children: a.title }), /* @__PURE__ */ X(V.CloseTrigger, {
1159
+ asChild: !0,
1160
+ children: /* @__PURE__ */ X(ce, {
1161
+ size: "sm",
1162
+ disabled: p
1163
+ })
1164
+ })] }),
1165
+ /* @__PURE__ */ X(V.Body, { children: /* @__PURE__ */ Z(q, {
1166
+ gap: "md",
1167
+ children: [
1168
+ a.fields.map((e) => /* @__PURE__ */ X(ut, {
1169
+ field: e,
1170
+ removeLabel: a.labels.removeFile,
1171
+ value: l[e.id],
1172
+ disabled: p,
1173
+ onChange: (t) => u((n) => ({
1174
+ ...n,
1175
+ [e.id]: t
1176
+ }))
1177
+ }, `${e.id}:${_.toString()}`)),
1178
+ b.length > 0 ? /* @__PURE__ */ Z(q, {
1179
+ gap: "2xs",
1180
+ children: [/* @__PURE__ */ X(J, {
1181
+ textStyle: "label/S/medium",
1182
+ children: a.labels.properties
1183
+ }), /* @__PURE__ */ X($e, {
1184
+ variant: "small",
1185
+ params: b.map((e) => _t(e, e.id === r)),
1186
+ defaultValues: d,
1187
+ readOnly: p,
1188
+ onChange: (e, t) => f((n) => ({
1189
+ ...n,
1190
+ [e]: t
1191
+ }))
1192
+ })]
1193
+ }) : null,
1194
+ h ? /* @__PURE__ */ X(J, {
1195
+ textStyle: "paragraph/S/regular",
1196
+ color: "fg.error",
1197
+ children: h
1198
+ }) : null
1199
+ ]
1200
+ }) }),
1201
+ /* @__PURE__ */ X(V.Footer, {
1202
+ justifyContent: "end",
1203
+ children: /* @__PURE__ */ Z(H, {
1204
+ gap: "2",
1205
+ children: [/* @__PURE__ */ X(B, {
1206
+ size: "sm",
1207
+ variant: "ghost",
1208
+ disabled: p,
1209
+ onClick: x,
1210
+ children: a.labels.cancel
1211
+ }), /* @__PURE__ */ X(B, {
1212
+ size: "sm",
1213
+ variant: "primary",
1214
+ disabled: !S,
1215
+ loading: p,
1216
+ onClick: () => void C(),
1217
+ children: a.submitLabel
1218
+ })]
1219
+ })
1220
+ })
1221
+ ]
1222
+ }) })]
1223
+ });
1224
+ }, yt = (e) => {
1225
+ let { settings: t, visibleRows: n, grouped: r, attributes: a, onRowClick: o, onAttributeChange: s, onReorder: c, getRowContextMenuActions: l } = e, u = t.ordering.attributeId === re, f = t.displayProperties.filter((e) => e !== "id"), p = (e, t) => {
1226
+ let n = k(a, e), r = n ? T(n.type, t) : void 0;
1227
+ return {
1228
+ statusColorPalette: r?.color,
1229
+ statusIcon: i(r?.icon)
1230
+ };
1231
+ }, m = (e) => {
1232
+ let t = e.attributes.status;
1233
+ return typeof t == "string" ? p("status", t) : {};
1234
+ }, h = (e, n) => {
1235
+ let r = typeof e.attributes.id == "string" ? e.attributes.id : void 0;
1236
+ return {
1237
+ id: e.id,
1238
+ eyebrow: r && r !== e.title ? r : void 0,
1239
+ title: e.title,
1240
+ ...m(e),
1241
+ badges: ae(e, a, f),
1242
+ customSlots: ee(e, a, f),
1243
+ contextMenuActions: l?.(e),
1244
+ onClick: () => o?.(e),
1245
+ onBadgeChange: s ? (t, n) => s(e.id, t, n) : void 0,
1246
+ draggable: !!(s || c),
1247
+ onDropRow: u && (s || c) ? (r) => {
1248
+ let i = w(t.columnGrouping, n);
1249
+ i && t.columnGrouping !== "none" && s && s(r, t.columnGrouping, i), t.rowGrouping !== "none" && n?.rowKey && s && s(r, t.rowGrouping, n.rowKey), c?.(r, e.id);
1250
+ } : void 0
1251
+ };
1252
+ }, g = (e, n) => {
1253
+ let r = n ? t.rowGrouping : t.columnGrouping;
1254
+ return {
1255
+ id: n ? `group::${n.columnKey}::${e.key}` : `group::${e.key}`,
1256
+ title: e.label,
1257
+ isGroup: !0,
1258
+ countBadge: e.rows.length,
1259
+ ...p(r, e.key),
1260
+ onDropRow: s && t.columnGrouping !== "none" ? (r) => {
1261
+ let i = n?.columnKey ?? e.key;
1262
+ s(r, t.columnGrouping, i), t.rowGrouping !== "none" && n && s(r, t.rowGrouping, e.key);
1263
+ } : void 0,
1264
+ children: d(e.rows, t.ordering, a).map((t) => h(t, {
1265
+ columnKey: n?.columnKey ?? e.key,
1266
+ rowKey: n ? e.key : void 0
1267
+ }))
1268
+ };
1269
+ };
1270
+ return t.columnGrouping === "none" ? d(n, t.ordering, a).map((e) => h(e)) : r.map((e) => e.subgroups.length > 0 ? {
1271
+ id: `group::${e.key}`,
1272
+ title: e.label,
1273
+ isGroup: !0,
1274
+ countBadge: e.rows.length,
1275
+ ...p(t.columnGrouping, e.key),
1276
+ onDropRow: s ? (n) => s(n, t.columnGrouping, e.key) : void 0,
1277
+ children: e.subgroups.map((t) => g(t, { columnKey: e.key }))
1278
+ } : g(e));
1279
+ }, bt = (e) => {
1280
+ let t = e.attributes.id;
1281
+ return typeof t == "string" && t ? t : e.id;
1282
+ }, xt = (e) => {
1283
+ let t = Y(62), { rows: n, storageKey: r, attributes: i, selectedRowId: a, emptyState: o, emptyTitle: s, emptyDescription: c, contentPlaceholder: l, defaultSettings: p, defaultFilters: m, defaultViews: h, defaultActiveViewId: _, onRowClick: y, onAttributeChange: x, onReorder: S, createRow: C, onCreateRow: w, onColumnAction: E, getBoardColumnConfig: D, getRowContextMenuActions: O, hideToolbar: A, toolbarLeading: j } = e, M = a === void 0 ? null : a, te = s === void 0 ? "No rows found" : s, ne = c === void 0 ? "Try changing filters or display settings." : c, re = A !== void 0 && A, N = f(i), [P, F] = Q(null), I;
1284
+ t[0] !== _ || t[1] !== m || t[2] !== p || t[3] !== h ? (I = {
1285
+ settings: p,
1286
+ filters: m,
1287
+ views: h,
1288
+ activeViewId: _
1289
+ }, t[0] = _, t[1] = m, t[2] = p, t[3] = h, t[4] = I) : I = t[4];
1290
+ let L = I, R = b(r, St, L), oe = b(r, Ct, L), se = b(r, wt, L), z = b(r, Tt, L), B, ce;
1291
+ if (t[5] !== N || t[6] !== oe || t[7] !== D || t[8] !== O || t[9] !== x || t[10] !== S || t[11] !== y || t[12] !== n || t[13] !== R) {
1292
+ let e = g(n, oe, N), r = ie(R.columnGrouping, N, oe), i = v(e, {
1293
+ attributes: N,
1294
+ columnGrouping: R.columnGrouping,
1295
+ rowGrouping: R.rowGrouping,
1296
+ knownColumnKeys: r
1297
+ });
1298
+ B = yt({
1299
+ settings: R,
1300
+ visibleRows: e,
1301
+ grouped: i,
1302
+ attributes: N,
1303
+ onRowClick: y,
1304
+ onAttributeChange: x,
1305
+ onReorder: S,
1306
+ getRowContextMenuActions: O
1307
+ });
1308
+ let a = R.displayProperties.filter(Et), o = (e) => e.map((e) => ({
1309
+ id: e.id,
1310
+ contextMenuActions: O?.(e),
1311
+ cardProps: {
1312
+ eyebrow: R.displayProperties.includes("id") ? bt(e) : void 0,
1313
+ title: e.title,
1314
+ badges: ae(e, N, a),
1315
+ customSlots: ee(e, N, a),
1316
+ onBadgeChange: x ? (t, n) => x(e.id, t, n) : void 0,
1317
+ onClick: () => y?.(e)
1318
+ }
1319
+ })), s = k(N, R.columnGrouping);
1320
+ ce = i.map((e) => {
1321
+ let t = D?.(e.key) ?? {}, n = d(e.rows, R.ordering, N), r = s ? T(s.type, e.key) : void 0, i = e.subgroups.length > 0 ? e.subgroups.map((e) => ({
1322
+ key: e.key,
1323
+ label: e.label,
1324
+ items: o(d(e.rows, R.ordering, N))
1325
+ })) : void 0;
1326
+ return {
1327
+ id: e.key,
1328
+ label: e.label,
1329
+ color: t.color ?? r?.color,
1330
+ icon: r?.icon ?? "circle",
1331
+ canDragIn: t.canDragIn ?? !1,
1332
+ canDragOut: t.canDragOut ?? !1,
1333
+ canCreate: t.canCreate ?? !1,
1334
+ actions: t.actions ?? [],
1335
+ items: o(n),
1336
+ groups: i
1337
+ };
1338
+ }), t[5] = N, t[6] = oe, t[7] = D, t[8] = O, t[9] = x, t[10] = S, t[11] = y, t[12] = n, t[13] = R, t[14] = B, t[15] = ce;
1339
+ } else B = t[14], ce = t[15];
1340
+ let V = ce, H;
1341
+ t[16] !== x || t[17] !== S || t[18] !== R ? (H = async (e, t, n) => {
1342
+ await Te({
1343
+ settings: R,
1344
+ rowId: e,
1345
+ targetColumnId: t,
1346
+ targetGroupKey: n?.targetGroupKey,
1347
+ beforeItemId: n?.beforeItemId,
1348
+ onAttributeChange: x,
1349
+ onReorder: S
1350
+ });
1351
+ }, t[16] = x, t[17] = S, t[18] = R, t[19] = H) : H = t[19];
1352
+ let U = H, le;
1353
+ t[20] !== x || t[21] !== S || t[22] !== R ? (le = async (e, t, n) => {
1354
+ await Ee({
1355
+ settings: R,
1356
+ rowId: e,
1357
+ targetGroupKey: t,
1358
+ beforeItemId: n?.beforeItemId,
1359
+ onAttributeChange: x,
1360
+ onReorder: S
1361
+ });
1362
+ }, t[20] = x, t[21] = S, t[22] = R, t[23] = le) : le = t[23];
1363
+ let ue = le, W;
1364
+ t[24] !== N || t[25] !== _ || t[26] !== m || t[27] !== p || t[28] !== h || t[29] !== re || t[30] !== n || t[31] !== r || t[32] !== j ? (W = re ? null : /* @__PURE__ */ X(u, {
1365
+ rows: n,
1366
+ storageKey: r,
1367
+ attributes: N,
1368
+ defaultSettings: p,
1369
+ defaultFilters: m,
1370
+ defaultViews: h,
1371
+ defaultActiveViewId: _,
1372
+ leading: j
1373
+ }), t[24] = N, t[25] = _, t[26] = m, t[27] = p, t[28] = h, t[29] = re, t[30] = n, t[31] = r, t[32] = j, t[33] = W) : W = t[33];
1374
+ let G;
1375
+ t[34] !== V || t[35] !== l || t[36] !== C || t[37] !== ne || t[38] !== o || t[39] !== te || t[40] !== se || t[41] !== U || t[42] !== ue || t[43] !== B || t[44] !== E || t[45] !== w || t[46] !== M || t[47] !== z || t[48] !== R.columnGrouping || t[49] !== R.rowGrouping || t[50] !== R.viewMode ? (G = l === void 0 ? /* @__PURE__ */ X(Xe, {
1376
+ viewMode: R.viewMode,
1377
+ boardColumns: V,
1378
+ listItems: B,
1379
+ listExpandedGroups: se,
1380
+ selectedRowId: M,
1381
+ emptyState: o,
1382
+ emptyTitle: te,
1383
+ emptyDescription: ne,
1384
+ onBoardMoveItem: U,
1385
+ onBoardMoveToGroup: ue,
1386
+ onCreateRow: C && w ? F : void 0,
1387
+ onColumnAction: E,
1388
+ onListExpandedGroupChange: z,
1389
+ listKey: `${R.columnGrouping}:${R.rowGrouping}`
1390
+ }) : l, t[34] = V, t[35] = l, t[36] = C, t[37] = ne, t[38] = o, t[39] = te, t[40] = se, t[41] = U, t[42] = ue, t[43] = B, t[44] = E, t[45] = w, t[46] = M, t[47] = z, t[48] = R.columnGrouping, t[49] = R.rowGrouping, t[50] = R.viewMode, t[51] = G) : G = t[51];
1391
+ let K;
1392
+ t[52] !== N || t[53] !== P || t[54] !== C || t[55] !== w || t[56] !== R.columnGrouping ? (K = C && w && P ? /* @__PURE__ */ X(vt, {
1393
+ open: !0,
1394
+ columnId: P,
1395
+ columnAttributeId: R.columnGrouping === "none" ? void 0 : R.columnGrouping,
1396
+ attributes: N,
1397
+ config: C,
1398
+ onClose: () => F(null),
1399
+ onSubmit: w
1400
+ }) : null, t[52] = N, t[53] = P, t[54] = C, t[55] = w, t[56] = R.columnGrouping, t[57] = K) : K = t[57];
1401
+ let J;
1402
+ return t[58] !== K || t[59] !== W || t[60] !== G ? (J = /* @__PURE__ */ Z(q, {
1403
+ "data-testid": "kanban-renderer",
1404
+ height: "100%",
1405
+ minH: "0",
1406
+ gap: "0",
1407
+ background: "bg",
1408
+ overflow: "hidden",
1409
+ children: [
1410
+ W,
1411
+ G,
1412
+ K
1413
+ ]
1414
+ }), t[58] = K, t[59] = W, t[60] = G, t[61] = J) : J = t[61], J;
1059
1415
  };
1060
- function pn(r) {
1061
- return r.settings;
1416
+ function St(e) {
1417
+ return e.settings;
1062
1418
  }
1063
- function gn(r) {
1064
- return r.filters;
1419
+ function Ct(e) {
1420
+ return e.filters;
1065
1421
  }
1066
- function fn(r) {
1067
- return r.expandedGroups;
1422
+ function wt(e) {
1423
+ return e.expandedGroups;
1068
1424
  }
1069
- function mn(r) {
1070
- return r.setExpandedGroup;
1425
+ function Tt(e) {
1426
+ return e.setExpandedGroup;
1071
1427
  }
1072
- function bn(r) {
1073
- return r !== "id";
1428
+ function Et(e) {
1429
+ return e !== "id";
1074
1430
  }
1075
- export {
1076
- On as DisplayMenu,
1077
- $n as FilterMenu,
1078
- En as KanbanRenderer,
1079
- Bt as KanbanRendererBoard,
1080
- Fe as KanbanRendererCard,
1081
- dn as KanbanRendererCreateDialog,
1082
- Wt as KanbanRendererList,
1083
- tt as KanbanRendererToolbar,
1084
- Ie as MANUAL_ORDERING,
1085
- Z as NO_GROUPING,
1086
- Bn as buildDisplayPropertyOptions,
1087
- zn as buildFilterCategories,
1088
- Kn as buildGroupingOptions,
1089
- Mn as buildOrderingOptions,
1090
- Me as collectDisplayBadges,
1091
- Le as findAttribute,
1092
- Ln as getAttributeStringValues,
1093
- _n as getAttributeValue,
1094
- Ue as getEnumOptions,
1095
- Vn as isActiveKanbanRendererViewDirty,
1096
- Wn as isAttributesSource,
1097
- Hn as isEnumOptionsSource,
1098
- jn as renderAttributeBadge,
1099
- Fn as renderBadgeListDisplay,
1100
- Nn as resolveAttributeOptions,
1101
- Xn as sanitizeFilters,
1102
- qn as sanitizeSettings,
1103
- pe as useKanbanRendererStore,
1104
- Je as useResolvedAttributes
1105
- };
1106
- //# sourceMappingURL=kanban-renderer.js.map
1431
+ //#endregion
1432
+ export { N as DisplayMenu, m as FilterMenu, xt as KanbanRenderer, Re as KanbanRendererBoard, Pe as KanbanRendererCard, vt as KanbanRendererCreateDialog, qe as KanbanRendererList, y as KanbanRendererStorageProvider, u as KanbanRendererToolbar, re as MANUAL_ORDERING, M as NO_GROUPING, x as buildDisplayPropertyOptions, h as buildFilterCategories, l as buildGroupingOptions, E as buildOrderingOptions, ae as collectDisplayBadges, k as findAttribute, P as getAttributeStringValues, A as getAttributeValue, D as getEnumOptions, p as isActiveKanbanRendererViewDirty, O as isAttributesSource, S as isEnumOptionsSource, C as renderAttributeBadge, te as renderBadgeListDisplay, _ as resolveAttributeOptions, j as sanitizeFilters, F as sanitizeSettings, b as useKanbanRendererStore, f as useResolvedAttributes };
1433
+
1434
+ //# sourceMappingURL=kanban-renderer.js.map