@kengic/vue 0.21.5-beta.2 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +85 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +10142 -10225
- package/dist/project/index.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Add.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Delete.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/DeleteBatch.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Edit.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ExportXls.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ImportExcel.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/List.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/QueryById.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Add.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Edit.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/List.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/QueryById.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/index.d.ts +2 -2
- package/dist/src/apis/WMS/models.d.ts +179 -251
- package/dist/src/components/KgButton/index.hooks.d.ts +239 -42
- package/dist/src/components/KgButton/index.store.d.ts +171 -53
- package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +4 -6
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +5 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +5 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +1 -1
- package/dist/src/components/KgForm.Item/index.vm.d.ts +5 -5
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +0 -7
- package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +4 -4
- package/dist/src/components/KgSubmit/index.hooks.d.ts +316 -19
- package/dist/src/components/KgSubmit/index.store.d.ts +247 -24
- package/dist/src/components/KgVar/index.hooks.d.ts +2796 -2027
- package/dist/src/components/KgVar/index.store.d.ts +2421 -2395
- package/dist/src/components/KgVar/index.store.service.d.ts +3 -3
- package/dist/src/components/KgVarConfig/components/submit/{KgVarConfig.Modal.Submit.VarSubmitField.d.ts → KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts} +2 -2
- package/dist/src/components/KgVarConfig/index.store.d.ts +7 -7
- package/dist/src/consts/i18n/en.d.ts +5 -4
- package/dist/src/consts/i18n/zh_CN.d.ts +5 -4
- package/dist/src/consts/index.d.ts +4 -4
- package/dist/src/consts/index.vm.d.ts +8 -11
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +170 -440
- package/dist/src/utils/kg-var.util.d.ts +23 -11
- package/dist/src/utils/kg.util.d.ts +19 -10
- package/package.json +4 -4
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/index.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Delete.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/DeleteBatch.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ExportXls.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ImportExcel.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/index.d.ts +0 -0
- /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.VarVariableCatalog.d.ts → KgVarConfig.Modal.Var.VarConfigDescription.d.ts} +0 -0
@@ -1,10 +1,10 @@
|
|
1
|
-
import { VarButton, VarButtonConfig, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig,
|
1
|
+
import { VarButton, VarButtonConfig, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
2
2
|
export declare function transformVarProfileConfig(varProfileConfig?: VarProfileConfig | null): VarProfileConfig | null;
|
3
3
|
export declare function transformVarGridConfig(varGridConfig?: VarGridConfig | null): VarGridConfig | null;
|
4
4
|
export declare function transformVarGridMasterDTOs(varGridMasterDTOs?: Array<VarGridMasterDTO> | null): Array<VarGridMasterDTO>;
|
5
5
|
export declare function transformVarProfileMasterDTOs(varProfileMasterDTOs?: Array<VarProfileMasterDTO> | null): Array<VarProfileMasterDTO>;
|
6
|
-
export declare function
|
7
|
-
export declare function
|
6
|
+
export declare function transformVarSubmitConfigs(varSubmitConfigs?: Array<VarSubmitConfig> | null): Array<VarSubmitConfig>;
|
7
|
+
export declare function transformVarSubmitDetails(varSubmitDetails?: Array<VarSubmitDetail> | null): Array<VarSubmitDetail>;
|
8
8
|
export declare function transformVarButtons(varButtons?: Array<VarButton> | null): Array<VarButton>;
|
9
9
|
export declare function transformVarButtonConfig(varButtonConfig?: VarButtonConfig | null): VarButtonConfig | null;
|
10
10
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
-
export declare const FORM_ID__VAR_SUBMIT_FIELD = "kg-submit.
|
2
|
+
export declare const FORM_ID__VAR_SUBMIT_FIELD = "kg-submit.VarSubmitDetail";
|
3
3
|
export declare const getProps: () => {
|
4
4
|
/** 主页面的页面标识. */
|
5
5
|
hostFormID: {
|
@@ -7,7 +7,7 @@ export declare const getProps: () => {
|
|
7
7
|
required: boolean;
|
8
8
|
};
|
9
9
|
};
|
10
|
-
export declare type
|
10
|
+
export declare type IKgVarConfigModalSubmitVarSubmitDetailProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
11
11
|
declare const _default: import("vue").DefineComponent<{
|
12
12
|
/** 主页面的页面标识. */
|
13
13
|
hostFormID: {
|
@@ -1,20 +1,20 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
|
-
import {
|
2
|
+
import { VarVariable, VarConfigDescription } from '../../apis/WMS/models';
|
3
3
|
export interface IKgVarConfigState {
|
4
4
|
/** 变量. */
|
5
5
|
variable: {
|
6
6
|
/** 当前选中的变量. */
|
7
|
-
selectedVar:
|
7
|
+
selectedVar: VarVariable | null;
|
8
8
|
/** 当前选中的变量别名. */
|
9
|
-
selectedVarCatalog:
|
9
|
+
selectedVarCatalog: VarConfigDescription | null;
|
10
10
|
};
|
11
11
|
}
|
12
12
|
export declare type IKgVarConfigStoreDefinition = StoreDefinition<'KgVarConfig', IKgVarConfigState, {
|
13
|
-
getSelectedVar:
|
14
|
-
getSelectedVarCatalog:
|
13
|
+
getSelectedVar: VarVariable | null;
|
14
|
+
getSelectedVarCatalog: VarConfigDescription | null;
|
15
15
|
}, {
|
16
|
-
setSelectedVar(variable:
|
17
|
-
setSelectedVarCatalog(variable:
|
16
|
+
setSelectedVar(variable: VarVariable | null): void;
|
17
|
+
setSelectedVarCatalog(variable: VarConfigDescription | null): void;
|
18
18
|
}>;
|
19
19
|
export declare type IKgVarConfigStore = ReturnType<IKgVarConfigStoreDefinition>;
|
20
20
|
export declare const useKgVarConfigStore: () => IKgVarConfigStoreDefinition;
|
@@ -170,16 +170,16 @@ declare const _default: {
|
|
170
170
|
variableName: string;
|
171
171
|
variables: string;
|
172
172
|
};
|
173
|
-
KgVarConfigSelectFormIdModal: {
|
174
|
-
title: string;
|
175
|
-
};
|
176
173
|
KgVarConfigModalButton: {
|
177
174
|
VarButton: string;
|
178
175
|
VarButtonConfig: string;
|
179
176
|
};
|
180
177
|
KgVarConfigModalSubmit: {
|
181
178
|
VarSubmitConfig: string;
|
182
|
-
|
179
|
+
VarSubmitDetail: string;
|
180
|
+
};
|
181
|
+
KgVarConfigSelectFormIdModal: {
|
182
|
+
title: string;
|
183
183
|
};
|
184
184
|
KgWarehouse: {
|
185
185
|
reloadMessage: string;
|
@@ -206,6 +206,7 @@ declare const _default: {
|
|
206
206
|
edit: string;
|
207
207
|
empty: string;
|
208
208
|
emptyText: string;
|
209
|
+
'execute-success': string;
|
209
210
|
export: string;
|
210
211
|
exportSuccess: string;
|
211
212
|
formId: string;
|
@@ -169,16 +169,16 @@ declare const _default: {
|
|
169
169
|
variableName: string;
|
170
170
|
variables: string;
|
171
171
|
};
|
172
|
-
KgVarConfigSelectFormIdModal: {
|
173
|
-
title: string;
|
174
|
-
};
|
175
172
|
KgVarConfigModalButton: {
|
176
173
|
VarButton: string;
|
177
174
|
VarButtonConfig: string;
|
178
175
|
};
|
179
176
|
KgVarConfigModalSubmit: {
|
180
177
|
VarSubmitConfig: string;
|
181
|
-
|
178
|
+
VarSubmitDetail: string;
|
179
|
+
};
|
180
|
+
KgVarConfigSelectFormIdModal: {
|
181
|
+
title: string;
|
182
182
|
};
|
183
183
|
KgWarehouse: {
|
184
184
|
reloadMessage: string;
|
@@ -205,6 +205,7 @@ declare const _default: {
|
|
205
205
|
edit: string;
|
206
206
|
empty: string;
|
207
207
|
emptyText: string;
|
208
|
+
'execute-success': string;
|
208
209
|
export: string;
|
209
210
|
exportSuccess: string;
|
210
211
|
formId: string;
|
@@ -29,7 +29,7 @@ export declare const KG_APPS: Array<KG_APP>;
|
|
29
29
|
export declare const KG_APP_PREFIXS: Array<KG_APP_PREFIX>;
|
30
30
|
/**
|
31
31
|
* 表单控件类型.
|
32
|
-
* @see
|
32
|
+
* @see VarConfigControl.ctrl_prop
|
33
33
|
* @see IKgVariableConfigProps
|
34
34
|
*/
|
35
35
|
export declare const enum KG_FORM_ITEM_CONTROL_TYPE {
|
@@ -163,7 +163,7 @@ export declare const enum KG_BUTTON_DISPLAY_TYPE {
|
|
163
163
|
SELECT = "SELECT"
|
164
164
|
}
|
165
165
|
/** 表单显示方式. */
|
166
|
-
export declare const enum
|
166
|
+
export declare const enum KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE {
|
167
167
|
/** 弹窗. */
|
168
168
|
MODAL = "MODAL",
|
169
169
|
/** 抽屉. */
|
@@ -249,7 +249,7 @@ export declare enum KG_DYNAMIC_QUERY_OPERATOR {
|
|
249
249
|
/** 请求头部. */
|
250
250
|
export declare enum KG_HTTP_HEADERS {
|
251
251
|
/** 是否启用高级查询. */
|
252
|
-
|
252
|
+
KG_IS_DYNAMIC_QUERY = "Kg-Is-Dynamic-Query",
|
253
253
|
/** 拼接后的查询 SQL: WHERE + ORDER BY. */
|
254
254
|
KG_QUERY_SQL = "Kg-Query-Sql",
|
255
255
|
/** 拼接后的查询 SQL: WHERE. */
|
@@ -258,7 +258,7 @@ export declare enum KG_HTTP_HEADERS {
|
|
258
258
|
KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql",
|
259
259
|
/**
|
260
260
|
* <p>高级查询时, 每个查询字段的操作符(=,>,<...).</p>
|
261
|
-
* <p>是一个 JSON 字符串,
|
261
|
+
* <p>是一个 JSON 字符串, 由后端进行解析. 其中的 key 表示查询字段的名称, 其中的 value 表示查询字段的操作符.</p>
|
262
262
|
*/
|
263
263
|
KG_QUERY_OPERATOR = "Kg-Query-Operator",
|
264
264
|
/**
|
@@ -33,20 +33,17 @@ export declare type IKgButtonModalProps = ModalFuncProps & {
|
|
33
33
|
* <p>提交弹窗的配置参数.</p>
|
34
34
|
* <p>对应于 {@link VarSubmitConfig#props} 字段.</p>
|
35
35
|
*/
|
36
|
-
export interface
|
37
|
-
/**
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
'footer.ok-button.text-var-name.copying'?: string;
|
43
|
-
/** 删除时, 确认按钮的文本对应的变量名. */
|
44
|
-
'footer.ok-button.text-var-name.deleting'?: string;
|
36
|
+
export interface IKgVarSubmitConfigProps {
|
37
|
+
/** 确认按钮. */
|
38
|
+
okButton?: {
|
39
|
+
/** 确认按钮的文本, 实际是一个变量名, 根据变量进行翻译. */
|
40
|
+
textVarName?: string;
|
41
|
+
};
|
45
42
|
}
|
46
43
|
/**
|
47
44
|
* <p>表单控件的参数.</p>
|
48
|
-
* <p>对应于 {@link
|
49
|
-
* @see
|
45
|
+
* <p>对应于 {@link VarConfigControl.ctrl_prop} 字段, 根据表单控件的类型, 设置额外的参数.</p>
|
46
|
+
* @see VarConfigControl.ctrl_prop
|
50
47
|
* @see KG_FORM_ITEM_TYPE
|
51
48
|
*/
|
52
49
|
export interface IKgVariableConfigProps {
|