@kengic/vue 0.22.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/CHANGELOG.md +178 -139
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +4201 -3969
  4. package/dist/project/build/script/postBuild.ts +1 -1
  5. package/dist/src/apis/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
  6. package/dist/src/apis/WMS/Controllers/DescriptionController/index.d.ts +1 -0
  7. package/dist/src/apis/WMS/models.d.ts +8 -0
  8. package/dist/src/components/KgButton/index.hooks.d.ts +74 -199
  9. package/dist/src/components/KgButton/index.store.d.ts +48 -184
  10. package/dist/src/components/KgForm/index.hooks.d.ts +22 -28
  11. package/dist/src/components/KgForm/index.store.d.ts +22 -15
  12. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +2 -0
  13. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -2
  14. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -4
  15. package/dist/src/components/KgSearch/index.hooks.d.ts +31 -136
  16. package/dist/src/components/KgSearch/index.store.d.ts +59 -175
  17. package/dist/src/components/KgSubmit/index.hooks.d.ts +80 -279
  18. package/dist/src/components/KgSubmit/index.store.d.ts +40 -225
  19. package/dist/src/components/KgTable/{KgTable.hooks.d.ts → KgTable.service.d.ts} +8 -16
  20. package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +0 -1
  21. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -2
  22. package/dist/src/components/KgTable/index.hooks.d.ts +65 -428
  23. package/dist/src/components/KgTable/index.store.d.ts +87 -621
  24. package/dist/src/components/KgVar/index.hooks.d.ts +105 -3622
  25. package/dist/src/components/KgVar/index.store.d.ts +129 -3213
  26. package/dist/src/config/index.hooks.d.ts +31 -38
  27. package/dist/src/config/index.store.d.ts +74 -52
  28. package/dist/src/consts/i18n/en.d.ts +1 -0
  29. package/dist/src/consts/i18n/zh_CN.d.ts +1 -0
  30. package/dist/src/consts/index.d.ts +20 -13
  31. package/dist/src/consts/index.vm.d.ts +78 -51
  32. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +1 -1
  33. package/dist/src/utils/kg-route.util.d.ts +3 -2
  34. package/dist/src/utils/kg.util.d.ts +2 -2
  35. package/package.json +1 -1
  36. /package/dist/src/components/KgForm.Item/{KgForm.Item.hooks.d.ts → KgForm.Item.service.d.ts} +0 -0
  37. /package/dist/src/components/KgForm.Item/components/{KgForm.Item.Select.hooks.d.ts → KgForm.Item.Select.service.d.ts} +0 -0
  38. /package/dist/src/components/KgModal/{KgModal.hooks.d.ts → KgModal.service.d.ts} +0 -0
  39. /package/dist/src/components/KgSearch/{KgSearch.hooks.d.ts → KgSearch.service.d.ts} +0 -0
  40. /package/dist/src/components/KgSubmit/{KgSubmit.hooks.d.ts → KgSubmit.service.d.ts} +0 -0
  41. /package/dist/src/components/KgTable/components/setting/{KgTable.Setting.hooks.d.ts → KgTable.Setting.service.d.ts} +0 -0
@@ -1,4 +1,5 @@
1
1
  import { Key } from 'ant-design-vue/lib/_util/type';
2
+ import { StoreDefinition } from 'pinia';
2
3
  import { Ref } from 'vue';
3
4
  import { IPage } from '../../apis/WMS/models';
4
5
  import { IKgEventCb } from '../../consts';
