@kengic/vue 0.30.1-beta.34 → 0.30.1-beta.36

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.
@@ -1,31 +1,8 @@
1
1
  import { Q } from '@thymine/xunee';
2
+ import { WebSocketResult } from '@vueuse/core';
2
3
  import { KgStoreDefinition } from '../../const';
3
4
  import { IToolbarPlacement, Scene } from './KgSimulator.model';
4
5
  export interface IKgSimulatorStoreGetters {
5
- /**
6
- * 环形输送线--当前场景.
7
- */
8
- $circularConveyor$currentScene: Scene | null;
9
- /**
10
- * 环形输送线--当前场景--是否已经保存.
11
- */
12
- $circularConveyor$currentScene$isSave: boolean;
13
- /**
14
- * 环形输送线--当前场景--是否正在保存.
15
- */
16
- $circularConveyor$currentScene$isSaving: boolean;
17
- /**
18
- * 环形穿梭车--当前场景.
19
- */
20
- $circularShuttle$currentScene: any | null;
21
- /**
22
- * 环形穿梭车--当前场景--是否已经保存.
23
- */
24
- $circularShuttle$currentScene$isSave: boolean;
25
- /**
26
- * 环形穿梭车--当前场景--是否正在保存.
27
- */
28
- $circularShuttle$currentScene$isSaving: boolean;
29
6
  /**
30
7
  * 配置--环形输送线--接口地址--创建场景.
31
8
  *
@@ -44,6 +21,12 @@ export interface IKgSimulatorStoreGetters {
44
21
  * @default '/Scene/SaveScene'
45
22
  */
46
23
  $config$circularConveyor$api$updateScene: string;
24
+ /**
25
+ * 配置--环形输送线--接口地址--WEBSOCKET.
26
+ *
27
+ * @default '/Scene/GetScenes'
28
+ */
29
+ $config$circularConveyor$api$ws: string;
47
30
  /**
48
31
  * 配置--环境--是否是环形输送线.
49
32
  *
@@ -56,18 +39,6 @@ export interface IKgSimulatorStoreGetters {
56
39
  * @default false
57
40
  */
58
41
  $config$env$isCircularShuttle: boolean;
59
- /**
60
- * 配置--模式--是否是编辑模式.
61
- *
62
- * @default true
63
- */
64
- $config$mode$isEdit: boolean;
65
- /**
66
- * 配置--模式--是否是仿真模式.
67
- *
68
- * @default false
69
- */
70
- $config$mode$isSimulate: boolean;
71
42
  /**
72
43
  * 配置--工具栏--预制组件--是否打开.
73
44
  *
@@ -122,22 +93,77 @@ export interface IKgSimulatorStoreGetters {
122
93
  * @default 'LEFT_TOP'
123
94
  */
124
95
  $config$toolbar$scene$placement: IToolbarPlacement;
96
+ /**
97
+ * 环境--环形输送线--当前场景.
98
+ */
99
+ $env$circularConveyor$currentScene: Scene | null;
100
+ /**
101
+ * 环境--环形输送线--当前场景--是否已经保存.
102
+ */
103
+ $env$circularConveyor$currentScene$isSave: boolean;
104
+ /**
105
+ * 环境--环形输送线--当前场景--是否正在保存.
106
+ */
107
+ $env$circularConveyor$currentScene$isSaving: boolean;
108
+ /**
109
+ * 环境--环形穿梭车--当前场景.
110
+ */
111
+ $env$circularShuttle$currentScene: any | null;
112
+ /**
113
+ * 环境--环形穿梭车--当前场景--是否已经保存.
114
+ */
115
+ $env$circularShuttle$currentScene$isSave: boolean;
116
+ /**
117
+ * 环境--环形穿梭车--当前场景--是否正在保存.
118
+ */
119
+ $env$circularShuttle$currentScene$isSaving: boolean;
120
+ /**
121
+ * 模式--是否是编辑模式.
122
+ *
123
+ * @default true
124
+ */
125
+ $mode$isEdit: boolean;
126
+ /**
127
+ * 模式--是否是监控模式.
128
+ *
129
+ * @default false
130
+ */
131
+ $mode$isMonitor: boolean;
132
+ /**
133
+ * 配置--模式--是否是仿真模式.
134
+ *
135
+ * @default false
136
+ */
137
+ $mode$isSimulate: boolean;
138
+ /**
139
+ * 配置--模式--仿真模式--正在运行.
140
+ *
141
+ * @default false
142
+ */
143
+ $mode$simulate$isRunning: boolean;
125
144
  }
