@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,34 +1,27 @@
1
1
  import { WarehouseDTO } from '../../api/WMS/models';
2
- import { KgStoreDefinition } from '../../const';
3
- export interface IUseKgWarehouseStoreState {
2
+ import { IKgStoreDefinition } from '../../model';
3
+ export interface IUseKgWarehouseStoreGetters {
4
4
  /**
5
5
  * 是否显示弹窗.
6
6
  */
7
- visible: boolean;
7
+ getVisible: boolean;
8
8
  /**
9
9
  * 当前仓库.
10
10
  */
11
- warehouse: WarehouseDTO | null;
12
- }
13
- export interface IUseKgWarehouseStoreGetters {
14
- /**
15
- * 是否显示弹窗.
16
- */
17
- getVisible: boolean;
18
11
  getWarehouse: WarehouseDTO | null;
19
12
  }
20
13
  export interface IUseKgWarehouseStoreActions {
21
14
  /**
22
15
  * 设置是否显示弹窗.
23
16
  *
24
- * @param visible 是否显示.
17
+ * @param value 是否显示.
25
18
  */
26
- setVisible(visible: boolean): void;
19
+ setVisible(value: boolean): void;
27
20
  /**
28
21
  * 设置当前仓库.
29
22
  *
30
- * @param warehouse 当前仓库.
23
+ * @param value 当前仓库.
31
24
  */
32
- setWarehouse(warehouse?: WarehouseDTO | null): void;
25
+ setWarehouse(value?: WarehouseDTO | null): void;
33
26
  }
34
- export declare const useKgWarehouseStore: KgStoreDefinition<IUseKgWarehouseStoreGetters, IUseKgWarehouseStoreActions>;
27
+ export declare function buildKgWarehouseStore(id: string | null | undefined): IKgStoreDefinition<IUseKgWarehouseStoreGetters, IUseKgWarehouseStoreActions>;
@@ -0,0 +1,44 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgWorkStation.css';
3
+ export declare const getProps: () => {
4
+ /**
5
+ * <p>是否隐藏.</p>
6
+ * <p>此组件需要在不同的地方使用,</p>
7
+ * <ul>
8
+ * <li>在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
9
+ * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
10
+ * </ul>
11
+ *
12
+ * @default undefined
13
+ */
14
+ kgInvisible: PropType<boolean>;
15
+ };
16
+ export declare type IKgWorkStationProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
17
+ /**
18
+ * 工作站选择.
19
+ */
20
+ export declare const KgWorkStation: import("vue").DefineComponent<{
21
+ /**
22
+ * <p>是否隐藏.</p>
23
+ * <p>此组件需要在不同的地方使用,</p>
24
+ * <ul>
25
+ * <li>在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
26
+ * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
27
+ * </ul>
28
+ *
29
+ * @default undefined
30
+ */
31
+ kgInvisible: PropType<boolean>;
32
+ }, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
33
+ /**
34
+ * <p>是否隐藏.</p>
35
+ * <p>此组件需要在不同的地方使用,</p>
36
+ * <ul>
37
+ * <li>在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
38
+ * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
39
+ * </ul>
40
+ *
41
+ * @default undefined
42
+ */
43
+ kgInvisible: PropType<boolean>;
44
+ }>>, {}>;
@@ -0,0 +1,27 @@
1
+ import { IKgEventListener } from '@kengic/core.core';
2
+ /**
3
+ * 事件类型.
4
+ */
5
+ export declare type IKgWorkStation$Event = 'onOk' | 'onCancel';
6
+ export declare type IKgWorkStation$EventListenerParameter$onOk = {};
7
+ export declare type IKgWorkStation$EventListener$onOk = ((param: IKgWorkStation$EventListenerParameter$onOk) => void) & IKgEventListener;
8
+ export declare type IKgWorkStation$EventListenerParameter$onCancel = {};
9
+ export declare type IKgWorkStation$EventListener$onCancel = ((param: IKgWorkStation$EventListenerParameter$onCancel) => void) & IKgEventListener;
10
+ export declare type IKgWorkStation$EventListenerParameter = IKgWorkStation$EventListenerParameter$onOk | IKgWorkStation$EventListenerParameter$onCancel;
11
+ export declare type IKgWorkStation$EventListener = IKgWorkStation$EventListener$onOk | IKgWorkStation$EventListener$onCancel;
12
+ export declare const eventListeners: Record<string, {
13
+ onCancel: Array<IKgWorkStation$EventListener$onCancel>;
14
+ onOk: Array<IKgWorkStation$EventListener$onOk>;
15
+ }>;
16
+ /**
17
+ * 触发事件.
18
+ *
19
+ * @param param.event 事件名称.
20
+ * @param param.id 唯一标识.
21
+ * @param param.parameter 事件参数.
22
+ */
23
+ export declare function emit<P extends IKgWorkStation$EventListenerParameter>(param: {
24
+ event: IKgWorkStation$Event;
25
+ id?: string | undefined;
26
+ parameter: P;
27
+ }): Promise<boolean>;
@@ -0,0 +1,28 @@
1
+ import { IRemoveEventListener } from '@kengic/core.core';
2
+ import { IKgWorkStation$EventListener$onCancel, IKgWorkStation$EventListener$onOk } from './KgWorkStation.event';
3
+ import { buildKgWorkStationStore } from './KgWorkStation.store';
4
+ export declare type IUseKgWorkStation = {
5
+ /**
6
+ * 标识.
7
+ */
8
+ id: string;
9
+ /**
10
+ * 监听事件: 点击取消按钮.
11
+ *
12
+ * @param listener 事件监听函数.
13
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
14
+ */
15
+ onCancel(listener: IKgWorkStation$EventListener$onCancel, isOnce?: boolean): IRemoveEventListener;
16
+ /**
17
+ * 监听事件: 点击确定按钮.
18
+ *
19
+ * @param listener 事件监听函数.
20
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
21
+ */
22
+ onOk(listener: IKgWorkStation$EventListener$onOk, isOnce?: boolean): IRemoveEventListener;
23
+ store: ReturnType<ReturnType<typeof buildKgWorkStationStore>>;
24
+ } & ReturnType<ReturnType<typeof buildKgWorkStationStore>>;
25
+ /**
26
+ *
27
+ */
28
+ export declare function useKgWorkStation(): IUseKgWorkStation;
@@ -0,0 +1,37 @@
1
+ import { WorkstationAreaDTO, WorkstationDTO } from '../../api/WMS/models';
2
+ import { IKgStoreDefinition } from '../../model';
3
+ export interface IUseKgWorkStationStoreGetters {
4
+ /**
5
+ * 当前工作站.
6
+ */
7
+ currentWorkStation: WorkstationDTO | null;
8
+ /**
9
+ * 当前工作区.
10
+ */
11
+ currentWorkStationArea: WorkstationAreaDTO | null;
12
+ /**
13
+ * 是否显示弹窗.
14
+ */
15
+ isVisible: boolean;
16
+ }
17
+ export interface IUseKgWorkStationStoreActions {
18
+ /**
19
+ * 设置当前工作站.
20
+ *
21
+ * @param value 当前工作站.
22
+ */
23
+ setCurrentWorkStation(value?: WorkstationDTO | null): void;
24
+ /**
25
+ * 设置当前工作区.
26
+ *
27
+ * @param value 当前工作区.
28
+ */
29
+ setCurrentWorkStationArea(value?: WorkstationAreaDTO | null): void;
30
+ /**
31
+ * 设置是否显示弹窗.
32
+ *
33
+ * @param value 是否显示.
34
+ */
35
+ setIsVisible(value?: boolean | null): void;
36
+ }
37
+ export declare function buildKgWorkStationStore(id: string | null | undefined): IKgStoreDefinition<IUseKgWorkStationStoreGetters, IUseKgWorkStationStoreActions>;
@@ -0,0 +1,3 @@
1
+ export * from './KgWorkStation';
2
+ export * from './KgWorkStation.hooks';
3
+ export * from './KgWorkStation.store';
@@ -1,20 +1,22 @@
1
1
  export * from './KgAppSelect';
