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.
- package/README.md +153 -0
- package/dist/module.d.mts +13 -0
- package/dist/module.json +15 -0
- package/dist/module.mjs +45 -0
- package/dist/runtime/assets/css/main.css +1 -0
- package/dist/runtime/assets/css/transition.css +1 -0
- package/dist/runtime/components/CircleProgress.d.vue.ts +17 -0
- package/dist/runtime/components/CircleProgress.vue +75 -0
- package/dist/runtime/components/CircleProgress.vue.d.ts +17 -0
- package/dist/runtime/components/DeleteModal.d.vue.ts +14 -0
- package/dist/runtime/components/DeleteModal.vue +57 -0
- package/dist/runtime/components/DeleteModal.vue.d.ts +14 -0
- package/dist/runtime/components/Dnd.client.d.vue.ts +25 -0
- package/dist/runtime/components/Dnd.client.vue +47 -0
- package/dist/runtime/components/Dnd.client.vue.d.ts +25 -0
- package/dist/runtime/components/EChart.client.d.vue.ts +19 -0
- package/dist/runtime/components/EChart.client.vue +72 -0
- package/dist/runtime/components/EChart.client.vue.d.ts +19 -0
- package/dist/runtime/components/Empty.d.vue.ts +12 -0
- package/dist/runtime/components/Empty.vue +26 -0
- package/dist/runtime/components/Empty.vue.d.ts +12 -0
- package/dist/runtime/components/PermissionWrapper.d.vue.ts +23 -0
- package/dist/runtime/components/PermissionWrapper.vue +51 -0
- package/dist/runtime/components/PermissionWrapper.vue.d.ts +23 -0
- package/dist/runtime/components/ScrollArea.d.vue.ts +26 -0
- package/dist/runtime/components/ScrollArea.vue +201 -0
- package/dist/runtime/components/ScrollArea.vue.d.ts +26 -0
- package/dist/runtime/components/Spin.d.vue.ts +16 -0
- package/dist/runtime/components/Spin.vue +22 -0
- package/dist/runtime/components/Spin.vue.d.ts +16 -0
- package/dist/runtime/components/SqlEditor.d.vue.ts +23 -0
- package/dist/runtime/components/SqlEditor.vue +255 -0
- package/dist/runtime/components/SqlEditor.vue.d.ts +23 -0
- package/dist/runtime/components/Watermark.d.vue.ts +44 -0
- package/dist/runtime/components/Watermark.vue +162 -0
- package/dist/runtime/components/Watermark.vue.d.ts +44 -0
- package/dist/runtime/components/badge/CodeModal.client.d.vue.ts +11 -0
- package/dist/runtime/components/badge/CodeModal.client.vue +77 -0
- package/dist/runtime/components/badge/CodeModal.client.vue.d.ts +11 -0
- package/dist/runtime/components/badge/CodeTooltip.client.d.vue.ts +9 -0
- package/dist/runtime/components/badge/CodeTooltip.client.vue +57 -0
- package/dist/runtime/components/badge/CodeTooltip.client.vue.d.ts +9 -0
- package/dist/runtime/components/button/Dropdown.d.vue.ts +31 -0
- package/dist/runtime/components/button/Dropdown.vue +123 -0
- package/dist/runtime/components/button/Dropdown.vue.d.ts +31 -0
- package/dist/runtime/components/button/Theme.d.vue.ts +19 -0
- package/dist/runtime/components/button/Theme.vue +45 -0
- package/dist/runtime/components/button/Theme.vue.d.ts +19 -0
- package/dist/runtime/components/date-picker/Input.d.vue.ts +18 -0
- package/dist/runtime/components/date-picker/Input.vue +39 -0
- package/dist/runtime/components/date-picker/Input.vue.d.ts +18 -0
- package/dist/runtime/components/date-picker/index.d.vue.ts +26 -0
- package/dist/runtime/components/date-picker/index.vue +223 -0
- package/dist/runtime/components/date-picker/index.vue.d.ts +26 -0
- package/dist/runtime/components/flow/FlowEdge.client.d.vue.ts +5 -0
- package/dist/runtime/components/flow/FlowEdge.client.vue +110 -0
- package/dist/runtime/components/flow/FlowEdge.client.vue.d.ts +5 -0
- package/dist/runtime/components/flow/FlowNode.client.d.vue.ts +8 -0
- package/dist/runtime/components/flow/FlowNode.client.vue +79 -0
- package/dist/runtime/components/flow/FlowNode.client.vue.d.ts +8 -0
- package/dist/runtime/components/flow/FlowStats.d.vue.ts +7 -0
- package/dist/runtime/components/flow/FlowStats.vue +17 -0
- package/dist/runtime/components/flow/FlowStats.vue.d.ts +7 -0
- package/dist/runtime/components/flow/FlowToolbar.d.vue.ts +14 -0
- package/dist/runtime/components/flow/FlowToolbar.vue +113 -0
- package/dist/runtime/components/flow/FlowToolbar.vue.d.ts +14 -0
- package/dist/runtime/components/form/create-modal-template/WithApi.d.vue.ts +19 -0
- package/dist/runtime/components/form/create-modal-template/WithApi.vue +36 -0
- package/dist/runtime/components/form/create-modal-template/WithApi.vue.d.ts +19 -0
- package/dist/runtime/components/form/create-modal-template/index.d.vue.ts +19 -0
- package/dist/runtime/components/form/create-modal-template/index.vue +75 -0
- package/dist/runtime/components/form/create-modal-template/index.vue.d.ts +19 -0
- package/dist/runtime/components/form/field/AsyncObjectSelect.d.vue.ts +23 -0
- package/dist/runtime/components/form/field/AsyncObjectSelect.vue +46 -0
- package/dist/runtime/components/form/field/AsyncObjectSelect.vue.d.ts +23 -0
- package/dist/runtime/components/form/field/AsyncSelect.d.vue.ts +26 -0
- package/dist/runtime/components/form/field/AsyncSelect.vue +140 -0
- package/dist/runtime/components/form/field/AsyncSelect.vue.d.ts +26 -0
- package/dist/runtime/components/form/field/AsyncTreeSelect.d.vue.ts +27 -0
- package/dist/runtime/components/form/field/AsyncTreeSelect.vue +130 -0
- package/dist/runtime/components/form/field/AsyncTreeSelect.vue.d.ts +27 -0
- package/dist/runtime/components/form/field/ButtonSwitch.d.vue.ts +19 -0
- package/dist/runtime/components/form/field/ButtonSwitch.vue +29 -0
- package/dist/runtime/components/form/field/ButtonSwitch.vue.d.ts +19 -0
- package/dist/runtime/components/form/field/DatePicker.d.vue.ts +26 -0
- package/dist/runtime/components/form/field/DatePicker.vue +89 -0
- package/dist/runtime/components/form/field/DatePicker.vue.d.ts +26 -0
- package/dist/runtime/components/form/field/DynamicInput.d.vue.ts +14 -0
- package/dist/runtime/components/form/field/DynamicInput.vue +52 -0
- package/dist/runtime/components/form/field/DynamicInput.vue.d.ts +14 -0
- package/dist/runtime/components/form/field/DynamicObjectInput.d.vue.ts +20 -0
- package/dist/runtime/components/form/field/DynamicObjectInput.vue +82 -0
- package/dist/runtime/components/form/field/DynamicObjectInput.vue.d.ts +20 -0
- package/dist/runtime/components/form/field/Input.d.vue.ts +17 -0
- package/dist/runtime/components/form/field/Input.vue +41 -0
- package/dist/runtime/components/form/field/Input.vue.d.ts +17 -0
- package/dist/runtime/components/form/field/InputPassword.d.vue.ts +17 -0
- package/dist/runtime/components/form/field/InputPassword.vue +40 -0
- package/dist/runtime/components/form/field/InputPassword.vue.d.ts +17 -0
- package/dist/runtime/components/form/field/InputStringNumber.d.vue.ts +16 -0
- package/dist/runtime/components/form/field/InputStringNumber.vue +56 -0
- package/dist/runtime/components/form/field/InputStringNumber.vue.d.ts +16 -0
- package/dist/runtime/components/form/field/Select.d.vue.ts +16 -0
- package/dist/runtime/components/form/field/Select.vue +29 -0
- package/dist/runtime/components/form/field/Select.vue.d.ts +16 -0
- package/dist/runtime/components/form/field/SqlEditor.d.vue.ts +10 -0
- package/dist/runtime/components/form/field/SqlEditor.vue +28 -0
- package/dist/runtime/components/form/field/SqlEditor.vue.d.ts +10 -0
- package/dist/runtime/components/form/field/TreeSelectTransfer.d.vue.ts +4 -0
- package/dist/runtime/components/form/field/TreeSelectTransfer.vue +89 -0
- package/dist/runtime/components/form/field/TreeSelectTransfer.vue.d.ts +4 -0
- package/dist/runtime/components/form/field/index.d.vue.ts +26 -0
- package/dist/runtime/components/form/field/index.vue +212 -0
- package/dist/runtime/components/form/field/index.vue.d.ts +26 -0
- package/dist/runtime/components/form/index.d.vue.ts +21 -0
- package/dist/runtime/components/form/index.vue +77 -0
- package/dist/runtime/components/form/index.vue.d.ts +21 -0
- package/dist/runtime/components/layout/ModuleMenu.d.vue.ts +6 -0
- package/dist/runtime/components/layout/ModuleMenu.vue +48 -0
- package/dist/runtime/components/layout/ModuleMenu.vue.d.ts +6 -0
- package/dist/runtime/components/layout/ThemePicker.d.vue.ts +3 -0
- package/dist/runtime/components/layout/ThemePicker.vue +100 -0
- package/dist/runtime/components/layout/ThemePicker.vue.d.ts +3 -0
- package/dist/runtime/components/layout/UserMenu.d.vue.ts +7 -0
- package/dist/runtime/components/layout/UserMenu.vue +77 -0
- package/dist/runtime/components/layout/UserMenu.vue.d.ts +7 -0
- package/dist/runtime/components/layout/default.d.vue.ts +13 -0
- package/dist/runtime/components/layout/default.vue +82 -0
- package/dist/runtime/components/layout/default.vue.d.ts +13 -0
- package/dist/runtime/components/placeholder/Svg.d.vue.ts +3 -0
- package/dist/runtime/components/placeholder/Svg.vue +22 -0
- package/dist/runtime/components/placeholder/Svg.vue.d.ts +3 -0
- package/dist/runtime/components/simple-table/index.d.vue.ts +21 -0
- package/dist/runtime/components/simple-table/index.vue +159 -0
- package/dist/runtime/components/simple-table/index.vue.d.ts +21 -0
- package/dist/runtime/components/table/ExcelExportModal.d.vue.ts +28 -0
- package/dist/runtime/components/table/ExcelExportModal.vue +82 -0
- package/dist/runtime/components/table/ExcelExportModal.vue.d.ts +28 -0
- package/dist/runtime/components/table/Page.d.vue.ts +26 -0
- package/dist/runtime/components/table/Page.vue +130 -0
- package/dist/runtime/components/table/Page.vue.d.ts +26 -0
- package/dist/runtime/components/table/Pagination.d.vue.ts +19 -0
- package/dist/runtime/components/table/Pagination.vue +51 -0
- package/dist/runtime/components/table/Pagination.vue.d.ts +19 -0
- package/dist/runtime/components/table/TooltipCell.d.vue.ts +7 -0
- package/dist/runtime/components/table/TooltipCell.vue +23 -0
- package/dist/runtime/components/table/TooltipCell.vue.d.ts +7 -0
- package/dist/runtime/components/table/column/ActionHeader.d.vue.ts +21 -0
- package/dist/runtime/components/table/column/ActionHeader.vue +155 -0
- package/dist/runtime/components/table/column/ActionHeader.vue.d.ts +21 -0
- package/dist/runtime/components/table/expansion/Field.d.vue.ts +18 -0
- package/dist/runtime/components/table/expansion/Field.vue +33 -0
- package/dist/runtime/components/table/expansion/Field.vue.d.ts +18 -0
- package/dist/runtime/components/table/expansion/Layout.d.vue.ts +13 -0
- package/dist/runtime/components/table/expansion/Layout.vue +8 -0
- package/dist/runtime/components/table/expansion/Layout.vue.d.ts +13 -0
- package/dist/runtime/components/table/header/index.d.vue.ts +19 -0
- package/dist/runtime/components/table/header/index.vue +221 -0
- package/dist/runtime/components/table/header/index.vue.d.ts +19 -0
- package/dist/runtime/components/table/header/settings/columns/DndList.d.vue.ts +32 -0
- package/dist/runtime/components/table/header/settings/columns/DndList.vue +46 -0
- package/dist/runtime/components/table/header/settings/columns/DndList.vue.d.ts +32 -0
- package/dist/runtime/components/table/header/settings/columns/Item.d.vue.ts +18 -0
- package/dist/runtime/components/table/header/settings/columns/Item.vue +59 -0
- package/dist/runtime/components/table/header/settings/columns/Item.vue.d.ts +18 -0
- package/dist/runtime/components/table/header/settings/columns/index.d.vue.ts +24 -0
- package/dist/runtime/components/table/header/settings/columns/index.vue +143 -0
- package/dist/runtime/components/table/header/settings/columns/index.vue.d.ts +24 -0
- package/dist/runtime/components/table/header/settings/index.d.vue.ts +25 -0
- package/dist/runtime/components/table/header/settings/index.vue +35 -0
- package/dist/runtime/components/table/header/settings/index.vue.d.ts +25 -0
- package/dist/runtime/components/table/index.d.vue.ts +26 -0
- package/dist/runtime/components/table/index.vue +121 -0
- package/dist/runtime/components/table/index.vue.d.ts +26 -0
- package/dist/runtime/components/table/query/order/Item.d.vue.ts +28 -0
- package/dist/runtime/components/table/query/order/Item.vue +85 -0
- package/dist/runtime/components/table/query/order/Item.vue.d.ts +28 -0
- package/dist/runtime/components/table/query/order/Newer.d.vue.ts +25 -0
- package/dist/runtime/components/table/query/order/Newer.vue +50 -0
- package/dist/runtime/components/table/query/order/Newer.vue.d.ts +25 -0
- package/dist/runtime/components/table/query/order/index.d.vue.ts +19 -0
- package/dist/runtime/components/table/query/order/index.vue +108 -0
- package/dist/runtime/components/table/query/order/index.vue.d.ts +19 -0
- package/dist/runtime/components/table/query/where/Newer.d.vue.ts +14 -0
- package/dist/runtime/components/table/query/where/Newer.vue +44 -0
- package/dist/runtime/components/table/query/where/Newer.vue.d.ts +14 -0
- package/dist/runtime/components/table/query/where/index.d.vue.ts +21 -0
- package/dist/runtime/components/table/query/where/index.vue +108 -0
- package/dist/runtime/components/table/query/where/index.vue.d.ts +21 -0
- package/dist/runtime/components/table/query/where/simple/index.d.vue.ts +7 -0
- package/dist/runtime/components/table/query/where/simple/index.vue +47 -0
- package/dist/runtime/components/table/query/where/simple/index.vue.d.ts +7 -0
- package/dist/runtime/components/table/query/where/simple/item/ColumnPicker.d.vue.ts +27 -0
- package/dist/runtime/components/table/query/where/simple/item/ColumnPicker.vue +65 -0
- package/dist/runtime/components/table/query/where/simple/item/ColumnPicker.vue.d.ts +27 -0
- package/dist/runtime/components/table/query/where/simple/item/OprPicker.d.vue.ts +27 -0
- package/dist/runtime/components/table/query/where/simple/item/OprPicker.vue +68 -0
- package/dist/runtime/components/table/query/where/simple/item/OprPicker.vue.d.ts +27 -0
- package/dist/runtime/components/table/query/where/simple/item/index.d.vue.ts +20 -0
- package/dist/runtime/components/table/query/where/simple/item/index.vue +56 -0
- package/dist/runtime/components/table/query/where/simple/item/index.vue.d.ts +20 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/AsyncSelect.d.vue.ts +29 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/AsyncSelect.vue +152 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/AsyncSelect.vue.d.ts +29 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/DatePicker.d.vue.ts +27 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/DatePicker.vue +232 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/DatePicker.vue.d.ts +27 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/Input.d.vue.ts +29 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/Input.vue +57 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/Input.vue.d.ts +29 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/InputNumber.d.vue.ts +29 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/InputNumber.vue +45 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/InputNumber.vue.d.ts +29 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/Select.d.vue.ts +28 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/Select.vue +62 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/Select.vue.d.ts +28 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/index.d.vue.ts +19 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/index.vue +72 -0
- package/dist/runtime/components/table/query/where/simple/item/opr/index.vue.d.ts +19 -0
- package/dist/runtime/composables/api/flow/index.d.ts +3 -0
- package/dist/runtime/composables/api/flow/index.js +3 -0
- package/dist/runtime/composables/api/flow/useFlowApi.d.ts +1 -0
- package/dist/runtime/composables/api/flow/useFlowApi.js +1 -0
- package/dist/runtime/composables/api/flow/useFlowNodeApi.d.ts +1 -0
- package/dist/runtime/composables/api/flow/useFlowNodeApi.js +1 -0
- package/dist/runtime/composables/api/flow/useFlowNodeLinkApi.d.ts +1 -0
- package/dist/runtime/composables/api/flow/useFlowNodeLinkApi.js +1 -0
- package/dist/runtime/composables/api/index.d.ts +4 -0
- package/dist/runtime/composables/api/index.js +4 -0
- package/dist/runtime/composables/api/sys/index.d.ts +9 -0
- package/dist/runtime/composables/api/sys/index.js +9 -0
- package/dist/runtime/composables/api/sys/useAuthApi.d.ts +0 -0
- package/dist/runtime/composables/api/sys/useAuthApi.js +13 -0
- package/dist/runtime/composables/api/sys/useCompanyApi.d.ts +1 -0
- package/dist/runtime/composables/api/sys/useCompanyApi.js +3 -0
- package/dist/runtime/composables/api/sys/useDepartmentApi.d.ts +0 -0
- package/dist/runtime/composables/api/sys/useDepartmentApi.js +30 -0
- package/dist/runtime/composables/api/sys/useJobTitleApi.d.ts +1 -0
- package/dist/runtime/composables/api/sys/useJobTitleApi.js +3 -0
- package/dist/runtime/composables/api/sys/useLoginApi.d.ts +0 -0
- package/dist/runtime/composables/api/sys/useLoginApi.js +13 -0
- package/dist/runtime/composables/api/sys/useMenuApi.d.ts +0 -0
- package/dist/runtime/composables/api/sys/useMenuApi.js +32 -0
- package/dist/runtime/composables/api/sys/useRoleApi.d.ts +0 -0
- package/dist/runtime/composables/api/sys/useRoleApi.js +20 -0
- package/dist/runtime/composables/api/sys/useRowRecord.d.ts +0 -0
- package/dist/runtime/composables/api/sys/useRowRecord.js +8 -0
- package/dist/runtime/composables/api/sys/useUserApi.d.ts +0 -0
- package/dist/runtime/composables/api/sys/useUserApi.js +39 -0
- package/dist/runtime/composables/api/useApi.d.ts +0 -0
- package/dist/runtime/composables/api/useApi.js +103 -0
- package/dist/runtime/composables/api/useModel.d.ts +3 -0
- package/dist/runtime/composables/api/useModel.js +4 -0
- package/dist/runtime/composables/flow/index.d.ts +3 -0
- package/dist/runtime/composables/flow/index.js +3 -0
- package/dist/runtime/composables/flow/useFlow.d.ts +0 -0
- package/dist/runtime/composables/flow/useFlow.js +162 -0
- package/dist/runtime/composables/flow/useFlowResize.d.ts +56 -0
- package/dist/runtime/composables/flow/useFlowResize.js +148 -0
- package/dist/runtime/composables/flow/useFlowStyles.d.ts +14 -0
- package/dist/runtime/composables/flow/useFlowStyles.js +32 -0
- package/dist/runtime/composables/index.d.ts +13 -0
- package/dist/runtime/composables/index.js +13 -0
- package/dist/runtime/composables/table/index.d.ts +9 -0
- package/dist/runtime/composables/table/index.js +9 -0
- package/dist/runtime/composables/table/useTable.d.ts +0 -0
- package/dist/runtime/composables/table/useTable.js +340 -0
- package/dist/runtime/composables/table/useTableColumns.d.ts +30 -0
- package/dist/runtime/composables/table/useTableColumns.js +214 -0
- package/dist/runtime/composables/table/useTableData.d.ts +29 -0
- package/dist/runtime/composables/table/useTableData.js +92 -0
- package/dist/runtime/composables/table/useTableOpr.d.ts +8 -0
- package/dist/runtime/composables/table/useTableOpr.js +91 -0
- package/dist/runtime/composables/table/useTablePagination.d.ts +7 -0
- package/dist/runtime/composables/table/useTablePagination.js +29 -0
- package/dist/runtime/composables/table/useTableQuery.d.ts +23 -0
- package/dist/runtime/composables/table/useTableQuery.js +131 -0
- package/dist/runtime/composables/table/useTableRowActions.d.ts +18 -0
- package/dist/runtime/composables/table/useTableRowActions.js +154 -0
- package/dist/runtime/composables/table/useTableRowSelection.d.ts +6 -0
- package/dist/runtime/composables/table/useTableRowSelection.js +26 -0
- package/dist/runtime/composables/table/useTableView.d.ts +0 -0
- package/dist/runtime/composables/table/useTableView.js +150 -0
- package/dist/runtime/composables/useApp.d.ts +22 -0
- package/dist/runtime/composables/useApp.js +83 -0
- package/dist/runtime/composables/useAuth.d.ts +14 -0
- package/dist/runtime/composables/useAuth.js +92 -0
- package/dist/runtime/composables/useBoolean.d.ts +58 -0
- package/dist/runtime/composables/useBoolean.js +71 -0
- package/dist/runtime/composables/useDate.d.ts +25 -0
- package/dist/runtime/composables/useDate.js +157 -0
- package/dist/runtime/composables/useEChart.d.ts +103 -0
- package/dist/runtime/composables/useEChart.js +120 -0
- package/dist/runtime/composables/useForm.d.ts +0 -0
- package/dist/runtime/composables/useForm.js +60 -0
- package/dist/runtime/composables/usePermission.d.ts +10 -0
- package/dist/runtime/composables/usePermission.js +53 -0
- package/dist/runtime/composables/useRouterPush.d.ts +8 -0
- package/dist/runtime/composables/useRouterPush.js +37 -0
- package/dist/runtime/composables/useSidebarMenu.d.ts +36 -0
- package/dist/runtime/composables/useSidebarMenu.js +131 -0
- package/dist/runtime/composables/useTheme.d.ts +20 -0
- package/dist/runtime/composables/useTheme.js +94 -0
- package/dist/runtime/constants/columns.d.ts +3 -0
- package/dist/runtime/constants/columns.js +52 -0
- package/dist/runtime/constants/flow.d.ts +12 -0
- package/dist/runtime/constants/flow.js +24 -0
- package/dist/runtime/constants/index.d.ts +6 -0
- package/dist/runtime/constants/index.js +6 -0
- package/dist/runtime/constants/menu.d.ts +9 -0
- package/dist/runtime/constants/menu.js +11 -0
- package/dist/runtime/constants/options.d.ts +8 -0
- package/dist/runtime/constants/options.js +15 -0
- package/dist/runtime/constants/time.d.ts +7 -0
- package/dist/runtime/constants/time.js +12 -0
- package/dist/runtime/constants/user.d.ts +7 -0
- package/dist/runtime/constants/user.js +7 -0
- package/dist/runtime/index.css +1 -0
- package/dist/runtime/plugins/01.nuxtUIEnhancement.d.ts +18 -0
- package/dist/runtime/plugins/01.nuxtUIEnhancement.js +52 -0
- package/dist/runtime/plugins/02.dayjs.d.ts +13 -0
- package/dist/runtime/plugins/02.dayjs.js +9 -0
- package/dist/runtime/plugins/03.theme.d.ts +2 -0
- package/dist/runtime/plugins/03.theme.js +33 -0
- package/dist/runtime/plugins/04.head.d.ts +2 -0
- package/dist/runtime/plugins/04.head.js +29 -0
- package/dist/runtime/types/app.d.ts +42 -0
- package/dist/runtime/types/app.js +0 -0
- package/dist/runtime/types/cmds/login.d.ts +23 -0
- package/dist/runtime/types/cmds/sys.d.ts +10 -0
- package/dist/runtime/types/cmds/user.d.ts +8 -0
- package/dist/runtime/types/components/date.d.ts +5 -0
- package/dist/runtime/types/components/date.js +0 -0
- package/dist/runtime/types/components/dnd.d.ts +14 -0
- package/dist/runtime/types/components/dnd.js +0 -0
- package/dist/runtime/types/components/form/field.d.ts +102 -0
- package/dist/runtime/types/components/form/field.js +0 -0
- package/dist/runtime/types/components/form/index.d.ts +27 -0
- package/dist/runtime/types/components/form/index.js +1 -0
- package/dist/runtime/types/components/index.d.ts +4 -0
- package/dist/runtime/types/components/index.js +4 -0
- package/dist/runtime/types/components/table/column.d.ts +35 -0
- package/dist/runtime/types/components/table/column.js +0 -0
- package/dist/runtime/types/components/table/header.d.ts +33 -0
- package/dist/runtime/types/components/table/header.js +0 -0
- package/dist/runtime/types/components/table/index.d.ts +103 -0
- package/dist/runtime/types/components/table/index.js +4 -0
- package/dist/runtime/types/components/table/pagination.d.ts +14 -0
- package/dist/runtime/types/components/table/pagination.js +0 -0
- package/dist/runtime/types/components/table/query/index.d.ts +2 -0
- package/dist/runtime/types/components/table/query/index.js +2 -0
- package/dist/runtime/types/components/table/query/order.d.ts +16 -0
- package/dist/runtime/types/components/table/query/order.js +0 -0
- package/dist/runtime/types/components/table/query/where.d.ts +26 -0
- package/dist/runtime/types/components/table/query/where.js +0 -0
- package/dist/runtime/types/constants/time.d.ts +5 -0
- package/dist/runtime/types/index.d.ts +14 -0
- package/dist/runtime/types/index.js +6 -0
- package/dist/runtime/types/localStorage.d.ts +15 -0
- package/dist/runtime/types/locale.d.ts +81 -0
- package/dist/runtime/types/locale.js +0 -0
- package/dist/runtime/types/models/base.d.ts +16 -0
- package/dist/runtime/types/models/flow.d.ts +31 -0
- package/dist/runtime/types/models/sys.d.ts +107 -0
- package/dist/runtime/types/query.d.ts +45 -0
- package/dist/runtime/types/query.js +1 -0
- package/dist/runtime/types/request.d.ts +55 -0
- package/dist/runtime/types/request.js +22 -0
- package/dist/runtime/types/storage.d.ts +10 -0
- package/dist/runtime/types/storage.js +11 -0
- package/dist/runtime/utils/array.d.ts +1 -0
- package/dist/runtime/utils/array.js +3 -0
- package/dist/runtime/utils/diff.d.ts +2 -0
- package/dist/runtime/utils/diff.js +81 -0
- package/dist/runtime/utils/download/index.d.ts +1 -0
- package/dist/runtime/utils/download/index.js +1 -0
- package/dist/runtime/utils/download/tagA.d.ts +2 -0
- package/dist/runtime/utils/download/tagA.js +14 -0
- package/dist/runtime/utils/emoji.d.ts +1 -0
- package/dist/runtime/utils/emoji.js +57 -0
- package/dist/runtime/utils/excel.d.ts +3 -0
- package/dist/runtime/utils/excel.js +63 -0
- package/dist/runtime/utils/form.d.ts +2 -0
- package/dist/runtime/utils/form.js +142 -0
- package/dist/runtime/utils/index.d.ts +11 -0
- package/dist/runtime/utils/index.js +11 -0
- package/dist/runtime/utils/request.d.ts +3 -0
- package/dist/runtime/utils/request.js +3 -0
- package/dist/runtime/utils/string.d.ts +6 -0
- package/dist/runtime/utils/string.js +18 -0
- package/dist/runtime/utils/tree.d.ts +8 -0
- package/dist/runtime/utils/tree.js +54 -0
- package/dist/runtime/utils/type.d.ts +1 -0
- package/dist/runtime/utils/type.js +3 -0
- package/dist/runtime/utils/vueuse.d.ts +1 -0
- package/dist/runtime/utils/vueuse.js +20 -0
- package/dist/types.d.mts +3 -0
- package/package.json +108 -0
|
@@ -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,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 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,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,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
|
+
}
|
|
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,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
|