@kengic/vue 0.30.1-beta.10 → 0.30.1-beta.101

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 (214) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/README.md +4 -3
  3. package/bin/bin.mjs +42 -0
  4. package/bin/postinstall.mjs +88 -0
  5. package/dist/check-box-outline-blank.d01a2055.mjs +8 -0
  6. package/dist/collapse-all-rounded.26ee73fc.mjs +8 -0
  7. package/dist/expand-all-rounded.e01e6cb9.mjs +8 -0
  8. package/dist/index.css +1 -1
  9. package/dist/kengic-vue.js +150652 -133605
  10. package/dist/more-outlined.8e1202ac.mjs +8 -0
  11. package/dist/palette-swatch-variant.f7258843.mjs +8 -0
  12. package/dist/partition-outlined.1bcf4f37.mjs +8 -0
  13. package/dist/pause-rounded.1ed7cc39.mjs +8 -0
  14. package/dist/play-arrow-rounded.90fc4173.mjs +8 -0
  15. package/dist/profile-outlined.1059fb0d.mjs +8 -0
  16. package/dist/src/api/WMS/models.d.ts +2 -0
  17. package/dist/src/component/KgAppSelect/KgAppSelect.d.ts +7 -8
  18. package/dist/src/component/KgAppSelect/KgAppSelect.store.d.ts +4 -4
  19. package/dist/src/component/KgButton/{components/KgButton.Copy.d.ts → KgButton.Copy.d.ts} +5 -5
  20. package/dist/src/component/KgButton/{components/KgButton.Create.d.ts → KgButton.Create.d.ts} +3 -3
  21. package/dist/src/component/KgButton/{components/KgButton.Delete.d.ts → KgButton.Delete.d.ts} +3 -3
  22. package/dist/src/component/KgButton/{components/KgButton.Export.d.ts → KgButton.Export.d.ts} +5 -5
  23. package/dist/src/component/KgButton/{components/KgButton.Import.d.ts → KgButton.Import.d.ts} +5 -5
  24. package/dist/src/component/KgButton/{components/KgButton.ImportTemplate.d.ts → KgButton.ImportTemplate.d.ts} +5 -5
  25. package/dist/src/component/KgButton/KgButton.Item.d.ts +2 -4
  26. package/dist/src/component/KgButton/{components/KgButton.Other.d.ts → KgButton.Other.d.ts} +5 -5
  27. package/dist/src/component/KgButton/{components/KgButton.Search.d.ts → KgButton.Search.d.ts} +3 -3
  28. package/dist/src/component/KgButton/{components/KgButton.Update.d.ts → KgButton.Update.d.ts} +5 -5
  29. package/dist/src/component/KgButton/KgButton.d.ts +1 -2
  30. package/dist/src/component/KgButton/KgButton.event.d.ts +36 -22
  31. package/dist/src/component/KgButton/KgButton.hooks.d.ts +16 -9
  32. package/dist/src/component/KgButton/{KgButton.Item.data.d.ts → KgButton.model.d.ts} +1 -1
  33. package/dist/src/component/KgButton/KgButton.store.d.ts +2 -2
  34. package/dist/src/component/KgButton/index.d.ts +2 -60
  35. package/dist/src/component/KgCanvas/{KgCanvas.Toolbar.OverviewScale.d.ts → KgCanvas.ToolbarButton.Fullscreen.d.ts} +2 -3
  36. package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Mode.d.ts +7 -0
  37. package/dist/src/component/KgCanvas/{KgCanvas.Toolbar.Fullscreen.d.ts → KgCanvas.ToolbarButton.OverviewScale.d.ts} +2 -3
  38. package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +1 -2
  39. package/dist/src/component/KgCanvas/KgCanvas.d.ts +59 -3
  40. package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +73 -36
  41. package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +43 -15
  42. package/dist/src/component/KgCanvas/KgCanvas.model.d.ts +26 -32
  43. package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +5 -31
  44. package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +5 -2
  45. package/dist/src/component/KgCanvas/index.d.ts +1 -1
  46. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.AreaSelect.d.ts +5 -0
  47. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.d.ts +5 -0
  48. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Legend.d.ts +5 -0
  49. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Offline.d.ts +5 -0
  50. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Setting.d.ts +5 -0
  51. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Log.d.ts +5 -0
  52. package/dist/src/{page/KgCircleVis/components/KgCircleVis.Tab.Rgv.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.d.ts} +5 -5
  53. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.d.ts +5 -0
  54. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.hooks.d.ts +29 -0
  55. package/dist/src/{page/KgCircleVis/components/KgCircleVis.model.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.model.d.ts} +1 -1
  56. package/dist/src/{page/KgCircleVis/components/KgCircleVis.store.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.store.d.ts} +41 -41
  57. package/dist/src/component/KgCircularShuttleMonitor/index.d.ts +3 -0
  58. package/dist/src/component/KgForm/KgForm.d.ts +4 -5
  59. package/dist/src/component/KgForm/KgForm.event.d.ts +31 -31
  60. package/dist/src/component/KgForm/KgForm.hooks.d.ts +12 -12
  61. package/dist/src/component/KgForm/KgForm.store.d.ts +6 -6
  62. package/dist/src/component/KgForm/index.d.ts +2 -602
  63. package/dist/src/component/KgForm.Item/{components/KgForm.Item.Checkbox.d.ts → KgForm.Item.Checkbox.d.ts} +39 -39
  64. package/dist/src/component/KgForm.Item/{components/KgForm.Item.CheckboxGroup.d.ts → KgForm.Item.CheckboxGroup.d.ts} +41 -41
  65. package/dist/src/component/KgForm.Item/{components/KgForm.Item.Date.d.ts → KgForm.Item.Date.d.ts} +39 -39
  66. package/dist/src/component/KgForm.Item/{components/KgForm.Item.DateRange.d.ts → KgForm.Item.DateRange.d.ts} +39 -39
  67. package/dist/src/component/KgForm.Item/{components/KgForm.Item.Image.d.ts → KgForm.Item.Image.d.ts} +42 -46
  68. package/dist/src/component/KgForm.Item/{components/KgForm.Item.Input.d.ts → KgForm.Item.Input.d.ts} +39 -39
  69. package/dist/src/component/KgForm.Item/{components/KgForm.Item.InputNumber.d.ts → KgForm.Item.InputNumber.d.ts} +39 -39
  70. package/dist/src/component/KgForm.Item/{components/KgForm.Item.InputPassword.d.ts → KgForm.Item.InputPassword.d.ts} +39 -39
  71. package/dist/src/component/KgForm.Item/{components/KgForm.Item.Link.d.ts → KgForm.Item.Link.d.ts} +39 -39
  72. package/dist/src/component/KgForm.Item/{components/KgForm.Item.RadioGroup.d.ts → KgForm.Item.RadioGroup.d.ts} +39 -39
  73. package/dist/src/component/KgForm.Item/{components/KgForm.Item.Select.d.ts → KgForm.Item.Select.d.ts} +40 -40
  74. package/dist/src/component/KgForm.Item/{components/KgForm.Item.Select.service.d.ts → KgForm.Item.Select.service.d.ts} +2 -2
  75. package/dist/src/component/KgForm.Item/{components/KgForm.Item.Switch.d.ts → KgForm.Item.Switch.d.ts} +39 -39
  76. package/dist/src/component/KgForm.Item/{components/KgForm.Item.TextArea.d.ts → KgForm.Item.TextArea.d.ts} +39 -39
  77. package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +37 -37
  78. package/dist/src/component/KgForm.Item/KgForm.Item.model.d.ts +32 -34
  79. package/dist/src/component/KgLayoutHeader/{components/KgLayoutHeaderLocale.d.ts → KgLayoutHeader.Locale.d.ts} +1 -1
  80. package/dist/src/component/KgLayoutHeader/index.d.ts +1 -1
  81. package/dist/src/component/KgModal/KgModal.d.ts +17 -17
  82. package/dist/src/component/KgModal/{hooks/useDragToResize.d.ts → KgModal.service.d.ts} +13 -2
  83. package/dist/src/component/KgModal02/KgModal02.d.ts +470 -0
  84. package/dist/src/component/KgModal02/KgModal02.model.d.ts +1 -0
  85. package/dist/src/component/KgModal02/index.d.ts +1 -0
  86. package/dist/src/component/KgResizable/KgResizable.d.ts +4 -4
  87. package/dist/src/component/KgSearch/KgSearch.event.d.ts +12 -12
  88. package/dist/src/component/KgSearch/KgSearch.hooks.d.ts +12 -8
  89. package/dist/src/component/KgSearch/KgSearch.service.d.ts +2 -2
  90. package/dist/src/component/KgSearch/KgSearch.store.d.ts +29 -28
  91. package/dist/src/component/KgSimulator/KgSimulator.Canvas.Title.d.ts +11 -0
  92. package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +11 -0
  93. package/dist/src/component/KgSimulator/KgSimulator.Canvas.service.d.ts +80 -0
  94. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.d.ts +36 -0
  95. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.d.ts +36 -0
  96. package/dist/src/component/KgSimulator/KgSimulator.Menu.d.ts +4 -0
  97. package/dist/src/component/KgSimulator/KgSimulator.Panel.Prefab.d.ts +4 -0
  98. package/dist/src/component/KgSimulator/KgSimulator.Panel.Property.d.ts +4 -0
  99. package/dist/src/component/KgSimulator/KgSimulator.Panel.Scene.d.ts +4 -0
  100. package/dist/src/component/KgSimulator/KgSimulator.Panel.d.ts +97 -0
  101. package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +108 -0
  102. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.d.ts +9 -0
  103. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Property.d.ts +9 -0
  104. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Scene.d.ts +9 -0
  105. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.d.ts +113 -0
  106. package/dist/src/component/KgSimulator/KgSimulator.d.ts +33 -0
  107. package/dist/src/component/KgSimulator/KgSimulator.event.d.ts +93 -0
  108. package/dist/src/component/KgSimulator/KgSimulator.hooks.d.ts +103 -0
  109. package/dist/src/component/KgSimulator/KgSimulator.icons.d.ts +10 -0
  110. package/dist/src/component/KgSimulator/KgSimulator.model.d.ts +1502 -0
  111. package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +474 -0
  112. package/dist/src/component/KgSimulator/KgSimulator.utils.d.ts +21 -0
  113. package/dist/src/component/KgSimulator/index.d.ts +3 -0
  114. package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +59 -52
  115. package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +61 -29
  116. package/dist/src/component/KgSubmit/KgSubmit.model.d.ts +1 -1
  117. package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +63 -17
  118. package/dist/src/component/KgTable/{components/KgTable.BodyCell.d.ts → KgTable.BodyCell.d.ts} +1 -1
  119. package/dist/src/component/KgTable/KgTable.Setting.VarGridMaster.SaveAs.d.ts +4 -0
  120. package/dist/src/component/KgTable/{components/setting/KgTable.Setting.d.ts → KgTable.Setting.d.ts} +5 -6
  121. package/dist/src/component/KgTable/{components/setting/KgTable.Setting.service.d.ts → KgTable.Setting.service.d.ts} +1 -1
  122. package/dist/src/component/KgTable/KgTable.event.d.ts +41 -31
  123. package/dist/src/component/KgTable/KgTable.hooks.d.ts +19 -15
  124. package/dist/src/component/KgTable/KgTable.model.d.ts +1 -1
  125. package/dist/src/component/KgTable/KgTable.store.d.ts +2 -2
  126. package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +32 -3
  127. package/dist/src/component/KgTable02/KgTable02.event.d.ts +57 -31
  128. package/dist/src/component/KgTable02/KgTable02.hooks.d.ts +31 -1
  129. package/dist/src/component/KgTable02/KgTable02.store.d.ts +2 -2
  130. package/dist/src/component/KgVar/{KgVarFactory.d.ts → KgVar.Factory.d.ts} +45 -0
  131. package/dist/src/component/KgVar/KgVar.d.ts +22 -16
  132. package/dist/src/component/KgVar/KgVar.event.d.ts +36 -18
  133. package/dist/src/component/KgVar/KgVar.hooks.d.ts +26 -13
  134. package/dist/src/component/KgVar/KgVar.model.d.ts +1 -6
  135. package/dist/src/component/KgVar/KgVar.store.d.ts +82 -80
  136. package/dist/src/component/KgVar/index.d.ts +1 -1
  137. package/dist/src/component/KgVarConfig/KgVarConfig.model.d.ts +0 -3
  138. package/dist/src/component/KgVarConfig/KgVarConfig.store.d.ts +2 -2
  139. package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +5 -5
  140. package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +4 -4
  141. package/dist/src/component/KgWarehouse/KgWarehouse.d.ts +4 -1
  142. package/dist/src/component/KgWarehouse/KgWarehouse.event.d.ts +14 -8
  143. package/dist/src/component/KgWarehouse/KgWarehouse.hooks.d.ts +22 -4
  144. package/dist/src/component/KgWarehouse/KgWarehouse.store.d.ts +8 -15
  145. package/dist/src/component/KgWorkStation/KgWorkStation.d.ts +44 -0
  146. package/dist/src/component/KgWorkStation/KgWorkStation.event.d.ts +27 -0
  147. package/dist/src/component/KgWorkStation/KgWorkStation.hooks.d.ts +28 -0
  148. package/dist/src/component/KgWorkStation/KgWorkStation.store.d.ts +37 -0
  149. package/dist/src/component/KgWorkStation/index.d.ts +3 -0
  150. package/dist/src/component/index.d.ts +7 -5
  151. package/dist/src/config/config.hooks.d.ts +2 -2
  152. package/dist/src/config/config.store.d.ts +14 -17
  153. package/dist/src/config/index.d.ts +30 -24
  154. package/dist/src/i18n/cs_CZ.d.ts +1 -300
  155. package/dist/src/i18n/en.d.ts +234 -297
  156. package/dist/src/i18n/es_ES.d.ts +1 -299
  157. package/dist/src/i18n/fr_FR.d.ts +1 -299
  158. package/dist/src/i18n/i18n.setup.d.ts +12 -14
  159. package/dist/src/i18n/index.d.ts +1 -2
  160. package/dist/src/i18n/km_KH.d.ts +1 -299
  161. package/dist/src/i18n/ko_KR.d.ts +1 -299
  162. package/dist/src/i18n/vi_VN.d.ts +1 -299
  163. package/dist/src/i18n/zh_CN.d.ts +235 -298
  164. package/dist/src/index.d.ts +1 -1
  165. package/dist/src/model/index.d.ts +1968 -0
  166. package/dist/src/page/{KgCircleVis/KgPageCircleVis.d.ts → KgPageCircularShuttleMonitor/KgPageCircularShuttleMonitor.d.ts} +1 -1
  167. package/dist/src/page/KgPageCircularShuttleMonitor/index.d.ts +1 -0
  168. package/dist/src/page/KgPageDda/KgPageDda.d.ts +1 -1
  169. package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +6 -6
  170. package/dist/src/page/index.d.ts +2 -2
  171. package/dist/src/project/src/hooks/index.d.ts +0 -1
  172. package/dist/src/project/src/locales/helper.d.ts +3 -4
  173. package/dist/src/project/src/locales/useLocale.d.ts +4 -3
  174. package/dist/src/project/src/router/types.d.ts +19 -0
  175. package/dist/src/project/src/store/modules/locale.d.ts +9 -9
  176. package/dist/src/project/src/utils/env.d.ts +3 -3
  177. package/dist/src/project/types/config.d.ts +6 -17
  178. package/dist/src/service/http-client.d.ts +7 -3
  179. package/dist/src/util/ant-design-vue.d.ts +1 -1
  180. package/dist/src/util/kg-auth.util.d.ts +7 -6
  181. package/dist/src/util/kg-route.util.d.ts +9 -9
  182. package/dist/src/util/kg.util.d.ts +46 -37
  183. package/dist/src/util/tsx.helper.d.ts +7 -7
  184. package/package.json +40 -32
  185. package/dist/src/component/KgForm/KgForm.model.d.ts +0 -9
  186. package/dist/src/component/KgModal/hooks/useDragToMove.d.ts +0 -12
  187. package/dist/src/component/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -5
  188. package/dist/src/const/const.model.d.ts +0 -1216
  189. package/dist/src/const/form-id.const.d.ts +0 -32
  190. package/dist/src/const/index.d.ts +0 -3
  191. package/dist/src/const/injection-keys.const.d.ts +0 -11
  192. package/dist/src/page/KgCircleVis/components/KgCircleVis.AreaSelect.d.ts +0 -5
  193. package/dist/src/page/KgCircleVis/components/KgCircleVis.Canvas.d.ts +0 -5
  194. package/dist/src/page/KgCircleVis/components/KgCircleVis.Legend.d.ts +0 -5
  195. package/dist/src/page/KgCircleVis/components/KgCircleVis.Offline.d.ts +0 -5
  196. package/dist/src/page/KgCircleVis/components/KgCircleVis.Setting.d.ts +0 -5
  197. package/dist/src/page/KgCircleVis/components/KgCircleVis.Tab.Log.d.ts +0 -5
  198. package/dist/src/page/KgCircleVis/components/KgCircleVis.d.ts +0 -5
  199. package/dist/src/page/KgCircleVis/components/KgCircleVis.hooks.d.ts +0 -29
  200. package/dist/src/page/KgCircleVis/index.d.ts +0 -1
  201. package/dist/src/project/src/hooks/web/useI18n.d.ts +0 -13
  202. /package/dist/{caret-right-outlined-Btgsw6a_.0434903b.mjs → caret-right-outlined-Btgsw6a_.7ce8e8fe.mjs} +0 -0
  203. /package/dist/{close-outlined-DMcSQWxQ.5c3bee6f.mjs → close-outlined-DMcSQWxQ.ce961fd1.mjs} +0 -0
  204. /package/dist/{exclamation-circle-outlined-DZrXCnvM.d94561db.mjs → exclamation-circle-outlined-DZrXCnvM.07559897.mjs} +0 -0
  205. /package/dist/{fullscreen-exit-outlined-X1iYkFc4.a1640595.mjs → fullscreen-exit-outlined-X1iYkFc4.d7884311.mjs} +0 -0
  206. /package/dist/{fullscreen-outlined-DDBrsRcy.b9f9d4a1.mjs → fullscreen-outlined-DDBrsRcy.d174b06a.mjs} +0 -0
  207. /package/dist/{search-outlined-Od1M_oxf.71fb0c01.mjs → search-outlined-Od1M_oxf.4a68e7e4.mjs} +0 -0
  208. /package/dist/src/{page/KgCircleVis/components/KgCircleVis.Canvas.service.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.service.d.ts} +0 -0
  209. /package/dist/src/component/KgForm.Item/{addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts → KgForm.Item.Addon.DynamicQueryOperator.d.ts} +0 -0
  210. /package/dist/src/component/KgForm.Item/{addon/KgForm.Item.Addon.Lookup.Modal.d.ts → KgForm.Item.Addon.Lookup.Modal.d.ts} +0 -0
  211. /package/dist/src/component/KgForm.Item/{addon/KgForm.Item.Addon.Lookup.d.ts → KgForm.Item.Addon.Lookup.d.ts} +0 -0
  212. /package/dist/src/component/KgTable/{components/KgTable.HeadCell.d.ts → KgTable.HeadCell.d.ts} +0 -0
  213. /package/dist/src/component/KgTable/{components/KgTable.Info.d.ts → KgTable.Info.d.ts} +0 -0
  214. /package/dist/{three-dots-loading-bIlrTJYR.f189f620.mjs → three-dots-loading-bIlrTJYR.ebceb73e.mjs} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { IRemoveEventListener } from '@kengic/core.core';
