v-nuxt-ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/README.md +153 -0
  2. package/dist/module.d.mts +13 -0
  3. package/dist/module.json +15 -0
  4. package/dist/module.mjs +45 -0
  5. package/dist/runtime/assets/css/main.css +1 -0
  6. package/dist/runtime/assets/css/transition.css +1 -0
  7. package/dist/runtime/components/CircleProgress.d.vue.ts +17 -0
  8. package/dist/runtime/components/CircleProgress.vue +75 -0
  9. package/dist/runtime/components/CircleProgress.vue.d.ts +17 -0
  10. package/dist/runtime/components/DeleteModal.d.vue.ts +14 -0
  11. package/dist/runtime/components/DeleteModal.vue +57 -0
  12. package/dist/runtime/components/DeleteModal.vue.d.ts +14 -0
  13. package/dist/runtime/components/Dnd.client.d.vue.ts +25 -0
  14. package/dist/runtime/components/Dnd.client.vue +47 -0
  15. package/dist/runtime/components/Dnd.client.vue.d.ts +25 -0
  16. package/dist/runtime/components/EChart.client.d.vue.ts +19 -0
  17. package/dist/runtime/components/EChart.client.vue +72 -0
  18. package/dist/runtime/components/EChart.client.vue.d.ts +19 -0
  19. package/dist/runtime/components/Empty.d.vue.ts +12 -0
  20. package/dist/runtime/components/Empty.vue +26 -0
  21. package/dist/runtime/components/Empty.vue.d.ts +12 -0
  22. package/dist/runtime/components/PermissionWrapper.d.vue.ts +23 -0
  23. package/dist/runtime/components/PermissionWrapper.vue +51 -0
  24. package/dist/runtime/components/PermissionWrapper.vue.d.ts +23 -0
  25. package/dist/runtime/components/ScrollArea.d.vue.ts +26 -0
  26. package/dist/runtime/components/ScrollArea.vue +201 -0
  27. package/dist/runtime/components/ScrollArea.vue.d.ts +26 -0
  28. package/dist/runtime/components/Spin.d.vue.ts +16 -0
  29. package/dist/runtime/components/Spin.vue +22 -0
  30. package/dist/runtime/components/Spin.vue.d.ts +16 -0
  31. package/dist/runtime/components/SqlEditor.d.vue.ts +23 -0
  32. package/dist/runtime/components/SqlEditor.vue +255 -0
  33. package/dist/runtime/components/SqlEditor.vue.d.ts +23 -0
  34. package/dist/runtime/components/Watermark.d.vue.ts +44 -0
  35. package/dist/runtime/components/Watermark.vue +162 -0
  36. package/dist/runtime/components/Watermark.vue.d.ts +44 -0
  37. package/dist/runtime/components/badge/CodeModal.client.d.vue.ts +11 -0
  38. package/dist/runtime/components/badge/CodeModal.client.vue +77 -0
  39. package/dist/runtime/components/badge/CodeModal.client.vue.d.ts +11 -0
  40. package/dist/runtime/components/badge/CodeTooltip.client.d.vue.ts +9 -0
  41. package/dist/runtime/components/badge/CodeTooltip.client.vue +57 -0
  42. package/dist/runtime/components/badge/CodeTooltip.client.vue.d.ts +9 -0
  43. package/dist/runtime/components/button/Dropdown.d.vue.ts +31 -0
  44. package/dist/runtime/components/button/Dropdown.vue +123 -0
  45. package/dist/runtime/components/button/Dropdown.vue.d.ts +31 -0
  46. package/dist/runtime/components/button/Theme.d.vue.ts +19 -0
  47. package/dist/runtime/components/button/Theme.vue +45 -0
  48. package/dist/runtime/components/button/Theme.vue.d.ts +19 -0
  49. package/dist/runtime/components/date-picker/Input.d.vue.ts +18 -0
  50. package/dist/runtime/components/date-picker/Input.vue +39 -0
  51. package/dist/runtime/components/date-picker/Input.vue.d.ts +18 -0
  52. package/dist/runtime/components/date-picker/index.d.vue.ts +26 -0
  53. package/dist/runtime/components/date-picker/index.vue +223 -0
  54. package/dist/runtime/components/date-picker/index.vue.d.ts +26 -0
  55. package/dist/runtime/components/flow/FlowEdge.client.d.vue.ts +5 -0
  56. package/dist/runtime/components/flow/FlowEdge.client.vue +110 -0
  57. package/dist/runtime/components/flow/FlowEdge.client.vue.d.ts +5 -0
  58. package/dist/runtime/components/flow/FlowNode.client.d.vue.ts +8 -0
  59. package/dist/runtime/components/flow/FlowNode.client.vue +79 -0
  60. package/dist/runtime/components/flow/FlowNode.client.vue.d.ts +8 -0
  61. package/dist/runtime/components/flow/FlowStats.d.vue.ts +7 -0
  62. package/dist/runtime/components/flow/FlowStats.vue +17 -0
  63. package/dist/runtime/components/flow/FlowStats.vue.d.ts +7 -0
  64. package/dist/runtime/components/flow/FlowToolbar.d.vue.ts +14 -0
  65. package/dist/runtime/components/flow/FlowToolbar.vue +113 -0
  66. package/dist/runtime/components/flow/FlowToolbar.vue.d.ts +14 -0
  67. package/dist/runtime/components/form/create-modal-template/WithApi.d.vue.ts +19 -0
  68. package/dist/runtime/components/form/create-modal-template/WithApi.vue +36 -0
  69. package/dist/runtime/components/form/create-modal-template/WithApi.vue.d.ts +19 -0
  70. package/dist/runtime/components/form/create-modal-template/index.d.vue.ts +19 -0
  71. package/dist/runtime/components/form/create-modal-template/index.vue +75 -0
  72. package/dist/runtime/components/form/create-modal-template/index.vue.d.ts +19 -0
  73. package/dist/runtime/components/form/field/AsyncObjectSelect.d.vue.ts +23 -0
  74. package/dist/runtime/components/form/field/AsyncObjectSelect.vue +46 -0
  75. package/dist/runtime/components/form/field/AsyncObjectSelect.vue.d.ts +23 -0
  76. package/dist/runtime/components/form/field/AsyncSelect.d.vue.ts +26 -0
  77. package/dist/runtime/components/form/field/AsyncSelect.vue +140 -0
  78. package/dist/runtime/components/form/field/AsyncSelect.vue.d.ts +26 -0
  79. package/dist/runtime/components/form/field/AsyncTreeSelect.d.vue.ts +27 -0
  80. package/dist/runtime/components/form/field/AsyncTreeSelect.vue +130 -0
  81. package/dist/runtime/components/form/field/AsyncTreeSelect.vue.d.ts +27 -0
  82. package/dist/runtime/components/form/field/ButtonSwitch.d.vue.ts +19 -0
  83. package/dist/runtime/components/form/field/ButtonSwitch.vue +29 -0
  84. package/dist/runtime/components/form/field/ButtonSwitch.vue.d.ts +19 -0
  85. package/dist/runtime/components/form/field/DatePicker.d.vue.ts +26 -0
  86. package/dist/runtime/components/form/field/DatePicker.vue +89 -0
  87. package/dist/runtime/components/form/field/DatePicker.vue.d.ts +26 -0
  88. package/dist/runtime/components/form/field/DynamicInput.d.vue.ts +14 -0
  89. package/dist/runtime/components/form/field/DynamicInput.vue +52 -0
  90. package/dist/runtime/components/form/field/DynamicInput.vue.d.ts +14 -0
  91. package/dist/runtime/components/form/field/DynamicObjectInput.d.vue.ts +20 -0
  92. package/dist/runtime/components/form/field/DynamicObjectInput.vue +82 -0
  93. package/dist/runtime/components/form/field/DynamicObjectInput.vue.d.ts +20 -0
  94. package/dist/runtime/components/form/field/Input.d.vue.ts +17 -0
  95. package/dist/runtime/components/form/field/Input.vue +41 -0
  96. package/dist/runtime/components/form/field/Input.vue.d.ts +17 -0
  97. package/dist/runtime/components/form/field/InputPassword.d.vue.ts +17 -0
  98. package/dist/runtime/components/form/field/InputPassword.vue +40 -0
  99. package/dist/runtime/components/form/field/InputPassword.vue.d.ts +17 -0
  100. package/dist/runtime/components/form/field/InputStringNumber.d.vue.ts +16 -0
  101. package/dist/runtime/components/form/field/InputStringNumber.vue +56 -0
  102. package/dist/runtime/components/form/field/InputStringNumber.vue.d.ts +16 -0
  103. package/dist/runtime/components/form/field/Select.d.vue.ts +16 -0
  104. package/dist/runtime/components/form/field/Select.vue +29 -0
  105. package/dist/runtime/components/form/field/Select.vue.d.ts +16 -0
  106. package/dist/runtime/components/form/field/SqlEditor.d.vue.ts +10 -0
  107. package/dist/runtime/components/form/field/SqlEditor.vue +28 -0
  108. package/dist/runtime/components/form/field/SqlEditor.vue.d.ts +10 -0
  109. package/dist/runtime/components/form/field/TreeSelectTransfer.d.vue.ts +4 -0
  110. package/dist/runtime/components/form/field/TreeSelectTransfer.vue +89 -0
  111. package/dist/runtime/components/form/field/TreeSelectTransfer.vue.d.ts +4 -0
  112. package/dist/runtime/components/form/field/index.d.vue.ts +26 -0
  113. package/dist/runtime/components/form/field/index.vue +212 -0
  114. package/dist/runtime/components/form/field/index.vue.d.ts +26 -0
  115. package/dist/runtime/components/form/index.d.vue.ts +21 -0
  116. package/dist/runtime/components/form/index.vue +77 -0
  117. package/dist/runtime/components/form/index.vue.d.ts +21 -0
  118. package/dist/runtime/components/layout/ModuleMenu.d.vue.ts +6 -0
  119. package/dist/runtime/components/layout/ModuleMenu.vue +48 -0
  120. package/dist/runtime/components/layout/ModuleMenu.vue.d.ts +6 -0
  121. package/dist/runtime/components/layout/ThemePicker.d.vue.ts +3 -0
  122. package/dist/runtime/components/layout/ThemePicker.vue +100 -0
  123. package/dist/runtime/components/layout/ThemePicker.vue.d.ts +3 -0
  124. package/dist/runtime/components/layout/UserMenu.d.vue.ts +7 -0
  125. package/dist/runtime/components/layout/UserMenu.vue +77 -0
  126. package/dist/runtime/components/layout/UserMenu.vue.d.ts +7 -0
  127. package/dist/runtime/components/layout/default.d.vue.ts +13 -0
  128. package/dist/runtime/components/layout/default.vue +82 -0
  129. package/dist/runtime/components/layout/default.vue.d.ts +13 -0
  130. package/dist/runtime/components/placeholder/Svg.d.vue.ts +3 -0
  131. package/dist/runtime/components/placeholder/Svg.vue +22 -0
  132. package/dist/runtime/components/placeholder/Svg.vue.d.ts +3 -0
  133. package/dist/runtime/components/simple-table/index.d.vue.ts +21 -0
  134. package/dist/runtime/components/simple-table/index.vue +159 -0
  135. package/dist/runtime/components/simple-table/index.vue.d.ts +21 -0
  136. package/dist/runtime/components/table/ExcelExportModal.d.vue.ts +28 -0
  137. package/dist/runtime/components/table/ExcelExportModal.vue +82 -0
  138. package/dist/runtime/components/table/ExcelExportModal.vue.d.ts +28 -0
  139. package/dist/runtime/components/table/Page.d.vue.ts +26 -0
  140. package/dist/runtime/components/table/Page.vue +130 -0
  141. package/dist/runtime/components/table/Page.vue.d.ts +26 -0
  142. package/dist/runtime/components/table/Pagination.d.vue.ts +19 -0
  143. package/dist/runtime/components/table/Pagination.vue +51 -0
  144. package/dist/runtime/components/table/Pagination.vue.d.ts +19 -0
  145. package/dist/runtime/components/table/TooltipCell.d.vue.ts +7 -0
  146. package/dist/runtime/components/table/TooltipCell.vue +23 -0
  147. package/dist/runtime/components/table/TooltipCell.vue.d.ts +7 -0
  148. package/dist/runtime/components/table/column/ActionHeader.d.vue.ts +21 -0
  149. package/dist/runtime/components/table/column/ActionHeader.vue +155 -0
  150. package/dist/runtime/components/table/column/ActionHeader.vue.d.ts +21 -0
  151. package/dist/runtime/components/table/expansion/Field.d.vue.ts +18 -0
  152. package/dist/runtime/components/table/expansion/Field.vue +33 -0
  153. package/dist/runtime/components/table/expansion/Field.vue.d.ts +18 -0
  154. package/dist/runtime/components/table/expansion/Layout.d.vue.ts +13 -0
  155. package/dist/runtime/components/table/expansion/Layout.vue +8 -0
  156. package/dist/runtime/components/table/expansion/Layout.vue.d.ts +13 -0
  157. package/dist/runtime/components/table/header/index.d.vue.ts +19 -0
  158. package/dist/runtime/components/table/header/index.vue +221 -0
  159. package/dist/runtime/components/table/header/index.vue.d.ts +19 -0
  160. package/dist/runtime/components/table/header/settings/columns/DndList.d.vue.ts +32 -0
  161. package/dist/runtime/components/table/header/settings/columns/DndList.vue +46 -0
  162. package/dist/runtime/components/table/header/settings/columns/DndList.vue.d.ts +32 -0
  163. package/dist/runtime/components/table/header/settings/columns/Item.d.vue.ts +18 -0
  164. package/dist/runtime/components/table/header/settings/columns/Item.vue +59 -0
  165. package/dist/runtime/components/table/header/settings/columns/Item.vue.d.ts +18 -0
  166. package/dist/runtime/components/table/header/settings/columns/index.d.vue.ts +24 -0
  167. package/dist/runtime/components/table/header/settings/columns/index.vue +143 -0
  168. package/dist/runtime/components/table/header/settings/columns/index.vue.d.ts +24 -0
  169. package/dist/runtime/components/table/header/settings/index.d.vue.ts +25 -0
  170. package/dist/runtime/components/table/header/settings/index.vue +35 -0
  171. package/dist/runtime/components/table/header/settings/index.vue.d.ts +25 -0
  172. package/dist/runtime/components/table/index.d.vue.ts +26 -0
  173. package/dist/runtime/components/table/index.vue +121 -0
  174. package/dist/runtime/components/table/index.vue.d.ts +26 -0
  175. package/dist/runtime/components/table/query/order/Item.d.vue.ts +28 -0
  176. package/dist/runtime/components/table/query/order/Item.vue +85 -0
  177. package/dist/runtime/components/table/query/order/Item.vue.d.ts +28 -0
  178. package/dist/runtime/components/table/query/order/Newer.d.vue.ts +25 -0
  179. package/dist/runtime/components/table/query/order/Newer.vue +50 -0
  180. package/dist/runtime/components/table/query/order/Newer.vue.d.ts +25 -0
  181. package/dist/runtime/components/table/query/order/index.d.vue.ts +19 -0
  182. package/dist/runtime/components/table/query/order/index.vue +108 -0
  183. package/dist/runtime/components/table/query/order/index.vue.d.ts +19 -0
  184. package/dist/runtime/components/table/query/where/Newer.d.vue.ts +14 -0
  185. package/dist/runtime/components/table/query/where/Newer.vue +44 -0
  186. package/dist/runtime/components/table/query/where/Newer.vue.d.ts +14 -0
  187. package/dist/runtime/components/table/query/where/index.d.vue.ts +21 -0
  188. package/dist/runtime/components/table/query/where/index.vue +108 -0
  189. package/dist/runtime/components/table/query/where/index.vue.d.ts +21 -0
  190. package/dist/runtime/components/table/query/where/simple/index.d.vue.ts +7 -0
  191. package/dist/runtime/components/table/query/where/simple/index.vue +47 -0
  192. package/dist/runtime/components/table/query/where/simple/index.vue.d.ts +7 -0
  193. package/dist/runtime/components/table/query/where/simple/item/ColumnPicker.d.vue.ts +27 -0
  194. package/dist/runtime/components/table/query/where/simple/item/ColumnPicker.vue +65 -0
  195. package/dist/runtime/components/table/query/where/simple/item/ColumnPicker.vue.d.ts +27 -0
  196. package/dist/runtime/components/table/query/where/simple/item/OprPicker.d.vue.ts +27 -0
  197. package/dist/runtime/components/table/query/where/simple/item/OprPicker.vue +68 -0
  198. package/dist/runtime/components/table/query/where/simple/item/OprPicker.vue.d.ts +27 -0
  199. package/dist/runtime/components/table/query/where/simple/item/index.d.vue.ts +20 -0
  200. package/dist/runtime/components/table/query/where/simple/item/index.vue +56 -0
  201. package/dist/runtime/components/table/query/where/simple/item/index.vue.d.ts +20 -0
  202. package/dist/runtime/components/table/query/where/simple/item/opr/AsyncSelect.d.vue.ts +29 -0
  203. package/dist/runtime/components/table/query/where/simple/item/opr/AsyncSelect.vue +152 -0
  204. package/dist/runtime/components/table/query/where/simple/item/opr/AsyncSelect.vue.d.ts +29 -0
  205. package/dist/runtime/components/table/query/where/simple/item/opr/DatePicker.d.vue.ts +27 -0
  206. package/dist/runtime/components/table/query/where/simple/item/opr/DatePicker.vue +232 -0
  207. package/dist/runtime/components/table/query/where/simple/item/opr/DatePicker.vue.d.ts +27 -0
  208. package/dist/runtime/components/table/query/where/simple/item/opr/Input.d.vue.ts +29 -0
  209. package/dist/runtime/components/table/query/where/simple/item/opr/Input.vue +57 -0
  210. package/dist/runtime/components/table/query/where/simple/item/opr/Input.vue.d.ts +29 -0
  211. package/dist/runtime/components/table/query/where/simple/item/opr/InputNumber.d.vue.ts +29 -0
  212. package/dist/runtime/components/table/query/where/simple/item/opr/InputNumber.vue +45 -0
  213. package/dist/runtime/components/table/query/where/simple/item/opr/InputNumber.vue.d.ts +29 -0
  214. package/dist/runtime/components/table/query/where/simple/item/opr/Select.d.vue.ts +28 -0
  215. package/dist/runtime/components/table/query/where/simple/item/opr/Select.vue +62 -0
  216. package/dist/runtime/components/table/query/where/simple/item/opr/Select.vue.d.ts +28 -0
  217. package/dist/runtime/components/table/query/where/simple/item/opr/index.d.vue.ts +19 -0
  218. package/dist/runtime/components/table/query/where/simple/item/opr/index.vue +72 -0
  219. package/dist/runtime/components/table/query/where/simple/item/opr/index.vue.d.ts +19 -0
  220. package/dist/runtime/composables/api/flow/index.d.ts +3 -0
  221. package/dist/runtime/composables/api/flow/index.js +3 -0
  222. package/dist/runtime/composables/api/flow/useFlowApi.d.ts +1 -0
  223. package/dist/runtime/composables/api/flow/useFlowApi.js +1 -0
  224. package/dist/runtime/composables/api/flow/useFlowNodeApi.d.ts +1 -0
  225. package/dist/runtime/composables/api/flow/useFlowNodeApi.js +1 -0
  226. package/dist/runtime/composables/api/flow/useFlowNodeLinkApi.d.ts +1 -0
  227. package/dist/runtime/composables/api/flow/useFlowNodeLinkApi.js +1 -0
  228. package/dist/runtime/composables/api/index.d.ts +4 -0
  229. package/dist/runtime/composables/api/index.js +4 -0
  230. package/dist/runtime/composables/api/sys/index.d.ts +9 -0
  231. package/dist/runtime/composables/api/sys/index.js +9 -0
  232. package/dist/runtime/composables/api/sys/useAuthApi.d.ts +0 -0
  233. package/dist/runtime/composables/api/sys/useAuthApi.js +13 -0
  234. package/dist/runtime/composables/api/sys/useCompanyApi.d.ts +1 -0
  235. package/dist/runtime/composables/api/sys/useCompanyApi.js +3 -0
  236. package/dist/runtime/composables/api/sys/useDepartmentApi.d.ts +0 -0
  237. package/dist/runtime/composables/api/sys/useDepartmentApi.js +30 -0
  238. package/dist/runtime/composables/api/sys/useJobTitleApi.d.ts +1 -0
  239. package/dist/runtime/composables/api/sys/useJobTitleApi.js +3 -0
  240. package/dist/runtime/composables/api/sys/useLoginApi.d.ts +0 -0
  241. package/dist/runtime/composables/api/sys/useLoginApi.js +13 -0
  242. package/dist/runtime/composables/api/sys/useMenuApi.d.ts +0 -0
  243. package/dist/runtime/composables/api/sys/useMenuApi.js +32 -0
  244. package/dist/runtime/composables/api/sys/useRoleApi.d.ts +0 -0
  245. package/dist/runtime/composables/api/sys/useRoleApi.js +20 -0
  246. package/dist/runtime/composables/api/sys/useRowRecord.d.ts +0 -0
  247. package/dist/runtime/composables/api/sys/useRowRecord.js +8 -0
  248. package/dist/runtime/composables/api/sys/useUserApi.d.ts +0 -0
  249. package/dist/runtime/composables/api/sys/useUserApi.js +39 -0
  250. package/dist/runtime/composables/api/useApi.d.ts +0 -0
  251. package/dist/runtime/composables/api/useApi.js +103 -0
  252. package/dist/runtime/composables/api/useModel.d.ts +3 -0
  253. package/dist/runtime/composables/api/useModel.js +4 -0
  254. package/dist/runtime/composables/flow/index.d.ts +3 -0
  255. package/dist/runtime/composables/flow/index.js +3 -0
  256. package/dist/runtime/composables/flow/useFlow.d.ts +0 -0
  257. package/dist/runtime/composables/flow/useFlow.js +162 -0
  258. package/dist/runtime/composables/flow/useFlowResize.d.ts +56 -0
  259. package/dist/runtime/composables/flow/useFlowResize.js +148 -0
  260. package/dist/runtime/composables/flow/useFlowStyles.d.ts +14 -0
  261. package/dist/runtime/composables/flow/useFlowStyles.js +32 -0
  262. package/dist/runtime/composables/index.d.ts +13 -0
  263. package/dist/runtime/composables/index.js +13 -0
  264. package/dist/runtime/composables/table/index.d.ts +9 -0
  265. package/dist/runtime/composables/table/index.js +9 -0
  266. package/dist/runtime/composables/table/useTable.d.ts +0 -0
  267. package/dist/runtime/composables/table/useTable.js +340 -0
  268. package/dist/runtime/composables/table/useTableColumns.d.ts +30 -0
  269. package/dist/runtime/composables/table/useTableColumns.js +214 -0
  270. package/dist/runtime/composables/table/useTableData.d.ts +29 -0
  271. package/dist/runtime/composables/table/useTableData.js +92 -0
  272. package/dist/runtime/composables/table/useTableOpr.d.ts +8 -0
  273. package/dist/runtime/composables/table/useTableOpr.js +91 -0
  274. package/dist/runtime/composables/table/useTablePagination.d.ts +7 -0
  275. package/dist/runtime/composables/table/useTablePagination.js +29 -0
  276. package/dist/runtime/composables/table/useTableQuery.d.ts +23 -0
  277. package/dist/runtime/composables/table/useTableQuery.js +131 -0
  278. package/dist/runtime/composables/table/useTableRowActions.d.ts +18 -0
  279. package/dist/runtime/composables/table/useTableRowActions.js +154 -0
  280. package/dist/runtime/composables/table/useTableRowSelection.d.ts +6 -0
  281. package/dist/runtime/composables/table/useTableRowSelection.js +26 -0
  282. package/dist/runtime/composables/table/useTableView.d.ts +0 -0
  283. package/dist/runtime/composables/table/useTableView.js +150 -0
  284. package/dist/runtime/composables/useApp.d.ts +22 -0
  285. package/dist/runtime/composables/useApp.js +83 -0
  286. package/dist/runtime/composables/useAuth.d.ts +14 -0
  287. package/dist/runtime/composables/useAuth.js +92 -0
  288. package/dist/runtime/composables/useBoolean.d.ts +58 -0
  289. package/dist/runtime/composables/useBoolean.js +71 -0
  290. package/dist/runtime/composables/useDate.d.ts +25 -0
  291. package/dist/runtime/composables/useDate.js +157 -0
  292. package/dist/runtime/composables/useEChart.d.ts +103 -0
  293. package/dist/runtime/composables/useEChart.js +120 -0
  294. package/dist/runtime/composables/useForm.d.ts +0 -0
  295. package/dist/runtime/composables/useForm.js +60 -0
  296. package/dist/runtime/composables/usePermission.d.ts +10 -0
  297. package/dist/runtime/composables/usePermission.js +53 -0
  298. package/dist/runtime/composables/useRouterPush.d.ts +8 -0
  299. package/dist/runtime/composables/useRouterPush.js +37 -0
  300. package/dist/runtime/composables/useSidebarMenu.d.ts +36 -0
  301. package/dist/runtime/composables/useSidebarMenu.js +131 -0
  302. package/dist/runtime/composables/useTheme.d.ts +20 -0
  303. package/dist/runtime/composables/useTheme.js +94 -0
  304. package/dist/runtime/constants/columns.d.ts +3 -0
  305. package/dist/runtime/constants/columns.js +52 -0
  306. package/dist/runtime/constants/flow.d.ts +12 -0
  307. package/dist/runtime/constants/flow.js +24 -0
  308. package/dist/runtime/constants/index.d.ts +6 -0
  309. package/dist/runtime/constants/index.js +6 -0
  310. package/dist/runtime/constants/menu.d.ts +9 -0
  311. package/dist/runtime/constants/menu.js +11 -0
  312. package/dist/runtime/constants/options.d.ts +8 -0
  313. package/dist/runtime/constants/options.js +15 -0
  314. package/dist/runtime/constants/time.d.ts +7 -0
  315. package/dist/runtime/constants/time.js +12 -0
  316. package/dist/runtime/constants/user.d.ts +7 -0
  317. package/dist/runtime/constants/user.js +7 -0
  318. package/dist/runtime/index.css +1 -0
  319. package/dist/runtime/plugins/01.nuxtUIEnhancement.d.ts +18 -0
  320. package/dist/runtime/plugins/01.nuxtUIEnhancement.js +52 -0
  321. package/dist/runtime/plugins/02.dayjs.d.ts +13 -0
  322. package/dist/runtime/plugins/02.dayjs.js +9 -0
  323. package/dist/runtime/plugins/03.theme.d.ts +2 -0
  324. package/dist/runtime/plugins/03.theme.js +33 -0
  325. package/dist/runtime/plugins/04.head.d.ts +2 -0
  326. package/dist/runtime/plugins/04.head.js +29 -0
  327. package/dist/runtime/types/app.d.ts +42 -0
  328. package/dist/runtime/types/app.js +0 -0
  329. package/dist/runtime/types/cmds/login.d.ts +23 -0
  330. package/dist/runtime/types/cmds/sys.d.ts +10 -0
  331. package/dist/runtime/types/cmds/user.d.ts +8 -0
  332. package/dist/runtime/types/components/date.d.ts +5 -0
  333. package/dist/runtime/types/components/date.js +0 -0
  334. package/dist/runtime/types/components/dnd.d.ts +14 -0
  335. package/dist/runtime/types/components/dnd.js +0 -0
  336. package/dist/runtime/types/components/form/field.d.ts +102 -0
  337. package/dist/runtime/types/components/form/field.js +0 -0
  338. package/dist/runtime/types/components/form/index.d.ts +27 -0
  339. package/dist/runtime/types/components/form/index.js +1 -0
  340. package/dist/runtime/types/components/index.d.ts +4 -0
  341. package/dist/runtime/types/components/index.js +4 -0
  342. package/dist/runtime/types/components/table/column.d.ts +35 -0
  343. package/dist/runtime/types/components/table/column.js +0 -0
  344. package/dist/runtime/types/components/table/header.d.ts +33 -0
  345. package/dist/runtime/types/components/table/header.js +0 -0
  346. package/dist/runtime/types/components/table/index.d.ts +103 -0
  347. package/dist/runtime/types/components/table/index.js +4 -0
  348. package/dist/runtime/types/components/table/pagination.d.ts +14 -0
  349. package/dist/runtime/types/components/table/pagination.js +0 -0
  350. package/dist/runtime/types/components/table/query/index.d.ts +2 -0
  351. package/dist/runtime/types/components/table/query/index.js +2 -0
  352. package/dist/runtime/types/components/table/query/order.d.ts +16 -0
  353. package/dist/runtime/types/components/table/query/order.js +0 -0
  354. package/dist/runtime/types/components/table/query/where.d.ts +26 -0
  355. package/dist/runtime/types/components/table/query/where.js +0 -0
  356. package/dist/runtime/types/constants/time.d.ts +5 -0
  357. package/dist/runtime/types/index.d.ts +14 -0
  358. package/dist/runtime/types/index.js +6 -0
  359. package/dist/runtime/types/localStorage.d.ts +15 -0
  360. package/dist/runtime/types/locale.d.ts +81 -0
  361. package/dist/runtime/types/locale.js +0 -0
  362. package/dist/runtime/types/models/base.d.ts +16 -0
  363. package/dist/runtime/types/models/flow.d.ts +31 -0
  364. package/dist/runtime/types/models/sys.d.ts +107 -0
  365. package/dist/runtime/types/query.d.ts +45 -0
  366. package/dist/runtime/types/query.js +1 -0
  367. package/dist/runtime/types/request.d.ts +55 -0
  368. package/dist/runtime/types/request.js +22 -0
  369. package/dist/runtime/types/storage.d.ts +10 -0
  370. package/dist/runtime/types/storage.js +11 -0
  371. package/dist/runtime/utils/array.d.ts +1 -0
  372. package/dist/runtime/utils/array.js +3 -0
  373. package/dist/runtime/utils/diff.d.ts +2 -0
  374. package/dist/runtime/utils/diff.js +81 -0
  375. package/dist/runtime/utils/download/index.d.ts +1 -0
  376. package/dist/runtime/utils/download/index.js +1 -0
  377. package/dist/runtime/utils/download/tagA.d.ts +2 -0
  378. package/dist/runtime/utils/download/tagA.js +14 -0
  379. package/dist/runtime/utils/emoji.d.ts +1 -0
  380. package/dist/runtime/utils/emoji.js +57 -0
  381. package/dist/runtime/utils/excel.d.ts +3 -0
  382. package/dist/runtime/utils/excel.js +63 -0
  383. package/dist/runtime/utils/form.d.ts +2 -0
  384. package/dist/runtime/utils/form.js +142 -0
  385. package/dist/runtime/utils/index.d.ts +11 -0
  386. package/dist/runtime/utils/index.js +11 -0
  387. package/dist/runtime/utils/request.d.ts +3 -0
  388. package/dist/runtime/utils/request.js +3 -0
  389. package/dist/runtime/utils/string.d.ts +6 -0
  390. package/dist/runtime/utils/string.js +18 -0
  391. package/dist/runtime/utils/tree.d.ts +8 -0
  392. package/dist/runtime/utils/tree.js +54 -0
  393. package/dist/runtime/utils/type.d.ts +1 -0
  394. package/dist/runtime/utils/type.js +3 -0
  395. package/dist/runtime/utils/vueuse.d.ts +1 -0
  396. package/dist/runtime/utils/vueuse.js +20 -0
  397. package/dist/types.d.mts +3 -0
  398. package/package.json +108 -0
