@kengic/vue 0.30.1-beta.29 → 0.30.1-beta.30
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.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +5461 -5403
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.d.ts +9 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Property.d.ts +9 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Scene.d.ts +9 -0
- package/dist/src/component/KgSimulator/{KgSimulator.Toolbar.d.ts → KgSimulator.ToolbarButton.d.ts} +3 -3
- package/dist/src/component/KgSimulator/KgSimulator.d.ts +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.event.d.ts +25 -3
- package/dist/src/component/KgSimulator/KgSimulator.hooks.d.ts +15 -1
- package/dist/src/component/KgSimulator/KgSimulator.model.d.ts +37 -0
- package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +1 -1
- package/dist/src/const/const.model.d.ts +16 -16
- package/package.json +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.Toolbar.Prefab.d.ts +0 -9
- package/dist/src/component/KgSimulator/KgSimulator.Toolbar.Property.d.ts +0 -9
- package/dist/src/component/KgSimulator/KgSimulator.Toolbar.Scene.d.ts +0 -9
- /package/dist/src/component/KgSimulator/{KgSimulator.service.d.ts → KgSimulator.Canvas.service.d.ts} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare const getProps: () => any;
|
|
3
|
+
export declare type KgSimulatorToolbarButtonPrefabProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
4
|
+
/**
|
|
5
|
+
* 模拟器--工具按钮--预制组件.
|
|
6
|
+
*/
|
|
7
|
+
export declare const KgSimulatorToolbarButtonPrefab: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare const getProps: () => any;
|
|
3
|
+
export declare type KgSimulatorToolbarButtonPropertyProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
4
|
+
/**
|
|
5
|
+
* 模拟器--工具按钮--属性.
|
|
6
|
+
*/
|
|
7
|
+
export declare const KgSimulatorToolbarButtonProperty: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare const getProps: () => any;
|
|
3
|
+
export declare type KgSimulatorToolbarButtonSceneProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
4
|
+
/**
|
|
5
|
+
* 模拟器--工具按钮--场景.
|
|
6
|
+
*/
|
|
7
|
+
export declare const KgSimulatorToolbarButtonScene: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}>;
|
package/dist/src/component/KgSimulator/{KgSimulator.Toolbar.d.ts → KgSimulator.ToolbarButton.d.ts}
RENAMED
|
@@ -36,11 +36,11 @@ export declare const getProps: () => {
|
|
|
36
36
|
};
|
|
37
37
|
'onUpdate:kgIsOpen': PropType<(value: boolean) => void>;
|
|
38
38
|
};
|
|
39
|
-
export declare type
|
|
39
|
+
export declare type KgSimulatorToolbarButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* 模拟器--工具按钮.
|
|
42
42
|
*/
|
|
43
|
-
export declare const
|
|
43
|
+
export declare const KgSimulatorToolbarButton: import("vue").DefineComponent<{
|
|
44
44
|
/**
|
|
45
45
|
* 图标.
|
|
46
46
|
*/
|
|
@@ -10,7 +10,7 @@ export declare const getProps: () => {
|
|
|
10
10
|
required: boolean;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
export declare type
|
|
13
|
+
export declare type KgSimulatorToolbarButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
14
14
|
/**
|
|
15
15
|
* 模拟器, 仿真模拟器, 环形输送线模拟器, 环形穿梭车模拟器.
|
|
16
16
|
*/
|
|
@@ -2,7 +2,7 @@ import { IKgEventListener } from '@kengic/core.core';
|
|
|
2
2
|
/**
|
|
3
3
|
* 事件类型.
|
|
4
4
|
*/
|
|
5
|
-
export declare type IKgSimulatorEvent = 'on$KgSimulatorCanvas$CreateData' | 'on$KgSimulatorCanvas$DeleteData' | 'on$KgSimulatorCanvas$UpdateData';
|
|
5
|
+
export declare type IKgSimulatorEvent = 'on$KgSimulatorCanvas$CreateData' | 'on$KgSimulatorCanvas$DeleteData' | 'on$KgSimulatorCanvas$UpdateData' | 'on$KgSimulatorPanelScene$Click' | 'on$KgSimulatorPanelScene$Delete';
|
|
6
6
|
export declare type IKgSimulatorOn$KgSimulatorCanvas$CreateDataEventListenerParameter = {
|
|
7
7
|
/**
|
|
8
8
|
* 对象.
|
|
@@ -20,12 +20,34 @@ export declare type IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListenerPara
|
|
|
20
20
|
export declare type IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListener = ((param: IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
21
21
|
export declare type IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListenerParameter = {};
|
|
22
22
|
export declare type IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListener = ((param: IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
23
|
-
export declare type
|
|
24
|
-
|
|
23
|
+
export declare type IKgSimulatorOn$KgSimulatorPanelScene$ClickEventListenerParameter = {
|
|
24
|
+
/**
|
|
25
|
+
* 主键.
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* 对象类型.
|
|
30
|
+
*
|
|
31
|
+
* @see {@link NODE_KEY}
|
|
32
|
+
*/
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
export declare type IKgSimulatorOn$KgSimulatorPanelScene$ClickEventListener = ((param: IKgSimulatorOn$KgSimulatorPanelScene$ClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
36
|
+
export declare type IKgSimulatorOn$KgSimulatorPanelScene$DeleteEventListenerParameter = {
|
|
37
|
+
/**
|
|
38
|
+
* 被删除的主键列表.
|
|
39
|
+
*/
|
|
40
|
+
deleteIdList: Array<string>;
|
|
41
|
+
};
|
|
42
|
+
export declare type IKgSimulatorOn$KgSimulatorPanelScene$DeleteEventListener = ((param: IKgSimulatorOn$KgSimulatorPanelScene$DeleteEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
43
|
+
export declare type IKgSimulatorEventListenerParameter = IKgSimulatorOn$KgSimulatorCanvas$CreateDataEventListenerParameter | IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListenerParameter | IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListenerParameter | IKgSimulatorOn$KgSimulatorPanelScene$ClickEventListenerParameter | IKgSimulatorOn$KgSimulatorPanelScene$DeleteEventListenerParameter;
|
|
44
|
+
export declare type IKgSimulatorEventListener = IKgSimulatorOn$KgSimulatorCanvas$CreateDataEventListener | IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListener | IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListener | IKgSimulatorOn$KgSimulatorPanelScene$ClickEventListener | IKgSimulatorOn$KgSimulatorPanelScene$DeleteEventListener;
|
|
25
45
|
export declare const eventListeners: Record<string, {
|
|
26
46
|
on$KgSimulatorCanvas$CreateData: Array<IKgSimulatorOn$KgSimulatorCanvas$CreateDataEventListener>;
|
|
27
47
|
on$KgSimulatorCanvas$DeleteData: Array<IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListener>;
|
|
28
48
|
on$KgSimulatorCanvas$UpdateData: Array<IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListener>;
|
|
49
|
+
on$KgSimulatorPanelScene$Click: Array<IKgSimulatorOn$KgSimulatorPanelScene$ClickEventListener>;
|
|
50
|
+
on$KgSimulatorPanelScene$Delete: Array<IKgSimulatorOn$KgSimulatorPanelScene$DeleteEventListener>;
|
|
29
51
|
}>;
|
|
30
52
|
/**
|
|
31
53
|
* 触发事件.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IRemoveEventListener } from '@kengic/core.core';
|
|
2
2
|
import { VarSubmitDetail } from '../../api/WMS/models';
|
|
3
|
-
import { IKgSimulatorOn$KgSimulatorCanvas$CreateDataEventListener, IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListener, IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListener } from './KgSimulator.event';
|
|
3
|
+
import { IKgSimulatorOn$KgSimulatorCanvas$CreateDataEventListener, IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListener, IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListener, IKgSimulatorOn$KgSimulatorPanelScene$ClickEventListener, IKgSimulatorOn$KgSimulatorPanelScene$DeleteEventListener } from './KgSimulator.event';
|
|
4
4
|
import { buildKgSimulatorStore } from './KgSimulator.store';
|
|
5
5
|
export declare type IUseKgSimulator = {
|
|
6
6
|
/**
|
|
@@ -41,6 +41,20 @@ export declare type IUseKgSimulator = {
|
|
|
41
41
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
42
42
|
*/
|
|
43
43
|
on$KgSimulatorCanvas$UpdateData(listener: IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
44
|
+
/**
|
|
45
|
+
* 监听事件: 面板--场景--点击一个节点.
|
|
46
|
+
*
|
|
47
|
+
* @param listener 事件监听函数.
|
|
48
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
49
|
+
*/
|
|
50
|
+
on$KgSimulatorPanelScene$Click(listener: IKgSimulatorOn$KgSimulatorPanelScene$ClickEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
51
|
+
/**
|
|
52
|
+
* 监听事件: 面板--场景--删除多个节点.
|
|
53
|
+
*
|
|
54
|
+
* @param listener 事件监听函数.
|
|
55
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
56
|
+
*/
|
|
57
|
+
on$KgSimulatorPanelScene$Delete(listener: IKgSimulatorOn$KgSimulatorPanelScene$DeleteEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
44
58
|
/**
|
|
45
59
|
* 状态数据.
|
|
46
60
|
*/
|
|
@@ -448,6 +448,43 @@ export declare const NODE_KEY: {
|
|
|
448
448
|
*/
|
|
449
449
|
SCENE: string;
|
|
450
450
|
};
|
|
451
|
+
/**
|
|
452
|
+
* 节点附件类型.
|
|
453
|
+
*/
|
|
454
|
+
export declare const NODE_UI_KEY: {
|
|
455
|
+
/**
|
|
456
|
+
* 创建者--编号.
|
|
457
|
+
*/
|
|
458
|
+
CREATOR_CODE: string;
|
|
459
|
+
/**
|
|
460
|
+
* 销毁者--编号.
|
|
461
|
+
*/
|
|
462
|
+
DESTROYER_CODE: string;
|
|
463
|
+
/**
|
|
464
|
+
* 叠盘机--编号.
|
|
465
|
+
*/
|
|
466
|
+
DPJ_CODE: string;
|
|
467
|
+
/**
|
|
468
|
+
* 顶升移载机--编号.
|
|
469
|
+
*/
|
|
470
|
+
DSYZJ_CODE: string;
|
|
471
|
+
/**
|
|
472
|
+
* 线段--编号.
|
|
473
|
+
*/
|
|
474
|
+
EDGE_CODE: string;
|
|
475
|
+
/**
|
|
476
|
+
* 光电传感器--编号.
|
|
477
|
+
*/
|
|
478
|
+
GDCGQ_CODE: string;
|
|
479
|
+
/**
|
|
480
|
+
* 普通输送机--编号.
|
|
481
|
+
*/
|
|
482
|
+
PTSSJ_CODE: string;
|
|
483
|
+
/**
|
|
484
|
+
* 场景--编号.
|
|
485
|
+
*/
|
|
486
|
+
SCENE_CODE: string;
|
|
487
|
+
};
|
|
451
488
|
/**
|
|
452
489
|
* 拖拽数据.
|
|
453
490
|
*/
|
|
@@ -142,35 +142,35 @@ export declare const KG: {
|
|
|
142
142
|
/**
|
|
143
143
|
* 左下侧面板.
|
|
144
144
|
*/
|
|
145
|
-
|
|
145
|
+
PANEL__LEFT_BOTTOM__TELEPORT_ID: InjectionKey<string>;
|
|
146
146
|
/**
|
|
147
147
|
* 左上侧面板.
|
|
148
148
|
*/
|
|
149
|
-
|
|
149
|
+
PANEL__LEFT_TOP__TELEPORT_ID: InjectionKey<string>;
|
|
150
150
|
/**
|
|
151
151
|
* 右下侧面板.
|
|
152
152
|
*/
|
|
153
|
-
|
|
153
|
+
PANEL__RIGHT_BOTTOM__TELEPORT_ID: InjectionKey<string>;
|
|
154
154
|
/**
|
|
155
155
|
* 右上侧面板.
|
|
156
156
|
*/
|
|
157
|
-
|
|
157
|
+
PANEL__RIGHT_TOP__TELEPORT_ID: InjectionKey<string>;
|
|
158
158
|
/**
|
|
159
159
|
* 左下侧工具栏.
|
|
160
160
|
*/
|
|
161
|
-
|
|
161
|
+
TOOLBAR__LEFT_BOTTOM__TELEPORT_ID: InjectionKey<string>;
|
|
162
162
|
/**
|
|
163
163
|
* 左上侧工具栏.
|
|
164
164
|
*/
|
|
165
|
-
|
|
165
|
+
TOOLBAR__LEFT_TOP__TELEPORT_ID: InjectionKey<string>;
|
|
166
166
|
/**
|
|
167
167
|
* 右下侧工具栏.
|
|
168
168
|
*/
|
|
169
|
-
|
|
169
|
+
TOOLBAR__RIGHT_BOTTOM__TELEPORT_ID: InjectionKey<string>;
|
|
170
170
|
/**
|
|
171
171
|
* 右上侧工具栏.
|
|
172
172
|
*/
|
|
173
|
-
|
|
173
|
+
TOOLBAR__RIGHT_TOP__TELEPORT_ID: InjectionKey<string>;
|
|
174
174
|
};
|
|
175
175
|
/**
|
|
176
176
|
* 变量页面.
|
|
@@ -499,35 +499,35 @@ export declare const KG_CONST: {
|
|
|
499
499
|
/**
|
|
500
500
|
* 左下侧面板.
|
|
501
501
|
*/
|
|
502
|
-
|
|
502
|
+
PANEL__LEFT_BOTTOM__TELEPORT_ID: InjectionKey<string>;
|
|
503
503
|
/**
|
|
504
504
|
* 左上侧面板.
|
|
505
505
|
*/
|
|
506
|
-
|
|
506
|
+
PANEL__LEFT_TOP__TELEPORT_ID: InjectionKey<string>;
|
|
507
507
|
/**
|
|
508
508
|
* 右下侧面板.
|
|
509
509
|
*/
|
|
510
|
-
|
|
510
|
+
PANEL__RIGHT_BOTTOM__TELEPORT_ID: InjectionKey<string>;
|
|
511
511
|
/**
|
|
512
512
|
* 右上侧面板.
|
|
513
513
|
*/
|
|
514
|
-
|
|
514
|
+
PANEL__RIGHT_TOP__TELEPORT_ID: InjectionKey<string>;
|
|
515
515
|
/**
|
|
516
516
|
* 左下侧工具栏.
|
|
517
517
|
*/
|
|
518
|
-
|
|
518
|
+
TOOLBAR__LEFT_BOTTOM__TELEPORT_ID: InjectionKey<string>;
|
|
519
519
|
/**
|
|
520
520
|
* 左上侧工具栏.
|
|
521
521
|
*/
|
|
522
|
-
|
|
522
|
+
TOOLBAR__LEFT_TOP__TELEPORT_ID: InjectionKey<string>;
|
|
523
523
|
/**
|
|
524
524
|
* 右下侧工具栏.
|
|
525
525
|
*/
|
|
526
|
-
|
|
526
|
+
TOOLBAR__RIGHT_BOTTOM__TELEPORT_ID: InjectionKey<string>;
|
|
527
527
|
/**
|
|
528
528
|
* 右上侧工具栏.
|
|
529
529
|
*/
|
|
530
|
-
|
|
530
|
+
TOOLBAR__RIGHT_TOP__TELEPORT_ID: InjectionKey<string>;
|
|
531
531
|
};
|
|
532
532
|
/**
|
|
533
533
|
* 变量页面.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/vue",
|
|
3
|
-
"version": "0.30.1-beta.
|
|
3
|
+
"version": "0.30.1-beta.30",
|
|
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",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
2
|
-
export declare const getProps: () => any;
|
|
3
|
-
export declare type KgSimulatorToolbarPrefabProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
4
|
-
/**
|
|
5
|
-
* 模拟器--工具栏项--预制组件.
|
|
6
|
-
*/
|
|
7
|
-
export declare const KgSimulatorToolbarPrefab: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
2
|
-
export declare const getProps: () => any;
|
|
3
|
-
export declare type KgSimulatorToolbarPropertyProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
4
|
-
/**
|
|
5
|
-
* 模拟器--工具栏项--属性.
|
|
6
|
-
*/
|
|
7
|
-
export declare const KgSimulatorToolbarProperty: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
2
|
-
export declare const getProps: () => any;
|
|
3
|
-
export declare type KgSimulatorToolbarSceneProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
4
|
-
/**
|
|
5
|
-
* 模拟器--工具栏项--场景.
|
|
6
|
-
*/
|
|
7
|
-
export declare const KgSimulatorToolbarScene: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
}>;
|
/package/dist/src/component/KgSimulator/{KgSimulator.service.d.ts → KgSimulator.Canvas.service.d.ts}
RENAMED
|
File without changes
|