@kengic/vue 0.28.2-beta.9 → 0.28.3-beta.1

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.
Files changed (51) hide show
  1. package/dist/clock-circle-outline.c90a0ae1.mjs +8 -0
  2. package/dist/file-text-outline.bae206dd.mjs +8 -0
  3. package/dist/index.css +1 -1
  4. package/dist/kengic-vue.js +29383 -27000
  5. package/dist/src/api/WMS/Controllers/SqlClientController/ExecutePage.d.ts +16 -0
  6. package/dist/src/api/WMS/Controllers/SqlClientController/index.d.ts +1 -0
  7. package/dist/src/api/WMS/models.d.ts +2 -0
  8. package/dist/src/component/KgCanvas/KgCanvas.d.ts +9 -3
  9. package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +2 -2
  10. package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +1 -1
  11. package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +6 -0
  12. package/dist/src/component/KgResizable/KgResizable.d.ts +28 -0
  13. package/dist/src/component/KgTable/KgTable.event.d.ts +9 -3
  14. package/dist/src/component/KgTable/KgTable.hooks.d.ts +7 -1
  15. package/dist/src/component/KgTable/KgTable.service.d.ts +1 -1
  16. package/dist/src/component/KgVar/KgVar.hooks.d.ts +11 -1
  17. package/dist/src/component/KgVar/KgVar.store.d.ts +47 -32
  18. package/dist/src/config/config.hooks.d.ts +23 -5
  19. package/dist/src/config/config.store.d.ts +58 -49
  20. package/dist/src/const/const.vm.d.ts +195 -103
  21. package/dist/src/const/form-id.const.d.ts +20 -0
  22. package/dist/src/i18n/cs_CZ.d.ts +9 -0
  23. package/dist/src/i18n/en.d.ts +10 -1
  24. package/dist/src/i18n/es_ES.d.ts +9 -0
  25. package/dist/src/i18n/fr_FR.d.ts +9 -0
  26. package/dist/src/i18n/i18n.setup.d.ts +3 -0
  27. package/dist/src/i18n/km_KH.d.ts +9 -0
  28. package/dist/src/i18n/ko_KR.d.ts +9 -0
  29. package/dist/src/i18n/vi_VN.d.ts +9 -0
  30. package/dist/src/i18n/zh_CN.d.ts +22 -13
  31. package/dist/src/page/KgCircleVis/KgPageCircleVis.d.ts +11 -0
  32. package/dist/src/page/KgCircleVis/components/KgCircleVis.AreaSelect.d.ts +5 -0
  33. package/dist/src/page/KgCircleVis/components/KgCircleVis.Canvas.d.ts +5 -0
  34. package/dist/src/page/KgCircleVis/components/KgCircleVis.Canvas.service.d.ts +51 -0
  35. package/dist/src/page/KgCircleVis/components/KgCircleVis.Legend.d.ts +5 -0
  36. package/dist/src/page/KgCircleVis/components/KgCircleVis.Offline.d.ts +5 -0
  37. package/dist/src/page/KgCircleVis/components/KgCircleVis.Tab.Log.d.ts +5 -0
  38. package/dist/src/page/KgCircleVis/components/KgCircleVis.Tab.Rgv.d.ts +33 -0
  39. package/dist/src/page/KgCircleVis/components/KgCircleVis.d.ts +5 -0
  40. package/dist/src/page/KgCircleVis/components/KgCircleVis.hooks.d.ts +29 -0
  41. package/dist/src/page/KgCircleVis/components/KgCircleVis.store.d.ts +282 -0
  42. package/dist/src/page/KgCircleVis/components/KgCircleVis.vm.d.ts +119 -0
  43. package/dist/src/page/KgCircleVis/index.d.ts +1 -0
  44. package/dist/src/page/KgPageSqlClient/components/KgSqlClient.Editor.d.ts +3 -1
  45. package/dist/src/page/KgPageSqlClient/components/KgSqlClient.Toolbar.Top.d.ts +7 -0
  46. package/dist/src/page/index.d.ts +2 -0
  47. package/dist/src/project/src/api/sys/menu.d.ts +2 -2
  48. package/dist/src/store/index.d.ts +1 -1
  49. package/dist/src/util/kg.util.d.ts +19 -23
  50. package/package.json +8 -7
  51. package/dist/src/page/KgPageSqlClient/components/KgSqlClient.Toolbar.d.ts +0 -7
