@kengic/vue 0.23.0 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +6479 -5667
  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/VarConfigDescriptionController/index.d.ts +0 -7
  8. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
  9. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
  10. package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
  11. package/dist/src/apis/WMS/models.d.ts +20 -4
  12. package/dist/src/components/KgAppSelect/index.hooks.d.ts +3 -3
  13. package/dist/src/components/KgAppSelect/index.store.d.ts +30 -29
  14. package/dist/src/components/KgButton/KgButton.d.ts +18 -12
  15. package/dist/src/components/KgButton/index.d.ts +4 -4
  16. package/dist/src/components/KgButton/index.hooks.d.ts +7 -5
  17. package/dist/src/components/KgButton/index.store.d.ts +19 -16
  18. package/dist/src/components/KgForm/index.hooks.d.ts +21 -8
  19. package/dist/src/components/KgForm/index.store.d.ts +74 -34
  20. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -3
  21. package/dist/src/components/KgForm.Item/KgForm.Item.service.d.ts +3 -3
  22. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +8 -7
  23. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +6 -7
  24. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +6 -5
  25. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +6 -5
  26. package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +3 -3
  27. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +6 -5
  28. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +6 -5
  29. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +6 -5
  30. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -3
  31. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +16 -13
  32. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +6 -5
  33. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +6 -5
  34. package/dist/src/components/KgForm.Item/index.d.ts +1 -1
  35. package/dist/src/components/KgForm.Item/index.vm.d.ts +9 -7
  36. package/dist/src/components/KgResizable/KgResizable.d.ts +52 -52
  37. package/dist/src/components/KgSearch/KgSearch.d.ts +0 -16
  38. package/dist/src/components/KgSearch/KgSearch.service.d.ts +20 -16
  39. package/dist/src/components/KgSearch/index.hooks.d.ts +33 -9
  40. package/dist/src/components/KgSearch/index.store.d.ts +44 -37
  41. package/dist/src/components/KgSubmit/index.hooks.d.ts +48 -15
  42. package/dist/src/components/KgSubmit/index.store.d.ts +44 -45
  43. package/dist/src/components/KgSubmit/index.vm.d.ts +2 -1
  44. package/dist/src/components/KgTable/components/setting/KgTable.Setting.service.d.ts +1 -1
  45. package/dist/src/components/KgTable/index.hooks.d.ts +23 -8
  46. package/dist/src/components/KgTable/index.store.d.ts +48 -34
  47. package/dist/src/components/KgTable/index.vm.d.ts +1 -1
  48. package/dist/src/components/KgVar/index.hooks.d.ts +9 -11
  49. package/dist/src/components/KgVar/index.store.d.ts +51 -60
  50. package/dist/src/components/KgVar/index.store.service.d.ts +2 -1
  51. package/dist/src/components/KgVar/index.vm.d.ts +7 -7
  52. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
  53. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
  54. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
  55. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
  56. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
  57. package/dist/src/components/KgVarConfig/index.store.d.ts +23 -16
  58. package/dist/src/components/KgVarConfig/index.vm.d.ts +32 -0
  59. package/dist/src/components/KgWarehouse/index.hooks.d.ts +10 -6
  60. package/dist/src/components/KgWarehouse/index.store.d.ts +15 -14
  61. package/dist/src/components/util.d.ts +7 -7
  62. package/dist/src/consts/i18n/en.d.ts +10 -7
  63. package/dist/src/consts/i18n/zh_CN.d.ts +10 -7
  64. package/dist/src/consts/index.d.ts +0 -284
  65. package/dist/src/consts/index.vm.d.ts +425 -24
  66. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +6 -0
  67. package/dist/src/utils/kg-var.util.d.ts +4 -3
  68. package/dist/src/utils/kg.util.d.ts +11 -14
  69. package/package.json +2 -2
  70. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Delete.d.ts +0 -18
  71. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/DeleteBatch.d.ts +0 -18
  72. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Edit.d.ts +0 -16
  73. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ExportXls.d.ts +0 -30
  74. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ImportExcel.d.ts +0 -15
  75. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/List.d.ts +0 -37
  76. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/QueryById.d.ts +0 -19
  77. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -32
  78. /package/dist/src/components/KgTable/components/setting/config/{KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts → KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts} +0 -0
  79. /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
  /** 是否已经触发过一次了. */
