@kengic/vue 0.22.1-beta.0 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. package/CHANGELOG.md +62 -22
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +7709 -6673
  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/src/apis/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
  8. package/dist/src/apis/WMS/Controllers/DescriptionController/index.d.ts +1 -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/index.d.ts +1 -0
  13. package/dist/src/apis/WMS/models.d.ts +28 -4
  14. package/dist/src/components/KgAppSelect/index.hooks.d.ts +3 -3
  15. package/dist/src/components/KgAppSelect/index.store.d.ts +30 -29
  16. package/dist/src/components/KgButton/KgButton.d.ts +18 -12
  17. package/dist/src/components/KgButton/index.d.ts +4 -4
  18. package/dist/src/components/KgButton/index.hooks.d.ts +68 -67
  19. package/dist/src/components/KgButton/index.store.d.ts +57 -193
  20. package/dist/src/components/KgForm/index.hooks.d.ts +37 -30
  21. package/dist/src/components/KgForm/index.store.d.ts +88 -41
  22. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -3
  23. package/dist/src/components/KgForm.Item/{KgForm.Item.hooks.d.ts → KgForm.Item.service.d.ts} +3 -3
  24. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +8 -7
  25. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +6 -5
  26. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +6 -5
  27. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +6 -5
  28. package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +3 -3
  29. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +6 -5
  30. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +6 -5
  31. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +6 -7
  32. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -5
  33. package/dist/src/components/KgForm.Item/components/{KgForm.Item.Select.hooks.d.ts → KgForm.Item.Select.service.d.ts} +16 -13
  34. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +6 -5
  35. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +6 -5
  36. package/dist/src/components/KgForm.Item/index.d.ts +1 -1
  37. package/dist/src/components/KgForm.Item/index.vm.d.ts +9 -7
  38. package/dist/src/components/KgResizable/KgResizable.d.ts +52 -52
  39. package/dist/src/components/KgSearch/KgSearch.d.ts +0 -16
  40. package/dist/src/components/KgSearch/KgSearch.service.d.ts +32 -0
  41. package/dist/src/components/KgSearch/index.hooks.d.ts +57 -138
  42. package/dist/src/components/KgSearch/index.store.d.ts +84 -193
  43. package/dist/src/components/KgSubmit/index.hooks.d.ts +112 -278
  44. package/dist/src/components/KgSubmit/index.store.d.ts +71 -257
  45. package/dist/src/components/KgSubmit/index.vm.d.ts +2 -1
  46. package/dist/src/components/KgTable/{KgTable.hooks.d.ts → KgTable.service.d.ts} +8 -16
  47. package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +0 -1
  48. package/dist/src/components/KgTable/components/setting/{KgTable.Setting.hooks.d.ts → KgTable.Setting.service.d.ts} +1 -1
  49. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -2
  50. package/dist/src/components/KgTable/index.hooks.d.ts +79 -427
  51. package/dist/src/components/KgTable/index.store.d.ts +127 -647
  52. package/dist/src/components/KgTable/index.vm.d.ts +1 -1
  53. package/dist/src/components/KgVar/index.hooks.d.ts +103 -3468
  54. package/dist/src/components/KgVar/index.store.d.ts +136 -3229
  55. package/dist/src/components/KgVar/index.store.service.d.ts +2 -1
  56. package/dist/src/components/KgVar/index.vm.d.ts +7 -7
  57. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
  58. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
  59. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
  60. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
  61. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
  62. package/dist/src/components/KgVarConfig/index.store.d.ts +23 -16
  63. package/dist/src/components/KgVarConfig/index.vm.d.ts +32 -0
  64. package/dist/src/components/KgWarehouse/index.hooks.d.ts +10 -6
  65. package/dist/src/components/KgWarehouse/index.store.d.ts +15 -14
  66. package/dist/src/components/util.d.ts +7 -7
  67. package/dist/src/config/index.hooks.d.ts +31 -38
  68. package/dist/src/config/index.store.d.ts +74 -52
  69. package/dist/src/consts/i18n/en.d.ts +10 -6
  70. package/dist/src/consts/i18n/zh_CN.d.ts +10 -6
  71. package/dist/src/consts/index.d.ts +0 -277
  72. package/dist/src/consts/index.vm.d.ts +503 -75
  73. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +7 -1
  74. package/dist/src/utils/kg-var.util.d.ts +4 -3
  75. package/dist/src/utils/kg.util.d.ts +13 -16
  76. package/package.json +2 -2
  77. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Delete.d.ts +0 -18
  78. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/DeleteBatch.d.ts +0 -18
  79. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Edit.d.ts +0 -16
  80. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ExportXls.d.ts +0 -30
  81. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ImportExcel.d.ts +0 -15
  82. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/List.d.ts +0 -37
  83. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/QueryById.d.ts +0 -19
  84. package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +0 -28
  85. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -32
  86. /package/dist/src/components/KgModal/{KgModal.hooks.d.ts → KgModal.service.d.ts} +0 -0
  87. /package/dist/src/components/KgSubmit/{KgSubmit.hooks.d.ts → KgSubmit.service.d.ts} +0 -0
  88. /package/dist/src/components/KgTable/components/setting/config/{KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts → KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts} +0 -0
  89. /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.Vars.d.ts → KgVarConfig.Modal.Var.VarConfigControl.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,35 @@
