@okiss/oms 0.0.17 → 0.0.18

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 (68) hide show
  1. package/dist/types/App.d.ts +124 -0
  2. package/dist/types/admin.d.ts +12 -0
  3. package/dist/types/components/PageLoad.d.ts +29 -0
  4. package/dist/types/components/RightMenu.d.ts +43 -0
  5. package/dist/types/components/VLoading.d.ts +0 -0
  6. package/dist/types/components/VTree.d.ts +129 -0
  7. package/dist/types/components/report/NumberPanel.d.ts +14 -0
  8. package/dist/types/components/report/option.d.ts +1 -0
  9. package/dist/types/components/report/part.d.ts +66 -0
  10. package/dist/types/default.d.ts +4 -0
  11. package/dist/types/directive/devtool.d.ts +3 -0
  12. package/dist/types/directive/index.d.ts +4 -0
  13. package/dist/types/directive/outClick.d.ts +3 -0
  14. package/dist/types/directive/resize.d.ts +3 -0
  15. package/dist/types/directive/rightClick.d.ts +3 -0
  16. package/dist/types/index.d.ts +11 -0
  17. package/dist/types/init.d.ts +3 -0
  18. package/dist/types/mock/apis/index.d.ts +3 -0
  19. package/dist/types/mock/apis/user.d.ts +3 -0
  20. package/dist/types/mock/data/example.d.ts +897 -0
  21. package/dist/types/mock/data/menu.d.ts +104 -0
  22. package/dist/types/mock/data/role.d.ts +68 -0
  23. package/dist/types/mock/index.d.ts +3 -0
  24. package/dist/types/mock/types.d.ts +21 -0
  25. package/dist/types/plugins/element-plus.d.ts +6 -0
  26. package/dist/types/plugins/eventBus.d.ts +5 -0
  27. package/dist/types/router/guard/func.d.ts +3 -0
  28. package/dist/types/router/guard/index.d.ts +2 -0
  29. package/dist/types/router/guard/nprogress.d.ts +3 -0
  30. package/dist/types/router/guard/permission.d.ts +2 -0
  31. package/dist/types/router/guard/remote-routes.d.ts +2 -0
  32. package/dist/types/router/guard/set-page-title.d.ts +2 -0
  33. package/dist/types/router/index.d.ts +2 -0
  34. package/dist/types/router/remote.d.ts +3 -0
  35. package/dist/types/router/router.d.ts +2 -0
  36. package/dist/types/router/types.d.ts +5 -0
  37. package/dist/types/scaffold/404.d.ts +4 -0
  38. package/dist/types/scaffold/container.d.ts +10 -0
  39. package/dist/types/scaffold/dashboard.d.ts +2 -0
  40. package/dist/types/scaffold/devtool/DevLayout.d.ts +0 -0
  41. package/dist/types/scaffold/devtool/base.d.ts +5 -0
  42. package/dist/types/scaffold/devtool/formBuilder/ctrls/checkbox.d.ts +32 -0
  43. package/dist/types/scaffold/devtool/formBuilder/ctrls/code.d.ts +17 -0
  44. package/dist/types/scaffold/devtool/formBuilder/ctrls/icon-select.d.ts +17 -0
  45. package/dist/types/scaffold/devtool/formBuilder/ctrls/input.d.ts +38 -0
  46. package/dist/types/scaffold/devtool/formBuilder/ctrls/json.d.ts +17 -0
  47. package/dist/types/scaffold/devtool/formBuilder/ctrls/number-range.d.ts +32 -0
  48. package/dist/types/scaffold/devtool/formBuilder/ctrls/number.d.ts +32 -0
  49. package/dist/types/scaffold/devtool/formBuilder/ctrls/radio.d.ts +31 -0
  50. package/dist/types/scaffold/devtool/formBuilder/ctrls/select.d.ts +90 -0
  51. package/dist/types/scaffold/devtool/formBuilder/ctrls/sub-form.d.ts +57 -0
  52. package/dist/types/scaffold/devtool/formBuilder/ctrls/switch.d.ts +32 -0
  53. package/dist/types/scaffold/devtool/formBuilder/ctrls/template.d.ts +17 -0
  54. package/dist/types/scaffold/devtool/formBuilder/ctrls/upload.d.ts +17 -0
  55. package/dist/types/scaffold/devtool/formBuilder/form.d.ts +76 -0
  56. package/dist/types/scaffold/devtool/formBuilder/index.d.ts +47 -0
  57. package/dist/types/scaffold/devtool/tableBuilder/btn/api.d.ts +57 -0
  58. package/dist/types/scaffold/devtool/tableBuilder/btn/form.d.ts +50 -0
  59. package/dist/types/scaffold/devtool/tableBuilder/index.d.ts +51 -0
  60. package/dist/types/scaffold/devtool/tableBuilder/table.d.ts +18 -0
  61. package/dist/types/scaffold/form.d.ts +22 -0
  62. package/dist/types/scaffold/index.d.ts +5 -0
  63. package/dist/types/scaffold/login.d.ts +14 -0
  64. package/dist/types/scaffold/report.d.ts +11 -0
  65. package/dist/types/scaffold/table.d.ts +17 -0
  66. package/dist/types/scaffold/tree.d.ts +10 -0
  67. package/dist/types/types.d.ts +109 -0
  68. package/package.json +2 -17
