@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.
Files changed (57) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +10142 -10225
  4. package/dist/project/index.ts +1 -1
  5. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Add.d.ts +2 -2
  6. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Delete.d.ts +1 -1
  7. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/DeleteBatch.d.ts +1 -1
  8. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Edit.d.ts +2 -2
  9. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ExportXls.d.ts +1 -1
  10. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ImportExcel.d.ts +1 -1
  11. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/List.d.ts +2 -2
  12. package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/QueryById.d.ts +2 -2
  13. package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Add.d.ts +1 -1
  14. package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Edit.d.ts +1 -1
  15. package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/List.d.ts +1 -1
  16. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/QueryById.d.ts +2 -2
  17. package/dist/src/apis/WMS/Controllers/index.d.ts +2 -2
  18. package/dist/src/apis/WMS/models.d.ts +179 -251
  19. package/dist/src/components/KgButton/index.hooks.d.ts +239 -42
  20. package/dist/src/components/KgButton/index.store.d.ts +171 -53
  21. package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +4 -6
  22. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +3 -3
  23. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +1 -1
  24. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +1 -1
  25. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +1 -1
  26. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +1 -1
  27. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +1 -1
  28. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +5 -3
  29. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +5 -3
  30. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +3 -3
  31. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +1 -1
  32. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +1 -1
  33. package/dist/src/components/KgForm.Item/index.vm.d.ts +5 -5
  34. package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +0 -7
  35. package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +4 -4
  36. package/dist/src/components/KgSubmit/index.hooks.d.ts +316 -19
  37. package/dist/src/components/KgSubmit/index.store.d.ts +247 -24
  38. package/dist/src/components/KgVar/index.hooks.d.ts +2796 -2027
  39. package/dist/src/components/KgVar/index.store.d.ts +2421 -2395
  40. package/dist/src/components/KgVar/index.store.service.d.ts +3 -3
  41. package/dist/src/components/KgVarConfig/components/submit/{KgVarConfig.Modal.Submit.VarSubmitField.d.ts → KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts} +2 -2
  42. package/dist/src/components/KgVarConfig/index.store.d.ts +7 -7
  43. package/dist/src/consts/i18n/en.d.ts +5 -4
  44. package/dist/src/consts/i18n/zh_CN.d.ts +5 -4
  45. package/dist/src/consts/index.d.ts +4 -4
  46. package/dist/src/consts/index.vm.d.ts +8 -11
  47. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +170 -440
  48. package/dist/src/utils/kg-var.util.d.ts +23 -11
  49. package/dist/src/utils/kg.util.d.ts +19 -10
  50. package/package.json +4 -4
  51. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/index.d.ts +0 -0
  52. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Delete.d.ts +0 -0
  53. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/DeleteBatch.d.ts +0 -0
  54. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ExportXls.d.ts +0 -0
  55. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ImportExcel.d.ts +0 -0
  56. /package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/index.d.ts +0 -0
  57. /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, VarSubmitField } from '../../apis/WMS/models';
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 transformVarSubmitConfig(varSubmitConfig?: VarSubmitConfig | null): VarSubmitConfig | null;
7
- export declare function transformVarSubmitFields(varSubmitFields?: Array<VarSubmitField> | null): Array<VarSubmitField>;
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.VarSubmitField";
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 IKgVarConfigModalSubmitVarSubmitFieldProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
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 { VarVariableCatalog, VarContext } from '../../apis/WMS/models';
2
+ import { VarVariable, VarConfigDescription } from '../../apis/WMS/models';
3
3
  export interface IKgVarConfigState {
4
4
  /** 变量. */
5
5
  variable: {
6
6
  /** 当前选中的变量. */
7
- selectedVar: VarContext | null;
7
+ selectedVar: VarVariable | null;
8
8
  /** 当前选中的变量别名. */
9
- selectedVarCatalog: VarVariableCatalog | null;
9
+ selectedVarCatalog: VarConfigDescription | null;
10
10
  };
11
11
  }
12
12
  export declare type IKgVarConfigStoreDefinition = StoreDefinition<'KgVarConfig', IKgVarConfigState, {
13
- getSelectedVar: VarContext | null;
14
- getSelectedVarCatalog: VarVariableCatalog | null;
13
+ getSelectedVar: VarVariable | null;
14
+ getSelectedVarCatalog: VarConfigDescription | null;
15
15
  }, {
16
- setSelectedVar(variable: VarContext | null): void;
17
- setSelectedVarCatalog(variable: VarVariableCatalog | null): void;
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
- VarSubmitField: string;
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
- VarSubmitField: string;
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 VarVariableConfig.ctrl_prop
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 KG_VAR_SUBMIT__DISPLAY_TYPE {
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
- KG_DYNAMIC_QUERY = "Kg-Dynamic-Query",
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 字符串, 由后端进行解析.</p>
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 IKgSubmitConfigProps {
37
- /** 创建时, 确认按钮的文本对应的变量名. */
38
- 'footer.ok-button.text-var-name.creating'?: string;
39
- /** 更新时, 确认按钮的文本对应的变量名. */
40
- 'footer.ok-button.text-var-name.updating'?: string;
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 VarVariableConfig.ctrl_prop} 字段, 根据表单控件的类型, 设置额外的参数.</p>
49
- * @see VarVariableConfig.ctrl_prop
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 {