@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,7 @@
1
+ import o from "./FieldNumber.vue2.js";
2
+ /* empty css */
3
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a09e5dea"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -1,14 +1,13 @@
1
- import { defineComponent as p, ref as m, onMounted as v, nextTick as d, withDirectives as N, openBlock as b, createElementBlock as y, vModelText as k } from "vue";
2
- import { _ } from "./index-DQph5iTq.js";
3
- const x = /* @__PURE__ */ p({
1
+ import { defineComponent as s, ref as f, onMounted as v, nextTick as d, withDirectives as N, openBlock as b, createElementBlock as y, vModelText as k } from "vue";
2
+ const x = /* @__PURE__ */ s({
4
3
  __name: "FieldNumber",
5
4
  props: {
6
5
  value: { type: [String, Number, Boolean, Array, null] },
7
6
  field: {}
8
7
  },
9
8
  emits: ["commit", "cancel", "tabNext"],
10
- setup(f, { emit: c }) {
11
- const o = f, u = c, a = m(null), t = m(o.value === null || o.value === void 0 ? "" : String(o.value));
9
+ setup(m, { emit: c }) {
10
+ const o = m, u = c, a = f(null), t = f(o.value === null || o.value === void 0 ? "" : String(o.value));
12
11
  v(() => d(() => {
13
12
  var e;
14
13
  return (e = a.value) == null ? void 0 : e.focus();
@@ -22,7 +21,7 @@ const x = /* @__PURE__ */ p({
22
21
  const n = t.value === "" ? 0 : Number(t.value), l = Number.isNaN(n) ? 0 : n;
23
22
  t.value = String(l + e);
24
23
  }
25
- function s(e) {
24
+ function p(e) {
26
25
  e.key === "ArrowUp" && (e.preventDefault(), i(1)), e.key === "ArrowDown" && (e.preventDefault(), i(-1)), e.key === "Enter" && (e.preventDefault(), u("commit", r())), e.key === "Escape" && (e.preventDefault(), u("cancel")), e.key === "Tab" && (e.preventDefault(), u("commit", r()), u("tabNext"));
27
26
  }
28
27
  return (e, n) => N((b(), y("input", {
@@ -31,13 +30,13 @@ const x = /* @__PURE__ */ p({
31
30
  class: "of-field-input",
32
31
  type: "number",
33
32
  "onUpdate:modelValue": n[0] || (n[0] = (l) => t.value = l),
34
- onKeydown: s,
33
+ onKeydown: p,
35
34
  onBlur: n[1] || (n[1] = (l) => u("commit", r()))
36
35
  }, null, 544)), [
37
36
  [k, t.value]
38
37
  ]);
39
38
  }
40
- }), B = /* @__PURE__ */ _(x, [["__scopeId", "data-v-a09e5dea"]]);
39
+ });
41
40
  export {
42
- B as default
41
+ x as default
43
42
  };
@@ -0,0 +1,17 @@
1
+ import { CellValue, FieldDef } from '../table/FieldCell.vue';
2
+ type __VLS_Props = {
3
+ value?: CellValue;
4
+ field: FieldDef;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ cancel: () => any;
8
+ commit: (value: CellValue) => any;
9
+ tabNext: () => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onCancel?: (() => any) | undefined;
12
+ onCommit?: ((value: CellValue) => any) | undefined;
13
+ onTabNext?: (() => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
+ inputRef: HTMLInputElement;
16
+ }, HTMLInputElement>;
17
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import o from "./FieldPhone.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-16fe679a"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,34 @@
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: "FieldPhone",
4
+ props: {
5
+ value: { type: [String, Number, Boolean, Array, null] },
6
+ field: {}
7
+ },
8
+ emits: ["commit", "cancel", "tabNext"],
9
+ setup(r, { emit: p }) {
10
+ const o = r, t = p, u = i(null), l = i(typeof o.value == "string" ? o.value : "");
11
+ m(() => s(() => {
12
+ var e;
13
+ return (e = u.value) == null ? void 0 : e.focus();
14
+ }));
15
+ function f(e) {
16
+ e.key === "Enter" && (e.preventDefault(), t("commit", l.value || null)), e.key === "Escape" && (e.preventDefault(), t("cancel")), e.key === "Tab" && (e.preventDefault(), t("commit", l.value || null), t("tabNext"));
17
+ }
18
+ return (e, n) => v((d(), y("input", {
19
+ ref_key: "inputRef",
20
+ ref: u,
21
+ class: "of-field-input",
22
+ type: "tel",
23
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => l.value = a),
24
+ placeholder: "输入电话号码",
25
+ onKeydown: f,
26
+ onBlur: n[1] || (n[1] = (a) => t("commit", l.value || null))
27
+ }, null, 544)), [
28
+ [k, l.value]
29
+ ]);
30
+ }
31
+ });
32
+ export {
33
+ b as default
34
+ };
@@ -0,0 +1,15 @@
1
+ import { CellValue, FieldDef } from '../table/FieldCell.vue';
2
+ type __VLS_Props = {
3
+ value?: CellValue;
4
+ field: FieldDef;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ cancel: () => any;
8
+ commit: (value: CellValue) => any;
9
+ tabNext: () => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onCancel?: (() => any) | undefined;
12
+ onCommit?: ((value: CellValue) => any) | undefined;
13
+ onTabNext?: (() => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import o from "./FieldProgress.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a4750422"]]);
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,40 @@
1
+ import { defineComponent as d, ref as p, openBlock as g, createElementBlock as v, createElementVNode as o, normalizeStyle as _, unref as l, toDisplayString as y } from "vue";
2
+ const x = { class: "of-field-progress" }, h = { class: "of-field-progress-bar" }, b = ["min", "max", "value"], N = { class: "of-field-progress-label" }, C = /* @__PURE__ */ d({
3
+ __name: "FieldProgress",
4
+ props: {
5
+ value: { type: [String, Number, Boolean, Array, null] },
6
+ field: {}
7
+ },
8
+ emits: ["commit", "cancel", "tabNext"],
9
+ setup(r, { emit: c }) {
10
+ const e = r, m = c, s = e.field.type === "progress" && "min" in e.field ? e.field.min ?? 0 : 0, n = e.field.type === "progress" && "max" in e.field ? e.field.max ?? 100 : 100, t = p(typeof e.value == "number" ? e.value : 0);
11
+ function f(i) {
12
+ const a = i.target;
13
+ t.value = Number(a.value);
14
+ }
15
+ function u() {
16
+ m("commit", t.value);
17
+ }
18
+ return (i, a) => (g(), v("div", x, [
19
+ o("div", h, [
20
+ o("div", {
21
+ class: "of-field-progress-fill",
22
+ style: _({ width: `${(t.value - l(s)) / (l(n) - l(s)) * 100}%` })
23
+ }, null, 4)
24
+ ]),
25
+ o("input", {
26
+ class: "of-field-progress-slider",
27
+ type: "range",
28
+ min: l(s),
29
+ max: l(n),
30
+ value: t.value,
31
+ onInput: f,
32
+ onChange: u
33
+ }, null, 40, b),
34
+ o("span", N, y(t.value) + "%", 1)
35
+ ]));
36
+ }
37
+ });
38
+ export {
39
+ C as default
40
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./FieldRating.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-58a68101"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,31 @@
1
+ import { defineComponent as v, ref as x, openBlock as o, createElementBlock as r, withKeys as _, Fragment as g, renderList as k, unref as u, withModifiers as y, normalizeClass as b } from "vue";
2
+ const C = ["onMouseenter", "onClick"], $ = /* @__PURE__ */ v({
3
+ __name: "FieldRating",
4
+ props: {
5
+ value: { type: [String, Number, Boolean, Array, null] },
6
+ field: {}
7
+ },
8
+ emits: ["commit", "cancel", "tabNext"],
9
+ setup(c, { emit: m }) {
10
+ const l = c, s = m, n = x(0), d = l.field.max ?? 5, f = Number(l.value ?? 0);
11
+ function p(i) {
12
+ s("commit", i);
13
+ }
14
+ return (i, t) => (o(), r("div", {
15
+ class: "of-field-rating",
16
+ onKeydown: t[1] || (t[1] = _((e) => s("cancel"), ["escape"])),
17
+ tabindex: "0"
18
+ }, [
19
+ (o(!0), r(g, null, k(u(d), (e) => (o(), r("span", {
20
+ key: e,
21
+ class: b(["of-field-rating__star", { filled: e <= (n.value || u(f)) }]),
22
+ onMouseenter: (a) => n.value = e,
23
+ onMouseleave: t[0] || (t[0] = (a) => n.value = 0),
24
+ onClick: y((a) => p(e), ["stop"])
25
+ }, "★", 42, C))), 128))
26
+ ], 32));
27
+ }
28
+ });
29
+ export {
30
+ $ as default
31
+ };
@@ -0,0 +1,17 @@
1
+ import { CellValue, FieldDef } from '../table/FieldCell.vue';
2
+ type __VLS_Props = {
3
+ value?: CellValue;
4
+ field: FieldDef;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ cancel: () => any;
8
+ commit: (value: CellValue) => any;
9
+ tabNext: () => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onCancel?: (() => any) | undefined;
12
+ onCommit?: ((value: CellValue) => any) | undefined;
13
+ onTabNext?: (() => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
+ inputRef: HTMLInputElement;
16
+ }, HTMLDivElement>;
17
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import o from "./FieldRelation.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7af66606"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,67 @@
1
+ import { defineComponent as x, ref as i, computed as _, onMounted as b, nextTick as N, openBlock as r, createElementBlock as u, withDirectives as V, createElementVNode as f, vModelText as h, Fragment as D, renderList as C, createTextVNode as E, toDisplayString as M, createCommentVNode as T } from "vue";
2
+ const A = {
3
+ key: 0,
4
+ class: "of-field-relation-tags"
5
+ }, B = ["onClick"], w = /* @__PURE__ */ x({
6
+ __name: "FieldRelation",
7
+ props: {
8
+ value: { type: [String, Number, Boolean, Array, null] },
9
+ field: {}
10
+ },
11
+ emits: ["commit", "cancel", "tabNext"],
12
+ setup(m, { emit: d }) {
13
+ const n = m, a = d, c = i(null), v = i(""), y = i(!1), t = i(
14
+ Array.isArray(n.value) ? n.value.filter((e) => typeof e == "string") : typeof n.value == "string" && n.value ? [n.value] : []
15
+ ), p = _(() => n.field.type !== "relation" ? !1 : n.field.relationMode === "many_to_many");
16
+ b(() => N(() => {
17
+ var e;
18
+ return (e = c.value) == null ? void 0 : e.focus();
19
+ }));
20
+ function g(e) {
21
+ if (p.value) {
22
+ const l = t.value.indexOf(e);
23
+ l >= 0 ? t.value.splice(l, 1) : t.value.push(e);
24
+ } else
25
+ t.value = [e], s();
26
+ }
27
+ function s() {
28
+ p.value ? a("commit", t.value.length > 0 ? t.value : null) : a("commit", t.value[0] ?? null);
29
+ }
30
+ function k(e) {
31
+ e.key === "Escape" && (e.preventDefault(), a("cancel")), e.key === "Enter" && (e.preventDefault(), s()), e.key === "Tab" && (e.preventDefault(), s(), a("tabNext"));
32
+ }
33
+ return (e, l) => (r(), u("div", {
34
+ class: "of-field-relation",
35
+ onKeydown: k
36
+ }, [
37
+ V(f("input", {
38
+ ref_key: "inputRef",
39
+ ref: c,
40
+ class: "of-field-relation-search",
41
+ type: "text",
42
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => v.value = o),
43
+ placeholder: "搜索关联记录...",
44
+ onFocus: l[1] || (l[1] = (o) => y.value = !0)
45
+ }, null, 544), [
46
+ [h, v.value]
47
+ ]),
48
+ t.value.length > 0 ? (r(), u("div", A, [
49
+ (r(!0), u(D, null, C(t.value, (o) => (r(), u("span", {
50
+ key: o,
51
+ class: "of-field-relation-tag"
52
+ }, [
53
+ E(M(o) + " ", 1),
54
+ f("button", {
55
+ type: "button",
56
+ class: "of-field-relation-tag-remove",
57
+ onClick: (F) => g(o)
58
+ }, " × ", 8, B)
59
+ ]))), 128))
60
+ ])) : T("", !0),
61
+ l[2] || (l[2] = f("div", { class: "of-field-relation-hint" }, "关联记录选择器(需由消费方通过 slot 提供数据源)", -1))
62
+ ], 32));
63
+ }
64
+ });
65
+ export {
66
+ w as default
67
+ };
@@ -0,0 +1,17 @@
1
+ import { CellValue, FieldDef } from '../table/FieldCell.vue';
2
+ type __VLS_Props = {
3
+ value?: CellValue;
4
+ field: FieldDef;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ cancel: () => any;
8
+ commit: (value: CellValue) => any;
9
+ tabNext: () => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onCancel?: (() => any) | undefined;
12
+ onCommit?: ((value: CellValue) => any) | undefined;
13
+ onTabNext?: (() => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
+ editorRef: HTMLDivElement;
16
+ }, HTMLDivElement>;
17
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import o from "./FieldRichText.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b9f87e2f"]]);
5
+ export {
6
+ i as default
7
+ };
@@ -0,0 +1,65 @@
1
+ import { defineComponent as p, ref as d, onMounted as b, nextTick as x, openBlock as y, createElementBlock as M, createElementVNode as n, withModifiers as r } from "vue";
2
+ const k = { class: "of-field-richtext" }, w = { class: "of-field-richtext-toolbar" }, T = /* @__PURE__ */ p({
3
+ __name: "FieldRichText",
4
+ props: {
5
+ value: { type: [String, Number, Boolean, Array, null] },
6
+ field: {}
7
+ },
8
+ emits: ["commit", "cancel", "tabNext"],
9
+ setup(a, { emit: c }) {
10
+ const s = a, l = c, o = d(null), i = d(typeof s.value == "string" ? s.value : "");
11
+ b(
12
+ () => x(() => {
13
+ o.value && (o.value.innerHTML = i.value, o.value.focus());
14
+ })
15
+ );
16
+ function m(t) {
17
+ var e;
18
+ t.key === "Escape" && (t.preventDefault(), l("cancel")), t.key === "Enter" && (t.ctrlKey || t.metaKey) && (t.preventDefault(), l("commit", ((e = o.value) == null ? void 0 : e.innerHTML) ?? i.value));
19
+ }
20
+ function v() {
21
+ var t;
22
+ l("commit", ((t = o.value) == null ? void 0 : t.innerHTML) ?? i.value);
23
+ }
24
+ function u(t) {
25
+ var e;
26
+ document.execCommand(t, !1), (e = o.value) == null || e.focus();
27
+ }
28
+ return (t, e) => (y(), M("div", k, [
29
+ n("div", w, [
30
+ n("button", {
31
+ type: "button",
32
+ class: "of-field-richtext-btn",
33
+ onMousedown: e[0] || (e[0] = r((f) => u("bold"), ["prevent"]))
34
+ }, [...e[3] || (e[3] = [
35
+ n("strong", null, "B", -1)
36
+ ])], 32),
37
+ n("button", {
38
+ type: "button",
39
+ class: "of-field-richtext-btn",
40
+ onMousedown: e[1] || (e[1] = r((f) => u("italic"), ["prevent"]))
41
+ }, [...e[4] || (e[4] = [
42
+ n("em", null, "I", -1)
43
+ ])], 32),
44
+ n("button", {
45
+ type: "button",
46
+ class: "of-field-richtext-btn",
47
+ onMousedown: e[2] || (e[2] = r((f) => u("underline"), ["prevent"]))
48
+ }, [...e[5] || (e[5] = [
49
+ n("u", null, "U", -1)
50
+ ])], 32)
51
+ ]),
52
+ n("div", {
53
+ ref_key: "editorRef",
54
+ ref: o,
55
+ class: "of-field-richtext-editor",
56
+ contenteditable: "true",
57
+ onKeydown: m,
58
+ onBlur: v
59
+ }, null, 544)
60
+ ]));
61
+ }
62
+ });
63
+ export {
64
+ T as default
65
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./FieldSelect.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-602f7b18"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -1,24 +1,24 @@
1
- import { defineComponent as N, ref as f, computed as x, onMounted as R, nextTick as V, onBeforeUnmount as z, watch as A, openBlock as l, createElementBlock as a, normalizeStyle as b, toDisplayString as w, createBlock as I, Teleport as F, createElementVNode as T, withModifiers as C, normalizeClass as L, Fragment as O, renderList as P, createCommentVNode as U } from "vue";
2
- import { _ as K } from "./index-DQph5iTq.js";
3
- const W = {
1
+ import { defineComponent as V, ref as f, computed as b, onMounted as z, nextTick as A, onBeforeUnmount as I, watch as T, openBlock as l, createElementBlock as a, normalizeStyle as x, toDisplayString as _, createBlock as F, Teleport as O, unref as B, normalizeClass as h, createElementVNode as P, withModifiers as L, Fragment as U, renderList as K, createCommentVNode as W } from "vue";
2
+ import { useBreakpoint as j } from "../../composables/useBreakpoint.js";
3
+ const q = {
4
4
  key: 1,
5
5
  class: "of-field-select__display"
6
- }, j = ["onMouseenter", "onClick"], q = { key: 1 }, G = /* @__PURE__ */ N({
6
+ }, G = ["onMouseenter", "onClick"], H = { key: 1 }, X = /* @__PURE__ */ V({
7
7
  __name: "FieldSelect",
8
8
  props: {
9
9
  value: { type: [String, Number, Boolean, Array, null] },
10
10
  field: {}
11
11
  },
12
12
  emits: ["commit", "cancel", "tabNext"],
13
- setup(M, { emit: B }) {
14
- const s = M, y = B, i = f(null), h = f(null), E = f({ top: "0px", left: "0px", width: "0px" }), p = f(!0), r = x(() => s.field.options ?? []), c = x(() => {
15
- const e = typeof s.value == "string" ? s.value : null;
13
+ setup($, { emit: N }) {
14
+ const { isMobile: E } = j(), i = $, y = N, s = f(null), D = f(null), C = f({ top: "0px", left: "0px", width: "0px" }), p = f(!0), r = b(() => i.field.options ?? []), c = b(() => {
15
+ const e = typeof i.value == "string" ? i.value : null;
16
16
  return r.value.findIndex((t) => t.value === e);
17
17
  }), n = f(0);
18
18
  function d() {
19
- if (!i.value) return;
20
- const e = i.value.getBoundingClientRect();
21
- E.value = {
19
+ if (!s.value) return;
20
+ const e = s.value.getBoundingClientRect();
21
+ C.value = {
22
22
  top: `${e.bottom}px`,
23
23
  left: `${e.left}px`,
24
24
  width: `${Math.max(e.width, 160)}px`
@@ -30,7 +30,7 @@ const W = {
30
30
  function k() {
31
31
  p.value && (p.value = !1, y("cancel"));
32
32
  }
33
- function S(e) {
33
+ function R(e) {
34
34
  var t, o;
35
35
  if (!r.value.length) {
36
36
  e.key === "Escape" && (e.preventDefault(), k());
@@ -54,69 +54,69 @@ const W = {
54
54
  }
55
55
  e.key === "Tab" && (e.preventDefault(), m(((o = r.value[n.value]) == null ? void 0 : o.value) ?? null), y("tabNext"));
56
56
  }
57
- function D(e) {
57
+ function M(e) {
58
58
  var o, v;
59
59
  const t = e.target;
60
- t && ((o = i.value) != null && o.contains(t) || (v = h.value) != null && v.contains(t) || k());
60
+ t && ((o = s.value) != null && o.contains(t) || (v = D.value) != null && v.contains(t) || k());
61
61
  }
62
- R(() => {
63
- n.value = c.value >= 0 ? c.value : 0, V(() => {
62
+ z(() => {
63
+ n.value = c.value >= 0 ? c.value : 0, A(() => {
64
64
  var e;
65
- d(), (e = i.value) == null || e.focus();
66
- }), window.addEventListener("resize", d), window.addEventListener("scroll", d, !0), window.addEventListener("mousedown", D, !0);
67
- }), z(() => {
68
- window.removeEventListener("resize", d), window.removeEventListener("scroll", d, !0), window.removeEventListener("mousedown", D, !0);
69
- }), A(c, (e) => {
65
+ d(), (e = s.value) == null || e.focus();
66
+ }), window.addEventListener("resize", d), window.addEventListener("scroll", d, !0), window.addEventListener("mousedown", M, !0);
67
+ }), I(() => {
68
+ window.removeEventListener("resize", d), window.removeEventListener("scroll", d, !0), window.removeEventListener("mousedown", M, !0);
69
+ }), T(c, (e) => {
70
70
  e >= 0 && (n.value = e);
71
71
  });
72
- const _ = x(() => {
73
- const e = typeof s.value == "string" ? s.value : null;
72
+ const w = b(() => {
73
+ const e = typeof i.value == "string" ? i.value : null;
74
74
  return r.value.find((t) => t.value === e);
75
75
  });
76
76
  return (e, t) => {
77
77
  var o, v;
78
78
  return l(), a("div", {
79
79
  ref_key: "triggerRef",
80
- ref: i,
80
+ ref: s,
81
81
  class: "of-field-select",
82
82
  tabindex: "0",
83
- onKeydown: S
83
+ onKeydown: R
84
84
  }, [
85
- (o = _.value) != null && o.color ? (l(), a("span", {
85
+ (o = w.value) != null && o.color ? (l(), a("span", {
86
86
  key: 0,
87
87
  class: "of-field-select__badge",
88
- style: b({ background: _.value.color })
89
- }, w(_.value.label), 5)) : (l(), a("span", W, w(((v = _.value) == null ? void 0 : v.label) ?? "—"), 1)),
90
- (l(), I(F, { to: "body" }, [
88
+ style: x({ background: w.value.color })
89
+ }, _(w.value.label), 5)) : (l(), a("span", q, _(((v = w.value) == null ? void 0 : v.label) ?? "—"), 1)),
90
+ (l(), F(O, { to: "body" }, [
91
91
  p.value ? (l(), a("div", {
92
92
  key: 0,
93
93
  ref_key: "dropdownRef",
94
- ref: h,
95
- class: "of-field-select__dropdown",
96
- style: b(E.value)
94
+ ref: D,
95
+ class: h(["of-field-select__dropdown", { "of-field-select__dropdown--sheet": B(E) }]),
96
+ style: x(B(E) ? {} : C.value)
97
97
  }, [
98
- T("div", {
99
- class: L(["of-field-select__option of-field-select__option--clear", { active: n.value === -1, selected: c.value === -1 }]),
100
- onClick: t[0] || (t[0] = C((u) => m(null), ["stop"]))
98
+ P("div", {
99
+ class: h(["of-field-select__option of-field-select__option--clear", { active: n.value === -1, selected: c.value === -1 }]),
100
+ onClick: t[0] || (t[0] = L((u) => m(null), ["stop"]))
101
101
  }, " — ", 2),
102
- (l(!0), a(O, null, P(r.value, (u, g) => (l(), a("div", {
102
+ (l(!0), a(U, null, K(r.value, (u, g) => (l(), a("div", {
103
103
  key: u.value,
104
- class: L(["of-field-select__option", { active: g === n.value, selected: g === c.value }]),
105
- onMouseenter: ($) => n.value = g,
106
- onClick: C(($) => m(u.value), ["stop"])
104
+ class: h(["of-field-select__option", { active: g === n.value, selected: g === c.value }]),
105
+ onMouseenter: (S) => n.value = g,
106
+ onClick: L((S) => m(u.value), ["stop"])
107
107
  }, [
108
108
  u.color ? (l(), a("span", {
109
109
  key: 0,
110
110
  class: "of-field-select__badge",
111
- style: b({ background: u.color })
112
- }, w(u.label), 5)) : (l(), a("span", q, w(u.label), 1))
113
- ], 42, j))), 128))
114
- ], 4)) : U("", !0)
111
+ style: x({ background: u.color })
112
+ }, _(u.label), 5)) : (l(), a("span", H, _(u.label), 1))
113
+ ], 42, G))), 128))
114
+ ], 6)) : W("", !0)
115
115
  ]))
116
116
  ], 544);
117
117
  };
118
118
  }
119
- }), Q = /* @__PURE__ */ K(G, [["__scopeId", "data-v-a280810a"]]);
119
+ });
120
120
  export {
121
- Q as default
121
+ X as default
122
122
  };
@@ -0,0 +1,7 @@
1
+ import o from "./FieldText.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-836136e5"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -1,34 +1,33 @@
1
- import { defineComponent as f, ref as a, onMounted as m, nextTick as s, withDirectives as v, openBlock as d, createElementBlock as x, vModelText as y } from "vue";
2
- import { _ } from "./index-DQph5iTq.js";
3
- const k = /* @__PURE__ */ f({
1
+ import { defineComponent as c, ref as i, onMounted as m, nextTick as s, withDirectives as v, openBlock as d, createElementBlock as x, vModelText as y } from "vue";
2
+ const b = /* @__PURE__ */ c({
4
3
  __name: "FieldText",
5
4
  props: {
6
5
  value: { type: [String, Number, Boolean, Array, null] },
7
6
  field: {}
8
7
  },
9
8
  emits: ["commit", "cancel", "tabNext"],
10
- setup(u, { emit: r }) {
11
- const p = u, t = r, l = a(null), n = a(String(p.value ?? ""));
9
+ setup(a, { emit: r }) {
10
+ const f = a, t = r, o = i(null), n = i(String(f.value ?? ""));
12
11
  m(() => s(() => {
13
12
  var e;
14
- return (e = l.value) == null ? void 0 : e.focus();
13
+ return (e = o.value) == null ? void 0 : e.focus();
15
14
  }));
16
- function c(e) {
15
+ function p(e) {
17
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"));
18
17
  }
19
- return (e, o) => v((d(), x("input", {
18
+ return (e, l) => v((d(), x("input", {
20
19
  ref_key: "inputRef",
21
- ref: l,
20
+ ref: o,
22
21
  class: "of-field-input",
23
22
  type: "text",
24
- "onUpdate:modelValue": o[0] || (o[0] = (i) => n.value = i),
25
- onKeydown: c,
26
- onBlur: o[1] || (o[1] = (i) => t("commit", n.value))
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))
27
26
  }, null, 544)), [
28
27
  [y, n.value]
29
28
  ]);
30
29
  }
31
- }), B = /* @__PURE__ */ _(k, [["__scopeId", "data-v-836136e5"]]);
30
+ });
32
31
  export {
33
- B as default
32
+ b as default
34
33
  };
@@ -0,0 +1,7 @@
1
+ import o from "./FieldUrl.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-8d4527db"]]);
5
+ export {
6
+ p as default
7
+ };