@kengic/vue 0.23.1 → 0.23.3-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/CHANGELOG.md +0 -2
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +7559 -7122
  4. package/dist/setting-outlined.7f72790b.mjs +8 -0
  5. package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +2 -0
  6. package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +2 -0
  7. package/dist/src/apis/WMS/models.d.ts +9 -9
  8. package/dist/src/components/KgButton/KgButton.Item.d.ts +15 -15
  9. package/dist/src/components/KgButton/KgButton.Item.data.d.ts +15 -15
  10. package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +14 -14
  11. package/dist/src/components/KgButton/components/KgButton.Create.d.ts +14 -14
  12. package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +15 -15
  13. package/dist/src/components/KgButton/components/KgButton.Export.d.ts +14 -14
  14. package/dist/src/components/KgButton/components/KgButton.ExportTemplate.d.ts +14 -14
  15. package/dist/src/components/KgButton/components/KgButton.Import.d.ts +14 -14
  16. package/dist/src/components/KgButton/components/KgButton.Other.d.ts +15 -15
  17. package/dist/src/components/KgButton/components/KgButton.Search.d.ts +15 -15
  18. package/dist/src/components/KgButton/components/KgButton.Update.d.ts +14 -14
  19. package/dist/src/components/KgForm/KgForm.d.ts +3 -3
  20. package/dist/src/components/KgForm/index.d.ts +4 -4
  21. package/dist/src/components/KgModal/KgModal.d.ts +105 -21
  22. package/dist/src/components/KgModal/KgModal.service.d.ts +1 -1
  23. package/dist/src/components/KgModal/components/KgModal.HeaderButtons.d.ts +18 -0
  24. package/dist/src/components/KgResizable/KgResizable.d.ts +4 -4
  25. package/dist/src/components/KgSearch/index.hooks.d.ts +1 -7
  26. package/dist/src/components/KgSearch/index.store.d.ts +3 -3
  27. package/dist/src/components/KgSubmit/index.hooks.d.ts +4 -4
  28. package/dist/src/components/KgSubmit/index.store.d.ts +9 -2
  29. package/dist/src/components/KgVar/index.hooks.d.ts +7 -1
  30. package/dist/src/components/KgVar/index.store.d.ts +5 -1
  31. package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +1 -1
  32. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +6 -23
  33. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -16
  34. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +4 -21
  35. package/dist/src/components/KgVarConfig/index.d.ts +1 -0
  36. package/dist/src/components/KgVarConfig/index.hooks.d.ts +17 -0
  37. package/dist/src/components/KgVarConfig/index.store.d.ts +11 -5
  38. package/dist/src/components/KgVarConfig/index.vm.d.ts +8 -0
  39. package/dist/src/consts/i18n/en.d.ts +21 -4
  40. package/dist/src/consts/i18n/zh_CN.d.ts +21 -4
  41. package/dist/src/consts/index.vm.d.ts +74 -64
  42. package/dist/src/helpers/ant-design-vue.d.ts +1 -1
  43. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +0 -1
  44. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +111 -192
  45. package/dist/src/pages/KgPageDda/{index.const.d.ts → index.vm.d.ts} +1 -0
  46. package/dist/src/services/http-client.d.ts +6 -4
  47. package/dist/src/utils/kg-var.util.d.ts +31 -1
  48. package/dist/src/utils/kg.util.d.ts +38 -35
  49. package/package.json +1 -1