2
+ export * from './KgButton';
2
3
  export * from './KgCanvas';
4
+ export * from './KgCircularShuttleMonitor';
5
+ export * from './KgForm';
6
+ export * from './KgForm.Item';
3
7
  export * from './KgImage';
4
8
  export * from './KgLayoutHeader';
5
9
  export * from './KgModal';
10
+ export * from './KgModal02';
6
11
  export * from './KgProgressA';
7
12
  export * from './KgResizable';
8
13
  export * from './KgSearch';
14
+ export * from './KgSimulator';
9
15
  export * from './KgSubmit';
10
16
  export * from './KgTable';
11
17
  export * from './KgVar';
12
18
  export * from './KgVarConfig';
13
19
  export * from './KgWarehouse';
20
+ export * from './KgWorkStation';
14
21
  export * from './KgYesOrNo';
15
- export * from './KgButton';
16
- export { default as KgButton } from './KgButton';
17
- export * from './KgForm';
18
- export { default as KgForm } from './KgForm';
19
- export * from './KgForm.Item';
20
22
  export { Q } from '@thymine/xunee';
@@ -1,10 +1,10 @@
1
+ import { IKgLocale } from '@kengic/core.core';
1
2
  import { ComputedRef } from 'vue';
2
- import { LocaleType } from '../project/types/config';
3
3
  import { useKgStore } from './config.store';
