@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,5 +1,7 @@
1
- import { IKgEventCb } from '../../consts';
2
- import { IKgTableRequestParams } from '../KgTable';
1
+ import { StoreDefinition } from 'pinia';
2
+ import { VarProfileMasterDTO } from '../../apis/WMS/models';
3
+ import { IKgEventListener } from '../../consts';
4
+ import { IKgTableRequestParameter } from '../KgTable';
3
5
  /**
4
6
  * 事件类型.
5
7
  * 'ready': 就绪, 查询字段初始完成, 组件渲染完成
@@ -7,226 +9,99 @@ import { IKgTableRequestParams } from '../KgTable';
7
9
  * 'reset': 点击重置按钮
8
10
  */
9
11
  export declare type IKgSearchEvent = 'ready' | 'search' | 'reset';
10
- /** 事件监听函数: ready. */
11
- export declare type IKgSearchReadyCb = ((param: any) => Promise<boolean>) & IKgEventCb;
12
- /** 事件监听函数: search. */
13
- export declare type IKgSearchSearchCb = ((param: IKgTableRequestParams) => Promise<boolean>) & IKgEventCb;
14
- /** 事件监听函数: reset. */
15
- export declare type IKgSearchResetCb = ((param: any) => Promise<boolean>) & IKgEventCb;
16
- export declare type IKgSearchCbParam = IKgTableRequestParams;
17
- export declare type IKgSearchCb = IKgSearchReadyCb | IKgSearchSearchCb | IKgSearchResetCb;
12
+ export declare type IKgSearchReadyEventListenerParameter = {};
13
+ export declare type IKgSearchReadyEventListener = ((param: IKgSearchReadyEventListenerParameter) => Promise<boolean>) & IKgEventListener;
14
+ export declare type IKgSearchSearchEventListenerParameter = {} & IKgTableRequestParameter;
15
+ export declare type IKgSearchSearchEventListener = ((param: IKgSearchSearchEventListenerParameter) => Promise<boolean>) & IKgEventListener;
16
+ export declare type IKgSearchResetEventListenerParameter = {};
17
+ export declare type IKgSearchResetEventListener = ((param: IKgSearchResetEventListenerParameter) => Promise<boolean>) & IKgEventListener;
18
+ export declare type IKgSearchEventListenerParameter = IKgSearchReadyEventListenerParameter | IKgSearchSearchEventListenerParameter | IKgSearchResetEventListenerParameter;
19
+ export declare type IKgSearchEventListener = IKgSearchReadyEventListener | IKgSearchSearchEventListener | IKgSearchResetEventListener;
18
20
  /** 查询方法. */
19
- export declare type IKgSearchSearchFn = (param?: IKgTableRequestParams) => void;
21
+ export declare type IKgSearchSearchFn = (param?: IKgTableRequestParameter) => void;
20
22
  /** 重置方法. */
21
23
  export declare type IKgSearchResetFn = () => void;