@@ -0,0 +1,5 @@
1
+ import './KgCircleVis.css';
2
+ /**
3
+ * 环穿可视化:离线区.
4
+ */
5
+ export declare const KgCircleVisOffline: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
@@ -0,0 +1,5 @@
1
+ import './KgCircleVis.css';
2
+ /**
3
+ * 环穿可视化:日志.
4
+ */
5
+ export declare const KgCircleVisTabLog: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
@@ -0,0 +1,33 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgCircleVis.css';
3
+ import { StatusRgvVO } from './KgCircleVis.vm';
4
+ export declare const getProps: () => {
5
+ /**
6
+ * 小车.
7
+ */
8
+ rgv: {
9
+ required: boolean;
10
+ type: PropType<StatusRgvVO>;
11
+ };
12
+ };
13
+ export declare type KgCircleVisTabRgvProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
14
+ /**
15
+ * 环穿可视化:小车信息.
16
+ */
17
+ export declare const KgCircleVisTabRgv: import("vue").DefineComponent<{
18
+ /**
19
+ * 小车.
20
+ */
21
+ rgv: {
22
+ required: boolean;
23
+ type: PropType<StatusRgvVO>;
24
+ };
25
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
26
+ /**
27
+ * 小车.
28
+ */
29
+ rgv: {
30
+ required: boolean;
31
+ type: PropType<StatusRgvVO>;
32
+ };
33
+ }>>, {}>;
@@ -0,0 +1,5 @@
1
+ import './KgCircleVis.css';
2
+ /**
3
+ * 环穿可视化.
4
+ */
5
+ export declare const KgCircleVis: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
@@ -0,0 +1,29 @@
1
+ import { Q } from '@thymine/xunee';
2
+ import { IKgCircleVisProps, IKgCircleVisStore } from './KgCircleVis.store';
3
+ import { MapDTO, StatusDTO } from './KgCircleVis.vm';
4
+ export declare type IUseKgCircleVis = {
5
+ /**
6
+ * 画布:取下一个地图数据. 从地图数据列表队首取一个数据, 并且从列表中删除该数据. 如果列表为空, 则返回空.
7
+ */
8
+ $Canvas$popMapData(): MapDTO | null;
9
+ /**
10
+ * 画布:取下一个状态数据. 从状态数据列表队首取一个数据, 并且从列表中删除该数据. 如果列表为空, 则返回空.
11
+ */
12
+ $Canvas$popStatusData(): StatusDTO | null;
13
+ /**
14
+ * 画布对象.
15
+ */
16
+ graph: Q.Graph | null;
17
+ /**
18
+ * 设置参数.
19
+ *
20
+ * @param props 参数.
21
+ */
22
+ setProps(props: IKgCircleVisProps | null | undefined): void;
23
+ /** 状态数据. */
24
+ store: IKgCircleVisStore;
25
+ };
26
+ /**
27
+ *
28
+ */
29
+ export declare function useKgCircleVis(): IUseKgCircleVis;
@@ -0,0 +1,282 @@
1
+ import { Q } from '@thymine/xunee';
2
+ import { StoreDefinition } from 'pinia';
3
+ import { MapDTO, MapStationVO, StatusDTO, StatusRgvVO } from './KgCircleVis.vm';
4
+ export declare type IKgCircleVisProps = {
5
+ /**
6
+ * 接口地址.
7
+ */
8
+ api?: {
9
+ /**
10
+ * 地图数据.
11
+ *
12
+ * @default /apigateway/wasserver/api/v1/CircleRgvMap/GetMap
13
+ */
14
+ GetMap?: string;
15
+ /**
16
+ * 小车信息汇总.
17
+ *
18
+ * @default /apigateway/circle-rgv-system/getRgvStatus
19
+ */
20
+ GetRgvStatus?: string;
21
+ /**
22
+ * 任务信息汇总.
23
+ *
24
+ * @default /apigateway/circle-rgv-system/getRgvTasks
25
+ */
26
+ GetRgvTasks?: string;
27
+ /**
28
+ * 小车状态信息.
29
+ *
30
+ * @default /apigateway/wasserver/api/v1/CircleRgvState/GetSingleRgvState
31
+ */
32
+ GetSingleRgvState?: string;
33
+ /**
34
+ * 小车任务信息.
35
+ *
36
+ * @default /apigateway/wasserver/api/v1/CircleRgvState/GetSingleRgvTask
37
+ */
38
+ GetSingleRgvTask?: string;
39
+ /**
40
+ * 状态数据.
41
+ *
42
+ * @default /apigateway/wasserver/api/v1/CircleRgvState/GetState
43
+ */
44
+ GetState?: string;
45
+ /**
46
+ * 创建环穿任务.
47
+ *
48
+ * @default /apigateway/wasserver/api/v1/CircleRgvState/ManualCreateWorkTask
49
+ */
50
+ ManualCreateWorkTask?: string;
51
+ /**
52
+ * 日志.
53
+ *
54
+ * @default /kengic-boot/wcs/wmsApi/ReceiveMoveTask
55
+ */
56
+ ReceiveMoveTask?: string;
57
+ /**
58
+ * 小车上线下线.
59
+ *
60
+ * @default /apigateway/wasserver/api/v1/CircleRgvState/RgvOnlineOrOffline
61
+ */
62
+ RgvOnlineOrOffline?: string;
63
+ /**
64
+ * 任务操作.
65
+ *
66
+ * @default /apigateway/wasserver/api/v1/CircleRgvState/RgvTaskOperate
67
+ */
68
+ RgvTaskOperate?: string;
69
+ };
70
+ /**
71
+ * 页面底部默认高度.
72
+ *
73
+ * @default 639.
74
+ */
75
+ bottomDefaultHeight?: number;
76
+ /**
77
+ * 是否支持缩放以及拖拽.
78
+ *
79
+ * @default true
80
+ */
81
+ isScalable?: boolean;
82
+ /**
83
+ * 请求状态数据的时间间隔.
84
+ *
85
+ * @default 1000 毫秒.
86
+ */
87
+ requestStatusInterval?: number;
88
+ /**
89
+ * 小车刻度误差.
90
+ *
91
+ * @default 10.
92
+ */
93
+ rgvCoordinateDeviation?: number;
94
+ /**
95
+ * 小车不同状态时的颜色.
96
+ */
97
+ rgvStatusColor?: {
98
+ /**
99
+ * 驱赶.
100
+ *
101
+ * @default '#ffd262'
102
+ */
103
+ drive: string;
104
+ /**
105
+ * 取货.
106
+ *
107
+ * @default #2ecc27
108
+ */
109
+ get: string;
110
+ /**
111
+ * 空闲.
112
+ *
113
+ * @default '#000000'
114
+ */
115
+ idle: string;
116
+ /**
117
+ * 手动.
118
+ *
119
+ * @default '#765708'
120
+ */
121
+ manual: string;
122
+ /**
123
+ * 离线.
124
+ *
125
+ * @default '#7f7f7f'
126
+ */
127
+ offline: string;
128
+ /**
129
+ * 放货.
130
+ *
131
+ * @default '#1890ff'
132
+ */
133
+ put: string;
134
+ /**
135
+ * 报警.
136
+ *
137
+ * @default '#ff3a3a'
138
+ */
139
+ warn: string;
140
+ };
141
+ /**
142
+ * 绘制时的线宽.
143
+ *
144
+ * @default 10.
145
+ */
146
+ strokeLineWidth?: number;
147
+ /**
148
+ * 更新状态数据的时间间隔.
149
+ *
150
+ * @default 100 毫秒.
151
+ */
152
+ updateStatusInterval?: number;
153
+ };
154
+ export interface IKgCircleVisStoreState {
155
+ /**
156
+ * 库区下拉列表:是否正在请求数据.
157
+ */
158
+ $AreaSelect$isRequesting: boolean;
159
+ /**
160
+ * 库区下拉列表:当前选中的值.
161
+ */
162
+ $AreaSelect$value: string | null;
163
+ /**
164
+ * 画布:当前选中的小车列表.
165
+ */
166
+ $Canvas$currentRgvList: Array<StatusRgvVO>;
167
+ /**
168
+ * 画布:当前选中的站点列表.
169
+ */
170
+ $Canvas$currentStationList: Array<MapStationVO>;
171
+ /**
172
+ * 画布:最新地图数据.
173
+ */
174
+ $Canvas$mapData: MapDTO | null;
175
+ /**
176
+ * 画布:地图数据列表. 等待被绘制的地图数据列表, 每次绘制都从队首取一个数据进行绘制, 当队列为空时暂停绘制.
177
+ */
178
+ $Canvas$mapDataList: Array<MapDTO>;
179
+ /**
180
+ * 画布:是否正在请求地图数据.
181
+ */
182
+ $Canvas$mapIsRequesting: boolean;
183
+ /**
184
+ * 画布:最新状态数据.
185
+ */
186
+ $Canvas$statusData: StatusDTO | null;
187
+ /**
188
+ * 画布:状态数据列表. 等待被绘制的状态数据列表, 每次绘制都从队首取一个数据进行绘制, 当队列为空时暂停绘制.
189
+ */
190
+ $Canvas$statusDataList: Array<StatusDTO>;
191
+ /**
192
+ * 画布:是否正在请求状态数据.
193
+ */
194
+ $Canvas$statusIsRequesting: boolean;
195
+ /**
196
+ * 图例:是否显示.
197
+ */
198
+ $Legend$isVisible: boolean;
199
+ /**
200
+ * 标签页:当前标签页.
201
+ */
202
+ $Tab$activeKey: string | number;
203
+ /**
204
+ * 标签页:小车列表.
205
+ */
206
+ $Tab$rgvList: Array<StatusRgvVO>;
207
+ /**
208
+ * 画布对象.
209
+ */
210
+ graph: Q.Graph | null;
211
+ /**
212
+ * 参数.
213
+ */
214
+ props: IKgCircleVisProps | null;
215
+ }
216
+ export interface IKgCircleVisStoreGetters {
217
+ $AreaSelect$getIsRequesting(): boolean;
218
+ $AreaSelect$getValue(): string | null;
219
+ $Canvas$getCurrentRgvList(): Array<StatusRgvVO>;
220
+ $Canvas$getCurrentStationList(): Array<MapStationVO>;
221
+ $Canvas$getMapData(): MapDTO | null;
222
+ $Canvas$getMapDataList(): Array<MapDTO>;
223
+ $Canvas$getMapIsRequesting(): boolean;
224
+ $Canvas$getStatusData(): StatusDTO | null;
225
+ $Canvas$getStatusDataList(): Array<StatusDTO>;
226
+ $Canvas$getStatusIsRequesting(): boolean;
227
+ $Legend$getIsVisible(): boolean;
228
+ /**
229
+ * 离线区:离线小车列表.
230
+ */
231
+ $Offline$getRgvList(): Array<StatusRgvVO>;
232
+ $Tab$getActiveKey(): string | number;
233
+ $Tab$getRgvList(): Array<StatusRgvVO>;
234
+ getGraph(): Q.Graph | null;
235
+ getProps(): IKgCircleVisProps | null;
236
+ }
237
+ export interface IKgCircleVisStoreActions {
238
+ $AreaSelect$setIsRequesting(value: boolean | null | undefined): void;
239
+ $AreaSelect$setValue(value: string | null | undefined): void;
240
+ /**
241
+ * 画布:往地图数据列尾插入一个数据.
242
+ *
243
+ * @param value 要插入的数据.
244
+ */
245
+ $Canvas$pushMapDataList(value: MapDTO | null | undefined): void;
246
+ /**
247
+ * 画布:往状态数据列尾插入一个数据.
248
+ *
249
+ * @param value 要插入的数据.
250
+ */
251
+ $Canvas$pushStatusDataList(value: StatusDTO | null | undefined): void;
252
+ $Canvas$setCurrentRgvList(value: Array<StatusRgvVO> | null | undefined): void;
253
+ $Canvas$setCurrentStationList(value: Array<MapStationVO> | null | undefined): void;
254
+ $Canvas$setMapData(value: MapDTO | null | undefined): void;
255
+ $Canvas$setMapDataList(value: Array<MapDTO> | null | undefined): void;
256
+ $Canvas$setMapIsRequesting(value: boolean | null | undefined): void;
257
+ $Canvas$setStatusData(value: StatusDTO | null | undefined): void;
258
+ $Canvas$setStatusDataList(value: Array<StatusDTO> | null | undefined): void;
259
+ $Canvas$setStatusIsRequesting(value: boolean | null | undefined): void;
260
+ $Legend$setIsVisible(value: boolean | null | undefined): void;
261
+ /**
262
+ * 标签页:从标签页列表中删除某个小车.
263
+ *
264
+ * @param value 要删除的小车.
265
+ */
266
+ $Tab$deleteRgv(value: StatusRgvVO | null | undefined): void;
267
+ /**
268
+ * <p>标签页:插入小车列表.</p>
269
+ * <p>如果某个小车已经存在标签页列表中, 则不插入.</p>
270
+ * <p>插入完成后, 将新插入的小车列表中的第一个小车的标签页激活.</p>
271
+ *
272
+ * @param value 小车列表.
273
+ */
274
+ $Tab$insertRgvList(value: Array<StatusRgvVO> | null | undefined): void;
275
+ $Tab$setActiveKey(value: string | number | null | undefined): void;
276
+ $Tab$setRgvList(value: Array<StatusRgvVO> | null | undefined): void;
277
+ setGraph(value: Q.Graph | null | undefined): void;
278
+ setProps(value: IKgCircleVisProps | null | undefined): void;
279
+ }
280
+ export declare type IUseKgCircleVisStore = StoreDefinition<'KgCircleVis', IKgCircleVisStoreState, IKgCircleVisStoreGetters, IKgCircleVisStoreActions>;
281
+ export declare type IKgCircleVisStore = ReturnType<IUseKgCircleVisStore>;
282
+ export declare const useKgCircleVisStore: IUseKgCircleVisStore;
@@ -0,0 +1,119 @@
1
+ export declare type MapMapDTO = {
2
+ /** 终点坐标 */
3
+ destinationCoordinate: number;
4
+ /** 运行方向 0:顺时针,1:逆时针 */
5
+ direction: number;
6
+ /** 长 */
7
+ length: number;
8
+ /** 轨道线宽 */
9
+ lineWidth: number;
10
+ /** 定位坐标(下侧轨道中心点) */
11
+ offset: number;
12
+ /** 起点坐标 */
13
+ sourceCoordinate: number;
14
+ /** 宽 */
15
+ width: number;
16
+ };
17
+ export declare type MapStationDTO = {
18
+ /** 线体编号. */
19
+ conveyorNo: string;
20
+ /** 线体坐标(线体相对环穿轨道的位置). */
21
+ coordinate: number;
22
+ /** 站点方向 0:朝向车,1:背离车. */
23
+ direction: number;
24
+ /** 线体长度. */
25
+ length: number;
26
+ /** 线体名称. */
27
+ name: string;
28
+ /** 站点编号. */
29
+ stationNo: string;
30
+ /** 线体宽度 */
31
+ width: number;
32
+ };
33
+ /**
34
+ * 地图数据.
35
+ */
36
+ export declare type MapDTO = {
37
+ /** 站点. */
38
+ conveyor: Array<MapStationVO>;
39
+ /** 轨道. */
40
+ map: MapMapDTO;
41
+ };
42
+ /**
43
+ * 状态数据.
44
+ */
45
+ export declare type StatusDTO = {
46
+ conveyorState: Array<StatusStationDTO>;
47
+ rgvState: Array<StatusRgvVO>;
48
+ };
49
+ export declare type StatusStationDTO = {
50
+ /**
51
+ * 线体编号.
52
+ */
53
+ conveyorNo: string;
54
+ /**
55
+ * 托盘号.
56
+ */
57
+ containerId: string;
58
+ /**
59
+ * 占位信息 1:有托盘 0:无托盘.
60
+ */
61
+ occupiedFlag: number;
62
+ };
63
+ export declare type StatusRgvDTO = {
64
+ /**
65
+ * 小车编号.
66
+ */
67
+ rgvNo: string;
68
+ /**
69
+ * 小车长度.
70
+ */
71
+ length: number;
72
+ /**
73
+ * 小车宽度.
74
+ */
75
+ width: number;
76
+ /**
77
+ * 车所在坐标.
78
+ */
79
+ position: number;
80
+ /**
81
+ * 站点编号.
82
+ */
83
+ stationId: string;
84
+ /**
85
+ * 起始站点.
86
+ */
87
+ sourceStation: string;
88
+ /**
89
+ * 目的站点.
90
+ */
91
+ destinationStation: string;
92
+ /**
93
+ * 小车状态(0:离线(灰色、离线区)、1:报警(红色)、2:手动(棕色) 3:空闲(黑色) 4:取货(绿色) 5:放货(蓝色) 6:赶车(橙色)
94
+ */
95
+ state: number;
96
+ /**
97
+ * 托盘号.
98
+ */
99
+ containerId: string;
100
+ /**
101
+ * 负载状态 1:有托盘 0:无托盘.
102
+ */
103
+ loadState: number;
104
+ };
105
+ export declare type StatusRgvVO = StatusRgvDTO & {
106
+ /**
107
+ * 上次绘制时的刻度.
108
+ */
109
+ PREVIOUS_COORDINATE?: number | null | undefined;
110
+ };
111
+ export declare type MapStationVO = MapStationDTO & StatusStationDTO;
112
+ export declare const TAB_KEY: {
113
+ /** 小车信息汇总. */
114
+ RGV_SUMMARY: string;
115
+ /** 任务信息汇总. */
116
+ TASK_SUMMARY: string;
117
+ /** 日志. */
118
+ LOG: string;
119
+ };
@@ -0,0 +1 @@
1
+ export { default as KgPageCircleVis } from './KgPageCircleVis';
@@ -8,4 +8,6 @@ export interface KgSqlClientEditorRef {
8
8
  /**
9
9
  * <p>数据库客户端:编辑器.</p>
10
10
  */
11
- export declare const KgSqlClientEditor: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
11
+ export declare const KgSqlClientEditor: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "execute"[], "execute", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
12
+ onExecute?: ((...args: any[]) => any) | undefined;
13
+ }, {}>;
@@ -0,0 +1,7 @@
1
+ import './KgSqlClient.css';
2
+ /**
3
+ * <p>数据库客户端:工具栏:顶部.</p>
4
+ */
5
+ export declare const KgSqlClientToolbarTop: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "execute"[], "execute", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
6
+ onExecute?: ((...args: any[]) => any) | undefined;
7
+ }, {}>;
@@ -1,3 +1,5 @@
1
+ export { useKgCircleVis, type IUseKgCircleVis } from './KgCircleVis/components/KgCircleVis.hooks';
2
+ export * from './KgCircleVis/components/KgCircleVis.vm';
1
3
  /**
2
4
  * 路由.
3
5
  *
@@ -1,4 +1,4 @@
1
1
  /**
2
- * @description: Get user menu based on id
2
+ * 查询菜单列表.
3
3
  */
