@kengic/vue 0.30.1-beta.3 → 0.30.1-beta.31

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 (172) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/align-left-outlined.579b01c6.mjs +8 -0
  3. package/dist/caret-down-outlined.c0564a3f.mjs +8 -0
  4. package/dist/caret-left-outlined.35b1d7d1.mjs +8 -0
  5. package/dist/caret-up-outlined.81b559ad.mjs +8 -0
  6. package/dist/check-box-outline-blank.d01a2055.mjs +8 -0
  7. package/dist/collapse-all-rounded.26ee73fc.mjs +8 -0
  8. package/dist/double-right-outlined.f057a6b2.mjs +8 -0
  9. package/dist/expand-all-rounded.e01e6cb9.mjs +8 -0
  10. package/dist/eye-invisible-outlined.5f8d6151.mjs +8 -0
  11. package/dist/holder-outlined.9e698750.mjs +8 -0
  12. package/dist/index.css +1 -1
  13. package/dist/kengic-vue.js +171350 -127577
  14. package/dist/loading-outlined.13a15197.mjs +8 -0
  15. package/dist/more-outlined.8e1202ac.mjs +8 -0
  16. package/dist/palette-swatch-variant.f7258843.mjs +8 -0
  17. package/dist/partition-outlined.1bcf4f37.mjs +8 -0
  18. package/dist/profile-outlined.1059fb0d.mjs +8 -0
  19. package/dist/project/build/utils.ts +20 -15
  20. package/dist/src/api/WMS/Controllers/DescriptionController/List.d.ts +2 -2
  21. package/dist/src/api/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +2 -2
  22. package/dist/src/api/WMS/Controllers/SqlClientController/Execute.d.ts +2 -2
  23. package/dist/src/api/WMS/Controllers/SqlClientController/ExecutePage.d.ts +2 -2
  24. package/dist/src/api/WMS/Controllers/SysPermissionController/List.d.ts +2 -2
  25. package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +3 -3
  26. package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/ListByFormId.d.ts +16 -0
  27. package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/index.d.ts +1 -0
  28. package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +2 -2
  29. package/dist/src/api/WMS/Controllers/VarController/GetAll.d.ts +2 -2
  30. package/dist/src/api/WMS/Controllers/VarDdaController/Create.d.ts +2 -2
  31. package/dist/src/api/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +2 -2
  32. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +2 -2
  33. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +2 -2
  34. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +2 -2
  35. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +2 -2
  36. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +2 -2
  37. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +2 -2
  38. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +2 -2
  39. package/dist/src/api/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +2 -2
  40. package/dist/src/api/WMS/Controllers/VarGridMasterController/Update.d.ts +2 -2
  41. package/dist/src/api/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +2 -2
  42. package/dist/src/api/WMS/Controllers/VarVariableController/Delete.d.ts +2 -2
  43. package/dist/src/api/WMS/Controllers/WarehouseController/ListVO.d.ts +25 -0
  44. package/dist/src/api/WMS/Controllers/WorkstationController/List.d.ts +2 -2
  45. package/dist/src/api/WMS/Controllers/index.d.ts +1 -1
  46. package/dist/src/api/WMS/models.d.ts +11 -5
  47. package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +1 -2
  48. package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +26 -5
  49. package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +21 -5
  50. package/dist/src/component/KgCanvas/KgCanvas.model.d.ts +1 -33
  51. package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +4 -4
  52. package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +4 -1
  53. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.AreaSelect.d.ts +5 -0
  54. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.d.ts +5 -0
  55. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Legend.d.ts +5 -0
  56. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Offline.d.ts +5 -0
  57. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Setting.d.ts +5 -0
  58. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Log.d.ts +5 -0
  59. package/dist/src/{page/KgCircleVis/components/KgCircleVis.Tab.Rgv.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.d.ts} +5 -5
  60. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.d.ts +5 -0
  61. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.hooks.d.ts +29 -0
  62. package/dist/src/{page/KgCircleVis/components/KgCircleVis.model.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.model.d.ts} +1 -1
  63. package/dist/src/{page/KgCircleVis/components/KgCircleVis.store.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.store.d.ts} +41 -41
  64. package/dist/src/component/KgCircularShuttleMonitor/index.d.ts +3 -0
  65. package/dist/src/component/KgForm/KgForm.d.ts +3 -3
  66. package/dist/src/component/KgForm/index.d.ts +4 -4
  67. package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +35 -35
  68. package/dist/src/component/KgForm.Item/KgForm.Item.model.d.ts +31 -33
  69. package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +34 -34
  70. package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +38 -36
  71. package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +34 -34
  72. package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +34 -34
  73. package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +34 -34
  74. package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +34 -34
  75. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +34 -34
  76. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +34 -34
  77. package/dist/src/component/KgForm.Item/components/KgForm.Item.Link.d.ts +34 -34
  78. package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +34 -36
  79. package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +35 -35
  80. package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +34 -34
  81. package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +34 -34
  82. package/dist/src/component/KgLayoutHeader/{components/KgLayoutHeaderLocale.d.ts → KgLayoutHeader.Locale.d.ts} +1 -1
  83. package/dist/src/component/KgLayoutHeader/index.d.ts +1 -1
  84. package/dist/src/component/KgModal/KgModal.d.ts +18 -18
  85. package/dist/src/component/KgModal/{hooks/useDragToResize.d.ts → KgModal.service.d.ts} +13 -2
  86. package/dist/src/component/KgModal02/KgModal02.d.ts +591 -0
  87. package/dist/src/component/KgModal02/KgModal02.model.d.ts +1 -0
  88. package/dist/src/component/KgModal02/index.d.ts +1 -0
  89. package/dist/src/component/KgResizable/KgResizable.d.ts +4 -4
  90. package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +11 -0
  91. package/dist/src/component/KgSimulator/KgSimulator.Canvas.service.d.ts +71 -0
  92. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.d.ts +36 -0
  93. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.d.ts +36 -0
  94. package/dist/src/component/KgSimulator/KgSimulator.Menu.d.ts +4 -0
  95. package/dist/src/component/KgSimulator/KgSimulator.Panel.Prefab.d.ts +4 -0
  96. package/dist/src/component/KgSimulator/KgSimulator.Panel.Property.d.ts +4 -0
  97. package/dist/src/{page/KgCircleVis/components/KgCircleVis.AreaSelect.d.ts → component/KgSimulator/KgSimulator.Panel.Scene.d.ts} +2 -3
  98. package/dist/src/component/KgSimulator/KgSimulator.Panel.d.ts +92 -0
  99. package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +108 -0
  100. package/dist/src/component/KgSimulator/KgSimulator.Title.d.ts +11 -0
  101. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.d.ts +9 -0
  102. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Property.d.ts +9 -0
  103. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Scene.d.ts +9 -0
  104. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.d.ts +113 -0
  105. package/dist/src/component/KgSimulator/KgSimulator.d.ts +33 -0
  106. package/dist/src/component/KgSimulator/KgSimulator.event.d.ts +63 -0
  107. package/dist/src/component/KgSimulator/KgSimulator.hooks.d.ts +68 -0
  108. package/dist/src/component/KgSimulator/KgSimulator.icons.d.ts +10 -0
  109. package/dist/src/component/KgSimulator/KgSimulator.model.d.ts +517 -0
  110. package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +172 -0
  111. package/dist/src/component/KgSimulator/index.d.ts +3 -0
  112. package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +14 -9
  113. package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +46 -14
  114. package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +46 -0
  115. package/dist/src/component/KgTable/{components/KgTable.BodyCell.d.ts → KgTable.BodyCell.d.ts} +1 -1
  116. package/dist/src/component/KgTable/{components/KgTable.HeaderCell.d.ts → KgTable.HeadCell.d.ts} +1 -1
  117. package/dist/src/component/KgTable/{components/setting/KgTable.Setting.service.d.ts → KgTable.Setting.service.d.ts} +1 -1
  118. package/dist/src/component/KgTable/KgTable.model.d.ts +0 -2
  119. package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +72 -0
  120. package/dist/src/component/KgTable02/KgTable02.event.d.ts +13 -3
  121. package/dist/src/component/KgTable02/KgTable02.hooks.d.ts +9 -0
  122. package/dist/src/component/KgVar/{KgVarFactory.d.ts → KgVar.Factory.d.ts} +9 -0
  123. package/dist/src/component/KgVar/KgVar.d.ts +23 -17
  124. package/dist/src/component/KgVar/KgVar.event.d.ts +19 -6
  125. package/dist/src/component/KgVar/KgVar.hooks.d.ts +20 -7
  126. package/dist/src/component/KgVar/KgVar.model.d.ts +0 -5
  127. package/dist/src/component/KgVar/index.d.ts +1 -1
  128. package/dist/src/component/KgVarConfig/KgVarConfig.model.d.ts +0 -3
  129. package/dist/src/component/KgWarehouse/KgWarehouse.hooks.d.ts +2 -2
  130. package/dist/src/component/KgWarehouse/KgWarehouse.store.d.ts +4 -4
  131. package/dist/src/component/index.d.ts +3 -0
  132. package/dist/src/config/config.store.d.ts +15 -3
  133. package/dist/src/config/index.d.ts +9 -3
  134. package/dist/src/const/const.model.d.ts +533 -5
  135. package/dist/src/const/form-id.const.d.ts +22 -10
  136. package/dist/src/const/index.d.ts +0 -1
  137. package/dist/src/i18n/cs_CZ.d.ts +1 -1
  138. package/dist/src/i18n/en.d.ts +1 -1
  139. package/dist/src/i18n/es_ES.d.ts +1 -1
  140. package/dist/src/i18n/fr_FR.d.ts +1 -1
  141. package/dist/src/i18n/i18n.setup.d.ts +1 -1
  142. package/dist/src/i18n/km_KH.d.ts +1 -1
  143. package/dist/src/i18n/ko_KR.d.ts +1 -1
  144. package/dist/src/i18n/vi_VN.d.ts +1 -1
  145. package/dist/src/i18n/zh_CN.d.ts +1 -1
  146. package/dist/src/page/{KgCircleVis/KgPageCircleVis.d.ts → KgPageCircularShuttleMonitor/KgPageCircularShuttleMonitor.d.ts} +1 -1
  147. package/dist/src/page/KgPageCircularShuttleMonitor/index.d.ts +1 -0
  148. package/dist/src/page/KgPageDda/KgPageDda.d.ts +1 -1
  149. package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +3 -3
  150. package/dist/src/page/index.d.ts +2 -2
  151. package/dist/src/project/src/utils/env.d.ts +0 -16
  152. package/dist/src/service/http-client.d.ts +5 -1
  153. package/dist/src/util/ant-design-vue.d.ts +1 -1
  154. package/dist/src/util/tsx.helper.d.ts +7 -7
  155. package/package.json +9 -7
  156. package/dist/src/api/WMS/Controllers/WhController/ListVO.d.ts +0 -54
  157. package/dist/src/component/KgForm/KgForm.model.d.ts +0 -9
  158. package/dist/src/component/KgModal/hooks/useDragToMove.d.ts +0 -12
  159. package/dist/src/const/injection-keys.const.d.ts +0 -11
  160. package/dist/src/page/KgCircleVis/components/KgCircleVis.Canvas.d.ts +0 -5
  161. package/dist/src/page/KgCircleVis/components/KgCircleVis.Legend.d.ts +0 -5
  162. package/dist/src/page/KgCircleVis/components/KgCircleVis.Offline.d.ts +0 -5
  163. package/dist/src/page/KgCircleVis/components/KgCircleVis.Setting.d.ts +0 -5
  164. package/dist/src/page/KgCircleVis/components/KgCircleVis.Tab.Log.d.ts +0 -5
  165. package/dist/src/page/KgCircleVis/components/KgCircleVis.d.ts +0 -5
  166. package/dist/src/page/KgCircleVis/components/KgCircleVis.hooks.d.ts +0 -29
  167. package/dist/src/page/KgCircleVis/index.d.ts +0 -1
  168. /package/dist/src/api/WMS/Controllers/{WhController → WarehouseController}/index.d.ts +0 -0
  169. /package/dist/src/{page/KgCircleVis/components/KgCircleVis.Canvas.service.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.service.d.ts} +0 -0
  170. /package/dist/src/component/KgTable/{components/KgTable.Info.d.ts → KgTable.Info.d.ts} +0 -0
  171. /package/dist/src/component/KgTable/{components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts → KgTable.Setting.VarGridMaster.SaveAs.d.ts} +0 -0
  172. /package/dist/src/component/KgTable/{components/setting/KgTable.Setting.d.ts → KgTable.Setting.d.ts} +0 -0
