@oneflowui/ui 0.4.2 → 0.4.4

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 (332) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/assets/tableWorker-CTsbCPPP.js +1 -0
  4. package/dist/components/ContextMenu/index.vue.d.ts +2 -1
  5. package/dist/components/ContextMenu/index.vue.js +7 -0
  6. package/dist/components/ContextMenu/index.vue2.js +92 -0
  7. package/dist/components/Dashboard/charts/BarChart.vue.js +7 -0
  8. package/dist/components/Dashboard/charts/BarChart.vue2.js +43 -0
  9. package/dist/components/Dashboard/charts/DoughnutChart.vue.js +23 -0
  10. package/dist/components/Dashboard/charts/DoughnutChart.vue2.js +4 -0
  11. package/dist/components/Dashboard/charts/NumberCard.vue.js +7 -0
  12. package/dist/components/Dashboard/charts/NumberCard.vue2.js +41 -0
  13. package/dist/components/Dashboard/charts/PieChart.vue.js +7 -0
  14. package/dist/components/Dashboard/charts/PieChart.vue2.js +53 -0
  15. package/dist/components/Dashboard/charts/TableChart.vue.js +7 -0
  16. package/dist/components/Dashboard/charts/TableChart.vue2.js +50 -0
  17. package/dist/components/Dashboard/index.vue.js +7 -0
  18. package/dist/components/Dashboard/index.vue2.js +104 -0
  19. package/dist/components/ai/AiMessageBubble.vue.js +7 -0
  20. package/dist/components/ai/AiMessageBubble.vue2.js +47 -0
  21. package/dist/components/ai/AiMessageList.vue.js +7 -0
  22. package/dist/components/ai/AiMessageList.vue2.js +78 -0
  23. package/dist/components/ai/AiSender.vue.js +7 -0
  24. package/dist/components/ai/AiSender.vue2.js +86 -0
  25. package/dist/components/ai/AiStreamingCursor.vue.js +7 -0
  26. package/dist/components/ai/AiStreamingCursor.vue2.js +16 -0
  27. package/dist/components/ai/AiThinking.vue.js +7 -0
  28. package/dist/components/ai/AiThinking.vue2.js +19 -0
  29. package/dist/components/ai/UserMessageBubble.vue.js +7 -0
  30. package/dist/components/ai/UserMessageBubble.vue2.js +34 -0
  31. package/dist/components/auxiliary/ColorPanel.vue.js +7 -0
  32. package/dist/components/auxiliary/ColorPanel.vue2.js +65 -0
  33. package/dist/components/auxiliary/FileUpload.vue.js +7 -0
  34. package/dist/components/auxiliary/FileUpload.vue2.js +90 -0
  35. package/dist/components/auxiliary/PersonPanel.vue.js +7 -0
  36. package/dist/components/auxiliary/PersonPanel.vue2.js +66 -0
  37. package/dist/components/base/Accordion.vue.js +7 -0
  38. package/dist/components/base/Accordion.vue2.js +78 -0
  39. package/dist/components/base/AddViewBtn.vue.js +7 -0
  40. package/dist/components/base/AddViewBtn.vue2.js +25 -0
  41. package/dist/components/base/Avatar.vue.js +7 -0
  42. package/dist/components/base/Avatar.vue2.js +72 -0
  43. package/dist/components/base/Badge.vue.js +7 -0
  44. package/dist/components/base/Badge.vue2.js +70 -0
  45. package/dist/components/base/ButtonGroup.vue.js +7 -0
  46. package/dist/components/base/ButtonGroup.vue2.js +40 -0
  47. package/dist/components/base/ChainItem.vue.js +7 -0
  48. package/dist/components/base/ChainItem.vue2.js +68 -0
  49. package/dist/components/base/DescBlock.vue.js +7 -0
  50. package/dist/components/base/DescBlock.vue2.js +13 -0
  51. package/dist/components/base/DropdownMenu.vue.js +7 -0
  52. package/dist/components/base/DropdownMenu.vue2.js +91 -0
  53. package/dist/components/base/EmptyState.vue.js +7 -0
  54. package/dist/components/base/EmptyState.vue2.js +38 -0
  55. package/dist/components/base/InfoCard.vue.js +7 -0
  56. package/dist/components/base/InfoCard.vue2.js +167 -0
  57. package/dist/components/base/MonitorItem.vue.d.ts +1 -1
  58. package/dist/components/base/MonitorItem.vue.js +7 -0
  59. package/dist/components/base/MonitorItem.vue2.js +56 -0
  60. package/dist/components/base/PersonaCard.vue.d.ts +2 -1
  61. package/dist/components/base/PersonaCard.vue.js +7 -0
  62. package/dist/components/base/PersonaCard.vue2.js +185 -0
  63. package/dist/components/base/ProgressBar.vue.js +7 -0
  64. package/dist/components/base/ProgressBar.vue2.js +49 -0
  65. package/dist/components/base/RangeSlider.vue.js +7 -0
  66. package/dist/components/base/RangeSlider.vue2.js +35 -0
  67. package/dist/components/base/RefTag.vue.d.ts +2 -2
  68. package/dist/components/base/RefTag.vue.js +7 -0
  69. package/dist/components/base/RefTag.vue2.js +52 -0
  70. package/dist/components/base/SearchHighlight.vue.d.ts +6 -0
  71. package/dist/components/base/SearchHighlight.vue.js +7 -0
  72. package/dist/components/base/SearchHighlight.vue2.js +21 -0
  73. package/dist/components/base/SectionBlock.vue.js +7 -0
  74. package/dist/components/base/SectionBlock.vue2.js +115 -0
  75. package/dist/components/base/SelectBadge.vue.js +7 -0
  76. package/dist/components/base/SelectBadge.vue2.js +81 -0
  77. package/dist/components/base/StatisticCard.vue.js +7 -0
  78. package/dist/components/base/StatisticCard.vue2.js +57 -0
  79. package/dist/components/base/StatusIndicator.vue.js +7 -0
  80. package/dist/components/base/StatusIndicator.vue2.js +54 -0
  81. package/dist/components/base/StatusSummary.vue.js +7 -0
  82. package/dist/components/base/StatusSummary.vue2.js +64 -0
  83. package/dist/components/base/Stepper.vue.js +7 -0
  84. package/dist/components/base/Stepper.vue2.js +70 -0
  85. package/dist/components/base/Switch.vue.js +7 -0
  86. package/dist/components/base/Switch.vue2.js +43 -0
  87. package/dist/components/base/ToolbarBtn.vue.d.ts +2 -1
  88. package/dist/components/base/ToolbarBtn.vue.js +7 -0
  89. package/dist/components/base/ToolbarBtn.vue2.js +30 -0
  90. package/dist/components/base/ViewModeGroup.vue.d.ts +2 -1
  91. package/dist/components/base/ViewModeGroup.vue.js +7 -0
  92. package/dist/components/base/ViewModeGroup.vue2.js +32 -0
  93. package/dist/components/base/ViewSwitcher.vue.d.ts +2 -1
  94. package/dist/components/base/ViewSwitcher.vue.js +7 -0
  95. package/dist/components/base/ViewSwitcher.vue2.js +73 -0
  96. package/dist/components/base/ViewTab.vue.js +7 -0
  97. package/dist/components/base/ViewTab.vue2.js +42 -0
  98. package/dist/components/base/index.d.ts +1 -0
  99. package/dist/components/breadcrumb/Breadcrumb.vue.js +7 -0
  100. package/dist/components/breadcrumb/Breadcrumb.vue2.js +52 -0
  101. package/dist/components/breadcrumb/BreadcrumbItem.vue.js +7 -0
  102. package/dist/components/breadcrumb/BreadcrumbItem.vue2.js +35 -0
  103. package/dist/components/detail/CommentItem.vue.js +7 -0
  104. package/dist/components/detail/CommentItem.vue2.js +29 -0
  105. package/dist/components/detail/DetailLayout.vue.js +7 -0
  106. package/dist/components/detail/DetailLayout.vue2.js +118 -0
  107. package/dist/components/detail/PropPanel.vue.js +7 -0
  108. package/dist/components/detail/PropPanel.vue2.js +51 -0
  109. package/dist/components/detail/PropRow.vue.js +7 -0
  110. package/dist/components/detail/PropRow.vue2.js +51 -0
  111. package/dist/components/editor/BlockQuote.vue.js +7 -0
  112. package/dist/components/editor/BlockQuote.vue2.js +45 -0
  113. package/dist/components/editor/CodeBlock.vue.js +7 -0
  114. package/dist/components/editor/CodeBlock.vue2.js +48 -0
  115. package/dist/components/editor/ContentBlock.vue.js +7 -0
  116. package/dist/components/editor/ContentBlock.vue2.js +49 -0
  117. package/dist/components/editor/RefLink.vue.js +7 -0
  118. package/dist/components/editor/RefLink.vue2.js +37 -0
  119. package/dist/components/editor/RichTextEditor.vue.js +7 -0
  120. package/dist/components/editor/RichTextEditor.vue2.js +132 -0
  121. package/dist/components/field/FieldAttachment.vue.d.ts +17 -0
  122. package/dist/components/field/FieldAttachment.vue.js +7 -0
  123. package/dist/components/field/FieldAttachment.vue2.js +69 -0
  124. package/dist/components/field/FieldAutoNumber.vue.d.ts +7 -0
  125. package/dist/components/field/FieldAutoNumber.vue.js +7 -0
  126. package/dist/components/field/FieldAutoNumber.vue2.js +15 -0
  127. package/dist/components/field/FieldCheckbox.vue.js +7 -0
  128. package/dist/{FieldCheckbox-CV3QtQ4Y.js → components/field/FieldCheckbox.vue2.js} +8 -9
  129. package/dist/components/field/FieldCreator.vue.d.ts +7 -0
  130. package/dist/components/field/FieldCreator.vue.js +7 -0
  131. package/dist/components/field/FieldCreator.vue2.js +24 -0
  132. package/dist/components/field/FieldCurrency.vue.d.ts +17 -0
  133. package/dist/components/field/FieldCurrency.vue.js +7 -0
  134. package/dist/components/field/FieldCurrency.vue2.js +42 -0
  135. package/dist/components/field/FieldDate.vue.js +7 -0
  136. package/dist/components/field/FieldDate.vue2.js +36 -0
  137. package/dist/components/field/FieldDatetime.vue.js +7 -0
  138. package/dist/{FieldDatetime-B52GfWrK.js → components/field/FieldDatetime.vue2.js} +11 -12
  139. package/dist/components/field/FieldEmail.vue.js +7 -0
  140. package/dist/{FieldEmail-UREMoue-.js → components/field/FieldEmail.vue2.js} +12 -13
  141. package/dist/components/field/FieldMarkdownPreview.vue.d.ts +13 -0
  142. package/dist/components/field/FieldMarkdownPreview.vue.js +7 -0
  143. package/dist/components/field/FieldMarkdownPreview.vue2.js +37 -0
  144. package/dist/components/field/FieldMultiSelect.vue.js +7 -0
  145. package/dist/{FieldMultiSelect-Dlay1Fop.js → components/field/FieldMultiSelect.vue2.js} +32 -33
  146. package/dist/components/field/FieldNumber.vue.js +7 -0
  147. package/dist/{FieldNumber-BjhfFhs6.js → components/field/FieldNumber.vue2.js} +8 -9
  148. package/dist/components/field/FieldPhone.vue.d.ts +17 -0
  149. package/dist/components/field/FieldPhone.vue.js +7 -0
  150. package/dist/components/field/FieldPhone.vue2.js +34 -0
  151. package/dist/components/field/FieldProgress.vue.d.ts +15 -0
  152. package/dist/components/field/FieldProgress.vue.js +7 -0
  153. package/dist/components/field/FieldProgress.vue2.js +40 -0
  154. package/dist/components/field/FieldRating.vue.js +7 -0
  155. package/dist/components/field/FieldRating.vue2.js +31 -0
  156. package/dist/components/field/FieldRelation.vue.d.ts +17 -0
  157. package/dist/components/field/FieldRelation.vue.js +7 -0
  158. package/dist/components/field/FieldRelation.vue2.js +67 -0
  159. package/dist/components/field/FieldRichText.vue.d.ts +17 -0
  160. package/dist/components/field/FieldRichText.vue.js +7 -0
  161. package/dist/components/field/FieldRichText.vue2.js +65 -0
  162. package/dist/components/field/FieldSelect.vue.js +7 -0
  163. package/dist/{FieldSelect-B39Ad8VH.js → components/field/FieldSelect.vue2.js} +44 -44
  164. package/dist/components/field/FieldText.vue.js +7 -0
  165. package/dist/{FieldText-Ry7f72Ug.js → components/field/FieldText.vue2.js} +13 -14
  166. package/dist/components/field/FieldUrl.vue.js +7 -0
  167. package/dist/components/field/FieldUrl.vue2.js +33 -0
  168. package/dist/components/form/FormDesigner.vue.js +7 -0
  169. package/dist/components/form/FormDesigner.vue2.js +255 -0
  170. package/dist/components/gallery/GalleryCard.vue.js +7 -0
  171. package/dist/components/gallery/GalleryCard.vue2.js +87 -0
  172. package/dist/components/gallery/GalleryView.vue.d.ts +6 -2
  173. package/dist/components/gallery/GalleryView.vue.js +7 -0
  174. package/dist/components/gallery/GalleryView.vue2.js +58 -0
  175. package/dist/components/kanban/KanbanBoard.vue.d.ts +5 -1
  176. package/dist/components/kanban/KanbanBoard.vue.js +7 -0
  177. package/dist/components/kanban/KanbanBoard.vue2.js +119 -0
  178. package/dist/components/kanban/KanbanCard.vue.js +7 -0
  179. package/dist/components/kanban/KanbanCard.vue2.js +56 -0
  180. package/dist/components/kanban/KanbanColumn.vue.js +7 -0
  181. package/dist/components/kanban/KanbanColumn.vue2.js +103 -0
  182. package/dist/components/kanban/QuickAddRow.vue.js +7 -0
  183. package/dist/components/kanban/QuickAddRow.vue2.js +58 -0
  184. package/dist/components/layout/AppLayout.vue.js +7 -0
  185. package/dist/components/layout/AppLayout.vue2.js +82 -0
  186. package/dist/components/layout/Navbar.vue.js +7 -0
  187. package/dist/components/layout/Navbar.vue2.js +70 -0
  188. package/dist/components/layout/Sidebar.vue.js +7 -0
  189. package/dist/components/layout/Sidebar.vue2.js +88 -0
  190. package/dist/components/layout/StatusBar.vue.js +7 -0
  191. package/dist/components/layout/StatusBar.vue2.js +37 -0
  192. package/dist/components/mermaid/MermaidChart.vue.js +7 -0
  193. package/dist/components/mermaid/MermaidChart.vue2.js +75 -0
  194. package/dist/components/overlay/Dialog.vue.js +7 -0
  195. package/dist/components/overlay/Dialog.vue2.js +89 -0
  196. package/dist/components/overlay/Drawer.vue.js +7 -0
  197. package/dist/components/overlay/Drawer.vue2.js +96 -0
  198. package/dist/components/overlay/Modal.vue.js +7 -0
  199. package/dist/components/overlay/Modal.vue2.js +99 -0
  200. package/dist/components/overlay/SidePanel.vue.js +7 -0
  201. package/dist/components/overlay/SidePanel.vue2.js +121 -0
  202. package/dist/components/split/SplitPane.vue.js +8 -0
  203. package/dist/components/split/SplitPane.vue2.js +68 -0
  204. package/dist/components/table/ColumnHeaderMenu.vue.d.ts +33 -0
  205. package/dist/components/table/ColumnHeaderMenu.vue.js +7 -0
  206. package/dist/components/table/ColumnHeaderMenu.vue2.js +153 -0
  207. package/dist/components/table/DataTable.vue.d.ts +116 -25
  208. package/dist/components/table/DataTable.vue.js +7 -0
  209. package/dist/components/table/DataTable.vue2.js +821 -0
  210. package/dist/components/table/DetailSheet.vue.d.ts +43 -0
  211. package/dist/components/table/DetailSheet.vue.js +7 -0
  212. package/dist/components/table/DetailSheet.vue2.js +140 -0
  213. package/dist/components/table/FieldCell.vue.d.ts +1 -1
  214. package/dist/components/table/FieldCell.vue.js +7 -0
  215. package/dist/components/table/FieldCell.vue2.js +86 -0
  216. package/dist/components/table/FieldTypePicker.vue.d.ts +15 -0
  217. package/dist/components/table/FieldTypePicker.vue.js +7 -0
  218. package/dist/components/table/FieldTypePicker.vue2.js +92 -0
  219. package/dist/components/table/MobileListView.vue.d.ts +24 -0
  220. package/dist/components/table/MobileListView.vue.js +7 -0
  221. package/dist/components/table/MobileListView.vue2.js +90 -0
  222. package/dist/components/table/NewRowBtn.vue.js +7 -0
  223. package/dist/components/table/NewRowBtn.vue2.js +22 -0
  224. package/dist/components/table/TableColumnManager.vue.js +7 -0
  225. package/dist/components/table/TableColumnManager.vue2.js +100 -0
  226. package/dist/components/table/TableDataRow.vue.js +7 -0
  227. package/dist/components/table/TableDataRow.vue2.js +115 -0
  228. package/dist/components/table/TableFilterPanel.vue.js +7 -0
  229. package/dist/components/table/TableFilterPanel.vue2.js +142 -0
  230. package/dist/components/table/TableGroupRow.vue.d.ts +5 -0
  231. package/dist/components/table/TableGroupRow.vue.js +7 -0
  232. package/dist/components/table/TableGroupRow.vue2.js +58 -0
  233. package/dist/components/table/TableHeaderRow.vue.d.ts +16 -0
  234. package/dist/components/table/TableHeaderRow.vue.js +7 -0
  235. package/dist/components/table/TableHeaderRow.vue2.js +90 -0
  236. package/dist/components/table/TableToolbar.vue.d.ts +118 -0
  237. package/dist/components/table/TableToolbar.vue.js +7 -0
  238. package/dist/components/table/TableToolbar.vue2.js +273 -0
  239. package/dist/components/table/index.d.ts +5 -0
  240. package/dist/components/tabs/TabPanel.vue.js +7 -0
  241. package/dist/components/tabs/TabPanel.vue2.js +26 -0
  242. package/dist/components/tabs/Tabs.vue.js +7 -0
  243. package/dist/components/tabs/Tabs.vue2.js +87 -0
  244. package/dist/components/timeline/ActivityTimeline.vue.js +7 -0
  245. package/dist/components/timeline/ActivityTimeline.vue2.js +104 -0
  246. package/dist/components/timeline/GanttRow.vue.js +7 -0
  247. package/dist/components/timeline/GanttRow.vue2.js +110 -0
  248. package/dist/components/timeline/GanttTimeline.vue.js +7 -0
  249. package/dist/components/timeline/GanttTimeline.vue2.js +186 -0
  250. package/dist/components/toast/ToastContainer.vue.js +34 -0
  251. package/dist/components/toast/ToastContainer.vue3.js +5 -0
  252. package/dist/components/toast/ToastItem.vue.js +7 -0
  253. package/dist/components/toast/ToastItem.vue2.js +78 -0
  254. package/dist/composables/index.d.ts +19 -0
  255. package/dist/composables/useAiChat.js +103 -0
  256. package/dist/composables/useBadge.js +76 -0
  257. package/dist/composables/useBreakpoint.d.ts +2 -1
  258. package/dist/composables/useBreakpoint.js +18 -0
  259. package/dist/composables/useColumnResize.d.ts +19 -0
  260. package/dist/composables/useColumnResize.js +58 -0
  261. package/dist/composables/useDraftRows.d.ts +33 -0
  262. package/dist/composables/useDraftRows.js +103 -0
  263. package/dist/composables/useFixedColumns.d.ts +25 -0
  264. package/dist/composables/useFixedColumns.js +61 -0
  265. package/dist/composables/useFocusTrap.d.ts +10 -0
  266. package/dist/composables/useFocusTrap.js +37 -0
  267. package/dist/composables/useInlineEdit.js +28 -0
  268. package/dist/composables/useKeyboardNavigation.d.ts +45 -0
  269. package/dist/composables/useKeyboardNavigation.js +140 -0
  270. package/dist/composables/useMarkdown.js +69 -0
  271. package/dist/composables/useRowDrag.d.ts +32 -0
  272. package/dist/composables/useRowDrag.js +85 -0
  273. package/dist/composables/useSchemaEngine.d.ts +31 -0
  274. package/dist/composables/useSchemaEngine.js +129 -0
  275. package/dist/composables/useSearch.d.ts +30 -0
  276. package/dist/composables/useSearch.js +59 -0
  277. package/dist/composables/useStream.js +80 -0
  278. package/dist/composables/useSupabaseProvider.d.ts +70 -0
  279. package/dist/composables/useSupabaseProvider.js +126 -0
  280. package/dist/composables/useTable.d.ts +3 -0
  281. package/dist/composables/useTable.js +135 -0
  282. package/dist/composables/useTableColumns.js +24 -0
  283. package/dist/composables/useTableData.js +16 -0
  284. package/dist/composables/useTableFilter.js +97 -0
  285. package/dist/composables/useTableGroup.d.ts +14 -1
  286. package/dist/composables/useTableGroup.js +70 -0
  287. package/dist/composables/useToast.js +38 -0
  288. package/dist/composables/useTypewriter.js +56 -0
  289. package/dist/composables/useViewPersistence.d.ts +98 -0
  290. package/dist/composables/useViewPersistence.js +141 -0
  291. package/dist/composables/useVirtualList.d.ts +4 -1
  292. package/dist/composables/useVirtualList.js +140 -0
  293. package/dist/composables/useWorkerSort.d.ts +14 -0
  294. package/dist/composables/useWorkerSort.js +61 -0
  295. package/dist/constants/table.js +11 -0
  296. package/dist/index.d.ts +28 -4
  297. package/dist/index.js +349 -0
  298. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +5 -0
  299. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js +377 -0
  300. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js +923 -0
  301. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js +151 -0
  302. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js +240 -0
  303. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js +658 -0
  304. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js +38 -0
  305. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js +216 -0
  306. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js +13 -0
  307. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js +399 -0
  308. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js +305 -0
  309. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js +615 -0
  310. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js +753 -0
  311. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js +219 -0
  312. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js +183 -0
  313. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1063 -0
  314. package/dist/style.css +1 -1
  315. package/dist/types/index.d.ts +63 -2
  316. package/dist/types/index.js +94 -0
  317. package/dist/types/table-internal.d.ts +64 -0
  318. package/dist/utils/aggregation.d.ts +5 -0
  319. package/dist/utils/aggregation.js +38 -0
  320. package/dist/utils/icon.js +15 -0
  321. package/dist/utils/supabaseAdapter.d.ts +48 -0
  322. package/dist/utils/supabaseAdapter.js +76 -0
  323. package/dist/utils/supabaseSchema.d.ts +81 -0
  324. package/dist/utils/supabaseSchema.js +202 -0
  325. package/dist/workers/tableWorker.d.ts +31 -0
  326. package/package.json +13 -6
  327. package/dist/FieldDate-Bljx4jb7.js +0 -34
  328. package/dist/FieldRating-BKHUu-A1.js +0 -32
  329. package/dist/FieldUrl-bv0EB9sh.js +0 -34
  330. package/dist/index-DQph5iTq.js +0 -12936
  331. package/dist/oneflow-ui.js +0 -111
  332. package/dist/oneflow-ui.umd.cjs +0 -13
