@kengic/vue 0.5.3 → 0.5.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.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +2436 -2271
- package/dist/src/apis/WMS/models.d.ts +10 -2
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +2 -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 +6 -2
- package/dist/src/consts/i18n/zh_CN.d.ts +6 -2
- package/dist/src/consts/index.d.ts +15 -1
- package/dist/src/utils/kg.util.d.ts +1 -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
@@ -45,6 +45,10 @@ export declare class VarButton {
|
|
45
45
|
dis_no_select_flg?: number | null;
|
46
46
|
/** 是否启用(EnableFlag). */
|
47
47
|
ena_flg?: number | null;
|
48
|
+
/** 导出 EXCEL 的文件名. */
|
49
|
+
export_excel_filename?: string | null;
|
50
|
+
/** 导出 EXCEL 的文件名后缀. */
|
51
|
+
export_excel_suffix?: string | null;
|
48
52
|
/** 界面标识(FormID). */
|
49
53
|
frm_id?: string | null;
|
50
54
|
/** 按钮图标(Icon). */
|
@@ -137,7 +141,7 @@ export declare class VarDTO {
|
|
137
141
|
varProfile?: VarProfileDTO | null;
|
138
142
|
/** 查询条件配置. */
|
139
143
|
varProfileConfig?: VarProfileConfig | null;
|
140
|
-
/**
|
144
|
+
/** 表单配置. */
|
141
145
|
varSubmitConfig?: VarSubmitConfig | null;
|
142
146
|
/** 提交字段. */
|
143
147
|
varSubmitFields?: Array<VarSubmitField> | null;
|
@@ -399,8 +403,10 @@ export declare class VarProfileMasterDTO {
|
|
399
403
|
varProfileDetails?: Array<VarProfileDetail> | null;
|
400
404
|
constructor(obj?: VarProfileMasterDTO);
|
401
405
|
}
|
402
|
-
/**
|
406
|
+
/** 表单配置. */
|
403
407
|
export declare class VarSubmitConfig {
|
408
|
+
/** 是否默认全屏. */
|
409
|
+
dft_fullscreen_flg?: number | null;
|
404
410
|
/** 默认宽度. */
|
405
411
|
dft_width?: number | null;
|
406
412
|
/** 界面标识. */
|
@@ -411,6 +417,8 @@ export declare class VarSubmitConfig {
|
|
411
417
|
id?: string | null;
|
412
418
|
/** 文本宽度. */
|
413
419
|
label_col?: number | null;
|
420
|
+
/** 文本宽度单位. */
|
421
|
+
label_col_unit?: string | null;
|
414
422
|
/** 布局方式. */
|
415
423
|
layout?: string | null;
|
416
424
|
/** 最大宽度. */
|
@@ -5,9 +5,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
kgType: import("vue").PropType<import("../../../consts").KG_BTN_TYPE | null>;
|
6
6
|
kgPrimary: {
|
7
7
|
type: import("vue").PropType<boolean | null | undefined>;
|
8
|
-
/** 点击按钮. */
|
9
8
|
default: undefined;
|
10
9
|
};
|
10
|
+
/** 点击按钮. */
|
11
11
|
kgIcon: import("vue").PropType<string | null>;
|
12
12
|
kgText: import("vue").PropType<string | null>;
|
13
13
|
kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
|
@@ -20,9 +20,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
20
20
|
kgType: import("vue").PropType<import("../../../consts").KG_BTN_TYPE | null>;
|
21
21
|
kgPrimary: {
|
22
22
|
type: import("vue").PropType<boolean | null | undefined>;
|
23
|
-
/** 点击按钮. */
|
24
23
|
default: undefined;
|
25
24
|
};
|
25
|
+
/** 点击按钮. */
|
26
26
|
kgIcon: import("vue").PropType<string | null>;
|
27
27
|
kgText: import("vue").PropType<string | null>;
|
28
28
|
kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
|
@@ -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,10 +35,10 @@ declare const _default: {
|
|
32
35
|
KgTableSettingGridConfigModal: {
|
33
36
|
title: string;
|
34
37
|
};
|
35
|
-
|
38
|
+
KgTableSettingSaveGridMaster: {
|
36
39
|
title: string;
|
37
40
|
};
|
38
|
-
|
41
|
+
KgTableSettingVarGridMasterModal: {
|
39
42
|
title: string;
|
40
43
|
};
|
41
44
|
KgVarConfig: {
|
@@ -85,6 +88,7 @@ declare const _default: {
|
|
85
88
|
edit: string;
|
86
89
|
emptyText: string;
|
87
90
|
export: string;
|
91
|
+
exportSuccess: string;
|
88
92
|
import: string;
|
89
93
|
lookup: string;
|
90
94
|
no: string;
|
@@ -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,10 +35,10 @@ declare const _default: {
|
|
32
35
|
KgTableSettingGridConfigModal: {
|
33
36
|
title: string;
|
34
37
|
};
|
35
|
-
|
38
|
+
KgTableSettingSaveGridMaster: {
|
36
39
|
title: string;
|
37
40
|
};
|
38
|
-
|
41
|
+
KgTableSettingVarGridMasterModal: {
|
39
42
|
title: string;
|
40
43
|
};
|
41
44
|
KgVarConfig: {
|
@@ -84,6 +87,7 @@ declare const _default: {
|
|
84
87
|
edit: string;
|
85
88
|
emptyText: string;
|
86
89
|
export: string;
|
90
|
+
exportSuccess: string;
|
87
91
|
import: string;
|
88
92
|
lookup: string;
|
89
93
|
no: string;
|
@@ -120,6 +120,18 @@ 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
|
+
}
|
130
|
+
/** EXCEL 文件后缀. */
|
131
|
+
export declare const enum KG_EXCEL_SUFFIX {
|
132
|
+
XLS = "xls",
|
133
|
+
XLSX = "xlsx"
|
134
|
+
}
|
123
135
|
/** 系统描述表中的键. */
|
124
136
|
export declare const enum KG_DESCRIPTION_CODE_NAME {
|
125
137
|
/** 是否. */
|
@@ -129,5 +141,7 @@ export declare const enum KG_DESCRIPTION_CODE_NAME {
|
|
129
141
|
/** 网格布局可选的列. */
|
130
142
|
VAR_SPAN = "var_span",
|
131
143
|
/** 按钮显示样式. */
|
132
|
-
VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type"
|
144
|
+
VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type",
|
145
|
+
/** 宽度单位. */
|
146
|
+
VAR_WIDTH_UNIT = "var_width_unit"
|
133
147
|
}
|
@@ -22,7 +22,7 @@ export declare class KgUtil {
|
|
22
22
|
* @param fileName 文件名称, 包含后缀.
|
23
23
|
* @param contentType 文件类型.
|
24
24
|
*/
|
25
|
-
static downloadFile(data: string | BlobPart, fileName: string, contentType
|
25
|
+
static downloadFile(data: string | BlobPart, fileName: string, contentType?: string): void;
|
26
26
|
/**
|
27
27
|
* 解析请求参数.
|
28
28
|
* 1. 填充通用参数的值
|
package/package.json
CHANGED