@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,7 +1,407 @@
1
1
  import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
2
+ /** 模块. */
3
+ export declare const enum KG_APP {
4
+ /** 数据管理. */
5
+ WMS_DATA_MANAGER = "data-manager",
6
+ /** 仓库管理. */
7
+ WMS_BUSINESS_MANAGER = "business-manager",
8
+ /** WCS. */
9
+ WCS = "wcs",
10
+ /** 系统管理. */
11
+ SYS = "sys"
12
+ }
13
+ /** 模块路径前缀. */
14
+ export declare const enum KG_APP_PREFIX {
15
+ /** 数据管理. */
16
+ WMS_DATA_MANAGER = "/wms/data-manager",
17
+ /** 仓库管理. */
18
+ WMS_BUSINESS_MANAGER = "/wms/business-manager",
19
+ /** WCS. */
20
+ WCS = "/wcs",
21
+ /** 系统管理. */
22
+ SYS = "/sys"
23
+ }
24
+ /** 所有模块. */
25
+ export declare const KG_APPS: Array<KG_APP>;
26
+ /** 所有模块路径前缀. */
27
+ export declare const KG_APP_PREFIXS: Array<KG_APP_PREFIX>;
28
+ /**
29
+ * 表单控件类型.
30
+ * @see VarConfigControl.ctrl_prop
31
+ * @see IKgVarConfigControlProperties
32
+ */
33
+ export declare enum KG__VAR_CONFIG_CONTROL__CONTROL_TYPE {
34
+ /** 单行文本. */
35
+ INPUT = "INPUT",
36
+ /** 密码. */
37
+ INPUT_PASSWORD = "INPUT_PASSWORD",
38
+ /** 数字. */
39
+ INPUT_NUMBER = "INPUT_NUMBER",
40
+ /**
41
+ * <p>多行文本.</p>
42
+ * <p>配置属性参见 {@link IKgVarConfigControlProperties.TEXT_AREA}.</p>
43
+ */
44
+ TEXT_AREA = "TEXT_AREA",
45
+ /** 多选框. */
46
+ CHECKBOX = "CHECKBOX",
47
+ /**
48
+ * <p>多选框列表.</p>
49
+ * <p>配置属性参见 {@link IKgVarConfigControlProperties.CHECKBOX_GROUP}.</p>
50
+ */
51
+ CHECKBOX_GROUP = "CHECKBOX_GROUP",
52
+ /**
53
+ * <p>单选框列表.</p>
54
+ * <p>配置属性参见 {@link IKgVarConfigControlProperties.RADIO_GROUP}.</p>
55
+ */
56
+ RADIO_GROUP = "RADIO_GROUP",
57
+ /** 开关. */
58
+ SWITCH = "SWITCH",
59
+ /**
60
+ * <p>单选下拉列表.<p>
61
+ * <p>配置属性参见 {@link IKgVarConfigControlProperties.SELECT}.</p>
62
+ */
63
+ SELECT = "SELECT",
64
+ /** 多选下拉列表. */
65
+ SELECT_MULTIPLE = "SELECT_MULTIPLE",
66
+ /** 年月日, 2020-05-01. */
67
+ DATE_DATE = "DATE_DATE",
68
+ /** 年月日的范围, [DATE_DATE, DATE_DATE] */
69
+ DATE_DATE_RANGE = "DATE_DATE_RANGE",
70
+ /** 时分秒, 11:59:59. */
71
+ DATE_TIME = "DATE_TIME",
72
+ /** 时分秒的范围, [DATE_TIME, DATE_TIME]. */
73
+ DATE_TIME_RANGE = "DATE_TIME_RANGE",
74
+ /** 年月日时分秒, 2020-05-01 11:59:59. */
75
+ DATE_DATETIME = "DATE_DATETIME",
76
+ /** 年月日时分秒的范围, [DATE_DATETIME, DATE_DATETIME] */
77
+ DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE",
78
+ DATE_WEEK = "DATE_WEEK",
79
+ DATE_MONTH = "DATE_MONTH",
80
+ DATE_YEAR = "DATE_YEAR",
81
+ /**
82
+ * <p>图片.</p>
83
+ * <p>点击可以预览.</p>
84
+ */
85
+ IMAGE = "IMAGE",
86
+ /** 文件上传按钮. */
87
+ BUTTON_UPLOAD = "BUTTON_UPLOAD"
88
+ }
89
+ /**
90
+ * 表单控件所处环境.
91
+ */
92
+ export declare const enum KG_FORM_CONTEXT {
93
+ /**
94
+ * 位于查询条件.
95
+ */
96
+ SEARCH = "SEARCH",
97
+ /**
98
+ * 位于提交表单弹窗.
99
+ */
100
+ SUBMIT = "SUBMIT",
101
+ /**
102
+ * 位于表格内的提交表单.
103
+ */
104
+ TABLE = "TABLE"
105
+ }
106
+ /**
107
+ * 表格单元格的显示类型.
108
+ * @see VarGridDetail.display_type_properties
109
+ * @see IKgVarGridDetailDisplayTypeProperties
110
+ */
111
+ export declare const enum KG_TABLE_CELL_DISPLAY_TYPE {
112
+ /** 布尔数据, 使用 KgYesOrNo 组件显示. */
113
+ YN = "YN",
114
+ /** 枚举数据, 使用 Tag 组件显示. */
115
+ ENUM = "ENUM",
116
+ /** 进度条, 使用 KgProgressA 组件显示. */
117
+ PROGRESS = "PROGRESS",
118
+ /** 文件大小, 将以字节(byte)为单位的数字格式化显示(XXX MB, XXX GB, ...). */
119
+ FILE_SIZE = "FILE_SIZE",
120
+ /** 超链接, 点击打开更新弹窗. */
121
+ UPDATE_LINK = "UPDATE_LINK",
122
+ /** 超链接, 点击跳转到其他路由. */
123
+ ROUTE_LINK = "ROUTE_LINK",
124
+ /**
125
+ * <p>描述. 显示该列的值所对应的描述, 而不是直接显示该列的值.</p>
126
+ * <p>
127
+ * 描述的来源有 2 种, 按优先级从高到低依次为:
128
+ * <ul>
129
+ * <li>如果 {@link IKgVarGridDetailDisplayTypeProperties.DESC.description.codeName} 不为空, 则描述来源于系统描述表, 并且默认的 codeValue 就是该列的值,</li>
130
+ * <li>
131
+ * <p>否则, 描述来源于描述列.</p>
132
+ * <p>默认情况下, 描述列的列名为原始列的列名加上 _dsc 或者 Dsc 后缀, 比如原始列的列名为 xyz, 则描述列的列名为 xyz_dsc 或者 xyzDsc, 可以通过 {@link IKgVarGridDetailDisplayTypeProperties.DESC.dscFieldName} 将描述列的列名配置为其他值,</p>
133
+ * </li>
134
+ * </ul>
135
+ * </p>
136
+ */
137
+ DESC = "DESC",
138
+ /**
139
+ * <p>图片, 可以点击预览大图.</p>
140
+ */
141
+ IMAGE = "IMAGE"
142
+ }
143
+ /** 按钮类型. */
144
+ export declare const enum KG_BUTTON_TYPE {
145
+ /** 查询. */
146
+ SEARCH = "SEARCH",
147
+ /** 创建. */
148
+ CREATE = "CREATE",
149
+ /** 更新. */
150
+ UPDATE = "UPDATE",
151
+ /** 复制. */
152
+ COPY = "COPY",
153
+ /** 删除. */
154
+ DELETE = "DELETE",
155
+ /** 导入. */
156
+ IMPORT = "IMPORT",
157
+ /** 下载导入模板. */
158
+ IMPORT_TEMPLATE = "IMPORT_TEMPLATE",
159
+ /** 导出. */
160
+ EXPORT = "EXPORT",
161
+ /** 其他. */
162
+ OTHER = "OTHER"
163
+ }
164
+ /** 按钮颜色. */
165
+ export declare const enum KG_BUTTON_COLOR {
166
+ /** 错误. */
167
+ DANGER = "DANGER",
168
+ /** 警告. */
169
+ WARN = "WARN"
170
+ }
171
+ /** 按钮显示方式. */
172
+ export declare const enum KG_BUTTON_DISPLAY_TYPE {
173
+ /** 按钮依次排列在一横排. */
174
+ DEFAULT = "DEFAULT",
175
+ /** 显示为下拉的菜单列表. */
176
+ SELECT = "SELECT"
177
+ }
178
+ /** 表单显示方式. */
179
+ export declare const enum KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE {
180
+ /** 弹窗. */
181
+ MODAL = "MODAL",
182
+ /** 抽屉. */
183
+ DRAWER = "DRAWER",
184
+ /** 在表格内. */
185
+ TABLE = "TABLE"
186
+ }
187
+ /**
188
+ * 表单布局方式.
189
+ */
190
+ export declare enum KG__VAR_SUBMIT_CONFIG__LAYOUT {
191
+ /**
192
+ * 垂直.
193
+ */
194
+ VERTICAL = "vertical",
195
+ /**
196
+ * 水平.
197
+ */
198
+ HORIZONTAL = "horizontal"
199
+ }
200
+ /**
201
+ * 变量配置:表单输入验证:数据类型.
202
+ */
203
+ export declare const enum KG__VAR_CONFIG_INPUT__DATA_TYPE {
204
+ /**
205
+ * 任意字符.
206
+ */
207
+ ANY = "ANY",
208
+ /**
209
+ * 整数.
210
+ */
211
+ INTERGER = "INTERGER",
212
+ /**
213
+ * 小数.
214
+ */
215
+ FLOAT = "FLOAT",
216
+ /**
217
+ * 英文字母.
218
+ */
219
+ LETTER = "LETTER",
220
+ /**
221
+ * 大写英文字母.
222
+ */
223
+ UPPER_CASE_LETTER = "UPPER_CASE_LETTER",
224
+ /**
225
+ * 小写英文字母.
226
+ */
227
+ LOWER_CASE_LETTER = "LOWER_CASE_LETTER"
228
+ }
229
+ /**
230
+ * 变量配置:表单输入验证:验证方式.
231
+ */
232
+ export declare const enum KG__VAR_CONFIG_INPUT__VALIDATION_TYPE {
233
+ /**
234
+ * 配置选项.
235
+ */
236
+ OPTIONS = "OPTIONS",
237
+ /**
238
+ * 正则.
239
+ */
240
+ REGULAR_EXPRESSION = "REGULAR_EXPRESSION"
241
+ }
242
+ /**
243
+ * 变量配置:表单输入验证:转换大小写的方式.
244
+ */
245
+ export declare const enum KG__VAR_CONFIG_INPUT__CASE_CONVERSION_TYPE {
246
+ /**
247
+ * 转换为大写.
248
+ */
249
+ TO_UPPER = "TO_UPPER",
250
+ /**
251
+ * 转换为小写.
252
+ */
253
+ TO_LOWER = "TO_LOWER"
254
+ }
255
+ /**
256
+ * 定制级别.
257
+ */
258
+ export declare const enum KG_CUSTOM_LEVEL {
259
+ /**
260
+ * 系统.
261
+ */
262
+ L0 = 0,
263
+ /**
264
+ * 用户.
265
+ */
266
+ L10 = 10
267
+ }
268
+ /**
269
+ * 变量配置:提示文本:位置.
270
+ */
271
+ export declare enum KG__VAR_CONFIG_TIP__PLACEMENT {
272
+ /**
273
+ * 在标签的右边, 显示为一个小图标, 鼠标划过时显示弹框.
274
+ */
275
+ RIGHT = "RIGHT",
276
+ /**
277
+ * 在标签的下面.
278
+ */
279
+ BOTTOM = "BOTTOM"
280
+ }
281
+ /**
282
+ * 变量配置:下拉列表:数据源的类型.
283
+ */
284
+ export declare enum KG__VAR_CONFIG_POSSIBILITY__DATA_SOURCE_TYPE {
285
+ API = "API",
286
+ SQL = "SQL"
287
+ }
288
+ /**
289
+ * 变量配置:下拉列表:接口请求方式.
290
+ */
291
+ export declare enum KG__VAR_CONFIG_POSSIBILITY__API_METHOD {
292
+ GET = "GET",
293
+ POST = "POST",
294
+ DELETE = "DELETE",
295
+ PUT = "PUT"
296
+ }
297
+ /**
298
+ * 变量配置:下拉列表:值的类型.
299
+ */
300
+ export declare enum KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE {
301
+ /**
302
+ * 默认类型.
303
+ */
304
+ DEFAULT = "DEFAULT",
305
+ /**
306
+ * 字符串.
307
+ */
308
+ STRING = "STRING",
309
+ /**
310
+ * 数字.
311
+ */
312
+ NUMBER = "NUMBER",
313
+ /**
314
+ * 布尔.
315
+ */
316
+ BOOLEAN = "BOOLEAN"
317
+ }
318
+ /** 宽度单位. */
319
+ export declare const enum KG_WIDTH_UNIT {
320
+ /** 网格. */
321
+ SPAN = "SPAN",
322
+ /** 像素. */
323
+ PX = "PX"
324
+ }
325
+ /** EXCEL 文件后缀. */
326
+ export declare const enum KG_EXCEL_SUFFIX {
327
+ XLS = "xls",
328
+ XLSX = "xlsx"
329
+ }
330
+ /** 系统描述表中的键. */
331
+ export declare const enum KG_DESCRIPTION_CODE_NAME {
332
+ /** 是否. */
333
+ YN = "yn",
334
+ /** 表单布局方式. */
335
+ VAR_SUBMIT_LAYOUT = "var_submit_layout",
336
+ /** 网格布局可选的列. */
337
+ VAR_SPAN = "var_span",
338
+ /** 按钮显示样式. */
339
+ VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type",
340
+ /** 宽度单位. */
341
+ VAR_WIDTH_UNIT = "var_width_unit"
342
+ }
343
+ /** 高级查询的操作符. */
344
+ export declare enum KG_DYNAMIC_QUERY_OPERATOR {
345
+ /** 等于. */
346
+ EQ = "EQ",
347
+ /** 不等于. */
348
+ NE = "NE",
349
+ /** 大于. */
350
+ GT = "GT",
351
+ /** 小于. */
352
+ LT = "LT",
353
+ /** 大于等于. */
354
+ GTE = "GTE",
355
+ /** 小于等于. */
356
+ LTE = "LTE",
357
+ /** 以之开始. */
358
+ START_WITH = "START",
359
+ /** 以之结束. */
360
+ END_WITH = "END",
361
+ /** 包含. */
362
+ CONTAIN = "CONTAIN",
363
+ /** 属于. */
364
+ IN = "IN",
365
+ /** 范围之内. */
366
+ BETWEEN = "BETWEEN"
367
+ }
368
+ /** 请求头部. */
369
+ export declare enum KG_HTTP_HEADERS {
370
+ /** 界面标识. */
371
+ KG_FORM_ID = "Kg-Form-Id",
372
+ /** 是否启用高级查询. */
373
+ KG_IS_DYNAMIC_QUERY = "Kg-Is-Dynamic-Query",
374
+ /** 拼接后的查询 SQL: WHERE + ORDER BY. */
375
+ KG_QUERY_SQL = "Kg-Query-Sql",
376
+ /** 拼接后的查询 SQL: WHERE. */
377
+ KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql",
378
+ /** 拼接后的查询 SQL: ORDER BY. */
379
+ KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql",
380
+ /**
381
+ * <p>高级查询时, 每个查询字段的操作符(=,>,<...).</p>
382
+ * <p>是一个 JSON 字符串, 由后端进行解析. 其中的 key 表示查询字段的名称, 其中的 value 表示查询字段的操作符.</p>
383
+ */
384
+ KG_QUERY_OPERATOR = "Kg-Query-Operator",
385
+ /**
386
+ * 仓库编号.
387
+ */
388
+ KG_WAREHOUSE = "Kg-Warehouse"
389
+ }
390
+ /** 特殊属性:请求返回的原始响应数据. */
391
+ export declare const __KG__RESPONSE__ = "__KG__RESPONSE__";
392
+ /** 模块菜单的临时ID:数据管理. */
393
+ export declare const KG_TMP_MENU_ID__DATA_MANAGER = "KG_TMP_MENU_ID__DATA_MANAGER";
394
+ /** 模块菜单的临时ID:仓库管理. */
395
+ export declare const KG_TMP_MENU_ID__BUSINESS_MANAGER = "KG_TMP_MENU_ID__BUSINESS_MANAGER";
396
+ /** 模块菜单的临时ID:WCS. */
397
+ export declare const KG_TMP_MENU_ID__WCS = "KG_TMP_MENU_ID__WCS";
398
+ /** 模块菜单的临时ID:系统配置. */
399
+ export declare const KG_TMP_MENU_ID__SYS = "KG_TMP_MENU_ID__SYS";
400
+ /** 模块菜单的临时ID:PDA. */
401
+ export declare const KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA";
2
402
  /** 移除事件监听函数. */
