@kengic/vue 0.23.4 → 0.23.6
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/dist/index.css +1 -1
- package/dist/kengic-vue.js +4759 -4478
- package/dist/src/apis/WMS/models.d.ts +4 -2
- package/dist/src/components/KgButton/index.hooks.d.ts +8 -0
- package/dist/src/components/KgButton/index.store.d.ts +3 -0
- package/dist/src/components/KgForm/index.vm.d.ts +2 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +2 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -0
- package/dist/src/components/KgForm.Item/index.vm.d.ts +1 -1
- package/dist/src/components/KgResizable/KgResizable.d.ts +4 -56
- package/dist/src/components/KgResizable/KgResizable.service.d.ts +12 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -22
- package/dist/src/components/KgSearch/index.vm.d.ts +1 -1
- package/dist/src/components/KgSubmit/KgSubmit.d.ts +1 -30
- package/dist/src/components/KgSubmit/index.hooks.d.ts +3 -2
- package/dist/src/components/KgSubmit/index.store.d.ts +1 -18
- package/dist/src/components/KgTable/KgTable.service.d.ts +0 -1
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -15
- package/dist/src/components/KgTable/index.hooks.d.ts +4 -0
- package/dist/src/components/KgTable/index.store.d.ts +8 -8
- package/dist/src/components/KgTable/index.vm.d.ts +0 -1
- package/dist/src/components/KgVar/index.hooks.d.ts +1 -0
- package/dist/src/components/KgVar/index.store.d.ts +15 -13
- package/dist/src/components/KgVar/index.vm.d.ts +2 -2
- package/dist/src/components/{KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts → KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts} +1 -2
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +7 -0
- package/dist/src/components/{KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts → KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts} +2 -2
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts +5 -0
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts +7 -0
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +5 -22
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +4 -21
- package/dist/src/components/{KgSubmit/components/KgSubmit.VarSubmitConfig.Button.d.ts → KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts} +1 -1
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts +7 -0
- package/dist/src/components/{KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts → KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts} +3 -3
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts +5 -0
- package/dist/src/components/KgVarConfig/index.vm.d.ts +15 -9
- package/dist/src/consts/i18n/en.d.ts +30 -37
- package/dist/src/consts/i18n/zh_CN.d.ts +30 -37
- package/dist/src/consts/index.vm.d.ts +36 -3
- package/dist/src/consts/injection-keys.const.d.ts +4 -4
- package/package.json +1 -1
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +0 -28
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +0 -24
- package/dist/src/components/KgSubmit/components/KgSubmit.VarSubmitConfig.Modal.d.ts +0 -29
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +0 -22
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +0 -21
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +0 -24
@@ -327,7 +327,7 @@ export declare class ValidateVarButtonVarNameQuery {
|
|
327
327
|
varName?: string | null;
|
328
328
|
constructor(obj?: ValidateVarButtonVarNameQuery);
|
329
329
|
}
|
330
|
-
/**
|
330
|
+
/** 按钮. */
|
331
331
|
export declare class VarButton {
|
332
332
|
/** 是否可用. */
|
333
333
|
available_flag?: number | null;
|
@@ -567,6 +567,8 @@ export declare class VarDTO {
|
|
567
567
|
varSubmitConfigs?: Array<VarSubmitConfig> | null;
|
568
568
|
/** 提交表单字段. */
|
569
569
|
varSubmitDetails?: Array<VarSubmitDetail> | null;
|
570
|
+
/** 变量. */
|
571
|
+
varVariables?: Array<VarVariable> | null;
|
570
572
|
constructor(obj?: VarDTO);
|
571
573
|
}
|
572
574
|
/** DDA. */
|
@@ -851,7 +853,7 @@ export declare class VarSubmitDetail {
|
|
851
853
|
id?: string | null;
|
852
854
|
/** 是否是关键的字段. */
|
853
855
|
key_flg?: number | null;
|
854
|
-
/**
|
856
|
+
/** 占位提示文字(Placeholder). */
|
855
857
|
placeholder?: string | null;
|
856
858
|
/** 是否必填. */
|
857
859
|
required_flag?: number | null;
|
@@ -21,6 +21,14 @@ export interface IUseKgButton {
|
|
21
21
|
* 界面标识.
|
22
22
|
*/
|
23
23
|
formID: string;
|
24
|
+
/**
|
25
|
+
* 获取某一个按钮的翻译.
|
26
|
+
*
|
27
|
+
* @param param.varName 按钮变量名称.
|
28
|
+
*/
|
29
|
+
getButtonDescription(param: {
|
30
|
+
varName: string | null | undefined;
|
31
|
+
}): string;
|
24
32
|
/**
|
25
33
|
* <p>判断某个按钮的 click 事件是否被拦截.</p>
|
26
34
|
* <p>用户调用 <code>kgVar.kgButton.onClick(listener)</code> 监听了 click 事件, 并且回调函数返回了 true, 表示该 click 事件被用户拦截了.</p>
|
@@ -49,6 +49,9 @@ export interface IUseKgButtonStoreState {
|
|
49
49
|
submitSaveEventListenersMap: Map<string, Array<IKgButtonSubmitSaveEventListener>>;
|
50
50
|
}
|
51
51
|
export interface IUseKgButtonStoreGetters {
|
52
|
+
getButtonDescription(): (formID: string | null | undefined, param: {
|
53
|
+
varName: string | null | undefined;
|
54
|
+
}) => string;
|
52
55
|
getCurrentButton(): (formID: string | null | undefined) => VarButton | null;
|
53
56
|
getSearchButton(): (formID: string | null | undefined) => VarButton | null;
|
54
57
|
getVarButtonConfig(): (formID: string | null | undefined) => VarButtonConfig | null;
|
@@ -4,6 +4,6 @@ import { ComputedRef, InjectionKey, Ref } from 'vue';
|
|
4
4
|
* 依赖注入表单数据对象.
|
5
5
|
* 在表单组件(KgForm)的任何下级组件中, 都可以通过注入获取表单数据对象.
|
6
6
|
*/
|
7
|
-
export declare const
|
7
|
+
export declare const KG__DI__KG_FORM___FORM_MODEL: InjectionKey<ComputedRef<Record<string, any>>>;
|
8
8
|
/** 依赖注入 formRef. */
|
9
|
-
export declare const
|
9
|
+
export declare const KG__DI__KG_FORM___FORM_REF: InjectionKey<Ref<FormInstance | null>>;
|
@@ -16,6 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
16
16
|
kgPlaceholder: import("vue").PropType<string>;
|
17
17
|
kgMode: import("vue").PropType<"multiple" | "tags">;
|
18
18
|
kgShowLabel: {
|
19
|
+
/** 是否全选. */
|
19
20
|
type: import("vue").PropType<boolean>;
|
20
21
|
default: boolean;
|
21
22
|
};
|
@@ -58,6 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
58
59
|
kgPlaceholder: import("vue").PropType<string>;
|
59
60
|
kgMode: import("vue").PropType<"multiple" | "tags">;
|
60
61
|
kgShowLabel: {
|
62
|
+
/** 是否全选. */
|
61
63
|
type: import("vue").PropType<boolean>;
|
62
64
|
default: boolean;
|
63
65
|
};
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
};
|
22
22
|
kgAllowClear: {
|
23
23
|
type: import("vue").PropType<boolean>;
|
24
|
+
/** 是否允许清空. */
|
24
25
|
default: undefined;
|
25
26
|
};
|
26
27
|
kgShowTime: {
|
@@ -63,6 +64,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
63
64
|
};
|
64
65
|
kgAllowClear: {
|
65
66
|
type: import("vue").PropType<boolean>;
|
67
|
+
/** 是否允许清空. */
|
66
68
|
default: undefined;
|
67
69
|
};
|
68
70
|
kgShowTime: {
|
@@ -107,4 +107,4 @@ export declare type IKgFormItemSlotControlRightParam = {
|
|
107
107
|
varSubmitDetail: VarSubmitDetail;
|
108
108
|
};
|
109
109
|
/** 依赖注入 kgContext 参数. */
|
110
|
-
export declare const
|
110
|
+
export declare const KG__DI__KG_FORM_ITEM__CONTEXT: InjectionKey<KG_FORM_CONTEXT>;
|
@@ -13,35 +13,19 @@ export declare const getProps: () => {
|
|
13
13
|
/** 最大高度. */
|
14
14
|
kgMaxHeight: {
|
15
15
|
type: PropType<number>;
|
16
|
-
default:
|
17
|
-
};
|
18
|
-
/** 最大宽度. */
|
19
|
-
kgMaxWidth: {
|
20
|
-
type: PropType<number>;
|
21
|
-
default: number;
|
16
|
+
default: undefined;
|
22
17
|
};
|
23
18
|
/** 最小高度. */
|
24
19
|
kgMinHeight: {
|
25
20
|
type: PropType<number>;
|
26
21
|
default: number;
|
27
22
|
};
|
28
|
-
/** 最小宽度. */
|
29
|
-
kgMinWidth: {
|
30
|
-
type: PropType<number>;
|
31
|
-
default: number;
|
32
|
-
};
|
33
23
|
/** 拖拽条的位置. */
|
34
24
|
kgType: {
|
35
25
|
type: PropType<"left" | "right" | "top" | "bottom">;
|
36
26
|
default: string;
|
37
27
|
};
|
38
|
-
/** 当前宽度. */
|
39
|
-
kgWidth: {
|
40
|
-
type: PropType<number>;
|
41
|
-
default: number;
|
42
|
-
};
|
43
28
|
'onUpdate:kgHeight': PropType<(value: number) => void>;
|
44
|
-
'onUpdate:kgWidth': PropType<(value: number) => void>;
|
45
29
|
};
|
46
30
|
export declare type IKgResizableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
47
31
|
declare const _default: import("vue").DefineComponent<{
|
@@ -57,36 +41,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
57
41
|
/** 最大高度. */
|
58
42
|
kgMaxHeight: {
|
59
43
|
type: PropType<number>;
|
60
|
-
default:
|
61
|
-
};
|
62
|
-
/** 最大宽度. */
|
63
|
-
kgMaxWidth: {
|
64
|
-
type: PropType<number>;
|
65
|
-
default: number;
|
44
|
+
default: undefined;
|
66
45
|
};
|
67
46
|
/** 最小高度. */
|
68
47
|
kgMinHeight: {
|
69
48
|
type: PropType<number>;
|
70
49
|
default: number;
|
71
50
|
};
|
72
|
-
/** 最小宽度. */
|
73
|
-
kgMinWidth: {
|
74
|
-
type: PropType<number>;
|
75
|
-
default: number;
|
76
|
-
};
|
77
51
|
/** 拖拽条的位置. */
|
78
52
|
kgType: {
|
79
53
|
type: PropType<"left" | "right" | "top" | "bottom">;
|
80
54
|
default: string;
|
81
55
|
};
|
82
|
-
/** 当前宽度. */
|
83
|
-
kgWidth: {
|
84
|
-
type: PropType<number>;
|
85
|
-
default: number;
|
86
|
-
};
|
87
56
|
'onUpdate:kgHeight': PropType<(value: number) => void>;
|
88
|
-
|
89
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:kgWidth" | "update:kgHeight")[], "update:kgWidth" | "update:kgHeight", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
57
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:kgHeight"[], "update:kgHeight", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
90
58
|
/** 样式. */
|
91
59
|
kgClass: PropType<string>;
|
92
60
|
/** 是否禁用. */
|
@@ -99,45 +67,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
67
|
/** 最大高度. */
|
100
68
|
kgMaxHeight: {
|
101
69
|
type: PropType<number>;
|
102
|
-
default:
|
103
|
-
};
|
104
|
-
/** 最大宽度. */
|
105
|
-
kgMaxWidth: {
|
106
|
-
type: PropType<number>;
|
107
|
-
default: number;
|
70
|
+
default: undefined;
|
108
71
|
};
|
109
72
|
/** 最小高度. */
|
110
73
|
kgMinHeight: {
|
111
74
|
type: PropType<number>;
|
112
75
|
default: number;
|
113
76
|
};
|
114
|
-
/** 最小宽度. */
|
115
|
-
kgMinWidth: {
|
116
|
-
type: PropType<number>;
|
117
|
-
default: number;
|
118
|
-
};
|
119
77
|
/** 拖拽条的位置. */
|
120
78
|
kgType: {
|
121
79
|
type: PropType<"left" | "right" | "top" | "bottom">;
|
122
80
|
default: string;
|
123
81
|
};
|
124
|
-
/** 当前宽度. */
|
125
|
-
kgWidth: {
|
126
|
-
type: PropType<number>;
|
127
|
-
default: number;
|
128
|
-
};
|
129
82
|
'onUpdate:kgHeight': PropType<(value: number) => void>;
|
130
|
-
'onUpdate:kgWidth': PropType<(value: number) => void>;
|
131
83
|
}>> & {
|
132
84
|
"onUpdate:kgHeight"?: ((...args: any[]) => any) | undefined;
|
133
|
-
"onUpdate:kgWidth"?: ((...args: any[]) => any) | undefined;
|
134
85
|
}, {
|
135
86
|
kgMaxHeight: number;
|
136
|
-
kgMaxWidth: number;
|
137
87
|
kgMinHeight: number;
|
138
|
-
kgMinWidth: number;
|
139
88
|
kgHeight: number;
|
140
89
|
kgType: "left" | "right" | "top" | "bottom";
|
141
|
-
kgWidth: number;
|
142
90
|
}>;
|
143
91
|
export default _default;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
/**
|
3
|
+
* <p>监测父元素的尺寸, 动态计算最大高度以及最大宽度.</p>
|
4
|
+
*
|
5
|
+
* @param param
|
6
|
+
*/
|
7
|
+
export declare function _useObserveParentSize(param: {
|
8
|
+
kgResizableRef: Ref<HTMLDivElement | null>;
|
9
|
+
}): {
|
10
|
+
parentWidth: Ref<number>;
|
11
|
+
parentHeight: Ref<number>;
|
12
|
+
};
|
@@ -1,35 +1,13 @@
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
-
import './KgSearch.ConfigModal.less';
|
3
2
|
export declare const getProps: () => {
|
4
|
-
/**
|
5
|
-
* 主页面的页面标识.
|
6
|
-
*/
|
7
|
-
hostFormID: {
|
8
|
-
type: PropType<string>;
|
9
|
-
required: boolean;
|
10
|
-
};
|
11
3
|
'onUpdate:visible': PropType<(value: boolean) => void>;
|
12
4
|
visible: PropType<boolean>;
|
13
5
|
};
|
14
6
|
export declare type KgSearchConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
15
7
|
declare const _default: import("vue").DefineComponent<{
|
16
|
-
/**
|
17
|
-
* 主页面的页面标识.
|
18
|
-
*/
|
19
|
-
hostFormID: {
|
20
|
-
type: PropType<string>;
|
21
|
-
required: boolean;
|
22
|
-
};
|
23
8
|
'onUpdate:visible': PropType<(value: boolean) => void>;
|
24
9
|
visible: PropType<boolean>;
|
25
10
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
26
|
-
/**
|
27
|
-
* 主页面的页面标识.
|
28
|
-
*/
|
29
|
-
hostFormID: {
|
30
|
-
type: PropType<string>;
|
31
|
-
required: boolean;
|
32
|
-
};
|
33
11
|
'onUpdate:visible': PropType<(value: boolean) => void>;
|
34
12
|
visible: PropType<boolean>;
|
35
13
|
}>> & {
|
@@ -1 +1 @@
|
|
1
|
-
export
|
1
|
+
export {};
|
@@ -5,15 +5,6 @@ export declare const getProps: () => {
|
|
5
5
|
* 自定义的样式类名, 会附加到组件默认的样式类名后面.
|
6
6
|
*/
|
7
7
|
kgClass: PropType<string>;
|
8
|
-
/**
|
9
|
-
* 是否显示头部右侧的表单配置按钮.
|
10
|
-
*
|
11
|
-
* @default true
|
12
|
-
*/
|
13
|
-
kgIsShowVarSubmitConfigButton: {
|
14
|
-
type: PropType<boolean>;
|
15
|
-
default: boolean;
|
16
|
-
};
|
17
8
|
};
|
18
9
|
export declare type KgSubmitProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
19
10
|
declare const _default: import("vue").DefineComponent<{
|
@@ -21,30 +12,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
12
|
* 自定义的样式类名, 会附加到组件默认的样式类名后面.
|
22
13
|
*/
|
23
14
|
kgClass: PropType<string>;
|
24
|
-
/**
|
25
|
-
* 是否显示头部右侧的表单配置按钮.
|
26
|
-
*
|
27
|
-
* @default true
|
28
|
-
*/
|
29
|
-
kgIsShowVarSubmitConfigButton: {
|
30
|
-
type: PropType<boolean>;
|
31
|
-
default: boolean;
|
32
|
-
};
|
33
15
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
34
16
|
/**
|
35
17
|
* 自定义的样式类名, 会附加到组件默认的样式类名后面.
|
36
18
|
*/
|
37
19
|
kgClass: PropType<string>;
|
38
|
-
|
39
|
-
* 是否显示头部右侧的表单配置按钮.
|
40
|
-
*
|
41
|
-
* @default true
|
42
|
-
*/
|
43
|
-
kgIsShowVarSubmitConfigButton: {
|
44
|
-
type: PropType<boolean>;
|
45
|
-
default: boolean;
|
46
|
-
};
|
47
|
-
}>>, {
|
48
|
-
kgIsShowVarSubmitConfigButton: boolean;
|
49
|
-
}>;
|
20
|
+
}>>, {}>;
|
50
21
|
export default _default;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FormInstance } from 'ant-design-vue';
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
3
3
|
import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
4
|
-
import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE,
|
4
|
+
import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../consts';
|
5
5
|
import { IKgSubmitAfterValidateEventListener, IKgSubmitBeforeOkEventListener, IKgSubmitBeforeOpenEventListener, IKgSubmitBeforeRequestEventListener, IKgSubmitCloseEventListener, IKgSubmitErrorEventListener, IKgSubmitOkEventListener, IKgSubmitOpenEventListener, IKgSubmitStore } from './index.store';
|
6
6
|
export interface IUseKgSubmit {
|
7
7
|
/**
|
@@ -227,7 +227,7 @@ export interface IUseKgSubmit {
|
|
227
227
|
/**
|
228
228
|
* <p>「查询按钮」的「提交表单配置」的文本宽度单位.</p>
|
229
229
|
*/
|
230
|
-
searchVarSubmitConfig$LabelColumnUnit: ComputedRef<
|
230
|
+
searchVarSubmitConfig$LabelColumnUnit: ComputedRef<KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT>;
|
231
231
|
/**
|
232
232
|
* <p>「查询按钮」的「提交表单配置」的布局.</p>
|
233
233
|
*/
|
@@ -236,6 +236,7 @@ export interface IUseKgSubmit {
|
|
236
236
|
* 状态数据.
|
237
237
|
*/
|
238
238
|
store: IKgSubmitStore;
|
239
|
+
varSubmitConfigs: ComputedRef<Array<VarSubmitConfig>>;
|
239
240
|
}
|
240
241
|
/**
|
241
242
|
* @param formID 界面标识.
|
@@ -42,29 +42,11 @@ export declare type IKgSubmitOpenEventListenerParameter = {
|
|
42
42
|
};
|
43
43
|
export declare type IKgSubmitOpenEventListener = ((param: IKgSubmitOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
44
44
|
export declare type IKgSubmitBeforeOkEventListenerParameter = {
|
45
|
-
/** @deprecated 已弃用 */
|
46
|
-
isCopying: boolean | null;
|
47
|
-
/** @deprecated 已弃用 */
|
48
|
-
isCreating: boolean | null;
|
49
|
-
/** @deprecated 已弃用 */
|
50
|
-
isDeleting: boolean | null;
|
51
|
-
/** @deprecated 已弃用 */
|
52
|
-
isUpdating: boolean | null;
|
53
45
|
/**
|
54
46
|
* 表单数据对象.
|
55
47
|
* @deprecated 已弃用, 请使用 {@link IUseKgSubmit.formModel}
|
56
48
|
*/
|
57
49
|
model: Ref<Record<string, any>>;
|
58
|
-
/**
|
59
|
-
* 表格当前勾选的唯一行.
|
60
|
-
* @deprecated 已弃用, 请使用 {@link IUseKgTable.selectedRow}
|
61
|
-
*/
|
62
|
-
row: IKgTableRow | null;
|
63
|
-
/**
|
64
|
-
* 表单验证规则.
|
65
|
-
* @deprecated 已弃用, 请使用 {@link IUseKgSubmit.formRules}
|
66
|
-
*/
|
67
|
-
rules: Ref<Record<string, RuleObject[]>>;
|
68
50
|
};
|
69
51
|
export declare type IKgSubmitBeforeOkEventListener = ((param: IKgSubmitBeforeOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
70
52
|
export declare type IKgSubmitAfterValidateEventListenerParameter = {
|
@@ -144,6 +126,7 @@ export interface IUseKgSubmitStoreGetters {
|
|
144
126
|
buttonType?: KG__VAR_BUTTON__TYPE;
|
145
127
|
buttonVarName?: string | null;
|
146
128
|
}) => VarSubmitConfig | null;
|
129
|
+
getVarSubmitConfigs(): (formID: string | null | undefined) => Array<VarSubmitConfig>;
|
147
130
|
getVarSubmitDetails(): (formID: string | null | undefined, param?: {
|
148
131
|
buttonType?: KG__VAR_BUTTON__TYPE;
|
149
132
|
buttonVarName?: string | null;
|
@@ -24,7 +24,6 @@ export declare function _useLoading(): {
|
|
24
24
|
export declare function _useResizeObserver(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): {};
|
25
25
|
export declare function _useDragColumn(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>, columns: ComputedRef<ColumnsType<IKgTableRow>>): {};
|
26
26
|
export declare function _useDatas(): {
|
27
|
-
datas: ComputedRef<IKgTableRow[]>;
|
28
27
|
transformDatas: (response: Ref<any>) => {
|
29
28
|
datas: Ref<Array<IKgTableRow>>;
|
30
29
|
total: Ref<number>;
|
package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts
CHANGED
@@ -2,29 +2,14 @@ import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
export declare const getProps: () => {
|
3
3
|
visible: PropType<boolean>;
|
4
4
|
'onUpdate:visible': PropType<(value: boolean) => void>;
|
5
|
-
/** 主页面的页面标识. */
|
6
|
-
hostFormID: {
|
7
|
-
type: PropType<string>;
|
8
|
-
required: boolean;
|
9
|
-
};
|
10
5
|
};
|
11
6
|
export declare type IKgTableSettingConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
12
7
|
declare const _default: import("vue").DefineComponent<{
|
13
8
|
visible: PropType<boolean>;
|
14
9
|
'onUpdate:visible': PropType<(value: boolean) => void>;
|
15
|
-
/** 主页面的页面标识. */
|
16
|
-
hostFormID: {
|
17
|
-
type: PropType<string>;
|
18
|
-
required: boolean;
|
19
|
-
};
|
20
10
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
21
11
|
visible: PropType<boolean>;
|
22
12
|
'onUpdate:visible': PropType<(value: boolean) => void>;
|
23
|
-
/** 主页面的页面标识. */
|
24
|
-
hostFormID: {
|
25
|
-
type: PropType<string>;
|
26
|
-
required: boolean;
|
27
|
-
};
|
28
13
|
}>> & {
|
29
14
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
30
15
|
}, {}>;
|
@@ -3,6 +3,10 @@ import { VarGridConfig } from '../../apis/WMS/models';
|
|
3
3
|
import { IRemoveEventListenerHandler } from '../../consts';
|
4
4
|
import { IKgTableAfterRequestEventListener, IKgTableBeforeParseParameterEventListener, IKgTableBeforeRequestEventListener, IKgTableBeforeSetDatasEventListener, IKgTableReadyEventListener, IKgTableRowDoubleClickEventListener, IKgTableStore } from './index.store';
|
5
5
|
export interface IUseKgTable {
|
6
|
+
/**
|
7
|
+
* 列表数据.
|
8
|
+
*/
|
9
|
+
datas: ComputedRef<ReturnType<IKgTableStore['getDatas']>>;
|
6
10
|
/** 界面标识. */
|
7
11
|
formID: string;
|
8
12
|
/** 主键字段. */
|
@@ -107,7 +107,7 @@ export interface IUseKgTableStoreState {
|
|
107
107
|
}
|
108
108
|
export interface IUseKgTableStoreGetters {
|
109
109
|
/** 列表数据. */
|
110
|
-
getDatas():
|
110
|
+
getDatas(): (formID: string | null | undefined) => Array<Record<string, any>>;
|
111
111
|
/** 是否就绪. */
|
112
112
|
getIsReady(): (formID: string | null | undefined) => boolean;
|
113
113
|
/**
|
@@ -174,9 +174,9 @@ export interface IUseKgTableStoreActions {
|
|
174
174
|
emit<T = IKgTableEventListenerParameter>(formID: string | null | undefined, event: IKgTableEvent, param: T): Promise<boolean>;
|
175
175
|
/**
|
176
176
|
* 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
|
177
|
-
* @param
|
177
|
+
* @param formID 界面标识.
|
178
178
|
*/
|
179
|
-
refreshSelectedRows(
|
179
|
+
refreshSelectedRows(formID: string | null | undefined): void;
|
180
180
|
/**
|
181
181
|
* 退订事件监听.
|
182
182
|
* @param formID 界面标识.
|
@@ -201,24 +201,24 @@ export interface IUseKgTableStoreActions {
|
|
201
201
|
* @param ready 是否就绪.
|
202
202
|
*/
|
203
203
|
setIsReady(formID: string | null | undefined, ready?: boolean): void;
|
204
|
-
setIsRequested(
|
204
|
+
setIsRequested(formID: string | null | undefined, value: boolean): void;
|
205
205
|
setIsRequesting(formID: string | null | undefined, value: boolean): void;
|
206
206
|
setIsShowDescription(formID: string | null | undefined, value: boolean): void;
|
207
207
|
setRequestParams(formID: string | null | undefined, requestParams: Record<string, any> | null | undefined): void;
|
208
208
|
setRowHeight(formID: string | null | undefined, value: IKgTableRowHeight): void;
|
209
209
|
/**
|
210
210
|
* 设置某行的勾选状态.
|
211
|
-
* @param
|
211
|
+
* @param formID 界面标识.
|
212
212
|
* @param row 行.
|
213
213
|
* @param isSelected 是否勾选.
|
214
214
|
*/
|
215
|
-
setRowSelect(
|
215
|
+
setRowSelect(formID: string | null | undefined, row: IKgTableRow, isSelected: boolean): void;
|
216
216
|
/**
|
217
217
|
* 设置勾选的行.
|
218
|
-
* @param
|
218
|
+
* @param formID 界面标识.
|
219
219
|
* @param selectedRows 勾选的行.
|
220
220
|
*/
|
221
|
-
setSelectedRows(
|
221
|
+
setSelectedRows(formID: string | null | undefined, selectedRows: Array<IKgTableRow>): void;
|
222
222
|
setTableWidth(formID: string | null | undefined, value: number): void;
|
223
223
|
}
|
224
224
|
export declare type IUseKgTableStore = StoreDefinition<'KgTable', IUseKgTableStoreState, IUseKgTableStoreGetters, IUseKgTableStoreActions>;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { ColumnType } from 'ant-design-vue/es/table/interface';
|
2
2
|
import { VarGridDetail } from '../../apis/WMS/models';
|
3
|
-
export declare const FORM_ID__KG_TABLE__VAR_GRID_MASTER = "kg-table.VarGridMaster";
|
4
3
|
/** 行高. */
|
5
4
|
export declare type IKgTableRowHeight = 'L' | 'M' | 'H';
|
6
5
|
/** 表格的行. */
|
@@ -126,6 +126,7 @@ export declare type IUseKgVar = {
|
|
126
126
|
varProfileConfig: ComputedRef<ReturnType<IKgVarStore['getVarProfileConfig']>>;
|
127
127
|
/** 所有的 VarProfileMaster 列表. */
|
128
128
|
varProfileMasters: ComputedRef<ReturnType<IKgVarStore['getVarProfileMasters']>>;
|
129
|
+
varVariables: ComputedRef<ReturnType<IKgVarStore['getVarVariables']>>;
|
129
130
|
};
|
130
131
|
/**
|
131
132
|
* <p>使用变量配置.</p>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
|
-
import { VarButton, VarButtonConfig, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
2
|
+
import { VarButton, VarButtonConfig, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail, VarVariable } from '../../apis/WMS/models';
|
3
3
|
import { IKgEventListener, KG__VAR_BUTTON__TYPE } from '../../consts';
|
4
4
|
/**
|
5
5
|
* 事件类型.
|
@@ -58,6 +58,7 @@ export interface IUseKgVarStoreState {
|
|
58
58
|
}>;
|
59
59
|
varSubmitConfigMap: Map<string, Array<VarSubmitConfig>>;
|
60
60
|
varSubmitDetailMap: Map<string, Array<VarSubmitDetail>>;
|
61
|
+
varVariableMap: Map<string, Array<VarVariable> | null>;
|
61
62
|
}
|
62
63
|
export interface IUseKgVarStoreGetters {
|
63
64
|
/**
|
@@ -130,6 +131,7 @@ export interface IUseKgVarStoreGetters {
|
|
130
131
|
* 获取 VarProfileMasterDTO 列表.
|
131
132
|
*/
|
132
133
|
getVarProfileMasters(): (formID: string | null | undefined) => Array<VarProfileMasterDTO> | null;
|
134
|
+
getVarVariables(): (formID: string | null | undefined) => Array<VarVariable>;
|
133
135
|
isCopyingRequesting(): (formID: string | null | undefined) => boolean | null;
|
134
136
|
isCreatingRequesting(): (formID: string | null | undefined) => boolean | null;
|
135
137
|
isDeletingRequesting(): (formID: string | null | undefined) => boolean | null;
|
@@ -162,11 +164,11 @@ export interface IUseKgVarStoreActions {
|
|
162
164
|
dispose(formID: string): void;
|
163
165
|
/**
|
164
166
|
* 拖拽排序 VarGridDetail 列表.
|
165
|
-
* @param
|
166
|
-
* @param
|
167
|
-
* @param
|
167
|
+
* @param formID 界面标识.
|
168
|
+
* @param fromVarName 被拽起的变量名称
|
169
|
+
* @param toVarName 被放下的变量名称.
|
168
170
|
*/
|
169
|
-
dragSortCurrentVarGridDetails(
|
171
|
+
dragSortCurrentVarGridDetails(formID: string | null | undefined, fromVarName: string | null | undefined, toVarName: string | null | undefined): void;
|
170
172
|
/**
|
171
173
|
* 触发事件.
|
172
174
|
* @param formID 界面标识.
|
@@ -185,11 +187,11 @@ export interface IUseKgVarStoreActions {
|
|
185
187
|
}): Promise<void>;
|
186
188
|
/**
|
187
189
|
* 修改 VarGridDetail 的部分属性.
|
188
|
-
* @param
|
190
|
+
* @param formID 界面标识.
|
189
191
|
* @param var_nam 变量名称.
|
190
192
|
* @param properties 要修改的部分属性.
|
191
193
|
*/
|
192
|
-
patchVarGridDetail(
|
194
|
+
patchVarGridDetail(formID: string, var_nam: string | null | undefined, properties: VarGridDetail): Promise<void>;
|
193
195
|
/**
|
194
196
|
* 修改 VarConfigPossibility 的接口参数 cmd_prm 的部分属性.
|
195
197
|
* @param formID 界面标识.
|
@@ -199,11 +201,11 @@ export interface IUseKgVarStoreActions {
|
|
199
201
|
patchVarPossibilityCommandParameter(formID: string | null | undefined, var_nam: string | null | undefined, properties: Record<string, any>): Promise<void>;
|
200
202
|
/**
|
201
203
|
* 修改 VarProfileDetail 的部分属性.
|
202
|
-
* @param
|
204
|
+
* @param formID 界面标识.
|
203
205
|
* @param var_nam 变量名称.
|
204
206
|
* @param properties 要修改的部分属性.
|
205
207
|
*/
|
206
|
-
patchVarProfileDetail(
|
208
|
+
patchVarProfileDetail(formID: string, var_nam: string | null | undefined, properties: VarProfileDetail): Promise<void>;
|
207
209
|
/**
|
208
210
|
* 退订事件监听.
|
209
211
|
* @param formID 界面标识.
|
@@ -233,11 +235,11 @@ export interface IUseKgVarStoreActions {
|
|
233
235
|
* @param currentVarProfileMasterID 当前选择的查询条件的 ID.
|
234
236
|
*/
|
235
237
|
setCurrentVarProfileMasterID(formID?: string | null, currentVarProfileMasterID?: string | null): Promise<void>;
|
236
|
-
setIsCopyingRequesting(
|
238
|
+
setIsCopyingRequesting(formID: string, value: boolean): void;
|
237
239
|
setIsCreatingRequesting(formID: string, value: boolean): void;
|
238
|
-
setIsDeletingRequesting(
|
239
|
-
setIsOtherRequesting(
|
240
|
-
setIsUpdatingRequesting(
|
240
|
+
setIsDeletingRequesting(formID: string, value: boolean): void;
|
241
|
+
setIsOtherRequesting(formID: string, value: boolean): void;
|
242
|
+
setIsUpdatingRequesting(formID: string, value: boolean): void;
|
241
243
|
/**
|
242
244
|
* 设置列的宽度.
|
243
245
|
* @param formID 界面标识.
|
@@ -36,7 +36,7 @@ export declare type IKgSlots = {
|
|
36
36
|
afterKgTable?: () => any;
|
37
37
|
};
|
38
38
|
/** 注入 kgSlots 参数. */
|
39
|
-
export declare const
|
39
|
+
export declare const KG__DI__KG_VAR__KG_SLOTS: InjectionKey<IKgSlots | undefined>;
|
40
40
|
export declare type IKgProps = {
|
41
41
|
KgButton?: IKgButtonProps;
|
42
42
|
KgSearch?: IKgSearchProps;
|
@@ -44,4 +44,4 @@ export declare type IKgProps = {
|
|
44
44
|
KgTable?: IKgTableProps;
|
45
45
|
};
|
46
46
|
/** 注入 kgProps 参数. */
|
47
|
-
export declare const
|
47
|
+
export declare const KG__DI__KG_VAR__KG_PROPS: InjectionKey<ComputedRef<IKgProps | undefined>>;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
|
-
export declare const FORM_ID__VAR_PROFILE_CONFIG = "kg-search.VarProfileConfig";
|
3
2
|
export declare const getProps: () => any;
|
4
|
-
export declare type
|
3
|
+
export declare type KgVarConfigModalSearchVarProfileConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
5
4
|
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
6
5
|
[x: string]: any;
|
7
6
|
}>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const getProps: () => any;
|
3
|
+
export declare type KgVarConfigModalSearchVarProfileMasterProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
4
|
+
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
|
+
[x: string]: any;
|
6
|
+
}>;
|
7
|
+
export default _default;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ColumnsType } from 'ant-design-vue/es/table';
|
2
2
|
import { Ref, UnwrapRef } from 'vue';
|
3
|
-
import { VarProfileDetail } from '
|
3
|
+
import { VarProfileDetail } from '../../../../apis/WMS/models';
|
4
4
|
export declare const leftVarProfileDetailColumns: (hostFormID: string) => ColumnsType<VarProfileDetail>;
|
5
5
|
export declare const rightVarProfileDetailColumns: (hostFormID: string) => ColumnsType<VarProfileDetail>;
|
6
6
|
export declare type IUseDragRow = {};
|
7
|
-
export declare function _useDragRow(hostFormID: string | undefined, varProfileDetails: Ref<UnwrapRef<Array<VarProfileDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarProfileDetail>>>): IUseDragRow;
|
7
|
+
export declare function _useDragRow(hostFormID: string | null | undefined, varProfileDetails: Ref<UnwrapRef<Array<VarProfileDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarProfileDetail>>>): IUseDragRow;
|