4
4
  export declare type IUseKg = {
5
5
  /**
6
6
  * 当前语言.
7
7
  */
8
- locale: ComputedRef<LocaleType>;
8
+ locale: ComputedRef<IKgLocale>;
9
9
  } & ReturnType<typeof useKgStore>;
10
10
  export declare function useKg(): IUseKg;
@@ -1,10 +1,14 @@
1
1
  import { StoreDefinition } from 'pinia';
2
2
  import { Router } from 'vue-router';
3
3
  import { DescriptionDTO, SysUserWarehouseDTO } from '../api/WMS/models';
4
- import { KG_APP, KgStoreDefinition } from '../const';
4
+ import { IKgStoreDefinition, KG_APP } from '../model';
5
5
  import { Menu } from '../project/src/router/types';
6
6
  import { UserInfo } from '../project/types/store';
7
7
  export declare type IKgOption = {
8
+ /**
9
+ * 工作站选择--是否启用功能, 默认为 true.
10
+ */
11
+ $KgWorkStation$isOn?: boolean;
8
12
  /**
9
13
  * 多标签页.
10
14
  */
@@ -46,12 +50,9 @@ export declare type IKgOption = {
46
50
  on?: boolean;
47
51
  };
48
52
  };
49
- /** 工作站选择. */
53
+ /** @deprecated 已弃用, 请使用 {@link IKgOption.$KgWorkStation$isOn}. */
50
54
  KgStation?: {
51
- /**
52
- * 是否启用功能.
53
- * @default true
54
- */
55
+ /** @deprecated 已弃用, 请使用 {@link IKgOption.$KgWorkStation$isOn}. */
55
56
  isOn?: boolean;
56
57
  };
