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,103 @@
|
|
|
1
|
+
import type { Ref, VNode } from 'vue';
|
|
2
|
+
import type { BatchOprCommand, BatchSaveCommand, PageResult, RequestResult } from '../../request.js';
|
|
3
|
+
import type { QueryTemplate, WhereQuery } from '../../query.js';
|
|
4
|
+
import type { VColumn } from './column.js';
|
|
5
|
+
import type { TableHeaderProps } from './header.js';
|
|
6
|
+
import type { OrderQueryOption, WhereQueryOption } from './query/index.js';
|
|
7
|
+
import type { ButtonProps, DropdownMenuItem } from '@nuxt/ui';
|
|
8
|
+
import type { UseFetchOptions } from 'nuxt/app';
|
|
9
|
+
export * from './header.js';
|
|
10
|
+
export * from './pagination.js';
|
|
11
|
+
export * from './query/index.js';
|
|
12
|
+
export * from './column.js';
|
|
13
|
+
export type CountApi<T> = (payload: Omit<QueryTemplate<T>, 'selectQuery'>, customOptions?: UseFetchOptions<number>) => Promise<{
|
|
14
|
+
data: Ref<RequestResult<number>>;
|
|
15
|
+
}>;
|
|
16
|
+
export type ListApi<T> = (payload: Omit<QueryTemplate<T>, 'selectQuery'>, customOptions?: UseFetchOptions<PageResult<T>>) => Promise<{
|
|
17
|
+
data: Ref<RequestResult<PageResult<T>>>;
|
|
18
|
+
}>;
|
|
19
|
+
export type ApiGroup<T> = {
|
|
20
|
+
create: (model: T, customOptions?: UseFetchOptions<T>) => Promise<{
|
|
21
|
+
data: Ref<RequestResult<T>>;
|
|
22
|
+
}>;
|
|
23
|
+
batchCreate: (cmd: BatchSaveCommand<T>, customOptions?: UseFetchOptions<T[]>) => Promise<{
|
|
24
|
+
data: Ref<RequestResult<T[]>>;
|
|
25
|
+
}>;
|
|
26
|
+
update: (model: T, customOptions?: UseFetchOptions<T>) => Promise<{
|
|
27
|
+
data: Ref<RequestResult<T>>;
|
|
28
|
+
}>;
|
|
29
|
+
batchUpdate: (cmd: BatchSaveCommand<T>, customOptions?: UseFetchOptions<T[]>) => Promise<{
|
|
30
|
+
data: Ref<RequestResult<T[]>>;
|
|
31
|
+
}>;
|
|
32
|
+
getById: (id: number, customOptions?: UseFetchOptions<T>) => Promise<{
|
|
33
|
+
data: Ref<RequestResult<T>>;
|
|
34
|
+
}>;
|
|
35
|
+
deleteById: (id: number, customOptions?: UseFetchOptions<void>) => Promise<{
|
|
36
|
+
data: Ref<RequestResult<void>>;
|
|
37
|
+
}>;
|
|
38
|
+
batchDelete: (delReq: BatchOprCommand, customOptions?: UseFetchOptions<void>) => Promise<{
|
|
39
|
+
data: Ref<RequestResult<void>>;
|
|
40
|
+
}>;
|
|
41
|
+
count: CountApi<T>;
|
|
42
|
+
list: ListApi<T>;
|
|
43
|
+
countAndList: ListApi<T>;
|
|
44
|
+
prune: (model: T) => T;
|
|
45
|
+
copy?: (model: T) => T;
|
|
46
|
+
};
|
|
47
|
+
export type RowActionProps<T> = {
|
|
48
|
+
label?: string;
|
|
49
|
+
icon?: string;
|
|
50
|
+
type?: DropdownMenuItem['type'];
|
|
51
|
+
color?: ButtonProps['color'];
|
|
52
|
+
fn?: (model: T) => void;
|
|
53
|
+
refetchAfterFn?: boolean;
|
|
54
|
+
fnWithModal?: (model: T) => Promise<boolean>;
|
|
55
|
+
asyncFn?: (model: T) => Promise<void>;
|
|
56
|
+
};
|
|
57
|
+
export type VTableExportExcelProps<T> = {
|
|
58
|
+
filename: string;
|
|
59
|
+
filenameWithDateTime?: boolean;
|
|
60
|
+
permissionKey?: string;
|
|
61
|
+
extraWhereQueryInitValues?: WhereQuery<T>;
|
|
62
|
+
};
|
|
63
|
+
export type VTableProps<T> = {
|
|
64
|
+
name: string;
|
|
65
|
+
cnName: string;
|
|
66
|
+
disableCreation?: boolean;
|
|
67
|
+
disableRefresh?: boolean;
|
|
68
|
+
disableBatchDeletion?: boolean;
|
|
69
|
+
disableSettings?: boolean;
|
|
70
|
+
disablePagination?: boolean;
|
|
71
|
+
disableFetchOnMounted?: boolean;
|
|
72
|
+
useApiGroup?: () => ApiGroup<T>;
|
|
73
|
+
apiListFn?: ListApi<T>;
|
|
74
|
+
fetchAll?: boolean;
|
|
75
|
+
onEditRowFromModal?: (row: T) => Promise<boolean>;
|
|
76
|
+
singleColumn?: boolean;
|
|
77
|
+
hideLastRowBorder?: boolean;
|
|
78
|
+
singleRow?: boolean;
|
|
79
|
+
exportExcel?: VTableExportExcelProps<T>;
|
|
80
|
+
extraButtons?: TableHeaderProps<T>['extraButtons'];
|
|
81
|
+
onNew?: TableHeaderProps<T>['onNew'];
|
|
82
|
+
disableWhereQuery?: TableHeaderProps<T>['disableWhereQuery'];
|
|
83
|
+
whereQueryOpen?: boolean;
|
|
84
|
+
onUpdateWhereQueryOpen?: (open: boolean) => void;
|
|
85
|
+
extraWhereQueryOptions?: WhereQueryOption<T>[];
|
|
86
|
+
extraWhereQueryInitValues?: WhereQuery<T>;
|
|
87
|
+
disableOrderQuery?: TableHeaderProps<T>['disableOrderQuery'];
|
|
88
|
+
extraOrderQueryOptions?: OrderQueryOption<T>[];
|
|
89
|
+
bizColumns: VColumn<T>[];
|
|
90
|
+
extraRowActions?: RowActionProps<T>[];
|
|
91
|
+
treeifyColName?: keyof T;
|
|
92
|
+
commonColumnProps?: VColumn<T>;
|
|
93
|
+
rowKey?: keyof T;
|
|
94
|
+
disableRowActions?: boolean;
|
|
95
|
+
disableRowUpdate?: boolean;
|
|
96
|
+
disableRowCopy?: boolean;
|
|
97
|
+
disableRowDeletion?: boolean;
|
|
98
|
+
disableRowSelection?: boolean;
|
|
99
|
+
expandable?: boolean;
|
|
100
|
+
expandVNode?: (row: T) => VNode;
|
|
101
|
+
rowSpanColumns?: (keyof T)[];
|
|
102
|
+
customRowCopyFn?: (model: T) => T;
|
|
103
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DropdownMenuItem } from '@nuxt/ui';
|
|
2
|
+
import type { Size } from '../../index.js';
|
|
3
|
+
export type TablePaginationProps<T> = {
|
|
4
|
+
data: T[];
|
|
5
|
+
selectedIds?: number[];
|
|
6
|
+
pageNum: number;
|
|
7
|
+
pageSize: number;
|
|
8
|
+
total: number;
|
|
9
|
+
onUpdatePage: (page: number) => void;
|
|
10
|
+
pageSizeDropdownMenuItems: DropdownMenuItem[];
|
|
11
|
+
hidePagination?: boolean;
|
|
12
|
+
fetching?: boolean;
|
|
13
|
+
size?: Size;
|
|
14
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ButtonProps } from '@nuxt/ui';
|
|
2
|
+
import type { OrderQuery, OrderQueryColumnOption, VColumn } from '../../../index.js';
|
|
3
|
+
export type OrderQueryOption<T> = {
|
|
4
|
+
field: keyof T;
|
|
5
|
+
label?: string;
|
|
6
|
+
} & OrderQueryColumnOption;
|
|
7
|
+
export type OrderQueryProps<T> = {
|
|
8
|
+
orderOptions: OrderQueryOption<T>[];
|
|
9
|
+
defaultOrderQuery?: OrderQuery<T>;
|
|
10
|
+
orderQuery: OrderQuery<T>;
|
|
11
|
+
onUpdateOrderQuery: (query: OrderQuery<T>) => void;
|
|
12
|
+
fetching?: boolean;
|
|
13
|
+
triggerFetching: () => Promise<void>;
|
|
14
|
+
bizColumns: VColumn<T>[];
|
|
15
|
+
size?: ButtonProps['size'];
|
|
16
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { VColumn, WhereQuery, WhereQueryColumnOption, WhereQueryItem, WhereQueryItemGroup } from '../../../index.js';
|
|
2
|
+
export type WhereQueryOption<T> = {
|
|
3
|
+
field: keyof T | string;
|
|
4
|
+
label: string;
|
|
5
|
+
} & Partial<WhereQueryColumnOption<T>>;
|
|
6
|
+
export type WhereQueryProps<T> = {
|
|
7
|
+
whereOptions: WhereQueryOption<T>[];
|
|
8
|
+
defaultWhereQuery?: WhereQuery<T>;
|
|
9
|
+
whereQuery: WhereQuery<T> | undefined;
|
|
10
|
+
onUpdateWhereQuery: (query: WhereQuery<T> | undefined) => void;
|
|
11
|
+
whereQueryOpen?: boolean;
|
|
12
|
+
onUpdateWhereQueryOpen?: (open: boolean) => void;
|
|
13
|
+
isWhereQueryValueEmpty?: boolean;
|
|
14
|
+
fetching?: boolean;
|
|
15
|
+
triggerFetching: (fromStart: boolean) => Promise<void>;
|
|
16
|
+
bizColumns?: VColumn<T>[];
|
|
17
|
+
hideQueryButton?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type WhereSimpleQueryProps<T> = {
|
|
20
|
+
items?: WhereQueryItem<T>[];
|
|
21
|
+
onUpdateItems: (items: WhereQueryItem<T>[] | undefined) => void;
|
|
22
|
+
} & Pick<WhereQueryProps<T>, 'whereOptions' | 'fetching' | 'triggerFetching' | 'bizColumns'>;
|
|
23
|
+
export type WhereAdvancedQueryProps<T> = {
|
|
24
|
+
group?: WhereQueryItemGroup<T>;
|
|
25
|
+
onUpdateGroup?: (items: WhereQueryItemGroup<T>) => void;
|
|
26
|
+
} & Pick<WhereQueryProps<T>, 'whereOptions' | 'fetching' | 'triggerFetching' | 'bizColumns'>;
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BadgeProps } from '@nuxt/ui';
|
|
2
|
+
export * from './app.js';
|
|
3
|
+
export * from './locale.js';
|
|
4
|
+
export * from './request.js';
|
|
5
|
+
export * from './components/index.js';
|
|
6
|
+
export * from './query.js';
|
|
7
|
+
export * from './storage.js';
|
|
8
|
+
export type Size = import('@nuxt/ui').ButtonProps['size'];
|
|
9
|
+
export type SelectOption = {
|
|
10
|
+
label: string;
|
|
11
|
+
value: any;
|
|
12
|
+
color?: BadgeProps['color'];
|
|
13
|
+
icon?: BadgeProps['icon'];
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare namespace LocalStorage {
|
|
2
|
+
type Column = {
|
|
3
|
+
accessorKey: string
|
|
4
|
+
checked?: boolean
|
|
5
|
+
width?: string | number
|
|
6
|
+
fixed: 'left' | 'right' | 'unfixed'
|
|
7
|
+
}
|
|
8
|
+
type TableSettings<T> = {
|
|
9
|
+
columns?: Column[]
|
|
10
|
+
pageSize?: number
|
|
11
|
+
whereQuery?: import('./query').WhereQuery<T>
|
|
12
|
+
whereQueryOpen?: boolean
|
|
13
|
+
orderQuery?: import('./query').OrderQuery<T>
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export type I18nLocale = 'zh-CN' | 'en';
|
|
2
|
+
export type Messages = {
|
|
3
|
+
button: {
|
|
4
|
+
download: string;
|
|
5
|
+
submit: string;
|
|
6
|
+
reset: string;
|
|
7
|
+
cancel: string;
|
|
8
|
+
query: string;
|
|
9
|
+
sort: string;
|
|
10
|
+
new: string;
|
|
11
|
+
add: string;
|
|
12
|
+
edit: string;
|
|
13
|
+
delete: string;
|
|
14
|
+
save: string;
|
|
15
|
+
tmpSave: string;
|
|
16
|
+
close: string;
|
|
17
|
+
confirm: string;
|
|
18
|
+
back: string;
|
|
19
|
+
print: string;
|
|
20
|
+
export: string;
|
|
21
|
+
import: string;
|
|
22
|
+
upload: string;
|
|
23
|
+
refresh: string;
|
|
24
|
+
select: string;
|
|
25
|
+
view: string;
|
|
26
|
+
copy: string;
|
|
27
|
+
paste: string;
|
|
28
|
+
cut: string;
|
|
29
|
+
undo: string;
|
|
30
|
+
redo: string;
|
|
31
|
+
settings: string;
|
|
32
|
+
columnSetting: string;
|
|
33
|
+
approve: string;
|
|
34
|
+
pass: string;
|
|
35
|
+
reject: string;
|
|
36
|
+
};
|
|
37
|
+
theme: {
|
|
38
|
+
primary: string;
|
|
39
|
+
primaryDesc: string;
|
|
40
|
+
neutral: string;
|
|
41
|
+
neutralDesc: string;
|
|
42
|
+
radius: string;
|
|
43
|
+
radiusDesc: string;
|
|
44
|
+
colorMode: string;
|
|
45
|
+
colorModeDesc: string;
|
|
46
|
+
locale: string;
|
|
47
|
+
localeDesc: string;
|
|
48
|
+
};
|
|
49
|
+
color: {
|
|
50
|
+
black: string;
|
|
51
|
+
red: string;
|
|
52
|
+
orange: string;
|
|
53
|
+
amber: string;
|
|
54
|
+
yellow: string;
|
|
55
|
+
lime: string;
|
|
56
|
+
green: string;
|
|
57
|
+
emerald: string;
|
|
58
|
+
teal: string;
|
|
59
|
+
cyan: string;
|
|
60
|
+
sky: string;
|
|
61
|
+
blue: string;
|
|
62
|
+
indigo: string;
|
|
63
|
+
violet: string;
|
|
64
|
+
purple: string;
|
|
65
|
+
fuchsia: string;
|
|
66
|
+
pink: string;
|
|
67
|
+
rose: string;
|
|
68
|
+
};
|
|
69
|
+
neutral: {
|
|
70
|
+
slate: string;
|
|
71
|
+
gray: string;
|
|
72
|
+
zinc: string;
|
|
73
|
+
neutral: string;
|
|
74
|
+
stone: string;
|
|
75
|
+
};
|
|
76
|
+
colorMode: {
|
|
77
|
+
light: string;
|
|
78
|
+
dark: string;
|
|
79
|
+
system: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare namespace Model {
|
|
2
|
+
interface BaseModel {
|
|
3
|
+
id: number
|
|
4
|
+
createdAt?: string
|
|
5
|
+
updatedAt?: string
|
|
6
|
+
version?: number
|
|
7
|
+
createdBy?: number
|
|
8
|
+
creator?: any
|
|
9
|
+
updatedBy?: number
|
|
10
|
+
updater?: any
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type UniqueKey = {
|
|
14
|
+
key?: string
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare namespace Model {
|
|
2
|
+
type Flow = {
|
|
3
|
+
name?: string
|
|
4
|
+
description?: string
|
|
5
|
+
nodes?: FlowNode[]
|
|
6
|
+
links?: FlowNodeLink[]
|
|
7
|
+
} & BaseModel
|
|
8
|
+
|
|
9
|
+
type FlowNode = {
|
|
10
|
+
flowId?: number
|
|
11
|
+
name?: string
|
|
12
|
+
positionX?: number
|
|
13
|
+
positionY?: number
|
|
14
|
+
width?: number
|
|
15
|
+
height?: number
|
|
16
|
+
indicators?: Indicator[]
|
|
17
|
+
parentLinks?: FlowNodeLink[]
|
|
18
|
+
childLinks?: FlowNodeLink[]
|
|
19
|
+
} & BaseModel
|
|
20
|
+
|
|
21
|
+
type FlowNodeLink = {
|
|
22
|
+
flowId?: number
|
|
23
|
+
parentId?: number
|
|
24
|
+
parentHandlePos?: string
|
|
25
|
+
childId?: number
|
|
26
|
+
childHandlePos?: string
|
|
27
|
+
label?: string
|
|
28
|
+
condition?: string
|
|
29
|
+
order?: number
|
|
30
|
+
} & BaseModel
|
|
31
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
declare namespace Model {
|
|
2
|
+
type Menu = {
|
|
3
|
+
isAdmin?: boolean
|
|
4
|
+
type?: string
|
|
5
|
+
parentId?: number
|
|
6
|
+
parent?: Menu
|
|
7
|
+
name?: string
|
|
8
|
+
i18nKey?: string
|
|
9
|
+
staticRouteKeys?: string[]
|
|
10
|
+
permission?: string
|
|
11
|
+
order?: string
|
|
12
|
+
disabled?: boolean
|
|
13
|
+
} & BaseModel
|
|
14
|
+
|
|
15
|
+
type Role = {
|
|
16
|
+
isAdmin?: boolean
|
|
17
|
+
name?: string
|
|
18
|
+
permission?: string
|
|
19
|
+
disabled?: boolean
|
|
20
|
+
remark?: string
|
|
21
|
+
menus?: Menu[]
|
|
22
|
+
} & BaseModel
|
|
23
|
+
|
|
24
|
+
type Company = {
|
|
25
|
+
fullname?: string
|
|
26
|
+
nickname?: string
|
|
27
|
+
} & BaseModel
|
|
28
|
+
|
|
29
|
+
type Department = {
|
|
30
|
+
name?: string
|
|
31
|
+
companyId?: number
|
|
32
|
+
company?: Company
|
|
33
|
+
leaderId?: number
|
|
34
|
+
leader?: User
|
|
35
|
+
parentId?: number
|
|
36
|
+
parent?: Department
|
|
37
|
+
} & BaseModel
|
|
38
|
+
|
|
39
|
+
type JobTitle = {
|
|
40
|
+
name?: string
|
|
41
|
+
description?: string
|
|
42
|
+
disabled?: boolean
|
|
43
|
+
remark?: string
|
|
44
|
+
} & BaseModel
|
|
45
|
+
|
|
46
|
+
type JobGrade = {
|
|
47
|
+
name?: string
|
|
48
|
+
description?: string
|
|
49
|
+
disabled?: boolean
|
|
50
|
+
remark?: string
|
|
51
|
+
} & BaseModel
|
|
52
|
+
|
|
53
|
+
type User = {
|
|
54
|
+
id: number
|
|
55
|
+
createdAt?: string
|
|
56
|
+
updatedAt?: string
|
|
57
|
+
version?: number
|
|
58
|
+
// opr
|
|
59
|
+
userCreatedBy?: number
|
|
60
|
+
creator?: User
|
|
61
|
+
userUpdatedBy?: number
|
|
62
|
+
updater?: User
|
|
63
|
+
|
|
64
|
+
// user info
|
|
65
|
+
nickname?: string // 昵称
|
|
66
|
+
jobTitleId?: number
|
|
67
|
+
jobTitle?: JobTitle // 职位
|
|
68
|
+
jobGradeId?: number
|
|
69
|
+
jobGrade?: JobGrade // 职级
|
|
70
|
+
departmentId?: number
|
|
71
|
+
department?: Department // 部门
|
|
72
|
+
supervisorId?: number // 直接上级
|
|
73
|
+
supervisor?: User // 直接上级
|
|
74
|
+
entryDate?: string // 入职时间
|
|
75
|
+
resignDate?: string // 离职时间
|
|
76
|
+
gender?: number // 性别 0:未知 1:男 2:女
|
|
77
|
+
|
|
78
|
+
// login info
|
|
79
|
+
username?: string // 用户名
|
|
80
|
+
email?: string // 邮箱
|
|
81
|
+
telNo?: string // 手机号
|
|
82
|
+
|
|
83
|
+
// 登陆方式
|
|
84
|
+
loginType?: string // 比如2代WMS登录,账户密码登录,手机验证码登录等,由逗号分隔
|
|
85
|
+
|
|
86
|
+
roles?: Role[] // 角色
|
|
87
|
+
menus?: Menu[] // 菜单权限
|
|
88
|
+
|
|
89
|
+
needChangePwd?: boolean // 是否需要修改密码
|
|
90
|
+
|
|
91
|
+
needFillWh?: boolean // 是否需要填写工时
|
|
92
|
+
|
|
93
|
+
isAdmin?: boolean
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
type RowRecord = {
|
|
97
|
+
rowId?: number
|
|
98
|
+
rowVersion?: number
|
|
99
|
+
key?: string
|
|
100
|
+
oldValue?: string
|
|
101
|
+
newValue?: string
|
|
102
|
+
} & BaseModel
|
|
103
|
+
|
|
104
|
+
type UniqueKey = {
|
|
105
|
+
key?: string
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface RangeQuery {
|
|
2
|
+
start?: any;
|
|
3
|
+
end?: any;
|
|
4
|
+
}
|
|
5
|
+
export interface Pagination {
|
|
6
|
+
pageNum: number;
|
|
7
|
+
pageSize: number;
|
|
8
|
+
}
|
|
9
|
+
export interface QueryTemplate<T> {
|
|
10
|
+
pagination?: Pagination;
|
|
11
|
+
selectQuery?: SelectQuery<T>;
|
|
12
|
+
whereQuery?: WhereQuery<T>;
|
|
13
|
+
orderQuery?: OrderQuery<T>;
|
|
14
|
+
skipCount?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type SelectQuery<T> = SelectQueryItem<T>[];
|
|
17
|
+
export interface SelectQueryItem<T> {
|
|
18
|
+
field: keyof T | string;
|
|
19
|
+
distinct: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const noValueOprList: WhereQueryOpr[];
|
|
22
|
+
export type WhereQueryOpr = 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'like' | 'not_like' | 'start_like' | 'end_like' | 'in' | 'not_in' | 'is' | 'is_not' | 'is_null' | 'is_not_null' | 'is_empty' | 'is_not_empty' | 'str_len_eq' | 'str_len_ne' | 'str_len_gt' | 'str_len_gte' | 'str_len_lt' | 'str_len_lte' | 'range_gt_lt' | 'range_gt_lte' | 'range_gte_lt' | 'range_gte_lte' | 'bigint_arr_any' | 'bigint_arr_all' | 'text_arr_str_like' | null;
|
|
23
|
+
export type WhereQuery<T> = {
|
|
24
|
+
items?: WhereQueryItem<T>[];
|
|
25
|
+
groups?: WhereQueryItemGroup<T>[];
|
|
26
|
+
};
|
|
27
|
+
export interface WhereQueryItemGroup<T> {
|
|
28
|
+
andOr?: 'and' | 'or';
|
|
29
|
+
items?: WhereQueryItem<T>[];
|
|
30
|
+
groups?: WhereQueryItemGroup<T>[];
|
|
31
|
+
}
|
|
32
|
+
export interface WhereQueryItem<T> {
|
|
33
|
+
andOr?: 'and' | 'or';
|
|
34
|
+
field: keyof T | string;
|
|
35
|
+
opr: WhereQueryOpr;
|
|
36
|
+
value?: any;
|
|
37
|
+
custom?: boolean;
|
|
38
|
+
extraData?: any;
|
|
39
|
+
}
|
|
40
|
+
export type OrderQueryOpr = 'asc' | 'desc' | 'str_len_asc' | 'str_len_desc' | null;
|
|
41
|
+
export type OrderQuery<T> = OrderQueryItem<T>[];
|
|
42
|
+
export interface OrderQueryItem<T> {
|
|
43
|
+
field: keyof T | string;
|
|
44
|
+
order: OrderQueryOpr;
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const noValueOprList = ["is_null", "is_not_null", "is_empty", "is_not_empty"];
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare enum ShowType {
|
|
2
|
+
Silent = 0,
|
|
3
|
+
SuccessMessage = 1,
|
|
4
|
+
InfoMessage = 2,
|
|
5
|
+
WarnMessage = 3,
|
|
6
|
+
ErrorMessage = 4,
|
|
7
|
+
SuccessNotification = 11,
|
|
8
|
+
InfoNotification = 12,
|
|
9
|
+
WarnNotification = 13,
|
|
10
|
+
ErrorNotification = 14
|
|
11
|
+
}
|
|
12
|
+
export declare enum ErrorCode {
|
|
13
|
+
FIELD_VALIDATION_ERROR_CODE = 2,
|
|
14
|
+
ACCESS_TOKEN_ERROR_CODE = 10,
|
|
15
|
+
REFRESH_TOKEN_ERROR_CODE = 11
|
|
16
|
+
}
|
|
17
|
+
export declare const noErrorMsgCodes: ErrorCode[];
|
|
18
|
+
export type FormErrorField = {
|
|
19
|
+
errorField: string;
|
|
20
|
+
errorFieldWithNamespace: string;
|
|
21
|
+
errorMsg: string;
|
|
22
|
+
};
|
|
23
|
+
/** Custom request success result */
|
|
24
|
+
export interface SuccessResult<T> {
|
|
25
|
+
error: null;
|
|
26
|
+
data: T;
|
|
27
|
+
}
|
|
28
|
+
/** Custom request failed result */
|
|
29
|
+
export interface FailedResult {
|
|
30
|
+
error: Error;
|
|
31
|
+
data: null;
|
|
32
|
+
}
|
|
33
|
+
/** Custom request result */
|
|
34
|
+
export type RequestResult<T> = SuccessResult<T> | FailedResult;
|
|
35
|
+
/** Custom request stats item */
|
|
36
|
+
export interface StatsItem {
|
|
37
|
+
field: string;
|
|
38
|
+
result: any;
|
|
39
|
+
rmk?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Custom paginated result */
|
|
42
|
+
export interface PageResult<T = any> {
|
|
43
|
+
list: T[];
|
|
44
|
+
total: number;
|
|
45
|
+
pageNum: number;
|
|
46
|
+
pageSize: number;
|
|
47
|
+
stats?: StatsItem[][];
|
|
48
|
+
}
|
|
49
|
+
/** Batch operation command */
|
|
50
|
+
export interface BatchOprCommand {
|
|
51
|
+
ids: number[];
|
|
52
|
+
}
|
|
53
|
+
export interface BatchSaveCommand<T> {
|
|
54
|
+
items?: T[];
|
|
55
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export var ShowType = /* @__PURE__ */ ((ShowType2) => {
|
|
2
|
+
ShowType2[ShowType2["Silent"] = 0] = "Silent";
|
|
3
|
+
ShowType2[ShowType2["SuccessMessage"] = 1] = "SuccessMessage";
|
|
4
|
+
ShowType2[ShowType2["InfoMessage"] = 2] = "InfoMessage";
|
|
5
|
+
ShowType2[ShowType2["WarnMessage"] = 3] = "WarnMessage";
|
|
6
|
+
ShowType2[ShowType2["ErrorMessage"] = 4] = "ErrorMessage";
|
|
7
|
+
ShowType2[ShowType2["SuccessNotification"] = 11] = "SuccessNotification";
|
|
8
|
+
ShowType2[ShowType2["InfoNotification"] = 12] = "InfoNotification";
|
|
9
|
+
ShowType2[ShowType2["WarnNotification"] = 13] = "WarnNotification";
|
|
10
|
+
ShowType2[ShowType2["ErrorNotification"] = 14] = "ErrorNotification";
|
|
11
|
+
return ShowType2;
|
|
12
|
+
})(ShowType || {});
|
|
13
|
+
export var ErrorCode = /* @__PURE__ */ ((ErrorCode2) => {
|
|
14
|
+
ErrorCode2[ErrorCode2["FIELD_VALIDATION_ERROR_CODE"] = 2] = "FIELD_VALIDATION_ERROR_CODE";
|
|
15
|
+
ErrorCode2[ErrorCode2["ACCESS_TOKEN_ERROR_CODE"] = 10] = "ACCESS_TOKEN_ERROR_CODE";
|
|
16
|
+
ErrorCode2[ErrorCode2["REFRESH_TOKEN_ERROR_CODE"] = 11] = "REFRESH_TOKEN_ERROR_CODE";
|
|
17
|
+
return ErrorCode2;
|
|
18
|
+
})(ErrorCode || {});
|
|
19
|
+
export const noErrorMsgCodes = [
|
|
20
|
+
10 /* ACCESS_TOKEN_ERROR_CODE */,
|
|
21
|
+
11 /* REFRESH_TOKEN_ERROR_CODE */
|
|
22
|
+
];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum StorageKey {
|
|
2
|
+
APP = "app",
|
|
3
|
+
ACCESS_TOKEN = "ac_t",
|
|
4
|
+
REFRESH_TOKEN = "rf_t",
|
|
5
|
+
LOGIN_TYPE = "login_type",
|
|
6
|
+
FLOW_EDGE_STROKE_WIDTH = "flow_edge_stroke_width",
|
|
7
|
+
FLOW_EDGE_MARKER_START = "flow_edge_marker_start",
|
|
8
|
+
FLOW_EDGE_MARKER_END = "flow_edge_marker_end",
|
|
9
|
+
FLOW_NODE_BORDER_WIDTH = "flow_node_border_width"
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export var StorageKey = /* @__PURE__ */ ((StorageKey2) => {
|
|
2
|
+
StorageKey2["APP"] = "app";
|
|
3
|
+
StorageKey2["ACCESS_TOKEN"] = "ac_t";
|
|
4
|
+
StorageKey2["REFRESH_TOKEN"] = "rf_t";
|
|
5
|
+
StorageKey2["LOGIN_TYPE"] = "login_type";
|
|
6
|
+
StorageKey2["FLOW_EDGE_STROKE_WIDTH"] = "flow_edge_stroke_width";
|
|
7
|
+
StorageKey2["FLOW_EDGE_MARKER_START"] = "flow_edge_marker_start";
|
|
8
|
+
StorageKey2["FLOW_EDGE_MARKER_END"] = "flow_edge_marker_end";
|
|
9
|
+
StorageKey2["FLOW_NODE_BORDER_WIDTH"] = "flow_node_border_width";
|
|
10
|
+
return StorageKey2;
|
|
11
|
+
})(StorageKey || {});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function noDupPrimitiveArray(arr: any[]): any[];
|