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