4
- export declare const getMenuList: () => Promise<unknown>;
4
+ export declare function getMenuList(): Promise<any>;
@@ -5,4 +5,4 @@ export declare const pinia: import("pinia").Pinia;
5
5
  *
6
6
  * @param app 应用.
7
7
  */
8
- export declare function setupKgStore(app: App<Element>): void;
8
+ export declare function setupKgStore(app: App<Element>): Promise<void>;
@@ -1,6 +1,6 @@
1
1
  import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
2
2
  import dayjs, { Dayjs } from 'dayjs';
3
- import { IKgVarButtonModalProperties, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE, KG_APP } from '../const';
3
+ import { IKgVarButtonModalProperties, KG_APP } from '../const';
4
4
  import { Menu } from '../project/src/router/types';
5
5
  /**
6
6
  * 工具方法.
@@ -54,12 +54,7 @@ export declare class KgUtil {
54
54
  * @param param.value 参数的原始值.
55
55
  * @param param.varName 变量名称.
56
56
  */
57
- static parseParamsFromString(param: {
58
- $dayjs?: typeof dayjs;
59
- formID?: string | null;
60
- value: string;
61
- varName?: string | null;
62
- }): any;
57
+ private static parseParamsFromString;
63
58
  /**
64
59
  * 处理请求参数: 解析 Dayjs 类型的参数值.
65
60
  *
@@ -68,12 +63,7 @@ export declare class KgUtil {
68
63
  * @param param.key 属性名.
69
64
  * @param param.value 参数的原始值.
70
65
  */
