@kengic/vue 0.5.3 → 0.5.4
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 +2372 -2281
- package/dist/src/apis/WMS/models.d.ts +6 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +1 -1
- package/dist/src/components/KgSubmit/components/{KgSubmit.Header.Config.d.ts → KgSubmit.Header.VarSubmitConfig.d.ts} +1 -1
- package/dist/src/components/KgSubmit/index.store.d.ts +5 -5
- package/dist/src/components/KgSubmit/index.vm.d.ts +6 -1
- package/dist/src/components/KgTable/components/setting/{KgTable.Setting.SaveGridConfig.d.ts → KgTable.Setting.VarGridConfig.d.ts} +1 -1
- package/dist/src/components/KgVar/index.store.d.ts +9 -1
- package/dist/src/consts/i18n/en.d.ts +4 -1
- package/dist/src/consts/i18n/zh_CN.d.ts +4 -1
- package/dist/src/consts/index.d.ts +10 -1
- package/package.json +1 -1
- /package/dist/src/components/KgTable/components/setting/{KgTable.Setting.GridMasterModal.d.ts → KgTable.Setting.VarGridMasterModal.d.ts} +0 -0
@@ -137,7 +137,7 @@ export declare class VarDTO {
|
|
137
137
|
varProfile?: VarProfileDTO | null;
|
138
138
|
/** 查询条件配置. */
|
139
139
|
varProfileConfig?: VarProfileConfig | null;
|
140
|
-
/**
|
140
|
+
/** 表单配置. */
|
141
141
|
varSubmitConfig?: VarSubmitConfig | null;
|
142
142
|
/** 提交字段. */
|
143
143
|
varSubmitFields?: Array<VarSubmitField> | null;
|
@@ -399,8 +399,10 @@ export declare class VarProfileMasterDTO {
|
|
399
399
|
varProfileDetails?: Array<VarProfileDetail> | null;
|
400
400
|
constructor(obj?: VarProfileMasterDTO);
|
401
401
|
}
|
402
|
-
/**
|
402
|
+
/** 表单配置. */
|
403
403
|
export declare class VarSubmitConfig {
|
404
|
+
/** 是否默认全屏. */
|
405
|
+
dft_fullscreen_flg?: number | null;
|
404
406
|
/** 默认宽度. */
|
405
407
|
dft_width?: number | null;
|
406
408
|
/** 界面标识. */
|
@@ -411,6 +413,8 @@ export declare class VarSubmitConfig {
|
|
411
413
|
id?: string | null;
|
412
414
|
/** 文本宽度. */
|
413
415
|
label_col?: number | null;
|
416
|
+
/** 文本宽度单位. */
|
417
|
+
label_col_unit?: string | null;
|
414
418
|
/** 布局方式. */
|
415
419
|
layout?: string | null;
|
416
420
|
/** 最大宽度. */
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export declare const
|
1
|
+
export declare const FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit-config";
|
2
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
3
|
export default _default;
|
@@ -17,13 +17,13 @@ export declare type IKgSubmitOpenCbParams = {
|
|
17
17
|
row: IKgTableRecord | null;
|
18
18
|
model: Ref<Record<string, any>>;
|
19
19
|
};
|
20
|
-
export declare type IKgSubmitOpenCb = (args: IKgSubmitOpenCbParams) =>
|
20
|
+
export declare type IKgSubmitOpenCb = (args: IKgSubmitOpenCbParams) => Promise<boolean>;
|
21
21
|
/** 事件监听函数: close. */
|
22
|
-
export declare type IKgSubmitCloseCb = (args?: any | null) =>
|
22
|
+
export declare type IKgSubmitCloseCb = (args?: any | null) => Promise<boolean>;
|
23
23
|
/** 事件监听函数: beforeOk. */
|
24
|
-
export declare type IKgSubmitBeforeOkCb = (model: Ref<Record<string, any>>) =>
|
24
|
+
export declare type IKgSubmitBeforeOkCb = (model: Ref<Record<string, any>>) => Promise<boolean>;
|
25
25
|
/** 事件监听函数: ok. */
|
26
|
-
export declare type IKgSubmitOkCb = (args?: any | null) =>
|
26
|
+
export declare type IKgSubmitOkCb = (args?: any | null) => Promise<boolean>;
|
27
27
|
export declare type IKgSubmitCb = IKgSubmitOpenCb | IKgSubmitCloseCb | IKgSubmitBeforeOkCb | IKgSubmitOkCb;
|
28
28
|
export interface IKgSubmitState {
|
29
29
|
openListenersMap: Map<string, Array<IKgSubmitCloseCb>>;
|
@@ -45,7 +45,7 @@ export declare type IKgSubmitStoreDefinition = StoreDefinition<'KgSubmit', IKgSu
|
|
45
45
|
* @param event 事件名称.
|
46
46
|
* @param args 数据.
|
47
47
|
*/
|
48
|
-
emit(formID: string, event: IKgSubmitEvent, args?: any | null):
|
48
|
+
emit(formID: string, event: IKgSubmitEvent, args?: any | null): Promise<boolean>;
|
49
49
|
setIsLoading(formID: string, value: boolean): void;
|
50
50
|
}>;
|
51
51
|
export declare type IKgSubmitStore = ReturnType<IKgSubmitStoreDefinition>;
|
@@ -1,5 +1,10 @@
|
|
1
1
|
export declare const DEFAULT_MIN_WIDTH = 300;
|
2
2
|
export declare const DEFAULT_MAX_WIDTH = 1182;
|
3
|
+
/** 默认宽度. */
|
3
4
|
export declare const DEFAULT_WIDTH = 594;
|
5
|
+
/** 默认布局方式. */
|
4
6
|
export declare const DEFAULT_LAYOUT = "vertical";
|
5
|
-
|
7
|
+
/** 单位为 SPAN 时的默认宽度. */
|
8
|
+
export declare const DEFAULT_LABEL_COL_FOR_SPAN = 4;
|
9
|
+
/** 单位为 PX 时的默认宽度. */
|
10
|
+
export declare const DEFAULT_LABEL_COL_FOR_PX = 100;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export declare const
|
1
|
+
export declare const FORM_ID__VAR_GRID_CONFIG = "kg-table-save-grid-config";
|
2
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
3
|
export default _default;
|
@@ -49,6 +49,8 @@ export interface IKgVarState {
|
|
49
49
|
}
|
50
50
|
export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState, {
|
51
51
|
getCurrentFormID(): string | null;
|
52
|
+
/** 判断某个界面标识是否已经存在. */
|
53
|
+
isFormIDExisting(): (formID?: string | null) => boolean;
|
52
54
|
isRetrievingVar(): (formID?: string | null) => boolean | null;
|
53
55
|
isRetrievingVarProfileMaster(): (formID?: string | null) => boolean | null;
|
54
56
|
isCreating(): (formID?: string | null) => boolean | null;
|
@@ -123,7 +125,13 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
123
125
|
leave(formID: string): void;
|
124
126
|
retrieve(formID?: string | null): Promise<void>;
|
125
127
|
setIsCreating(formID: string, value: boolean): void;
|
126
|
-
|
128
|
+
/**
|
129
|
+
*
|
130
|
+
* @param formID
|
131
|
+
* @param value
|
132
|
+
* @param onReady 是否等待变量配置数据加载完成.
|
133
|
+
*/
|
134
|
+
setIsUpdating(formID: string, value: boolean, onReady?: boolean): void;
|
127
135
|
setIsCopying(formID: string, value: boolean): void;
|
128
136
|
setIsDeleting(formID: string, deleting: boolean): void;
|
129
137
|
setIsCreatingRequesting(formID: string, value: boolean): void;
|
@@ -11,6 +11,9 @@ declare const _default: {
|
|
11
11
|
pleaseSelectVarProfileMaster: string;
|
12
12
|
profile: string;
|
13
13
|
};
|
14
|
+
KgSubmitHeaderVarSubmitConfig: {
|
15
|
+
labelColValidateMessage: string;
|
16
|
+
};
|
14
17
|
KgTable: {
|
15
18
|
canNotUpdateSystemVarGridMaster: string;
|
16
19
|
column: string;
|
@@ -32,7 +35,7 @@ declare const _default: {
|
|
32
35
|
KgTableSettingGridConfigModal: {
|
33
36
|
title: string;
|
34
37
|
};
|
35
|
-
|
38
|
+
KgTableSettingVarGridMasterModal: {
|
36
39
|
title: string;
|
37
40
|
};
|
38
41
|
KgTableSettingSaveGridMaster: {
|
@@ -11,6 +11,9 @@ declare const _default: {
|
|
11
11
|
pleaseSelectVarProfileMaster: string;
|
12
12
|
profile: string;
|
13
13
|
};
|
14
|
+
KgSubmitHeaderVarSubmitConfig: {
|
15
|
+
labelColValidateMessage: string;
|
16
|
+
};
|
14
17
|
KgTable: {
|
15
18
|
canNotUpdateSystemVarGridMaster: string;
|
16
19
|
column: string;
|
@@ -32,7 +35,7 @@ declare const _default: {
|
|
32
35
|
KgTableSettingGridConfigModal: {
|
33
36
|
title: string;
|
34
37
|
};
|
35
|
-
|
38
|
+
KgTableSettingVarGridMasterModal: {
|
36
39
|
title: string;
|
37
40
|
};
|
38
41
|
KgTableSettingSaveGridMaster: {
|
@@ -120,6 +120,13 @@ export declare const enum KG_POSSIBILITY_DATA_TYPE {
|
|
120
120
|
NUMBER = "number",
|
121
121
|
BOOLEAN = "boolean"
|
122
122
|
}
|
123
|
+
/** 宽度单位. */
|
124
|
+
export declare const enum KG_WIDTH_UNIT {
|
125
|
+
/** 网格. */
|
126
|
+
SPAN = "SPAN",
|
127
|
+
/** 像素. */
|
128
|
+
PX = "PX"
|
129
|
+
}
|
123
130
|
/** 系统描述表中的键. */
|
124
131
|
export declare const enum KG_DESCRIPTION_CODE_NAME {
|
125
132
|
/** 是否. */
|
@@ -129,5 +136,7 @@ export declare const enum KG_DESCRIPTION_CODE_NAME {
|
|
129
136
|
/** 网格布局可选的列. */
|
130
137
|
VAR_SPAN = "var_span",
|
131
138
|
/** 按钮显示样式. */
|
132
|
-
VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type"
|
139
|
+
VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type",
|
140
|
+
/** 宽度单位. */
|
141
|
+
VAR_WIDTH_UNIT = "var_width_unit"
|
133
142
|
}
|
package/package.json
CHANGED