1
+ # 0.24.0
2
+
3
+ ### 添加 IUseKgTable.onBeforeParseParameter() 事件
4
+
5
+ # 0.23.0
6
+
7
+ ### 1. 修改组件 API 的获取方式, 由方法改为属性,
8
+
9
+ ```typescript
10
+ // 旧
11
+ // --------------------------------------------------
12
+ const kgVar = useKgVar();
13
+
14
+ kgVar.xxx;
15
+ kgVar.kgButton().xxx;
16
+ kgVar.kgForm().xxx;
17
+ kgVar.kgSearch().xxx;
18
+ kgVar.kgSubmit().xxx;
19
+ kgVar.kgTable().xxx;
20
+
21
+ // 新
22
+ // --------------------------------------------------
23
+ const kgVar = useKgVar();
24
+
25
+ kgVar.xxx;
26
+ kgVar.kgButton.xxx;
27
+ kgVar.kgForm.xxx;
28
+ kgVar.kgSearch.xxx;
29
+ kgVar.kgSubmit.xxx;
30
+ kgVar.kgTable.xxx;
31
+ ```
32
+
1
33
  # 0.22.0
2
34
 
3
35
  ### 1. 重命名类
@@ -38,59 +70,67 @@
38
70
  // 旧
39
71
  // --------------------------------------------------
40
72
  const kgVar = useKgVar();
41
- const kgSearch = useKgSearch();
42
73
  const kgButton = usekgButton();
43
- // ...
74
+ const kgForm = usekgForm();
75
+ const kgSearch = useKgSearch();
76
+ const kgSubmit = useKgSubmit();
77
+ const kgTable = useKgTable();
44
78
 
45
- kgVar.onRetrieve();
46
- kgSearch.onSearch();
47
- kgButton.onClick();
48
- // ...
79
+ kgVar.xxx;
80
+ kgButton.xxx;
81
+ kgForm.xxx;
82
+ kgSearch.xxx;
83
+ kgSubmit.xxx;
84
+ kgTable.xxx;
49
85
 
50
86
  // 新
51
87
  // --------------------------------------------------
52
88
  const kgVar = useKgVar();
53
89
 