@@ -30,38 +30,17 @@ export declare class KgUtil {
30
30
  static downloadFile(data: string | BlobPart, fileName: string, contentType?: string): void;
31
31
  /**
32
32
  * <p>处理请求参数.</p>
33
+ * <ul>
34
+ * <li>删除无用属性,</li>
35
+ * <li>日期转换为字符串,</li>
36
+ * <li>解析动态属性, 比如 {WAREHOUSE},</li>
37
+ * </ul>
38
+ *
33
39
  * @param params 请求参数.
34
40
  * @param formID 界面标识.
35
41
  * @param $dayjs dayjs.
36
42
  */
37
43
  static parseParams(params: Record<string, any> | null | undefined, formID?: string | null, $dayjs?: typeof dayjs): Record<string, any>;
38
- /**
39
- * <p>获取根据查询条件拼接后的 SQL 语句片段.</p>
40
- * <p>根据查询参数拼接为一个 SQL 片段, 格式如下: `WHERE ... ORDER BY ...`.</p>
41
- * <p>
42
- * 参数 formID 和 operators 只能其中一个传值.
43
- * <ul>
44
- * <li>如果 formID 传值, 表示通过变量配置获取各个字段的高级查询操作符.</li>
45
- * <li>如果 operators 传值, 表示直接使用传入的 operators 作为各个字段的高级查询操作符.</li>
46
- * </ul>
47
- * </p>
48
- *
49
- * @param param.params 请求参数.
50
- * @param param.formID 界面标识.
51
- * @param param.operators 各个字段的高级查询操作符.
52
- * @param param.$dayjs dayjs.
53
- */
54
- static getQueryHeaders(param: {
55
- $dayjs: typeof dayjs;
56
- formID: string | null | undefined;
57
- operators: Record<string, any> | null | undefined;
58
- params: Record<string, any> | null | undefined;
59
- }): {
60
- operatorJSON: string;
61
- orderBySql: string;
62
- sql: string;
63
- whereSql: string;
64
- };
65
44
  /**
66
45
  * 处理请求参数: 解析字符串类型的参数值.
67
46
  *
@@ -76,15 +55,20 @@ export declare class KgUtil {
76
55
  *
77
56
  * @param value 参数的原始值.
78
57
  */
79
- private static parseParamFromString;
58
+ static parseParamFromString(value: string): string;
80
59
  /**
81
- * 处理请求参数: 解析 DayJS 类型的参数值.
82
- * @param param.key 属性名.
83
- * @param param.value 参数的原始值.
60
+ * 处理请求参数: 解析 Dayjs 类型的参数值.
84
61
  * @param param.formID 界面标识.
85
62
  * @param param.isPad 是否补齐日期格式. 即将 `YYYY-MM-DD` 补齐为 `YYYY-MM-DD 00:00:00`, 将 `HH:mm:ss` 补齐为 `1900-01-01 HH:mm:ss`.
63
+ * @param param.key 属性名.
64
+ * @param param.value 参数的原始值.
86
65
  */
87
- private static parseParamFromDayJS;
66
+ static parseParamFromDayjs(param: {
67
+ formID?: string | null;
68
+ isPad?: boolean;
69
+ key: string;
70
+ value: any;
71
+ }): string;
88
72
  /**
89
73
  * 确认弹窗.
90
74
  * 设置了多个属性的默认值, 简化使用.
@@ -93,11 +77,30 @@ export declare class KgUtil {
93
77
  */
94
78
  static confirm(props: IKgVarButtonModalProperties): ModalFunc;
95
79
  /**
96
- * 如果此错误不是表单验证错误, 则抛出此错误.
97
- *
98
- * @param e 错误对象.
80
+ * @deprecated 已弃用, 请使用 {@link KgUtil.throwNotFormValidationError()} 方法.
99
81
  */
100
82
  static throwIfNotFormError(e: any): void;
83
+ /**
84
+ * <p>如果不是表单验证错误, 则直接抛出该错误.</p>
85
+ * <p>如果是表单验证错误, 则弹框提示表单验证失败消息.</p>
86
+ *
87
+ * @param param.error 错误对象.
88
+ * @param param.formID 界面标识. 通过界面标识可以显示对应字段的翻译, 否则只能显示对应字段的变量名称.
89
+ * @param param.isShowFormValidationErrorMessage 是否弹框提示表单验证失败消息. 默认为 true.
90
+ */
91
+ static throwNotFormValidationError(param: {
92
+ error: {
93
+ errorFields: Array<{
94
+ errors: Array<string>;
95
+ name: Array<string>;
96
+ warnings: Array<any>;
97
+ }>;
98
+ outOfDate: boolean;
99
+ values: Record<string, any>;
100
+ } | any;
101
+ formID?: string;
102
+ isShowFormValidationErrorMessage?: boolean;
103
+ }): void;
101
104
  /**
102
105
  * 将 JSON 字符串转换为 JSON 对象, 如果转化失败, 则返回空对象.
103
106
  * @param str JSON 字符串.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.23.1",
3
+ "version": "0.23.3-beta.0",
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",