@kengic/vue 0.1.1-beta.2 → 0.1.1-beta.5

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 (35) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +1289 -1128
  3. package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/Add.d.ts +1 -1
  4. package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/Edit.d.ts +1 -1
  5. package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/ExportXls.d.ts +7 -7
  6. package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/List.d.ts +8 -8
  7. package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/QueryById.d.ts +1 -1
  8. package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +4 -4
  9. package/dist/src/apis/WMS/Controllers/VarContextController/List.d.ts +4 -4
  10. package/dist/src/apis/WMS/Controllers/index.d.ts +1 -1
  11. package/dist/src/apis/WMS/models.d.ts +47 -17
  12. package/dist/src/components/KgControl/KgControl.Date.d.ts +105 -0
  13. package/dist/src/components/KgControl/KgControl.Input.d.ts +49 -14
  14. package/dist/src/components/KgControl/KgControl.Select.d.ts +53 -15
  15. package/dist/src/components/KgControl/KgControl.Switch.d.ts +104 -0
  16. package/dist/src/components/KgControl/KgControl.d.ts +50 -14
  17. package/dist/src/components/KgControl/addon/KgControl.Addon.Lookup.d.ts +3 -0
  18. package/dist/src/components/KgControl/index.d.ts +3 -189
  19. package/dist/src/components/KgControl/index.vm.d.ts +42 -11
  20. package/dist/src/components/KgVar/hooks/index.d.ts +6 -2
  21. package/dist/src/components/KgVar/store/index.d.ts +4 -2
  22. package/dist/src/components/KgVar/store/index.data.d.ts +4 -2
  23. package/dist/src/components/index.d.ts +1 -1
  24. package/dist/src/config/index.d.ts +1 -0
  25. package/dist/src/config/setup.d.ts +43 -0
  26. package/dist/src/consts/i18n/index.d.ts +0 -1
  27. package/dist/src/consts/index.d.ts +14 -7
  28. package/dist/src/consts/injection-keys.const.d.ts +1 -6
  29. package/dist/src/index.d.ts +1 -0
  30. package/package.json +2 -1
  31. package/dist/src/consts/i18n/t.d.ts +0 -20
  32. /package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/Delete.d.ts +0 -0
  33. /package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/DeleteBatch.d.ts +0 -0
  34. /package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/ImportExcel.d.ts +0 -0
  35. /package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/index.d.ts +0 -0
@@ -0,0 +1,104 @@
1
+ import './KgControl.less';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ kgVarName: {
4
+ type: import("vue").PropType<string>;
5
+ required: boolean;
6
+ };
7
+ kgGutter: {
8
+ type: import("vue").PropType<number>;
9
+ default: number;
10
+ };
11
+ kgSpan: {
12
+ type: import("vue").PropType<number>;
13
+ default: number;
14
+ };
15
+ kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
16
+ kgPlaceholder: {
17
+ type: import("vue").PropType<string>;
18
+ default: string;
19
+ };
20
+ kgCodeColumn: {
21
+ type: import("vue").PropType<string>;
22
+ default: string;
23
+ };
24
+ kgDescriptionColumn: {
25
+ type: import("vue").PropType<string>;
26
+ default: string;
27
+ };
28
+ kgAction: import("vue").PropType<string>;
29
+ kgActionParameter: import("vue").PropType<string>;
30
+ kgValidateInfo: {
31
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
32
+ default: () => {};
33
+ };
34
+ kgActionType: {
35
+ type: import("vue").PropType<import("axios").Method>;
36
+ default: string;
37
+ };
38
+ kgShowTime: {
39
+ type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
40
+ default: undefined;
41
+ };
42
+ value: import("vue").PropType<import("./index.vm").KgControlValue>;
43
+ 'onUpdate:value': import("vue").PropType<(value: import("./index.vm").KgControlValue | null) => void>;
44
+ onKgSubmit: import("vue").PropType<() => void>;
45
+ onKgChange: import("vue").PropType<(value: any) => void>;
46
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
47
+ kgVarName: {
48
+ type: import("vue").PropType<string>;
49
+ required: boolean;
50
+ };
51
+ kgGutter: {
52
+ type: import("vue").PropType<number>;
53
+ default: number;
54
+ };
55
+ kgSpan: {
56
+ type: import("vue").PropType<number>;
57
+ default: number;
58
+ };
59
+ kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
60
+ kgPlaceholder: {
61
+ type: import("vue").PropType<string>;
62
+ default: string;
63
+ };
64
+ kgCodeColumn: {
65
+ type: import("vue").PropType<string>;
66
+ default: string;
67
+ };
68
+ kgDescriptionColumn: {
69
+ type: import("vue").PropType<string>;
70
+ default: string;
71
+ };
72
+ kgAction: import("vue").PropType<string>;
73
+ kgActionParameter: import("vue").PropType<string>;
74
+ kgValidateInfo: {
75
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
76
+ default: () => {};
77
+ };
78
+ kgActionType: {
79
+ type: import("vue").PropType<import("axios").Method>;
80
+ default: string;
81
+ };
82
+ kgShowTime: {
83
+ type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
84
+ default: undefined;
85
+ };
86
+ value: import("vue").PropType<import("./index.vm").KgControlValue>;
87
+ 'onUpdate:value': import("vue").PropType<(value: import("./index.vm").KgControlValue | null) => void>;
88
+ onKgSubmit: import("vue").PropType<() => void>;
89
+ onKgChange: import("vue").PropType<(value: any) => void>;
90
+ }>> & {
91
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
92
+ onKgSubmit?: ((...args: any[]) => any) | undefined;
93
+ onKgChange?: ((...args: any[]) => any) | undefined;
94
+ }, {
95
+ kgGutter: number;
96
+ kgSpan: number;
97
+ kgPlaceholder: string;
98
+ kgCodeColumn: string;
99
+ kgDescriptionColumn: string;
100
+ kgValidateInfo: import("ant-design-vue/lib/form/useForm").ValidateInfo;
101
+ kgActionType: import("axios").Method;
102
+ kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
103
+ }>;
104
+ export default _default;
@@ -10,13 +10,22 @@ declare const _default: import("vue").DefineComponent<{
10
10
  default: number;
11
11
  };