57
58
  KgTable?: {
@@ -153,8 +154,8 @@ export declare type IKgOption = {
153
154
  /**
154
155
  * 数据库的类型.
155
156
  *
156
- * @see {@link KG_CONST.DB_TYPE}
157
- * @default {@link KG_CONST.DB_TYPE.SQLSERVER}
157
+ * @see {@link KG.DB_TYPE}
158
+ * @default {@link KG.DB_TYPE.SQLSERVER}
158
159
  */
159
160
  dbType?: string;
160
161
  /**
@@ -269,22 +270,18 @@ export interface IUseKgStoreActions {
269
270
  isForceRequest?: boolean | null | undefined;
270
271
  }): Promise<void>;
271
272
  /**
272
- * 请求某组变量描述数据.
273
- *
274
- * @param param.formId 界面标识.
273
+ * 请求翻译数据.
275
274
  */
276
- requestVarConfigDescriptionList(param: {
277
- formId: string | null | undefined;
278
- }): Promise<void>;
275
+ requestVarConfigDescriptionList(): Promise<void>;
279
276
  /**
280
277
  * 设置某组描述的数据.
281
278
  *
282
279
  * @param param.codeName 描述组名.
283
- * @param param.descriptions 描述数据.
280
+ * @param param.descriptions 描述数据列表.
284
281
  */
285
282
  setDescriptionList(param: {
286
283
  codeName: string | null | undefined;
287
- descriptions: Array<DescriptionDTO>;
284
+ descriptionList: Array<DescriptionDTO>;
288
285
  }): void;
289
286
  setI18N(I18N?: Record<string, any>): void;
290
287
  setI18n(i18n: any): void;
@@ -303,5 +300,5 @@ export interface IUseKgStoreActions {
303
300
  */
304
301
  t(key: string | null | undefined, param?: Record<string, any> | null | undefined, defaultValue?: string | null | undefined): string;
305
302
  }
306
- export declare const useKgStore: KgStoreDefinition<IUseKgStoreGetters, IUseKgStoreActions>;
303
+ export declare const useKgStore: IKgStoreDefinition<IUseKgStoreGetters, IUseKgStoreActions>;
307
304
  export {};
@@ -1,16 +1,11 @@
1
+ import { IKgLocale } from '@kengic/core.core';
1
2
  import { StoreDefinition } from 'pinia';
2
3
  import { App } from 'vue';
3
4
  import { Router } from 'vue-router';
4
- import { LocaleType } from '../project/types/config';
5
5
  import { IKgOption, P } from './config.store';
6
6
  import '@kengic/core.react/index.css';
7
- export * from './config.hooks';
8
- export * from './config.store';
9
- /**
10
- * 由于许多数据是由项目维护的, 组件库需要用到这些数据, 则必须让项目调用下面的这些配置方法, 将这些数据设置进来.
11
- */
12
- export declare const pinia: import("pinia").Pinia;
13
- export declare type IKgOptions = {
7
+ declare const pinia: import("pinia").Pinia;
8
+ declare type IKgSetupParameter = {
14
9
  app: App;
15
10
  i18n: any;
16
11
  /** 配置参数. */
@@ -23,35 +18,46 @@ export declare type IKgOptions = {
23
18
  /** 状态数据: 用户. */
24
19
  useUserStore: StoreDefinition<any, any, any, any>;
25
20
  };
21
+ /** @deprecated 已废弃, 请使用 {@link IKgSetupParameter} */
22
+ declare type IKgOptions = IKgSetupParameter;
26
23
  /**
27
24
  * 初始.
28
25
  *
29
- * @param options 选项参数.
26
+ * @param param 选项参数.
30
27
  */
31
- export declare function setup(options: IKgOptions): Promise<void>;
32
- export declare type KgConfig = {
28
+ declare function setup(param: IKgSetupParameter): Promise<void>;
29
+ declare type IKgConfigParameter = {
30
+ /**
31
+ * 可选择的语言列表. 默认为所有语言.
32
+ */
33
+ $i18n$AvailableLocaleList?: Array<IKgLocale>;
34
+ /**
35
+ * 默认语言. 默认为简体中文(zh_CN).
36
+ */
37
+ $i18n$DefaultLocale?: IKgLocale;
33
38
  app: App<Element>;
34
39
  axios: any;
35
- i18n: {
40
+ i18n?: {
36
41
  /**
37
42
  * 语言数据.
38
43
  */
39
44
  I18N?: Record<string, any>;
40
- /**
41
- * <p>可选择的语言. 默认可选所有语言.</p>
42
- */
43
- availableLocales?: Array<LocaleType>;
44
- /**
45
- * 默认语言.
46
- *
47
- * @default 'zh_CN'.
48
- */
49
- defaultLocale?: LocaleType;
45
+ /** @deprecated 已弃用, 请使用 {@link IKgConfigParameter.$i18n$AvailableLocaleList} */
46
+ availableLocales?: Array<IKgLocale>;
47
+ /** @deprecated 已弃用, 请使用 {@link IKgConfigParameter.$i18n$DefaultLocale} */
48
+ defaultLocale?: IKgLocale;
50
49
  };
50
+ /**
51
+ * 是否请求翻译数据. 默认为 true.
52
+ */
53
+ isRequestDescriptionList?: boolean;
51
54
  };
52
55
  /**
53
56
  * 配置.
54
57
  *
55
- * @param config 配置.
58
+ * @param param 配置.
56
59
  */
57
- export declare function kgConfig(config: KgConfig): Promise<void>;
60
+ declare function kgConfig(param: IKgConfigParameter): Promise<void>;
61
+ export * from './config.hooks';
62
+ export * from './config.store';
63
+ export { pinia, type IKgSetupParameter, type IKgOptions, type IKgConfigParameter, kgConfig, setup };
@@ -1,301 +1,2 @@
1
- declare const _default: {
2
- kg: {
3
- KgAppSelect: {
4
- businessManager: string;
5
- dataManager: string;
6
- sys: string;
7
- tooltip: string;
8
- };
9
- KgButton: {
10
- noApiUrl: string;
11
- noVarSubmitConfig: string;
12
- };
13
- KgCanvas: {
14
- enterFullscreen: string;
15
- exitFullscreen: string;
16
- exportImage: string;
17
- originalScale: string;
18
- overviewScale: string;
19
- reload: string;
20
- };
21
- KgFormItem: {
22
- formValidationMessageForGT: string;
23
- formValidationMessageForGTE: string;
24
- formValidationMessageForInvalidFloat: string;
25
- formValidationMessageForInvalidInteger: string;
26
- formValidationMessageForInvalidJSON: string;
27
- formValidationMessageForInvalidLetter: string;
28
- formValidationMessageForInvalidLowerLetter: string;
29
- formValidationMessageForInvalidUpperLetter: string;
30
- formValidationMessageForLT: string;
31
- formValidationMessageForLTE: string;
32
- formValidationMessageForMaxLength: string;
33
- formValidationMessageForMinLength: string;
34
- formValidationMessageForRegularExpression: string;
35
- };
36
- KgPageDdaCreate: {
37
- 'confirm-cancel': string;
38
- done: string;
39
- 'next-step': string;
40
- 'previous-step': string;
41
- };
42
- KgPageDdaCreateBasic: {
43
- 'form-id': string;
44
- 'form-name': string;
45
- maintenance: string;
46
- sql: string;
47
- type: string;
48
- };
49
- KgPageDdaCreateButton: {
50
- 'button-var-name-reserved': string;
51
- 'button-var-name-used': string;
52
- };
53
- KgPageDdaCreateMenu: {
54
- 'parent-menu': string;
55
- };
56
- KgPageDdaCreateSearch: {
57
- available: string;
58
- 'column-desc': string;
59
- 'column-name': string;
60
- 'column-type': string;
61
- selected: string;
62
- };
63
- KgPageDdaCreateSubmit: {
64
- available: string;
65
- 'column-desc': string;
66
- 'column-name': string;
67
- 'column-type': string;
68
- selected: string;
69
- };
70
- KgPageDdaCreateTable: {
71
- available: string;
72
- 'column-desc': string;
73
- 'column-name': string;
74
- 'column-type': string;
75
- selected: string;
76
- };
77
- KgSearch: {
78
- title: string;
79
- };
80
- KgSearchConfigModal: {
81
- BETWEEN: string;
82
- 'BETWEEN-desc': string;
83
- CONTAIN: string;
84
- 'CONTAIN-desc': string;
85
- END_WITH: string;
86
- 'END_WITH-desc': string;
87
- EQ: string;
88
- 'EQ-desc': string;
89
- GT: string;
90
- 'GT-desc': string;
91
- GTE: string;
92
- 'GTE-desc': string;
93
- IN: string;
94
- 'IN-desc': string;
95
- LT: string;
96
- 'LT-desc': string;
97
- LTE: string;
98
- 'LTE-desc': string;
99
- NE: string;
100
- 'NE-desc': string;
101
- EMPTY: string;
102
- 'EMPTY-desc': string;
103
- NOT_EMPTY: string;
104
- 'NOT_EMPTY-desc': string;
105
- START_WITH: string;
106
- 'START_WITH-desc': string;
107
- close: string;
108
- formTitle: string;
109
- pleaseSelectVarProfileMaster: string;
110
- };
111
- KgSqlClient: {
112
- ResultTab: {
113
- resultStatusLabel: string;
114
- ellapseLabel: string;
115
- rowsTotalLabel: string;
116
- messageLabel: string;
117
- tabTitlePrefix: string;
118
- rowsAffected: string;
119
- };
120
- Toolbar: {
121
- Top: {
122
- deleteCurrentTemplate: string;
123
- saveAsTemplate: string;
124
- saveCurrentTemplate: string;
125
- viewHistory: string;
126
- viewTemplate: string;
127
- };
128
- };
129
- };
130
- KgTable: {
131
- apiNotSupportDynamicQuery: string;
132
- column: string;
133
- config: string;
134
- emptyText: string;
135
- isShowDescription: string;
136
- other: string;
137
- 'request-fail-error': string;
138
- 'request-fail-no-data': string;
139
- rowHeight: string;
140
- rowHeightH: string;
141
- rowHeightL: string;
142
- rowHeightM: string;
143
- 'save-var-grid-master-as-success-message': string;
144
- saveVarGridMaster: string;
145
- saveVarGridMasterAs: string;
146
- saveVarGridMasterSuccessMessage: string;
147
- totalText: string;
148
- varGridMasters: string;
149
- };
150
- KgTableHeadCell: {
151
- align: string;
152
- alignCenter: string;
153
- alignLeft: string;
154
- alignRight: string;
155
- hide: string;
156
- isEllipsis: string;
157
- isFilter: string;
158
- isFixToLeft: string;
159
- isFixToRight: string;
160
- isSort: string;
161
- };
162
- KgTableInfo: {
163
- check: string;
164
- clearCheck: string;
165
- clearTable: string;
166
- locate: string;
167
- row: string;
168
- };
169
- KgTableSettingVarGridConfig: {};
170
- KgTableSettingVarGridMasterSaveAs: {
171
- title: string;
172
- };
173
- KgVar: {};
174
- KgVarConfig: {
175
- VarGridConfig: string;
176
- VarGridMaster: string;
177
- VarProfileConfig: string;
178
- VarProfileMaster: string;
179
- action: string;
180
- allForm: string;
181
- allLanguage: string;
182
- canNotUpdateSystemVarGridMaster: string;
183
- canNotUpdateSystemVarProfileMaster: string;
184
- confirm: string;
185
- createConfig: string;
186
- currentForm: string;
187
- currentLanguage: string;
188
- customLevel: string;
189
- emptyPageSizeOptions: string;
190
- formId: string;
191
- formValidationMessageForMaxAndMin: string;
192
- formValidationMessageForMaxLengthAndMinLength: string;
193
- invalidCommandParameter: string;
194
- invalidPageSizeOption: string;
195
- invalidPageSizeOptions: string;
196
- pleaseSelectVariable: string;
197
- tabButton: string;
198
- tabChild: string;
199
- tabSearch: string;
200
- tabSubmit: string;
201
- tabTable: string;
202
- varVariable: string;
203
- variable: string;
204
- };
205
- KgVarConfigModalButton: {
206
- VarButton: string;
207
- VarButtonConfig: string;
208
- };
209
- KgVarConfigModalChild: {
210
- childVarName: string;
211
- childVarNameDuplicate: string;
212
- childVarNameRequired: string;
213
- parentVarName: string;
214
- parentVarNameDuplicate: string;
215
- parentVarNameRequired: string;
216
- };
217
- KgVarConfigModalSubmit: {
218
- VarSubmitConfig: string;
219
- VarSubmitDetail: string;
220
- };
221
- KgVarConfigModalSubmitVarSubmitConfig: {
222
- invalidWidthForSpan: string;
223
- };
224
- KgVarConfigModalTableVarGridMaster: {
225
- DESC: string;
226
- DESC__UPDATE_LINK: string;
227
- FILE_SIZE: string;
228
- ICON: string;
229
- IMAGE: string;
230
- PROGRESS: string;
231
- ROUTE_LINK: string;
232
- UPDATE_LINK: string;
233
- YN: string;
234
- center: string;
235
- left: string;
236
- notSort: string;
237
- right: string;
238
- };
239
- KgVarConfigSelectFormIdModal: {
240
- title: string;
241
- };
242
- KgWarehouse: {
243
- reloadMessage: string;
244
- selectWarehouse: string;
245
- title: string;
246
- warehouse: string;
247
- };
248
- action: string;
249
- add: string;
250
- allUser: string;
251
- asc: string;
252
- button: string;
253
- cancel: string;
254
- close: string;
255
- confirm: string;
256
- confirmDelete: string;
257
- copy: string;
258
- copySuccess: string;
259
- create: string;
260
- createSuccess: string;
261
- default: string;
262
- delete: string;
263
- deleteSuccess: string;
264
- desc: string;
265
- edit: string;
266
- empty: string;
267
- emptyText: string;
268
- execute: string;
269
- executeSuccess: string;
270
- export: string;
271
- exportSuccess: string;
272
- fail: string;
273
- formId: string;
274
- formName: string;
275
- formValidationFail: string;
276
- import: string;
277
- 'import-template': string;
278
- importSuccess: string;
279
- importTemplate: string;
280
- loading: string;
281
- lookup: string;
282
- millisecond: string;
283
- no: string;
284
- ok: string;
285
- query: string;
286
- refresh: string;
287
- required: string;
288
- reset: string;
289
- save: string;
290
- search: string;
291
- selectAll: string;
292
- show: string;
293
- succeed: string;
294
- success: string;
295
- tip: string;
296
- update: string;
297
- updateSuccess: string;
298
- yes: string;
299
- };
300
- };
1
+ declare const _default: {};
301
2
  export default _default;