@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,89 @@
1
+ import { defineComponent as p, computed as d, openBlock as t, createBlock as c, withCtx as f, createElementVNode as o, normalizeClass as u, resolveDynamicComponent as v, toDisplayString as n, createElementBlock as r, createCommentVNode as s, renderSlot as x, unref as V, createTextVNode as w } from "vue";
2
+ import { CheckCircle2 as B, AlertCircle as T, AlertTriangle as z, Info as D, Loader2 as N } from "lucide-vue-next";
3
+ import A from "./Modal.vue.js";
4
+ const E = { class: "of-dialog" }, I = { class: "of-dialog__content" }, M = { class: "of-dialog__title" }, S = {
5
+ key: 0,
6
+ class: "of-dialog__text"
7
+ }, $ = ["disabled"], L = ["disabled"], G = /* @__PURE__ */ p({
8
+ __name: "Dialog",
9
+ props: {
10
+ modelValue: { type: Boolean },
11
+ title: { default: "提示" },
12
+ content: {},
13
+ confirmText: { default: "确认" },
14
+ cancelText: { default: "取消" },
15
+ type: { default: "info" },
16
+ loading: { type: Boolean, default: !1 },
17
+ width: { default: "420px" },
18
+ hideCancel: { type: Boolean, default: !1 }
19
+ },
20
+ emits: ["update:modelValue", "confirm", "cancel"],
21
+ setup(e, { emit: m }) {
22
+ const l = e, a = m, g = {
23
+ info: D,
24
+ warning: z,
25
+ danger: T,
26
+ success: B
27
+ }, h = d(() => `of-dialog__icon--${l.type}`), C = d(() => g[l.type]), b = d(
28
+ () => l.type === "danger" ? "of-dialog__btn--danger" : "of-dialog__btn--primary"
29
+ );
30
+ function y(i) {
31
+ a("update:modelValue", i);
32
+ }
33
+ function _() {
34
+ l.loading || a("confirm");
35
+ }
36
+ function k() {
37
+ a("cancel"), a("update:modelValue", !1);
38
+ }
39
+ return (i, U) => (t(), c(A, {
40
+ "model-value": e.modelValue,
41
+ width: e.width,
42
+ closable: !1,
43
+ "mask-closable": !e.loading,
44
+ class: "of-dialog-modal",
45
+ "onUpdate:modelValue": y
46
+ }, {
47
+ footer: f(() => [
48
+ e.hideCancel ? s("", !0) : (t(), r("button", {
49
+ key: 0,
50
+ class: "of-dialog__btn of-dialog__btn--cancel",
51
+ disabled: e.loading,
52
+ type: "button",
53
+ onClick: k
54
+ }, n(e.cancelText), 9, $)),
55
+ o("button", {
56
+ class: u(["of-dialog__btn", b.value]),
57
+ disabled: e.loading,
58
+ type: "button",
59
+ onClick: _
60
+ }, [
61
+ e.loading ? (t(), c(V(N), {
62
+ key: 0,
63
+ size: 14,
64
+ class: "of-dialog__spinner"
65
+ })) : s("", !0),
66
+ w(" " + n(e.confirmText), 1)
67
+ ], 10, L)
68
+ ]),
69
+ default: f(() => [
70
+ o("div", E, [
71
+ o("div", {
72
+ class: u(["of-dialog__icon-wrap", h.value])
73
+ }, [
74
+ (t(), c(v(C.value), { size: 28 }))
75
+ ], 2),
76
+ o("div", I, [
77
+ o("h3", M, n(e.title), 1),
78
+ e.content ? (t(), r("p", S, n(e.content), 1)) : s("", !0),
79
+ x(i.$slots, "default", {}, void 0, !0)
80
+ ])
81
+ ])
82
+ ]),
83
+ _: 3
84
+ }, 8, ["model-value", "width", "mask-closable"]));
85
+ }
86
+ });
87
+ export {
88
+ G as default
89
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./Drawer.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cf8560a2"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,96 @@
1
+ import { defineComponent as p, useSlots as V, computed as _, onMounted as B, watch as x, onBeforeUnmount as z, openBlock as o, createBlock as E, Teleport as S, createVNode as u, Transition as T, withCtx as $, createElementBlock as l, normalizeStyle as f, createElementVNode as d, withModifiers as I, unref as c, renderSlot as m, toDisplayString as N, createCommentVNode as n } from "vue";
2
+ import { X as R } from "lucide-vue-next";
3
+ import { useFocusTrap as g } from "../../composables/useFocusTrap.js";
4
+ const D = ["aria-label"], L = { class: "of-drawer__inner" }, M = {
5
+ key: 0,
6
+ class: "of-drawer__header"
7
+ }, F = { class: "of-drawer__title" }, K = {
8
+ key: 0,
9
+ class: "of-drawer__title-text"
10
+ }, U = { class: "of-drawer__body" }, G = /* @__PURE__ */ p({
11
+ __name: "Drawer",
12
+ props: {
13
+ modelValue: { type: Boolean },
14
+ width: { default: 390 },
15
+ title: {},
16
+ showClose: { type: Boolean, default: !0 },
17
+ maskClosable: { type: Boolean, default: !0 },
18
+ zIndex: { default: 1e3 }
19
+ },
20
+ emits: ["update:modelValue"],
21
+ setup(e, { emit: y }) {
22
+ const r = e, w = y, v = V(), h = _(() => ({
23
+ width: `${r.width}px`
24
+ })), {
25
+ containerRef: k,
26
+ activate: C,
27
+ deactivate: b
28
+ } = g();
29
+ function i() {
30
+ w("update:modelValue", !1);
31
+ }
32
+ function s(t) {
33
+ t.key === "Escape" && r.modelValue && i();
34
+ }
35
+ return B(() => {
36
+ typeof document > "u" || document.addEventListener("keydown", s);
37
+ }), x(
38
+ () => r.modelValue,
39
+ (t) => {
40
+ typeof document > "u" || (document.body.style.overflow = t ? "hidden" : "", t ? C() : b());
41
+ },
42
+ { immediate: !0 }
43
+ ), z(() => {
44
+ typeof document > "u" || (document.removeEventListener("keydown", s), document.body.style.overflow = "");
45
+ }), (t, a) => (o(), E(S, { to: "body" }, [
46
+ u(T, { name: "of-drawer" }, {
47
+ default: $(() => [
48
+ e.modelValue ? (o(), l("div", {
49
+ key: 0,
50
+ class: "of-drawer-overlay",
51
+ style: f({ zIndex: e.zIndex }),
52
+ onClick: a[1] || (a[1] = (X) => e.maskClosable && i())
53
+ }, [
54
+ d("aside", {
55
+ ref_key: "drawerRef",
56
+ ref: k,
57
+ class: "of-drawer",
58
+ role: "dialog",
59
+ "aria-modal": "true",
60
+ "aria-label": e.title,
61
+ style: f(h.value),
62
+ onClick: a[0] || (a[0] = I(() => {
63
+ }, ["stop"]))
64
+ }, [
65
+ d("div", L, [
66
+ c(v).title || e.title || e.showClose ? (o(), l("div", M, [
67
+ d("div", F, [
68
+ m(t.$slots, "title", {}, () => [
69
+ e.title ? (o(), l("h3", K, N(e.title), 1)) : n("", !0)
70
+ ], !0)
71
+ ]),
72
+ e.showClose ? (o(), l("button", {
73
+ key: 0,
74
+ class: "of-drawer__close",
75
+ type: "button",
76
+ "aria-label": "关闭",
77
+ onClick: i
78
+ }, [
79
+ u(c(R), { size: 18 })
80
+ ])) : n("", !0)
81
+ ])) : n("", !0),
82
+ d("div", U, [
83
+ m(t.$slots, "default", {}, void 0, !0)
84
+ ])
85
+ ])
86
+ ], 12, D)
87
+ ], 4)) : n("", !0)
88
+ ]),
89
+ _: 3
90
+ })
91
+ ]));
92
+ }
93
+ });
94
+ export {
95
+ G as default
96
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./Modal.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-98fd9016"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,99 @@
1
+ import { defineComponent as b, watch as w, onUnmounted as p, openBlock as o, createBlock as C, Teleport as V, createVNode as r, Transition as B, withCtx as _, createElementBlock as l, withModifiers as z, normalizeStyle as c, createElementVNode as m, normalizeClass as E, renderSlot as s, toDisplayString as T, unref as $, createCommentVNode as a } from "vue";
2
+ import { X as x } from "lucide-vue-next";
3
+ import { useFocusTrap as I } from "../../composables/useFocusTrap.js";
4
+ const L = ["aria-label"], M = {
5
+ key: 0,
6
+ class: "of-modal__header"
7
+ }, N = {
8
+ key: 0,
9
+ class: "of-modal__title"
10
+ }, R = {
11
+ key: 1,
12
+ class: "of-modal__title-placeholder"
13
+ }, S = { class: "of-modal__body" }, g = {
14
+ key: 1,
15
+ class: "of-modal__footer"
16
+ }, U = /* @__PURE__ */ b({
17
+ inheritAttrs: !1,
18
+ __name: "Modal",
19
+ props: {
20
+ modelValue: { type: Boolean },
21
+ width: { default: "500px" },
22
+ title: {},
23
+ closable: { type: Boolean, default: !0 },
24
+ maskClosable: { type: Boolean, default: !0 },
25
+ centered: { type: Boolean, default: !0 },
26
+ zIndex: { default: 1e3 }
27
+ },
28
+ emits: ["update:modelValue"],
29
+ setup(e, { emit: f }) {
30
+ const d = e, u = f, {
31
+ containerRef: y,
32
+ activate: h,
33
+ deactivate: k
34
+ } = I();
35
+ function n() {
36
+ u("update:modelValue", !1);
37
+ }
38
+ function v() {
39
+ d.maskClosable && n();
40
+ }
41
+ function i(t) {
42
+ t.key === "Escape" && d.modelValue && n();
43
+ }
44
+ return w(
45
+ () => d.modelValue,
46
+ (t) => {
47
+ typeof document > "u" || (t ? (document.body.style.overflow = "hidden", document.addEventListener("keydown", i), h()) : (document.body.style.overflow = "", document.removeEventListener("keydown", i), k()));
48
+ }
49
+ ), p(() => {
50
+ typeof document > "u" || (document.body.style.overflow = "", document.removeEventListener("keydown", i));
51
+ }), (t, A) => (o(), C(V, { to: "body" }, [
52
+ r(B, { name: "of-modal" }, {
53
+ default: _(() => [
54
+ e.modelValue ? (o(), l("div", {
55
+ key: 0,
56
+ class: "of-modal-backdrop",
57
+ style: c({ zIndex: e.zIndex }),
58
+ onClick: z(v, ["self"])
59
+ }, [
60
+ m("div", {
61
+ ref_key: "modalRef",
62
+ ref: y,
63
+ class: E(["of-modal", { "of-modal--centered": e.centered }]),
64
+ style: c({ width: e.width, maxWidth: "90vw" }),
65
+ role: "dialog",
66
+ "aria-modal": "true",
67
+ "aria-label": e.title
68
+ }, [
69
+ t.$slots.header || e.title || e.closable ? (o(), l("div", M, [
70
+ s(t.$slots, "header", {}, () => [
71
+ e.title ? (o(), l("h3", N, T(e.title), 1)) : (o(), l("div", R))
72
+ ], !0),
73
+ e.closable ? (o(), l("button", {
74
+ key: 0,
75
+ class: "of-modal__close",
76
+ onClick: n,
77
+ "aria-label": "关闭",
78
+ type: "button"
79
+ }, [
80
+ r($(x), { size: 18 })
81
+ ])) : a("", !0)
82
+ ])) : a("", !0),
83
+ m("div", S, [
84
+ s(t.$slots, "default", {}, void 0, !0)
85
+ ]),
86
+ t.$slots.footer ? (o(), l("div", g, [
87
+ s(t.$slots, "footer", {}, void 0, !0)
88
+ ])) : a("", !0)
89
+ ], 14, L)
90
+ ], 4)) : a("", !0)
91
+ ]),
92
+ _: 3
93
+ })
94
+ ]));
95
+ }
96
+ });
97
+ export {
98
+ U as default
99
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./SidePanel.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-45ffc40d"]]);
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,121 @@
1
+ import { defineComponent as _, computed as V, onMounted as C, watch as $, onBeforeUnmount as B, openBlock as t, createBlock as S, Teleport as E, createElementBlock as l, Fragment as g, normalizeStyle as u, renderSlot as d, toDisplayString as f, createVNode as m, unref as y, createCommentVNode as a, createElementVNode as h, withDirectives as z, vShow as P } from "vue";
2
+ import { X as k } from "lucide-vue-next";
3
+ import { useFocusTrap as R } from "../../composables/useFocusTrap.js";
4
+ const T = ["aria-label"], N = {
5
+ key: 0,
6
+ class: "of-side-panel__header"
7
+ }, D = {
8
+ key: 0,
9
+ class: "of-side-panel__title"
10
+ }, F = {
11
+ key: 1,
12
+ class: "of-side-panel__title-placeholder"
13
+ }, L = { class: "of-side-panel__body" }, K = ["aria-label"], M = {
14
+ key: 0,
15
+ class: "of-side-panel__header"
16
+ }, U = {
17
+ key: 0,
18
+ class: "of-side-panel__title"
19
+ }, X = {
20
+ key: 1,
21
+ class: "of-side-panel__title-placeholder"
22
+ }, j = { class: "of-side-panel__body" }, I = /* @__PURE__ */ _({
23
+ __name: "SidePanel",
24
+ props: {
25
+ modelValue: { type: Boolean },
26
+ width: { default: 500 },
27
+ title: {},
28
+ showClose: { type: Boolean, default: !0 },
29
+ mode: { default: "persistent" }
30
+ },
31
+ emits: ["update:modelValue"],
32
+ setup(e, { emit: v }) {
33
+ const i = e, w = v, n = V(() => ({
34
+ width: `${i.width}px`
35
+ })), {
36
+ containerRef: r,
37
+ activate: b,
38
+ deactivate: p
39
+ } = R();
40
+ function c(o) {
41
+ o.key === "Escape" && i.modelValue && s();
42
+ }
43
+ C(() => {
44
+ typeof document > "u" || document.addEventListener("keydown", c);
45
+ }), $(
46
+ () => i.modelValue,
47
+ (o) => {
48
+ typeof document > "u" || (document.body.style.overflow = o ? "hidden" : "", o ? b() : p());
49
+ }
50
+ ), B(() => {
51
+ typeof document > "u" || (document.removeEventListener("keydown", c), document.body.style.overflow = "");
52
+ });
53
+ function s() {
54
+ w("update:modelValue", !1);
55
+ }
56
+ return (o, q) => (t(), S(E, { to: "body" }, [
57
+ e.mode === "lazy" ? (t(), l(g, { key: 0 }, [
58
+ e.modelValue ? (t(), l("aside", {
59
+ key: 0,
60
+ ref_key: "sidePanelRef",
61
+ ref: r,
62
+ class: "of-side-panel",
63
+ style: u(n.value),
64
+ role: "dialog",
65
+ "aria-modal": "true",
66
+ "aria-label": e.title
67
+ }, [
68
+ o.$slots.header || e.title || e.showClose ? (t(), l("div", N, [
69
+ d(o.$slots, "header", {}, () => [
70
+ e.title ? (t(), l("h3", D, f(e.title), 1)) : (t(), l("div", F))
71
+ ], !0),
72
+ e.showClose ? (t(), l("button", {
73
+ key: 0,
74
+ class: "of-side-panel__close",
75
+ type: "button",
76
+ "aria-label": "关闭",
77
+ onClick: s
78
+ }, [
79
+ m(y(k), { size: 18 })
80
+ ])) : a("", !0)
81
+ ])) : a("", !0),
82
+ h("div", L, [
83
+ d(o.$slots, "default", {}, void 0, !0)
84
+ ])
85
+ ], 12, T)) : a("", !0)
86
+ ], 64)) : z((t(), l("aside", {
87
+ key: 1,
88
+ ref_key: "sidePanelRef",
89
+ ref: r,
90
+ class: "of-side-panel",
91
+ style: u(n.value),
92
+ role: "dialog",
93
+ "aria-modal": "true",
94
+ "aria-label": e.title
95
+ }, [
96
+ o.$slots.header || e.title || e.showClose ? (t(), l("div", M, [
97
+ d(o.$slots, "header", {}, () => [
98
+ e.title ? (t(), l("h3", U, f(e.title), 1)) : (t(), l("div", X))
99
+ ], !0),
100
+ e.showClose ? (t(), l("button", {
101
+ key: 0,
102
+ class: "of-side-panel__close",
103
+ type: "button",
104
+ "aria-label": "关闭",
105
+ onClick: s
106
+ }, [
107
+ m(y(k), { size: 18 })
108
+ ])) : a("", !0)
109
+ ])) : a("", !0),
110
+ h("div", j, [
111
+ d(o.$slots, "default", {}, void 0, !0)
112
+ ])
113
+ ], 12, K)), [
114
+ [P, e.modelValue]
115
+ ])
116
+ ]));
117
+ }
118
+ });
119
+ export {
120
+ I as default
121
+ };
@@ -0,0 +1,8 @@
1
+ import o from "./SplitPane.vue2.js";
2
+ /* empty css */
3
+ /* empty css */
4
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-860f90a3"]]);
6
+ export {
7
+ f as default
8
+ };
@@ -0,0 +1,68 @@
1
+ import { defineComponent as g, ref as h, onUnmounted as S, openBlock as L, createElementBlock as M, normalizeClass as _, createElementVNode as c, normalizeStyle as w, renderSlot as z, withModifiers as x } from "vue";
2
+ const B = { class: "of-split-pane__second" }, D = /* @__PURE__ */ g({
3
+ __name: "SplitPane",
4
+ props: {
5
+ direction: {},
6
+ defaultSize: {},
7
+ minSize: {},
8
+ maxSize: {}
9
+ },
10
+ setup(d) {
11
+ const n = d, u = h(n.defaultSize ?? 50), s = h(!1), r = h(null);
12
+ function p(e) {
13
+ e.preventDefault(), s.value = !0, document.addEventListener("mousemove", m), document.addEventListener("mouseup", o), document.addEventListener("touchmove", v, { passive: !1 }), document.addEventListener("touchend", o);
14
+ }
15
+ function m(e) {
16
+ if (!s.value || !r.value) return;
17
+ const t = r.value.getBoundingClientRect(), i = (n.direction || "horizontal") === "horizontal";
18
+ let a;
19
+ i ? a = (e.clientX - t.left) / t.width * 100 : a = (e.clientY - t.top) / t.height * 100;
20
+ const l = n.minSize ?? 10, f = n.maxSize ?? 90;
21
+ u.value = Math.min(f, Math.max(l, a));
22
+ }
23
+ function v(e) {
24
+ if (!s.value || !r.value) return;
25
+ e.preventDefault();
26
+ const t = e.touches[0], i = r.value.getBoundingClientRect(), a = (n.direction || "horizontal") === "horizontal";
27
+ let l;
28
+ a ? l = (t.clientX - i.left) / i.width * 100 : l = (t.clientY - i.top) / i.height * 100;
29
+ const f = n.minSize ?? 10, E = n.maxSize ?? 90;
30
+ u.value = Math.min(E, Math.max(f, l));
31
+ }
32
+ function o() {
33
+ s.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", o), document.removeEventListener("touchmove", v), document.removeEventListener("touchend", o);
34
+ }
35
+ return S(() => {
36
+ document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", o), document.removeEventListener("touchmove", v), document.removeEventListener("touchend", o);
37
+ }), (e, t) => (L(), M("div", {
38
+ ref_key: "containerRef",
39
+ ref: r,
40
+ class: _(["of-split-pane", [
41
+ `of-split-pane--${d.direction || "horizontal"}`,
42
+ { "of-split-pane--dragging": s.value }
43
+ ]])
44
+ }, [
45
+ c("div", {
46
+ class: "of-split-pane__first",
47
+ style: w(
48
+ (d.direction || "horizontal") === "vertical" ? { height: u.value + "%" } : { width: u.value + "%" }
49
+ )
50
+ }, [
51
+ z(e.$slots, "first", {}, void 0, !0)
52
+ ], 4),
53
+ c("div", {
54
+ class: "of-split-pane__divider",
55
+ onMousedown: p,
56
+ onTouchstart: x(p, ["prevent"])
57
+ }, [...t[0] || (t[0] = [
58
+ c("div", { class: "of-split-pane__divider-inner" }, null, -1)
59
+ ])], 32),
60
+ c("div", B, [
61
+ z(e.$slots, "second", {}, void 0, !0)
62
+ ])
63
+ ], 2));
64
+ }
65
+ });
66
+ export {
67
+ D as default
68
+ };
@@ -0,0 +1,33 @@
1
+ import { FieldType } from '../../types';
2
+ type __VLS_Props = {
3
+ colKey: string;
4
+ colLabel: string;
5
+ fieldType?: FieldType;
6
+ sortOrder?: "asc" | "desc" | null;
7
+ visible: boolean;
8
+ x: number;
9
+ y: number;
10
+ deletable?: boolean;
11
+ };
12
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ sort: (colKey: string, direction: "asc" | "desc") => any;
14
+ delete: (colKey: string) => any;
15
+ close: () => any;
16
+ rename: (colKey: string, newName: string) => any;
17
+ "change-type": (colKey: string, newType: FieldType) => any;
18
+ hide: (colKey: string) => any;
19
+ duplicate: (colKey: string) => any;
20
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ onSort?: ((colKey: string, direction: "asc" | "desc") => any) | undefined;
22
+ onDelete?: ((colKey: string) => any) | undefined;
23
+ onClose?: (() => any) | undefined;
24
+ onRename?: ((colKey: string, newName: string) => any) | undefined;
25
+ "onChange-type"?: ((colKey: string, newType: FieldType) => any) | undefined;
26
+ onHide?: ((colKey: string) => any) | undefined;
27
+ onDuplicate?: ((colKey: string) => any) | undefined;
28
+ }>, {
29
+ deletable: boolean;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
31
+ renameInput: HTMLInputElement;
32
+ }, any>;
33
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import o from "./ColumnHeaderMenu.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f6210323"]]);
5
+ export {
6
+ a as default
7
+ };