@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,464 +1,116 @@
1
- import { IKgTableAfterRequestCb, IKgTableBeforeRequestCb, IKgTableBeforeSetDatasCb, IKgTableEvent, IKgTableReadyCb, IKgTableRowDoubleClickCb } from './index.store';
2
- /**
3
- * @param formID 界面标识.
4
- */
5
- export declare function useKgTable(formID?: string | null): {
6
- /** 界面标识ss. */
1
+ import { ComputedRef } from 'vue';
2
+ import { VarGridConfig } from '../../apis/WMS/models';
3
+ import { IRemoveEventListenerHandler } from '../../consts';
4
+ import { IKgTableAfterRequestEventListener, IKgTableBeforeParseParameterEventListener, IKgTableBeforeRequestEventListener, IKgTableBeforeSetDatasEventListener, IKgTableReadyEventListener, IKgTableRowDoubleClickEventListener, IKgTableStore } from './index.store';
5
+ export interface IUseKgTable {
6
+ /** 界面标识. */
7
7
  formID: string;
8
- /** 状态数据. */
9
- store: import("pinia").Store<"KgTable", {
10
- isReadyMap: Map<string, boolean>;
11
- datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
12
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
13
- selectedRowsMap: Map<string, any[]>;
14
- isRequestedMap: Map<string, boolean>;
15
- isRequestingMap: Map<string, boolean>;
16
- requestParamsMap: Map<string, Record<string, any>>;
17
- tableWidthMap: Map<string, number>;
18
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
19
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
20
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
21
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
22
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
23
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
24
- }, {
25
- getIsReady(state: {
26
- isReadyMap: Map<string, boolean>;
27
- datasMap: Map<String, any[]>;
28
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
29
- selectedRowsMap: Map<string, any[]>;
30
- isRequestedMap: Map<string, boolean>;
31
- isRequestingMap: Map<string, boolean>;
32
- requestParamsMap: Map<string, Record<string, any>>;
33
- tableWidthMap: Map<string, number>;
34
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
35
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
36
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
37
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
38
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
39
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
40
- } & import("pinia").PiniaCustomStateProperties<{
41
- isReadyMap: Map<string, boolean>;
42
- datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
43
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
44
- selectedRowsMap: Map<string, any[]>;
45
- isRequestedMap: Map<string, boolean>;
46
- isRequestingMap: Map<string, boolean>;
47
- requestParamsMap: Map<string, Record<string, any>>;
48
- tableWidthMap: Map<string, number>;
49
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
50
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
51
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
52
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
53
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
54
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
55
- }>): (formID: string | null | undefined) => boolean;
56
- getDatas(state: {
57
- isReadyMap: Map<string, boolean>;
58
- datasMap: Map<String, any[]>;
59
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
60
- selectedRowsMap: Map<string, any[]>;
61
- isRequestedMap: Map<string, boolean>;
62
- isRequestingMap: Map<string, boolean>;
63
- requestParamsMap: Map<string, Record<string, any>>;
64
- tableWidthMap: Map<string, number>;
65
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
66
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
67
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
68
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
69
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
70
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
71
- } & import("pinia").PiniaCustomStateProperties<{
72
- isReadyMap: Map<string, boolean>;
73
- datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
74
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
75
- selectedRowsMap: Map<string, any[]>;
76
- isRequestedMap: Map<string, boolean>;
77
- isRequestingMap: Map<string, boolean>;
78
- requestParamsMap: Map<string, Record<string, any>>;
79
- tableWidthMap: Map<string, number>;
80
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
81
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
82
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
83
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
84
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
85
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
86
- }>): <T = import("./index.vm").IKgTableRow>(formID: string | null | undefined) => T[];
87
- getSelectedRowKeys(state: {
88
- isReadyMap: Map<string, boolean>;
89
- datasMap: Map<String, any[]>;
90
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").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, import("./index.vm").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
- isReadyMap: Map<string, boolean>;
104
- datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
105
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
106
- selectedRowsMap: Map<string, any[]>;
107
- isRequestedMap: Map<string, boolean>;
108
- isRequestingMap: Map<string, boolean>;
109
- requestParamsMap: Map<string, Record<string, any>>;
110
- tableWidthMap: Map<string, number>;
111
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
112
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
113
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
114
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
115
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
116
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
117
- }>): (formID: string | null | undefined) => import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>;
118
- getSelectedRows(state: {
119
- isReadyMap: Map<string, boolean>;
120
- datasMap: Map<String, any[]>;
121
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
122
- selectedRowsMap: Map<string, any[]>;
123
- isRequestedMap: Map<string, boolean>;
124
- isRequestingMap: Map<string, boolean>;
125
- requestParamsMap: Map<string, Record<string, any>>;
126
- tableWidthMap: Map<string, number>;
127
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
128
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
129
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
130
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
131
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
132
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
133
- } & import("pinia").PiniaCustomStateProperties<{
134
- isReadyMap: Map<string, boolean>;
135
- datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
136
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
137
- selectedRowsMap: Map<string, any[]>;
138
- isRequestedMap: Map<string, boolean>;
139
- isRequestingMap: Map<string, boolean>;
140
- requestParamsMap: Map<string, Record<string, any>>;
141
- tableWidthMap: Map<string, number>;
142
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
143
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
144
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
145
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
146
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
147
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
148
- }>): (formID: string | null | undefined) => import("./index.vm").IKgTableRow[] | null;
149
- getSelectedFirstRow(state: {
150
- isReadyMap: Map<string, boolean>;
151
- datasMap: Map<String, any[]>;
152
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
153
- selectedRowsMap: Map<string, any[]>;
154
- isRequestedMap: Map<string, boolean>;
155
- isRequestingMap: Map<string, boolean>;
156
- requestParamsMap: Map<string, Record<string, any>>;
157
- tableWidthMap: Map<string, number>;
158
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
159
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
160
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
161
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
162
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
163
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
164
- } & import("pinia").PiniaCustomStateProperties<{
165
- isReadyMap: Map<string, boolean>;
166
- datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
167
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
168
- selectedRowsMap: Map<string, any[]>;
169
- isRequestedMap: Map<string, boolean>;
170
- isRequestingMap: Map<string, boolean>;
171
- requestParamsMap: Map<string, Record<string, any>>;
172
- tableWidthMap: Map<string, number>;
173
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
174
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
175
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
176
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
177
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
178
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
179
- }>): (formID: string | null | undefined) => import("./index.vm").IKgTableRow | null;
180
- getSelectedRow(state: {
181
- isReadyMap: Map<string, boolean>;
182
- datasMap: Map<String, any[]>;
183
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
184
- selectedRowsMap: Map<string, any[]>;
185
- isRequestedMap: Map<string, boolean>;
186
- isRequestingMap: Map<string, boolean>;
187
- requestParamsMap: Map<string, Record<string, any>>;
188
- tableWidthMap: Map<string, number>;
189
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
190
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
191
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
192
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
193
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
194
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
195
- } & import("pinia").PiniaCustomStateProperties<{
196
- isReadyMap: Map<string, boolean>;
197
- datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
198
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
199
- selectedRowsMap: Map<string, any[]>;
200
- isRequestedMap: Map<string, boolean>;
201
- isRequestingMap: Map<string, boolean>;
202
- requestParamsMap: Map<string, Record<string, any>>;
203
- tableWidthMap: Map<string, number>;
204
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
205
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
206
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
207
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
208
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
209
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
210
- }>): (formID: string | null | undefined) => import("./index.vm").IKgTableRow | null;
211
- getIsRequested(state: {
212
- isReadyMap: Map<string, boolean>;
213
- datasMap: Map<String, any[]>;
214
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
215
- selectedRowsMap: Map<string, any[]>;
216
- isRequestedMap: Map<string, boolean>;
217
- isRequestingMap: Map<string, boolean>;
218
- requestParamsMap: Map<string, Record<string, any>>;
219
- tableWidthMap: Map<string, number>;
220
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
221
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
222
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
223
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
224
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
225
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
226
- } & import("pinia").PiniaCustomStateProperties<{
227
- isReadyMap: Map<string, boolean>;
228
- datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
229
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
230
- selectedRowsMap: Map<string, any[]>;
231
- isRequestedMap: Map<string, boolean>;
232
- isRequestingMap: Map<string, boolean>;
233
- requestParamsMap: Map<string, Record<string, any>>;
234
- tableWidthMap: Map<string, number>;
235
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
236
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
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) => boolean;
242
- getIsRequesting(state: {
243
- isReadyMap: Map<string, boolean>;
244
- datasMap: Map<String, any[]>;
245
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
246
- selectedRowsMap: Map<string, any[]>;
247
- isRequestedMap: Map<string, boolean>;
248
- isRequestingMap: Map<string, boolean>;
249
- requestParamsMap: Map<string, Record<string, any>>;
250
- tableWidthMap: Map<string, number>;
251
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
252
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
253
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
254
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
255
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
256
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
257
- } & import("pinia").PiniaCustomStateProperties<{
258
- isReadyMap: Map<string, boolean>;
259
- datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
260
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
261
- selectedRowsMap: Map<string, any[]>;
262
- isRequestedMap: Map<string, boolean>;
263
- isRequestingMap: Map<string, boolean>;
264
- requestParamsMap: Map<string, Record<string, any>>;
265
- tableWidthMap: Map<string, number>;
266
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
267
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
268
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
269
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
270
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
271
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
272
- }>): (formID: string | null | undefined) => boolean | null;
273
- getRequestParams(state: {
274
- isReadyMap: Map<string, boolean>;
275
- datasMap: Map<String, any[]>;
276
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
277
- selectedRowsMap: Map<string, any[]>;
278
- isRequestedMap: Map<string, boolean>;
279
- isRequestingMap: Map<string, boolean>;
280
- requestParamsMap: Map<string, Record<string, any>>;
281
- tableWidthMap: Map<string, number>;
282
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
283
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
284
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
285
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
286
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
287
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
288
- } & import("pinia").PiniaCustomStateProperties<{
289
- isReadyMap: Map<string, boolean>;
290
- datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
291
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
292
- selectedRowsMap: Map<string, any[]>;
293
- isRequestedMap: Map<string, boolean>;
294
- isRequestingMap: Map<string, boolean>;
295
- requestParamsMap: Map<string, Record<string, any>>;
296
- tableWidthMap: Map<string, number>;
297
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
298
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
299
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
300
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
301
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
302
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
303
- }>): (formID: string | null | undefined) => Record<string, any>;
304
- getTableWidth(state: {
305
- isReadyMap: Map<string, boolean>;
306
- datasMap: Map<String, any[]>;
307
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
308
- selectedRowsMap: Map<string, any[]>;
309
- isRequestedMap: Map<string, boolean>;
310
- isRequestingMap: Map<string, boolean>;
311
- requestParamsMap: Map<string, Record<string, any>>;
312
- tableWidthMap: Map<string, number>;
313
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
314
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
315
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
316
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
317
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
318
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
319
- } & import("pinia").PiniaCustomStateProperties<{
320
- isReadyMap: Map<string, boolean>;
321
- datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
322
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
323
- selectedRowsMap: Map<string, any[]>;
324
- isRequestedMap: Map<string, boolean>;
325
- isRequestingMap: Map<string, boolean>;
326
- requestParamsMap: Map<string, Record<string, any>>;
327
- tableWidthMap: Map<string, number>;
328
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
329
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
330
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
331
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
332
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
333
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
334
- }>): (formID: string | null | undefined) => number | null;
335
- getRowHeight(state: {
336
- isReadyMap: Map<string, boolean>;
337
- datasMap: Map<String, any[]>;
338
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
339
- selectedRowsMap: Map<string, any[]>;
340
- isRequestedMap: Map<string, boolean>;
341
- isRequestingMap: Map<string, boolean>;
342
- requestParamsMap: Map<string, Record<string, any>>;
343
- tableWidthMap: Map<string, number>;
344
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
345
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
346
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
347
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
348
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
349
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
350
- } & import("pinia").PiniaCustomStateProperties<{
351
- isReadyMap: Map<string, boolean>;
352
- datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
353
- selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
354
- selectedRowsMap: Map<string, any[]>;
355
- isRequestedMap: Map<string, boolean>;
356
- isRequestingMap: Map<string, boolean>;
357
- requestParamsMap: Map<string, Record<string, any>>;
358
- tableWidthMap: Map<string, number>;
359
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
360
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
361
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
362
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
363
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
364
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
365
- }>): (formID: string | null | undefined) => import("./index.vm").IKgTableRowHeight;
366
- }, {
367
- dispose(formID: string | null | undefined): null | undefined;
368
- addEventListener(formID: string | null | undefined, event: IKgTableEvent, cb: import("./index.store").IKgTableCb): void;
369
- removeEventListener(formID: string | null | undefined, event: IKgTableEvent, cb?: import("./index.store").IKgTableCb | undefined): void;
370
- emit<T_1 = import("./index.store").IKgTableCbParam>(formID: string | null | undefined, event: IKgTableEvent, param: T_1): Promise<boolean>;
371
- setIsReady(formID: string | null | undefined, ready?: boolean | undefined): void;
372
- setDatas<T_2 = any>(param: {
373
- frmId: string | null | undefined;
374
- datas: T_2[];
375
- isPreserveSelectedRows?: boolean | undefined;
376
- }): void;
377
- setSelectedRows(frmId: string | null | undefined, selectedRows: import("./index.vm").IKgTableRow[]): void;
378
- refreshSelectedRows(frmId: string | null | undefined): void;
379
- setRowSelect(frmId: string | null | undefined, row: import("./index.vm").IKgTableRow, isSelected: boolean): void;
380
- setIsRequested(frmId: string | null | undefined, value: boolean): void;
381
- setIsRequesting(formID: string | null | undefined, value: boolean): void;
382
- setRequestParams(formID: string | null | undefined, requestParams: Record<string, any> | null | undefined): void;
383
- setTableWidth(formID: string | null | undefined, value: number): void;
384
- setRowHeight(formID: string | null | undefined, value: import("./index.vm").IKgTableRowHeight): void;
385
- clearDatas(formID: string | null | undefined): void;
386
- }>;
8
+ /** 主键字段. */
9
+ id: ComputedRef<string>;
10
+ /** 是否自动查询. */
11
+ isAutoRequest: ComputedRef<boolean>;
12
+ /** 是否支持多选. */
13
+ isMultiSelect: ComputedRef<boolean>;
387
14
  /** 是否就绪: 配置初始完成, 组件渲染完成. */
388
- isReady: import("vue").ComputedRef<boolean>;
389
- /** 是否正在查询. */
390
- isRetrieving: import("vue").ComputedRef<boolean | null>;
15
+ isReady: ComputedRef<ReturnType<IKgTableStore['getIsReady']>>;
391
16
  /** 是否已经查询过一次了. */
392
- isRequested: import("vue").ComputedRef<boolean>;
393
- /**
394
- * <p>查询参数.</p>
395
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
396
- */
397
- requestParams: import("vue").ComputedRef<Record<string, any>>;
398
- /** 当前勾选的所有行. */
399
- selectedRows: import("vue").ComputedRef<import("./index.vm").IKgTableRow[] | null>;
400
- /** 当前勾选的第一行. */
401
- selectedFirstRow: import("vue").ComputedRef<import("./index.vm").IKgTableRow | null>;
402
- /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
403
- selectedRow: import("vue").ComputedRef<import("./index.vm").IKgTableRow | null>;
404
- /** 是否支持多选. */
405
- isMultiSelect: import("vue").ComputedRef<boolean>;
406
- /** 是否自动查询. */
407
- isAutoRequest: import("vue").ComputedRef<boolean>;
17
+ isRequested: ComputedRef<ReturnType<IKgTableStore['getIsRequested']>>;
18
+ /** 是否正在查询. */
19
+ isRetrieving: ComputedRef<ReturnType<IKgTableStore['getIsRequesting']>>;
408
20
  /** 是否显示底部左侧. */
409
- isShowBottomLeft: import("vue").ComputedRef<boolean>;
21
+ isShowBottomLeft: ComputedRef<boolean>;
410
22
  /** 是否显示底部右侧. */
411
- isShowBottomRight: import("vue").ComputedRef<boolean>;
412
- /** 主键字段. */
413
- id: import("vue").ComputedRef<string>;
414
- /** 所有分页选项. */
415
- pageSizeOptions: import("vue").ComputedRef<number[]>;
416
- /** 当前分页选项. */
417
- pageSizeOption: import("vue").ComputedRef<number>;
23
+ isShowBottomRight: ComputedRef<boolean>;
24
+ /**
25
+ * <p>是否显示描述.</p>
26
+ * <ul>
27
+ * <li>是: 所有描述列(即显示类型为 {@link KG_TABLE_CELL_DISPLAY_TYPE.DESC} 的列)显示的是描述,</li>
28
+ * <li>否: 所有描述列(即显示类型为 {@link KG_TABLE_CELL_DISPLAY_TYPE.DESC} 的列)显示的是原始的值,</li>
29
+ * </ul>
30
+ *
31
+ * @default true
32
+ */
33
+ isShowDescription: ComputedRef<ReturnType<IKgTableStore['getIsShowDescription']>>;
418
34
  /** 查询条件的界面标识. */
419
- kgSearchFormID: import("vue").ComputedRef<string>;
35
+ kgSearchFormID: ComputedRef<string>;
420
36
  /**
421
- * 事件: ready, 配置初始完成, 组件渲染完成.
37
+ * 事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
422
38
  * @param cb 回调函数.
423
39
  * @param once 是否只会触发一次. 默认为 undefined.
424
40
  */
425
- onReady: (cb: IKgTableReadyCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
41
+ onAfterSearch(cb: IKgTableAfterRequestEventListener, once?: boolean): IRemoveEventListenerHandler;
426
42
  /**
427
- * 事件: 双击某行.
43
+ * 事件: 即将解析请求参数.
428
44
  * @param cb 回调函数.
429
45
  * @param once 是否只会触发一次. 默认为 undefined.
430
46
  */
431
- onRowDoubleClick: (cb: IKgTableRowDoubleClickCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
47
+ onBeforeParseParameter(cb: IKgTableBeforeParseParameterEventListener, once?: boolean): IRemoveEventListenerHandler;
432
48
  /**
433
49
  * 事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
434
50
  * @param cb 回调函数.
435
51
  * @param once 是否只会触发一次. 默认为 undefined.
52
+ * @deprecated 已废弃, 请使用 onBeforeSearch() 方法.
436
53
  */
437
- onBeforeSearch: (cb: IKgTableBeforeRequestCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
54
+ onBeforeRetrieve(cb: IKgTableBeforeRequestEventListener, once?: boolean): IRemoveEventListenerHandler;
438
55
  /**
439
- * 事件: 查询请求成功, 表格数据尚未赋值. 此处可以对查询接口返回的列表数据作处理.
56
+ * 事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
440
57
  * @param cb 回调函数.
441
58
  * @param once 是否只会触发一次. 默认为 undefined.
442
59
  */
443
- onBeforeSetDatas: (cb: IKgTableBeforeSetDatasCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
60
+ onBeforeSearch(cb: IKgTableBeforeRequestEventListener, once?: boolean): IRemoveEventListenerHandler;
444
61
  /**
445
- * 事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
62
+ * 事件: 查询请求成功, 表格数据尚未赋值. 此处可以对查询接口返回的列表数据作处理.
446
63
  * @param cb 回调函数.
447
64
  * @param once 是否只会触发一次. 默认为 undefined.
448
65
  */
449
- onAfterSearch: (cb: IKgTableAfterRequestCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
66
+ onBeforeSetDatas(cb: IKgTableBeforeSetDatasEventListener, once?: boolean): IRemoveEventListenerHandler;
450
67
  /**
451
- * 事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
68
+ * 事件: ready, 配置初始完成, 组件渲染完成.
452
69
  * @param cb 回调函数.
453
70
  * @param once 是否只会触发一次. 默认为 undefined.
454
- * @deprecated 已废弃, 请使用 onBeforeSearch() 方法.
455
71
  */
456
- onBeforeRetrieve: (cb: IKgTableBeforeRequestCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
72
+ onReady(cb: IKgTableReadyEventListener, once?: boolean): IRemoveEventListenerHandler;
457
73
  /**
458
74
  * 事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
459
75
  * @param cb 回调函数.
460
76
  * @param once 是否只会触发一次. 默认为 undefined.
461
77
  * @deprecated 已废弃, 请使用 onAfterSearch() 方法.
462
78
  */
463
- onRetrieve: (cb: IKgTableAfterRequestCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
464
- };
79
+ onRetrieve(cb: IKgTableAfterRequestEventListener, once?: boolean): IRemoveEventListenerHandler;
80
+ /**
81
+ * 事件: 双击某行.
82
+ * @param cb 回调函数.
83
+ * @param once 是否只会触发一次. 默认为 undefined.
84
+ */
85
+ onRowDoubleClick(cb: IKgTableRowDoubleClickEventListener, once?: boolean): IRemoveEventListenerHandler;
86
+ /** 当前分页选项. */
87
+ pageSizeOption: ComputedRef<number>;
88
+ /** 所有分页选项. */
89
+ pageSizeOptions: ComputedRef<number[]>;
90
+ /**
91
+ * 修改「表格配置」的部分属性.
92
+ *
93
+ * @param param.properties 要修改的部分属性.
94
+ */
95
+ patchVarGridConfig(param: {
96
+ properties: VarGridConfig;
97
+ }): Promise<void>;
98
+ /**
99
+ * <p>查询参数.</p>
100
+ * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
101
+ */
102
+ requestParams: ComputedRef<ReturnType<IKgTableStore['getRequestParams']>>;
103
+ /** 当前勾选的第一行. */
104
+ selectedFirstRow: ComputedRef<ReturnType<IKgTableStore['getSelectedFirstRow']>>;
105
+ /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
106
+ selectedRow: ComputedRef<ReturnType<IKgTableStore['getSelectedRow']>>;
107
+ /** 当前勾选的所有行. */
108
+ selectedRows: ComputedRef<ReturnType<IKgTableStore['getSelectedRows']>>;
109
+ setIsShowDescription(value: boolean): void;
110
+ /** 状态数据. */
111
+ store: IKgTableStore;
112
+ }
113
+ /**
114
+ * @param formID 界面标识.
115
+ */
116
+ export declare function useKgTable(formID?: string | null): IUseKgTable;