2
2
  import { ComputedRef } from 'vue';
3
3
  import { VarButton, VarButtonConfig, VarChildDetail, VarConfigControl, VarConfigDescription, VarConfigPossibility, VarDda, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileMasterDTO, VarVariable } from '../../api/WMS/models';
4
- import { IKgVarButtonConfigProperties, IKgVarDdaProperties, IKgVarGridConfigProperties, IKgVarProfileConfigProperties, KG__VAR_BUTTON__TYPE } from '../../const';
4
+ import { IKgVarButtonConfigProperties, IKgVarDdaProperties, IKgVarGridConfigProperties, IKgVarProfileConfigProperties, KG__VAR_BUTTON__TYPE } from '../../model';
5
5
  import { IUseKgButton } from '../KgButton';
6
6
  import { IUseKgForm } from '../KgForm';
7
7
  import { type IUseKgSearch } from '../KgSearch';
@@ -9,7 +9,7 @@ import { IUseKgSubmit } from '../KgSubmit';
9
9
  import { IUseKgTable } from '../KgTable';
10
10
  import { IUseKgTable02 } from '../KgTable02';
11
11
  import { IUseKgVarConfig } from '../KgVarConfig';
12
- import { eventListeners, IKgVarOnRequestEventListener, IKgVarOnSetupEventListener, IKgVarOnUnmountedEventListener } from './KgVar.event';
12
+ import { eventListeners, IKgVar$EventListener$onAfterRequest, IKgVar$EventListener$onBeforeRequest, IKgVar$EventListener$onSetup, IKgVar$EventListener$onUnmounted } from './KgVar.event';
13
13
  import { IKgProps, IKgSlots } from './KgVar.model';