@@ -47,15 +48,14 @@ export declare type IKgTableAfterRequestCbParam = {
47
48
  export declare type IKgTableAfterRequestCb = ((param: IKgTableAfterRequestCbParam) => Promise<boolean>) & IKgEventCb;
48
49
  export declare type IKgTableCbParam = IKgTableReadyParam | IKgTableRowDoubleClickParam | IKgTableBeforeRequestCbParam | IKgTableBeforeSetDatasCbParam | IKgTableAfterRequestCbParam;
49
50
  export declare type IKgTableCb = IKgTableReadyCb | IKgTableRowDoubleClickCb | IKgTableBeforeRequestCb | IKgTableBeforeSetDatasCb | IKgTableAfterRequestCb;
50
- export declare const useKgTableStore: import("pinia").StoreDefinition<"KgTable", {
51
+ export interface IUseKgTableStoreState {
52
+ afterRequestListenersMap: Map<string, Array<IKgTableAfterRequestCb>>;
53
+ beforeRequestListenersMap: Map<string, Array<IKgTableBeforeRequestCb>>;
54
+ beforeSetDatasListenersMap: Map<string, Array<IKgTableBeforeSetDatasCb>>;
55
+ /** 列表数据. */
56
+ datasMap: Map<String, Array<any>>;
51
57
  /** 是否就绪: 配置初始完成, 组件渲染完成. */
52
58
  isReadyMap: Map<string, boolean>;
53
- /** 列表数据. */
54
- datasMap: Map<String, any[]>;
55
- /** 勾选的行的主键. */
56
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
57
- /** 勾选的行. */
58
- selectedRowsMap: Map<string, any[]>;
59
59
  /**
60
60
  * <p>是否已经查询过一次了.</p>
61
61
  * <ul>
@@ -66,611 +66,68 @@ export declare const useKgTableStore: import("pinia").StoreDefinition<"KgTable",
66
66
  isRequestedMap: Map<string, boolean>;
67
67
  /** 是否正在查询. */
68
68
  isRequestingMap: Map<string, boolean>;
69
+ /**
70
+ * <p>是否显示描述.</p>
71
+ * <ul>
72
+ * <li>是: 所有描述列显示的是描述,</li>
73
+ * <li>否: 所有描述列显示的是原始的值,</li>
74
+ * </ul>
75
+ * <p>描述列指的是显示类型为 {@link KG_TABLE_CELL_DISPLAY_TYPE.DESC} 的列.</p>
76
+ *
77
+ * @default true
78
+ */
79
+ isShowDescriptionMap: Map<string, boolean>;
80
+ /** 事件监听函数列表: ready. */
81
+ onReadyListenersMap: Map<string, Array<IKgTableReadyCb>>;
69
82
  /**
70
83
  * <p>查询参数.</p>
71
84
  * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
72
85
  */
73
86
  requestParamsMap: Map<string, Record<string, any>>;
74
- /** 表格宽度. */
75
- tableWidthMap: Map<string, number>;
87
+ /** '双击某行'事件监听函数列表. */
88
+ rowDoubleClickListenersMap: Map<string, Array<IKgTableRowDoubleClickCb>>;
76
89
  /** 行高. */
77
90
  rowHeightMap: Map<string, IKgTableRowHeight>;
78
- /** 事件监听函数列表: ready. */
79
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
80
- /** '双击某行'事件监听函数列表. */
81
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
82
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
83
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
84
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
85
- }, {
86
- /** 是否就绪. */
87
- getIsReady(state: {
88
- isReadyMap: Map<string, boolean>;
89
- datasMap: Map<String, any[]>;
90
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
91
- selectedRowsMap: Map<string, any[]>;
92
- isRequestedMap: Map<string, boolean>;
93
- isRequestingMap: Map<string, boolean>;
94
- requestParamsMap: Map<string, Record<string, any>>;
95
- tableWidthMap: Map<string, number>;
96
- rowHeightMap: Map<string, IKgTableRowHeight>;
97
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
98
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
99
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
100
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
101
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
102
- } & import("pinia").PiniaCustomStateProperties<{
103
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
104
- isReadyMap: Map<string, boolean>;
105
- /** 列表数据. */
106
- datasMap: Map<String, any[]>;
107
- /** 勾选的行的主键. */
108
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
109
- /** 勾选的行. */
110
- selectedRowsMap: Map<string, any[]>;
111
- /**
112
- * <p>是否已经查询过一次了.</p>
113
- * <ul>
114
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
115
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
116
- * </ul>
117
- */
118
- isRequestedMap: Map<string, boolean>;
119
- /** 是否正在查询. */
120
- isRequestingMap: Map<string, boolean>;
121
- /**
122
- * <p>查询参数.</p>
123
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
124
- */
125
- requestParamsMap: Map<string, Record<string, any>>;
126
- /** 表格宽度. */
127
- tableWidthMap: Map<string, number>;
128
- /** 行高. */
129
- rowHeightMap: Map<string, IKgTableRowHeight>;
130
- /** 事件监听函数列表: ready. */
131
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
132
- /** '双击某行'事件监听函数列表. */
133
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
134
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
135
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
136
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
137
- }>): (formID: string | null | undefined) => boolean;
91
+ /** 勾选的行的主键. */
92
+ selectedRowKeysMap: Map<string, Ref<Array<Key>>>;
93
+ /** 勾选的行. */
94
+ selectedRowsMap: Map<string, Array<any>>;
95
+ /** 表格宽度. */
96
+ tableWidthMap: Map<string, number>;
97
+ }
98
+ export interface IUseKgTableStoreGetters {
138
99
  /** 列表数据. */
139
- getDatas(state: {
140
- isReadyMap: Map<string, boolean>;
141
- datasMap: Map<String, any[]>;
142
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
143
- selectedRowsMap: Map<string, any[]>;
144
- isRequestedMap: Map<string, boolean>;
145
- isRequestingMap: Map<string, boolean>;
146
- requestParamsMap: Map<string, Record<string, any>>;
147
- tableWidthMap: Map<string, number>;
148
- rowHeightMap: Map<string, IKgTableRowHeight>;
149
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
150
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
151
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
152
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
153
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
154
- } & import("pinia").PiniaCustomStateProperties<{
155
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
156
- isReadyMap: Map<string, boolean>;
157
- /** 列表数据. */
158
- datasMap: Map<String, any[]>;
159
- /** 勾选的行的主键. */
160
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
161
- /** 勾选的行. */
162
- selectedRowsMap: Map<string, any[]>;
163
- /**
164
- * <p>是否已经查询过一次了.</p>
165
- * <ul>
166
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
167
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
168
- * </ul>
169
- */
170
- isRequestedMap: Map<string, boolean>;
171
- /** 是否正在查询. */
172
- isRequestingMap: Map<string, boolean>;
173
- /**
174
- * <p>查询参数.</p>
175
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
176
- */
177
- requestParamsMap: Map<string, Record<string, any>>;
178
- /** 表格宽度. */
179
- tableWidthMap: Map<string, number>;
180
- /** 行高. */
181
- rowHeightMap: Map<string, IKgTableRowHeight>;
182
- /** 事件监听函数列表: ready. */
183
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
184
- /** '双击某行'事件监听函数列表. */
185
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
186
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
187
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
188
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
189
- }>): <T = IKgTableRow>(formID: string | null | undefined) => T[];
190
- /** 当前勾选的行的主键. */
191
- getSelectedRowKeys(state: {
192
- isReadyMap: Map<string, boolean>;
193
- datasMap: Map<String, any[]>;
194
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
195
- selectedRowsMap: Map<string, any[]>;
196
- isRequestedMap: Map<string, boolean>;
197
- isRequestingMap: Map<string, boolean>;
198
- requestParamsMap: Map<string, Record<string, any>>;
199
- tableWidthMap: Map<string, number>;
200
- rowHeightMap: Map<string, IKgTableRowHeight>;
201
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
202
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
203
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
204
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
205
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
206
- } & import("pinia").PiniaCustomStateProperties<{
207
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
208
- isReadyMap: Map<string, boolean>;
209
- /** 列表数据. */
210
- datasMap: Map<String, any[]>;
211
- /** 勾选的行的主键. */
212
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
213
- /** 勾选的行. */
214
- selectedRowsMap: Map<string, any[]>;
215
- /**
216
- * <p>是否已经查询过一次了.</p>
217
- * <ul>
218
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
219
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
220
- * </ul>
221
- */
222
- isRequestedMap: Map<string, boolean>;
223
- /** 是否正在查询. */
224
- isRequestingMap: Map<string, boolean>;
225
- /**
226
- * <p>查询参数.</p>
227
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
228
- */
229
- requestParamsMap: Map<string, Record<string, any>>;
230
- /** 表格宽度. */
231
- tableWidthMap: Map<string, number>;
232
- /** 行高. */
233
- rowHeightMap: Map<string, IKgTableRowHeight>;
234
- /** 事件监听函数列表: ready. */
235
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
236
- /** '双击某行'事件监听函数列表. */
237
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
238
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
239
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
240
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
241
- }>): (formID: string | null | undefined) => Ref<Array<Key>>;
242
- /** 当前勾选的行. */
243
- getSelectedRows(state: {
244
- isReadyMap: Map<string, boolean>;
245
- datasMap: Map<String, any[]>;
246
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
247
- selectedRowsMap: Map<string, any[]>;
248
- isRequestedMap: Map<string, boolean>;
249
- isRequestingMap: Map<string, boolean>;
250
- requestParamsMap: Map<string, Record<string, any>>;
251
- tableWidthMap: Map<string, number>;
252
- rowHeightMap: Map<string, IKgTableRowHeight>;
253
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
254
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
255
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
256
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
257
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
258
- } & import("pinia").PiniaCustomStateProperties<{
259
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
260
- isReadyMap: Map<string, boolean>;
261
- /** 列表数据. */
262
- datasMap: Map<String, any[]>;
263
- /** 勾选的行的主键. */
264
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
265
- /** 勾选的行. */
266
- selectedRowsMap: Map<string, any[]>;
267
- /**
268
- * <p>是否已经查询过一次了.</p>
269
- * <ul>
270
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
271
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
272
- * </ul>
273
- */
274
- isRequestedMap: Map<string, boolean>;
275
- /** 是否正在查询. */
276
- isRequestingMap: Map<string, boolean>;
277
- /**
278
- * <p>查询参数.</p>
279
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
280
- */
281
- requestParamsMap: Map<string, Record<string, any>>;
282
- /** 表格宽度. */
283
- tableWidthMap: Map<string, number>;
284
- /** 行高. */
285
- rowHeightMap: Map<string, IKgTableRowHeight>;
286
- /** 事件监听函数列表: ready. */
287
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
288
- /** '双击某行'事件监听函数列表. */
289
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
290
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
291
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
292
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
293
- }>): (formID: string | null | undefined) => Array<IKgTableRow> | null;
294
- /** 当前勾选的第一行. */
295
- getSelectedFirstRow(state: {
296
- isReadyMap: Map<string, boolean>;
297
- datasMap: Map<String, any[]>;
298
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
299
- selectedRowsMap: Map<string, any[]>;
300
- isRequestedMap: Map<string, boolean>;
301
- isRequestingMap: Map<string, boolean>;
302
- requestParamsMap: Map<string, Record<string, any>>;
303
- tableWidthMap: Map<string, number>;
304
- rowHeightMap: Map<string, IKgTableRowHeight>;
305
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
306
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
307
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
308
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
309
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
310
- } & import("pinia").PiniaCustomStateProperties<{
311
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
312
- isReadyMap: Map<string, boolean>;
313
- /** 列表数据. */
314
- datasMap: Map<String, any[]>;
315
- /** 勾选的行的主键. */
316
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
317
- /** 勾选的行. */
318
- selectedRowsMap: Map<string, any[]>;
319
- /**
320
- * <p>是否已经查询过一次了.</p>
321
- * <ul>
322
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
323
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
324
- * </ul>
325
- */
326
- isRequestedMap: Map<string, boolean>;
327
- /** 是否正在查询. */
328
- isRequestingMap: Map<string, boolean>;
329
- /**
330
- * <p>查询参数.</p>
331
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
332
- */
333
- requestParamsMap: Map<string, Record<string, any>>;
334
- /** 表格宽度. */
335
- tableWidthMap: Map<string, number>;
336
- /** 行高. */
337
- rowHeightMap: Map<string, IKgTableRowHeight>;
338
- /** 事件监听函数列表: ready. */
339
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
340
- /** '双击某行'事件监听函数列表. */
341
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
342
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
343
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
344
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
345
- }>): (formID: string | null | undefined) => IKgTableRow | null;
346
- /** 当前勾选的唯一行. */
347
- getSelectedRow(state: {
348
- isReadyMap: Map<string, boolean>;
349
- datasMap: Map<String, any[]>;
350
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
351
- selectedRowsMap: Map<string, any[]>;
352
- isRequestedMap: Map<string, boolean>;
353
- isRequestingMap: Map<string, boolean>;
354
- requestParamsMap: Map<string, Record<string, any>>;
355
- tableWidthMap: Map<string, number>;
356
- rowHeightMap: Map<string, IKgTableRowHeight>;
357
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
358
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
359
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
360
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
361
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
362
- } & import("pinia").PiniaCustomStateProperties<{
363
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
364
- isReadyMap: Map<string, boolean>;
365
- /** 列表数据. */
366
- datasMap: Map<String, any[]>;
367
- /** 勾选的行的主键. */
368
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
369
- /** 勾选的行. */
370
- selectedRowsMap: Map<string, any[]>;
371
- /**
372
- * <p>是否已经查询过一次了.</p>
373
- * <ul>
374
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
375
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
376
- * </ul>
377
- */
378
- isRequestedMap: Map<string, boolean>;
379
- /** 是否正在查询. */
380
- isRequestingMap: Map<string, boolean>;
381
- /**
382
- * <p>查询参数.</p>
383
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
384
- */
385
- requestParamsMap: Map<string, Record<string, any>>;
386
- /** 表格宽度. */
387
- tableWidthMap: Map<string, number>;
388
- /** 行高. */
389
- rowHeightMap: Map<string, IKgTableRowHeight>;
390
- /** 事件监听函数列表: ready. */
391
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
392
- /** '双击某行'事件监听函数列表. */
393
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
394
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
395
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
396
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
397
- }>): (formID: string | null | undefined) => IKgTableRow | null;
100
+ getDatas(): <T = IKgTableRow>(formID: string | null | undefined) => Array<T>;
101
+ /** 是否就绪. */
102
+ getIsReady(): (formID: string | null | undefined) => boolean;
398
103
  /**
399
104
  * 根据 formID 获取是否已经查询过一次了.
400
105
  */
401
- getIsRequested(state: {
402
- isReadyMap: Map<string, boolean>;
403
- datasMap: Map<String, any[]>;
404
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
405
- selectedRowsMap: Map<string, any[]>;
406
- isRequestedMap: Map<string, boolean>;
407
- isRequestingMap: Map<string, boolean>;
408
- requestParamsMap: Map<string, Record<string, any>>;
409
- tableWidthMap: Map<string, number>;
410
- rowHeightMap: Map<string, IKgTableRowHeight>;
411
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
412
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
413
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
414
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
415
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
416
- } & import("pinia").PiniaCustomStateProperties<{
417
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
418
- isReadyMap: Map<string, boolean>;
419
- /** 列表数据. */
420
- datasMap: Map<String, any[]>;
421
- /** 勾选的行的主键. */
422
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
423
- /** 勾选的行. */
424
- selectedRowsMap: Map<string, any[]>;
425
- /**
426
- * <p>是否已经查询过一次了.</p>
427
- * <ul>
428
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
429
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
430
- * </ul>
431
- */
432
- isRequestedMap: Map<string, boolean>;
433
- /** 是否正在查询. */
434
- isRequestingMap: Map<string, boolean>;
435
- /**
436
- * <p>查询参数.</p>
437
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
438
- */
439
- requestParamsMap: Map<string, Record<string, any>>;
440
- /** 表格宽度. */
441
- tableWidthMap: Map<string, number>;
442
- /** 行高. */
443
- rowHeightMap: Map<string, IKgTableRowHeight>;
444
- /** 事件监听函数列表: ready. */
445
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
446
- /** '双击某行'事件监听函数列表. */
447
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
448
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
449
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
450
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
451
- }>): (formID: string | null | undefined) => boolean;
106
+ getIsRequested(): (formID: string | null | undefined) => boolean;
452
107
  /**
453
108
  * 根据 formID 获取是否正在查询.
454
- * @param state
455
109
  */
456
- getIsRequesting(state: {
457
- isReadyMap: Map<string, boolean>;
458
- datasMap: Map<String, any[]>;
459
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
460
- selectedRowsMap: Map<string, any[]>;
461
- isRequestedMap: Map<string, boolean>;
462
- isRequestingMap: Map<string, boolean>;
463
- requestParamsMap: Map<string, Record<string, any>>;
464
- tableWidthMap: Map<string, number>;
465
- rowHeightMap: Map<string, IKgTableRowHeight>;
466
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
467
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
468
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
469
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
470
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
471
- } & import("pinia").PiniaCustomStateProperties<{
472
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
473
- isReadyMap: Map<string, boolean>;
474
- /** 列表数据. */
475
- datasMap: Map<String, any[]>;
476
- /** 勾选的行的主键. */
477
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
478
- /** 勾选的行. */
479
- selectedRowsMap: Map<string, any[]>;
480
- /**
481
- * <p>是否已经查询过一次了.</p>
482
- * <ul>
483
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
484
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
485
- * </ul>
486
- */
487
- isRequestedMap: Map<string, boolean>;
488
- /** 是否正在查询. */
489
- isRequestingMap: Map<string, boolean>;
490
- /**
491
- * <p>查询参数.</p>
492
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
493
- */
494
- requestParamsMap: Map<string, Record<string, any>>;
495
- /** 表格宽度. */
496
- tableWidthMap: Map<string, number>;
497
- /** 行高. */
498
- rowHeightMap: Map<string, IKgTableRowHeight>;
499
- /** 事件监听函数列表: ready. */
500
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
501
- /** '双击某行'事件监听函数列表. */
502
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
503
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
504
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
505
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
506
- }>): (formID: string | null | undefined) => boolean | null;
110
+ getIsRequesting(): (formID: string | null | undefined) => boolean | null;
111
+ getIsShowDescription(): (formID: string | null | undefined) => boolean;
507
112
  /**
508
113
  * 根据 formID 获取查询参数.
509
- * @param state
510
114
  */
511
- getRequestParams(state: {
512
- isReadyMap: Map<string, boolean>;
513
- datasMap: Map<String, any[]>;
514
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
515
- selectedRowsMap: Map<string, any[]>;
516
- isRequestedMap: Map<string, boolean>;
517
- isRequestingMap: Map<string, boolean>;
518
- requestParamsMap: Map<string, Record<string, any>>;
519
- tableWidthMap: Map<string, number>;
520
- rowHeightMap: Map<string, IKgTableRowHeight>;
521
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
522
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
523
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
524
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
525
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
526
- } & import("pinia").PiniaCustomStateProperties<{
527
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
528
- isReadyMap: Map<string, boolean>;
529
- /** 列表数据. */
530
- datasMap: Map<String, any[]>;
531
- /** 勾选的行的主键. */
532
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
533
- /** 勾选的行. */
534
- selectedRowsMap: Map<string, any[]>;
535
- /**
536
- * <p>是否已经查询过一次了.</p>
537
- * <ul>
538
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
539
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
540
- * </ul>
541
- */
542
- isRequestedMap: Map<string, boolean>;
543
- /** 是否正在查询. */
544
- isRequestingMap: Map<string, boolean>;
545
- /**
546
- * <p>查询参数.</p>
547
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
548
- */
549
- requestParamsMap: Map<string, Record<string, any>>;
550
- /** 表格宽度. */
551
- tableWidthMap: Map<string, number>;
552
- /** 行高. */
553
- rowHeightMap: Map<string, IKgTableRowHeight>;
554
- /** 事件监听函数列表: ready. */
555
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
556
- /** '双击某行'事件监听函数列表. */
557
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
558
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
559
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
560
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
561
- }>): (formID: string | null | undefined) => Record<string, any>;
115
+ getRequestParams(): (formID: string | null | undefined) => Record<string, any>;
116
+ getRowHeight(): (formID: string | null | undefined) => IKgTableRowHeight;
117
+ /** 当前勾选的第一行. */
118
+ getSelectedFirstRow(): (formID: string | null | undefined) => IKgTableRow | null;
119
+ /** 当前勾选的唯一行. */
120
+ getSelectedRow(): (formID: string | null | undefined) => IKgTableRow | null;
121
+ /** 当前勾选的行的主键. */
122
+ getSelectedRowKeys(): (formID: string | null | undefined) => Ref<Array<Key>>;
123
+ /** 当前勾选的行. */
124
+ getSelectedRows(): (formID: string | null | undefined) => Array<IKgTableRow> | null;
562
125
  /**
563
126
  * 根据 formID 获取表格宽度.
564
- * @param state
565
- */
566
- getTableWidth(state: {
567
- isReadyMap: Map<string, boolean>;
568
- datasMap: Map<String, any[]>;
569
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
570
- selectedRowsMap: Map<string, any[]>;
571
- isRequestedMap: Map<string, boolean>;
572
- isRequestingMap: Map<string, boolean>;
573
- requestParamsMap: Map<string, Record<string, any>>;
574
- tableWidthMap: Map<string, number>;
575
- rowHeightMap: Map<string, IKgTableRowHeight>;
576
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
577
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
578
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
579
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
580
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
581
- } & import("pinia").PiniaCustomStateProperties<{
582
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
583
- isReadyMap: Map<string, boolean>;
584
- /** 列表数据. */
585
- datasMap: Map<String, any[]>;
586
- /** 勾选的行的主键. */
587
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
588
- /** 勾选的行. */
589
- selectedRowsMap: Map<string, any[]>;
590
- /**
591
- * <p>是否已经查询过一次了.</p>
592
- * <ul>
593
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
594
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
595
- * </ul>
596
- */
597
- isRequestedMap: Map<string, boolean>;
598
- /** 是否正在查询. */
599
- isRequestingMap: Map<string, boolean>;
600
- /**
601
- * <p>查询参数.</p>
602
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
603
- */
604
- requestParamsMap: Map<string, Record<string, any>>;
605
- /** 表格宽度. */
606
- tableWidthMap: Map<string, number>;
607
- /** 行高. */
608
- rowHeightMap: Map<string, IKgTableRowHeight>;
609
- /** 事件监听函数列表: ready. */
610
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
611
- /** '双击某行'事件监听函数列表. */
612
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
613
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
614
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
615
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
616
- }>): (formID: string | null | undefined) => number | null;
617
- getRowHeight(state: {
618
- isReadyMap: Map<string, boolean>;
619
- datasMap: Map<String, any[]>;
620
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
621
- selectedRowsMap: Map<string, any[]>;
622
- isRequestedMap: Map<string, boolean>;
623
- isRequestingMap: Map<string, boolean>;
624
- requestParamsMap: Map<string, Record<string, any>>;
625
- tableWidthMap: Map<string, number>;
626
- rowHeightMap: Map<string, IKgTableRowHeight>;
627
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
628
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
629
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
630
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
631
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
632
- } & import("pinia").PiniaCustomStateProperties<{
633
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
634
- isReadyMap: Map<string, boolean>;
635
- /** 列表数据. */
636
- datasMap: Map<String, any[]>;
637
- /** 勾选的行的主键. */
638
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
639
- /** 勾选的行. */
640
- selectedRowsMap: Map<string, any[]>;
641
- /**
642
- * <p>是否已经查询过一次了.</p>
643
- * <ul>
644
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
645
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
646
- * </ul>
647
- */
648
- isRequestedMap: Map<string, boolean>;
649
- /** 是否正在查询. */
650
- isRequestingMap: Map<string, boolean>;
651
- /**
652
- * <p>查询参数.</p>
653
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
654
- */
655
- requestParamsMap: Map<string, Record<string, any>>;
656
- /** 表格宽度. */
657
- tableWidthMap: Map<string, number>;
658
- /** 行高. */
659
- rowHeightMap: Map<string, IKgTableRowHeight>;
660
- /** 事件监听函数列表: ready. */
661
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
662
- /** '双击某行'事件监听函数列表. */
663
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
664
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
665
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
666
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
667
- }>): (formID: string | null | undefined) => IKgTableRowHeight;
668
- }, {
669
- /**
670
- * 清理数据.
671
- * @param formID 页面标识.
672
127
  */
673
- dispose(formID: string | null | undefined): null | undefined;
128
+ getTableWidth(): (formID: string | null | undefined) => number | null;
129
+ }
130
+ export interface IUseKgTableStoreActions {
674
131
  /**
675
132
  * 注册事件监听.
676
133
  * @param formID 界面标识.
@@ -679,47 +136,56 @@ export declare const useKgTableStore: import("pinia").StoreDefinition<"KgTable",
679
136
  */
680
137
  addEventListener(formID: string | null | undefined, event: IKgTableEvent, cb: IKgTableCb): void;
681
138
  /**
682
- * 退订事件监听.
139
+ * 清空表格数据.
683
140
  * @param formID 界面标识.
684
- * @param event 事件名称.
685
- * @param cb 回调函数.
686
141
  */
687
- removeEventListener(formID: string | null | undefined, event: IKgTableEvent, cb?: IKgTableCb): void;
142
+ clearDatas(formID: string | null | undefined): void;
143
+ /**
144
+ * 清理数据.
145
+ * @param formID 页面标识.
146
+ */
147
+ dispose(formID: string | null | undefined): void;
688
148
  /**
689
149
  * 触发事件.
690
150
  * @param formID 界面标识.
691
151
  * @param event 事件名称.
692
152
  * @param param 数据.
693
153
  */
694
- emit<T_1 = IKgTableCbParam>(formID: string | null | undefined, event: IKgTableEvent, param: T_1): Promise<boolean>;
154
+ emit<T = IKgTableCbParam>(formID: string | null | undefined, event: IKgTableEvent, param: T): Promise<boolean>;
695
155
  /**
696
- * 设置是否就绪.
156
+ * 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
157
+ * @param frmId 界面标识.
158
+ */
159
+ refreshSelectedRows(frmId: string | null | undefined): void;
160
+ /**
161
+ * 退订事件监听.
697
162
  * @param formID 界面标识.
698
- * @param ready 是否就绪.
163
+ * @param event 事件名称.
164
+ * @param cb 回调函数.
699
165
  */
700
- setIsReady(formID: string | null | undefined, ready?: boolean): void;
166
+ removeEventListener(formID: string | null | undefined, event: IKgTableEvent, cb?: IKgTableCb): void;
701
167
  /**
702
168
  * 设置列表数据.
703
169
  * @param param.frmId 界面标识.
704
170
  * @param param.datas 列表数据.
705
171
  * @param param.isPreserveSelectedRows 是否保留行的勾选状态. 默认为 false.
706
172
  */
707
- setDatas<T_2 = any>(param: {
173
+ setDatas(param: {
708
174
  frmId: string | null | undefined;
709
- datas: T_2[];
710
- isPreserveSelectedRows?: boolean | undefined;
175
+ datas: Array<any>;
176
+ isPreserveSelectedRows?: boolean;
711
177
  }): void;
712
178
  /**
713
- * 设置勾选的行.
714
- * @param frmId 界面标识.
715
- * @param selectedRows 勾选的行.
716
- */
717
- setSelectedRows(frmId: string | null | undefined, selectedRows: Array<IKgTableRow>): void;
718
- /**
719
- * 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
720
- * @param frmId 界面标识.
179
+ * 设置是否就绪.
180
+ * @param formID 界面标识.
181
+ * @param ready 是否就绪.
721
182
  */
722
- refreshSelectedRows(frmId: string | null | undefined): void;
183
+ setIsReady(formID: string | null | undefined, ready?: boolean): void;
184
+ setIsRequested(frmId: string | null | undefined, value: boolean): void;
185
+ setIsRequesting(formID: string | null | undefined, value: boolean): void;
186
+ setIsShowDescription(formID: string | null | undefined, value: boolean): void;
187
+ setRequestParams(formID: string | null | undefined, requestParams: Record<string, any> | null | undefined): void;
188
+ setRowHeight(formID: string | null | undefined, value: IKgTableRowHeight): void;
723
189
  /**
724
190
  * 设置某行的勾选状态.
725
191
  * @param frmId 界面标识.
@@ -727,14 +193,14 @@ export declare const useKgTableStore: import("pinia").StoreDefinition<"KgTable",
727
193
  * @param isSelected 是否勾选.
728
194
  */
729
195
  setRowSelect(frmId: string | null | undefined, row: IKgTableRow, isSelected: boolean): void;
730
- setIsRequested(frmId: string | null | undefined, value: boolean): void;
731
- setIsRequesting(formID: string | null | undefined, value: boolean): void;
732
- setRequestParams(formID: string | null | undefined, requestParams: Record<string, any> | null | undefined): void;
733
- setTableWidth(formID: string | null | undefined, value: number): void;
734
- setRowHeight(formID: string | null | undefined, value: IKgTableRowHeight): void;
735
196
  /**
736
- * 清空表格数据.
737
- * @param formID 界面标识.
197
+ * 设置勾选的行.
198
+ * @param frmId 界面标识.
199
+ * @param selectedRows 勾选的行.
738
200
  */
739
- clearDatas(formID: string | null | undefined): void;
740
- }>;
201
+ setSelectedRows(frmId: string | null | undefined, selectedRows: Array<IKgTableRow>): void;
202
+ setTableWidth(formID: string | null | undefined, value: number): void;
203
+ }
204
+ export declare type IUseKgTableStore = StoreDefinition<'KgTable', IUseKgTableStoreState, IUseKgTableStoreGetters, IUseKgTableStoreActions>;
205
+ export declare type IKgTableStore = ReturnType<IUseKgTableStore>;
206
+ export declare const useKgTableStore: IUseKgTableStore;