@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
@@ -1,272 +1,69 @@
1
+ import { FormInstance } from 'ant-design-vue';
2
+ import { ComputedRef, Ref } from 'vue';
1
3
  import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
2
- import { IKgVarSubmitConfigProps, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG_BUTTON_TYPE } from '../../consts';
3
- import { IKgSubmitAfterValidateCb, IKgSubmitBeforeOkCb, IKgSubmitBeforeOpenCb, IKgSubmitBeforeRequestCb, IKgSubmitCloseCb, IKgSubmitErrorCb, IKgSubmitEvent, IKgSubmitOkCb, IKgSubmitOpenCb } from './index.store';
4
- /**
5
- * @param formID 界面标识.
6
- */
7
- export declare function useKgSubmit(formID?: string | null): {
8
- /** 界面标识. */
9
- formID: string;
10
- /** 状态数据. */
11
- store: import("pinia").Store<"KgSubmit", {
12
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
13
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
14
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
15
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
16
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
17
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
18
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
19
- isLoadingMap: Map<string, boolean>;
20
- modelMap: Map<string, Record<string, any>>;
21
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
22
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
23
- */
24
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
25
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
26
- }, {
27
- isLoading(state: {
28
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
29
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
30
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
31
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
32
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
33
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
34
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
35
- isLoadingMap: Map<string, boolean>;
36
- modelMap: Map<string, Record<string, any>>;
37
- okListenersMap: Map<string, IKgSubmitOkCb[]>;
38
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
39
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
40
- } & import("pinia").PiniaCustomStateProperties<{
41
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
42
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
43
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
44
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
45
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
46
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
47
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
48
- isLoadingMap: Map<string, boolean>;
49
- modelMap: Map<string, Record<string, any>>;
50
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
51
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
52
- */
53
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
54
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
55
- }>): (formID?: string | null | undefined) => boolean;
56
- getModel(state: {
57
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
58
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
59
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
60
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
61
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
62
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
63
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
64
- isLoadingMap: Map<string, boolean>;
65
- modelMap: Map<string, Record<string, any>>;
66
- okListenersMap: Map<string, IKgSubmitOkCb[]>;
67
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
68
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
69
- } & import("pinia").PiniaCustomStateProperties<{
70
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
71
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
72
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
73
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
74
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
75
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
76
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
77
- isLoadingMap: Map<string, boolean>;
78
- modelMap: Map<string, Record<string, any>>;
79
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
80
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
81
- */
82
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
83
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
84
- }>): (formID?: string | null | undefined) => Record<string, any> | null;
85
- getFormRef(state: {
86
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
87
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
88
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
89
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
90
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
91
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
92
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
93
- isLoadingMap: Map<string, boolean>;
94
- modelMap: Map<string, Record<string, any>>;
95
- okListenersMap: Map<string, IKgSubmitOkCb[]>;
96
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
97
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
98
- } & import("pinia").PiniaCustomStateProperties<{
99
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
100
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
101
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
102
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
103
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
104
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
105
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
106
- isLoadingMap: Map<string, boolean>;
107
- modelMap: Map<string, Record<string, any>>;
108
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
109
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
110
- */
111
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
112
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
113
- }>): (formID?: string | null | undefined) => import("vue").Ref<import("ant-design-vue").FormInstance | null>;
114
- getRules(state: {
115
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
116
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
117
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
118
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
119
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
120
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
121
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
122
- isLoadingMap: Map<string, boolean>;
123
- modelMap: Map<string, Record<string, any>>;
124
- okListenersMap: Map<string, IKgSubmitOkCb[]>;
125
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
126
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
127
- } & import("pinia").PiniaCustomStateProperties<{
128
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
129
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
130
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
131
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
132
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
133
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
134
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
135
- isLoadingMap: Map<string, boolean>;
136
- modelMap: Map<string, Record<string, any>>;
137
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
138
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
139
- */
140
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
141
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
142
- }>): (formID?: string | null | undefined) => import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>;
143
- getVarSubmitConfig(state: {
144
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
145
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
146
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
147
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
148
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
149
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
150
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
151
- isLoadingMap: Map<string, boolean>;
152
- modelMap: Map<string, Record<string, any>>;
153
- okListenersMap: Map<string, IKgSubmitOkCb[]>;
154
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
155
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
156
- } & import("pinia").PiniaCustomStateProperties<{
157
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
158
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
159
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
160
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
161
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
162
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
163
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
164
- isLoadingMap: Map<string, boolean>;
165
- modelMap: Map<string, Record<string, any>>;
166
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
167
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
168
- */
169
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
170
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
171
- }>): (formID: string | null | undefined, param?: {
172
- buttonType?: KG_BUTTON_TYPE | undefined;
173
- buttonVarName?: string | null | undefined;
174
- } | undefined) => VarSubmitConfig | null;
175
- getVarSubmitDetails(state: {
176
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
177
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
178
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
179
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
180
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
181
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
182
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
183
- isLoadingMap: Map<string, boolean>;
184
- modelMap: Map<string, Record<string, any>>;
185
- okListenersMap: Map<string, IKgSubmitOkCb[]>;
186
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
187
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
188
- } & import("pinia").PiniaCustomStateProperties<{
189
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
190
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
191
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
192
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
193
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
194
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
195
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
196
- isLoadingMap: Map<string, boolean>;
197
- modelMap: Map<string, Record<string, any>>;
198
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
199
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
200
- */
201
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
202
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
203
- }>): (formID: string | null | undefined, param?: {
204
- buttonType?: KG_BUTTON_TYPE | undefined;
205
- buttonVarName?: string | null | undefined;
206
- isKey?: 0 | 1 | null | undefined;
207
- isVisible?: 0 | 1 | null | undefined;
208
- varName?: string | null | undefined;
209
- } | null | undefined) => VarSubmitDetail[];
210
- }, {
211
- dispose(formID?: string | null | undefined): null | undefined;
212
- addEventListener(formID: string, event: IKgSubmitEvent, cb: import("./index.store").IKgSubmitCb): void;
213
- removeEventListener(formID: string, event: IKgSubmitEvent, cb?: import("./index.store").IKgSubmitCb | undefined): void;
214
- emit(formID: string, event: IKgSubmitEvent, param: import("./index.store").IKgSubmitCbParam): Promise<boolean>;
215
- setIsLoading(formID: string, value: boolean): void;
216
- setModel(formID?: string | null | undefined, model?: Record<string, any> | null | undefined): void;
217
- patchVarSubmitDetail(formID: string | null | undefined, param: {
218
- buttonType?: KG_BUTTON_TYPE | undefined;
219
- buttonVarName?: string | null | undefined;
220
- properties: VarSubmitDetail;
221
- varName: string | null | undefined;
222
- }): void;
223
- }>;
224
- /** 表单数据对象. */
225
- model: import("vue").ComputedRef<Record<string, any>>;
226
- /** 表单组件. */
227
- formRef: import("vue").Ref<import("ant-design-vue").FormInstance | null>;
228
- /** 表单验证规则. */
229
- rules: import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>;
4
+ import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LAYOUT, KG_BUTTON_TYPE, KG_WIDTH_UNIT } from '../../consts';
5
+ import { IKgSubmitAfterValidateEventListener, IKgSubmitBeforeOkEventListener, IKgSubmitBeforeOpenEventListener, IKgSubmitBeforeRequestEventListener, IKgSubmitCloseEventListener, IKgSubmitErrorEventListener, IKgSubmitOkEventListener, IKgSubmitOpenEventListener, IKgSubmitStore } from './index.store';
6
+ export interface IUseKgSubmit {
230
7
  /**
231
8
  * <p>「当前按钮」的「提交表单配置」.</p>
232
9
  */
233
- currentVarSubmitConfig: import("vue").ComputedRef<VarSubmitConfig | null>;
10
+ currentVarSubmitConfig: ComputedRef<VarSubmitConfig | null>;
234
11
  /**
235
12
  * <p>「当前按钮」的「提交表单配置」的显示方式.</p>
236
13
  */
237
- currentVarSubmitConfigDisplayType: import("vue").ComputedRef<KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE>;
14
+ currentVarSubmitConfig$DisplayType: ComputedRef<KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE>;
15
+ /**
16
+ * <p>「当前按钮」的「提交表单配置」的布局.</p>
17
+ */
18
+ currentVarSubmitConfig$Layout: ComputedRef<KG__VAR_SUBMIT_CONFIG__LAYOUT>;
238
19
  /**
239
20
  * <p>「当前按钮」的「提交表单配置」的配置属性.</p>
240
21
  */
241
- currentVarSubmitConfigProps: import("vue").ComputedRef<IKgVarSubmitConfigProps>;
22
+ currentVarSubmitConfig$Props: ComputedRef<IKgVarSubmitConfigProperties>;
242
23
  /**
243
- * <p>「当前按钮」的「提交表单字段」.</p>
24
+ * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
244
25
  */
245
- currentVarSubmitDetails: import("vue").ComputedRef<VarSubmitDetail[]>;
26
+ currentVarSubmitDetailSectionsForVisible: ComputedRef<string[]>;
246
27
  /**
247
- * <p>「当前按钮」的「提交表单字段」(可见的).</p>
28
+ * <p>「当前按钮」的「提交表单字段」.</p>
248
29
  */
249
- currentVarSubmitDetailsForVisible: import("vue").ComputedRef<VarSubmitDetail[]>;
30
+ currentVarSubmitDetails: ComputedRef<VarSubmitDetail[]>;
250
31
  /**
251
32
  * <p>「当前按钮」的「提交表单字段」(关键的).</p>
252
33
  */
253
- currentVarSubmitDetailsForKey: import("vue").ComputedRef<VarSubmitDetail[]>;
34
+ currentVarSubmitDetailsForKey: ComputedRef<VarSubmitDetail[]>;
254
35
  /**
255
36
  * <p>「当前按钮」的「提交表单字段」(关键的, 可见的).</p>
256
37
  */
257
- currentVarSubmitDetailsForKeyAndVisible: import("vue").ComputedRef<VarSubmitDetail[]>;
38
+ currentVarSubmitDetailsForKeyAndVisible: ComputedRef<VarSubmitDetail[]>;
258
39
  /**
259
40
  * <p>「当前按钮」的「提交表单字段」(非关键的).</p>
260
41
  */
261
- currentVarSubmitDetailsForNotKey: import("vue").ComputedRef<VarSubmitDetail[]>;
42
+ currentVarSubmitDetailsForNotKey: ComputedRef<VarSubmitDetail[]>;
262
43
  /**
263
44
  * <p>「当前按钮」的「提交表单字段」(非关键的, 可见的).</p>
264
45
  */
265
- currentVarSubmitDetailsForNotKeyAndVisible: import("vue").ComputedRef<VarSubmitDetail[]>;
46
+ currentVarSubmitDetailsForNotKeyAndVisible: ComputedRef<VarSubmitDetail[]>;
266
47
  /**
267
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
48
+ * <p>「当前按钮」的「提交表单字段」(可见的).</p>
268
49
  */
269
- currentVarSubmitDetailSectionsForVisible: import("vue").ComputedRef<string[]>;
50
+ currentVarSubmitDetailsForVisible: ComputedRef<VarSubmitDetail[]>;
51
+ /**
52
+ * 界面标识.
53
+ */
54
+ formID: string;
55
+ /**
56
+ * 表单数据对象.
57
+ */
58
+ formModel: ComputedRef<Record<string, any>>;
59
+ /**
60
+ * 表单组件.
61
+ */
62
+ formRef: Ref<FormInstance | null>;
63
+ /**
64
+ * 表单验证规则.
65
+ */
66
+ formRules: ReturnType<IKgSubmitStore['getFormRules']>;
270
67
  /**
271
68
  * <p>获取「提交表单配置」, 根据所传参数进行过滤.</p>
272
69
  *
@@ -322,33 +119,20 @@ export declare function useKgSubmit(formID?: string | null): {
322
119
  varName?: string | null;
323
120
  } | null): Array<VarSubmitDetail>;
324
121
  /**
325
- * 修改某个「提交表单字段」的部分属性.
122
+ * 表单数据对象.
326
123
  *
327
- * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG_BUTTON_TYPE}.</p>
328
- * @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
329
- * @param param.properties 要修改的部分属性.
330
- * @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
124
+ * @deprecated 请使用 {@link formModel}
331
125
  */
332
- patchVarSubmitDetail(param: {
333
- buttonType?: KG_BUTTON_TYPE;
334
- buttonVarName?: string | null;
335
- properties: VarSubmitDetail;
336
- varName: string | null | undefined;
337
- }): void;
126
+ model: ComputedRef<Record<string, any>>;
338
127
  /**
339
- * <p>事件: 打开提交弹窗之前.</p>
340
- * @param cb 回调函数.
341
- * @param once 是否只会触发一次. 默认为 undefined.
342
- * @return {} 移除事件监听函数.
343
- */
344
- onBeforeOpen: (cb: IKgSubmitBeforeOpenCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
345
- /**
346
- * <p>事件: 打开提交弹窗.</p>
128
+ * <p>事件: 点击确认按钮之后, 表单验证完成.</p>
129
+ * <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
130
+ *
347
131
  * @param cb 回调函数.
348
132
  * @param once 是否只会触发一次. 默认为 undefined.
349
133
  * @return {} 移除事件监听函数.
350
134
  */
351
- onOpen: (cb: IKgSubmitOpenCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
135
+ onAfterValidate(cb: IKgSubmitAfterValidateEventListener, once?: boolean): IRemoveEventListenerHandler;
352
136
  /**
353
137
  * <p>事件: 点击确认按钮之后, 执行默认逻辑之前.</p>
354
138
  * <ul>
@@ -361,16 +145,14 @@ export declare function useKgSubmit(formID?: string | null): {
361
145
  * @param once 是否只会触发一次. 默认为 undefined.
362
146
  * @return {} 移除事件监听函数.
363
147
  */
364
- onBeforeOk: (cb: IKgSubmitBeforeOkCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
148
+ onBeforeOk(cb: IKgSubmitBeforeOkEventListener, once?: boolean): IRemoveEventListenerHandler;
365
149
  /**
366
- * <p>事件: 点击确认按钮之后, 表单验证完成.</p>
367
- * <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
368
- *
150
+ * <p>事件: 打开提交弹窗之前.</p>
369
151
  * @param cb 回调函数.
370
152
  * @param once 是否只会触发一次. 默认为 undefined.
371
153
  * @return {} 移除事件监听函数.
372
154
  */
373
- onAfterValidate: (cb: IKgSubmitAfterValidateCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
155
+ onBeforeOpen(cb: IKgSubmitBeforeOpenEventListener, once?: boolean): IRemoveEventListenerHandler;
374
156
  /**
375
157
  * <p>事件: 发起接口请求之前. 表单验证完成, 参数解析完成.</p>
376
158
  * <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
@@ -379,31 +161,83 @@ export declare function useKgSubmit(formID?: string | null): {
379
161
  * @param once 是否只会触发一次. 默认为 undefined.
380
162
  * @return {} 移除事件监听函数.
381
163
  */
382
- onBeforeRequest: (cb: IKgSubmitBeforeRequestCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
164
+ onBeforeRequest(cb: IKgSubmitBeforeRequestEventListener, once?: boolean): IRemoveEventListenerHandler;
383
165
  /**
384
- * <p>事件: 点击保存按钮之后, 执行默认逻辑之后, 调用接口成功, 即将关闭提交弹窗.</p>
166
+ * <p>事件: 关闭提交弹窗. 下面几种场景都会触发此事件:</p>
167
+ * <ul>
168
+ * <li>点击右上角的关闭按钮,</li>
169
+ * <li>点击取消按钮,</li>
170
+ * <li>点击保存按钮之后, 调用接口成功, 关闭弹窗,</li>
171
+ * </ul>
385
172
  * @param cb 回调函数.
386
173
  * @param once 是否只会触发一次. 默认为 undefined.
387
174
  * @return {} 移除事件监听函数.
388
175
  */
389
- onOk: (cb: IKgSubmitOkCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
176
+ onClose(cb: IKgSubmitCloseEventListener, once?: boolean): IRemoveEventListenerHandler;
390
177
  /**
391
178
  * <p>事件: 请求失败. 请求失败了, 或者请求返回了错误消息.</p>
392
179
  * @param cb 回调函数.
393
180
  * @param once 是否只会触发一次. 默认为 undefined.
394
181
  * @return {} 移除事件监听函数.
395
182
  */
396
- onError: (cb: IKgSubmitErrorCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
183
+ onError(cb: IKgSubmitErrorEventListener, once?: boolean): IRemoveEventListenerHandler;
397
184
  /**
398
- * <p>事件: 关闭提交弹窗. 下面几种场景都会触发此事件:</p>
399
- * <ul>
400
- * <li>点击右上角的关闭按钮,</li>
401
- * <li>点击取消按钮,</li>
402
- * <li>点击保存按钮之后, 调用接口成功, 关闭弹窗,</li>
403
- * </ul>
185
+ * <p>事件: 点击保存按钮之后, 执行默认逻辑之后, 调用接口成功, 关闭提交弹窗之后.</p>
404
186
  * @param cb 回调函数.
405
187
  * @param once 是否只会触发一次. 默认为 undefined.
406
188
  * @return {} 移除事件监听函数.
407
189
  */
408
- onClose: (cb: IKgSubmitCloseCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
409
- };
190
+ onOk(cb: IKgSubmitOkEventListener, once?: boolean): IRemoveEventListenerHandler;
191
+ /**
192
+ * <p>事件: 打开提交弹窗.</p>
193
+ * @param cb 回调函数.
194
+ * @param once 是否只会触发一次. 默认为 undefined.
195
+ * @return {} 移除事件监听函数.
196
+ */
197
+ onOpen(cb: IKgSubmitOpenEventListener, once?: boolean): IRemoveEventListenerHandler;
198
+ /**
199
+ * <p>修改某个「提交表单字段」的部分属性.</p>
200
+ * <p>如果参数 param.buttonType 和 param.buttonVarName 都为 undefined, 表示修改的是「当前按钮」的「提交表单字段」</p>
201
+ *
202
+ * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG_BUTTON_TYPE}.</p>
203
+ * @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
204
+ * @param param.properties 要修改的部分属性.
205
+ * @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
206
+ */
207
+ patchVarSubmitDetail(param: {
208
+ buttonType?: KG_BUTTON_TYPE;
209
+ buttonVarName?: string | null;
210
+ properties: VarSubmitDetail;
211
+ varName: string | null | undefined;
212
+ }): void;
213
+ /**
214
+ * 表单验证规则.
215
+ *
216
+ * @deprecated 请使用 {@link formRules}.
217
+ */
218
+ rules: ReturnType<IKgSubmitStore['getFormRules']>;
219
+ /**
220
+ * <p>「查询按钮」的「提交表单配置」.</p>
221
+ */
222
+ searchVarSubmitConfig: ComputedRef<VarSubmitConfig | null>;
223
+ /**
224
+ * <p>「查询按钮」的「提交表单配置」的文本宽度.</p>
225
+ */
226
+ searchVarSubmitConfig$LabelColumn: ComputedRef<number>;
227
+ /**
228
+ * <p>「查询按钮」的「提交表单配置」的文本宽度单位.</p>
229
+ */
230
+ searchVarSubmitConfig$LabelColumnUnit: ComputedRef<KG_WIDTH_UNIT>;
231
+ /**
232
+ * <p>「查询按钮」的「提交表单配置」的布局.</p>
233
+ */
234
+ searchVarSubmitConfig$Layout: ComputedRef<KG__VAR_SUBMIT_CONFIG__LAYOUT>;
235
+ /**
236
+ * 状态数据.
237
+ */
238
+ store: IKgSubmitStore;
239
+ }
240
+ /**
241
+ * @param formID 界面标识.
242
+ */
243
+ export declare function useKgSubmit(formID?: string | null): IUseKgSubmit;