@kengic/vue 0.21.5-beta.2 → 0.22.1-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/CHANGELOG.md +156 -68
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +10150 -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 +141 -68
  20. package/dist/src/components/KgButton/index.store.d.ts +175 -54
  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 +2642 -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-route.util.d.ts +3 -2
  49. package/dist/src/utils/kg-var.util.d.ts +23 -11
  50. package/dist/src/utils/kg.util.d.ts +19 -10
  51. package/package.json +4 -4
  52. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/index.d.ts +0 -0
  53. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Delete.d.ts +0 -0
  54. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/DeleteBatch.d.ts +0 -0
  55. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ExportXls.d.ts +0 -0
  56. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ImportExcel.d.ts +0 -0
  57. /package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/index.d.ts +0 -0
  58. /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.VarVariableCatalog.d.ts → KgVarConfig.Modal.Var.VarConfigDescription.d.ts} +0 -0
@@ -7,9 +7,10 @@ export declare class KgRouteUtil {
7
7
  */
8
8
  static addOnlineRoutesForAllApps(routes: any[]): any[];
9
9
  /**
10
- * 根据地址获取菜单.
10
+ * 根据菜单地址地址获取菜单.
11
+ *
11
12
  * @param menus 菜单列表.
12
- * @param path 地址.
13
+ * @param path 菜单地址.
13
14
  * @return {} 如果能找到某个菜单的地址等于传入的地址, 则返回该菜单, 否则返回 null.
14
15
  */
15
16
  static getMenuByPath(menus: Array<Menu> | null | undefined, path: string): Menu | null;
@@ -12,25 +12,37 @@ export declare class KgVarUtil {
12
12
  static parseRequestParamsToJSON(params?: string | null): Record<string, any>;
13
13
  /**
14
14
  * 根据控件类型, 将任意的值(可能非法)转换为合法的值.
15
- * @param formID 界面标识.
16
- * @param variableName 变量名称.
17
- * @param $dayjs dayjs.
18
- * @param value 原始的值.
19
- * @param operation 操作类型. C: 创建, R: 查询, U: 更新, D: 删除, CP: 复制.
15
+ *
16
+ * @param param.$dayjs dayjs.
17
+ * @param param.buttonVarName 「变量配置:表单控件」所属的按钮的变量名称.
18
+ * @param param.formID 界面标识.
19
+ * @param param.value 原始的值.
20
+ * @param param.variableName 变量名称.
20
21
  * @return {} 转换后的合法的值.
21
22
  */
22
- static transformFormItemValue(formID: string, variableName: string, $dayjs: typeof dayjs, value: any, operation: 'C' | 'R' | 'U' | 'D' | 'CP'): any;
23
+ static transformFormItemValue(param: {
24
+ $dayjs: typeof dayjs;
25
+ buttonVarName: string | null | undefined;
26
+ formID: string;
27
+ value: any;
28
+ varName: string;
29
+ }): any;
23
30
  /**
24
31
  * 根据控件类型, 将任意的高级查询操作符(可能非法)转换为合法的值.
25
- * @param frm_id 界面标识.
26
- * @param var_name 变量名称.
27
- * @param value 原始的高级查询操作符.
32
+ *
33
+ * @param param.formID 界面标识.
34
+ * @param param.value 原始的高级查询操作符.
35
+ * @param param.varName 变量名称.
28
36
  * @return {} 转换后的合法的值.
29
37
  */
30
- static transformFormItemDynamicQueryOperator(frm_id: string, var_name: string, value: string | null | undefined): string;
38
+ static transformFormItemDynamicQueryOperator(param: {
39
+ formID: string;
40
+ value: string | null | undefined;
41
+ varName: string;
42
+ }): string;
31
43
  /**
32
44
  * 根据控件类型获取高级查询操作符的下拉列表.
33
45
  * @param controlType 控件类型.
34
46
  */
35
- static getDynamicQueryOperatorSelectOptions(controlType: KG_FORM_ITEM_CONTROL_TYPE): any;
47
+ static getDynamicQueryOperatorSelectOptions(controlType: KG_FORM_ITEM_CONTROL_TYPE | null | undefined): any;
36
48
  }
@@ -21,7 +21,11 @@ export declare class KgUtil {
21
21
  * 下载文件.
22
22
  * @param data 文件数据.
23
23
  * @param fileName 文件名称, 包含后缀.
24
- * @param contentType 文件类型.
24
+ * @param contentType <p>文件类型. 如果为空, 则根据文件名的后缀自动设置.</p>
25
+ * <ul>
26
+ * <li><code>.xls</code>: <code>application/vnd.ms-excel</code></li>
27
+ * <li><code>.xlsx</code>: <code>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</code></li>
28
+ * </ul>
25
29
  */
26
30
  static downloadFile(data: string | BlobPart, fileName: string, contentType?: string): void;
27
31
  /**
@@ -39,8 +43,8 @@ export declare class KgUtil {
39
43
  */
40
44
  static parseParams(params: Record<string, any> | null | undefined, formID?: string | null, $dayjs?: typeof dayjs): Record<string, any>;
41
45
  /**
42
- * <p>获取高级查询的各个请求头的值.</p>
43
- * <p>处理查询参数, 最终拼接为一个 SQL 格式如下: `WHERE ... ORDER BY ...`.</p>
46
+ * <p>获取根据查询条件拼接后的 SQL 语句片段.</p>
47
+ * <p>根据查询参数拼接为一个 SQL 片段, 格式如下: `WHERE ... ORDER BY ...`.</p>
44
48
  * <p>
45
49
  * 参数 formID 和 operators 只能其中一个传值.
46
50
  * <ul>
@@ -55,16 +59,21 @@ export declare class KgUtil {
55
59
  * </ul>
56
60
  * </li>
57
61
  * </ol>
58
- * @param params 请求参数.
59
- * @param formID 界面标识.
60
- * @param operators 各个字段的高级查询操作符.
61
- * @param $dayjs dayjs.
62
- * @return {} 拼接好的 SQL.
62
+ * @param param.params 请求参数.
63
+ * @param param.formID 界面标识.
64
+ * @param param.operators 各个字段的高级查询操作符.
65
+ * @param param.$dayjs dayjs.
63
66
  */
64
- static getQuerySql(params: Record<string, any> | null | undefined, formID: string | null | undefined, operators: Record<string, any> | null | undefined, $dayjs: typeof dayjs): {
67
+ static getQueryHeaders(param: {
68
+ $dayjs: typeof dayjs;
69
+ formID: string | null | undefined;
70
+ operators: Record<string, any> | null | undefined;
71
+ params: Record<string, any> | null | undefined;
72
+ }): {
73
+ operatorJSON: string;
74
+ orderBySql: string;
65
75
  sql: string;
66
76
  whereSql: string;
67
- orderBySql: string;
68
77
  };
69
78
  /**
70
79
  * 处理请求参数: 解析字符串类型的参数值.
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.21.5-beta.2",
3
+ "version": "0.22.1-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",
7
7
  "--------------------------------------------------": "",
8
- "publish:all:beta": "npm run bump-version:beta && npm run publish:all",
9
- "publish:all:patch": "npm run bump-version:patch && npm run publish:all",
10
- "publish:all:minor": "npm run bump-version:minor && npm run publish:all",
11
8
  "publish:all:major": "npm run bump-version:major && npm run publish:all",
9
+ "publish:all:minor": "npm run bump-version:minor && npm run publish:all",
10
+ "publish:all:patch": "npm run bump-version:patch && npm run publish:all",
11
+ "publish:all:beta": "npm run bump-version:beta && npm run publish:all",
12
12
  "----- --------------------------------------------": "",
13
13
  "gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
14
14
  "--- ----------------------------------------------": "",