12
12
  kgSpan: {
13
- type: import("vue").PropType<1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
13
+ type: import("vue").PropType<number>;
14
14
  default: number;
15
15
  };
16
16
  kgType: import("vue").PropType<KG_CONTROL_TYPES_ENUM>;
17
- kgPlaceholder: import("vue").PropType<string>;
18
- kgCodeColumn: import("vue").PropType<string>;
19
- kgDescriptionColumn: import("vue").PropType<string>;
17
+ kgPlaceholder: {
18
+ type: import("vue").PropType<string>; /** 样式. */
19
+ default: string;
20
+ };
21
+ kgCodeColumn: {
22
+ type: import("vue").PropType<string>;
23
+ default: string;
24
+ };
25
+ kgDescriptionColumn: {
26
+ type: import("vue").PropType<string>;
27
+ default: string;
28
+ };
20
29
  kgAction: import("vue").PropType<string>;
21
30
  kgActionParameter: import("vue").PropType<string>;
22
31
  kgValidateInfo: {
@@ -27,9 +36,15 @@ declare const _default: import("vue").DefineComponent<{
27
36
  type: import("vue").PropType<import("axios").Method>;
28
37
  default: string;
29
38
  };
30
- value: import("vue").PropType<string | number | (string | number)[]>;
31
- 'onUpdate:value': import("vue").PropType<(value: any) => void>;
32
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgSubmit"[], "kgSubmit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
39
+ kgShowTime: {
40
+ type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
41
+ default: undefined;
42
+ };
43
+ value: import("vue").PropType<import("./index.vm").KgControlValue>;
44
+ 'onUpdate:value': import("vue").PropType<(value: import("./index.vm").KgControlValue | null) => void>;
45
+ onKgSubmit: import("vue").PropType<() => void>;
46
+ onKgChange: import("vue").PropType<(value: any) => void>;
47
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
48
  kgVarName: {
34
49
  type: import("vue").PropType<string>;
35
50
  required: boolean;
@@ -39,13 +54,22 @@ declare const _default: import("vue").DefineComponent<{
39
54
  default: number;
40
55
  };
41
56
  kgSpan: {
42
- type: import("vue").PropType<1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
57
+ type: import("vue").PropType<number>;
43
58
  default: number;
44
59
  };
45
60
  kgType: import("vue").PropType<KG_CONTROL_TYPES_ENUM>;
46
- kgPlaceholder: import("vue").PropType<string>;
47
- kgCodeColumn: import("vue").PropType<string>;
48
- kgDescriptionColumn: import("vue").PropType<string>;
61
+ kgPlaceholder: {
62
+ type: import("vue").PropType<string>; /** 样式. */
63
+ default: string;
64
+ };
65
+ kgCodeColumn: {
66
+ type: import("vue").PropType<string>;
67
+ default: string;
68
+ };
69
+ kgDescriptionColumn: {
70
+ type: import("vue").PropType<string>;
71
+ default: string;
72
+ };
49
73
  kgAction: import("vue").PropType<string>;
50
74
  kgActionParameter: import("vue").PropType<string>;
51
75
  kgValidateInfo: {
@@ -56,14 +80,26 @@ declare const _default: import("vue").DefineComponent<{
56
80
  type: import("vue").PropType<import("axios").Method>;
57
81
  default: string;
58
82
  };
59
- value: import("vue").PropType<string | number | (string | number)[]>;
60
- 'onUpdate:value': import("vue").PropType<(value: any) => void>;
83
+ kgShowTime: {
84
+ type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
85
+ default: undefined;
86
+ };
87
+ value: import("vue").PropType<import("./index.vm").KgControlValue>;
88
+ 'onUpdate:value': import("vue").PropType<(value: import("./index.vm").KgControlValue | null) => void>;
89
+ onKgSubmit: import("vue").PropType<() => void>;
90
+ onKgChange: import("vue").PropType<(value: any) => void>;
61
91
  }>> & {
92
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
62
93
  onKgSubmit?: ((...args: any[]) => any) | undefined;
94
+ onKgChange?: ((...args: any[]) => any) | undefined;
63
95
  }, {
64
96
  kgGutter: number;
65
- kgSpan: 1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
97
+ kgSpan: number;
98
+ kgPlaceholder: string;
99
+ kgCodeColumn: string;
100
+ kgDescriptionColumn: string;
66
101
  kgValidateInfo: import("ant-design-vue/lib/form/useForm").ValidateInfo;
67
102
  kgActionType: import("axios").Method;
103
+ kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
68
104
  }>;
69
105
  export default _default;
@@ -0,0 +1,3 @@
1
+ import './KgControl.Addon.Lookup.less';
2
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
+ export default _default;
@@ -1,190 +1,4 @@
1
- import KgControlSelect from './KgControl.Select';
2
- import KgControlInput from './KgControl.Input';
1
+ import KgControl from './KgControl';
3
2
  import { type KgControlProps } from './index.vm';
4
- export { KgControlSelect, KgControlInput, type KgControlProps };
5
- declare const _default: {
6
- new (...args: any[]): {
7
- $: import("vue").ComponentInternalInstance;
8
- $data: {};
9
- $props: Partial<{
10
- kgGutter: number;
11
- kgSpan: 1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
12
- kgValidateInfo: import("ant-design-vue/lib/form/useForm").ValidateInfo;
13
- kgActionType: import("axios").Method;
14
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
15
- kgVarName: {
16
- type: import("vue").PropType<string>;
17
- required: boolean;
18
- };
19
- kgGutter: {
20
- type: import("vue").PropType<number>;
21
- default: number;
22
- };
23
- kgSpan: {
24
- type: import("vue").PropType<1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
25
- default: number;
26
- };
27
- kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
28
- kgPlaceholder: import("vue").PropType<string>;
29
- kgCodeColumn: import("vue").PropType<string>;
30
- kgDescriptionColumn: import("vue").PropType<string>;
31
- kgAction: import("vue").PropType<string>;
32
- kgActionParameter: import("vue").PropType<string>;
33
- kgValidateInfo: {
34
- type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
35
- default: () => {};
36
- };
37
- kgActionType: {
38
- type: import("vue").PropType<import("axios").Method>;
39
- default: string;
40
- };
41
- value: import("vue").PropType<string | number | (string | number)[]>;
42
- 'onUpdate:value': import("vue").PropType<(value: any) => void>;
43
- }>> & {
44
- onKgSubmit?: ((...args: any[]) => any) | undefined;
45
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "kgGutter" | "kgSpan" | "kgValidateInfo" | "kgActionType">;
46
- $attrs: {
47
- [x: string]: unknown;
48
- };
49
- $refs: {
50
- [x: string]: unknown;
51
- };
52
- $slots: Readonly<{
53
- [name: string]: import("vue").Slot | undefined;
54
- }>;
55
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
56
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
57
- $emit: (event: "kgSubmit", ...args: any[]) => void;
58
- $el: any;
59
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
60
- kgVarName: {
61
- type: import("vue").PropType<string>;
62
- required: boolean;
63
- };
64
- kgGutter: {
65
- type: import("vue").PropType<number>;
66
- default: number;
67
- };
68
- kgSpan: {
69
- type: import("vue").PropType<1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
70
- default: number;
71
- };
72
- kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
73
- kgPlaceholder: import("vue").PropType<string>;
74
- kgCodeColumn: import("vue").PropType<string>;
75
- kgDescriptionColumn: import("vue").PropType<string>;
76
- kgAction: import("vue").PropType<string>;
77
- kgActionParameter: import("vue").PropType<string>;
78
- kgValidateInfo: {
79
- type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
80
- default: () => {};
81
- };
82
- kgActionType: {
83
- type: import("vue").PropType<import("axios").Method>;
84
- default: string;
85
- };
86
- value: import("vue").PropType<string | number | (string | number)[]>;
87
- 'onUpdate:value': import("vue").PropType<(value: any) => void>;
88
- }>> & {
89
- onKgSubmit?: ((...args: any[]) => any) | undefined;
90
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgSubmit"[], string, {
91
- kgGutter: number;
92
- kgSpan: 1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
93
- kgValidateInfo: import("ant-design-vue/lib/form/useForm").ValidateInfo;
94
- kgActionType: import("axios").Method;
95
- }, {}, string> & {
96
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
97
- created?: ((() => void) | (() => void)[]) | undefined;
98
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
99
- mounted?: ((() => void) | (() => void)[]) | undefined;
100
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
101
- updated?: ((() => void) | (() => void)[]) | undefined;
102
- activated?: ((() => void) | (() => void)[]) | undefined;
103
- deactivated?: ((() => void) | (() => void)[]) | undefined;
104
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
105
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
106
- destroyed?: ((() => void) | (() => void)[]) | undefined;
107
- unmounted?: ((() => void) | (() => void)[]) | undefined;
108
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
109
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
110
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
111
- };
112
- $forceUpdate: () => void;
113
- $nextTick: typeof import("vue").nextTick;
114
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
115
- } & Readonly<import("vue").ExtractPropTypes<{
116
- kgVarName: {
117
- type: import("vue").PropType<string>;
118
- required: boolean;
119
- };
120
- kgGutter: {
121
- type: import("vue").PropType<number>;
122
- default: number;
123
- };
124
- kgSpan: {
125
- type: import("vue").PropType<1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
126
- default: number;
127
- };
128
- kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
129
- kgPlaceholder: import("vue").PropType<string>;
130
- kgCodeColumn: import("vue").PropType<string>;
131
- kgDescriptionColumn: import("vue").PropType<string>;
132
- kgAction: import("vue").PropType<string>;
133
- kgActionParameter: import("vue").PropType<string>;
134
- kgValidateInfo: {
135
- type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
136
- default: () => {};
137
- };
138
- kgActionType: {
139
- type: import("vue").PropType<import("axios").Method>;
140
- default: string;
141
- };
142
- value: import("vue").PropType<string | number | (string | number)[]>;
143
- 'onUpdate:value': import("vue").PropType<(value: any) => void>;
144
- }>> & {
145
- onKgSubmit?: ((...args: any[]) => any) | undefined;
146
- } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
147
- __isFragment?: undefined;
148
- __isTeleport?: undefined;
149
- __isSuspense?: undefined;
150
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
151
- kgVarName: {
152
- type: import("vue").PropType<string>;
153
- required: boolean;
154
- };
155
- kgGutter: {
156
- type: import("vue").PropType<number>;
157
- default: number;
158
- };
159
- kgSpan: {
160
- type: import("vue").PropType<1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
161
- default: number;
162
- };
163
- kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
164
- kgPlaceholder: import("vue").PropType<string>;
165
- kgCodeColumn: import("vue").PropType<string>;
166
- kgDescriptionColumn: import("vue").PropType<string>;
167
- kgAction: import("vue").PropType<string>;
168
- kgActionParameter: import("vue").PropType<string>;
169
- kgValidateInfo: {
170
- type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
171
- default: () => {};
172
- };
173
- kgActionType: {
174
- type: import("vue").PropType<import("axios").Method>;
175
- default: string;
176
- };
177
- value: import("vue").PropType<string | number | (string | number)[]>;
178
- 'onUpdate:value': import("vue").PropType<(value: any) => void>;
179
- }>> & {
180
- onKgSubmit?: ((...args: any[]) => any) | undefined;
181
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgSubmit"[], "kgSubmit", {
182
- kgGutter: number;
183
- kgSpan: 1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
184
- kgValidateInfo: import("ant-design-vue/lib/form/useForm").ValidateInfo;
185
- kgActionType: import("axios").Method;
186
- }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
187
- readonly Input: typeof KgControlInput;
188
- readonly Select: typeof KgControlSelect;
189
- };
190
- export default _default;
3
+ export { type KgControlProps };
4
+ export default KgControl;
@@ -2,6 +2,9 @@ import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { KG_CONTROL_TYPES_ENUM } from '../../consts';
3
3
  import { Method } from 'axios';
4
4
  import { ValidateInfo } from 'ant-design-vue/lib/form/useForm';
5
+ import { Dayjs } from 'dayjs';
6
+ import { SharedTimeProps } from 'ant-design-vue/es/vc-picker/panels/TimePanel';
7
+ export declare type KgControlValue = string | number | Array<string | number> | Dayjs;
5
8
  export declare const getProps: () => {
6
9
  /** 变量名称. */
7
10
  kgVarName: {
@@ -21,43 +24,71 @@ export declare const getProps: () => {
21
24
  * @default 6
22
25
  */
23
26
  kgSpan: {
24
- type: PropType<1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
27
+ type: PropType<number>;
25
28
  default: number;
26
29
  };
27
30
  /**
28
31
  * 控件类型.
29
- * @default {@link KG_CONTROL_TYPES_ENUM.INPUT_BASIC}
32
+ * @default {@link KG_CONTROL_TYPES_ENUM.INPUT}
30
33
  */
31
34
  kgType: PropType<KG_CONTROL_TYPES_ENUM>;
32
- kgPlaceholder: PropType<string>;
35
+ /**
36
+ * @default ' '
37
+ */
38
+ kgPlaceholder: {
39
+ type: PropType<string>;
40
+ default: string;
41
+ };
33
42
  /**
34
43
  * 数据列.
35
- * {@link KG_CONTROL_TYPES_ENUM.SELECT_BASIC} 和 {@link KG_CONTROL_TYPES_ENUM.SELECT_MULTIPLE} 适用.
44
+ * {@link KG_CONTROL_TYPES_ENUM.SELECT} 和 {@link KG_CONTROL_TYPES_ENUM.SELECT_MULTIPLE} 适用.
45
+ * @default 'codval'
36
46
  */
37
- kgCodeColumn: PropType<string>;
47
+ kgCodeColumn: {
48
+ type: PropType<string>;
49
+ default: string;
50
+ };
38
51
  /**
39
52
  * 显示列.
40
- * {@link KG_CONTROL_TYPES_ENUM.SELECT_BASIC} 和 {@link KG_CONTROL_TYPES_ENUM.SELECT_MULTIPLE} 适用.
53
+ * {@link KG_CONTROL_TYPES_ENUM.SELECT} 和 {@link KG_CONTROL_TYPES_ENUM.SELECT_MULTIPLE} 适用.
54
+ * @default 'shortDsc'
41
55
  */
42
- kgDescriptionColumn: PropType<string>;
56
+ kgDescriptionColumn: {
57
+ type: PropType<string>;
58
+ default: string;
59
+ };
43
60
  /** 接口地址. */
44
61
  kgAction: PropType<string>;
45
62
  /** 接口参数. */
46
63
  kgActionParameter: PropType<string>;
47
- /** 表单验证信息. */
64
+ /**
65
+ * 表单验证信息.
66
+ * @default {}
67
+ */
48
68
  kgValidateInfo: {
49
69
  type: PropType<ValidateInfo>;
50
70
  default: () => {};
51
71
  };
52
72
  /**
53
73
  * 接口方法.
54
- * @default GET
74
+ * @default 'GET'
55
75
  */
56
76
  kgActionType: {
57
77
  type: PropType<Method>;
58
78
  default: string;
59
79
  };
60
- value: PropType<string | number | (string | number)[]>;
61
- 'onUpdate:value': PropType<(value: any) => void>;
80
+ /**
81
+ * 时间配置.
82
+ * https://www.antdv.com/components/date-picker#DatePicker
83
+ * @default undefined
84
+ */
85
+ kgShowTime: {
86
+ type: PropType<boolean | SharedTimeProps<Dayjs>>;
87
+ default: undefined;
88
+ };
89
+ value: PropType<KgControlValue>;
90
+ 'onUpdate:value': PropType<(value: KgControlValue | null) => void>;
91
+ onKgSubmit: PropType<() => void>;
92
+ onKgChange: PropType<(value: any | null) => void>;
62
93
  };
63
94
  export declare type KgControlProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
@@ -7,7 +7,9 @@ export declare function useKgVar(formID: string): {
7
7
  /** 变量配置数据. */
8
8
  kgVarStore: import("pinia").Store<"KgVar", import("../store/index.data").KgVarState, {
9
9
  getTopFormID(): string | null;
10
- getVarCats(): Map<string, import("../../..").VarCat[]>;
10
+ getVarCatalogs(): Map<string, import("../../..").VarCatalog[]>;
11
+ getVarLookups(): Map<string, import("../../..").VarLookup[]>;
12
+ getVarLookup(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../../..").VarLookup | null;
11
13
  }, {
12
14
  leave(formID: string): void;
13
15
  deleteAll(formID: string): void;
@@ -28,7 +30,9 @@ export declare function useKgVar(formID: string): {
28
30
  /** 变量配置数据. */
29
31
  kgVarStore: import("pinia").Store<"KgVar", import("../store/index.data").KgVarState, {
30
32
  getTopFormID(): string | null;
31
- getVarCats(): Map<string, import("../../..").VarCat[]>;
33
+ getVarCatalogs(): Map<string, import("../../..").VarCatalog[]>;
34
+ getVarLookups(): Map<string, import("../../..").VarLookup[]>;
35
+ getVarLookup(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../../..").VarLookup | null;
32
36
  }, {
33
37
  leave(formID: string): void;
34
38
  deleteAll(formID: string): void;
@@ -1,9 +1,11 @@
1
1
  import { type StoreDefinition } from 'pinia';
2
2
  import { KgVarState } from './index.data';
3
- import { VarCat } from '../../../apis/WMS/models';
3
+ import { VarCatalog, VarLookup } from '../../../apis/WMS/models';
4
4
  declare type IKgVarStore = StoreDefinition<'KgVar', KgVarState, {
5
5
  getTopFormID(): string | null;
6
- getVarCats(): Map<string, Array<VarCat>>;
6
+ getVarCatalogs(): Map<string, Array<VarCatalog>>;
7
+ getVarLookups(): Map<string, Array<VarLookup>>;
8
+ getVarLookup(): (formID?: string | null, varName?: string | null) => VarLookup | null;
7
9
  }, {
8
10
  leave(formID: string): void;
9
11
  deleteAll(formID: string): void;
@@ -1,9 +1,11 @@
1
- import { VarCat } from '../../../apis/WMS/models';
1
+ import { VarCatalog, VarLookup } from '../../../apis/WMS/models';
2
2
  export interface KgVarState {
3
3
  /**
4
4
  * 当前可能打开了多个界面, 需要按照先后顺序记录下来, 当打开变量配置弹窗时, 打开的是最近那个页面的变量配置.
5
5
  */
6
6
  formIDs: Array<string>;
7
7
  /** 变量别名. */
8
- varCats: Map<string, Array<VarCat>>;
8
+ varCatalogs: Map<string, Array<VarCatalog>>;
9
+ /** 变量查找. */
10
+ varLookups: Map<string, Array<VarLookup>>;
9
11
  }
@@ -1,4 +1,4 @@
1
- export { default as KgControl, KgControlInput, KgControlSelect, type KgControlProps } from './KgControl';
1
+ export { default as KgControl, type KgControlProps } from './KgControl';
2
2
  export { default as KgSearch, type KgSearchProps } from './KgSearch';
3
3
  export { default as KgButton, type KgButtonProps } from './KgButton';
4
4
  import KgPage from './KgPage/KgPage';
@@ -0,0 +1 @@
1
+ export * from './setup';
@@ -0,0 +1,43 @@
1
+ import { Pinia } from 'pinia';
2
+ import { ComputedRef } from 'vue';
3
+ /**
4
+ * 由于许多数据是由项目维护的, 组件库需要用到这些数据, 则必须让项目调用下面的这些配置方法, 将各种数据设置进来.
5
+ */
6
+ declare type T = {
7
+ (key: string): string;
8
+ (key: string, locale: string): string;
9
+ (key: string, locale: string, list: unknown[]): string;
10
+ (key: string, locale: string, named: Record<string, unknown>): string;
11
+ (key: string, list: unknown[]): string;
12
+ (key: string, named: Record<string, unknown>): string;
13
+ };
14
+ /**
15
+ * 配置翻译方法.
16
+ * @param i18n vue-i18n 的国际化配置.
17
+ */
18
+ export declare function setupT(i18n: any): void;
19
+ /**
20
+ * 翻译.
21
+ * @param key
22
+ * @param arg
23
+ */
24
+ export declare const t: T;
25
+ /**
26
+ * 配置 pinia 实例.
27
+ * @param pinia pinia 实例.
28
+ */
29
+ export declare function setupStore(pinia: Pinia): void;
30
+ /**
31
+ * 获取 pinia 实例.
32
+ */
33
+ export declare function store(): Pinia | null;
34
+ /**
35
+ * 配置语言.
36
+ * @param locale 语言.
37
+ */
38
+ export declare function setupLocale(locale: ComputedRef<string>): void;
39
+ /**
40
+ * 获取语言.
41
+ */
42
+ export declare function locale(): ComputedRef<string> | null;
43
+ export {};
@@ -50,4 +50,3 @@ export declare const KG_I18N: {
50
50
  };
51
51
  };
52
52
  };
53
- export * from './t';
@@ -15,25 +15,25 @@ export declare const enum KG_APPS_PREFIXS_ENUM {
15
15
  /** 表单控件类型. */
16
16
  export declare const enum KG_CONTROL_TYPES_ENUM {
17
17
  /** 文本. */
18
- INPUT_BASIC = "Input_Basic",
18
+ INPUT = "Input_Basic",
19
19
  /** 密码. */
20
20
  INPUT_PASSWORD = "Input_Password",
21
21
  /** 多行文本. */
22
22
  INPUT_AREA = "Input_AreaText",
23
23
  /** 数字. */
24
- INPUT_NUMBER_BASIC = "InputNumber_Basic",
25
- CHECKBOX_BASIC = "Checkbox_Basic",
26
- SWITCH_BASIC = "Switch_Basic",
24
+ INPUT_NUMBER = "InputNumber_Basic",
25
+ CHECKBOX = "Checkbox_Basic",
26
+ SWITCH = "Switch_Basic",
27
27
  /** 下拉列表单选. */
28
- SELECT_BASIC = "Select_Basic",
28
+ SELECT = "Select_Basic",
29
29
  /** 下拉列表多选. */
30
30
  SELECT_MULTIPLE = "Select_Multiple",
31
31
  DATE_PICKER_DATE = "DatePick_Date",
32
- DATE_PICKER_DATETIME_RANGE = "DatePick_DateTimeRange",
33
32
  DATE_PICKER_DATE_RANGE = "DatePick_DateRange",
34
33
  DATE_PICKER_DATETIME = "DatePick_DateTime",
35
- DATE_PICKER_MONTH = "DatePick_Month",
34
+ DATE_PICKER_DATETIME_RANGE = "DatePick_DateTimeRange",
36
35
  DATE_PICKER_WEEK = "DatePick_Week",
36
+ DATE_PICKER_MONTH = "DatePick_Month",
37
37
  DATE_PICKER_YEAR = "DatePick_Year",
38
38
  /** 单位. */
39
39
  UOM = "Uom",
@@ -63,3 +63,10 @@ export declare const enum KG_BUTTON_TYPES_ENUM {
63
63
  /** 其他. */
64
64
  OTHER = "Other"
65
65
  }
66
+ /** 定制级别. */
67
+ export declare const enum KG_CUSTOM_LEVEL {
68
+ /** 系统. */
69
+ L0 = 0,
70
+ /** 用户. */
71
+ L10 = 10
72
+ }