3
403
  export declare type IRemoveEventListenerHandler = () => void;
4
- export declare type IKgEventCb = {
404
+ export declare type IKgEventListener = {
5
405
  /** 是否只会触发一次. */
6
406
  once?: boolean;
7
407
  /** 是否已经触发过一次了. */
@@ -25,7 +425,7 @@ export declare type IKgLocale = 'zh_CN' | 'en' | 'ru' | 'ja' | 'ko';
25
425
  * 按钮确认弹窗的参数.
26
426
  * <p>对应于 {@link VarButton#modal_props} 字段.</p>
27
427
  */
28
- export declare type IKgButtonModalProps = ModalFuncProps & {
428
+ export declare type IKgVarButtonModalProperties = ModalFuncProps & {
29
429
  /** 是否隐藏取消按钮. */
30
430
  kgHideCancelButton?: boolean;
31
431
  };
@@ -33,7 +433,7 @@ export declare type IKgButtonModalProps = ModalFuncProps & {
33
433
  * <p>提交弹窗的配置参数.</p>
34
434
  * <p>对应于 {@link VarSubmitConfig#props} 字段.</p>
35
435
  */
36
- export interface IKgVarSubmitConfigProps {
436
+ export interface IKgVarSubmitConfigProperties {
37
437
  /** 确认按钮. */
38
438
  okButton?: {
39
439
  /** 确认按钮的文本, 实际是一个变量名, 根据变量进行翻译. */
@@ -46,7 +446,16 @@ export interface IKgVarSubmitConfigProps {
46
446
  * @see VarConfigControl.ctrl_prop
47
447
  * @see KG_FORM_ITEM_TYPE
48
448
  */
49
- export interface IKgVariableConfigProps {
449
+ export interface IKgVarConfigControlProperties {
450
+ CHECKBOX_GROUP: {
451
+ /**
452
+ * 数据项的宽度.
453
+ * @default 24
454
+ */
455
+ span?: number;
456
+ /** 要排除哪些值. */
457
+ excludeValues?: Array<any>;
458
+ };
50
459
  DATE_RANGE: {
51
460
  /**
52
461
  * <p>是否允许为空.</p>
@@ -56,21 +465,19 @@ export interface IKgVariableConfigProps {
56
465
  */
57
466
  allowEmpty?: [boolean, boolean];
58
467
  };
59
- TEXT_AREA: {
468
+ IMAGE: {
60
469
  /**
61
- * 文本框的高度.
62
- * @default 5
470
+ * 宽度.
471
+ *
472
+ * @default 100
63
473
  */
64
- rows?: number;
65
- };
66
- CHECKBOX_GROUP: {
474
+ width?: number;
67
475
  /**
68
- * 数据项的宽度.
69
- * @default 24
476
+ * 宽度.
477
+ *
478
+ * @default 100
70
479
  */
71
- span?: number;
72
- /** 要排除哪些值. */
73
- excludeValues?: Array<any>;
480
+ height?: number;
74
481
  };
75
482
  RADIO_GROUP: {
76
483
  /**
@@ -81,50 +488,81 @@ export interface IKgVariableConfigProps {
81
488
  };
82
489
  SELECT: {
83
490
  /**
84
- * 是否允许清空.
491
+ * <p>是否允许清空.</p>
492
+ *
85
493
  * @default true
86
494
  */
87
495
  allowClear?: boolean;
88
496
  };
89
- IMAGE: {
90
- /**
91
- * 宽度.
92
- *
93
- * @default 100
94
- */
95
- width?: number;
497
+ TEXT_AREA: {
96
498
  /**
97
- * 宽度.
98
- *
99
- * @default 100
499
+ * 文本框的高度.
500
+ * @default 5
100
501
  */
101
- height?: number;
502
+ rows?: number;
102
503
  };
103
504
  }
104
505
  /**
105
- * 对应于 {@link VarGridDetail.display_type_properties} 字段, 根据显示类型, 设置额外的参数.
506
+ * 对应的是 {@link VarGridDetail.display_type_properties} 字段, 根据显示类型, 设置额外的参数.
507
+ *
106
508
  * @see VarGridDetail.display_type_properties
107
509
  * @see KG_TABLE_CELL_DISPLAY_TYPE
108
510
  */
109
- export interface IKgGridDetailDisplayTypeProps {
110
- YN: {
511
+ export interface IKgVarGridDetailDisplayTypeProperties {
512
+ DESC: {
513
+ description?: {
514
+ /**
515
+ * <p>对应的是 {@link Description.codnam}.</p>
516
+ * <p>当该配置项不为空时, 表示则描述来源于系统描述表.<p>
517
+ */
518
+ codeName?: string;
519
+ /**
520
+ * <p>对应的是 {@link Description.codval}.</p>
521
+ * <p>默认值为该列的值.</p>
522
+ * <p>
523
+ * 可以是一个 JS 表达式, 组件库会解析该表达式, 并得到真正的值. 比如表达式 \`${row.id}\` 表示获取该行的 id 列的值. 表达式中可以使用下列变量:
524
+ * <ul>
525
+ * <li>row: 表示该行数据,</li>
526
+ * </ul>
527
+ * </p>
528
+ */
529
+ codeValue?: string;
530
+ /**
531
+ * <p>是否延迟获取系统描述数据.</p>
532
+ * <p>默认情况下, 在页面加载后会立即获取 {@link IKgVarGridDetailDisplayTypeProperties.DESC.description.codeName} 对应的系统描述数据. 这种场景适合数据较少的枚举数据.</p>
533
+ * <p>如果描述数据特别多, 比如每一行的描述都不一样, 则可以将该配置项的值配置为 true, 表示会在表格每次查询的时候, 才去请求这些列表数据对应的系统描述数据.</p>
534
+ *
535
+ * @default false
536
+ */
537
+ isDefer?: boolean;
538
+ };
111
539
  /**
112
- * 显示为'是'的值.
113
- * @default 1
540
+ * <p>默认情况下, 当原始列的列名为 xyz 时, 描述列的列名为 xyz_dsc 或者 xyzDsc.</p>
541
+ * <p>通过该配置项可以将描述列的列名配置为其他值.</p>
114
542
  */
115
- yValue?: any;
543
+ dscFieldName?: string;
116
544
  /**
117
- * 显示为'否'的值.
118
- * @default 0
545
+ * 是否显示为一个 Tag 标签.
546
+ * @default false
119
547
  */
120
- nValue?: any;
548
+ isTag?: boolean;
121
549
  /**
122
- * 是否将 null/undefined 当成 false.
123
- * @default false
550
+ * <ul>
551
+ * <li>如果 {@link IKgVarGridDetailDisplayTypeProperties.DESC.isTag} 为 true, 则此属性用来定义每个值对应的标签颜色分别是什么,</li>
552
+ * <li>如果 {@link IKgVarGridDetailDisplayTypeProperties.DESC.isTag} 为 false, 则此属性会被忽略,</li>
553
+ * </ul>
124
554
  */
125
- nilAsFalse?: boolean;
555
+ tagColors?: Array<{
556
+ /** 值. */
557
+ value: any;
558
+ /**
559
+ * 颜色.
560
+ * @default 'default'
561
+ */
562
+ color?: string;
563
+ }>;
126
564
  };
127
- /** @deprecated 请使用 {@link IKgGridDetailDisplayTypeProps.DESC}. */
565
+ /** @deprecated 请使用 {@link IKgVarGridDetailDisplayTypeProperties.DESC}. */
128
566
  ENUM: Array<{
129
567
  /** 变量名称. */
130
568
  varName: string;
@@ -136,6 +574,21 @@ export interface IKgGridDetailDisplayTypeProps {
136
574
  */
137
575
  color?: string;
138
576
  }>;
577
+ FILE_SIZE: {};
578
+ IMAGE: {
579
+ /**
580
+ * 宽度.
581
+ *
582
+ * @default 29
583
+ */
584
+ width?: number;
585
+ /**
586
+ * 宽度.
587
+ *
588
+ * @default 29
589
+ */
590
+ height?: number;
591
+ };
139
592
  PROGRESS: {
140
593
  /** 左侧数值对应的列. */
141
594
  leftColumn: string;
@@ -147,51 +600,26 @@ export interface IKgGridDetailDisplayTypeProps {
147
600
  */
148
601
  textWidth?: 'auto' | string;
149
602
  };
150
- FILE_SIZE: {};
151
- UPDATE_LINK: {};
152
603
  ROUTE_LINK: {
153
604
  /** 要跳转的路由地址. */
154
605
  path: string;
155
606
  };
156
- DESC: {
607
+ UPDATE_LINK: {};
608
+ YN: {
157
609
  /**
158
- * 对应的描述字段的名称.
159
- * @default `原字段名 + '_dsc'`, 或者 `原字段名 + 'Dsc'`
610
+ * 显示为'否'的值.
611
+ * @default 0
160
612
  */
161
- dscFieldName?: string;
613
+ nValue?: any;
162
614
  /**
163
- * 是否显示为一个 Tag 标签.
615
+ * 是否将 null/undefined 当成 false.
164
616
  * @default false
165
617
  */
166
- isTag?: boolean;
167
- /**
168
- * <ul>
169
- * <li>如果 {@link IKgGridDetailDisplayTypeProps.DESC.isTag} 为 true, 则此属性用来定义每个值对应的标签颜色分别是什么,</li>
170
- * <li>如果 {@link IKgGridDetailDisplayTypeProps.DESC.isTag} 为 false, 则此属性会被忽略,</li>
171
- * </ul>
172
- */
173
- tagColors?: Array<{
174
- /** 值. */
175
- value: any;
176
- /**
177
- * 颜色.
178
- * @default 'default'
179
- */
180
- color?: string;
181
- }>;
182
- };
183
- IMAGE: {
184
- /**
185
- * 宽度.
186
- *
187
- * @default 29
188
- */
189
- width?: number;
618
+ nilAsFalse?: boolean;
190
619
  /**
191
- * 宽度.
192
- *
193
- * @default 29
620
+ * 显示为'是'的值.
621
+ * @default 1
194
622
  */
195
- height?: number;
623
+ yValue?: any;
196
624
  };
197
625
  }