@okiss/oms 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/README.md +3 -0
  2. package/dist/index.es.js +6156 -0
  3. package/dist/index.es.js.map +1 -0
  4. package/dist/style.css +1 -0
  5. package/dist/types/auto-imports.d.ts +53 -0
  6. package/dist/types/components.d.ts +50 -0
  7. package/dist/types/src/App.vue.d.ts +125 -0
  8. package/dist/types/src/admin.d.ts +8 -0
  9. package/dist/types/src/components/PageLoad.vue.d.ts +14 -0
  10. package/dist/types/src/components/VIcon.d.ts +13 -0
  11. package/dist/types/src/components/VTree.vue.d.ts +100 -0
  12. package/dist/types/src/components/chart/index.vue.d.ts +17 -0
  13. package/dist/types/src/components/report/NumberPanel.vue.d.ts +9 -0
  14. package/dist/types/src/components/report/option.d.ts +1 -0
  15. package/dist/types/src/components/report/part.vue.d.ts +168 -0
  16. package/dist/types/src/default.d.ts +4 -0
  17. package/dist/types/src/directive/devtool.d.ts +3 -0
  18. package/dist/types/src/directive/index.d.ts +4 -0
  19. package/dist/types/src/directive/outClick.d.ts +3 -0
  20. package/dist/types/src/directive/resize.d.ts +3 -0
  21. package/dist/types/src/directive/rightClick.d.ts +3 -0
  22. package/dist/types/src/index.d.ts +13 -0
  23. package/dist/types/src/init.d.ts +3 -0
  24. package/dist/types/src/mock/apis/index.d.ts +3 -0
  25. package/dist/types/src/mock/apis/user.d.ts +3 -0
  26. package/dist/types/src/mock/data/example.d.ts +897 -0
  27. package/dist/types/src/mock/data/menu.d.ts +104 -0
  28. package/dist/types/src/mock/data/role.d.ts +68 -0
  29. package/dist/types/src/mock/index.d.ts +3 -0
  30. package/dist/types/src/mock/types.d.ts +21 -0
  31. package/dist/types/src/plugins/element-plus.d.ts +6 -0
  32. package/dist/types/src/plugins/eventBus.d.ts +6 -0
  33. package/dist/types/src/router/guard/func.d.ts +3 -0
  34. package/dist/types/src/router/guard/index.d.ts +2 -0
  35. package/dist/types/src/router/guard/nprogress.d.ts +2 -0
  36. package/dist/types/src/router/guard/permission.d.ts +2 -0
  37. package/dist/types/src/router/guard/remote-routes.d.ts +2 -0
  38. package/dist/types/src/router/guard/set-page-title.d.ts +2 -0
  39. package/dist/types/src/router/index.d.ts +2 -0
  40. package/dist/types/src/router/remote.d.ts +3 -0
  41. package/dist/types/src/router/router.d.ts +3 -0
  42. package/dist/types/src/router/vue-router.d.ts +16 -0
  43. package/dist/types/src/scaffold/404.vue.d.ts +4 -0
  44. package/dist/types/src/scaffold/container.vue.d.ts +17 -0
  45. package/dist/types/src/scaffold/dashboard.vue.d.ts +3 -0
  46. package/dist/types/src/scaffold/devtool/formBuilder/index.vue.d.ts +280 -0
  47. package/dist/types/src/scaffold/devtool/tableBuilder/index.vue.d.ts +1115 -0
  48. package/dist/types/src/scaffold/form.vue.d.ts +59 -0
  49. package/dist/types/src/scaffold/index.d.ts +5 -0
  50. package/dist/types/src/scaffold/layout/components/AppMain.vue.d.ts +24 -0
  51. package/dist/types/src/scaffold/layout/components/Breadcrumb/index.vue.d.ts +25 -0
  52. package/dist/types/src/scaffold/layout/components/Hamburger/index.vue.d.ts +16 -0
  53. package/dist/types/src/scaffold/layout/components/Navbar.vue.d.ts +49 -0
  54. package/dist/types/src/scaffold/layout/components/PageEditor.vue.d.ts +23 -0
  55. package/dist/types/src/scaffold/layout/components/Sidebar/FixiOSBug.d.ts +10 -0
  56. package/dist/types/src/scaffold/layout/components/Sidebar/Link.vue.d.ts +21 -0
  57. package/dist/types/src/scaffold/layout/components/Sidebar/Logo.vue.d.ts +16 -0
  58. package/dist/types/src/scaffold/layout/components/Sidebar/MenuContent.vue.d.ts +21 -0
  59. package/dist/types/src/scaffold/layout/components/Sidebar/SidebarItem.vue.d.ts +41 -0
  60. package/dist/types/src/scaffold/layout/components/Sidebar/index.vue.d.ts +3 -0
  61. package/dist/types/src/scaffold/layout/components/index.d.ts +3 -0
  62. package/dist/types/src/scaffold/layout/index.vue.d.ts +1965 -0
  63. package/dist/types/src/scaffold/login.vue.d.ts +17 -0
  64. package/dist/types/src/scaffold/report.vue.d.ts +485 -0
  65. package/dist/types/src/scaffold/table.vue.d.ts +54 -0
  66. package/dist/types/src/scaffold/tree.vue.d.ts +234 -0
  67. package/dist/types/src/shims-vue.d.ts +22 -0
  68. package/dist/types/src/store/index.d.ts +6 -0
  69. package/dist/types/src/store/modules/app.d.ts +5 -0
  70. package/dist/types/src/store/modules/builderSchema.d.ts +9 -0
  71. package/dist/types/src/store/modules/settings.d.ts +5 -0
  72. package/dist/types/src/store/modules/user.d.ts +5 -0
  73. package/dist/types/src/store/types.d.ts +42 -0
  74. package/dist/types/src/types.d.ts +105 -0
  75. package/dist/types/src/utils/container/index.d.ts +3 -0
  76. package/dist/types/src/utils/env.d.ts +3 -0
  77. package/dist/types/src/utils/index.d.ts +1 -0
  78. package/dist/types/src/utils/request/cache.d.ts +5 -0
  79. package/dist/types/src/utils/request/index.d.ts +8 -0
  80. package/dist/types/src/utils/request/interceptors.d.ts +3 -0
  81. package/dist/types/src/utils/request/types.d.ts +14 -0
  82. package/dist/types/src/utils/sso/index.d.ts +35 -0
  83. package/dist/types/src/utils/token.d.ts +3 -0
  84. package/package.json +80 -0
