@kengic/vue 0.30.1-beta.6 → 0.30.1-beta.60

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 (166) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/README.md +4 -3
  3. package/dist/align-left-outlined.579b01c6.mjs +8 -0
  4. package/dist/caret-down-outlined.c0564a3f.mjs +8 -0
  5. package/dist/caret-left-outlined.35b1d7d1.mjs +8 -0
  6. package/dist/caret-up-outlined.81b559ad.mjs +8 -0
  7. package/dist/check-box-outline-blank.d01a2055.mjs +8 -0
  8. package/dist/collapse-all-rounded.26ee73fc.mjs +8 -0
  9. package/dist/double-right-outlined.f057a6b2.mjs +8 -0
  10. package/dist/expand-all-rounded.e01e6cb9.mjs +8 -0
  11. package/dist/eye-invisible-outlined.5f8d6151.mjs +8 -0
  12. package/dist/holder-outlined.9e698750.mjs +8 -0
  13. package/dist/index.css +1 -1
  14. package/dist/kengic-vue.js +128357 -115546
  15. package/dist/loading-outlined.13a15197.mjs +8 -0
  16. package/dist/more-outlined.8e1202ac.mjs +8 -0
  17. package/dist/palette-swatch-variant.f7258843.mjs +8 -0
  18. package/dist/partition-outlined.1bcf4f37.mjs +8 -0
  19. package/dist/pause-rounded.1ed7cc39.mjs +8 -0
  20. package/dist/play-arrow-rounded.90fc4173.mjs +8 -0
  21. package/dist/profile-outlined.1059fb0d.mjs +8 -0
  22. package/dist/project/build/utils.ts +20 -15
  23. package/dist/src/component/KgButton/KgButton.hooks.d.ts +2 -2
  24. package/dist/src/component/KgButton/KgButton.store.d.ts +1 -1
  25. package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +1 -2
  26. package/dist/src/component/KgCanvas/{KgCanvas.Toolbar.Fullscreen.d.ts → KgCanvas.ToolbarButton.Fullscreen.d.ts} +2 -3
  27. package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Mode.d.ts +7 -0
  28. package/dist/src/component/KgCanvas/{KgCanvas.Toolbar.OverviewScale.d.ts → KgCanvas.ToolbarButton.OverviewScale.d.ts} +2 -3
  29. package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +1 -2
  30. package/dist/src/component/KgCanvas/KgCanvas.d.ts +59 -3
  31. package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +42 -5
  32. package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +33 -5
  33. package/dist/src/component/KgCanvas/KgCanvas.model.d.ts +26 -32
  34. package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +5 -31
  35. package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +4 -1
  36. package/dist/src/component/KgCanvas/index.d.ts +1 -1
  37. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.AreaSelect.d.ts +5 -0
  38. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.d.ts +5 -0
  39. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Legend.d.ts +5 -0
  40. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Offline.d.ts +5 -0
  41. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Setting.d.ts +5 -0
  42. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Log.d.ts +5 -0
  43. package/dist/src/{page/KgCircleVis/components/KgCircleVis.Tab.Rgv.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.d.ts} +5 -5
  44. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.d.ts +5 -0
  45. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.hooks.d.ts +29 -0
  46. package/dist/src/{page/KgCircleVis/components/KgCircleVis.model.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.model.d.ts} +1 -1
  47. package/dist/src/{page/KgCircleVis/components/KgCircleVis.store.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.store.d.ts} +41 -41
  48. package/dist/src/component/KgCircularShuttleMonitor/index.d.ts +3 -0
  49. package/dist/src/component/KgForm/KgForm.d.ts +39 -39
  50. package/dist/src/component/KgForm/KgForm.hooks.d.ts +2 -2
  51. package/dist/src/component/KgForm/KgForm.store.d.ts +4 -4
  52. package/dist/src/component/KgForm/index.d.ts +52 -52
  53. package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +35 -35
  54. package/dist/src/component/KgForm.Item/KgForm.Item.model.d.ts +31 -33
  55. package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +34 -34
  56. package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +38 -36
  57. package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +34 -34
  58. package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +34 -34
  59. package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +34 -34
  60. package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +34 -34
  61. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +34 -34
  62. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +34 -34
  63. package/dist/src/component/KgForm.Item/components/KgForm.Item.Link.d.ts +34 -34
  64. package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +34 -36
  65. package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +35 -35
  66. package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +34 -34
  67. package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +34 -34
  68. package/dist/src/component/KgImage/KgImage.d.ts +6 -6
  69. package/dist/src/component/KgLayoutHeader/{components/KgLayoutHeaderLocale.d.ts → KgLayoutHeader.Locale.d.ts} +1 -1
  70. package/dist/src/component/KgLayoutHeader/index.d.ts +1 -1
  71. package/dist/src/component/KgModal/KgModal.d.ts +20 -20
  72. package/dist/src/component/KgModal/{hooks/useDragToResize.d.ts → KgModal.service.d.ts} +13 -2
  73. package/dist/src/component/KgModal02/KgModal02.d.ts +591 -0
  74. package/dist/src/component/KgModal02/KgModal02.model.d.ts +1 -0
  75. package/dist/src/component/KgModal02/index.d.ts +1 -0
  76. package/dist/src/component/KgResizable/KgResizable.d.ts +4 -4
  77. package/dist/src/component/KgSearch/KgSearch.hooks.d.ts +2 -2
  78. package/dist/src/component/KgSearch/KgSearch.store.d.ts +26 -26
  79. package/dist/src/component/KgSimulator/KgSimulator.Canvas.Title.d.ts +11 -0
  80. package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +11 -0
  81. package/dist/src/component/KgSimulator/KgSimulator.Canvas.service.d.ts +80 -0
  82. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.d.ts +36 -0
  83. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.d.ts +36 -0
  84. package/dist/src/component/KgSimulator/KgSimulator.Menu.d.ts +4 -0
  85. package/dist/src/component/KgSimulator/KgSimulator.Panel.Prefab.d.ts +4 -0
  86. package/dist/src/component/KgSimulator/KgSimulator.Panel.Property.d.ts +4 -0
  87. package/dist/src/component/KgSimulator/KgSimulator.Panel.Scene.d.ts +4 -0
  88. package/dist/src/component/KgSimulator/KgSimulator.Panel.d.ts +97 -0
  89. package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +108 -0
  90. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.d.ts +9 -0
  91. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Property.d.ts +9 -0
  92. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Scene.d.ts +9 -0
  93. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.d.ts +113 -0
  94. package/dist/src/component/KgSimulator/KgSimulator.d.ts +33 -0
  95. package/dist/src/component/KgSimulator/KgSimulator.event.d.ts +99 -0
  96. package/dist/src/component/KgSimulator/KgSimulator.hooks.d.ts +103 -0
  97. package/dist/src/component/KgSimulator/KgSimulator.icons.d.ts +10 -0
  98. package/dist/src/component/KgSimulator/KgSimulator.model.d.ts +1494 -0
  99. package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +462 -0
  100. package/dist/src/component/KgSimulator/KgSimulator.utils.d.ts +21 -0
  101. package/dist/src/component/KgSimulator/index.d.ts +3 -0
  102. package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +20 -15
  103. package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +46 -14
  104. package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +46 -0
  105. package/dist/src/component/KgTable/{components/KgTable.BodyCell.d.ts → KgTable.BodyCell.d.ts} +1 -1
  106. package/dist/src/component/KgTable/{components/setting/KgTable.Setting.service.d.ts → KgTable.Setting.service.d.ts} +1 -1
  107. package/dist/src/component/KgTable/KgTable.store.d.ts +1 -1
  108. package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +32 -3
  109. package/dist/src/component/KgTable02/KgTable02.event.d.ts +13 -3
  110. package/dist/src/component/KgTable02/KgTable02.hooks.d.ts +9 -0
  111. package/dist/src/component/KgVar/{KgVarFactory.d.ts → KgVar.Factory.d.ts} +9 -0
  112. package/dist/src/component/KgVar/KgVar.d.ts +23 -17
  113. package/dist/src/component/KgVar/KgVar.event.d.ts +19 -6
  114. package/dist/src/component/KgVar/KgVar.hooks.d.ts +20 -7
  115. package/dist/src/component/KgVar/KgVar.model.d.ts +0 -5
  116. package/dist/src/component/KgVar/index.d.ts +1 -1
  117. package/dist/src/component/KgVarConfig/KgVarConfig.model.d.ts +0 -3
  118. package/dist/src/component/index.d.ts +3 -0
  119. package/dist/src/config/config.store.d.ts +9 -5
  120. package/dist/src/config/index.d.ts +9 -3
  121. package/dist/src/const/const.model.d.ts +524 -11
  122. package/dist/src/const/form-id.const.d.ts +22 -10
  123. package/dist/src/const/index.d.ts +0 -1
  124. package/dist/src/i18n/cs_CZ.d.ts +1 -300
  125. package/dist/src/i18n/en.d.ts +234 -297
  126. package/dist/src/i18n/es_ES.d.ts +1 -299
  127. package/dist/src/i18n/fr_FR.d.ts +1 -299
  128. package/dist/src/i18n/i18n.setup.d.ts +1 -1
  129. package/dist/src/i18n/km_KH.d.ts +1 -299
  130. package/dist/src/i18n/ko_KR.d.ts +1 -299
  131. package/dist/src/i18n/vi_VN.d.ts +1 -299
  132. package/dist/src/i18n/zh_CN.d.ts +235 -298
  133. package/dist/src/page/{KgCircleVis/KgPageCircleVis.d.ts → KgPageCircularShuttleMonitor/KgPageCircularShuttleMonitor.d.ts} +1 -1
  134. package/dist/src/page/KgPageCircularShuttleMonitor/index.d.ts +1 -0
  135. package/dist/src/page/KgPageDda/KgPageDda.d.ts +1 -1
  136. package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +3 -3
  137. package/dist/src/page/index.d.ts +2 -2
  138. package/dist/src/project/src/hooks/index.d.ts +0 -1
  139. package/dist/src/project/src/locales/useLocale.d.ts +1 -0
  140. package/dist/src/project/src/utils/env.d.ts +0 -16
  141. package/dist/src/project/types/config.d.ts +2 -2
  142. package/dist/src/service/http-client.d.ts +5 -1
  143. package/dist/src/util/ant-design-vue.d.ts +16 -16
  144. package/dist/src/util/kg-auth.util.d.ts +7 -6
  145. package/dist/src/util/kg-route.util.d.ts +9 -9
  146. package/dist/src/util/kg.util.d.ts +1 -2
  147. package/dist/src/util/tsx.helper.d.ts +7 -7
  148. package/package.json +9 -8
  149. package/dist/src/component/KgForm/KgForm.model.d.ts +0 -9
  150. package/dist/src/component/KgModal/hooks/useDragToMove.d.ts +0 -12
  151. package/dist/src/const/injection-keys.const.d.ts +0 -11
  152. package/dist/src/page/KgCircleVis/components/KgCircleVis.AreaSelect.d.ts +0 -5
  153. package/dist/src/page/KgCircleVis/components/KgCircleVis.Canvas.d.ts +0 -5
  154. package/dist/src/page/KgCircleVis/components/KgCircleVis.Legend.d.ts +0 -5
  155. package/dist/src/page/KgCircleVis/components/KgCircleVis.Offline.d.ts +0 -5
  156. package/dist/src/page/KgCircleVis/components/KgCircleVis.Setting.d.ts +0 -5
  157. package/dist/src/page/KgCircleVis/components/KgCircleVis.Tab.Log.d.ts +0 -5
  158. package/dist/src/page/KgCircleVis/components/KgCircleVis.d.ts +0 -5
  159. package/dist/src/page/KgCircleVis/components/KgCircleVis.hooks.d.ts +0 -29
  160. package/dist/src/page/KgCircleVis/index.d.ts +0 -1
  161. package/dist/src/project/src/hooks/web/useI18n.d.ts +0 -13
  162. /package/dist/src/{page/KgCircleVis/components/KgCircleVis.Canvas.service.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.service.d.ts} +0 -0
  163. /package/dist/src/component/KgTable/{components/KgTable.HeadCell.d.ts → KgTable.HeadCell.d.ts} +0 -0
  164. /package/dist/src/component/KgTable/{components/KgTable.Info.d.ts → KgTable.Info.d.ts} +0 -0
  165. /package/dist/src/component/KgTable/{components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts → KgTable.Setting.VarGridMaster.SaveAs.d.ts} +0 -0
  166. /package/dist/src/component/KgTable/{components/setting/KgTable.Setting.d.ts → KgTable.Setting.d.ts} +0 -0