22
- export declare const useKgSearchStore: import("pinia").StoreDefinition<"KgSearch", {
24
+ export interface IUseKgSearchStoreState {
25
+ /**
26
+ * 高级查询操作符的表单数据对象.
27
+ */
28
+ dynamicOperatorModelMap: Map<string, Record<string, string>>;
29
+ /** 表单数据对象. */
30
+ formModel: Map<string, Record<string, any>>;
23
31
  /**
24
32
  * 是否就绪: 查询字段初始完成, 组件渲染完成.
25
33
  */
26
34
  isReadyMap: Map<string, boolean>;
27
- /** 表单数据对象. */
28
- modelMap: Map<string, Record<string, any>>;
29
35
  /** 事件监听函数列表: ready. */
30
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
36
+ onReadyEventListenersMap: Map<string, Array<IKgSearchReadyEventListener>>;
31
37
  /** 事件监听函数列表: reset. */
32
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
38
+ onResetEventListenersMap: Map<string, Array<IKgSearchResetEventListener>>;
33
39
  /** 事件监听函数列表: search. */
34
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
35
- /** 高级查询的操作符表单数据对象. */
36
- operatorModelMap: Map<string, Record<string, string>>;
40
+ onSearchEventListenersMap: Map<string, Array<IKgSearchSearchEventListener>>;
37
41
  /** 重置方法, 可供外部调用, 用来触发重置操作. */
38
42
  resetFnMap: Map<string, IKgSearchResetFn>;
39
43
  /** 查询方法, 可供外部调用, 用来触发查询操作. */
40
44
  searchFnMap: Map<string, IKgSearchSearchFn>;
41
- }, {
42
- getIsReady(state: {
43
- isReadyMap: Map<string, boolean>;
44
- modelMap: Map<string, Record<string, any>>;
45
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
46
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
47
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
48
- operatorModelMap: Map<string, Record<string, string>>;
49
- resetFnMap: Map<string, IKgSearchResetFn>;
50
- searchFnMap: Map<string, IKgSearchSearchFn>;
51
- } & import("pinia").PiniaCustomStateProperties<{
52
- /**
53
- * 是否就绪: 查询字段初始完成, 组件渲染完成.
54
- */
55
- isReadyMap: Map<string, boolean>;
56
- /** 表单数据对象. */
57
- modelMap: Map<string, Record<string, any>>;
58
- /** 事件监听函数列表: ready. */
59
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
60
- /** 事件监听函数列表: reset. */
61
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
62
- /** 事件监听函数列表: search. */
63
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
64
- /** 高级查询的操作符表单数据对象. */
65
- operatorModelMap: Map<string, Record<string, string>>;
66
- /** 重置方法, 可供外部调用, 用来触发重置操作. */
67
- resetFnMap: Map<string, IKgSearchResetFn>;
68
- /** 查询方法, 可供外部调用, 用来触发查询操作. */
69
- searchFnMap: Map<string, IKgSearchSearchFn>;
70
- }>): (formID: string | null | undefined) => boolean;
71
- getModel(state: {
72
- isReadyMap: Map<string, boolean>;
73
- modelMap: Map<string, Record<string, any>>;
74
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
75
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
76
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
77
- operatorModelMap: Map<string, Record<string, string>>;
78
- resetFnMap: Map<string, IKgSearchResetFn>;
79
- searchFnMap: Map<string, IKgSearchSearchFn>;
80
- } & import("pinia").PiniaCustomStateProperties<{
81
- /**
82
- * 是否就绪: 查询字段初始完成, 组件渲染完成.
83
- */
84
- isReadyMap: Map<string, boolean>;
85
- /** 表单数据对象. */
86
- modelMap: Map<string, Record<string, any>>;
87
- /** 事件监听函数列表: ready. */
88
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
89
- /** 事件监听函数列表: reset. */
90
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
91
- /** 事件监听函数列表: search. */
92
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
93
- /** 高级查询的操作符表单数据对象. */
94
- operatorModelMap: Map<string, Record<string, string>>;
95
- /** 重置方法, 可供外部调用, 用来触发重置操作. */
96
- resetFnMap: Map<string, IKgSearchResetFn>;
97
- /** 查询方法, 可供外部调用, 用来触发查询操作. */
98
- searchFnMap: Map<string, IKgSearchSearchFn>;
99
- }>): (formID: string | null | undefined) => Record<string, any> | null;
100
- getOperatorModel(state: {
101
- isReadyMap: Map<string, boolean>;
102
- modelMap: Map<string, Record<string, any>>;
103
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
104
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
105
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
106
- operatorModelMap: Map<string, Record<string, string>>;
107
- resetFnMap: Map<string, IKgSearchResetFn>;
108
- searchFnMap: Map<string, IKgSearchSearchFn>;
109
- } & import("pinia").PiniaCustomStateProperties<{
110
- /**
111
- * 是否就绪: 查询字段初始完成, 组件渲染完成.
112
- */
113
- isReadyMap: Map<string, boolean>;
114
- /** 表单数据对象. */
115
- modelMap: Map<string, Record<string, any>>;
116
- /** 事件监听函数列表: ready. */
117
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
118
- /** 事件监听函数列表: reset. */
119
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
120
- /** 事件监听函数列表: search. */
121
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
122
- /** 高级查询的操作符表单数据对象. */
123
- operatorModelMap: Map<string, Record<string, string>>;
124
- /** 重置方法, 可供外部调用, 用来触发重置操作. */
125
- resetFnMap: Map<string, IKgSearchResetFn>;
126
- /** 查询方法, 可供外部调用, 用来触发查询操作. */
127
- searchFnMap: Map<string, IKgSearchSearchFn>;
128
- }>): (formID: string | null | undefined) => Record<string, any> | null;
45
+ }
46
+ export interface IUseKgSearchStoreGetters {
129
47
  /**
130
- * 根据 formID 获取查询方法.
131
- * @param state
48
+ * 获取当前的 VarProfileMaster.
132
49
  */
133
- getSearchFn(state: {
134
- isReadyMap: Map<string, boolean>;
135
- modelMap: Map<string, Record<string, any>>;
136
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
137
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
138
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
139
- operatorModelMap: Map<string, Record<string, string>>;
140
- resetFnMap: Map<string, IKgSearchResetFn>;
141
- searchFnMap: Map<string, IKgSearchSearchFn>;
142
- } & import("pinia").PiniaCustomStateProperties<{
143
- /**
144
- * 是否就绪: 查询字段初始完成, 组件渲染完成.
145
- */
146
- isReadyMap: Map<string, boolean>;
147
- /** 表单数据对象. */
148
- modelMap: Map<string, Record<string, any>>;
149
- /** 事件监听函数列表: ready. */
150
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
151
- /** 事件监听函数列表: reset. */
152
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
153
- /** 事件监听函数列表: search. */
154
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
155
- /** 高级查询的操作符表单数据对象. */
156
- operatorModelMap: Map<string, Record<string, string>>;
157
- /** 重置方法, 可供外部调用, 用来触发重置操作. */
158
- resetFnMap: Map<string, IKgSearchResetFn>;
159
- /** 查询方法, 可供外部调用, 用来触发查询操作. */
160
- searchFnMap: Map<string, IKgSearchSearchFn>;
161
- }>): (formID: string | null | undefined) => IKgSearchSearchFn | null;
50
+ getCurrentVarProfileMaster(): (formID: string | null | undefined) => VarProfileMasterDTO | null;
162
51
  /**
163
- * 根据 formID 获取重置方法.
164
- * @param state
52
+ * @param formID 界面标识.
165
53
  */
166
- getResetFn(state: {
167
- isReadyMap: Map<string, boolean>;
168
- modelMap: Map<string, Record<string, any>>;
169
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
170
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
171
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
172
- operatorModelMap: Map<string, Record<string, string>>;
173
- resetFnMap: Map<string, IKgSearchResetFn>;
174
- searchFnMap: Map<string, IKgSearchSearchFn>;
175
- } & import("pinia").PiniaCustomStateProperties<{
176
- /**
177
- * 是否就绪: 查询字段初始完成, 组件渲染完成.
178
- */
179
- isReadyMap: Map<string, boolean>;
180
- /** 表单数据对象. */
181
- modelMap: Map<string, Record<string, any>>;
182
- /** 事件监听函数列表: ready. */
183
- onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
184
- /** 事件监听函数列表: reset. */
185
- onResetListenersMap: Map<string, IKgSearchResetCb[]>;
186
- /** 事件监听函数列表: search. */
187
- onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
188
- /** 高级查询的操作符表单数据对象. */
189
- operatorModelMap: Map<string, Record<string, string>>;
190
- /** 重置方法, 可供外部调用, 用来触发重置操作. */
191
- resetFnMap: Map<string, IKgSearchResetFn>;
192
- /** 查询方法, 可供外部调用, 用来触发查询操作. */
193
- searchFnMap: Map<string, IKgSearchSearchFn>;
194
- }>): (formID: string | null | undefined) => IKgSearchResetFn | null;
195
- }, {
54
+ getDynamicOperatorModel(): (formID: string | null | undefined) => Record<string, string> | null;
196
55
  /**
197
- * 清理数据.
198
- * @param formID 页面标识.
56
+ * @param formID 界面标识.
199
57
  */
200
- dispose(formID: string | null | undefined): void;
58
+ getFormModel(): (formID: string | null | undefined) => Record<string, any> | null;
201
59
  /**
202
- * 注册事件监听.
60
+ * 是否就绪.
61
+ *
203
62
  * @param formID 界面标识.
204
- * @param event 事件名称.
205
- * @param cb 回调函数.
206
63
  */
207
- addEventListener(formID: string, event: IKgSearchEvent, cb: IKgSearchCb): void;
64
+ getIsReady(): (formID: string | null | undefined) => boolean;
208
65
  /**
209
- * 退订事件监听.
66
+ * 获取重置方法.
67
+ *
68
+ * @param formID 界面标识.
69
+ */
70
+ getResetFn(): (formID: string | null | undefined) => IKgSearchResetFn | null;
71
+ /**
72
+ * 获取查询方法.
73
+ *
74
+ * @param formID 界面标识.
75
+ */
76
+ getSearchFn(): (formID: string | null | undefined) => IKgSearchSearchFn | null;
77
+ }
78
+ export interface IUseKgSearchStoreActions {
79
+ /**
80
+ * 注册事件监听.
210
81
  * @param formID 界面标识.
211
82
  * @param event 事件名称.
212
83
  * @param cb 回调函数.
213
84
  */
214
- removeEventListener(formID: string, event: IKgSearchEvent, cb?: IKgSearchCb): void;
85
+ addEventListener(formID: string, event: IKgSearchEvent, cb: IKgSearchEventListener): void;
86
+ /**
87
+ * 清理数据.
88
+ * @param formID 页面标识.
89
+ */
90
+ dispose(formID: string | null | undefined): void;
215
91
  /**
216
92
  * 触发事件.
217
93
  * @param formID 界面标识.
218
94
  * @param event 事件名称.
219
95
  * @param param 事件参数.
220
96
  */
221
- emit(formID: string, event: IKgSearchEvent, param: IKgSearchCbParam): Promise<boolean>;
222
- setIsReady(formID: string | null | undefined, ready?: boolean): void;
97
+ emit<T = IKgSearchEventListenerParameter>(formID: string, event: IKgSearchEvent, param: T): Promise<boolean>;
223
98
  /**
224
- * 设置表单数据.
99
+ * 修改查询字段的高级查询操作符的部分属性.
100
+ *
225
101
  * @param formID 界面标识.
226
- * @param model 表单数据.
102
+ * @param properties 要修改的部分属性.
227
103
  */
228
- setModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
229
- setOperatorModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
104
+ patchDynamicOperatorModel(formID: string | null | undefined, properties?: Record<string, any> | null): Promise<void>;
230
105
  /**
231
106
  * 修改查询字段的表单数据的部分属性.
232
107
  *
@@ -235,22 +110,38 @@ export declare const useKgSearchStore: import("pinia").StoreDefinition<"KgSearch
235
110
  */
236
111
  patchModel(formID: string | null | undefined, properties?: Record<string, any> | null): Promise<void>;
237
112
  /**
238
- * 修改查询字段的高级查询操作符的部分属性.
239
- *
113
+ * 退订事件监听.
240
114
  * @param formID 界面标识.
241
- * @param properties 要修改的部分属性.
115
+ * @param event 事件名称.
116
+ * @param cb 回调函数.
242
117
  */
243
- patchOperatorModel(formID: string | null | undefined, properties?: Record<string, any> | null): Promise<void>;
118
+ removeEventListener(formID: string, event: IKgSearchEvent, cb?: IKgSearchEventListener): void;
119
+ setDynamicOperatorModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
244
120
  /**
245
- * 设置查询方法.
121
+ * 设置表单数据.
246
122
  * @param formID 界面标识.
247
- * @param fn 查询方法.
123
+ * @param model 表单数据.
248
124
  */
249
- setSearchFn(formID: string | null | undefined, fn?: IKgSearchSearchFn | null): void;
125
+ setFormModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
126
+ /**
127
+ * 设置是否就绪.
128
+ * @param formID 界面标识.
129
+ * @param ready 是否就绪.
130
+ */
131
+ setIsReady(formID: string | null | undefined, ready?: boolean): void;
250
132
  /**
251
133
  * 设置重置方法.
252
134
  * @param formID 界面标识.
253
135
  * @param fn 重置方法.
254
136
  */
255
137
  setResetFn(formID: string | null | undefined, fn?: IKgSearchResetFn | null): void;
256
- }>;
138
+ /**
139
+ * 设置查询方法.
140
+ * @param formID 界面标识.
141
+ * @param fn 查询方法.
142
+ */
143
+ setSearchFn(formID: string | null | undefined, fn?: IKgSearchSearchFn | null): void;
144
+ }
145
+ export declare type IUseKgSearchStore = StoreDefinition<'KgSearch', IUseKgSearchStoreState, IUseKgSearchStoreGetters, IUseKgSearchStoreActions>;
146
+ export declare type IKgSearchStore = ReturnType<IUseKgSearchStore>;
147
+ export declare const useKgSearchStore: IUseKgSearchStore;