@kengic/vue 0.26.7-beta.0 → 0.26.7-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,6 +20,7 @@ declare const _default: import("vue").DefineComponent<{
20
20
  type: import("vue").PropType<boolean>;
21
21
  default: boolean;
22
22
  };
23
+ /** 初始. */
23
24
  kgAllowClear: {
24
25
  type: import("vue").PropType<boolean>;
25
26
  default: undefined;
@@ -62,6 +63,7 @@ declare const _default: import("vue").DefineComponent<{
62
63
  type: import("vue").PropType<boolean>;
63
64
  default: boolean;
64
65
  };
66
+ /** 初始. */
65
67
  kgAllowClear: {
66
68
  type: import("vue").PropType<boolean>;
67
69
  default: undefined;
@@ -132,7 +132,6 @@ export declare const getProps: () => {
132
132
  };
133
133
  okButtonProps: PropType<Partial<ExtractPropTypes<{
134
134
  prefixCls: StringConstructor;
135
- /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
136
135
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
137
136
  htmlType: {
138
137
  type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
@@ -175,13 +174,12 @@ export declare const getProps: () => {
175
174
  onClick: {
176
175
  type: PropType<(event: MouseEvent) => void>;
177
176
  };
178
- onMousedown: {
177
+ onMouseDown: {
179
178
  type: PropType<(event: MouseEvent) => void>;
180
179
  };
181
180
  }>>>;
182
181
  cancelButtonProps: PropType<Partial<ExtractPropTypes<{
183
182
  prefixCls: StringConstructor;
184
- /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
185
183
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
186
184
  htmlType: {
187
185
  type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
@@ -224,7 +222,7 @@ export declare const getProps: () => {
224
222
  onClick: {
225
223
  type: PropType<(event: MouseEvent) => void>;
226
224
  };
227
- onMousedown: {
225
+ onMouseDown: {
228
226
  type: PropType<(event: MouseEvent) => void>;
229
227
  };
230
228
  }>>>;
@@ -265,7 +263,7 @@ export declare const getProps: () => {
265
263
  originVNode: import("ant-design-vue/es/_util/type").VueNode;
266
264
  }) => import("ant-design-vue/es/_util/type").VueNode>;
267
265
  };
268
- export declare type IKgModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
266
+ export declare type KgModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
269
267
  declare const _default: import("vue").DefineComponent<{
270
268
  /**
271
269
  * 高度是否撑满屏幕.
@@ -398,7 +396,6 @@ declare const _default: import("vue").DefineComponent<{
398
396
  };
399
397
  okButtonProps: PropType<Partial<ExtractPropTypes<{
400
398
  prefixCls: StringConstructor;
401
- /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
402
399
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
403
400
  htmlType: {
404
401
  type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
@@ -441,13 +438,12 @@ declare const _default: import("vue").DefineComponent<{
441
438
  onClick: {
442
439
  type: PropType<(event: MouseEvent) => void>;
443
440
  };
444
- onMousedown: {
441
+ onMouseDown: {
445
442
  type: PropType<(event: MouseEvent) => void>;
446
443
  };
447
444
  }>>>;
448
445
  cancelButtonProps: PropType<Partial<ExtractPropTypes<{
449
446
  prefixCls: StringConstructor;
450
- /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
451
447
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
452
448
  htmlType: {
453
449
  type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
@@ -490,7 +486,7 @@ declare const _default: import("vue").DefineComponent<{
490
486
  onClick: {
491
487
  type: PropType<(event: MouseEvent) => void>;
492
488
  };
493
- onMousedown: {
489
+ onMouseDown: {
494
490
  type: PropType<(event: MouseEvent) => void>;
495
491
  };
496
492
  }>>>;
@@ -662,7 +658,6 @@ declare const _default: import("vue").DefineComponent<{
662
658
  };
663
659
  okButtonProps: PropType<Partial<ExtractPropTypes<{
664
660
  prefixCls: StringConstructor;
665
- /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
666
661
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
667
662
  htmlType: {
668
663
  type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
@@ -705,13 +700,12 @@ declare const _default: import("vue").DefineComponent<{
705
700
  onClick: {
706
701
  type: PropType<(event: MouseEvent) => void>;
707
702
  };
708
- onMousedown: {
703
+ onMouseDown: {
709
704
  type: PropType<(event: MouseEvent) => void>;
710
705
  };
711
706
  }>>>;
712
707
  cancelButtonProps: PropType<Partial<ExtractPropTypes<{
713
708
  prefixCls: StringConstructor;
714
- /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
715
709
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
716
710
  htmlType: {
717
711
  type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
@@ -754,7 +748,7 @@ declare const _default: import("vue").DefineComponent<{
754
748
  onClick: {
755
749
  type: PropType<(event: MouseEvent) => void>;
756
750
  };
757
- onMousedown: {
751
+ onMouseDown: {
758
752
  type: PropType<(event: MouseEvent) => void>;
759
753
  };
760
754
  }>>>;
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- import { IKgModalProps } from '../KgModal';
2
+ import { KgModalProps } from '../KgModal';
3
3
  /**
4
4
  * 拖拽改变大小.
5
5
  *
@@ -8,9 +8,9 @@ import { IKgModalProps } from '../KgModal';
8
8
  * @param param.getProps 计算后的组件参数.
9
9
  */
10
10
  export declare function useDragToResize(param: {
11
- props: IKgModalProps;
11
+ props: KgModalProps;
12
12
  domRef: Ref<HTMLDivElement | null>;
13
- getProps: Ref<IKgModalProps>;
13
+ getProps: Ref<KgModalProps>;
14
14
  }): {
15
15
  /**
16
16
  * 鼠标按下事件.
@@ -18,7 +18,7 @@ export declare function useDragToResize(param: {
18
18
  * @param param.event 鼠标事件对象.
19
19
  * @param param.handleType 拖拽位置.
20
20
  */
21
- onMousedown: (param: {
21
+ onMouseDown: (param: {
22
22
  event: MouseEvent;
23
23
  handleType: "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
24
24
  }) => void;
@@ -1 +1 @@
1
- export { default as KgModal, type IKgModalProps } from './KgModal';
1
+ export { default as KgModal, type KgModalProps } from './KgModal';
@@ -224,7 +224,7 @@ export declare const modalProps: () => {
224
224
  onClick: {
225
225
  type: PropType<(event: MouseEvent) => void>;
226
226
  };
227
- onMousedown: {
227
+ onMouseDown: {
228
228
  type: PropType<(event: MouseEvent) => void>;
229
229
  };
230
230
  }>>>;
@@ -272,7 +272,7 @@ export declare const modalProps: () => {
272
272
  onClick: {
273
273
  type: PropType<(event: MouseEvent) => void>;
274
274
  };
275
- onMousedown: {
275
+ onMouseDown: {
276
276
  type: PropType<(event: MouseEvent) => void>;
277
277
  };
278
278
  }>>>;
@@ -2,8 +2,8 @@ import { IKgEventListener, IRemoveEventListener } from '@kengic/core.core';
2
2
  export * from './kg-auth.util';
3
3
  export * from './kg.util';
4
4
  export * from './kg-route.util';
5
- export * from './kg-var.util';
6
5
  /**
6
+ * TODO 使用 @kengic/core.core 中的 onEventFactory 重构, 该方法已废弃.
7
7
  * 构造事件监听.
8
8
  * @param formID 界面标识.
9
9
  * @param store 状态管理.
@@ -1,26 +1,11 @@
1
1
  import { KG_APP } from '../const';
2
2
  export declare class KgAuthUtil {
3
- /**
4
- * 判断当前登录用户是否是管理员.
5
- * @return {} 如果当前登录用户是管理员则返回 true, 否则返回 false.
6
- */
3
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
7
4
  static isAdminUser(): boolean;
8
- /**
9
- * 判断某个模块是否具有访问权限.
10
- * @param app 模块.
11
- * @return {} 如果模块具有访问权限则返回 true, 否则返回 false.
12
- */
5
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
13
6
  static isAppAuthenticated(app: KG_APP | null | undefined): boolean;
14
- /**
15
- * 判断某个地址是否具有访问权限.
16
- * @param path 地址.
17
- * @return {} 如果地址具有访问权限则返回 true, 否则返回 false.
18
- */
7
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
19
8
  static isPathAuthenticated(path: string | null | undefined): boolean;
20
- /**
21
- * 获取权限策略.
22
- * @param permissionCode 权限编码.
23
- * @return {} 权限策略.
24
- */
9
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
25
10
  static getPermissionType(permissionCode: string | null | undefined): number | null;
26
11
  }
@@ -1,57 +1,19 @@
1
1
  import { KG_APP, Menu } from '../const';
2
2
  export declare class KgRouteUtil {
3
- /**
4
- * 给所有模块都添加在线表单的路由.
5
- * 由于默认的在线表单路由是没有区分模块的, 而每个模块下都可能有在线表单, 因此给每个模块都添加在线表单的路由.
6
- * @param routes 当前路由列表.
7
- */
3
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
8
4
  static addOnlineRoutesForAllApps(routes: any[]): any[];
9
- /**
10
- * 根据菜单地址地址获取菜单.
11
- *
12
- * @param menus 菜单列表.
13
- * @param path 菜单地址.
14
- * @return {} 如果能找到某个菜单的地址等于传入的地址, 则返回该菜单, 否则返回 null.
15
- */
5
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
16
6
  static getMenuByPath(menus: Array<Menu> | null | undefined, path: string): Menu | null;
17
- /**
18
- * 获取第一个类型为叶子节点的菜单, 即第一个没有下级菜单的菜单, 即第一个拥有页面的菜单.
19
- * 如果参数 app 不为空, 表示只在该模块的菜单中找; 否则在所有的菜单中找.
20
- * @param app 模块.
21
- * @return {} 如果能找到, 则返回该菜单, 否则返回 null.
22
- */
7
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
23
8
  static getFirstLeafMenu(app?: KG_APP | null): Menu | null;
24
- /**
25
- * 翻译菜单标题.
26
- * @param menus 菜单列表, 树形结构.
27
- * @param titleKey 标题的属性名, 即要将哪个属性作为菜单的标题.
28
- */
9
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
29
10
  static translateMenus(menus: Array<Menu> | null | undefined, titleKey?: string): Array<Menu>;
30
- /**
31
- * <p>转换菜单列表.</p>
32
- * <ol>
33
- * <li>根据模块分组,</li>
34
- * </ol>
35
- * @param menus 菜单列表, 树形结构.
36
- */
11
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
37
12
  static transformMenus(menus: Array<Menu> | null | undefined): Array<Menu>;
38
- /**
39
- * 判断某个路径是否属于某个模块.
40
- * @param path 路径.
41
- * @param app 模块.
42
- */
13
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
43
14
  static isPathInApp(path: string | null | undefined, app: KG_APP | null): boolean;
44
- /**
45
- * 根据地址获取模块.
46
- * @param path 地址.
47
- * @return {} 地址所属模块.
48
- */
15
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
49
16
  static getAppByPath(path: string | null | undefined): KG_APP | null;
50
- /**
51
- * 获取模块的首页地址.
52
- * @param app 模块.
53
- * @return {} 该模块的首页地址.
54
- * @throws {} 如果模块无法识别, 会报错.
55
- */
17
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
56
18
  static getAppIndexPath(app: KG_APP): string;
57
19
  }
@@ -1,8 +1,8 @@
1
1
  import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
2
2
  import dayjs, { Dayjs } from 'dayjs';
3
- import { IKgVarButtonModalProperties } from '../const';
3
+ import { IKgVarButtonModalProperties, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE, KG_APP, Menu } from '../const';
4
4
  /**
5
- * 通用工具.
5
+ * 工具方法.
6
6
  */
7
7
  export declare class KgUtil {
8
8
  /**
@@ -114,11 +114,6 @@ export declare class KgUtil {
114
114
  formID?: string;
115
115
  isShowFormValidationErrorMessage?: boolean;
116
116
  }): void;
117
- /**
118
- * 将 JSON 字符串转换为 JSON 对象, 如果转化失败, 则返回空对象.
119
- * @param str JSON 字符串.
120
- */
121
- static tryParseJSON<T = Record<string, any>>(str?: string | null): T;
122
117
  /**
123
118
  * 将值转换为 Dayjs 对象.
124
119
  * @param value 值.
@@ -138,11 +133,172 @@ export declare class KgUtil {
138
133
  /**
139
134
  * 获取一个 UUID.
140
135
  *
136
+ * @param param.prefix 前缀, 默认为 ''.
141
137
  * @return UUID.
142
138
  */
143
139
  static uuid(param?: {
144
140
  prefix?: string;
145
141
  }): string;
142
+ /**
143
+ * 判断当前登录用户是否是管理员.
144
+ * @return {} 如果当前登录用户是管理员则返回 true, 否则返回 false.
145
+ */
146
+ static isAdminUser(): boolean;
147
+ /**
148
+ * 判断某个模块是否具有访问权限.
149
+ * @param app 模块.
150
+ * @return {} 如果模块具有访问权限则返回 true, 否则返回 false.
151
+ */
152
+ static isAppAuthenticated(app: KG_APP | null | undefined): boolean;
153
+ /**
154
+ * 判断某个地址是否具有访问权限.
155
+ * @param path 地址.
156
+ * @return {} 如果地址具有访问权限则返回 true, 否则返回 false.
157
+ */
158
+ static isPathAuthenticated(path: string | null | undefined): boolean;
159
+ /**
160
+ * 获取权限策略.
161
+ * @param permissionCode 权限编码.
162
+ * @return {} 权限策略.
163
+ */
164
+ static getPermissionType(permissionCode: string | null | undefined): number | null;
165
+ /**
166
+ * 给所有模块都添加在线表单的路由.
167
+ * 由于默认的在线表单路由是没有区分模块的, 而每个模块下都可能有在线表单, 因此给每个模块都添加在线表单的路由.
168
+ * @param routes 当前路由列表.
169
+ */
170
+ static addOnlineRoutesForAllApps(routes: any[]): any[];
171
+ /**
172
+ * 根据菜单地址地址获取菜单.
173
+ *
174
+ * @param menus 菜单列表.
175
+ * @param path 菜单地址.
176
+ * @return {} 如果能找到某个菜单的地址等于传入的地址, 则返回该菜单, 否则返回 null.
177
+ */
178
+ static getMenuByPath(menus: Array<Menu> | null | undefined, path: string): Menu | null;
179
+ /**
180
+ * 获取第一个类型为叶子节点的菜单, 即第一个没有下级菜单的菜单, 即第一个拥有页面的菜单.
181
+ * 如果参数 app 不为空, 表示只在该模块的菜单中找; 否则在所有的菜单中找.
182
+ * @param app 模块.
183
+ * @return {} 如果能找到, 则返回该菜单, 否则返回 null.
184
+ */
185
+ static getFirstLeafMenu(app?: KG_APP | null): Menu | null;
186
+ /**
187
+ * 翻译菜单标题.
188
+ * @param menus 菜单列表, 树形结构.
189
+ * @param titleKey 标题的属性名, 即要将哪个属性作为菜单的标题.
190
+ */
191
+ static translateMenus(menus: Array<Menu> | null | undefined, titleKey?: string): Array<Menu>;
192
+ /**
193
+ * <p>转换菜单列表.</p>
194
+ * <ol>
195
+ * <li>根据模块分组,</li>
196
+ * </ol>
197
+ * @param menus 菜单列表, 树形结构.
198
+ */
199
+ static transformMenus(menus: Array<Menu> | null | undefined): Array<Menu>;
200
+ /**
201
+ * 判断某个路径是否属于某个模块.
202
+ * @param path 路径.
203
+ * @param app 模块.
204
+ */
205
+ static isPathInApp(path: string | null | undefined, app: KG_APP | null): boolean;
206
+ /**
207
+ * 根据地址获取模块.
208
+ * @param path 地址.
209
+ * @return {} 地址所属模块.
210
+ */
211
+ static getAppByPath(path: string | null | undefined): KG_APP | null;
212
+ /**
213
+ * 获取模块的首页地址.
214
+ * @param app 模块.
215
+ * @return {} 该模块的首页地址.
216
+ * @throws {} 如果模块无法识别, 会报错.
217
+ */
218
+ static getAppIndexPath(app: KG_APP): string;
219
+ /**
220
+ * <p>将 JSON 字符串形式的参数 `'{"foo":1,"bar":2}'` 转换为对象形式的参数 `{ "foo": 1, "bar": 2 }`.</p>
221
+ *
222
+ * @param params JSON 字符串形式的参数.
223
+ * @return {} 参数对象.
224
+ */
225
+ static parseRequestParamsToJSON(params: string | null | undefined): Record<string, any>;
226
+ /**
227
+ * <p>根据控件类型, 将表单控件的默认值转换为合法的值.</p>
228
+ *
229
+ * @param param.$dayjs dayjs.
230
+ * @param param.buttonVarName 「变量配置:表单控件」所属的按钮的变量名称.
231
+ * @param param.formID 界面标识.
232
+ * @param param.value 原始的值.
233
+ * @param param.varName 变量名称.
234
+ * @return {} 转换之后的值.
235
+ */
236
+ static transformFormItemDefaultValue(param: {
237
+ $dayjs: typeof dayjs;
238
+ buttonVarName: string | null | undefined;
239
+ formID: string;
240
+ value: any;
241
+ varName: string;
242
+ }): any;
243
+ /**
244
+ * 计算某个列表数据的文本.
245
+ *
246
+ * <p>
247
+ * labelColumn 可以是一个 JS 表达式, 组件库会解析该表达式, 并得到真正的值. 比如表达式 \`${row.id}\` 表示获取该行的 id 列的值. 表达式中可以使用下列变量:
248
+ * <ul>
249
+ * <li>row: 表示该行数据,</li>
250
+ * </ul>
251
+ * </p>
252
+ *
253
+ * @param row 该行数据.
254
+ * @param labelColumn 文本对应的字段或者表达式.
255
+ */
256
+ static evaluateVarConfigPossibilityLabel(row: any, labelColumn: string): string;
257
+ /**
258
+ * 根据控件类型, 将任意的高级查询操作符(可能非法)转换为合法的值.
259
+ *
260
+ * @param param.formID 界面标识.
261
+ * @param param.value 原始的高级查询操作符.
262
+ * @param param.varName 变量名称.
263
+ * @return {} 转换后的合法的值.
264
+ */
265
+ static transformFormItemDynamicQueryOperator(param: {
266
+ formID: string;
267
+ value: string | null | undefined;
268
+ varName: string;
269
+ }): string;
270
+ /**
271
+ * 根据控件类型获取高级查询操作符的下拉列表.
272
+ * @param controlType 控件类型.
273
+ */
274
+ static getDynamicQueryOperatorSelectOptions(controlType: KG__VAR_CONFIG_CONTROL__CONTROL_TYPE | null | undefined): any;
275
+ /**
276
+ * <p>根据查询条件拼接 SQL 语句片段.</p>
277
+ * <p>根据查询参数拼接 SQL, 格式如下: `WHERE ... ORDER BY ...OFFSET...`, 每一个片段会单独作为一个属性返回.</p>
278
+ * <ul>
279
+ * <li>如果 dynamicQueryOperatorModel 传值, 表示直接使用传入的 dynamicQueryOperatorModel 作为高级查询操作符.</li>
280
+ * <li>如果 dynamicQueryOperatorModel 没有传值, 但是 formID 传值, 表示通过变量配置获取高级查询操作符.</li>
281
+ * </ul>
282
+ *
283
+ * @param param.$dayjs dayjs.
284
+ * @param param.dynamicQueryOperatorModel 各个字段的高级查询操作符.
285
+ * @param param.formID 界面标识.
286
+ * @param param.kgSearchFormID 查询条件的界面标识.
287
+ * @param param.params 请求参数.
288
+ */
289
+ static getQueryHeaders(param: {
290
+ $dayjs: typeof dayjs;
291
+ dynamicQueryOperatorModel: Record<string, any> | null | undefined;
292
+ formID: string | null | undefined;
293
+ kgSearchFormID: string | null | undefined;
294
+ params: Record<string, any> | null | undefined;
295
+ }): {
296
+ offsetSql: string;
297
+ operatorJSON: string;
298
+ orderBySql: string;
299
+ sql: string;
300
+ whereSql: string;
301
+ };
146
302
  }
147
303
  export declare type ModalFunc = {
148
304
  destroy: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.26.7-beta.0",
3
+ "version": "0.26.7-beta.10",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
@@ -14,17 +14,17 @@
14
14
  "publish:minor": "npm run bump:minor && tsx script/publish.ts",
15
15
  "publish:patch": "npm run bump:patch && tsx script/publish.ts",
16
16
  "publish:beta": "npm run bump:beta && tsx script/publish.ts",
17
+ "------- ------------------------------------------": "",
18
+ "copy-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run use-node && npm run build:dev && tsx script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
19
+ "--- ----------------------------------------------": "",
20
+ "bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run use-node && tsx script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
17
21
  "----- --------------------------------------------": "",
18
22
  "bump:major": "npm run use-node && tsx script/bump.ts major",
19
23
  "bump:minor": "npm run use-node && tsx script/bump.ts minor",
20
24
  "bump:patch": "npm run use-node && tsx script/bump.ts patch",
21
25
  "bump:beta": "npm run use-node && tsx script/bump.ts beta",
22
26
  "---- ---------------------------------------------": "",
23
- "publish:npm": "npm run use-node && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public",
24
- "------- ------------------------------------------": "",
25
- "copy-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run use-node && npm run build:dev && tsx script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
26
- "--- ----------------------------------------------": "",
27
- "bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run use-node && tsx script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts"
27
+ "publish:npm": "npm run use-node && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "vue": "3.2.43"
@@ -39,8 +39,8 @@
39
39
  "@iconify-icons/mdi": "1.2.48",
40
40
  "@iconify-icons/ph": "1.2.5",
41
41
  "@iconify/vue": "4.1.2",
42
- "@kengic/core.core": "0.0.1-beta.17",
43
- "@kengic/core.react": "0.0.1-beta.24",
42
+ "@kengic/core.core": "0.0.1-beta.19",
43
+ "@kengic/core.react": "0.0.1-beta.33",
44
44
  "@kengic/pont": "1.2.17-beta.1",
45
45
  "@rys-fe/vite-plugin-theme": "0.8.6",
46
46
  "@thymine/xunee": "0.4.9-beta.8",
@@ -1,90 +0,0 @@
1
- import dayjs from 'dayjs';
2
- import { KG__VAR_CONFIG_CONTROL__CONTROL_TYPE } from '../const';
3
- /**
4
- * 变量相关工具.
5
- */
6
- export declare class KgVarUtil {
7
- /**
8
- * <p>将 JSON 字符串形式的参数 `'{"foo":1,"bar":2}'` 转换为对象形式的参数 `{ "foo": 1, "bar": 2 }`.</p>
9
- *
10
- * @param params JSON 字符串形式的参数.
11
- * @return {} 参数对象.
12
- */
13
- static parseRequestParamsToJSON(params: string | null | undefined): Record<string, any>;
14
- /**
15
- * <p>根据控件类型, 将表单控件的默认值转换为合法的值.</p>
16
- *
17
- * @param param.$dayjs dayjs.
18
- * @param param.buttonVarName 「变量配置:表单控件」所属的按钮的变量名称.
19
- * @param param.formID 界面标识.
20
- * @param param.value 原始的值.
21
- * @param param.varName 变量名称.
22
- * @return {} 转换之后的值.
23
- */
24
- static transformFormItemDefaultValue(param: {
25
- $dayjs: typeof dayjs;
26
- buttonVarName: string | null | undefined;
27
- formID: string;
28
- value: any;
29
- varName: string;
30
- }): any;
31
- /**
32
- * 计算某个列表数据的文本.
33
- *
34
- * <p>
35
- * labelColumn 可以是一个 JS 表达式, 组件库会解析该表达式, 并得到真正的值. 比如表达式 \`${row.id}\` 表示获取该行的 id 列的值. 表达式中可以使用下列变量:
36
- * <ul>
37
- * <li>row: 表示该行数据,</li>
38
- * </ul>
39
- * </p>
40
- *
41
- * @param row 该行数据.
42
- * @param labelColumn 文本对应的字段或者表达式.
43
- */
44
- static evaluateVarConfigPossibilityLabel(row: any, labelColumn: string): string;
45
- /**
46
- * 根据控件类型, 将任意的高级查询操作符(可能非法)转换为合法的值.
47
- *
48
- * @param param.formID 界面标识.
49
- * @param param.value 原始的高级查询操作符.
50
- * @param param.varName 变量名称.
51
- * @return {} 转换后的合法的值.
52
- */
53
- static transformFormItemDynamicQueryOperator(param: {
54
- formID: string;
55
- value: string | null | undefined;
56
- varName: string;
57
- }): string;
58
- /**
59
- * 根据控件类型获取高级查询操作符的下拉列表.
60
- * @param controlType 控件类型.
61
- */
62
- static getDynamicQueryOperatorSelectOptions(controlType: KG__VAR_CONFIG_CONTROL__CONTROL_TYPE | null | undefined): any;
63
- /**
64
- * <p>根据查询条件拼接 SQL 语句片段.</p>
65
- * <p>根据查询参数拼接 SQL, 格式如下: `WHERE ... ORDER BY ...OFFSET...`, 每一个片段会单独作为一个属性返回.</p>
66
- * <ul>
67
- * <li>如果 dynamicQueryOperatorModel 传值, 表示直接使用传入的 dynamicQueryOperatorModel 作为高级查询操作符.</li>
68
- * <li>如果 dynamicQueryOperatorModel 没有传值, 但是 formID 传值, 表示通过变量配置获取高级查询操作符.</li>
69
- * </ul>
70
- *
71
- * @param param.$dayjs dayjs.
72
- * @param param.dynamicQueryOperatorModel 各个字段的高级查询操作符.
73
- * @param param.formID 界面标识.
74
- * @param param.kgSearchFormID 查询条件的界面标识.
75
- * @param param.params 请求参数.
76
- */
77
- static getQueryHeaders(param: {
78
- $dayjs: typeof dayjs;
79
- dynamicQueryOperatorModel: Record<string, any> | null | undefined;
80
- formID: string | null | undefined;
81
- kgSearchFormID: string | null | undefined;
82
- params: Record<string, any> | null | undefined;
83
- }): {
84
- offsetSql: string;
85
- operatorJSON: string;
86
- orderBySql: string;
87
- sql: string;
88
- whereSql: string;
89
- };
90
- }