71
- static parseParamsFromDayjs(param: {
72
- formID?: string | null;
73
- isPad?: boolean;
74
- key: string;
75
- value: any;
76
- }): string;
66
+ private static parseParamsFromDayjs;
77
67
  /**
78
68
  * <p>确认弹窗.</p>
79
69
  * <p>设置了多个属性的默认值, 简化使用.</p>
@@ -209,22 +199,22 @@ export declare class KgUtil {
209
199
  */
210
200
  static parseRequestParamsToJSON(params: string | null | undefined): Record<string, any>;
211
201
  /**
212
- * <p>根据控件类型, 将表单控件的默认值转换为合法的值.</p>
202
+ * <p>根据控件类型, 将表单控件的值转换为合法的值.</p>
213
203
  *
214
204
  * @param param.$dayjs dayjs.
215
205
  * @param param.buttonVarName 「变量配置:表单控件」所属的按钮的变量名称.
216
- * @param param.defaultValue 原始的默认值.
217
206
  * @param param.formID 界面标识.
218
207
  * @param param.isParseDynamicParam 是否替换动态参数. 默认为 true.
208
+ * @param param.oldValue 转换之前的值.
219
209
  * @param param.varName 变量名称.
220
210
  * @return {} 转换之后的值.
221
211
  */