@@ -0,0 +1,63 @@
1
+ import { IKgEventListener } from '@kengic/core.core';
2
+ /**
3
+ * 事件类型.
4
+ */
5
+ export declare type IKgSimulatorEvent = 'on$KgSimulatorCanvas$CreateData' | 'on$KgSimulatorCanvas$DeleteData' | 'on$KgSimulatorCanvas$UpdateData' | 'on$KgSimulatorPanelScene$Click' | 'on$KgSimulatorPanelScene$Delete';
6
+ export declare type IKgSimulatorOn$KgSimulatorCanvas$CreateDataEventListenerParameter = {
7
+ /**
8
+ * 对象.
9
+ */
10
+ data: Record<string, any>;
11
+ /**
12
+ * 对象类型.
13
+ *
14
+ * @see {@link NODE_KEY}
15
+ */
16
+ type: string;
17
+ };
18
+ export declare type IKgSimulatorOn$KgSimulatorCanvas$CreateDataEventListener = ((param: IKgSimulatorOn$KgSimulatorCanvas$CreateDataEventListenerParameter) => Promise<boolean>) & IKgEventListener;
19
+ export declare type IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListenerParameter = {};
20
+ export declare type IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListener = ((param: IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListenerParameter) => Promise<boolean>) & IKgEventListener;
21
+ export declare type IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListenerParameter = {};
22
+ export declare type IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListener = ((param: IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListenerParameter) => Promise<boolean>) & IKgEventListener;
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;
45
+ export declare const eventListeners: Record<string, {
46
+ on$KgSimulatorCanvas$CreateData: Array<IKgSimulatorOn$KgSimulatorCanvas$CreateDataEventListener>;
47
+ on$KgSimulatorCanvas$DeleteData: Array<IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListener>;
48
+ on$KgSimulatorCanvas$UpdateData: Array<IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListener>;
49
+ on$KgSimulatorPanelScene$Click: Array<IKgSimulatorOn$KgSimulatorPanelScene$ClickEventListener>;
50
+ on$KgSimulatorPanelScene$Delete: Array<IKgSimulatorOn$KgSimulatorPanelScene$DeleteEventListener>;
51
+ }>;
52
+ /**
53
+ * 触发事件.
54
+ *
55
+ * @param param.event 事件名称.
56
+ * @param param.id 唯一标识.
57
+ * @param param.parameter 事件参数.
58
+ */
59
+ export declare function emit<P extends IKgSimulatorEventListenerParameter>(param: {
60
+ event: IKgSimulatorEvent;
61
+ id?: string | undefined;
62
+ parameter: P;
63
+ }): Promise<boolean>;
@@ -0,0 +1,68 @@
1
+ import { IRemoveEventListener } from '@kengic/core.core';
2
+ import { VarSubmitDetail } from '../../api/WMS/models';
3
+ import { IKgSimulatorOn$KgSimulatorCanvas$CreateDataEventListener, IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListener, IKgSimulatorOn$KgSimulatorCanvas$UpdateDataEventListener, IKgSimulatorOn$KgSimulatorPanelScene$ClickEventListener, IKgSimulatorOn$KgSimulatorPanelScene$DeleteEventListener } from './KgSimulator.event';
4
+ import { buildKgSimulatorStore } from './KgSimulator.store';
5
+ export declare type IUseKgSimulator = {
6
+ /**
7
+ * 画布标识.
8
+ */
9
+ $KgCanvas$id: string;
10
+ /**
11
+ * 模拟器--面板--属性--修改某些「提交表单字段」的部分属性.
12
+ *
13
+ * @param param
14
+ * @param param.varSubmitDetailList 要修改的「提交表单字段」列表, 列表中的每个对象只需要包含要修改的属性, 注意 VarSubmitDetail.frm_id 和 VarSubmitDetail.var_nam 必须包含.
15
+ */
16
+ $KgSimulatorPanelProperty$patchVarSubmitDetailList(param: {
17
+ varSubmitDetailList: Array<VarSubmitDetail>;
18
+ }): Promise<void>;
19
+ /**
20
+ * 标识.
21
+ */
22
+ id: string;
23
+ /**
24
+ * 监听事件: 画布--创建一个对象.
25
+ *
26
+ * @param listener 事件监听函数.
27
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
28
+ */
29
+ on$KgSimulatorCanvas$CreateData(listener: IKgSimulatorOn$KgSimulatorCanvas$CreateDataEventListener, isOnce?: boolean): IRemoveEventListener;
30
+ /**
31
+ * 监听事件: 画布--删除多个对象.
32
+ *
33
+ * @param listener 事件监听函数.
34
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
35
+ */
36
+ on$KgSimulatorCanvas$DeleteData(listener: IKgSimulatorOn$KgSimulatorCanvas$DeleteDataEventListener, isOnce?: boolean): IRemoveEventListener;
37
+ /**
38
+ * 监听事件: 画布--更新一个对象.
39
+ *
40
+ * @param listener 事件监听函数.
41
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
42
+ */
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;
58
+ /**
59
+ * 状态数据.
60
+ */
61
+ store: ReturnType<ReturnType<typeof buildKgSimulatorStore>>;
62
+ } & ReturnType<ReturnType<typeof buildKgSimulatorStore>>;
63
+ /**
64
+ * 仿真模拟器.
65
+ *
66
+ * @param id 标识.
67
+ */
68
+ export declare function useKgSimulator(id?: string | null | undefined): IUseKgSimulator;
@@ -0,0 +1,10 @@
1
+ import { Q } from '@thymine/xunee';
2
+ /**
3
+ * 自定义的图标.
4
+ */
5
+ declare const iconRecord: Record<string, Q.IDrawable>;
6
+ export { iconRecord };
7
+ /**
8
+ *
9
+ */
10
+ export declare function registerPrefabImageList(): void;
@@ -0,0 +1,517 @@
1
+ /**
2
+ * 获取对象的属性名数组.
3
+ * @param obj 对象.
4
+ */
5
+ export declare function keys<C extends object>(obj: C): Array<keyof C>;
6
+ /** 场景实体. */
7
+ export declare class Scene {
8
+ /** 场景中的代理. */
9
+ agents?: Array<Agent> | null;
10
+ /** 配置JSON. */
11
+ configurationJson?: string | null;
12
+ /** 创建时间. */
13
+ createdAt?: string | null;
14
+ /** 场景中的创建者. */
15
+ creators?: Array<Creator> | null;
16
+ /** 场景深度. */
17
+ depth?: number | null;
18
+ /** 场景描述. */
19
+ description?: string | null;
20
+ /** 场景中的销毁者. */
21
+ destroyers?: Array<Destroyer> | null;
22
+ /** 场景中的输送线段. */
23
+ edges?: Array<Edge> | null;
24
+ /** 重力加速度. */
25
+ gravity?: number | null;
26
+ /** 场景高度,对应Z轴. */
27
+ height?: number | null;
28
+ /** 湿度百分比. */
29
+ humidity?: number | null;
30
+ /** 场景唯一标识符(主键). */
31
+ id?: string | null;
32
+ /** 最后运行时间. */
33
+ lastRunTime?: string | null;
34
+ /** 场景名称. */
35
+ name?: string | null;
36
+ /**
37
+ * 普通输送机.
38
+ */
39
+ stations?: Array<Station> | null;
40
+ /**
41
+ * 叠盘机.
42
+ */
43
+ DPJ?: Array<Station> | null;
44
+ /**
45
+ * 顶升移载机.
46
+ */
47
+ DSYZJ?: Array<Station> | null;
48
+ /**
49
+ * 光电传感器.
50
+ */
51
+ GDCGQ?: Array<Station> | null;
52
+ /** Status. */
53
+ status?: 0 | 1 | 2 | 3 | 4 | 5 | null;
54
+ /** 场景中的任务. */
55
+ tasks?: Array<AgentTask> | null;
56
+ /** 环境温度(摄氏度). */
57
+ temperature?: number | null;
58
+ /** 仿真时间倍率. */
59
+ timeScale?: number | null;
60
+ /** 更新时间. */
61
+ updatedAt?: string | null;
62
+ /** 场景宽度,对应X轴. */
63
+ width?: number | null;
64
+ constructor(obj?: Scene);
65
+ }
66
+ /** RGV代理实体。
67
+ * 从PLC下发命令执行动作的都算Agent。动作包括不限于移动,转弯、加速、减速等. */
68
+ export declare class Agent {
69
+ /**
70
+ * 当前加速度.单位m/s^2.
71
+ * <p>
72
+ * 加速时为正值,减速时为负值。匀速运行时为0
73
+ * 此为固定值,暂不支持动态加速度。
74
+ * </p>.
75
+ */
76
+ acceleration?: number | null;
77
+ /**
78
+ * 角度(朝向).单位度.
79
+ * 0度表示向右(正X方向),90度表示向下(正Y方向),以此类推.
80
+ */
81
+ angle?: number | null;
82
+ /**
83
+ * 刹车的加速度. 注意该值应该为负值。单位m/s^2.
84
+ * <p>
85
+ * 此为固定值,暂不支持动态加速度。
86
+ * </p>.
87
+ */
88
+ brakingAcceleration?: number | null;
89
+ /**
90
+ * 通信时延.单位s.
91
+ * 该变量CommunicationDelay和当前速度Velocity还充当是否能刹停的标志,如果都为0则按之前的进行处理,否则需要判断刹停距离是否足够才能进行任务分配.
92
+ * <p>
93
+ * 从Agent更新速度和当前加速度,到获取该信息,一直到Agent接收到变更信息之间的通信延迟。可适当调大以充当余量。
94
+ * </p>.
95
+ */
96
+ communicationDelay?: number | null;
97
+ /** 创建时间. */
98
+ createdAt?: string | null;
99
+ /** Destination Task. */
100
+ destinationTask?: AgentTask | null;
101
+ /** 最终的目标任务Id. */
102
+ destinationTaskId?: string | null;
103
+ /** Agent高度,对应Z轴. */
104
+ height?: number | null;
105
+ /** 代理唯一标识符(主键). */
106
+ id?: string | null;
107
+ /** 是否可用,可能因为故障而去修理,这时状态为不可用,Agent不在边上. */
108
+ isAvailable?: boolean | null;
109
+ /** Agent长度,对应Y轴. */
110
+ length?: number | null;
111
+ /** 最大速度.单位m/s. */
112
+ maxVelocity?: number | null;
113
+ /** Scene. */
114
+ scene?: Scene | null;
115
+ /** 所属场景ID. */
116
+ sceneId?: string | null;
117
+ /** Status. */
118
+ status?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | null;
119
+ /** Target Change Reason. */
120
+ targetChangeReason?: 0 | 1 | 2 | null;
121
+ /** Type. */
122
+ type?: 0 | 1 | 2 | null;
123
+ /** 更新时间. */
124
+ updatedAt?: string | null;
125
+ /**
126
+ * 当前速度.单位m/s.
127
+ * 该变量Velocity和通信时延CommunicationDelay还充当是否能刹停的标志,如果都为0则按之前的进行处理,否则需要判断刹停距离是否足够才能进行任务分配.
128
+ */
129
+ velocity?: number | null;
130
+ /** Agent宽度,对应X轴. */
131
+ width?: number | null;
132
+ /** 坐标X. */
133
+ x?: number | null;
134
+ /** 坐标Y. */
135
+ y?: number | null;
136
+ /** 坐标Z. */
137
+ z?: number | null;
138
+ constructor(obj?: Agent);
139
+ }
140
+ /** 创建者. */
141
+ export declare class Creator {
142
+ /**
143
+ * 角度(朝向).单位度.
144
+ * 0度表示向右(正X方向),90度表示向下(正Y方向),以此类推.
145
+ */
146
+ angle?: number | null;
147
+ /** 名称. */
148
+ name?: string | null;
149
+ /** 创建时间. */
150
+ createdAt?: string | null;
151
+ /** 创建者高度,对应Z轴. */
152
+ height?: number | null;
153
+ /** 创建者唯一标识符(主键). */
154
+ id?: string | null;
155
+ /** 创建间隔,单位毫秒. */
156
+ interval?: number | null;
157
+ /** 创建者是否启用. */
158
+ isEnable?: boolean | null;
159
+ /** 创建者长度,对应Y轴. */
160
+ length?: number | null;
161
+ /** Scene. */
162
+ scene?: Scene | null;
163
+ /** 所属场景ID. */
164
+ sceneId?: string | null;
165
+ /** Station. */
166
+ station?: Station | null;
167
+ /** 所属站点Id. */
168
+ stationId?: string | null;
169
+ /** 更新时间. */
170
+ updatedAt?: string | null;
171
+ /** 创建者宽度,对应X轴. */
172
+ width?: number | null;
173
+ /** 坐标X. */
174
+ x?: number | null;
175
+ /** 坐标Y. */
176
+ y?: number | null;
177
+ /** 坐标Z. */
178
+ z?: number | null;
179
+ constructor(obj?: Creator);
180
+ }
181
+ /** 站点实体. */
182
+ export declare class Station {
183
+ /** 名称. */
184
+ name?: string | null;
185
+ /**
186
+ * 角度(朝向).单位度.
187
+ * 0度表示向右(正X方向),90度表示向下(正Y方向),以此类推.
188
+ */
189
+ angle?: number | null;
190
+ /** 创建时间. */
191
+ createdAt?: string | null;
192
+ /** Edge. */
193
+ edge?: Edge | null;
194
+ /** 站点所属边. */
195
+ edgeId?: string | null;
196
+ /** 设备高度,对应Z轴. */
197
+ height?: number | null;
198
+ /** 站点唯一标识符(主键). */
199
+ id?: string | null;
200
+ /** 设备长度,对应Y轴. */
201
+ length?: number | null;
202
+ /** Priority. */
203
+ priority?: 0 | 1 | 2 | null;
204
+ /** Scene. */
205
+ scene?: Scene | null;
206
+ /** 所属场景ID. */
207
+ sceneId?: string | null;
208
+ /** 当前位置基于所属边的起始点的偏移量. */
209
+ startOffset?: number | null;
210
+ /** Status. */
211
+ status?: 0 | 1 | 2 | 3 | 4 | null;
212
+ /** Type. */
213
+ type?: 0 | 1 | 2 | 3 | 4 | null;
214
+ /** 更新时间. */
215
+ updatedAt?: string | null;
216
+ /** 设备宽度,对应X轴. */
217
+ width?: number | null;
218
+ /** 坐标X. */
219
+ x?: number | null;
220
+ /** 坐标Y. */
221
+ y?: number | null;
222
+ /** 坐标Z. */
223
+ z?: number | null;
224
+ constructor(obj?: Station);
225
+ }
226
+ /** 代理任务实体. */
227
+ export declare class AgentTask {
228
+ /** Agent Task Type. */
229
+ agentTaskType?: 0 | 1 | 2 | 3 | 4 | 5 | null;
230
+ /**
231
+ * 角度(朝向).单位度.
232
+ * 0度表示向右(正X方向),90度表示向上(正Y方向),以此类推.
233
+ */
234
+ angle?: number | null;
235
+ /** 创建时间. */
236
+ createdAt?: string | null;
237
+ /** 边绘制的高度,对应Z轴. */
238
+ height?: number | null;
239
+ /** 任务唯一标识符(主键). */
240
+ id?: string | null;
241
+ /** 边绘制的长度,对应Y轴. */
242
+ length?: number | null;
243
+ /**
244
+ * 任务序号.
245
+ * 当任务优先级一样时,通过该字段按序执行任务.
246
+ * 建议使用Date.UtcNow.Ticks.
247
+ */
248
+ order?: number | null;
249
+ /** Priority. */
250
+ priority?: 1 | 2 | 3 | null;
251
+ /** Scene. */
252
+ scene?: Scene | null;
253
+ /** 所属场景ID. */
254
+ sceneId?: string | null;
255
+ /** Source Station. */
256
+ sourceStation?: Station | null;
257
+ /** 任务的目标站点Id. */
258
+ sourceStationId?: string | null;
259
+ /** Status. */
260
+ status?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | null;
261
+ /** Target Station. */
262
+ targetStation?: Station | null;
263
+ /** 任务的目标站点Id. */
264
+ targetStationId?: string | null;
265
+ /** 更新时间. */
266
+ updatedAt?: string | null;
267
+ /** 边绘制的宽度,对应X轴. */
268
+ width?: number | null;
269
+ /** 坐标X. */
270
+ x?: number | null;
271
+ /** 坐标Y. */
272
+ y?: number | null;
273
+ /** 坐标Z. */
274
+ z?: number | null;
275
+ constructor(obj?: AgentTask);
276
+ }
277
+ export declare class Destroyer {
278
+ /** 名称. */
279
+ name?: string | null;
280
+ /**
281
+ * 角度(朝向).单位度.
282
+ * 0度表示向右(正X方向),90度表示向下(正Y方向),以此类推.
283
+ */
284
+ angle?: number | null;
285
+ /** 创建时间. */
286
+ createdAt?: string | null;
287
+ /** 销毁者高度,对应Z轴. */
288
+ height?: number | null;
289
+ /** 销毁者唯一标识符(主键). */
290
+ id?: string | null;
291
+ /** 销毁间隔,单位毫秒. */
292
+ interval?: number | null;
293
+ /** 销毁者是否启用. */
294
+ isEnable?: boolean | null;
295
+ /** 销毁者长度,对应Y轴. */
296
+ length?: number | null;
297
+ /** Scene. */
298
+ scene?: Scene | null;
299
+ /** 所属场景ID. */
300
+ sceneId?: string | null;
301
+ /** Station. */
302
+ station?: Station | null;
303
+ /** 所属站点Id. */
304
+ stationId?: string | null;
305
+ /** 更新时间. */
306
+ updatedAt?: string | null;
307
+ /** 销毁者宽度,对应X轴. */
308
+ width?: number | null;
309
+ /** 坐标X. */
310
+ x?: number | null;
311
+ /** 坐标Y. */
312
+ y?: number | null;
313
+ /** 坐标Z. */
314
+ z?: number | null;
315
+ constructor(obj?: Destroyer);
316
+ }
317
+ /** 输送线段实体. */
318
+ export declare class Edge {
319
+ /** 名称. */
320
+ name?: string | null;
321
+ /**
322
+ * 角度(朝向).单位度.
323
+ * 0度表示向右(正X方向),90度表示向下(正Y方向),以此类推.
324
+ * 注意:因为Y轴向下为正,所以角度旋转正值旋转为顺时针,负值旋转为逆时针.
325
+ */
326
+ angle?: number | null;
327
+ /** 创建时间. */
328
+ createdAt?: string | null;
329
+ /** 边绘制的高度,对应Z轴. */
330
+ height?: number | null;
331
+ /** 线段唯一标识符(主键). */
332
+ id?: string | null;
333
+ /** 边绘制的长度,对应Y轴. */
334
+ length?: number | null;
335
+ /** Scene. */
336
+ scene?: Scene | null;
337
+ /** 所属场景ID. */
338
+ sceneId?: string | null;
339
+ /** 起始位置. */
340
+ source?: string | null;
341
+ /** 结束位置. */
342
+ target?: string | null;
343
+ /** Type. */
344
+ type?: 0 | 1 | null;
345
+ /** 更新时间. */
346
+ updatedAt?: string | null;
347
+ /** 边绘制的宽度,对应X轴. */
348
+ width?: number | null;
349
+ /** 坐标X. */
350
+ x?: number | null;
351
+ /** 坐标Y. */
352
+ y?: number | null;
353
+ /** 坐标Z. */
354
+ z?: number | null;
355
+ constructor(obj?: Edge);
356
+ }
357
+ /**
358
+ * 创建一个新的对象, 并给部分属性设置默认值.
359
+ *
360
+ * @param station 要覆盖的部分属性.
361
+ */
362
+ export declare function newPTSSJ(station?: Station): Station;
363
+ /**
364
+ * 创建一个新的对象, 并给部分属性设置默认值.
365
+ *
366
+ * @param station 要覆盖的部分属性.
367
+ */
368
+ export declare function newDPJ(station?: Station): Station;
369
+ /**
370
+ * 创建一个新的对象, 并给部分属性设置默认值.
371
+ *
372
+ * @param station 要覆盖的部分属性.
373
+ */
374
+ export declare function newDSYZJ(station?: Station): Station;
375
+ /**
376
+ * 创建一个新的对象, 并给部分属性设置默认值.
377
+ *
378
+ * @param station 要覆盖的部分属性.
379
+ */
380
+ export declare function newGDCGQ(station?: Station): Station;
381
+ /**
382
+ * 创建一个新的对象, 并给部分属性设置默认值.
383
+ *
384
+ * @param creator 要覆盖的部分属性.
385
+ */
386
+ export declare function newCreator(creator?: Creator): Creator;
387
+ /**
388
+ * 创建一个新的对象, 并给部分属性设置默认值.
389
+ *
390
+ * @param destroyer 要覆盖的部分属性.
391
+ */
392
+ export declare function newDestroyer(destroyer?: Destroyer): Destroyer;
393
+ /**
394
+ * 工具栏位置.
395
+ */
396
+ export declare type IToolbarPlacement = 'LEFT_TOP' | 'LEFT_BOTTOM' | 'RIGHT_TOP' | 'RIGHT_BOTTOM';
397
+ /**
398
+ * 面板位置.
399
+ */
400
+ export declare type IPanelPlacement = 'LEFT_TOP' | 'LEFT_BOTTOM' | 'RIGHT_TOP' | 'RIGHT_BOTTOM';
401
+ /**
402
+ * 本地存储的键.
403
+ */
404
+ export declare const STORE_KEY: {
405
+ /**
406
+ * 环形输送线--当前场景.
407
+ */
408
+ CIRCULAR_CONVEYOR__CURRENT_SCENE: string;
409
+ /**
410
+ * 环形穿梭车--当前场景.
411
+ */
412
+ CIRCULAR_SHUTTLE__CURRENT_SCENE: string;
413
+ };
414
+ /**
415
+ * 节点类型.
416
+ */
417
+ export declare const NODE_KEY: {
418
+ /**
419
+ * 创建者.
420
+ */
421
+ CREATOR: string;
422
+ /**
423
+ * 销毁者.
424
+ */
425
+ DESTROYER: string;
426
+ /**
427
+ * 叠盘机.
428
+ */
429
+ DPJ: string;
430
+ /**
431
+ * 顶升移载机.
432
+ */
433
+ DSYZJ: string;
434
+ /**
435
+ * 线段.
436
+ */
437
+ EDGE: string;
438
+ /**
439
+ * 光电传感器.
440
+ */
441
+ GDCGQ: string;
442
+ /**
443
+ * 普通输送机.
444
+ */
445
+ PTSSJ: string;
446
+ /**
447
+ * 场景.
448
+ */
449
+ SCENE: string;
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
+ };
488
+ /**
489
+ * 拖拽数据.
490
+ */
491
+ export declare type IDragDataTransferData = {
492
+ /**
493
+ * 对象类型.
494
+ *
495
+ * @see NODE_KEY
496
+ */
497
+ type: string;
498
+ };
499
+ /**
500
+ * 节点数据.
501
+ */
502
+ export declare type INodeProperty = {
503
+ /**
504
+ * 对象.
505
+ */
506
+ data: Record<string, any>;
507
+ /**
508
+ * 对象主键.
509
+ */
510
+ id: string;
511
+ /**
512
+ * 对象类型.
513
+ *
514
+ * @see NODE_KEY
515
+ */
516
+ type: string;
517
+ };