@@ -0,0 +1,104 @@
1
+ declare const _default: {
2
+ form: {
3
+ submitApi: string;
4
+ formItems: ({
5
+ type: string;
6
+ label: string;
7
+ field?: undefined;
8
+ options?: undefined;
9
+ } | {
10
+ type: string;
11
+ label: string;
12
+ field: string;
13
+ options?: undefined;
14
+ } | {
15
+ type: string;
16
+ label: string;
17
+ field: string;
18
+ options: {
19
+ value: number;
20
+ label: string;
21
+ }[];
22
+ })[];
23
+ };
24
+ table: {
25
+ filter: ({
26
+ field: string;
27
+ type: string;
28
+ label: string;
29
+ options?: undefined;
30
+ } | {
31
+ field: string;
32
+ type: string;
33
+ label: string;
34
+ options: {
35
+ value: number;
36
+ label: string;
37
+ }[];
38
+ })[];
39
+ headers: ({
40
+ field: string;
41
+ type: string;
42
+ label: string;
43
+ options?: undefined;
44
+ state?: undefined;
45
+ } | {
46
+ field: string;
47
+ type: string;
48
+ label: string;
49
+ options: {
50
+ value: number;
51
+ label: string;
52
+ }[];
53
+ state: {
54
+ 1: string;
55
+ 0: string;
56
+ };
57
+ })[];
58
+ normalButton: {
59
+ type: string;
60
+ target: string;
61
+ text: string;
62
+ }[];
63
+ rowButton: ({
64
+ type: string;
65
+ target: string;
66
+ props: {
67
+ icon: string;
68
+ type: string;
69
+ };
70
+ api?: undefined;
71
+ } | {
72
+ type: string;
73
+ api: {
74
+ method: string;
75
+ url: string;
76
+ };
77
+ props: {
78
+ icon: string;
79
+ type: string;
80
+ };
81
+ target?: undefined;
82
+ })[];
83
+ };
84
+ listMock: {
85
+ code: number;
86
+ data: {
87
+ 'list|0-20': {
88
+ 'id|0-1000': number;
89
+ 'pid|0-1000': number;
90
+ name: string;
91
+ route_path: string;
92
+ icon: string;
93
+ 'status|0-1': number;
94
+ 'type|0-3': number;
95
+ 'sort|0-99': number;
96
+ }[];
97
+ page: {
98
+ 'count|1-10': number;
99
+ 'page|1-5': number;
100
+ };
101
+ };
102
+ };
103
+ };
104
+ export default _default;
@@ -0,0 +1,68 @@
1
+ declare const _default: {
2
+ form: {
3
+ formItems: ({
4
+ type: string;
5
+ field: string;
6
+ label: string;
7
+ options?: undefined;
8
+ } | {
9
+ type: string;
10
+ label: string;
11
+ field: string;
12
+ options: {
13
+ value: number;
14
+ label: string;
15
+ }[];
16
+ })[];
17
+ };
18
+ table: {
19
+ headers: {
20
+ type: string;
21
+ field: string;
22
+ label: string;
23
+ }[];
24
+ normalButton: {
25
+ type: string;
26
+ target: string;
27
+ text: string;
28
+ }[];
29
+ rowButton: ({
30
+ type: string;
31
+ target: string;
32
+ props: {
33
+ icon: string;
34
+ type: string;
35
+ };
36
+ api?: undefined;
37
+ } | {
38
+ type: string;
39
+ api: {
40
+ method: string;
41
+ url: string;
42
+ };
43
+ props: {
44
+ icon: string;
45
+ type: string;
46
+ };
47
+ target?: undefined;
48
+ })[];
49
+ };
50
+ listMock: {
51
+ code: number;
52
+ data: {
53
+ 'list|0-20': {
54
+ 'id|0-1000': number;
55
+ 'pid|0-1000': number;
56
+ name: string;
57
+ 'status|0-1': number;
58
+ 'type|0-3': number;
59
+ 'sort|0-99': number;
60
+ }[];
61
+ page: {
62
+ 'count|1-10': number;
63
+ 'page|1-5': number;
64
+ };
65
+ };
66
+ };
67
+ };
68
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { MockApi } from './types';
2
+ export declare function regMockApis(apis: MockApi[]): void;
3
+ export declare function startMock(): void;
@@ -0,0 +1,21 @@
1
+ export declare enum MockHttpMethod {
2
+ GET = "get",
3
+ POST = "post",
4
+ DELETE = "delete",
5
+ FETCH = "fetch",
6
+ OPTION = "option",
7
+ PUT = "put"
8
+ }
9
+ export interface MockOption {
10
+ query: Record<string, any>;
11
+ data: Record<string, any>;
12
+ }
13
+ export interface MockApi {
14
+ method: MockHttpMethod;
15
+ url: string | RegExp;
16
+ baseURL?: string;
17
+ response: (options: MockOption) => Record<string, any>;
18
+ }
19
+ export interface MockApiMap {
20
+ [key: string]: MockApi;
21
+ }
@@ -0,0 +1,6 @@
1
+ import type { Message, IElMessageBox } from 'element-plus';
2
+ import type { SFCInstallWithContext, SFCWithInstall } from 'element-plus/es/utils';
3
+ import ElementPlus from 'element-plus';
4
+ export declare const Message: SFCInstallWithContext<Message>;
5
+ export declare const MessageBox: SFCWithInstall<IElMessageBox>;
6
+ export default ElementPlus;
@@ -0,0 +1,6 @@
1
+ import type { Emitter, EventType } from 'mitt';
2
+ import type { App } from 'vue';
3
+ declare const eventBus: Emitter<Record<EventType, unknown>>;
4
+ export default eventBus;
5
+ export declare const bus: Emitter<Record<EventType, unknown>>;
6
+ export declare function install(app: App, options?: {}): Emitter<Record<EventType, unknown>>;
@@ -0,0 +1,3 @@
1
+ export declare function isLodeRemoteRoutes(): boolean;
2
+ export declare function getWhiteRoutes(): Array<string | RegExp>;
3
+ export declare function getToken(): string;
@@ -0,0 +1,2 @@
1
+ import { Router } from 'vue-router';
2
+ export default function (router: Router): void;
@@ -0,0 +1,2 @@
1
+ import { Router } from 'vue-router';
2
+ export default function (router: Router): void;
@@ -0,0 +1,2 @@
1
+ import { Router } from 'vue-router';
2
+ export default function (router: Router): void;
@@ -0,0 +1,2 @@
1
+ import { Router } from 'vue-router';
2
+ export default function (router: Router): void;
@@ -0,0 +1,2 @@
1
+ import { Router } from 'vue-router';
2
+ export default function (router: Router): void;
@@ -0,0 +1,2 @@
1
+ import router from './router';
2
+ export default router;
@@ -0,0 +1,3 @@
1
+ import { OmsModule, RemoteModule } from '../types';
2
+ export declare function regViews(_bu: Record<string, any>): void;
3
+ export declare const transRemoteModules: (data: RemoteModule[]) => OmsModule[];
@@ -0,0 +1,3 @@
1
+ import type { Router } from 'vue-router';
2
+ declare const router: Router;
3
+ export default router;
@@ -0,0 +1,16 @@
1
+
2
+ declare module 'vue-router' {
3
+ interface _RouteRecordBase {
4
+ hidden?: boolean
5
+ }
6
+
7
+ interface RouteMeta {
8
+ pageSchema?: Record<string, any>
9
+ menuType: number,
10
+ id: number
11
+ pageId: number
12
+ title: string
13
+ keepAlive?: boolean
14
+ hidden?: boolean
15
+ }
16
+ }
@@ -0,0 +1,4 @@
1
+ export default _sfc_main;
2
+ declare namespace _sfc_main {
3
+ const name: string;
4
+ }
@@ -0,0 +1,17 @@
1
+ import type { Ref } from 'vue';
2
+ export default _sfc_main;
3
+ declare namespace _sfc_main {
4
+ function setup(__props: any, { expose }: {
5
+ expose: any;
6
+ }): {
7
+ key: Ref<number>;
8
+ onBeforeRouteUpdate: typeof onBeforeRouteUpdate;
9
+ };
10
+ function setup(__props: any, { expose }: {
11
+ expose: any;
12
+ }): {
13
+ key: Ref<number>;
14
+ onBeforeRouteUpdate: typeof onBeforeRouteUpdate;
15
+ };
16
+ }
17
+ import { onBeforeRouteUpdate } from "vue-router";
@@ -0,0 +1,3 @@
1
+ import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
+ export default _sfc_main;
3
+ declare const _sfc_main: DefineComponent<{}, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
@@ -0,0 +1,280 @@
1
+ export namespace ctrlFormDefaultOptions {
2
+ const labelPosition: string;
3
+ const submitButton: boolean;
4
+ const cancelButton: boolean;
5
+ }
6
+ export default _sfc_main;
7
+ declare namespace _sfc_main {
8
+ namespace components {
9
+ export { DevLayout };
10
+ export { VForm };
11
+ export { VButton };
12
+ export { JsonView };
13
+ }
14
+ namespace props {
15
+ namespace schema {
16
+ export const type: ObjectConstructor;
17
+ function _default(_: any): void;
18
+ export { _default as default };
19
+ }
20
+ }
21
+ function data(): {
22
+ sqlOptions: {};
23
+ sqlSchema: {
24
+ options: {
25
+ submitButton: boolean;
26
+ cancelButton: boolean;
27
+ };
28
+ formItems: {
29
+ type: string;
30
+ field: string;
31
+ props: {
32
+ repeat: boolean;
33
+ formItems: ({
34
+ type: string;
35
+ field: string;
36
+ label: string;
37
+ options?: undefined;
38
+ } | {
39
+ type: string;
40
+ field: string;
41
+ label: string;
42
+ options: any[];
43
+ })[];
44
+ };
45
+ }[];
46
+ };
47
+ baseSchema: {
48
+ options: {
49
+ labelPosition: string;
50
+ submitButton: boolean;
51
+ cancelButton: boolean;
52
+ };
53
+ formItems: ({
54
+ type: string;
55
+ field: string;
56
+ label: string;
57
+ options?: undefined;
58
+ value?: undefined;
59
+ props?: undefined;
60
+ } | {
61
+ type: string;
62
+ field: string;
63
+ label: string;
64
+ options: {
65
+ value: string;
66
+ label: string;
67
+ }[];
68
+ value?: undefined;
69
+ props?: undefined;
70
+ } | {
71
+ type: string;
72
+ field: string;
73
+ label: string;
74
+ value: string;
75
+ options?: undefined;
76
+ props?: undefined;
77
+ } | {
78
+ type: string;
79
+ field: string;
80
+ label: string;
81
+ value: boolean;
82
+ options?: undefined;
83
+ props?: undefined;
84
+ } | {
85
+ type: string;
86
+ field: string;
87
+ label: string;
88
+ props: {
89
+ options: {
90
+ labelPosition: string;
91
+ };
92
+ formItems: ({
93
+ type: string;
94
+ field: string;
95
+ label: string;
96
+ value: string;
97
+ options?: undefined;
98
+ } | {
99
+ type: string;
100
+ field: string;
101
+ label: string;
102
+ options: {
103
+ value: string;
104
+ label: string;
105
+ }[];
106
+ value?: undefined;
107
+ })[];
108
+ };
109
+ options?: undefined;
110
+ value?: undefined;
111
+ })[];
112
+ };
113
+ activeTab: string;
114
+ builderSchema: any;
115
+ baseOptions: {};
116
+ key: number;
117
+ ctrlKey: number;
118
+ activeCtrl: undefined;
119
+ ctrlOptions: {};
120
+ ctrlSchema: {};
121
+ ctrlName: string;
122
+ activeIndex: undefined;
123
+ ctrlMap: {};
124
+ activeIndexReg: RegExp;
125
+ tableStruct: string;
126
+ activeName: string;
127
+ currentCtrlType: string;
128
+ types: any[];
129
+ };
130
+ function data(): {
131
+ sqlOptions: {};
132
+ sqlSchema: {
133
+ options: {
134
+ submitButton: boolean;
135
+ cancelButton: boolean;
136
+ };
137
+ formItems: {
138
+ type: string;
139
+ field: string;
140
+ props: {
141
+ repeat: boolean;
142
+ formItems: ({
143
+ type: string;
144
+ field: string;
145
+ label: string;
146
+ options?: undefined;
147
+ } | {
148
+ type: string;
149
+ field: string;
150
+ label: string;
151
+ options: any[];
152
+ })[];
153
+ };
154
+ }[];
155
+ };
156
+ baseSchema: {
157
+ options: {
158
+ labelPosition: string;
159
+ submitButton: boolean;
160
+ cancelButton: boolean;
161
+ };
162
+ formItems: ({
163
+ type: string;
164
+ field: string;
165
+ label: string;
166
+ options?: undefined;
167
+ value?: undefined;
168
+ props?: undefined;
169
+ } | {
170
+ type: string;
171
+ field: string;
172
+ label: string;
173
+ options: {
174
+ value: string;
175
+ label: string;
176
+ }[];
177
+ value?: undefined;
178
+ props?: undefined;
179
+ } | {
180
+ type: string;
181
+ field: string;
182
+ label: string;
183
+ value: string;
184
+ options?: undefined;
185
+ props?: undefined;
186
+ } | {
187
+ type: string;
188
+ field: string;
189
+ label: string;
190
+ value: boolean;
191
+ options?: undefined;
192
+ props?: undefined;
193
+ } | {
194
+ type: string;
195
+ field: string;
196
+ label: string;
197
+ props: {
198
+ options: {
199
+ labelPosition: string;
200
+ };
201
+ formItems: ({
202
+ type: string;
203
+ field: string;
204
+ label: string;
205
+ value: string;
206
+ options?: undefined;
207
+ } | {
208
+ type: string;
209
+ field: string;
210
+ label: string;
211
+ options: {
212
+ value: string;
213
+ label: string;
214
+ }[];
215
+ value?: undefined;
216
+ })[];
217
+ };
218
+ options?: undefined;
219
+ value?: undefined;
220
+ })[];
221
+ };
222
+ activeTab: string;
223
+ builderSchema: any;
224
+ baseOptions: {};
225
+ key: number;
226
+ ctrlKey: number;
227
+ activeCtrl: undefined;
228
+ ctrlOptions: {};
229
+ ctrlSchema: {};
230
+ ctrlName: string;
231
+ activeIndex: undefined;
232
+ ctrlMap: {};
233
+ activeIndexReg: RegExp;
234
+ tableStruct: string;
235
+ activeName: string;
236
+ currentCtrlType: string;
237
+ types: any[];
238
+ };
239
+ namespace computed {
240
+ function getSaveSchema(): any;
241
+ function getSaveSchema(): any;
242
+ }
243
+ namespace watch {
244
+ namespace baseOptions {
245
+ const deep: boolean;
246
+ const immediate: boolean;
247
+ function handler(val: any): void;
248
+ function handler(val: any): void;
249
+ }
250
+ namespace ctrlOptions {
251
+ const deep_1: boolean;
252
+ export { deep_1 as deep };
253
+ export function handler(val: any): void;
254
+ export function handler(val: any): void;
255
+ }
256
+ namespace currentCtrlType {
257
+ function handler(val: any): void;
258
+ function handler(val: any): void;
259
+ }
260
+ }
261
+ function beforeCreate(): void;
262
+ function beforeCreate(): void;
263
+ function unmounted(): void;
264
+ function unmounted(): void;
265
+ namespace methods {
266
+ function onDevAction(btnType: any, path: any): void;
267
+ function onDevAction(btnType: any, path: any): void;
268
+ function push(name: any): void;
269
+ function push(name: any): void;
270
+ function removeOne(): void;
271
+ function removeOne(): void;
272
+ function clicklabel(): void;
273
+ function clicklabel(): void;
274
+ function saveSchema(): void;
275
+ function saveSchema(): void;
276
+ }
277
+ }
278
+ import { VForm } from "@okiss/lib/dist/types/vform";
279
+ import { VButton } from "@okiss/lib/dist/types/vbutton";
280
+ import JsonView from "@okiss/jsonview";