54
- kgVar.onRetrieve();
55
- kgVar.kgSearch().onSearch();
56
- kgVar.kgButton().onClick();
57
- // ...
90
+ kgVar.xxx;
91
+ kgVar.kgButton().xxx;
92
+ kgVar.kgForm().xxx;
93
+ kgVar.kgSearch().xxx;
94
+ kgVar.kgSubmit().xxx;
95
+ kgVar.kgTable().xxx;
58
96
  ```
59
97
 
60
98
  ### 4. `kgVar` 中的部分方法移到对应的组件的 API 中并且重命名:
61
99
 
62
100
  #### 4.1. kgButton
63
101
 
64
- `kgVar.setIsCreating(true)` 变更为 `kgVar.kgButton().setCurrentButton({ type: KG_BUTTON_TYPE.CREATE });`
102
+ `kgVar.setIsCreating(true)` 变更为 `kgVar.kgButton.setCurrentButton({ type: KG_BUTTON_TYPE.CREATE });`
65
103
 
66
- `kgVar.setIsUpdating(true)` 变更为 `kgVar.kgButton().setCurrentButton({ type: KG_BUTTON_TYPE.UPDATE });`
104
+ `kgVar.setIsUpdating(true)` 变更为 `kgVar.kgButton.setCurrentButton({ type: KG_BUTTON_TYPE.UPDATE });`
67
105
 
68
- `kgVar.setIsCopying(true)` 变更为 `kgVar.kgButton().setCurrentButton({ type: KG_BUTTON_TYPE.COPY });`
106
+ `kgVar.setIsCopying(true)` 变更为 `kgVar.kgButton.setCurrentButton({ type: KG_BUTTON_TYPE.COPY });`
69
107
 
70
- `kgVar.setIsDeleting(true)` 变更为 `kgVar.kgButton().setCurrentButton({ type: KG_BUTTON_TYPE.DELETE });`
108
+ `kgVar.setIsDeleting(true)` 变更为 `kgVar.kgButton.setCurrentButton({ type: KG_BUTTON_TYPE.DELETE });`
71
109
 
72
- `kgVar.setIsCreating(false)` 变更为 `kgVar.kgButton().setCurrentButton(null);`
110
+ `kgVar.setIsCreating(false)` 变更为 `kgVar.kgButton.setCurrentButton(null);`
73
111
 
74
- `kgVar.setIsUpdating(false)` 变更为 `kgVar.kgButton().setCurrentButton(null);`
112
+ `kgVar.setIsUpdating(false)` 变更为 `kgVar.kgButton.setCurrentButton(null);`
75
113
 
76
- `kgVar.setIsCopying(false)` 变更为 `kgVar.kgButton().setCurrentButton(null);`
114
+ `kgVar.setIsCopying(false)` 变更为 `kgVar.kgButton.setCurrentButton(null);`
77
115
 
78
- `kgVar.setIsDeleting(false)` 变更为 `kgVar.kgButton().setCurrentButton(null);`
116
+ `kgVar.setIsDeleting(false)` 变更为 `kgVar.kgButton.setCurrentButton(null);`
79
117
 
80
118
  #### 4.2. kgSubmit
81
119
 
82
- `kgVar.patchVarSubmitField()` 变更为 `kgVar.kgSubmit().patchVarSubmitDetail()`
120
+ `kgVar.patchVarSubmitField()` 变更为 `kgVar.kgSubmit.patchVarSubmitDetail()`
121
+
122
+ `kgButton.onDeleteOk()` 变更为 `kgVar.kgSubmit.onOk()`
83
123
 
84
- ### 5. kgVar.kgButton().onClick() 事件回调函数参数类型变更,
124
+ ### 5. kgVar.kgButton.onClick() 事件回调函数参数类型变更,
85
125
 
86
126
  ```typescript
87
127
  // 旧
88
128
  // --------------------------------------------------
89
- kgVar.kgButton().onClick(async (button) => {});
129
+ kgVar.kgButton.onClick(async (button) => {});
90
130
 
91
131
  // 新
92
132
  // --------------------------------------------------
93
- kgVar.kgButton().onClick(async ({ button }) => {});
133
+ kgVar.kgButton.onClick(async ({ button }) => {});
94
134
  ```
95
135
 
96
136
  # 0.21.0