126
145
  export interface IKgSimulatorStoreActions {
146
+ /**
147
+ * WEBSOCKET--建立连接.
148
+ *
149
+ * @param param.url 连接地址.
150
+ */
151
+ $WebSocket$connect(param: {
152
+ url: string;
153
+ }): void;
154
+ /**
155
+ * WEBSOCKET--获取连接结果.
156
+ */
157
+ $WebSocket$getConnection(): WebSocketResult<any> | null;
127
158
  get$graph(): Q.Graph | null;
128
159
  /**
129
160
  * 保存场景.
130
161
  */
131
162
  saveScene(): Promise<void>;
132
- set$circularConveyor$currentScene(value: Scene | null | undefined): void;
133
- set$circularConveyor$currentScene$isSave(value: boolean | null | undefined): void;
134
- set$circularConveyor$currentScene$isSaving(value: boolean | null | undefined): void;
135
- set$circularShuttle$currentScene(value: any | null | undefined): void;
136
- set$circularShuttle$currentScene$isSave(value: boolean | null | undefined): void;
137
- set$circularShuttle$currentScene$isSaving(value: boolean | null | undefined): void;
138
163
  set$config$circularConveyor$api$createScene(value: string | null | undefined): void;
139
164
  set$config$circularConveyor$api$requestSceneList(value: string | null | undefined): void;
140
165
  set$config$circularConveyor$api$updateScene(value: string | null | undefined): void;
166
+ set$config$circularConveyor$api$ws(value: string | null | undefined): void;
141
167
  /**
142
168
  * <p>设置环境.</p>
143
169
  * <ul>
@@ -152,12 +178,13 @@ export interface IKgSimulatorStoreActions {
152
178
  * <p>设置模式. 默认为编辑模式.</p>
153
179
  * <ul>
154
180
  * <li>EDIT: 编辑</li>
181
+ * <li>MONITOR: 监控</li>
155
182
  * <li>SIMULATE: 仿真</li>
156
183
  * </ul>
157
184
  *
158
185
  * @param value
159
186
  */
160
- set$config$mode(value: 'EDIT' | 'SIMULATE' | null | undefined): void;
187
+ set$config$mode(value: 'EDIT' | 'MONITOR' | 'SIMULATE' | null | undefined): void;
161
188
  set$config$toolbar$prefab$isOpen(value: boolean | null | undefined): void;
162
189
  set$config$toolbar$prefab$isVisible(value: boolean | null | undefined): void;
163
190
  set$config$toolbar$prefab$placement(value: IToolbarPlacement | null | undefined): void;
@@ -167,6 +194,13 @@ export interface IKgSimulatorStoreActions {
167
194
  set$config$toolbar$scene$isOpen(value: boolean | null | undefined): void;
168
195
  set$config$toolbar$scene$isVisible(value: boolean | null | undefined): void;
169
196
  set$config$toolbar$scene$placement(value: IToolbarPlacement | null | undefined): void;
197
+ set$env$circularConveyor$currentScene(value: Scene | null | undefined): void;
198
+ set$env$circularConveyor$currentScene$isSave(value: boolean | null | undefined): void;
199
+ set$env$circularConveyor$currentScene$isSaving(value: boolean | null | undefined): void;
200
+ set$env$circularShuttle$currentScene(value: any | null | undefined): void;
201
+ set$env$circularShuttle$currentScene$isSave(value: boolean | null | undefined): void;
202
+ set$env$circularShuttle$currentScene$isSaving(value: boolean | null | undefined): void;
170
203
  set$graph(value: Q.Graph | null | undefined): void;
204
+ set$mode$simulate$isRunning(value: boolean | null | undefined): void;
171
205
  }
172
206
  export declare function buildKgSimulatorStore(id: string | null | undefined): KgStoreDefinition<IKgSimulatorStoreGetters, IKgSimulatorStoreActions>;
@@ -70,10 +70,18 @@ export declare const KG: {
70
70
  * 组件参数.
71
71
  */
72
72
  PROPS: InjectionKey<Partial<import("vue").ExtractPropTypes<{
73
+ KgCanvasToolbarButtonMode$isAvailable: {
74
+ type: import("vue").PropType<boolean>;
75
+ default: boolean;
76
+ };
73
77
  id: {
74
78
  type: import("vue").PropType<string>;
75
- required: boolean;
76
- };
79
+ required: boolean; /**
80
+ * 表单.
81
+ */
82
+ }; /**
83
+ * 表单.
84
+ */
77
85
  kgCanvasToolbarFullscreen: {
78
86
  type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
79
87
  kgIsShowText: {
@@ -84,8 +92,12 @@ export declare const KG: {
84
92
  };
85
93
  kgIsEditable: {
86
94
  type: import("vue").PropType<boolean>;
87
- default: boolean;
88
- };
95
+ default: boolean; /**
96
+ * formRef.
97
+ */
98
+ }; /**
99
+ * formRef.
100
+ */
89
101
  kgIsEnableOverview: {
90
102
  type: import("vue").PropType<boolean>;
91
103
  default: boolean;
@@ -420,10 +432,18 @@ export declare const KG_CONST: {
420
432
  * 组件参数.
421
433
  */
422
434
  PROPS: InjectionKey<Partial<import("vue").ExtractPropTypes<{
435
+ KgCanvasToolbarButtonMode$isAvailable: {
436
+ type: import("vue").PropType<boolean>;
437
+ default: boolean;
438
+ };
423
439
  id: {
424
440
  type: import("vue").PropType<string>;
425
- required: boolean;
426
- };
441
+ required: boolean; /**
442
+ * 表单.
443
+ */
444
+ }; /**
445
+ * 表单.
446
+ */
427
447
  kgCanvasToolbarFullscreen: {
428
448
  type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
429
449
  kgIsShowText: {
@@ -434,8 +454,12 @@ export declare const KG_CONST: {
434
454
  };
435
455
  kgIsEditable: {
436
456
  type: import("vue").PropType<boolean>;
437
- default: boolean;
438
- };
457
+ default: boolean; /**
458
+ * formRef.
459
+ */
460
+ }; /**
461
+ * formRef.
462
+ */
439
463
  kgIsEnableOverview: {
440
464
  type: import("vue").PropType<boolean>;
441
465
  default: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.30.1-beta.34",
3
+ "version": "0.30.1-beta.36",
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,11 +0,0 @@
1
- import { ExtractPropTypes } from 'vue';
2
- import './KgSimulator.css';
3
- import './KgSimulator.icons';
4
- export declare const getProps: () => any;
5
- export declare type KgSimulatorTitleProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
6
- /**
7
- * 模拟器--标题栏.
8
- */
9
- export declare const KgSimulatorTitle: 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>, {} | {
10
- [x: string]: any;
11
- }>;