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