222
- static transformVarSubmitDetailDefaultValue(param: {
212
+ static transformVarSubmitDetailValue(param: {
223
213
  $dayjs: typeof dayjs;
224
214
  buttonVarName: string | null | undefined;
225
- defaultValue: any;
226
215
  formID: string;
227
216
  isParseDynamicParam?: boolean;
217
+ oldValue: any;
228
218
  varName: string;
229
219
  }): any;
230
220
  /**
@@ -259,7 +249,7 @@ export declare class KgUtil {
259
249
  * 根据控件类型获取高级查询操作符的下拉列表.
260
250
  * @param controlType 控件类型.
261
251
  */
262
- static getDynamicQueryOperatorSelectOptions(controlType: KG__VAR_CONFIG_CONTROL__CONTROL_TYPE | null | undefined): any;
252
+ static getDynamicQueryOperatorSelectOptions(controlType: string | null | undefined): any;
263
253
  /**
264
254
  * 如果属性值是动态参数值 {@link KG__DYNAMIC_PARAM}, 则给属性值的花括号里面的前后加上特殊字符 #, 防止它被解析成实际的值.
265
255
  *
@@ -267,6 +257,7 @@ export declare class KgUtil {
267
257
  */
268
258
  static insertHashToDynamicQueryParams(params: any): void;
269
259
  /**
260
+ * <p>获取查询请求相关的请求头.</p>
270
261
  * <p>根据查询条件拼接 SQL 语句片段.</p>
271
262
  * <p>根据查询参数拼接 SQL, 格式如下: `WHERE ... ORDER BY ...`, 每一个片段会单独作为一个属性返回.</p>
272
263
  * <ul>
@@ -287,21 +278,26 @@ export declare class KgUtil {
287
278
  kgSearchFormID: string | null | undefined;
288
279
  params: Record<string, any> | null | undefined;
289
280
  }): {
290
- operatorJSON: string;
281
+ operatorObjectJSON: string;
291
282
  orderBySql: string;
292
283
  sql: string;
284
+ whereObjectJSON: string;
293
285
  whereSql: string;
294
286
  } | {
295
287
  /**
296
- * 查询操作符的 JSON 字符串.
288
+ * 查询操作符对象的 JSON 字符串.
297
289
  */
298
- operatorJSON: string;
290
+ operatorObjectJSON: string;
299
291
  /**
300
- * ORDER BY.
292
+ * ORDER BY SQL.
301
293
  */
302
294
  orderBySql: string;
303
295
  /**
304
- * WHERE .
296
+ * 查询字段的 WHERE 片段对象的 JSON 字符串.
297
+ */
298
+ whereObjectJSON: string;
299
+ /**
300
+ * WHERE SQL.
305
301
  */
306
302
  whereSql: string;
307
303
  sql?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.28.2-beta.9",
3
+ "version": "0.28.3-beta.1",
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",
@@ -10,22 +10,23 @@
10
10
  "use-node": "nvm use 20.17.0 && corepack enable && corepack use pnpm@9.12.1",
11
11
  "cnpm:sync": "npm run use-node && npx cnpm --yes sync @kengic/vue",
12
12
  "-- -----------------------------------------------": "",
13
- "publish:major": "npm run bump:major && tsx script/publish.ts",
14
- "publish:minor": "npm run bump:minor && tsx script/publish.ts",
15
- "publish:patch": "npm run bump:patch && tsx script/publish.ts",
16
- "publish:beta": "npm run bump:beta && tsx script/publish.ts",
17
- "------- ------------------------------------------": "",
18
13
  "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
14
  "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",
20
15
  "copy-to:luotao:smartfactory.product.wms.wms--project-kengic-factory": "npm run use-node && npm run build:dev && tsx script/copy-to.luotao.smartfactory.product.wms.wms--project-kengic-factory.ts",
21
16
  "bump-to:luotao:smartfactory.product.wms.wms--project-kengic-factory": "npm run use-node && tsx script/bump-to.luotao.smartfactory.product.wms.wms--project-kengic-factory.ts",
17
+ "copy-to:luotao:smartfactory.tyre.haohua.basic.was-java--PcrTireWeb": "npm run use-node && npm run build:dev && tsx script/copy-to.luotao.smartfactory.tyre.haohua.basic.was-java--PcrTireWeb.ts",
22
18
  "----- --------------------------------------------": "更新组件库的版本",
23
19
  "bump:major": "npm run use-node && tsx script/bump.ts major",
24
20
  "bump:minor": "npm run use-node && tsx script/bump.ts minor",
25
21
  "bump:patch": "npm run use-node && tsx script/bump.ts patch",
26
22
  "bump:beta": "npm run use-node && tsx script/bump.ts beta",
27
23
  "---- ---------------------------------------------": "发布到 npmjs 仓库",
28
- "publish:npm": "npm run use-node && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
24
+ "publish:npm": "npm run use-node && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public",
25
+ "publish:major": "npm run bump:major && tsx script/publish.ts",
26
+ "publish:minor": "npm run bump:minor && tsx script/publish.ts",
27
+ "publish:patch": "npm run bump:patch && tsx script/publish.ts",
28
+ "publish:beta": "npm run bump:beta && tsx script/publish.ts",
29
+ "------- ------------------------------------------": ""
29
30
  },
30
31
  "peerDependencies": {
31
32
  "vue": "3.2.43"