14
14
  import { useKgVarStore } from './KgVar.store';
15
15
  export declare type IUseKgVar = {
@@ -49,27 +49,29 @@ export declare type IUseKgVar = {
49
49
  /**
50
50
  * 界面标识.
51
51
  */
52
+ fid: string;
53
+ /** @deprecated 已废弃, 请使用 {@link IUseKgVar.fid} */
52
54
  formID: string;
53
55
  /**
54
56
  * <p>获取「变量配置:表单控件」, 根据所传参数进行过滤.</p>
55
57
  *
56
58
  * <ul>
57
59
  * <li>
58
- * <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 过滤.</p>
60
+ * <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 过滤.</p>
59
61
  * </li>
60
62
  * <li>
61
- * <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} !== <code>undefined</code>, 则先根据参数 {@link param.buttonType} 获取按钮, 然后根据 {@link VarButton.var_nam} 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
63
+ * <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType !== <code>undefined</code>, 则先根据参数 param.buttonType 获取按钮, 然后根据 VarButton.var_nam 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
62
64
  * </li>
63
65
  * <li>
64
- * <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} === <code>undefined</code>, 则先获取「当前按钮」, 然后根据「当前按钮」的 {@link VarButton.var_nam} 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
66
+ * <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType === <code>undefined</code>, 则先获取「当前按钮」, 然后根据「当前按钮」的 VarButton.var_nam 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
65
67
  * </li>
66
68
  * <li>
67
69
  * <p>参数 {@link param.varName} 必传, 将根据 {@link param.varName} 和 {@link VarConfigControl.var_nam} 是否匹配进行过滤.</p>
68
70
  * </li>
69
71
  * </ul>
70
72
  *
71
- * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
72
- * @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
73
+ * @param param.buttonType <p>按钮的类型, 对应的是 VarButton.typ 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
74
+ * @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
73
75
  * @param param.varName 提交表单字段的变量名, 对应的是 {@link VarConfigControl.var_nam} 属性.
74
76
  */
75
77
  getVarConfigControl(param: {
@@ -95,6 +97,8 @@ export declare type IUseKgVar = {
95
97
  getVarGridDetail(param: {
96
98
  varName: string | null | undefined;
97
99
  }): VarGridDetail | null;
100
+ /** @deprecated 已废弃, 请使用 {@link IUseKgVar.fid} */
101
+ id: string;
98
102
  /**
99
103
  * 是否正在复制.
100
104
  */
@@ -148,25 +152,34 @@ export declare type IUseKgVar = {
148
152
  * @param listener 事件监听函数.
149
153
  * @param isOnce 是否只会触发一次. 默认为 undefined.
150
154
  */
151
- onRetrieve(listener: IKgVarOnRequestEventListener, isOnce?: boolean): IRemoveEventListener;
155
+ onAfterRequest(listener: IKgVar$EventListener$onAfterRequest, isOnce?: boolean): IRemoveEventListener;
156
+ /**
157
+ * 监听事件: 变量配置数据查询之前.
158
+ *
159
+ * @param listener 事件监听函数.
160
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
161
+ */
162
+ onBeforeRequest(listener: IKgVar$EventListener$onBeforeRequest, isOnce?: boolean): IRemoveEventListener;
163
+ /** @deprecated 已废弃, 请使用 {@link kgTable.onAfterRequest()} */
164
+ onRetrieve(listener: IKgVar$EventListener$onAfterRequest, isOnce?: boolean): IRemoveEventListener;
152
165
  /**
153
166
  * 监听事件: 页面创建.
154
167
  *
155
168
  * @param listener 事件监听函数.
156
169
  * @param isOnce 是否只会触发一次. 默认为 undefined.
157
170
  */
158
- onSetup(listener: IKgVarOnSetupEventListener, isOnce?: boolean): IRemoveEventListener;
171
+ onSetup(listener: IKgVar$EventListener$onSetup, isOnce?: boolean): IRemoveEventListener;
159
172
  /**
160
173
  * 监听事件: 页面卸载.
161
174
  *
162
175
  * @param listener 事件监听函数.
163
176
  * @param isOnce 是否只会触发一次. 默认为 undefined.
164
177
  */
165
- onUnmounted(listener: IKgVarOnUnmountedEventListener, isOnce?: boolean): IRemoveEventListener;
178
+ onUnmounted(listener: IKgVar$EventListener$onUnmounted, isOnce?: boolean): IRemoveEventListener;
166
179
  /**
167
180
  * 父亲界面.
168
181
  */
169
- parent: ComputedRef<IUseKgVar | null>;
182
+ parentKgVar$$: ComputedRef<IUseKgVar | null>;
170
183
  /**
171
184
  * 修改「按钮」的部分属性.
172
185
  *
@@ -287,8 +300,8 @@ export declare type IUseKgVar = {
287
300
  * <li>下级界面: '宿主界面'下的所有界面, 都是它的'下级界面',</li>
288
301
  * </ol>
289
302
  *
290
- * @param formID 界面标识.
303
+ * @param fid 界面标识.
291
304
  * @param isInit 是否要初始化界面. 在'宿主界面'第一次调用时, 需要传 true, 对该页面做初始化. 默认为 undefined.
292
305
  * @param level 界面层级. 比如普通界面的层级为 0, 弹窗的界面的层级为 1, 弹窗中的弹窗的界面层级为 2, 以此类推. 默认为 0.
293
306
  */
294
- export declare function useKgVar(formID?: string | null, isInit?: boolean, level?: number): IUseKgVar;
307
+ export declare function useKgVar(fid?: string | null, isInit?: boolean, level?: number): IUseKgVar;
@@ -1,4 +1,3 @@
1
- import { ComputedRef, InjectionKey } from 'vue';
2
1
  import { IKgButtonProps } from '../KgButton';
3
2
  import { IKgFormItemSlotControlParameter, IKgFormItemSlotControlRightParameter } from '../KgForm.Item/KgForm.Item.model';
4
3
  import { IKgSearchProps } from '../KgSearch';
@@ -58,11 +57,9 @@ export declare type IKgSlots = {
58
57
  * 孩子页面.
59
58
  */
60
59
  children?: {
61
- [childFormID: string]: () => any;
60
+ [childFid: string]: () => any;
62
61
  };
63
62
  };
64
- /** 注入 kgSlots 参数. */
65
- export declare const KG__DI__KG_VAR__KG_SLOTS: InjectionKey<IKgSlots | undefined>;
66
63
  export declare type IKgProps = {
67
64
  KgButton?: IKgButtonProps;
68
65
  KgSearch?: IKgSearchProps;
@@ -71,5 +68,3 @@ export declare type IKgProps = {
71
68
  KgTable02?: KgTable02Props;
72
69
  KgVar?: KgVarProps;
73
70
  };
74
- /** 注入 kgProps 参数. */
75
- export declare const KG__DI__KG_VAR__KG_PROPS: InjectionKey<ComputedRef<IKgProps | undefined>>;
@@ -1,5 +1,5 @@
1
1
  import { VarButton, VarButtonConfig, VarChildDetail, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarDda, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail, VarVariable } from '../../api/WMS/models';
2
- import { KG__VAR_BUTTON__TYPE, KgStoreDefinition } from '../../const';
2
+ import { KG__VAR_BUTTON__TYPE, IKgStoreDefinition } from '../../model';
3
3
  import { IUseKgVar } from './KgVar.hooks';
4
4
  import { IKgProps, IKgSlots } from './KgVar.model';
5
5
  export declare function transformVarProfileConfig(varProfileConfig: VarProfileConfig | null | undefined): VarProfileConfig | null;
@@ -32,74 +32,76 @@ export declare function transformVarProfileDetails(varProfileDetails?: Array<Var
32
32
  */
33
33
  export declare function createDefaultVarSubmitDetailsForVarProfileDetails(varGridMasters: Array<VarProfileMasterDTO>, varSubmitDetails: Array<VarSubmitDetail>, varButtons: Array<VarButton>): void;
34
34
  export interface UseKgVarStoreGetters {
35
- /** 获取当前'表格视图'的 ID. */
36
- getCurrentVarGridMasterID: (formID: string | null | undefined) => string | null;
35
+ /**
36
+ * 获取当前「表格视图」的主键.
37
+ */
38
+ getCurrentVarGridMasterID: (fid: string | null | undefined) => string | null;
37
39
  /**
38
40
  * 获取当前的「查询条件」.
39
41
  */
40
- getCurrentVarProfileMaster: (formID: string | null | undefined) => VarProfileMasterDTO | null;
42
+ getCurrentVarProfileMaster: (fid: string | null | undefined) => VarProfileMasterDTO | null;
41
43
  /** 获取当前 VarProfileMaster 的 ID. */
42
- getCurrentVarProfileMasterID: (formID: string | null | undefined) => string | null;
44
+ getCurrentVarProfileMasterID: (fid: string | null | undefined) => string | null;
43
45
  getIsRequestedMap: Record<string, boolean>;
44
46
  /**
45
47
  * 获取界面层级.
46
48
  */
47
- getLevel: (formID: string | null | undefined) => number;
48
- getParent: (formID: string | null | undefined) => IUseKgVar | null;
49
- getProps: (formID: string | null | undefined) => IKgProps | null;
50
- getSlots: (formID: string | null | undefined) => IKgSlots | null;
49
+ getLevel: (fid: string | null | undefined) => number;
50
+ getParentKgVar: (fid: string | null | undefined) => IUseKgVar | null;
51
+ getProps: (fid: string | null | undefined) => IKgProps | null;
52
+ getSlots: (fid: string | null | undefined) => IKgSlots | null;
51
53
  /**
52
54
  * 和 varName 获取 VarButton.
53
55
  */
54
- getVarButton: (formID: string | null | undefined, varName: string | null | undefined) => VarButton | null;
55
- getVarButtonConfig: (formID: string | null | undefined) => VarButtonConfig | null;
56
+ getVarButton: (fid: string | null | undefined, varName: string | null | undefined) => VarButton | null;
57
+ getVarButtonConfig: (fid: string | null | undefined) => VarButtonConfig | null;
56
58
  getVarButtonConfigMap: Record<string, VarButtonConfig | null>;
57
- getVarButtonCopy: (formID: string | null | undefined) => VarButton | null;
58
- getVarButtonCreate: (formID: string | null | undefined) => VarButton | null;
59
- getVarButtonDelete: (formID: string | null | undefined) => VarButton | null;
59
+ getVarButtonCopy: (fid: string | null | undefined) => VarButton | null;
60
+ getVarButtonCreate: (fid: string | null | undefined) => VarButton | null;
61
+ getVarButtonDelete: (fid: string | null | undefined) => VarButton | null;
60
62
  getVarButtonMap: Record<string, Array<VarButton>>;
61
- getVarButtonUpdate: (formID: string | null | undefined) => VarButton | null;
62
- getVarButtonSearch: (formID: string | null | undefined) => VarButton | null;
63
- getVarButtons: (formID: string | null | undefined) => Array<VarButton>;
64
- getVarChildDetails: (formID: string | null | undefined) => Array<VarChildDetail>;
65
- getVarConfigControl: (formID: string | null | undefined, param: {
63
+ getVarButtonSearch: (fid: string | null | undefined) => VarButton | null;
64
+ getVarButtonUpdate: (fid: string | null | undefined) => VarButton | null;
65
+ getVarButtons: (fid: string | null | undefined) => Array<VarButton>;
66
+ getVarChildDetails: (fid: string | null | undefined) => Array<VarChildDetail>;
67
+ getVarConfigControl: (fid: string | null | undefined, param: {
66
68
  buttonType?: KG__VAR_BUTTON__TYPE;
67
69
  buttonVarName?: string | null;
68
70
  varName: string | null | undefined;
69
71
  }) => VarConfigControl | null;
70
- getVarConfigInput: (formID: string | null | undefined, varName: string | null | undefined) => VarConfigInput | null;
71
- getVarConfigLookup: (formID: string | null | undefined, varName: string | null | undefined) => VarConfigLookup | null;
72
- getVarConfigPossibility: (formID: string | null | undefined, param: {
72
+ getVarConfigInput: (fid: string | null | undefined, varName: string | null | undefined) => VarConfigInput | null;
73
+ getVarConfigLookup: (fid: string | null | undefined, varName: string | null | undefined) => VarConfigLookup | null;
74
+ getVarConfigPossibility: (fid: string | null | undefined, param: {
73
75
  varName: string | null | undefined;
74
76
  }) => VarConfigPossibility | null;
75
- getVarConfigTip: (formID: string | null | undefined, varName: string | null | undefined) => VarConfigTip | null;
76
- getVarDda: (formID: string | null | undefined) => VarDda | null;
77
+ getVarConfigTip: (fid: string | null | undefined, varName: string | null | undefined) => VarConfigTip | null;
78
+ getVarDda: (fid: string | null | undefined) => VarDda | null;
77
79
  /**
78
80
  * 获取'表格配置'.
79
81
  */
80
- getVarGridConfig: (formID: string | null | undefined) => VarGridConfig | null;
82
+ getVarGridConfig: (fid: string | null | undefined) => VarGridConfig | null;
81
83
  /** 获取所有的 VarGridConfig. */
82
84
  getVarGridConfigMap: Record<string, VarGridConfig | null>;
83
- getVarGridDetail: (formID: string | null | undefined, param: {
85
+ getVarGridDetail: (fid: string | null | undefined, param: {
84
86
  varName: string | null | undefined;
85
87
  }) => VarGridDetail | null;
86
88
  /**
87
89
  * 获取当前的「表格视图明细」列表.
88
90
  */
89
- getVarGridDetailList: (formID: string | null | undefined) => Array<VarGridDetail> | null;
91
+ getVarGridDetailList: (fid: string | null | undefined) => Array<VarGridDetail> | null;
90
92
  /**
91
93
  * 获取当前的「表格视图」.
92
94
  */
93
- getVarGridMaster: (formID: string | null | undefined) => VarGridMasterDTO | null;
95
+ getVarGridMaster: (fid: string | null | undefined) => VarGridMasterDTO | null;
94
96
  /**
95
97
  * 获取 VarGridMaster 列表.
96
98
  */
97
- getVarGridMasters: (formID: string | null | undefined) => Array<VarGridMasterDTO> | null;
98
- getVarProfileConfig: (formID: string | null | undefined) => VarProfileConfig | null;
99
+ getVarGridMasters: (fid: string | null | undefined) => Array<VarGridMasterDTO> | null;
100
+ getVarProfileConfig: (fid: string | null | undefined) => VarProfileConfig | null;
99
101
  /**
100
102
  * 和 varName 获取当前 VarProfileMaster 下的某个 VarProfileDetail.
101
103
  */
102
- getVarProfileDetail: (formID: string | null | undefined, varName: string | null | undefined) => VarProfileDetail | null;
104
+ getVarProfileDetail: (fid: string | null | undefined, varName: string | null | undefined) => VarProfileDetail | null;
103
105
  getVarProfileMasterMap: Record<string, {
104
106
  varProfileMasters: Array<VarProfileMasterDTO> | null;
105
107
  /** 当前选中的 VarProfileMaster ID. */
@@ -108,29 +110,29 @@ export interface UseKgVarStoreGetters {
108
110
  /**
109
111
  * 获取 VarProfileMasterDTO 列表.
110
112
  */
111
- getVarProfileMasters: (formID: string | null | undefined) => Array<VarProfileMasterDTO> | null;
113
+ getVarProfileMasters: (fid: string | null | undefined) => Array<VarProfileMasterDTO> | null;
112
114
  getVarSubmitConfigMap: Record<string, Array<VarSubmitConfig>>;
113
115
  getVarSubmitDetailMap: Record<string, Array<VarSubmitDetail>>;
114
- getVarVariables: (formID: string | null | undefined) => Array<VarVariable>;
116
+ getVarVariables: (fid: string | null | undefined) => Array<VarVariable>;
115
117
  /**
116
118
  * 获取当前视图下可显示的 VarGridDetail 列表.
117
119
  */
118
- getVisibleVarGridDetailList: (formID: string | null | undefined) => Array<VarGridDetail> | null;
120
+ getVisibleVarGridDetailList: (fid: string | null | undefined) => Array<VarGridDetail> | null;
119
121
  /**
120
122
  * 获取当前视图下可显示的 VarGridDetail 的宽度之和.
121
123
  */
122
- getVisibleVarGridDetailListTotalWidth: (formID: string | null | undefined) => number | null;
123
- isCopyingRequesting: (formID: string | null | undefined) => boolean | null;
124
- isCreatingRequesting: (formID: string | null | undefined) => boolean | null;
125
- isDeletingRequesting: (formID: string | null | undefined) => boolean | null;
126
- isOtherRequesting: (formID: string | null | undefined) => boolean | null;
124
+ getVisibleVarGridDetailListTotalWidth: (fid: string | null | undefined) => number | null;
125
+ isCopyingRequesting: (fid: string | null | undefined) => boolean | null;
126
+ isCreatingRequesting: (fid: string | null | undefined) => boolean | null;
127
+ isDeletingRequesting: (fid: string | null | undefined) => boolean | null;
128
+ isOtherRequesting: (fid: string | null | undefined) => boolean | null;
127
129
  /** 变量配置是否查询完成. */
128
- isRequested: (formID: string | null | undefined) => boolean;
129
- isRetrieving: (formID: string | null | undefined) => boolean | null;
130
- isRetrievingVarGridMaster: (formID: string | null | undefined) => boolean | null;
131
- isRetrievingVarProfileMaster: (formID: string | null | undefined) => boolean | null;
132
- isUpdatingRequesting: (formID: string | null | undefined) => boolean | null;
133
- t: (formID: string | null | undefined, varName: string | null | undefined) => string;
130
+ isRequested: (fid: string | null | undefined) => boolean;
131
+ isRetrieving: (fid: string | null | undefined) => boolean | null;
132
+ isRetrievingVarGridMaster: (fid: string | null | undefined) => boolean | null;
133
+ isRetrievingVarProfileMaster: (fid: string | null | undefined) => boolean | null;
134
+ isUpdatingRequesting: (fid: string | null | undefined) => boolean | null;
135
+ t: (fid: string | null | undefined, varName: string | null | undefined) => string;
134
136
  }
135
137
  export interface IUseKgVarStoreActions {
136
138
  createVarConfigControl(varConfigControl: VarConfigControl): void;
@@ -140,19 +142,19 @@ export interface IUseKgVarStoreActions {
140
142
  * <p>离开一个界面, 即销毁一个界面.</p>
141
143
  * <p>删除它的变量配置数据.</p>
142
144
  *
143
- * @param formID 界面标识.
145
+ * @param fid 界面标识.
144
146
  */
145
- dispose(formID: string): void;
147
+ dispose(fid: string): void;
146
148
  /**
147
149
  * 拖拽排序 VarGridDetail 列表.
148
- * @param formID 界面标识.
150
+ * @param fid 界面标识.
149
151
  * @param fromVarName 被拽起的变量名称
150
152
  * @param toVarName 被放下的变量名称.
151
153
  */
152
- dragSortCurrentVarGridDetails(formID: string | null | undefined, fromVarName: string | null | undefined, toVarName: string | null | undefined): void;
154
+ dragSortCurrentVarGridDetails(fid: string | null | undefined, fromVarName: string | null | undefined, toVarName: string | null | undefined): void;
153
155
  /**
154
156
  * 进入一个界面. 同一个界面不允许进入多次.
155
- * @param param.formID 界面标识.
157
+ * @param param.fid 界面标识.
156
158
  * @param param.level 界面层级.
157
159
  */
158
160
  init(param: {
@@ -162,106 +164,106 @@ export interface IUseKgVarStoreActions {
162
164
  /**
163
165
  * 修改 VarButton 的部分属性.
164
166
  *
165
- * @param formID 界面标识.
167
+ * @param fid 界面标识.
166
168
  * @param param
167
169
  * @param param.varName 变量名称.
168
170
  * @param param.properties 要修改的部分属性.
169
171
  */
170
- patchVarButton(formID: string | null | undefined, param: {
172
+ patchVarButton(fid: string | null | undefined, param: {
171
173
  properties: VarButton;
172
174
  varName: string | null | undefined;
173
175
  }): Promise<void>;
174
176
  /**
175
177
  * 修改「表格配置」的部分属性.
176
178
  *
177
- * @param formID 界面标识.
179
+ * @param fid 界面标识.
178
180
  * @param param
179
181
  * @param param.properties 要修改的部分属性.
180
182
  */
181
- patchVarGridConfig(formID: string | null | undefined, param: {
183
+ patchVarGridConfig(fid: string | null | undefined, param: {
182
184
  properties: VarGridConfig;
183
185
  }): Promise<void>;
184
186
  /**
185
187
  * 修改当前的「表格视图明细」的部分属性.
186
188
  *
187
- * @param formID 界面标识.
189
+ * @param fid 界面标识.
188
190
  * @param param
189
191
  * @param param.varName 变量名称.
190
192
  * @param param.properties 要修改的部分属性.
191
193
  */
192
- patchVarGridDetail(formID: string | null | undefined, param: {
194
+ patchVarGridDetail(fid: string | null | undefined, param: {
193
195
  properties: VarGridDetail;
194
196
  varName: string | null | undefined;
195
197
  }): Promise<void>;
196
198
  /**
197
199
  * 修改当前的「表格视图」的部分属性.
198
200
  *
199
- * @param formID 界面标识.
201
+ * @param fid 界面标识.
200
202
  * @param param
201
203
  * @param param.properties 要修改的部分属性.
202
204
  */
203
- patchVarGridMaster(formID: string | null | undefined, param: {
205
+ patchVarGridMaster(fid: string | null | undefined, param: {
204
206
  properties: VarGridMasterDTO;
205
207
  }): Promise<void>;
206
208
  /**
207
209
  * 修改 VarConfigPossibility 的接口参数 cmd_prm 的部分属性.
208
- * @param formID 界面标识.
210
+ * @param fid 界面标识.
209
211
  * @param varName 变量名称
210
212
  * @param properties 要修改的部分属性.
211
213
  */
212
- patchVarPossibilityCommandParameter(formID: string | null | undefined, varName: string | null | undefined, properties: Record<string, any>): Promise<void>;
214
+ patchVarPossibilityCommandParameter(fid: string | null | undefined, varName: string | null | undefined, properties: Record<string, any>): Promise<void>;
213
215
  /**
214
216
  * 修改 VarProfileDetail 的部分属性.
215
217
  *
216
- * @param formID 界面标识.
218
+ * @param fid 界面标识.
217
219
  * @param varName 变量名称.
218
220
  * @param properties 要修改的部分属性.
219
221
  */
220
- patchVarProfileDetail(formID: string, varName: string | null | undefined, properties: VarProfileDetail): Promise<void>;
222
+ patchVarProfileDetail(fid: string, varName: string | null | undefined, properties: VarProfileDetail): Promise<void>;
221
223
  /**
222
224
  * 查询所有变量配置.
223
225
  *
224
- * @param formID 界面标识.
226
+ * @param fid 界面标识.
225
227
  * @param param 参数.
226
228
  * @param param.isForceRequest 是否强制查询. 默认为 false, 即如果该界面的变量配置已经查询过了, 则不再查询; 否则, 重新查询所有变量配置.
227
229
  */
228
- requestAll(formID: string | null | undefined, param?: {
230
+ requestAll(fid: string | null | undefined, param?: {
229
231
  isForceRequest?: boolean;
230
232
  }): Promise<void>;
231
233
  /**
232
234
  * 设置当前「表格视图」的 ID.
233
235
  *
234
- * @param formID 界面标识.
236
+ * @param fid 界面标识.
235
237
  * @param currentVarGridMasterID 当前选择的表格视图的 ID.
236
238
  */
237
- setCurrentVarGridMasterID(formID?: string | null, currentVarGridMasterID?: string | null): Promise<void>;
239
+ setCurrentVarGridMasterID(fid?: string | null, currentVarGridMasterID?: string | null): Promise<void>;
238
240
  /**
239
241
  * 设置当前选择的查询条件的 ID.
240
- * @param formID 界面标识.
242
+ * @param fid 界面标识.
241
243
  * @param currentVarProfileMasterID 当前选择的查询条件的 ID.
242
244
  */
243
- setCurrentVarProfileMasterID(formID?: string | null, currentVarProfileMasterID?: string | null): Promise<void>;
244
- setIsCopyingRequesting(formID: string, value: boolean): void;
245
- setIsCreatingRequesting(formID: string, value: boolean): void;
246
- setIsDeletingRequesting(formID: string, value: boolean): void;
247
- setIsOtherRequesting(formID: string, value: boolean): void;
248
- setIsUpdatingRequesting(formID: string, value: boolean): void;
249
- setProps(formID: string, value: IKgProps): void;
250
- setSlots(formID: string, value: IKgSlots): void;
245
+ setCurrentVarProfileMasterID(fid?: string | null, currentVarProfileMasterID?: string | null): Promise<void>;
246
+ setIsCopyingRequesting(fid: string, value: boolean): void;
247
+ setIsCreatingRequesting(fid: string, value: boolean): void;
248
+ setIsDeletingRequesting(fid: string, value: boolean): void;
249
+ setIsOtherRequesting(fid: string, value: boolean): void;
250
+ setIsUpdatingRequesting(fid: string, value: boolean): void;
251
+ setProps(fid: string, value: IKgProps): void;
252
+ setSlots(fid: string, value: IKgSlots): void;
251
253
  /**
252
254
  * 设置某个「变量配置:列表数据」.
253
255
  *
254
- * @param formID 界面标识.
256
+ * @param fid 界面标识.
255
257
  * @param varName 变量名称
256
258
  * @param varConfigPossibility 配置.
257
259
  */
258
- setVarPossibility(formID: string | null | undefined, varName: string | null | undefined, varConfigPossibility: VarConfigPossibility): void;
260
+ setVarPossibility(fid: string | null | undefined, varName: string | null | undefined, varConfigPossibility: VarConfigPossibility): void;
259
261
  /**
260
262
  * 设置查询字段是否启用.
261
- * @param formID 界面标识.
263
+ * @param fid 界面标识.
262
264
  * @param varName 变量名称.
263
265
  * @param enable 是否启用.
264
266
  */
265
- setVarProfileDetailEnable(formID: string, varName: string | null | undefined, enable: number): void;
267
+ setVarProfileDetailEnable(fid: string, varName: string | null | undefined, enable: number): void;
266
268
  }
267
- export declare const useKgVarStore: KgStoreDefinition<UseKgVarStoreGetters, IUseKgVarStoreActions>;
269
+ export declare const useKgVarStore: IKgStoreDefinition<UseKgVarStoreGetters, IUseKgVarStoreActions>;
@@ -1,5 +1,5 @@
1
1
  export { default as KgVar, type IKgVarProps, type KgVarProps } from './KgVar';
2
- export * from './KgVarFactory';
2
+ export * from './KgVar.Factory';
3
3
  export * from './KgVar.hooks';
4
4
  export * from './KgVar.store';
5
5
  export * from './KgVar.model';
@@ -1,6 +1,3 @@
1
- import { InjectionKey, Ref } from 'vue';
2
- /** 正在被配置的界面标识. */
3
- export declare const KG__DI__KG_VAR_CONFIG__HOST_FORM_ID: InjectionKey<Ref<string | null>>;
4
1
  /**
5
2
  * 界面标识: 变量配置弹窗:变量配置:变量列表.
6
3
  */
@@ -1,4 +1,4 @@
1
- import { KgStoreDefinition } from '../../const';
1
+ import { IKgStoreDefinition } from '../../model';
2
2
  export interface IUseKgVarConfigStoreGetters {
3
3
  }
4
4
  export interface IUseKgVarConfigStoreActions {
@@ -13,4 +13,4 @@ export interface IUseKgVarConfigStoreActions {
13
13
  kgContext?: string;
14
14
  }): void;
15
15
  }
16
- export declare const useKgVarConfigStore: KgStoreDefinition<IUseKgVarConfigStoreGetters, IUseKgVarConfigStoreActions>;
16
+ export declare const useKgVarConfigStore: IKgStoreDefinition<IUseKgVarConfigStoreGetters, IUseKgVarConfigStoreActions>;
@@ -4,14 +4,14 @@ import { VarProfileDetail } from '../../../../api/WMS/models';
4
4
  /**
5
5
  * 字段表格的列:左侧.
6
6
  *
7
- * @param hostFormID 宿主界面标识.
7
+ * @param hostFid 宿主界面标识.
8
8
  */
9
- export declare function leftVarProfileDetailColumns(hostFormID: string): ColumnsType<any>;
9
+ export declare function leftVarProfileDetailColumns(hostFid: string): ColumnsType<any>;
10
10
  /**
11
11
  * 字段表格的列:右侧.
12
12
  *
13
- * @param hostFormID 宿主界面标识.
13
+ * @param hostFid 宿主界面标识.
14
14
  */
15
- export declare function rightVarProfileDetailColumns(hostFormID: string): ColumnsType<any>;
15
+ export declare function rightVarProfileDetailColumns(hostFid: string): ColumnsType<any>;
16
16
  export declare type IUseDragRow = {};
17
- export declare function _useDragToSortRow(hostFormID: string | null | undefined, varProfileDetails: Ref<UnwrapRef<Array<VarProfileDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarProfileDetail>>>): IUseDragRow;
17
+ export declare function _useDragToSortRow(hostFid: string | null | undefined, varProfileDetails: Ref<UnwrapRef<Array<VarProfileDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarProfileDetail>>>): IUseDragRow;
@@ -9,15 +9,15 @@ export declare type IUseTransferColumns = {
9
9
  };
10
10
  /**
11
11
  *
12
- * @param hostFormID 宿主页面标识.
12
+ * @param hostFid 宿主页面标识.
13
13
  * @param varGridDetails
14
14
  */
15
- export declare function _useTransferColumns(hostFormID: string | null | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseTransferColumns;
15
+ export declare function _useTransferColumns(hostFid: string | null | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseTransferColumns;
16
16
  export declare type IUseDragRow = {};
17
17
  /**
18
18
  *
19
- * @param hostFormID 宿主页面标识.
19
+ * @param hostFid 宿主页面标识.
20
20
  * @param varGridDetails
21
21
  * @param transferRightRows
22
22
  */
23
- export declare function _useDragToSortRow(hostFormID: string | null | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseDragRow;
23
+ export declare function _useDragToSortRow(hostFid: string | null | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseDragRow;
@@ -12,6 +12,7 @@ export declare const getProps: () => {
12
12
  * @default undefined
13
13
  */
14
14
  kgInvisible: PropType<boolean>;
15
+ /** @deprecated 已弃用, 请使用 {@link IUseKgWarehouse.onOk} */
15
16
  onKgOk: PropType<() => void>;
16
17
  };
17
18
  export declare type IKgWarehouseProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
@@ -27,8 +28,9 @@ declare const _default: import("vue").DefineComponent<{
27
28
  * @default undefined
28
29
  */
29
30
  kgInvisible: PropType<boolean>;
31
+ /** @deprecated 已弃用, 请使用 {@link IUseKgWarehouse.onOk} */
30
32
  onKgOk: PropType<() => void>;
31
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgOk"[], "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
33
+ }, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgOk"[], "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
32
34
  /**
33
35
  * <p>是否隐藏.</p>
34
36
  * <p>此组件需要在不同的地方使用,</p>
@@ -40,6 +42,7 @@ declare const _default: import("vue").DefineComponent<{
40
42
  * @default undefined
41
43
  */
42
44
  kgInvisible: PropType<boolean>;
45
+ /** @deprecated 已弃用, 请使用 {@link IUseKgWarehouse.onOk} */
43
46
  onKgOk: PropType<() => void>;
44
47
  }>> & {
45
48
  onKgOk?: ((...args: any[]) => any) | undefined;
@@ -2,13 +2,19 @@ import { IKgEventListener } from '@kengic/core.core';
2
2
  /**
3
3
  * 事件类型.
4
4
  */
5
- export declare type IKgWarehouseEvent = 'onMounted';
6
- export declare type IKgAppSelectOnGotoAppEventListenerParameter = {};
7
- export declare type IKgWarehouseOnMountedEventListener = ((param: IKgAppSelectOnGotoAppEventListenerParameter) => void) & IKgEventListener;
8
- export declare type IKgAppSelectEventListenerParameter = IKgAppSelectOnGotoAppEventListenerParameter;
9
- export declare type IKgWarehouseEventListener = IKgWarehouseOnMountedEventListener;
5
+ export declare type IKgWarehouse$Event = 'onMounted' | 'onOk' | 'onCancel';
6
+ export declare type IKgWarehouse$EventListenerParameter$onMounted = {};
7
+ export declare type IKgWarehouse$EventListener$onMounted = ((param: IKgWarehouse$EventListenerParameter$onMounted) => void) & IKgEventListener;
8
+ export declare type IKgWarehouse$EventListenerParameter$onOk = {};
9
+ export declare type IKgWarehouse$EventListener$onOk = ((param: IKgWarehouse$EventListenerParameter$onOk) => void) & IKgEventListener;
10
+ export declare type IKgWarehouse$EventListenerParameter$onCancel = {};
11
+ export declare type IKgWarehouse$EventListener$onCancel = ((param: IKgWarehouse$EventListenerParameter$onCancel) => void) & IKgEventListener;
12
+ export declare type IKgWarehouse$EventListenerParameter = IKgWarehouse$EventListenerParameter$onMounted | IKgWarehouse$EventListenerParameter$onOk | IKgWarehouse$EventListenerParameter$onCancel;
13
+ export declare type IKgWarehouse$EventListener = IKgWarehouse$EventListener$onMounted | IKgWarehouse$EventListener$onOk | IKgWarehouse$EventListener$onCancel;
10
14
  export declare const eventListeners: Record<string, {
11
- onMounted: Array<IKgWarehouseOnMountedEventListener>;
15
+ onCancel: Array<IKgWarehouse$EventListener$onCancel>;
16
+ onMounted: Array<IKgWarehouse$EventListener$onMounted>;
17
+ onOk: Array<IKgWarehouse$EventListener$onOk>;
12
18
  }>;
13
19
  /**
14
20
  * 触发事件.
@@ -17,8 +23,8 @@ export declare const eventListeners: Record<string, {
17
23
  * @param param.id 唯一标识.
18
24
  * @param param.parameter 事件参数.
19
25
  */
20
- export declare function emit<P extends IKgAppSelectEventListenerParameter>(param: {
21
- event: IKgWarehouseEvent;
26
+ export declare function emit<P extends IKgWarehouse$EventListenerParameter>(param: {
27
+ event: IKgWarehouse$Event;
22
28
  id?: string | undefined;
23
29
  parameter: P;
24
30
  }): Promise<boolean>;
@@ -1,16 +1,31 @@
1
1
  import { IRemoveEventListener } from '@kengic/core.core';
2
2
  import { ComputedRef } from 'vue';
3
3
  import { WarehouseDTO } from '../../api/WMS/models';
4
- import { IKgWarehouseOnMountedEventListener } from './KgWarehouse.event';
5
- import { useKgWarehouseStore } from './KgWarehouse.store';
4
+ import { IKgWarehouse$EventListener$onCancel, IKgWarehouse$EventListener$onMounted, IKgWarehouse$EventListener$onOk } from './KgWarehouse.event';
5
+ import { buildKgWarehouseStore } from './KgWarehouse.store';
6
6
  export declare type IUseKgWarehouse = {
7
+ /**
8
+ * 监听事件: 点击取消按钮.
9
+ *
10
+ * @param listener 事件监听函数.
11
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
12
+ */
13
+ onCancel(listener: IKgWarehouse$EventListener$onCancel, isOnce?: boolean): IRemoveEventListener;
7
14
  /**
8
15
  * 监听事件: 组件加载完成.
16
+ *
17
+ * @param listener 事件监听函数.
18
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
19
+ */
20
+ onMounted(listener: IKgWarehouse$EventListener$onMounted, isOnce?: boolean): IRemoveEventListener;
21
+ /**
22
+ * 监听事件: 点击确定按钮.
23
+ *
9
24
  * @param listener 事件监听函数.
10
25
  * @param isOnce 是否只会触发一次. 默认为 undefined.
11
26
  */
12
- onMounted(listener: IKgWarehouseOnMountedEventListener, isOnce?: boolean): IRemoveEventListener;
13
- store: ReturnType<typeof useKgWarehouseStore>;
27
+ onOk(listener: IKgWarehouse$EventListener$onOk, isOnce?: boolean): IRemoveEventListener;
28
+ store: ReturnType<ReturnType<typeof buildKgWarehouseStore>>;
14
29
  /**
15
30
  * 是否显示弹窗.
16
31
  */
@@ -20,4 +35,7 @@ export declare type IUseKgWarehouse = {
20
35
  */
21
36
  warehouse: ComputedRef<WarehouseDTO | null>;
22
37
  };
38
+ /**
39
+ *
40
+ */
23
41
  export declare function useKgWarehouse(): IUseKgWarehouse;