@@ -0,0 +1,6 @@
1
+ export * from './columns.js';
2
+ export * from './flow.js';
3
+ export * from './options.js';
4
+ export * from './time.js';
5
+ export * from './menu.js';
6
+ export * from './user.js';
@@ -0,0 +1,6 @@
1
+ export * from "./columns.js";
2
+ export * from "./flow.js";
3
+ export * from "./options.js";
4
+ export * from "./time.js";
5
+ export * from "./menu.js";
6
+ export * from "./user.js";
@@ -0,0 +1,9 @@
1
+ export declare enum MenuType {
2
+ CATALOG = "catalog",
3
+ MENU = "menu",
4
+ BUTTON = "button"
5
+ }
6
+ export declare const menuTypeOptions: {
7
+ label: string;
8
+ value: MenuType;
9
+ }[];
@@ -0,0 +1,11 @@
1
+ export var MenuType = /* @__PURE__ */ ((MenuType2) => {
2
+ MenuType2["CATALOG"] = "catalog";
3
+ MenuType2["MENU"] = "menu";
4
+ MenuType2["BUTTON"] = "button";
5
+ return MenuType2;
6
+ })(MenuType || {});
7
+ export const menuTypeOptions = [
8
+ { label: "\u76EE\u5F55", value: "catalog" /* CATALOG */ },
9
+ { label: "\u83DC\u5355", value: "menu" /* MENU */ },
10
+ { label: "\u6309\u94AE", value: "button" /* BUTTON */ }
11
+ ];
@@ -0,0 +1,8 @@
1
+ import type { SelectOption } from '#v/types';
2
+ export declare const booleanOptions: SelectOption[];
3
+ export declare enum Gender {
4
+ MALE = 1,
5
+ FEMALE = 2,
6
+ UNKNOWN = 0
7
+ }
8
+ export declare const genderOptions: SelectOption[];
@@ -0,0 +1,15 @@
1
+ export const booleanOptions = [
2
+ { label: "Yes", value: true },
3
+ { label: "No", value: false }
4
+ ];
5
+ export var Gender = /* @__PURE__ */ ((Gender2) => {
6
+ Gender2[Gender2["MALE"] = 1] = "MALE";
7
+ Gender2[Gender2["FEMALE"] = 2] = "FEMALE";
8
+ Gender2[Gender2["UNKNOWN"] = 0] = "UNKNOWN";
9
+ return Gender2;
10
+ })(Gender || {});
11
+ export const genderOptions = [
12
+ { label: "Male", value: 1 /* MALE */ },
13
+ { label: "Female", value: 2 /* FEMALE */ },
14
+ { label: "Unknown", value: 0 /* UNKNOWN */ }
15
+ ];
@@ -0,0 +1,7 @@
1
+ import type { SelectOption } from '#v/types';
2
+ export declare const TIME_ZONE = "Asia/Shanghai";
3
+ export declare const timeUnitOptions: SelectOption[];
4
+ export declare const weekEnLabels: string[];
5
+ export declare const weekCnLabels: string[];
6
+ export declare const dateFormat = "YYYY-MM-DD";
7
+ export declare const dateTimeFormat = "YYYY-MM-DD HH:mm:ss";
@@ -0,0 +1,12 @@
1
+ export const TIME_ZONE = "Asia/Shanghai";
2
+ export const timeUnitOptions = [
3
+ { label: "Year", value: "year" },
4
+ { label: "Quarter", value: "quarter" },
5
+ { label: "Month", value: "month" },
6
+ { label: "Week", value: "week" },
7
+ { label: "Day", value: "day" }
8
+ ];
9
+ export const weekEnLabels = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
10
+ export const weekCnLabels = ["\u5468\u4E00", "\u5468\u4E8C", "\u5468\u4E09", "\u5468\u56DB", "\u5468\u4E94", "\u5468\u516D", "\u5468\u65E5"];
11
+ export const dateFormat = "YYYY-MM-DD";
12
+ export const dateTimeFormat = "YYYY-MM-DD HH:mm:ss";
@@ -0,0 +1,7 @@
1
+ export declare enum LoginType {
2
+ USERNAME_PASSWORD = "username_password"
3
+ }
4
+ export declare const loginTypeOptions: {
5
+ label: string;
6
+ value: LoginType;
7
+ }[];
@@ -0,0 +1,7 @@
1
+ export var LoginType = /* @__PURE__ */ ((LoginType2) => {
2
+ LoginType2["USERNAME_PASSWORD"] = "username_password";
3
+ return LoginType2;
4
+ })(LoginType || {});
5
+ export const loginTypeOptions = [
6
+ { label: "\u5DE5\u53F7\u5BC6\u7801\u767B\u5F55", value: "username_password" /* USERNAME_PASSWORD */ }
7
+ ];
@@ -0,0 +1 @@
1
+ @source "./components";@source "./composables";@source "./utils";
@@ -0,0 +1,18 @@
1
+ declare const _default: import("nuxt/app").Plugin<{
2
+ defaultToast: (msg: string, desc?: string) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
3
+ primaryToast: (msg: string, desc?: string) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
4
+ infoToast: (msg: string, desc?: string) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
5
+ successToast: (msg: string, desc?: string) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
6
+ warningToast: (msg: string, desc?: string) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
7
+ errorToast: (msg: string, desc?: string) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
8
+ toastNothingChanged: () => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
9
+ }> & import("nuxt/app").ObjectPlugin<{
10
+ defaultToast: (msg: string, desc?: string) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
11
+ primaryToast: (msg: string, desc?: string) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
12
+ infoToast: (msg: string, desc?: string) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
13
+ successToast: (msg: string, desc?: string) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
14
+ warningToast: (msg: string, desc?: string) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
15
+ errorToast: (msg: string, desc?: string) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
16
+ toastNothingChanged: () => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
17
+ }>;
18
+ export default _default;
@@ -0,0 +1,52 @@
1
+ import { useToast } from "@nuxt/ui/composables";
2
+ import { defineNuxtPlugin } from "nuxt/app";
3
+ export default defineNuxtPlugin(() => {
4
+ const toast = useToast();
5
+ return {
6
+ provide: {
7
+ defaultToast: (msg, desc) => toast.add({
8
+ title: msg,
9
+ description: desc,
10
+ color: "neutral"
11
+ }),
12
+ primaryToast: (msg, desc) => toast.add({
13
+ title: msg,
14
+ description: desc,
15
+ color: "primary"
16
+ }),
17
+ infoToast: (msg, desc) => toast.add({
18
+ title: msg,
19
+ description: desc,
20
+ color: "info",
21
+ icon: "i-lucide-circle-alert"
22
+ }),
23
+ successToast: (msg, desc) => toast.add({
24
+ title: msg,
25
+ description: desc,
26
+ color: "success",
27
+ icon: "i-lucide-circle-check"
28
+ }),
29
+ warningToast: (msg, desc) => toast.add({
30
+ title: msg,
31
+ description: desc,
32
+ color: "warning",
33
+ duration: 5e3,
34
+ icon: "i-lucide-triangle-alert"
35
+ }),
36
+ errorToast: (msg, desc) => toast.add({
37
+ title: msg,
38
+ description: desc,
39
+ color: "error",
40
+ duration: 8e3,
41
+ icon: "i-lucide-circle-x"
42
+ }),
43
+ toastNothingChanged: () => toast.add({
44
+ title: "Nothing changed",
45
+ description: "Please modify content before submitting",
46
+ color: "warning",
47
+ duration: 3e3,
48
+ icon: "i-lucide-triangle-alert"
49
+ })
50
+ }
51
+ };
52
+ });
@@ -0,0 +1,13 @@
1
+ import dayjs from 'dayjs';
2
+ declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
3
+ export default _default;
4
+ declare module 'nuxt/app' {
5
+ interface NuxtApp {
6
+ $dayjs: typeof dayjs;
7
+ }
8
+ }
9
+ declare module 'vue' {
10
+ interface ComponentCustomProperties {
11
+ $dayjs: typeof dayjs;
12
+ }
13
+ }
@@ -0,0 +1,9 @@
1
+ import dayjs from "dayjs";
2
+ import utc from "dayjs/plugin/utc";
3
+ import timezone from "dayjs/plugin/timezone";
4
+ import { defineNuxtPlugin } from "nuxt/app";
5
+ export default defineNuxtPlugin((nuxtApp) => {
6
+ dayjs.extend(utc);
7
+ dayjs.extend(timezone);
8
+ nuxtApp.provide("dayjs", dayjs);
9
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
2
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { defaultAppSettings } from "#v/composables";
2
+ import { StorageKey } from "#v/types";
3
+ import { useLocalStorage } from "@vueuse/core";
4
+ import { defineNuxtPlugin, useAppConfig } from "nuxt/app";
5
+ export default defineNuxtPlugin({
6
+ enforce: "post",
7
+ setup() {
8
+ const appConfig = useAppConfig();
9
+ const customAppConfig = useLocalStorage(StorageKey.APP, defaultAppSettings);
10
+ function updateColor(type) {
11
+ const color = customAppConfig.value[type];
12
+ if (color) {
13
+ appConfig.ui.colors[type] = color;
14
+ }
15
+ }
16
+ function updateBlackAsPrimary() {
17
+ const blackAsPrimary = customAppConfig.value.blackAsPrimary;
18
+ if (blackAsPrimary) {
19
+ appConfig.theme.blackAsPrimary = blackAsPrimary === true;
20
+ }
21
+ }
22
+ function updateRadius() {
23
+ const radius = customAppConfig.value.radius;
24
+ if (radius !== void 0) {
25
+ appConfig.theme.radius = radius;
26
+ }
27
+ }
28
+ updateColor("primary");
29
+ updateColor("neutral");
30
+ updateBlackAsPrimary();
31
+ updateRadius();
32
+ }
33
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
2
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import colors from "tailwindcss/colors";
2
+ import { defineNuxtPlugin, useAppConfig, useHead } from "nuxt/app";
3
+ import { useColorMode } from "@vueuse/core";
4
+ import { computed } from "vue";
5
+ export default defineNuxtPlugin({
6
+ enforce: "post",
7
+ setup() {
8
+ const appConfig = useAppConfig();
9
+ const colorMode = useColorMode();
10
+ const themeColor = computed(
11
+ () => colorMode.value === "dark" ? colors[appConfig.ui?.colors?.neutral]?.[900] : "white"
12
+ );
13
+ const radiusStyle = computed(
14
+ () => `:root { --ui-radius: ${appConfig.theme?.radius ?? 0.25}rem; }`
15
+ );
16
+ const blackAsPrimaryStyle = computed(
17
+ () => appConfig.theme?.blackAsPrimary ? `:root { --ui-primary: black; } .dark { --ui-primary: white; }` : ":root {}"
18
+ );
19
+ useHead({
20
+ meta: [
21
+ { key: "theme-color", name: "theme-color", content: themeColor }
22
+ ],
23
+ style: [
24
+ { innerHTML: radiusStyle, id: "nuxt-ui-radius", tagPriority: -2 },
25
+ { innerHTML: blackAsPrimaryStyle, id: "nuxt-ui-black-as-primary", tagPriority: -2 }
26
+ ]
27
+ });
28
+ }
29
+ });
@@ -0,0 +1,42 @@
1
+ import type { I18nLocale } from './locale.js';
2
+ /** Header config */
3
+ export interface HeaderConfig {
4
+ hideHeader?: boolean;
5
+ headerClass?: string;
6
+ headerHeight?: number;
7
+ }
8
+ /** Tab config */
9
+ export interface TabConfig {
10
+ hideTab?: boolean;
11
+ tabClass?: string;
12
+ tabHeight?: number;
13
+ }
14
+ /** Sider config */
15
+ interface SiderConfig {
16
+ hideSider?: boolean;
17
+ siderClass?: string;
18
+ siderMobileClass?: string;
19
+ siderMaxWidth?: number;
20
+ siderMinWidth?: number;
21
+ siderCollapsed?: boolean;
22
+ siderCollapsedWidth?: number;
23
+ }
24
+ /** Content config */
25
+ export interface ContentConfig {
26
+ contentClass?: string;
27
+ }
28
+ export type PageAnimateMode = 'fade' | 'fade-slide' | 'fade-bottom' | 'fade-scale' | 'zoom-fade' | 'zoom-out' | 'none';
29
+ export interface PageConfig {
30
+ pageAnimate?: boolean;
31
+ pageAnimateMode?: PageAnimateMode;
32
+ }
33
+ /** Custom app props */
34
+ export interface CustomAppConfig extends SiderConfig, HeaderConfig, TabConfig, ContentConfig, PageConfig {
35
+ primary?: string;
36
+ blackAsPrimary?: boolean;
37
+ neutral?: string;
38
+ radius?: number;
39
+ locale?: I18nLocale;
40
+ keepalive?: boolean;
41
+ }
42
+ export {};
File without changes
@@ -0,0 +1,23 @@
1
+ declare namespace Cmd {
2
+ type UsernamePasswordLoginPayload = {
3
+ username?: string
4
+ password?: string
5
+ }
6
+
7
+ type RefreshTokensPayload = {
8
+ refreshToken: string
9
+ }
10
+
11
+ type ChangeUserPwdCmd = {
12
+ userId: number
13
+ oldPwd: string
14
+ newPwd: string
15
+ }
16
+
17
+ type LoginResult = {
18
+ refreshToken?: string
19
+ accessToken?: string
20
+ dupLogin?: boolean
21
+ user?: Model.User
22
+ }
23
+ }
@@ -0,0 +1,10 @@
1
+ declare namespace Cmd {
2
+ type RowRecordPayload = {
3
+ tableName?: string
4
+ rowId?: number
5
+ }
6
+
7
+ type IdPayload = {
8
+ id: number
9
+ }
10
+ }
@@ -0,0 +1,8 @@
1
+ declare namespace Cmd {
2
+ namespace User {
3
+ type ChangePwdPayload = {
4
+ oldPassword?: string
5
+ newPassword?: string
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,5 @@
1
+ import type { DateRange, DateValue } from 'reka-ui';
2
+ export type DateShortcut = {
3
+ label: string;
4
+ dateFn: () => null | undefined | DateValue | DateValue[] | DateRange;
5
+ };
File without changes
@@ -0,0 +1,14 @@
1
+ import type { SortableEvent } from 'vue-draggable-plus';
2
+ import type { GroupOptions } from 'sortablejs';
3
+ export type DndProps<T> = {
4
+ handle?: string;
5
+ group?: GroupOptions | string;
6
+ sort?: boolean;
7
+ chosenClass?: string;
8
+ dragClass?: string;
9
+ ghostClass?: string;
10
+ forceFallback?: boolean;
11
+ clone?: (model: T) => T;
12
+ onAdd?: (event: SortableEvent) => void;
13
+ onEnd?: (event: SortableEvent) => void;
14
+ };
File without changes
@@ -0,0 +1,102 @@
1
+ import type { VNode } from 'vue';
2
+ import type { ButtonProps, FormFieldProps, InputProps, RadioGroupProps, SelectMenuItem, SelectProps, TreeItem } from '@nuxt/ui';
3
+ import type { ZodType } from 'zod';
4
+ import type { ListApi } from '../table/index.js';
5
+ import type { QueryTemplate, WhereQueryItem } from '../../query.js';
6
+ export type VFormFieldAsyncSelectProps<T> = {
7
+ listApi: ListApi<T>;
8
+ extraQuery?: QueryTemplate<T>;
9
+ initModelValues?: any | any[];
10
+ onUpdateInitModelValues?: (newInitModels: any | any[]) => void;
11
+ searchFields: (string)[];
12
+ extraSearchFieldFn?: (keyword: string) => WhereQueryItem<T>;
13
+ labelField?: string;
14
+ valueField?: string;
15
+ labelRenderFn?: (model: T) => string | undefined;
16
+ enableEmptyOption?: boolean;
17
+ disableOprSelector?: boolean;
18
+ multiple?: boolean;
19
+ placeholder?: string;
20
+ size?: SelectProps['size'];
21
+ };
22
+ export type VFormFieldAsyncTreeSelectProps<T> = {
23
+ fetchAll?: boolean;
24
+ } & VFormFieldAsyncSelectProps<T>;
25
+ export type VFormFieldTreeSelectTransferProps = {
26
+ sourceTreeItems: TreeItem[];
27
+ targetTreeItems: TreeItem[];
28
+ onUpdateTargetTreeItems: (val: TreeItem[]) => void;
29
+ disabled?: boolean;
30
+ };
31
+ export type VFormFieldSelectProps = {
32
+ items: SelectMenuItem[];
33
+ searchable?: boolean;
34
+ multiple?: SelectProps['multiple'];
35
+ enableEmptyOption?: boolean;
36
+ } & Pick<SelectProps, 'placeholder'>;
37
+ export type VFormFieldDynamicObjectInputProps = {
38
+ objectFields: Array<{
39
+ key: string;
40
+ label: string;
41
+ placeholder?: string;
42
+ }>;
43
+ };
44
+ export type VFormFieldProps<T> = FormFieldProps & {
45
+ zodType?: ZodType;
46
+ colSpan?: string;
47
+ icon?: string;
48
+ disabled?: boolean;
49
+ hidden?: boolean;
50
+ placeholder?: string;
51
+ annotation?: string;
52
+ enterKeydownSubmit?: boolean;
53
+ } & ({
54
+ type: 'separator';
55
+ separatorLabel?: string;
56
+ } | {
57
+ type: 'input';
58
+ } & Pick<InputProps, 'placeholder'> | {
59
+ type: 'dynamic-input';
60
+ delimiter?: string;
61
+ } | {
62
+ type: 'dynamic-input-object';
63
+ } & VFormFieldDynamicObjectInputProps | {
64
+ type: 'input-pwd';
65
+ } & Pick<InputProps, 'placeholder'> | {
66
+ type: 'input-number';
67
+ } & Pick<InputProps, 'placeholder'> | {
68
+ type: 'input-string-number';
69
+ trailingString?: string;
70
+ } & Pick<InputProps, 'placeholder'> | {
71
+ type: 'switch';
72
+ } | {
73
+ type: 'button-switch';
74
+ } | {
75
+ type: 'textarea';
76
+ } & Pick<InputProps, 'placeholder'> | {
77
+ type: 'date-picker';
78
+ peerButtons?: ButtonProps[];
79
+ } | {
80
+ type: 'select';
81
+ } & VFormFieldSelectProps | {
82
+ type: 'multiple-select-string';
83
+ items: SelectMenuItem[];
84
+ searchable?: boolean;
85
+ } | {
86
+ type: 'async-select';
87
+ } & VFormFieldAsyncSelectProps<T> | {
88
+ type: 'async-object-select';
89
+ } & VFormFieldAsyncSelectProps<T> | {
90
+ type: 'async-tree-select';
91
+ } & VFormFieldAsyncTreeSelectProps<T> | {
92
+ type: 'radio-select';
93
+ } & RadioGroupProps | {
94
+ type: 'tree-select-transfer';
95
+ } & VFormFieldTreeSelectTransferProps | {
96
+ type: 'sql-editor';
97
+ } | {
98
+ type: 'custom';
99
+ component: VNode;
100
+ } | {
101
+ type: 'unknown';
102
+ });
File without changes
@@ -0,0 +1,27 @@
1
+ import type { ModalProps } from '@nuxt/ui';
2
+ import type { ApiGroup } from '../table/index.js';
3
+ import type { VFormFieldProps } from './field.js';
4
+ export * from './field.js';
5
+ export type FormTemplateProps<T> = {
6
+ fields: VFormFieldProps<T>[];
7
+ modelValue: Partial<T>;
8
+ onUpdateModelValue?: (newVal: Partial<T>) => void;
9
+ onTriggerSubmit?: (e: Event) => void;
10
+ };
11
+ export type CreateModalFormTemplateProps<T> = {
12
+ title: string;
13
+ description?: string;
14
+ onClose: (ok: boolean) => void;
15
+ onSubmit: () => Promise<void>;
16
+ fields: VFormFieldProps<T>[];
17
+ modelValue: Partial<T>;
18
+ onUpdateModelValue?: (newVal: Partial<T>) => void;
19
+ rowKey?: keyof T;
20
+ fullscreen?: ModalProps['fullscreen'];
21
+ };
22
+ export type CreateModalFormTemplatePropsWithApi<T> = {
23
+ apiGroup: () => ApiGroup<T>;
24
+ valuePruneFn?: (value: T) => T;
25
+ defaultModelValue?: Partial<T>;
26
+ onSave: (model: T) => void;
27
+ } & Pick<CreateModalFormTemplateProps<T>, 'title' | 'description' | 'fields' | 'onClose' | 'modelValue' | 'onUpdateModelValue'>;
@@ -0,0 +1 @@
1
+ export * from "./field.js";
@@ -0,0 +1,4 @@
1
+ export * from './table/index.js';
2
+ export * from './form/index.js';
3
+ export * from './date.js';
4
+ export * from './dnd.js';
@@ -0,0 +1,4 @@
1
+ export * from "./table/index.js";
2
+ export * from "./form/index.js";
3
+ export * from "./date.js";
4
+ export * from "./dnd.js";
@@ -0,0 +1,35 @@
1
+ import type { OrderQueryOpr, WhereQueryOpr } from '../../query.js';
2
+ import type { TableColumn, BadgeProps } from '@nuxt/ui';
3
+ import type { SelectOption, VFormFieldAsyncSelectProps } from '../../index.js';
4
+ export type WhereQueryType = 'input' | 'input-number' | 'date-picker' | 'select' | 'async-select' | 'unknown';
5
+ export type WhereQueryColumnOption<T> = {
6
+ defaultOpr?: WhereQueryOpr;
7
+ custom?: boolean;
8
+ initValues?: any;
9
+ initHide?: boolean;
10
+ disableOprSelector?: boolean;
11
+ } & ({
12
+ type: 'input';
13
+ } | {
14
+ type: 'input-number';
15
+ } | {
16
+ type: 'date-picker';
17
+ } | {
18
+ type: 'select';
19
+ variant?: BadgeProps['variant'];
20
+ items: SelectOption[];
21
+ } | {
22
+ type: 'async-select';
23
+ } & VFormFieldAsyncSelectProps<T> | {
24
+ type: 'unknown';
25
+ });
26
+ export type OrderQueryColumnOption = {
27
+ defaultOpr?: OrderQueryOpr;
28
+ };
29
+ export type VColumn<T> = {
30
+ filterOption?: WhereQueryColumnOption<any>;
31
+ sortOption?: OrderQueryColumnOption | true;
32
+ initHide?: boolean;
33
+ checked?: boolean;
34
+ exportCell?: (row: T) => string | string[];
35
+ } & TableColumn<T>;
File without changes
@@ -0,0 +1,33 @@
1
+ import type { ButtonProps } from '@nuxt/ui';
2
+ import type { ApiGroup, OrderQueryProps, VColumn, VTableExportExcelProps, WhereQueryProps } from '.';
3
+ import type { Size, WhereQuery } from '../../index.js';
4
+ export type TableHeaderOprType = 'create' | 'whereQuery' | 'orderQuery' | 'batchDelete' | 'refresh' | 'settings' | 'exportExcel';
5
+ export type TableHeaderProps<T> = {
6
+ name: string;
7
+ fetching?: boolean;
8
+ rawBizColumns: VColumn<T>[];
9
+ onUpdateBizColumns?: (columns: VColumn<T>[]) => void;
10
+ oprOrder?: TableHeaderOprType[];
11
+ onNew?: () => T;
12
+ apiGroup?: () => ApiGroup<T>;
13
+ fetchList: () => Promise<void>;
14
+ onEditRowFromModal?: (row: T) => Promise<boolean>;
15
+ selectedIds?: number[];
16
+ disableCreation?: boolean;
17
+ disableWhereQuery?: boolean;
18
+ whereQueryProps: WhereQueryProps<T>;
19
+ disableOrderQuery?: boolean;
20
+ orderQueryProps: OrderQueryProps<T>;
21
+ disableBatchDeletion?: boolean;
22
+ disableRefresh?: boolean;
23
+ disableSettings?: boolean;
24
+ exportExcel?: VTableExportExcelProps<T>;
25
+ extraWhereQueryInitValues?: WhereQuery<T>;
26
+ extraButtons?: {
27
+ button: ButtonProps;
28
+ appendTo?: 'left' | 'right';
29
+ withBatchData?: boolean;
30
+ batchFn?: (selectedIds: number[]) => Promise<void>;
31
+ }[];
32
+ size?: Size;
33
+ };
File without changes