@kengic/vue 0.23.0 → 0.23.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +9391 -8199
  4. package/dist/project/build/script/buildConf.ts +1 -2
  5. package/dist/project/build/script/postBuild.ts +1 -1
  6. package/dist/project/src/api/sys/model/userModel.ts +1 -0
  7. package/dist/setting-outlined.7f72790b.mjs +8 -0
  8. package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +2 -0
  9. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -7
  10. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
  11. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
  12. package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +2 -0
  13. package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
  14. package/dist/src/apis/WMS/models.d.ts +27 -11
  15. package/dist/src/components/KgAppSelect/index.hooks.d.ts +3 -3
  16. package/dist/src/components/KgAppSelect/index.store.d.ts +30 -29
  17. package/dist/src/components/KgButton/KgButton.Item.d.ts +15 -15
  18. package/dist/src/components/KgButton/KgButton.Item.data.d.ts +15 -15
  19. package/dist/src/components/KgButton/KgButton.d.ts +18 -12
  20. package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +14 -14
  21. package/dist/src/components/KgButton/components/KgButton.Create.d.ts +14 -14
  22. package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +15 -15
  23. package/dist/src/components/KgButton/components/KgButton.Export.d.ts +14 -14
  24. package/dist/src/components/KgButton/components/KgButton.ExportTemplate.d.ts +14 -14
  25. package/dist/src/components/KgButton/components/KgButton.Import.d.ts +14 -14
  26. package/dist/src/components/KgButton/components/KgButton.Other.d.ts +15 -15
  27. package/dist/src/components/KgButton/components/KgButton.Search.d.ts +15 -15
  28. package/dist/src/components/KgButton/components/KgButton.Update.d.ts +14 -14
  29. package/dist/src/components/KgButton/index.d.ts +4 -4
  30. package/dist/src/components/KgButton/index.hooks.d.ts +7 -5
  31. package/dist/src/components/KgButton/index.store.d.ts +19 -16
  32. package/dist/src/components/KgForm/KgForm.d.ts +3 -3
  33. package/dist/src/components/KgForm/index.d.ts +4 -4
  34. package/dist/src/components/KgForm/index.hooks.d.ts +21 -8
  35. package/dist/src/components/KgForm/index.store.d.ts +74 -34
  36. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -3
  37. package/dist/src/components/KgForm.Item/KgForm.Item.service.d.ts +3 -3
  38. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +8 -7
  39. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +6 -7
  40. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +6 -5
  41. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +6 -5
  42. package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +3 -3
  43. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +6 -5
  44. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +6 -5
  45. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +6 -5
  46. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -3
  47. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +16 -13
  48. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +6 -5
  49. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +6 -5
  50. package/dist/src/components/KgForm.Item/index.d.ts +1 -1
  51. package/dist/src/components/KgForm.Item/index.vm.d.ts +9 -7
  52. package/dist/src/components/KgModal/KgModal.d.ts +105 -21
  53. package/dist/src/components/KgModal/KgModal.service.d.ts +1 -1
  54. package/dist/src/components/KgModal/components/KgModal.HeaderButtons.d.ts +18 -0
  55. package/dist/src/components/KgResizable/KgResizable.d.ts +55 -55
  56. package/dist/src/components/KgSearch/KgSearch.d.ts +0 -16
  57. package/dist/src/components/KgSearch/KgSearch.service.d.ts +20 -16
  58. package/dist/src/components/KgSearch/index.hooks.d.ts +30 -12
  59. package/dist/src/components/KgSearch/index.store.d.ts +44 -37
  60. package/dist/src/components/KgSubmit/index.hooks.d.ts +48 -15
  61. package/dist/src/components/KgSubmit/index.store.d.ts +53 -47
  62. package/dist/src/components/KgSubmit/index.vm.d.ts +2 -1
  63. package/dist/src/components/KgTable/components/setting/KgTable.Setting.service.d.ts +1 -1
  64. package/dist/src/components/KgTable/index.hooks.d.ts +23 -8
  65. package/dist/src/components/KgTable/index.store.d.ts +48 -34
  66. package/dist/src/components/KgTable/index.vm.d.ts +1 -1
  67. package/dist/src/components/KgVar/index.hooks.d.ts +15 -11
  68. package/dist/src/components/KgVar/index.store.d.ts +55 -60
  69. package/dist/src/components/KgVar/index.store.service.d.ts +2 -1
  70. package/dist/src/components/KgVar/index.vm.d.ts +7 -7
  71. package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +1 -1
  72. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +6 -23
  73. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -16
  74. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +4 -21
  75. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
  76. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
  77. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
  78. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
  79. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
  80. package/dist/src/components/KgVarConfig/index.d.ts +1 -0
  81. package/dist/src/components/KgVarConfig/index.hooks.d.ts +17 -0
  82. package/dist/src/components/KgVarConfig/index.store.d.ts +29 -16
  83. package/dist/src/components/KgVarConfig/index.vm.d.ts +40 -0
  84. package/dist/src/components/KgWarehouse/index.hooks.d.ts +10 -6
  85. package/dist/src/components/KgWarehouse/index.store.d.ts +15 -14
  86. package/dist/src/components/util.d.ts +7 -7
  87. package/dist/src/consts/i18n/en.d.ts +31 -11
  88. package/dist/src/consts/i18n/zh_CN.d.ts +31 -11
  89. package/dist/src/consts/index.d.ts +0 -284
  90. package/dist/src/consts/index.vm.d.ts +435 -24
  91. package/dist/src/helpers/ant-design-vue.d.ts +1 -1
  92. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +0 -1
  93. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +117 -192
  94. package/dist/src/pages/KgPageDda/{index.const.d.ts → index.vm.d.ts} +1 -0
  95. package/dist/src/services/http-client.d.ts +2 -2
  96. package/dist/src/utils/kg-var.util.d.ts +4 -3
  97. package/dist/src/utils/kg.util.d.ts +42 -25
  98. package/package.json +2 -2
  99. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Delete.d.ts +0 -18
  100. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/DeleteBatch.d.ts +0 -18
  101. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Edit.d.ts +0 -16
  102. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ExportXls.d.ts +0 -30
  103. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ImportExcel.d.ts +0 -15
  104. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/List.d.ts +0 -37
  105. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/QueryById.d.ts +0 -19
  106. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -32
  107. /package/dist/src/components/KgTable/components/setting/config/{KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts → KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts} +0 -0
  108. /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.Vars.d.ts → KgVarConfig.Modal.Var.VarConfigControl.d.ts} +0 -0