@@ -0,0 +1,462 @@
1
+ import { Q } from '@thymine/xunee';
2
+ import { WebSocketResult } from '@vueuse/core';
3
+ import { KgStoreDefinition } from '../../const';
4
+ import { IToolbarPlacement, Scene } from './KgSimulator.model';
5
+ export interface IKgSimulatorStoreGetters {
6
+ /**
7
+ * 配置--环形输送线--代理者--全局加速度.
8
+ *
9
+ * @default 16 m/min/s, 16*1000/(60*1000*1000) mm/ms^2
10
+ */
11
+ $Config$CircularConveyor$Agent$GlobalAcceleration: number;
12
+ /**
13
+ * 配置--环形输送线--代理者--全局最大速度.
14
+ *
15
+ * @default 16 m/min, 16*1000/(60*1000) mm/ms
16
+ */
17
+ $Config$CircularConveyor$Agent$GlobalMaxVelocity: number;
18
+ /**
19
+ * 配置--环形输送线--接口地址--创建代理者.
20
+ *
21
+ * @default '/Agent/CreateAgent'
22
+ */
23
+ $Config$CircularConveyor$Api$CreateAgent: string;
24
+ /**
25
+ * 配置--环形输送线--接口地址--创建场景.
26
+ *
27
+ * @default '/Scene/CreateScene'
28
+ */
29
+ $Config$CircularConveyor$Api$CreateScene: string;
30
+ /**
31
+ * 配置--环形输送线--接口地址--销毁代理者.
32
+ *
33
+ * @default '/Agent/DestroyAgent'
34
+ */
35
+ $Config$CircularConveyor$Api$DestroyAgent: string;
36
+ /**
37
+ * 配置--环形输送线--接口地址--查询场景列表.
38
+ *
39
+ * @default '/Scene/GetScenes'
40
+ */
41
+ $Config$CircularConveyor$Api$RequestSceneList: string;
42
+ /**
43
+ * 配置--环形输送线--接口地址--更新场景.
44
+ *
45
+ * @default '/Scene/SaveScene'
46
+ */
47
+ $Config$CircularConveyor$Api$UpdateScene: string;
48
+ /**
49
+ * 配置--环形输送线--接口地址--WEBSOCKET.
50
+ *
51
+ * @default '/ws'
52
+ */
53
+ $Config$CircularConveyor$Api$WebSocket: string;
54
+ /**
55
+ * 配置--环形输送线--默认的传感器--离设备边缘的距离(远).
56
+ *
57
+ * @default 200 mm
58
+ */
59
+ $Config$CircularConveyor$DefaultPhotoelectricSensor$LongDistance: number;
60
+ /**
61
+ * 配置--环形输送线--默认的传感器--离设备边缘的距离(近).
62
+ *
63
+ * @default 20 mm
64
+ */
65
+ $Config$CircularConveyor$DefaultPhotoelectricSensor$ShortDistance: number;
66
+ /**
67
+ * <p>配置--环形输送线--默认的传感器--离设备边缘的距离(近)--开始减速距离.</p>
68
+ * <p>即距离光电多远时开始减速,</p>
69
+ *
70
+ * @default 50 mm
71
+ */
72
+ $Config$CircularConveyor$DefaultPhotoelectricSensor$ShortDistance$StartDecelerateDistance: number;
73
+ /**
74
+ * 配置--环形输送线--是否绘制默认的传感器.
75
+ *
76
+ * @default false
77
+ */
78
+ $Config$CircularConveyor$IsDrawDefaultPhotoelectricSensor: boolean;
79
+ /**
80
+ * 配置--环形输送线--移栽机--操作持续时间.
81
+ *
82
+ * @default 2 * 1000 ms
83
+ */
84
+ $Config$CircularConveyor$JackUpTransferStation$Duration: number;
85
+ /**
86
+ * 配置--环形输送线--叠盘机--操作持续时间.
87
+ *
88
+ * @default 15 * 1000 ms
89
+ */
90
+ $Config$CircularConveyor$PalletStackerStation$Duration: number;
91
+ /**
92
+ * 配置--环境--是否是环形输送线.
93
+ *
94
+ * @default true
95
+ */
96
+ $Config$Env$IsCircularConveyor: boolean;
97
+ /**
98
+ * 配置--环境--是否是环形穿梭车.
99
+ *
100
+ * @default false
101
+ */
102
+ $Config$Env$IsCircularShuttle: boolean;
103
+ /**
104
+ * 配置--是否自动打开上一次的场景.
105
+ *
106
+ * @default true
107
+ */
108
+ $Config$IsReopenSceneOnStart: boolean;
109
+ /**
110
+ * 配置--工具栏--预制组件--是否打开.
111
+ *
112
+ * @default true
113
+ */
114
+ $Config$Toolbar$Prefab$IsOpen: boolean;
115
+ /**
116
+ * 配置--工具栏--预制组件--是否显示.
117
+ *
118
+ * @default true
119
+ */
120
+ $Config$Toolbar$Prefab$IsVisible: boolean;
121
+ /**
122
+ * 配置--工具栏--预制组件--位置.
123
+ *
124
+ * @default 'LEFT_TOP'
125
+ */
126
+ $Config$Toolbar$Prefab$Placement: IToolbarPlacement;
127
+ /**
128
+ * 配置--工具栏--属性--是否打开.
129
+ *
130
+ * @default true
131
+ */
132
+ $Config$Toolbar$Property$IsOpen: boolean;
133
+ /**
134
+ * 配置--工具栏--属性--是否显示.
135
+ *
136
+ * @default true
137
+ */
138
+ $Config$Toolbar$Property$IsVisible: boolean;
139
+ /**
140
+ * 配置--工具栏--属性--位置.
141
+ *
142
+ * @default 'RIGHT_TOP'
143
+ */
144
+ $Config$Toolbar$Property$Placement: IToolbarPlacement;
145
+ /**
146
+ * 配置--工具栏--场景--是否打开.
147
+ *
148
+ * @default true
149
+ */
150
+ $Config$Toolbar$Scene$IsOpen: boolean;
151
+ /**
152
+ * 配置--工具栏--场景--是否显示.
153
+ *
154
+ * @default true
155
+ */
156
+ $Config$Toolbar$Scene$IsVisible: boolean;
157
+ /**
158
+ * 配置--工具栏--场景--位置.
159
+ *
160
+ * @default 'LEFT_TOP'
161
+ */
162
+ $Config$Toolbar$Scene$Placement: IToolbarPlacement;
163
+ /**
164
+ * 环境--环形输送线--当前场景.
165
+ */
166
+ $Env$CircularConveyor$CurrentScene: Scene | null;
167
+ /**
168
+ * 环境--环形输送线--当前场景--是否已经保存.
169
+ */
170
+ $Env$CircularConveyor$CurrentScene$IsSave: boolean;
171
+ /**
172
+ * 环境--环形输送线--当前场景--是否正在保存.
173
+ */
174
+ $Env$CircularConveyor$CurrentScene$IsSaving: boolean;
175
+ /**
176
+ * 环境--环形穿梭车--当前场景.
177
+ */
178
+ $Env$CircularShuttle$CurrentScene: any | null;
179
+ /**
180
+ * 环境--环形穿梭车--当前场景--是否已经保存.
181
+ */
182
+ $Env$CircularShuttle$CurrentScene$IsSave: boolean;
183
+ /**
184
+ * 环境--环形穿梭车--当前场景--是否正在保存.
185
+ */
186
+ $Env$CircularShuttle$CurrentScene$IsSaving: boolean;
187
+ /**
188
+ * 模式--是否是编辑模式.
189
+ *
190
+ * @default true
191
+ */
192
+ $Mode$IsEdit: boolean;
193
+ /**
194
+ * 模式--是否是监控模式.
195
+ *
196
+ * @default false
197
+ */
198
+ $Mode$IsMonitor: boolean;
199
+ /**
200
+ * 配置--模式--是否是仿真模式.
201
+ *
202
+ * @default false
203
+ */
204
+ $Mode$IsSimulate: boolean;
205
+ /**
206
+ * 配置--模式--仿真模式--正在运行.
207
+ *
208
+ * @default false
209
+ */
210
+ $Mode$Simulate$IsRunning: boolean;
211
+ }
212
+ export interface IKgSimulatorStoreActions {
213
+ /**
214
+ * WEBSOCKET--建立连接.
215
+ *
216
+ * @param param.url 连接地址.
217
+ */
218
+ $WebSocket$connect(param: {
219
+ url: string;
220
+ }): void;
221
+ /**
222
+ * WEBSOCKET--获取连接结果.
223
+ */
224
+ $WebSocket$getConnection(): WebSocketResult<any> | null;
225
+ get$graph(): Q.Graph | null;
226
+ /**
227
+ * 打开场景.
228
+ *
229
+ * @param scene 被打开的场景.
230
+ */
231
+ openScene(scene: Scene): Promise<void>;
232
+ /**
233
+ * 保存场景.
234
+ */
235
+ saveScene(): Promise<void>;
236
+ /**
237
+ * 配置--环形输送线--代理者--全局加速度. 默认为 16 m/min/s, (16 * 1000) / (60 * 1000 * 1000) mm/ms^2.
238
+ *
239
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Agent$GlobalAcceleration
240
+ */
241
+ set$Config$CircularConveyor$Agent$GlobalAcceleration(value: number | null | undefined): void;
242
+ /**
243
+ * 配置--环形输送线--代理者--全局最大速度. 默认为 16 m/min, (16 * 1000) / (60 * 1000) mm/ms.
244
+ *
245
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Agent$GlobalMaxVelocity
246
+ */
247
+ set$Config$CircularConveyor$Agent$GlobalMaxVelocity(value: number | null | undefined): void;
248
+ /**
249
+ * 配置--环形输送线--接口地址--创建代理者. 默认为 '/Agent/CreateAgent'.
250
+ *
251
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Api$CreateAgent
252
+ */
253
+ set$Config$CircularConveyor$Api$CreateAgent(value: string | null | undefined): void;
254
+ /**
255
+ * 配置--环形输送线--接口地址--创建场景. 默认为 '/Scene/CreateScene'.
256
+ *
257
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Api$CreateScene
258
+ */
259
+ set$Config$CircularConveyor$Api$CreateScene(value: string | null | undefined): void;
260
+ /**
261
+ * 配置--环形输送线--接口地址--销毁代理者. 默认为 '/Agent/DestroyAgent'.
262
+ *
263
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Api$DestroyAgent
264
+ */
265
+ set$Config$CircularConveyor$Api$DestroyAgent(value: string | null | undefined): void;
266
+ /**
267
+ * 配置--环形输送线--接口地址--查询场景列表. 默认为 '/Scene/GetScenes'.
268
+ *
269
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Api$RequestSceneList
270
+ */
271
+ set$Config$CircularConveyor$Api$RequestSceneList(value: string | null | undefined): void;
272
+ /**
273
+ * 配置--环形输送线--接口地址--更新场景. 默认为 '/Scene/SaveScene'.
274
+ *
275
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Api$UpdateScene
276
+ */
277
+ set$Config$CircularConveyor$Api$UpdateScene(value: string | null | undefined): void;
278
+ /**
279
+ * 配置--环形输送线--接口地址--WEBSOCKET. 默认为 '/ws'.
280
+ *
281
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Api$WebSocket
282
+ */
283
+ set$Config$CircularConveyor$Api$WebSocket(value: string | null | undefined): void;
284
+ /**
285
+ * 配置--环形输送线--默认的传感器--离设备边缘的距离(远). 默认为 200 mm.
286
+ *
287
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$DefaultPhotoelectricSensor$LongDistance
288
+ */
289
+ set$Config$CircularConveyor$DefaultPhotoelectricSensor$LongDistance(value: number | null | undefined): void;
290
+ /**
291
+ * 配置--环形输送线--默认的传感器--离设备边缘的距离(近). 默认为 20 mm.
292
+ *
293
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$DefaultPhotoelectricSensor$ShortDistance
294
+ */
295
+ set$Config$CircularConveyor$DefaultPhotoelectricSensor$ShortDistance(value: number | null | undefined): void;
296
+ /**
297
+ * <p>配置--环形输送线--默认的传感器--离设备边缘的距离(近)--开始减速距离. 默认为 50 mm.</p>
298
+ * <p>即距离光电多远时开始减速,</p>
299
+ *
300
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$DefaultPhotoelectricSensor$ShortDistance$StartDecelerateDistance
301
+ */
302
+ set$Config$CircularConveyor$DefaultPhotoelectricSensor$ShortDistance$StartDecelerateDistance(value: number | null | undefined): void;
303
+ /**
304
+ * 配置--环形输送线--是否绘制默认的传感器. 默认为 false.
305
+ *
306
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$IsDrawDefaultPhotoelectricSensor
307
+ */
308
+ set$Config$CircularConveyor$IsDrawDefaultPhotoelectricSensor(value: boolean | null | undefined): void;
309
+ /**
310
+ * 配置--环形输送线--移栽机--操作持续时间. 默认为 2 * 1000 ms.
311
+ *
312
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$JackUpTransferStation$Duration
313
+ */
314
+ set$Config$CircularConveyor$JackUpTransferStation$Duration(value: number | null | undefined): void;
315
+ /**
316
+ * 配置--环形输送线--叠盘机--操作持续时间. 默认为 15 * 1000 ms.
317
+ *
318
+ * @see IKgSimulatorStoreGetters.$Config$CircularConveyor$PalletStackerStation$Duration
319
+ */
320
+ set$Config$CircularConveyor$PalletStackerStation$Duration(value: number | null | undefined): void;
321
+ /**
322
+ * <p>设置环境. 默认为环形输送线.</p>
323
+ * <ul>
324
+ * <li>CIRCULAR_CONVEYOR: 环形输送线</li>
325
+ * <li>CIRCULAR_SHUTTLE: 环形穿梭车</li>
326
+ * </ul>
327
+ *
328
+ * @param value
329
+ */
330
+ set$Config$Env(value: 'CIRCULAR_CONVEYOR' | 'CIRCULAR_SHUTTLE' | null | undefined): void;
331
+ /**
332
+ * 配置--是否自动打开上一次的场景. 默认为 true.
333
+ *
334
+ * @see IKgSimulatorStoreGetters.$Config$IsReopenSceneOnStart
335
+ */
336
+ set$Config$IsReopenSceneOnStart(value: boolean | null | undefined): void;
337
+ /**
338
+ * <p>设置模式. 默认为编辑模式.</p>
339
+ * <ul>
340
+ * <li>EDIT: 编辑</li>
341
+ * <li>MONITOR: 监控</li>
342
+ * <li>SIMULATE: 仿真</li>
343
+ * </ul>
344
+ *
345
+ * @param value
346
+ */
347
+ set$Config$Mode(value: 'EDIT' | 'MONITOR' | 'SIMULATE' | null | undefined): void;
348
+ /**
349
+ * 配置--工具栏--预制组件--是否打开. 默认为 true.
350
+ *
351
+ * @see IKgSimulatorStoreGetters.$Config$Toolbar$Prefab$IsOpen
352
+ * @param value
353
+ */
354
+ set$Config$Toolbar$Prefab$IsOpen(value: boolean | null | undefined): void;
355
+ /**
356
+ * 配置--工具栏--预制组件--是否显示. 默认为 true.
357
+ *
358
+ * @see IKgSimulatorStoreGetters.$Config$Toolbar$Prefab$IsVisible
359
+ * @param value
360
+ */
361
+ set$Config$Toolbar$Prefab$IsVisible(value: boolean | null | undefined): void;
362
+ /**
363
+ * 配置--工具栏--预制组件--位置. 默认为 'LEFT_TOP'.
364
+ *
365
+ * @see IKgSimulatorStoreGetters.$Config$Toolbar$Prefab$Placement
366
+ * @param value
367
+ */
368
+ set$Config$Toolbar$Prefab$Placement(value: IToolbarPlacement | null | undefined): void;
369
+ /**
370
+ * 配置--工具栏--属性--是否打开. 默认为 true.
371
+ *
372
+ * @see IKgSimulatorStoreGetters.$Config$Toolbar$Property$IsOpen
373
+ * @param value
374
+ */
375
+ set$Config$Toolbar$Property$IsOpen(value: boolean | null | undefined): void;
376
+ /**
377
+ * 配置--工具栏--属性--是否显示. 默认为 true.
378
+ *
379
+ * @see IKgSimulatorStoreGetters.$Config$Toolbar$Property$IsVisible
380
+ * @param value
381
+ */
382
+ set$Config$Toolbar$Property$IsVisible(value: boolean | null | undefined): void;
383
+ /**
384
+ * 配置--工具栏--属性--位置. 默认为 'RIGHT_TOP'.
385
+ *
386
+ * @see IKgSimulatorStoreGetters.$Config$Toolbar$Property$Placement
387
+ * @param value
388
+ */
389
+ set$Config$Toolbar$Property$Placement(value: IToolbarPlacement | null | undefined): void;
390
+ /**
391
+ * 配置--工具栏--场景--是否打开. 默认为 true.
392
+ *
393
+ * @see IKgSimulatorStoreGetters.$Config$Toolbar$Scene$IsOpen
394
+ * @param value
395
+ */
396
+ set$Config$Toolbar$Scene$IsOpen(value: boolean | null | undefined): void;
397
+ /**
398
+ * 配置--工具栏--场景--是否显示. 默认为 true.
399
+ *
400
+ * @see IKgSimulatorStoreGetters.$Config$Toolbar$Scene$IsVisible
401
+ * @param value
402
+ */
403
+ set$Config$Toolbar$Scene$IsVisible(value: boolean | null | undefined): void;
404
+ /**
405
+ * 配置--工具栏--场景--位置. 默认为 'LEFT_TOP'.
406
+ *
407
+ * @see IKgSimulatorStoreGetters.$Config$Toolbar$Scene$Placement
408
+ * @param value
409
+ */
410
+ set$Config$Toolbar$Scene$Placement(value: IToolbarPlacement | null | undefined): void;
411
+ /**
412
+ * 环境--环形输送线--当前场景.
413
+ *
414
+ * @see IKgSimulatorStoreGetters.$Env$CircularConveyor$CurrentScene
415
+ * @param value
416
+ */
417
+ set$Env$CircularConveyor$CurrentScene(value: Scene | null | undefined): void;
418
+ /**
419
+ * 环境--环形输送线--当前场景--是否已经保存.
420
+ *
421
+ * @see IKgSimulatorStoreGetters.$Env$CircularConveyor$CurrentScene$IsSave
422
+ * @param value
423
+ */
424
+ set$Env$CircularConveyor$CurrentScene$IsSave(value: boolean | null | undefined): void;
425
+ /**
426
+ * 环境--环形输送线--当前场景--是否正在保存.
427
+ *
428
+ * @see IKgSimulatorStoreGetters.$Env$CircularConveyor$CurrentScene$IsSaving
429
+ * @param value
430
+ */
431
+ set$Env$CircularConveyor$CurrentScene$IsSaving(value: boolean | null | undefined): void;
432
+ /**
433
+ * 环境--环形穿梭车--当前场景.
434
+ *
435
+ * @see IKgSimulatorStoreGetters.$Env$CircularShuttle$CurrentScene
436
+ * @param value
437
+ */
438
+ set$Env$CircularShuttle$CurrentScene(value: any | null | undefined): void;
439
+ /**
440
+ * 环境--环形穿梭车--当前场景--是否已经保存.
441
+ *
442
+ * @see IKgSimulatorStoreGetters.$Env$CircularShuttle$CurrentScene$IsSave
443
+ * @param value
444
+ */
445
+ set$Env$CircularShuttle$CurrentScene$IsSave(value: boolean | null | undefined): void;
446
+ /**
447
+ * 环境--环形穿梭车--当前场景--是否正在保存.
448
+ *
449
+ * @see IKgSimulatorStoreGetters.$Env$CircularShuttle$CurrentScene$IsSaving
450
+ * @param value
451
+ */
452
+ set$Env$CircularShuttle$CurrentScene$IsSaving(value: boolean | null | undefined): void;
453
+ /**
454
+ * 配置--模式--仿真模式--正在运行. 默认为 false.
455
+ *
456
+ * @see IKgSimulatorStoreGetters.$Mode$Simulate$IsRunning
457
+ * @param value
458
+ */
459
+ set$Mode$Simulate$IsRunning(value: boolean | null | undefined): void;
460
+ set$graph(value: Q.Graph | null | undefined): void;
461
+ }
462
+ export declare function buildKgSimulatorStore(id: string | null | undefined): KgStoreDefinition<IKgSimulatorStoreGetters, IKgSimulatorStoreActions>;
@@ -0,0 +1,21 @@
1
+ import { Q } from '@thymine/xunee';
2
+ /**
3
+ * 判断是不是同一个点, 考虑一定误差.
4
+ */
5
+ export declare function isSamePoint(x1: number | null | undefined, x2: number | null | undefined): boolean;
6
+ /**
7
+ * 获取时间戳.
8
+ */
9
+ export declare function timestamp(): string;
10
+ /**
11
+ * 获取节点下的界面元素.
12
+ *
13
+ * @param param.code 编号.
14
+ * @param param.node 节点.
15
+ */
16
+ export declare function getNodeUiByCode<T extends Q.BaseUI>(param: {
17
+ code: string;
18
+ node: Q.Node;
19
+ }): {
20
+ ui: T;
21
+ };
@@ -0,0 +1,3 @@
1
+ export { KgSimulator } from './KgSimulator';
2
+ export * from './KgSimulator.hooks';
3
+ export * from './KgSimulator.store';
@@ -5,7 +5,7 @@ import { IKgTableRow } from '../KgTable';
5
5
  /**
6
6
  * 事件类型.
7
7
  */