@@ -0,0 +1,124 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ locale: {
3
+ name: string;
4
+ el: {
5
+ colorpicker: {
6
+ confirm: string;
7
+ clear: string;
8
+ };
9
+ datepicker: {
10
+ now: string;
11
+ today: string;
12
+ cancel: string;
13
+ clear: string;
14
+ confirm: string;
15
+ selectDate: string;
16
+ selectTime: string;
17
+ startDate: string;
18
+ startTime: string;
19
+ endDate: string;
20
+ endTime: string;
21
+ prevYear: string;
22
+ nextYear: string;
23
+ prevMonth: string;
24
+ nextMonth: string;
25
+ year: string;
26
+ month1: string;
27
+ month2: string;
28
+ month3: string;
29
+ month4: string;
30
+ month5: string;
31
+ month6: string;
32
+ month7: string;
33
+ month8: string;
34
+ month9: string;
35
+ month10: string;
36
+ month11: string;
37
+ month12: string;
38
+ weeks: {
39
+ sun: string;
40
+ mon: string;
41
+ tue: string;
42
+ wed: string;
43
+ thu: string;
44
+ fri: string;
45
+ sat: string;
46
+ };
47
+ months: {
48
+ jan: string;
49
+ feb: string;
50
+ mar: string;
51
+ apr: string;
52
+ may: string;
53
+ jun: string;
54
+ jul: string;
55
+ aug: string;
56
+ sep: string;
57
+ oct: string;
58
+ nov: string;
59
+ dec: string;
60
+ };
61
+ };
62
+ select: {
63
+ loading: string;
64
+ noMatch: string;
65
+ noData: string;
66
+ placeholder: string;
67
+ };
68
+ cascader: {
69
+ noMatch: string;
70
+ loading: string;
71
+ placeholder: string;
72
+ noData: string;
73
+ };
74
+ pagination: {
75
+ goto: string;
76
+ pagesize: string;
77
+ total: string;
78
+ pageClassifier: string;
79
+ deprecationWarning: string;
80
+ };
81
+ messagebox: {
82
+ title: string;
83
+ confirm: string;
84
+ cancel: string;
85
+ error: string;
86
+ };
87
+ upload: {
88
+ deleteTip: string;
89
+ delete: string;
90
+ preview: string;
91
+ continue: string;
92
+ };
93
+ table: {
94
+ emptyText: string;
95
+ confirmFilter: string;
96
+ resetFilter: string;
97
+ clearFilter: string;
98
+ sumText: string;
99
+ };
100
+ tree: {
101
+ emptyText: string;
102
+ };
103
+ transfer: {
104
+ noMatch: string;
105
+ noData: string;
106
+ titles: string[];
107
+ filterPlaceholder: string;
108
+ noCheckedFormat: string;
109
+ hasCheckedFormat: string;
110
+ };
111
+ image: {
112
+ error: string;
113
+ };
114
+ pageHeader: {
115
+ title: string;
116
+ };
117
+ popconfirm: {
118
+ confirmButtonText: string;
119
+ cancelButtonText: string;
120
+ };
121
+ };
122
+ };
123
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
124
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import type { App } from "vue'";
2
+ import type { OmsOptions, OmsPlugin } from "./types'";
3
+ import type { AxiosInstance } from "axios'";
4
+ import { AxiosRequestConfig } from "./utils/request'";
5
+ import "normalize.css/normalize.css'";
6
+ import "./styles/index.scss'";
7
+ import "@okiss/vbtf/style.css'";
8
+ export declare let http: AxiosInstance;
9
+ export declare function useHttp(options?: AxiosRequestConfig): AxiosInstance;
10
+ export declare function createAdmin(omsOptions?: OmsOptions): void;
11
+ export declare function regPlugin(app: App, plugin: OmsPlugin): void;
12
+ export declare function createOmsPlugin(options: OmsOptions): OmsPlugin;
@@ -0,0 +1,29 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ schemaHandler: {
3
+ type: FunctionConstructor;
4
+ default: (val: any, project: string) => any;
5
+ };
6
+ schemaApi: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }, unknown, {
11
+ loading: boolean;
12
+ haveNotice: boolean;
13
+ notice: {};
14
+ schema: {};
15
+ owners: never[];
16
+ }, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ schemaHandler: {
18
+ type: FunctionConstructor;
19
+ default: (val: any, project: string) => any;
20
+ };
21
+ schemaApi: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ }>>, {
26
+ schemaHandler: Function;
27
+ schemaApi: string;
28
+ }>;
29
+ export default _default;
@@ -0,0 +1,43 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ status: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ top: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ left: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ menus: {
15
+ type: ArrayConstructor;
16
+ default: () => never[];
17
+ };
18
+ }, unknown, unknown, {}, {
19
+ onclick(callback: any): void;
20
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
+ status: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ top: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ left: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ menus: {
34
+ type: ArrayConstructor;
35
+ default: () => never[];
36
+ };
37
+ }>>, {
38
+ status: boolean;
39
+ top: string;
40
+ left: string;
41
+ menus: unknown[];
42
+ }>;
43
+ export default _default;
File without changes
@@ -0,0 +1,129 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ treeApi: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ require: boolean;
6
+ };
7
+ getApi: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ require: boolean;
11
+ };
12
+ saveApi: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ require: boolean;
16
+ };
17
+ createApi: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ require: boolean;
21
+ };
22
+ deleteApi: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ require: boolean;
26
+ };
27
+ formItems: {
28
+ type: ArrayConstructor;
29
+ default: () => never[];
30
+ };
31
+ treeProps: {
32
+ type: ObjectConstructor;
33
+ default: () => void;
34
+ };
35
+ maxDepth: {
36
+ type: NumberConstructor;
37
+ default: number;
38
+ };
39
+ props: {
40
+ type: ObjectConstructor;
41
+ default: () => void;
42
+ };
43
+ }, unknown, {
44
+ type: number;
45
+ treeData: never[];
46
+ formData: {};
47
+ localTreeProps: {
48
+ 'default-expand-all': boolean;
49
+ 'expand-on-click-node': boolean;
50
+ props: {
51
+ children: string;
52
+ label: string;
53
+ };
54
+ } & Record<string, any>;
55
+ formkey: number;
56
+ tablekey: number;
57
+ menuOptions: {};
58
+ }, {
59
+ formType(): string;
60
+ formProps(): {
61
+ saveApi: string;
62
+ getApi: string;
63
+ formItems: unknown[];
64
+ };
65
+ }, {
66
+ loadTree(): void;
67
+ onclick(data: any): void;
68
+ append(data: any, node: any): void;
69
+ canAppend(data: any, node: any): boolean;
70
+ appendNew(): void;
71
+ remove(data: any): void;
72
+ submit(): void;
73
+ allowDrap(draggingNode: any): true;
74
+ allowDrop(draggingNode: any, dropNode: any, type: any): boolean;
75
+ handleDragEnd(draggingNode: any, dropNode: any, dropType: any, ev: any): void;
76
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
77
+ treeApi: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ require: boolean;
81
+ };
82
+ getApi: {
83
+ type: StringConstructor;
84
+ default: string;
85
+ require: boolean;
86
+ };
87
+ saveApi: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ require: boolean;
91
+ };
92
+ createApi: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ require: boolean;
96
+ };
97
+ deleteApi: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ require: boolean;
101
+ };
102
+ formItems: {
103
+ type: ArrayConstructor;
104
+ default: () => never[];
105
+ };
106
+ treeProps: {
107
+ type: ObjectConstructor;
108
+ default: () => void;
109
+ };
110
+ maxDepth: {
111
+ type: NumberConstructor;
112
+ default: number;
113
+ };
114
+ props: {
115
+ type: ObjectConstructor;
116
+ default: () => void;
117
+ };
118
+ }>>, {
119
+ props: Record<string, any>;
120
+ treeApi: string;
121
+ getApi: string;
122
+ saveApi: string;
123
+ createApi: string;
124
+ deleteApi: string;
125
+ formItems: unknown[];
126
+ treeProps: Record<string, any>;
127
+ maxDepth: number;
128
+ }>;
129
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ dataList: {
3
+ type: ArrayConstructor;
4
+ default: (_: any) => never[];
5
+ };
6
+ }, unknown, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ dataList: {
8
+ type: ArrayConstructor;
9
+ default: (_: any) => never[];
10
+ };
11
+ }>>, {
12
+ dataList: unknown[];
13
+ }>;
14
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare function makeOption(id: string, config: Object | string, data: Array<Record<string, any>>): {};
@@ -0,0 +1,66 @@
1
+ declare const _default: {
2
+ components: {
3
+ Chart: any;
4
+ Md: any;
5
+ Json: any;
6
+ Table: any;
7
+ Number: any;
8
+ Html: string;
9
+ };
10
+ props: {
11
+ option: {
12
+ type: ObjectConstructor;
13
+ default: () => void;
14
+ };
15
+ };
16
+ setup(props: Record<string, any>): {
17
+ compprops: (item: Record<string, any>) => {
18
+ dataList: any;
19
+ options?: undefined;
20
+ source?: undefined;
21
+ showPagination?: undefined;
22
+ headers?: undefined;
23
+ list?: undefined;
24
+ } | {
25
+ options: {};
26
+ dataList?: undefined;
27
+ source?: undefined;
28
+ showPagination?: undefined;
29
+ headers?: undefined;
30
+ list?: undefined;
31
+ } | {
32
+ source: any;
33
+ dataList?: undefined;
34
+ options?: undefined;
35
+ showPagination?: undefined;
36
+ headers?: undefined;
37
+ list?: undefined;
38
+ } | {
39
+ showPagination: boolean;
40
+ dataList?: undefined;
41
+ options?: undefined;
42
+ source?: undefined;
43
+ headers?: undefined;
44
+ list?: undefined;
45
+ } | {
46
+ headers: {
47
+ field: string;
48
+ label: string;
49
+ }[];
50
+ list: any;
51
+ showPagination: boolean;
52
+ dataList?: undefined;
53
+ options?: undefined;
54
+ source?: undefined;
55
+ } | {
56
+ dataList?: undefined;
57
+ options?: undefined;
58
+ source?: undefined;
59
+ showPagination?: undefined;
60
+ headers?: undefined;
61
+ list?: undefined;
62
+ };
63
+ comptype: () => any;
64
+ };
65
+ };
66
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { OmsOptions } from "./types'";
2
+ import { Settings } from "./types'";
3
+ export declare const defaultSettings: Settings;
4
+ export declare const defaultOptions: OmsOptions;
@@ -0,0 +1,3 @@
1
+ import type { ObjectDirective } from "vue'";
2
+ declare const devtool: ObjectDirective;
3
+ export default devtool;
@@ -0,0 +1,4 @@
1
+ export { default as outClick } from './outClick';
2
+ export { default as rightClick } from './rightClick';
3
+ export { default as resize } from './resize';
4
+ export { default as devtool } from './devtool';
@@ -0,0 +1,3 @@
1
+ import type { ObjectDirective } from "vue'";
2
+ declare const outClick: ObjectDirective;
3
+ export default outClick;
@@ -0,0 +1,3 @@
1
+ import type { ObjectDirective } from "vue'";
2
+ declare const resize: ObjectDirective;
3
+ export default resize;
@@ -0,0 +1,3 @@
1
+ import type { ObjectDirective } from "vue'";
2
+ declare const rightClient: ObjectDirective;
3
+ export default rightClient;
@@ -0,0 +1,11 @@
1
+ import "./init'";
2
+ export { createAdmin, useHttp, http } from './admin';
3
+ export { default as Layout } from './scaffold/layout/index.vue';
4
+ export { default as Container } from './scaffold/container.vue';
5
+ export { default as eventBus } from './plugins/eventBus';
6
+ export * from './types';
7
+ export { Message, MessageBox } from './plugins/element-plus';
8
+ export * from './utils/request';
9
+ export * from './utils/container';
10
+ export * from './utils/sso';
11
+ export * from './router/remote';
@@ -0,0 +1,3 @@
1
+ interface String {
2
+ format(...replacements: string[]): string;
3
+ }
@@ -0,0 +1,3 @@
1
+ import { MockApi } from "../types'";
2
+ declare const apis: MockApi[];
3
+ export default apis;
@@ -0,0 +1,3 @@
1
+ import { MockApi } from "../types'";
2
+ declare const userApis: MockApi[];
3
+ export default userApis;