@@ -30,13 +30,6 @@ export declare class KgUtil {
30
30
  static downloadFile(data: string | BlobPart, fileName: string, contentType?: string): void;
31
31
  /**
32
32
  * <p>处理请求参数.</p>
33
- * <ol>
34
- * <li>填充通用参数的值:
35
- * <ul>
36
- * <li>仓库: '{WAREHOUSE}'</li>
37
- * </ul>
38
- * </li>
39
- * </ol>
40
33
  * @param params 请求参数.
41
34
  * @param formID 界面标识.
42
35
  * @param $dayjs dayjs.
@@ -44,32 +37,27 @@ export declare class KgUtil {
44
37
  static parseParams(params: Record<string, any> | null | undefined, formID?: string | null, $dayjs?: typeof dayjs): Record<string, any>;
45
38
  /**
46
39
  * <p>获取根据查询条件拼接后的 SQL 语句片段.</p>
47
- * <p>根据查询参数拼接为一个 SQL 片段, 格式如下: `WHERE ... ORDER BY ...`.</p>
40
+ * <p>根据查询参数拼接为一个 SQL, 格式如下: `WHERE ... ORDER BY ...OFFSET...`.</p>
48
41
  * <p>
49
- * 参数 formID 和 operators 只能其中一个传值.
42
+ * 参数 formID 和 dynamicQueryOperatorModel 只能其中一个传值.
50
43
  * <ul>
51
- * <li>如果 formID 传值, 表示通过变量配置获取各个字段的高级查询操作符.</li>
52
- * <li>如果 operators 传值, 表示直接使用传入的 operators 作为各个字段的高级查询操作符.</li>
44
+ * <li>如果 formID 传值, 表示通过变量配置获取高级查询操作符.</li>
45
+ * <li>如果 dynamicQueryOperators 传值, 表示直接使用传入的 dynamicQueryOperatorModel 作为高级查询操作符.</li>
53
46
  * </ul>
54
47
  * </p>
55
- * <ol>
56
- * <li>填充通用参数的值:
57
- * <ul>
58
- * <li>仓库: '{WAREHOUSE}'</li>
59
- * </ul>
60
- * </li>
61
- * </ol>
62
- * @param param.params 请求参数.
63
- * @param param.formID 界面标识.
64
- * @param param.operators 各个字段的高级查询操作符.
48
+ *
65
49
  * @param param.$dayjs dayjs.
50
+ * @param param.dynamicQueryOperators 各个字段的高级查询操作符.
51
+ * @param param.formID 界面标识.
52
+ * @param param.params 请求参数.
66
53
  */
67
54
  static getQueryHeaders(param: {
68
55
  $dayjs: typeof dayjs;
56
+ dynamicQueryOperatorModel: Record<string, any> | null | undefined;
69
57
  formID: string | null | undefined;
70
- operators: Record<string, any> | null | undefined;
71
58
  params: Record<string, any> | null | undefined;
72
59
  }): {
60
+ offsetSql: string;
73
61
  operatorJSON: string;
74
62
  orderBySql: string;
75
63
  sql: string;
@@ -77,6 +65,16 @@ export declare class KgUtil {
77
65
  };
78
66
  /**
79
67
  * 处理请求参数: 解析字符串类型的参数值.
68
+ *
69
+ * <ol>
70
+ * <li>填充通用参数的值:
71
+ * <ul>
72
+ * <li>{WAREHOUSE}: 当前仓库编号</li>
73
+ * <li>{LOCALE}: 当前语言</li>
74
+ * </ul>
75
+ * </li>
76
+ * </ol>
77
+ *
80
78
  * @param value 参数的原始值.
81
79
  */
82
80
  private static parseParamFromString;
@@ -96,11 +94,30 @@ export declare class KgUtil {
96
94
  */
97
95
  static confirm(props: IKgVarButtonModalProperties): ModalFunc;
98
96
  /**
99
- * 如果此错误不是表单验证错误, 则抛出此错误.
100
- *
101
- * @param e 错误对象.
97
+ * @deprecated 已弃用, 请使用 {@link KgUtil.throwNotFormValidationError()} 方法.
102
98
  */
103
99
  static throwIfNotFormError(e: any): void;
100
+ /**
101
+ * <p>如果不是表单验证错误, 则直接抛出该错误.</p>
102
+ * <p>如果是表单验证错误, 则弹框提示表单验证失败消息.</p>
103
+ *
104
+ * @param param.error 错误对象.
105
+ * @param param.formID 界面标识. 通过界面标识可以显示对应字段的翻译, 否则只能显示对应字段的变量名称.
106
+ * @param param.isShowFormValidationErrorMessage 是否弹框提示表单验证失败消息. 默认为 true.
107
+ */
108
+ static throwNotFormValidationError(param: {
109
+ error: {
110
+ errorFields: Array<{
111
+ errors: Array<string>;
112
+ name: Array<string>;
113
+ warnings: Array<any>;
114
+ }>;
115
+ outOfDate: boolean;
116
+ values: Record<string, any>;
117
+ } | any;
118
+ formID?: string;
119
+ isShowFormValidationErrorMessage?: boolean;
120
+ }): void;
104
121
  /**
105
122
  * 将 JSON 字符串转换为 JSON 对象, 如果转化失败, 则返回空对象.
106
123
  * @param str JSON 字符串.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "scripts": {
5
5
  "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
@@ -41,7 +41,7 @@
41
41
  "@iconify-icons/mdi": "1.2.48",
42
42
  "@iconify-icons/ph": "1.2.5",
43
43
  "@iconify/vue": "4.1.1",
44
- "@kengic/pont": "1.2.11",
44
+ "@kengic/pont": "1.2.13",
45
45
  "@rys-fe/vite-plugin-theme": "0.8.6",
46
46
  "@types/fs-extra": "9.0.13",
47
47
  "@types/inquirer": "8.2.5",
@@ -1,18 +0,0 @@
1
- import { IRequestConfig, IRequestOptions } from '../../../../services';
2
- /** 请求参数. */
3
- export declare class DeleteQuery {
4
- /** id */
5
- id: string | null;
6
- constructor(obj?: DeleteQuery);
7
- }
8
- /**
9
- * 变量翻译-通过id删除
10
- *
11
- * @param config 请求配置.
12
- * @param option 请求选项.
13
- */
14
- export declare function Delete(config?: IRequestConfig<DeleteQuery, {}>, option?: IRequestOptions): Promise<string>;
15
- export declare namespace Delete {
16
- var method: "DELETE";
17
- var url: string;
18
- }
@@ -1,18 +0,0 @@
1
- import { IRequestConfig, IRequestOptions } from '../../../../services';
2
- /** 请求参数. */
3
- export declare class DeleteBatchQuery {
4
- /** ids */
5
- ids: string | null;
6
- constructor(obj?: DeleteBatchQuery);
7
- }
8
- /**
9
- * 变量翻译-批量删除.
10
- *
11
- * @param config 请求配置.
12
- * @param option 请求选项.
13
- */
14
- export declare function DeleteBatch(config?: IRequestConfig<DeleteBatchQuery, {}>, option?: IRequestOptions): Promise<string>;
15
- export declare namespace DeleteBatch {
16
- var method: "DELETE";
17
- var url: string;
18
- }
@@ -1,16 +0,0 @@
1
- import { IRequestConfig, IRequestOptions } from '../../../../services';
2
- import * as DEF from '../../../def';
3
- /** 请求参数. */
4
- export declare class EditQuery {
5
- }
6
- /**
7
- * 变量翻译-编辑
8
- *
9
- * @param config 请求配置.
10
- * @param option 请求选项.
11
- */
12
- export declare function Edit(config?: IRequestConfig<EditQuery, DEF.WMS.VarConfigDescription>, option?: IRequestOptions): Promise<string>;
13
- export declare namespace Edit {
14
- var method: "POST";
15
- var url: string;
16
- }
@@ -1,30 +0,0 @@
1
- import { IRequestConfig, IRequestOptions } from '../../../../services';
2
- /** 请求参数. */
3
- export declare class ExportXlsQuery {
4
- /** 定制级别(CustomLevel). */
5
- cust_lvl?: number | null;
6
- /** 界面标识(FormID). */
7
- frm_id?: string | null;
8
- /** 分组(GroupName). */
9
- grp_nam?: string | null;
10
- /** 主键. */
11
- id?: string | null;
12
- /** 语言(LocaleID). */
13
- locale_id?: string | null;
14
- /** 变量名称(VariableName). */
15
- var_nam?: string | null;
16
- /** 显示文本(Text). */
17
- var_text?: string | null;
18
- constructor(obj?: ExportXlsQuery);
19
- }
20
- /**
21
- * 变量翻译-导出
22
- *
23
- * @param config 请求配置.
24
- * @param option 请求选项.
25
- */
26
- export declare function ExportXls(config?: IRequestConfig<ExportXlsQuery, {}>, option?: IRequestOptions): Promise<any>;
27
- export declare namespace ExportXls {
28
- var method: "GET";
29
- var url: string;
30
- }
@@ -1,15 +0,0 @@
1
- import { IRequestConfig, IRequestOptions } from '../../../../services';
2
- /** 请求参数. */
3
- export declare class ImportExcelQuery {
4
- }
5
- /**
6
- * 变量翻译-导入
7
- *
8
- * @param config 请求配置.
9
- * @param option 请求选项.
10
- */
11
- export declare function ImportExcel(config?: IRequestConfig<ImportExcelQuery, {}>, option?: IRequestOptions): Promise<Record<any, any>>;
12
- export declare namespace ImportExcel {
13
- var method: "POST";
14
- var url: string;
15
- }
@@ -1,37 +0,0 @@
1
- import { IRequestConfig, IRequestOptions } from '../../../../services';
2
- import * as DEF from '../../../def';
3
- /** 请求参数. */
4
- export declare class ListQuery {
5
- /** 定制级别(CustomLevel). */
6
- cust_lvl?: number | null;
7
- /** 界面标识(FormID). */
8
- frm_id?: string | null;
9
- /** 分组(GroupName). */
10
- grp_nam?: string | null;
11
- /** 语言(LocaleID). */
12
- locale_id?: string | null;
13
- /** 变量名称(VariableName). */
14
- var_nam?: string | null;
15
- /** 显示文本(Text). */
16
- var_text?: string | null;
17
- /** 排序字段. */
18
- column?: string | null;
19
- /** 排序方式. */
20
- order?: 'asc' | 'desc' | null;
21
- /** 当前页数. */
22
- pageNo?: number | null;
23
- /** 每页条数. */
24
- pageSize?: number | null;
25
- constructor(obj?: ListQuery);
26
- }
27
- /**
28
- * 变量翻译-分页列表查询.
29
- *
30
- * @param config 请求配置.
31
- * @param option 请求选项.
32
- */
33
- export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.VarConfigDescription>>;
34
- export declare namespace List {
35
- var method: "GET";
36
- var url: string;
37
- }
@@ -1,19 +0,0 @@
1
- import { IRequestConfig, IRequestOptions } from '../../../../services';
2
- import * as DEF from '../../../def';
3
- /** 请求参数. */
4
- export declare class QueryByIdQuery {
5
- /** id */
6
- id: string | null;
7
- constructor(obj?: QueryByIdQuery);
8
- }
9
- /**
10
- * 变量翻译-通过id查询
11
- *
12
- * @param config 请求配置.
13
- * @param option 请求选项.
14
- */
15
- export declare function QueryById(config?: IRequestConfig<QueryByIdQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.VarConfigDescription>;
16
- export declare namespace QueryById {
17
- var method: "GET";
18
- var url: string;
19
- }
@@ -1,32 +0,0 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- export declare const getProps: () => {
3
- visible: PropType<boolean>;
4
- 'onUpdate:visible': PropType<(value: boolean) => void>;
5
- /** 确定. */
6
- onKgOk: PropType<(args: {
7
- isAllForm: boolean;
8
- isAllLanguage: boolean;
9
- }) => void>;
10
- };
11
- export declare type IKgVarConfigModalVarCreateModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
- declare const _default: import("vue").DefineComponent<{
13
- visible: PropType<boolean>;
14
- 'onUpdate:visible': PropType<(value: boolean) => void>;
15
- /** 确定. */
16
- onKgOk: PropType<(args: {
17
- isAllForm: boolean;
18
- isAllLanguage: boolean;
19
- }) => void>;
20
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "kgOk")[], "update:visible" | "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
21
- visible: PropType<boolean>;
22
- 'onUpdate:visible': PropType<(value: boolean) => void>;
23
- /** 确定. */
24
- onKgOk: PropType<(args: {
25
- isAllForm: boolean;
26
- isAllLanguage: boolean;
27
- }) => void>;
28
- }>> & {
29
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
30
- onKgOk?: ((...args: any[]) => any) | undefined;
31
- }, {}>;
32
- export default _default;