8
- export declare type IKgSubmitEvent = 'onBeforeOpen' | 'onOpen' | 'onBeforeOk' | 'onAfterValidate' | 'onBeforeRequest' | 'onOk' | 'onBeforeCancel' | 'onCancel' | 'onError' | 'onClose' | 'onOkButtonClick' | 'onCancelButtonClick';
8
+ export declare type IKgSubmitEvent = 'onBeforeOpen' | 'onOpen' | 'onBeforeOk' | 'onAfterValidate' | 'onBeforeRequest' | 'onOk' | 'onBeforeCancel' | 'onCancel' | 'onError' | 'onClose' | 'onOkButtonClick' | 'onCancelButtonClick' | 'onAfterSetFormModel';
9
9
  export declare type IKgSubmitOnBeforeOpenEventListenerParameter = {
10
10
  isCreating: boolean | null;
11
11
  isUpdating: boolean | null;
@@ -15,18 +15,18 @@ export declare type IKgSubmitOnBeforeOpenEventListenerParameter = {
15
15
  };
16
16
  export declare type IKgSubmitOnBeforeOpenEventListener = ((param: IKgSubmitOnBeforeOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
17
17
  export declare type IKgSubmitOnOpenEventListenerParameter = {
18
- /** @deprecated 请直接使用 {@link IUseKgVar.isCreating} */
19
- isCreating: boolean | null;
20
- /** @deprecated 请直接使用 {@link IUseKgVar.isUpdating} */
21
- isUpdating: boolean | null;
22
18
  /** @deprecated 请直接使用 {@link IUseKgVar.isCopying} */
23
19
  isCopying: boolean | null;
20
+ /** @deprecated 请直接使用 {@link IUseKgVar.isCreating} */
21
+ isCreating: boolean | null;
24
22
  /** @deprecated 请直接使用 {@link IUseKgVar.isDeleting} */
25
23
  isDeleting: boolean | null;
24
+ /** @deprecated 请直接使用 {@link IUseKgVar.isUpdating} */
25
+ isUpdating: boolean | null;
26
+ /** @deprecated 请直接使用 {@link IUseKgSubmit.formModel} */
27
+ model: Ref<Record<string, any>>;
26
28
  /** @deprecated 请直接使用 {@link IUseKgTable.selectedRow} */
27
29
  row: IKgTableRow | null;
28
- /** @deprecated 请直接使用 {@link IUseKgSearch.formModel} */
29
- model: Ref<Record<string, any>>;
30
30
  };
31
31
  export declare type IKgSubmitOnOpenEventListener = ((param: IKgSubmitOnOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
32
32
  export declare type IKgSubmitOnBeforeOkEventListenerParameter = {
@@ -70,20 +70,22 @@ export declare type IKgSubmitOnBeforeRequestEventListenerParameter = {
70
70
  };
71
71
  export declare type IKgSubmitOnBeforeRequestEventListener = ((param: IKgSubmitOnBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
72
72
  export declare type IKgSubmitOnOkEventListenerParameter = {
73
- /** @deprecated */
74
- isCreating: boolean | null;
75
- /** @deprecated */
76
- isUpdating: boolean | null;
77
73
  /** @deprecated */
78
74
  isCopying: boolean | null;
79
75
  /** @deprecated */
76
+ isCreating: boolean | null;
77
+ /** @deprecated */
80
78
  isDeleting: boolean | null;
81
79
  /** @deprecated */
82
- row: IKgTableRow | null;
80
+ isUpdating: boolean | null;
83
81
  /** @deprecated */
84
82
  model: Ref<Record<string, any>>;
85
- /** 接口返回结果. */
83
+ /**
84
+ * 接口返回结果.
85
+ */
86
86
  result: any | null;
87
+ /** @deprecated */
88
+ row: IKgTableRow | null;
87
89
  };
88
90
  export declare type IKgSubmitOnOkEventListener = ((param: IKgSubmitOnOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
89
91
  export declare type IKgSubmitOnBeforeCancelEventListenerParameter = {};
@@ -98,9 +100,12 @@ export declare type IKgSubmitOnSubmitSaveEventListenerParameter = {};
98
100
  export declare type IKgSubmitOnSubmitSaveEventListener = ((param: IKgSubmitOnSubmitSaveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
99
101
  export declare type IKgSubmitOnSubmitCancelEventListenerParameter = {};
100
102
  export declare type IKgSubmitOnSubmitCancelEventListener = ((param: IKgSubmitOnSubmitCancelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
101
- export declare type IKgSubmitEventListenerParameter = IKgSubmitOnBeforeOpenEventListenerParameter | IKgSubmitOnOpenEventListenerParameter | IKgSubmitOnBeforeOkEventListenerParameter | IKgSubmitOnAfterValidateEventListenerParameter | IKgSubmitOnBeforeRequestEventListenerParameter | IKgSubmitOnOkEventListenerParameter | IKgSubmitOnBeforeCancelEventListenerParameter | IKgSubmitOnCancelEventListenerParameter | IKgSubmitOnErrorEventListenerParameter | IKgSubmitOnCloseEventListenerParameter | IKgSubmitOnSubmitSaveEventListenerParameter | IKgSubmitOnSubmitCancelEventListenerParameter;
102
- export declare type IKgSubmitEventListener = IKgSubmitOnBeforeOpenEventListener | IKgSubmitOnOpenEventListener | IKgSubmitOnBeforeOkEventListener | IKgSubmitOnAfterValidateEventListener | IKgSubmitOnBeforeRequestEventListener | IKgSubmitOnOkEventListener | IKgSubmitOnBeforeCancelEventListener | IKgSubmitOnCancelEventListener | IKgSubmitOnErrorEventListener | IKgSubmitOnCloseEventListener | IKgSubmitOnSubmitSaveEventListener | IKgSubmitOnSubmitCancelEventListener;
103
+ export declare type IKgSubmitOnAfterSetFormModelEventListenerParameter = {};
104
+ export declare type IKgSubmitOnAfterSetFormModelEventListener = ((param: IKgSubmitOnAfterSetFormModelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
105
+ export declare type IKgSubmitEventListenerParameter = IKgSubmitOnBeforeOpenEventListenerParameter | IKgSubmitOnOpenEventListenerParameter | IKgSubmitOnBeforeOkEventListenerParameter | IKgSubmitOnAfterValidateEventListenerParameter | IKgSubmitOnBeforeRequestEventListenerParameter | IKgSubmitOnOkEventListenerParameter | IKgSubmitOnBeforeCancelEventListenerParameter | IKgSubmitOnCancelEventListenerParameter | IKgSubmitOnErrorEventListenerParameter | IKgSubmitOnCloseEventListenerParameter | IKgSubmitOnSubmitSaveEventListenerParameter | IKgSubmitOnSubmitCancelEventListenerParameter | IKgSubmitOnAfterSetFormModelEventListenerParameter;
106
+ export declare type IKgSubmitEventListener = IKgSubmitOnBeforeOpenEventListener | IKgSubmitOnOpenEventListener | IKgSubmitOnBeforeOkEventListener | IKgSubmitOnAfterValidateEventListener | IKgSubmitOnBeforeRequestEventListener | IKgSubmitOnOkEventListener | IKgSubmitOnBeforeCancelEventListener | IKgSubmitOnCancelEventListener | IKgSubmitOnErrorEventListener | IKgSubmitOnCloseEventListener | IKgSubmitOnSubmitSaveEventListener | IKgSubmitOnSubmitCancelEventListener | IKgSubmitOnAfterSetFormModelEventListener;
103
107
  export declare const eventListeners: Record<string, {
108
+ onAfterSetFormModel: Array<IKgSubmitOnAfterSetFormModelEventListener>;
104
109
  onAfterValidate: Array<IKgSubmitOnAfterValidateEventListener>;
105
110
  onBeforeCancel: Array<IKgSubmitOnBeforeCancelEventListener>;
106
111
  onBeforeOk: Array<IKgSubmitOnBeforeOkEventListener>;