@@ -47,6 +447,15 @@ export interface IKgVarSubmitConfigProperties {
47
447
  * @see KG_FORM_ITEM_TYPE
48
448
  */
49
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 IKgVarConfigControlProperties {
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,24 +488,18 @@ export interface IKgVarConfigControlProperties {
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
  /**
@@ -147,6 +147,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
147
147
  header_teleport_flg?: number | null | undefined;
148
148
  id?: string | null | undefined;
149
149
  resizable_flg?: number | null | undefined;
150
+ show_config_button_flag?: number | null | undefined;
150
151
  vis_flg?: number | null | undefined;
151
152
  } | null | undefined;
152
153
  varProfileDetails?: {
@@ -366,6 +367,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
366
367
  header_teleport_flg?: number | null | undefined;
367
368
  id?: string | null | undefined;
368
369
  resizable_flg?: number | null | undefined;
370
+ show_config_button_flag?: number | null | undefined;
369
371
  vis_flg?: number | null | undefined;
370
372
  } | null | undefined;
371
373
  varProfileDetails?: {
@@ -620,6 +622,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
620
622
  header_teleport_flg?: number | null | undefined;
621
623
  id?: string | null | undefined;
622
624
  resizable_flg?: number | null | undefined;
625
+ show_config_button_flag?: number | null | undefined;
623
626
  vis_flg?: number | null | undefined;
624
627
  } | null | undefined;
625
628
  varProfileDetails?: {
@@ -839,6 +842,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
839
842
  header_teleport_flg?: number | null | undefined;
840
843
  id?: string | null | undefined;
841
844
  resizable_flg?: number | null | undefined;
845
+ show_config_button_flag?: number | null | undefined;
842
846
  vis_flg?: number | null | undefined;
843
847
  } | null | undefined;
844
848
  varProfileDetails?: {
@@ -1093,6 +1097,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
1093
1097
  header_teleport_flg?: number | null | undefined;
1094
1098
  id?: string | null | undefined;
1095
1099
  resizable_flg?: number | null | undefined;
1100
+ show_config_button_flag?: number | null | undefined;
1096
1101
  vis_flg?: number | null | undefined;
1097
1102
  } | null | undefined;
1098
1103
  varProfileDetails?: {
@@ -1312,6 +1317,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
1312
1317
  header_teleport_flg?: number | null | undefined;
1313
1318
  id?: string | null | undefined;
1314
1319
  resizable_flg?: number | null | undefined;
1320
+ show_config_button_flag?: number | null | undefined;
1315
1321
  vis_flg?: number | null | undefined;
1316
1322
  } | null | undefined;
1317
1323
  varProfileDetails?: {
@@ -1,11 +1,12 @@
1
1
  import dayjs from 'dayjs';
2
- import { KG_FORM_ITEM_CONTROL_TYPE } from '../consts';
2
+ import { KG__VAR_CONFIG_CONTROL__CONTROL_TYPE } from '../consts';
3
3
  /**
4
4
  * 变量相关工具.
5
5
  */
6
6
  export declare class KgVarUtil {
7
7
  /**
8
- * JSON 字符串形式的参数 `'{"foo":1,"bar":2}'` 转换为对象形式的参数 `{ "foo": 1, "bar": 2 }`.
8
+ * <p>将 JSON 字符串形式的参数 `'{"foo":1,"bar":2}'` 转换为对象形式的参数 `{ "foo": 1, "bar": 2 }`.</p>
9
+ *
9
10
  * @param params JSON 字符串形式的参数.
10
11
  * @return {} 参数对象.
11
12
  */
@@ -44,5 +45,5 @@ export declare class KgVarUtil {
44
45
  * 根据控件类型获取高级查询操作符的下拉列表.
45
46
  * @param controlType 控件类型.
46
47
  */
47
- static getDynamicQueryOperatorSelectOptions(controlType: KG_FORM_ITEM_CONTROL_TYPE | null | undefined): any;
48
+ static getDynamicQueryOperatorSelectOptions(controlType: KG__VAR_CONFIG_CONTROL__CONTROL_TYPE | null | undefined): any;
48
49
  }
@@ -30,13 +30,6 @@ export declare class KgUtil {
30
30
  static downloadFile(data: string | BlobPart, fileName: string, contentType?: string): void;
31
31
  /**
32
32
  * <p>处理请求参数.</p>
33
- * <ol>
34
- * <li>填充通用参数的值:
35
- * <ul>
36
- * <li>仓库: '{WAREHOUSE}'</li>
37
- * </ul>
38
- * </li>
39
- * </ol>
40
33
  * @param params 请求参数.
41
34
  * @param formID 界面标识.
42
35
  * @param $dayjs dayjs.
@@ -52,13 +45,7 @@ export declare class KgUtil {
52
45
  * <li>如果 operators 传值, 表示直接使用传入的 operators 作为各个字段的高级查询操作符.</li>
53
46
  * </ul>
54
47
  * </p>
55
- * <ol>
56
- * <li>填充通用参数的值:
57
- * <ul>
58
- * <li>仓库: '{WAREHOUSE}'</li>
59
- * </ul>
60
- * </li>
61
- * </ol>
48
+ *
62
49
  * @param param.params 请求参数.
63
50
  * @param param.formID 界面标识.
64
51
  * @param param.operators 各个字段的高级查询操作符.
@@ -77,6 +64,16 @@ export declare class KgUtil {
77
64
  };
78
65
  /**
79
66
  * 处理请求参数: 解析字符串类型的参数值.
67
+ *
68
+ * <ol>
69
+ * <li>填充通用参数的值:
70
+ * <ul>
71
+ * <li>{WAREHOUSE}: 当前仓库编号</li>
72
+ * <li>{LOCALE}: 当前语言</li>
73
+ * </ul>
74
+ * </li>
75
+ * </ol>
76
+ *
80
77
  * @param value 参数的原始值.
81
78
  */
82
79
  private static parseParamFromString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "scripts": {
5
5
  "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
@@ -41,7 +41,7 @@
41
41
  "@iconify-icons/mdi": "1.2.48",
42
42
  "@iconify-icons/ph": "1.2.5",
43
43
  "@iconify/vue": "4.1.1",
44
- "@kengic/pont": "1.2.11",
44
+ "@kengic/pont": "1.2.13",
45
45
  "@rys-fe/vite-plugin-theme": "0.8.6",
46
46
  "@types/fs-extra": "9.0.13",
47
47
  "@types/inquirer": "8.2.5",
@@ -1,18 +0,0 @@
1
- import { IRequestConfig, IRequestOptions } from '../../../../services';
2
- /** 请求参数. */
3
- export declare class DeleteQuery {
4
- /** id */
5
- id: string | null;
6
- constructor(obj?: DeleteQuery);
7
- }
8
- /**
9
- * 变量翻译-通过id删除
10
- *
11
- * @param config 请求配置.
12
- * @param option 请求选项.
13
- */
14
- export declare function Delete(config?: IRequestConfig<DeleteQuery, {}>, option?: IRequestOptions): Promise<string>;
15
- export declare namespace Delete {
16
- var method: "DELETE";
17
- var url: string;
18
- }
@@ -1,18 +0,0 @@
1
- import { IRequestConfig, IRequestOptions } from '../../../../services';
2
- /** 请求参数. */
3
- export declare class DeleteBatchQuery {
4
- /** ids */
5
- ids: string | null;
6
- constructor(obj?: DeleteBatchQuery);
7
- }
8
- /**
9
- * 变量翻译-批量删除.
10
- *
11
- * @param config 请求配置.
12
- * @param option 请求选项.
13
- */
14
- export declare function DeleteBatch(config?: IRequestConfig<DeleteBatchQuery, {}>, option?: IRequestOptions): Promise<string>;
15
- export declare namespace DeleteBatch {
16
- var method: "DELETE";
17
- var url: string;
18
- }
@@ -1,16 +0,0 @@
1
- import { IRequestConfig, IRequestOptions } from '../../../../services';
2
- import * as DEF from '../../../def';
3
- /** 请求参数. */
4
- export declare class EditQuery {
5
- }
6
- /**
7
- * 变量翻译-编辑
8
- *
9
- * @param config 请求配置.
10
- * @param option 请求选项.
11
- */
12
- export declare function Edit(config?: IRequestConfig<EditQuery, DEF.WMS.VarConfigDescription>, option?: IRequestOptions): Promise<string>;
13
- export declare namespace Edit {
14
- var method: "POST";
15
- var url: string;
16
- }