@@ -0,0 +1,33 @@
1
+ import { defineComponent as c, ref as i, onMounted as m, nextTick as s, withDirectives as v, openBlock as d, createElementBlock as y, vModelText as k } from "vue";
2
+ const b = /* @__PURE__ */ c({
3
+ __name: "FieldUrl",
4
+ props: {
5
+ value: { type: [String, Number, Boolean, Array, null] },
6
+ field: {}
7
+ },
8
+ emits: ["commit", "cancel", "tabNext"],
9
+ setup(r, { emit: a }) {
10
+ const f = r, t = a, o = i(null), n = i(String(f.value ?? ""));
11
+ m(() => s(() => {
12
+ var e;
13
+ return (e = o.value) == null ? void 0 : e.focus();
14
+ }));
15
+ function p(e) {
16
+ e.key === "Enter" && (e.preventDefault(), t("commit", n.value)), e.key === "Escape" && (e.preventDefault(), t("cancel")), e.key === "Tab" && (e.preventDefault(), t("commit", n.value), t("tabNext"));
17
+ }
18
+ return (e, l) => v((d(), y("input", {
19
+ ref_key: "inputRef",
20
+ ref: o,
21
+ class: "of-field-input",
22
+ type: "url",
23
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => n.value = u),
24
+ onKeydown: p,
25
+ onBlur: l[1] || (l[1] = (u) => t("commit", n.value))
26
+ }, null, 544)), [
27
+ [k, n.value]
28
+ ]);
29
+ }
30
+ });
31
+ export {
32
+ b as default
33
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./FormDesigner.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-85067929"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,255 @@
1
+ import { defineComponent as z, ref as T, watch as L, computed as P, openBlock as i, createElementBlock as u, createElementVNode as a, toDisplayString as c, createVNode as m, unref as f, createTextVNode as _, createCommentVNode as b, withCtx as $, Fragment as C, renderList as x, normalizeClass as j } from "vue";
2
+ import { Plus as G, GripVertical as U, Trash2 as Y } from "lucide-vue-next";
3
+ import { VueDraggable as A } from "vue-draggable-plus";
4
+ import { isSelectField as h } from "../../types/index.js";
5
+ const H = { class: "of-form-designer" }, J = { class: "of-form-designer__header" }, K = { class: "of-form-designer__title" }, M = { class: "of-form-designer__meta" }, Q = { class: "of-form-designer__inputs" }, R = ["value", "disabled", "onInput"], W = ["value", "disabled", "onChange"], X = ["value"], Z = { class: "of-form-designer__checkbox-label" }, ee = ["checked", "disabled", "onChange"], ne = { class: "of-form-designer__checkbox-label" }, le = ["checked", "disabled", "onChange"], te = ["onClick"], ae = {
6
+ key: 1,
7
+ class: "of-form-designer__options-wrap"
8
+ }, oe = ["value", "disabled", "onChange"], de = /* @__PURE__ */ z({
9
+ __name: "FormDesigner",
10
+ props: {
11
+ schema: {},
12
+ title: { default: "Form Designer" },
13
+ readonly: { type: Boolean, default: !1 }
14
+ },
15
+ emits: ["update:schema", "change"],
16
+ setup(r, { emit: F }) {
17
+ const S = [
18
+ { value: "text", label: "文本" },
19
+ { value: "number", label: "数字" },
20
+ { value: "select", label: "单选" },
21
+ { value: "multi_select", label: "多选" },
22
+ { value: "date", label: "日期" },
23
+ { value: "datetime", label: "日期时间" },
24
+ { value: "checkbox", label: "勾选" },
25
+ { value: "url", label: "链接" },
26
+ { value: "email", label: "邮箱" },
27
+ { value: "phone", label: "电话" },
28
+ { value: "rating", label: "评分" },
29
+ { value: "user", label: "用户" },
30
+ { value: "attachment", label: "附件" },
31
+ { value: "relation", label: "关联" },
32
+ { value: "formula", label: "公式" }
33
+ ], d = r, p = F, o = T(v(d.schema));
34
+ L(
35
+ () => d.schema,
36
+ (e) => {
37
+ o.value = v(e);
38
+ },
39
+ { deep: !0 }
40
+ );
41
+ const w = P(() => `${o.value.fields.length} 个字段`);
42
+ function v(e) {
43
+ return {
44
+ ...e,
45
+ fields: e.fields.map(y),
46
+ views: e.views.map((n) => ({ ...n }))
47
+ };
48
+ }
49
+ function y(e) {
50
+ return h(e) ? {
51
+ ...e,
52
+ options: e.options.map((n) => ({ ...n }))
53
+ } : { ...e };
54
+ }
55
+ function s() {
56
+ const e = v(o.value);
57
+ p("update:schema", e), p("change", e);
58
+ }
59
+ function V() {
60
+ return k("text", {
61
+ id: `field_${Date.now()}`,
62
+ name: "新字段",
63
+ required: !1,
64
+ hidden: !1
65
+ });
66
+ }
67
+ function k(e, n) {
68
+ switch (e) {
69
+ case "text":
70
+ return { ...n, type: e };
71
+ case "number":
72
+ return { ...n, type: e };
73
+ case "select":
74
+ case "multi_select":
75
+ return {
76
+ ...n,
77
+ type: e,
78
+ options: D()
79
+ };
80
+ case "date":
81
+ case "datetime":
82
+ return { ...n, type: e };
83
+ case "checkbox":
84
+ return { ...n, type: e };
85
+ case "url":
86
+ case "email":
87
+ case "phone":
88
+ return { ...n, type: e };
89
+ case "rating":
90
+ return { ...n, type: e };
91
+ case "user":
92
+ return { ...n, type: e };
93
+ case "attachment":
94
+ return { ...n, type: e };
95
+ case "relation":
96
+ return { ...n, type: e };
97
+ case "formula":
98
+ return { ...n, type: e, formula: "" };
99
+ case "currency":
100
+ return { ...n, type: e };
101
+ case "richtext":
102
+ return { ...n, type: e };
103
+ case "auto_number":
104
+ return { ...n, type: e };
105
+ case "creator":
106
+ return { ...n, type: e };
107
+ case "progress":
108
+ return { ...n, type: e };
109
+ }
110
+ }
111
+ function D() {
112
+ return [
113
+ { value: "option_1", label: "选项 1" },
114
+ { value: "option_2", label: "选项 2" }
115
+ ];
116
+ }
117
+ function B() {
118
+ d.readonly || (o.value.fields.push(V()), s());
119
+ }
120
+ function E(e) {
121
+ d.readonly || (o.value.fields = o.value.fields.filter((n) => n.id !== e), s());
122
+ }
123
+ function q(e, n) {
124
+ const t = o.value.fields.findIndex((g) => g.id === e.id);
125
+ if (t === -1) return;
126
+ const l = {
127
+ id: e.id,
128
+ name: e.name,
129
+ required: e.required,
130
+ hidden: e.hidden,
131
+ width: e.width
132
+ };
133
+ o.value.fields[t] = h(e) && (n === "select" || n === "multi_select") ? {
134
+ ...l,
135
+ type: n,
136
+ options: e.options.map(
137
+ (g) => ({ ...g })
138
+ )
139
+ } : k(n, l), s();
140
+ }
141
+ function I(e, n) {
142
+ if (!h(e)) return;
143
+ const t = n.split(",").map((l) => l.trim()).filter(Boolean);
144
+ e.options = t.map((l) => ({ value: l, label: l })), s();
145
+ }
146
+ function N(e) {
147
+ return h(e) ? e.options.map((n) => n.label).join(", ") : "";
148
+ }
149
+ function O() {
150
+ s();
151
+ }
152
+ return (e, n) => (i(), u("div", H, [
153
+ a("div", J, [
154
+ a("div", null, [
155
+ a("h3", K, c(r.title), 1),
156
+ a("p", M, c(o.value.name) + " · " + c(w.value), 1)
157
+ ]),
158
+ r.readonly ? b("", !0) : (i(), u("button", {
159
+ key: 0,
160
+ class: "of-form-designer__add-btn",
161
+ onClick: B
162
+ }, [
163
+ m(f(G), { size: 14 }),
164
+ n[1] || (n[1] = _(" 添加字段 ", -1))
165
+ ]))
166
+ ]),
167
+ m(f(A), {
168
+ modelValue: o.value.fields,
169
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => o.value.fields = t),
170
+ handle: ".of-form-designer__drag",
171
+ disabled: r.readonly,
172
+ animation: 150,
173
+ onEnd: O
174
+ }, {
175
+ default: $(() => [
176
+ (i(!0), u(C, null, x(o.value.fields, (t) => (i(), u("div", {
177
+ key: t.id,
178
+ class: "of-form-designer__row"
179
+ }, [
180
+ a("span", {
181
+ class: j(["of-form-designer__drag", { disabled: r.readonly }])
182
+ }, [
183
+ m(f(U), { size: 14 })
184
+ ], 2),
185
+ a("div", Q, [
186
+ a("input", {
187
+ value: t.name,
188
+ class: "of-form-designer__input",
189
+ placeholder: "字段名称",
190
+ disabled: r.readonly,
191
+ onInput: (l) => {
192
+ t.name = String(l.target.value), s();
193
+ }
194
+ }, null, 40, R),
195
+ a("select", {
196
+ class: "of-form-designer__select",
197
+ value: t.type,
198
+ disabled: r.readonly,
199
+ onChange: (l) => q(t, l.target.value)
200
+ }, [
201
+ (i(), u(C, null, x(S, (l) => a("option", {
202
+ key: l.value,
203
+ value: l.value
204
+ }, c(l.label), 9, X)), 64))
205
+ ], 40, W),
206
+ a("label", Z, [
207
+ a("input", {
208
+ type: "checkbox",
209
+ checked: !!t.required,
210
+ disabled: r.readonly,
211
+ onChange: (l) => {
212
+ t.required = l.target.checked, s();
213
+ }
214
+ }, null, 40, ee),
215
+ n[2] || (n[2] = _(" 必填 ", -1))
216
+ ]),
217
+ a("label", ne, [
218
+ a("input", {
219
+ type: "checkbox",
220
+ checked: !!t.hidden,
221
+ disabled: r.readonly,
222
+ onChange: (l) => {
223
+ t.hidden = l.target.checked, s();
224
+ }
225
+ }, null, 40, le),
226
+ n[3] || (n[3] = _(" 隐藏 ", -1))
227
+ ])
228
+ ]),
229
+ r.readonly ? b("", !0) : (i(), u("button", {
230
+ key: 0,
231
+ class: "of-form-designer__remove-btn",
232
+ onClick: (l) => E(t.id)
233
+ }, [
234
+ m(f(Y), { size: 14 })
235
+ ], 8, te)),
236
+ t.type === "select" || t.type === "multi_select" ? (i(), u("div", ae, [
237
+ n[4] || (n[4] = a("label", { class: "of-form-designer__options-label" }, "选项(逗号分隔)", -1)),
238
+ a("input", {
239
+ value: N(t),
240
+ class: "of-form-designer__input",
241
+ placeholder: "例如:待办, 进行中, 完成",
242
+ disabled: r.readonly,
243
+ onChange: (l) => I(t, String(l.target.value))
244
+ }, null, 40, oe)
245
+ ])) : b("", !0)
246
+ ]))), 128))
247
+ ]),
248
+ _: 1
249
+ }, 8, ["modelValue", "disabled"])
250
+ ]));
251
+ }
252
+ });
253
+ export {
254
+ de as default
255
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./GalleryCard.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-38d1e761"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,87 @@
1
+ import { defineComponent as D, computed as i, openBlock as r, createElementBlock as l, normalizeStyle as _, createElementVNode as t, toDisplayString as c, createCommentVNode as u, Fragment as I, renderList as S, createBlock as B, resolveDynamicComponent as F, createTextVNode as w } from "vue";
2
+ import { CircleIcon as g, FolderIcon as x, CalendarIcon as $, UserIcon as E, TagIcon as N } from "lucide-vue-next";
3
+ const V = ["src"], z = { class: "gallery-card__body" }, A = { class: "gallery-card__title" }, L = {
4
+ key: 0,
5
+ class: "gallery-card__desc"
6
+ }, M = {
7
+ key: 1,
8
+ class: "gallery-card__props"
9
+ }, P = { class: "gallery-card__prop-key" }, T = { class: "gallery-card__prop-value" }, G = { class: "gallery-card__footer" }, U = { class: "gallery-card__task-id" }, Y = { class: "gallery-card__date" }, H = /* @__PURE__ */ D({
10
+ __name: "GalleryCard",
11
+ props: {
12
+ item: {}
13
+ },
14
+ emits: ["click"],
15
+ setup(o, { emit: y }) {
16
+ const a = o, m = y, v = i(() => a.item.bannerColor ?? "#BFDBFE"), p = i(
17
+ () => typeof a.item.cover == "string" && /^https?:\/\//.test(a.item.cover)
18
+ ), d = i(() => (a.item.extraProps ?? []).slice(0, 2)), f = {
19
+ tag: N,
20
+ user: E,
21
+ calendar: $,
22
+ folder: x
23
+ };
24
+ function k(s) {
25
+ return s ? f[s.toLowerCase()] ?? g : g;
26
+ }
27
+ const C = i(() => {
28
+ const s = a.item.updatedAt ?? a.item.createdAt;
29
+ if (!s) return "";
30
+ const e = new Date(s);
31
+ return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
32
+ }), b = {
33
+ todo: "var(--of-color-gray-400)",
34
+ in_progress: "var(--of-color-info)",
35
+ blocked: "var(--of-color-warning)",
36
+ done: "var(--of-color-success)"
37
+ }, h = i(() => b[a.item.status] ?? "var(--of-color-gray-400)");
38
+ return (s, e) => (r(), l("div", {
39
+ class: "gallery-card",
40
+ onClick: e[0] || (e[0] = (n) => m("click", o.item))
41
+ }, [
42
+ p.value ? (r(), l("img", {
43
+ key: 0,
44
+ class: "gallery-card__cover",
45
+ src: o.item.cover,
46
+ alt: ""
47
+ }, null, 8, V)) : (r(), l("div", {
48
+ key: 1,
49
+ class: "gallery-card__banner",
50
+ style: _({ backgroundColor: v.value })
51
+ }, null, 4)),
52
+ t("div", z, [
53
+ t("div", A, c(o.item.title), 1),
54
+ o.item.description ? (r(), l("div", L, c(o.item.description), 1)) : u("", !0),
55
+ e[3] || (e[3] = t("div", { class: "gallery-card__divider" }, null, -1)),
56
+ d.value.length > 0 ? (r(), l("div", M, [
57
+ (r(!0), l(I, null, S(d.value, (n) => (r(), l("div", {
58
+ key: n.key,
59
+ class: "gallery-card__prop-row"
60
+ }, [
61
+ (r(), B(F(k(n.icon)), {
62
+ class: "gallery-card__prop-icon",
63
+ size: 12
64
+ })),
65
+ t("span", P, c(n.key), 1),
66
+ e[1] || (e[1] = t("span", { class: "gallery-card__prop-spacer" }, null, -1)),
67
+ t("span", T, c(n.value), 1)
68
+ ]))), 128))
69
+ ])) : u("", !0),
70
+ t("div", G, [
71
+ t("span", U, [
72
+ t("span", {
73
+ class: "gallery-card__status-dot",
74
+ style: _({ backgroundColor: h.value })
75
+ }, null, 4),
76
+ w(" " + c(o.item.id), 1)
77
+ ]),
78
+ e[2] || (e[2] = t("span", { class: "gallery-card__footer-spacer" }, null, -1)),
79
+ t("span", Y, c(C.value), 1)
80
+ ])
81
+ ])
82
+ ]));
83
+ }
84
+ });
85
+ export {
86
+ H as default
87
+ };
@@ -1,7 +1,9 @@
1
- import { DataRecord, GalleryItem } from '../../types';
1
+ import { DataRecord, GalleryItem, TableSchema, ViewConfig } from '../../types';
2
2
  type __VLS_Props = {
3
3
  items?: GalleryItem[];
4
4
  records?: DataRecord[];
5
+ schema?: TableSchema;
6
+ view?: ViewConfig;
5
7
  coverFieldId?: string;
6
8
  cardFieldIds?: string[];
7
9
  columns?: number;
@@ -15,9 +17,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
15
17
  "onCard-click"?: ((item: GalleryItem) => any) | undefined;
16
18
  }>, {
17
19
  items: GalleryItem[];
20
+ view: ViewConfig;
18
21
  columns: number;
19
- records: DataRecord[];
20
22
  addable: boolean;
23
+ records: DataRecord[];
24
+ schema: TableSchema;
21
25
  coverFieldId: string;
22
26
  cardFieldIds: string[];
23
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -0,0 +1,7 @@
1
+ import o from "./GalleryView.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b432e370"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,58 @@
1
+ import { defineComponent as g, computed as t, openBlock as i, createElementBlock as o, normalizeStyle as p, Fragment as I, renderList as w, createBlock as C, createVNode as k, unref as b, createElementVNode as _, createCommentVNode as B } from "vue";
2
+ import { PlusIcon as V } from "lucide-vue-next";
3
+ import h from "./GalleryCard.vue.js";
4
+ import { buildGalleryItems as G } from "../../types/index.js";
5
+ const S = /* @__PURE__ */ g({
6
+ __name: "GalleryView",
7
+ props: {
8
+ items: { default: () => [] },
9
+ records: { default: () => [] },
10
+ schema: { default: void 0 },
11
+ view: { default: void 0 },
12
+ coverFieldId: { default: "" },
13
+ cardFieldIds: { default: () => [] },
14
+ columns: { default: 4 },
15
+ addable: { type: Boolean, default: !0 }
16
+ },
17
+ emits: ["card-click", "add"],
18
+ setup(n, { emit: v }) {
19
+ const e = n, s = v, m = t(() => ({
20
+ "--columns": e.columns
21
+ })), c = t(
22
+ () => {
23
+ var d;
24
+ return e.coverFieldId || ((d = e.view) == null ? void 0 : d.galleryCoverFieldId) || "";
25
+ }
26
+ ), f = t(() => {
27
+ var d, l, r, a, u;
28
+ return (d = e.cardFieldIds) != null && d.length ? e.cardFieldIds : (r = (l = e.view) == null ? void 0 : l.galleryCardFields) != null && r.length ? e.view.galleryCardFields : (u = (a = e.view) == null ? void 0 : a.visibleFields) != null && u.length ? e.view.visibleFields.filter((F) => F !== c.value) : [];
29
+ }), y = t(() => e.items.length > 0 ? e.items : e.records.length > 0 ? G(e.records, {
30
+ coverFieldId: c.value || void 0,
31
+ cardFieldIds: f.value
32
+ }) : []);
33
+ return (d, l) => (i(), o("div", {
34
+ class: "gallery-view",
35
+ style: p(m.value)
36
+ }, [
37
+ (i(!0), o(I, null, w(y.value, (r) => (i(), C(h, {
38
+ key: r.id,
39
+ item: r,
40
+ onClick: (a) => s("card-click", r)
41
+ }, null, 8, ["item", "onClick"]))), 128)),
42
+ n.addable ? (i(), o("button", {
43
+ key: 0,
44
+ class: "gallery-view__add-btn",
45
+ onClick: l[0] || (l[0] = (r) => s("add"))
46
+ }, [
47
+ k(b(V), {
48
+ size: 18,
49
+ class: "gallery-view__add-icon"
50
+ }),
51
+ l[1] || (l[1] = _("span", { class: "gallery-view__add-label" }, "添加", -1))
52
+ ])) : B("", !0)
53
+ ], 4));
54
+ }
55
+ });
56
+ export {
57
+ S as default
58
+ };
@@ -1,7 +1,9 @@
1
- import { DataRecord, KanbanColumnData, Task } from '../../types';
1
+ import { DataRecord, KanbanColumnData, Task, TableSchema, ViewConfig } from '../../types';
2
2
  type __VLS_Props = {
3
3
  columns?: KanbanColumnData[];
4
4
  records?: DataRecord[];
5
+ schema?: TableSchema;
6
+ view?: ViewConfig;
5
7
  kanbanFieldId?: string;
6
8
  laneOrder?: string[];
7
9
  laneTitles?: Record<string, string>;
@@ -16,8 +18,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
16
18
  "onCard-click"?: ((task: Task) => any) | undefined;
17
19
  "onAdd-column"?: (() => any) | undefined;
18
20
  }>, {
21
+ view: ViewConfig;
19
22
  columns: KanbanColumnData[];
20
23
  records: DataRecord[];
24
+ schema: TableSchema;
21
25
  kanbanFieldId: string;
22
26
  laneOrder: string[];
23
27
  laneTitles: Record<string, string>;
@@ -0,0 +1,7 @@
1
+ import a from "./KanbanBoard.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ o(a, [["__scopeId", "data-v-5b7aa191"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,119 @@
1
+ import { defineComponent as I, computed as u, ref as g, watch as y, openBlock as d, createElementBlock as s, createElementVNode as k, Fragment as A, renderList as K, createVNode as c, unref as V, createCommentVNode as x } from "vue";
2
+ import { Plus as B } from "lucide-vue-next";
3
+ import S from "./KanbanColumn.vue.js";
4
+ import L from "./QuickAddRow.vue.js";
5
+ import { isSelectField as p, buildKanbanColumns as N } from "../../types/index.js";
6
+ const _ = { class: "of-kanban-board" }, z = { class: "of-kanban-inner" }, j = /* @__PURE__ */ I({
7
+ __name: "KanbanBoard",
8
+ props: {
9
+ columns: { default: () => [] },
10
+ records: { default: () => [] },
11
+ schema: { default: void 0 },
12
+ view: { default: void 0 },
13
+ kanbanFieldId: { default: void 0 },
14
+ laneOrder: { default: () => [] },
15
+ laneTitles: { default: () => ({}) },
16
+ addColumnVisible: { type: Boolean, default: !1 }
17
+ },
18
+ emits: ["update:columns", "add-column", "card-click"],
19
+ setup(f, { emit: b }) {
20
+ const e = f, i = b, r = u(
21
+ () => {
22
+ var n;
23
+ return e.kanbanFieldId ?? ((n = e.view) == null ? void 0 : n.kanbanFieldId) ?? "status";
24
+ }
25
+ ), C = u(() => {
26
+ if (e.laneOrder && e.laneOrder.length > 0) return e.laneOrder;
27
+ if (e.schema) {
28
+ const n = e.schema.fields.find((l) => l.id === r.value);
29
+ if (n && p(n))
30
+ return n.options.map((l) => l.value);
31
+ }
32
+ }), h = u(() => {
33
+ if (e.laneTitles && Object.keys(e.laneTitles).length > 0) return e.laneTitles;
34
+ if (e.schema) {
35
+ const n = e.schema.fields.find((l) => l.id === r.value);
36
+ if (n && p(n)) {
37
+ const l = {};
38
+ for (const t of n.options)
39
+ l[t.value] = t.label;
40
+ return l;
41
+ }
42
+ }
43
+ }), m = () => e.columns.length > 0 ? structuredClone(e.columns) : e.records.length > 0 ? N(e.records, {
44
+ kanbanFieldId: r.value,
45
+ laneOrder: C.value,
46
+ laneTitles: h.value
47
+ }) : [], o = g(m());
48
+ y(
49
+ () => [
50
+ e.columns,
51
+ e.records,
52
+ e.kanbanFieldId,
53
+ e.laneOrder,
54
+ e.laneTitles,
55
+ e.view,
56
+ e.schema
57
+ ],
58
+ () => {
59
+ o.value = m();
60
+ }
61
+ );
62
+ function v(n) {
63
+ const l = o.value.findIndex((t) => t.id === n.id);
64
+ if (l !== -1) {
65
+ const t = n.tasks.map((a) => ({
66
+ ...a,
67
+ status: n.id
68
+ }));
69
+ o.value[l] = { ...n, tasks: t }, i("update:columns", structuredClone(o.value));
70
+ }
71
+ }
72
+ function T(n) {
73
+ }
74
+ function w(n, l) {
75
+ const t = o.value.find((O) => O.id === n);
76
+ if (!t) return;
77
+ const a = {
78
+ id: `TASK-${Date.now()}`,
79
+ title: l,
80
+ status: n,
81
+ priority: "P3"
82
+ }, F = {
83
+ ...t,
84
+ tasks: [...t.tasks, a]
85
+ };
86
+ v(F);
87
+ }
88
+ return (n, l) => (d(), s("div", _, [
89
+ k("div", z, [
90
+ (d(!0), s(A, null, K(o.value, (t) => (d(), s("div", {
91
+ key: t.id,
92
+ class: "of-kanban-col-wrapper"
93
+ }, [
94
+ c(S, {
95
+ column: t,
96
+ onAddCard: T,
97
+ onCardClick: l[0] || (l[0] = (a) => i("card-click", a)),
98
+ "onUpdate:column": v
99
+ }, null, 8, ["column"]),
100
+ c(L, {
101
+ class: "of-quick-add-below",
102
+ onSubmit: (a) => w(t.id, a)
103
+ }, null, 8, ["onSubmit"])
104
+ ]))), 128)),
105
+ f.addColumnVisible ? (d(), s("button", {
106
+ key: 0,
107
+ class: "of-add-column-btn",
108
+ onClick: l[1] || (l[1] = (t) => i("add-column"))
109
+ }, [
110
+ c(V(B), { size: 16 }),
111
+ l[2] || (l[2] = k("span", null, "添加列", -1))
112
+ ])) : x("", !0)
113
+ ])
114
+ ]));
115
+ }
116
+ });
117
+ export {
118
+ j as default
119
+ };
@@ -0,0 +1,7 @@
1
+ import a from "./KanbanCard.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ o(a, [["__scopeId", "data-v-28da7aba"]]);
5
+ export {
6
+ p as default
7
+ };