@kengic/vue 0.26.6-beta.7 → 0.26.6-beta.70

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/close-outlined-DMcSQWxQ.eef6a697.mjs +8 -0
  3. package/dist/fullscreen-exit-outlined-X1iYkFc4.b82209a4.mjs +8 -0
  4. package/dist/fullscreen-exit-outlined.a75b82c2.mjs +8 -0
  5. package/dist/fullscreen-outlined-DDBrsRcy.94ce9412.mjs +8 -0
  6. package/dist/fullscreen-outlined.c9ba7960.mjs +8 -0
  7. package/dist/index.css +1 -1
  8. package/dist/kengic-vue.js +51546 -39108
  9. package/dist/src/api/WMS/Controllers/DescriptionController/List.d.ts +51 -0
  10. package/dist/src/api/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
  11. package/dist/src/api/WMS/Controllers/DescriptionController/index.d.ts +2 -0
  12. package/dist/src/api/WMS/Controllers/SysPermissionController/List.d.ts +73 -0
  13. package/dist/src/api/WMS/Controllers/SysPermissionController/index.d.ts +1 -0
  14. package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +16 -0
  15. package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/index.d.ts +1 -0
  16. package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
  17. package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
  18. package/dist/src/api/WMS/Controllers/VarController/GetAll.d.ts +16 -0
  19. package/dist/src/api/WMS/Controllers/VarController/index.d.ts +1 -0
  20. package/dist/src/api/WMS/Controllers/VarDdaController/Create.d.ts +16 -0
  21. package/dist/src/api/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +16 -0
  22. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +16 -0
  23. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +16 -0
  24. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +16 -0
  25. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +16 -0
  26. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +16 -0
  27. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +16 -0
  28. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +16 -0
  29. package/dist/src/api/WMS/Controllers/VarDdaController/index.d.ts +9 -0
  30. package/dist/src/api/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +19 -0
  31. package/dist/src/api/WMS/Controllers/VarGridMasterController/Update.d.ts +16 -0
  32. package/dist/src/api/WMS/Controllers/VarGridMasterController/index.d.ts +2 -0
  33. package/dist/src/api/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +19 -0
  34. package/dist/src/api/WMS/Controllers/VarProfileMasterController/index.d.ts +1 -0
  35. package/dist/src/api/WMS/Controllers/VarVariableController/Delete.d.ts +16 -0
  36. package/dist/src/api/WMS/Controllers/VarVariableController/index.d.ts +1 -0
  37. package/dist/src/api/WMS/Controllers/WhController/ListVO.d.ts +54 -0
  38. package/dist/src/api/WMS/Controllers/WhController/index.d.ts +1 -0
  39. package/dist/src/api/WMS/Controllers/WorkstationController/List.d.ts +25 -0
  40. package/dist/src/api/WMS/Controllers/WorkstationController/index.d.ts +1 -0
  41. package/dist/src/api/WMS/Controllers/index.d.ts +11 -0
  42. package/dist/src/api/WMS/index.d.ts +2 -0
  43. package/dist/src/api/WMS/models.d.ts +1018 -0
  44. package/dist/src/api/api.d.ts +1 -0
  45. package/dist/src/api/def.d.ts +1 -0
  46. package/dist/src/api/index.d.ts +2 -0
  47. package/dist/src/component/KgAppSelect/KgAppSelect.d.ts +47 -0
  48. package/dist/src/component/KgAppSelect/index.d.ts +3 -0
  49. package/dist/src/component/KgAppSelect/index.hooks.d.ts +41 -0
  50. package/dist/src/component/KgAppSelect/index.store.d.ts +74 -0
  51. package/dist/src/component/KgButton/KgButton.Item.d.ts +41 -0
  52. package/dist/src/component/KgButton/KgButton.Item.data.d.ts +31 -0
  53. package/dist/src/component/KgButton/KgButton.d.ts +40 -0
  54. package/dist/src/component/KgButton/components/KgButton.Copy.d.ts +40 -0
  55. package/dist/src/component/KgButton/components/KgButton.Create.d.ts +40 -0
  56. package/dist/src/component/KgButton/components/KgButton.Delete.d.ts +40 -0
  57. package/dist/src/component/KgButton/components/KgButton.Export.d.ts +40 -0
  58. package/dist/src/component/KgButton/components/KgButton.Import.d.ts +40 -0
  59. package/dist/src/component/KgButton/components/KgButton.ImportTemplate.d.ts +40 -0
  60. package/dist/src/component/KgButton/components/KgButton.Other.d.ts +40 -0
  61. package/dist/src/component/KgButton/components/KgButton.Search.d.ts +40 -0
  62. package/dist/src/component/KgButton/components/KgButton.Update.d.ts +40 -0
  63. package/dist/src/component/KgButton/index.d.ts +62 -0
  64. package/dist/src/component/KgButton/index.hooks.d.ts +183 -0
  65. package/dist/src/component/KgButton/index.store.d.ts +116 -0
  66. package/dist/src/component/KgCanvas/KgCanvas.d.ts +122 -0
  67. package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +43 -0
  68. package/dist/src/component/KgCanvas/KgCanvasContextMenu.d.ts +107 -0
  69. package/dist/src/component/KgCanvas/KgCanvasToolbarFullscreen.d.ts +38 -0
  70. package/dist/src/component/KgCanvas/KgCanvasTooltip.d.ts +31 -0
  71. package/dist/src/component/KgCanvas/index.d.ts +4 -0
  72. package/dist/src/component/KgCanvas/index.hooks.d.ts +67 -0
  73. package/dist/src/component/KgCanvas/index.store.d.ts +239 -0
  74. package/dist/src/component/KgForm/KgForm.d.ts +414 -0
  75. package/dist/src/component/KgForm/index.d.ts +604 -0
  76. package/dist/src/component/KgForm/index.hooks.d.ts +73 -0
  77. package/dist/src/component/KgForm/index.store.d.ts +221 -0
  78. package/dist/src/component/KgForm/index.vm.d.ts +9 -0
  79. package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +97 -0
  80. package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +17 -0
  81. package/dist/src/component/KgForm.Item/addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts +49 -0
  82. package/dist/src/component/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +16 -0
  83. package/dist/src/component/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +31 -0
  84. package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +100 -0
  85. package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +99 -0
  86. package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +97 -0
  87. package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +97 -0
  88. package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +92 -0
  89. package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +96 -0
  90. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +96 -0
  91. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +96 -0
  92. package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +98 -0
  93. package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +98 -0
  94. package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.service.d.ts +29 -0
  95. package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +96 -0
  96. package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +96 -0
  97. package/dist/src/component/KgForm.Item/index.d.ts +2 -0
  98. package/dist/src/component/KgForm.Item/index.vm.d.ts +124 -0
  99. package/dist/src/component/KgImage/KgImage.d.ts +100 -0
  100. package/dist/src/component/KgImage/index.d.ts +1 -0
  101. package/dist/src/component/KgLayoutHeader/components/KgLayoutHeaderLocale.d.ts +38 -0
  102. package/dist/src/component/KgLayoutHeader/index.d.ts +2 -0
  103. package/dist/src/component/KgLayoutHeader/index.hooks.d.ts +4 -0
  104. package/dist/src/component/KgModal/KgModal.d.ts +823 -0
  105. package/dist/src/component/KgModal/KgModalHeaderButtons.d.ts +92 -0
  106. package/dist/src/component/KgModal/hooks/useDragToMove.d.ts +12 -0
  107. package/dist/src/component/KgModal/hooks/useDragToResize.d.ts +29 -0
  108. package/dist/src/component/KgModal/index.d.ts +1 -0
  109. package/dist/src/component/KgModal/index.vm.d.ts +8 -0
  110. package/dist/src/component/KgProgressA/KgProgressA.d.ts +85 -0
  111. package/dist/src/component/KgProgressA/index.d.ts +1 -0
  112. package/dist/src/component/KgResizable/KgResizable.d.ts +91 -0
  113. package/dist/src/component/KgResizable/KgResizable.service.d.ts +12 -0
  114. package/dist/src/component/KgResizable/index.d.ts +1 -0
  115. package/dist/src/component/KgSearch/KgSearch.d.ts +26 -0
  116. package/dist/src/component/KgSearch/KgSearch.service.d.ts +32 -0
  117. package/dist/src/component/KgSearch/components/KgSearch.ConfigModal.d.ts +16 -0
  118. package/dist/src/component/KgSearch/index.d.ts +3 -0
  119. package/dist/src/component/KgSearch/index.hooks.d.ts +67 -0
  120. package/dist/src/component/KgSearch/index.store.d.ts +147 -0
  121. package/dist/src/component/KgSearch/index.vm.d.ts +1 -0
  122. package/dist/src/component/KgStation/KgStation.d.ts +47 -0
  123. package/dist/src/component/KgStation/index.d.ts +3 -0
  124. package/dist/src/component/KgStation/index.hooks.d.ts +29 -0
  125. package/dist/src/component/KgStation/index.store.d.ts +45 -0
  126. package/dist/src/component/KgSubmit/KgSubmit.d.ts +21 -0
  127. package/dist/src/component/KgSubmit/KgSubmit.service.d.ts +29 -0
  128. package/dist/src/component/KgSubmit/index.d.ts +4 -0
  129. package/dist/src/component/KgSubmit/index.hooks.d.ts +295 -0
  130. package/dist/src/component/KgSubmit/index.store.d.ts +194 -0
  131. package/dist/src/component/KgSubmit/index.vm.d.ts +57 -0
  132. package/dist/src/component/KgTable/KgTable.d.ts +39 -0
  133. package/dist/src/component/KgTable/KgTable.service.d.ts +34 -0
  134. package/dist/src/component/KgTable/components/KgTable.BodyCell.d.ts +60 -0
  135. package/dist/src/component/KgTable/components/KgTable.HeaderCell.d.ts +52 -0
  136. package/dist/src/component/KgTable/components/KgTable.Info.d.ts +57 -0
  137. package/dist/src/component/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +5 -0
  138. package/dist/src/component/KgTable/components/setting/KgTable.Setting.d.ts +21 -0
  139. package/dist/src/component/KgTable/components/setting/KgTable.Setting.service.d.ts +22 -0
  140. package/dist/src/component/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +16 -0
  141. package/dist/src/component/KgTable/index.d.ts +4 -0
  142. package/dist/src/component/KgTable/index.hooks.d.ts +148 -0
  143. package/dist/src/component/KgTable/index.store.d.ts +241 -0
  144. package/dist/src/component/KgTable/index.vm.d.ts +67 -0
  145. package/dist/src/component/KgVar/KgVar.d.ts +114 -0
  146. package/dist/src/component/KgVar/KgVarFactory.d.ts +61 -0
  147. package/dist/src/component/KgVar/index.d.ts +5 -0
  148. package/dist/src/component/KgVar/index.hooks.d.ts +189 -0
  149. package/dist/src/component/KgVar/index.store.d.ts +266 -0
  150. package/dist/src/component/KgVar/index.store.service.d.ts +30 -0
  151. package/dist/src/component/KgVar/index.vm.d.ts +57 -0
  152. package/dist/src/component/KgVarConfig/KgVarConfig.d.ts +3 -0
  153. package/dist/src/component/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts +27 -0
  154. package/dist/src/component/KgVarConfig/components/KgVarConfigModal.d.ts +15 -0
  155. package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +7 -0
  156. package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +7 -0
  157. package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +5 -0
  158. package/dist/src/component/KgVarConfig/components/child/KgVarConfig.Modal.Child.d.ts +7 -0
  159. package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts +7 -0
  160. package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +7 -0
  161. package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +7 -0
  162. package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts +5 -0
  163. package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts +7 -0
  164. package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +7 -0
  165. package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +5 -0
  166. package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts +7 -0
  167. package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts +7 -0
  168. package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +23 -0
  169. package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts +5 -0
  170. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.d.ts +2 -0
  171. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.d.ts +2 -0
  172. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
  173. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
  174. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
  175. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
  176. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
  177. package/dist/src/component/KgVarConfig/index.d.ts +3 -0
  178. package/dist/src/component/KgVarConfig/index.hooks.d.ts +17 -0
  179. package/dist/src/component/KgVarConfig/index.store.d.ts +16 -0
  180. package/dist/src/component/KgVarConfig/index.vm.d.ts +50 -0
  181. package/dist/src/component/KgWarehouse/KgWarehouse.d.ts +47 -0
  182. package/dist/src/component/KgWarehouse/index.d.ts +4 -0
  183. package/dist/src/component/KgWarehouse/index.guard.d.ts +8 -0
  184. package/dist/src/component/KgWarehouse/index.hooks.d.ts +27 -0
  185. package/dist/src/component/KgWarehouse/index.store.d.ts +63 -0
  186. package/dist/src/component/KgYesOrNo/KgYesOrNo.d.ts +60 -0
  187. package/dist/src/component/KgYesOrNo/index.d.ts +1 -0
  188. package/dist/src/component/index.d.ts +21 -0
  189. package/dist/src/component/util.d.ts +14 -0
  190. package/dist/src/config/index.d.ts +3 -0
  191. package/dist/src/config/index.hooks.d.ts +36 -0
  192. package/dist/src/config/index.store.d.ts +315 -0
  193. package/dist/src/config/setup/index.d.ts +3 -0
  194. package/dist/src/config/setup/setup.d.ts +28 -0
  195. package/dist/src/config/setup/setupKgLocale.d.ts +29 -0
  196. package/dist/src/config/setup/setupKgStore.d.ts +18 -0
  197. package/dist/src/const/i18n/en.d.ts +278 -0
  198. package/dist/src/const/i18n/es_ES.d.ts +278 -0
  199. package/dist/src/const/i18n/fr_FR.d.ts +278 -0
  200. package/dist/src/const/i18n/index.d.ts +2 -0
  201. package/dist/src/const/i18n/km_KH.d.ts +278 -0
  202. package/dist/src/const/i18n/ko_KR.d.ts +278 -0
  203. package/dist/src/const/i18n/vi_VN.d.ts +278 -0
  204. package/dist/src/const/i18n/zh_CN.d.ts +278 -0
  205. package/dist/src/const/index.d.ts +3 -0
  206. package/dist/src/const/index.vm.d.ts +733 -0
  207. package/dist/src/const/injection-keys.const.d.ts +9 -0
  208. package/dist/src/helper/ant-design-vue.d.ts +347 -0
  209. package/dist/src/helper/tsx.helper.d.ts +23 -0
  210. package/dist/src/index.d.ts +11 -0
  211. package/dist/src/page/KgPageDda/KgPageDda.d.ts +8 -0
  212. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +32 -0
  213. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Basic.d.ts +7 -0
  214. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Button.d.ts +7 -0
  215. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Menu.d.ts +7 -0
  216. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Search.d.ts +7 -0
  217. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Submit.d.ts +7 -0
  218. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Table.d.ts +7 -0
  219. package/dist/src/page/KgPageDda/components/KgPageDda.Create.d.ts +33 -0
  220. package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +1322 -0
  221. package/dist/src/page/KgPageDda/index.d.ts +5 -0
  222. package/dist/src/page/KgPageDda/index.vm.d.ts +12 -0
  223. package/dist/src/page/index.d.ts +8 -0
  224. package/dist/src/project/build/getConfigFileName.d.ts +5 -0
  225. package/dist/src/project/build/index.d.ts +1 -0
  226. package/dist/src/project/index.d.ts +3 -0
  227. package/dist/src/project/types/axios.d.ts +35 -0
  228. package/dist/src/project/types/config.d.ts +121 -0
  229. package/dist/src/project/types/index.d.ts +4 -0
  230. package/dist/src/project/types/store.d.ts +42 -0
  231. package/dist/src/project/types/utils.d.ts +4 -0
  232. package/dist/src/service/http-client.d.ts +93 -0
  233. package/dist/src/service/index.d.ts +1 -0
  234. package/dist/src/util/index.d.ts +4 -0
  235. package/dist/src/util/kg-auth.util.d.ts +26 -0
  236. package/dist/src/util/kg-route.util.d.ts +57 -0
  237. package/dist/src/util/kg-var.util.d.ts +76 -0
  238. package/dist/src/util/kg.util.d.ts +150 -0
  239. package/package.json +31 -20
  240. package/script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +3 -0
  241. package/script/bump-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +3 -0
  242. package/script/bump-to.ts +38 -0
  243. package/script/bump.ts +35 -0
  244. package/script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +3 -0
  245. package/script/copy-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +3 -0
  246. package/script/copy-to.luotao.smartfactory.tyre.haohua.gantry.was-java--main.ts +3 -0
  247. package/script/copy-to.ts +23 -0
  248. package/script/publish.ts +30 -0
@@ -0,0 +1,315 @@
1
+ import { StoreDefinition } from 'pinia';
2
+ import { ComputedRef } from 'vue';
3
+ import { Router } from 'vue-router';
4
+ import { DescriptionDTO, SysUserWarehouseDTO } from '../api/WMS/models';
5
+ import { KG_APP, Menu } from '../const';
6
+ import { LocaleType } from '../project/types/config';
7
+ import { UserInfo } from '../project/types/store';
8
+ export declare type IKgOption = {
9
+ /**
10
+ * 多标签页.
11
+ */
12
+ KgLayoutTab?: {
13
+ /**
14
+ * <p>是否放到页面头部区域.</p>
15
+ * @default true
16
+ */
17
+ isTeleportToHeader?: boolean;
18
+ };
19
+ KgModal?: {
20
+ /** 拖拽改变位置. */
21
+ drag?: {
22
+ /**
23
+ * 是否启用功能.
24
+ *
25
+ * @default false
26
+ */
27
+ on?: boolean;
28
+ };
29
+ /** 拖拽改变大小. */
30
+ dragToResize?: {
31
+ /**
32
+ * 是否启用功能.
33
+ *
34
+ * @default false
35
+ */
36
+ isOn?: boolean;
37
+ };
38
+ };
39
+ KgSearch?: {
40
+ /** 高级查询. */
41
+ dynamicQuery?: {
42
+ /**
43
+ * 是否启用功能.
44
+ *
45
+ * @default false
46
+ */
47
+ on?: boolean;
48
+ };
49
+ };
50
+ KgTable?: {
51
+ /** 列的过滤. */
52
+ filter?: {
53
+ /**
54
+ * 是否启用功能.
55
+ * @default false
56
+ */
57
+ on?: boolean;
58
+ };
59
+ /**
60
+ * 表格设置菜单.
61
+ */
62
+ Setting?: {
63
+ /**
64
+ * 行高.
65
+ */
66
+ rowHeight?: {
67
+ /**
68
+ * 是否启用功能.
69
+ * @default false
70
+ */
71
+ on?: boolean;
72
+ };
73
+ /**
74
+ * 字段.
75
+ */
76
+ columns?: {
77
+ /**
78
+ * 拖拽排序.
79
+ */
80
+ dragToSort?: {
81
+ /**
82
+ * @default false
83
+ */
84
+ isOn?: boolean;
85
+ };
86
+ };
87
+ };
88
+ /**
89
+ * 表头.
90
+ */
91
+ HeaderCell?: {
92
+ /**
93
+ * 右键菜单.
94
+ */
95
+ contextMenu?: {
96
+ /**
97
+ * @default false
98
+ */
99
+ isOn?: boolean;
100
+ };
101
+ };
102
+ Info?: {
103
+ /**
104
+ * 定位勾选的行.
105
+ */
106
+ locateSelectedRows: {
107
+ /**
108
+ * @default false
109
+ */
110
+ isOn?: boolean;
111
+ };
112
+ };
113
+ };
114
+ /** 仓库选择. */
115
+ KgWarehouse?: {
116
+ /**
117
+ * 是否启用功能.
118
+ * @default true
119
+ */
120
+ on?: boolean;
121
+ /** 默认的仓库编码, 只有在 {@link IKgOption.KgWarehouse.on} 为 false 时才生效. */
122
+ defaultWarehouseID?: string;
123
+ };
124
+ /** 工作站选择. */
125
+ KgStation?: {
126
+ /**
127
+ * 是否启用功能.
128
+ * @default true
129
+ */
130
+ isOn?: boolean;
131
+ };
132
+ /** 模块首页地址. */
133
+ appIndex?: {
134
+ /** 默认为 '/wms/data-manager/index'. */
135
+ [KG_APP.WMS_DATA_MANAGER]?: string;
136
+ /** 默认为 '/wms/business-manager/index'. */
137
+ [KG_APP.WMS_BUSINESS_MANAGER]?: string;
138
+ /** 默认为 '/wcs/index'. */
139
+ [KG_APP.WCS]?: string;
140
+ /** 默认为 '/sys/index'. */
141
+ [KG_APP.SYS]?: string;
142
+ };
143
+ /** 模块标题. */
144
+ appTitle?: {
145
+ /** 默认为 '数据管理'. */
146
+ [KG_APP.WMS_DATA_MANAGER]?: string;
147
+ /** 默认为 '仓库管理'. */
148
+ [KG_APP.WMS_BUSINESS_MANAGER]?: string;
149
+ /** 默认为 'WCS'. */
150
+ [KG_APP.WCS]?: string;
151
+ /** 默认为 '系统配置'. */
152
+ [KG_APP.SYS]?: string;
153
+ };
154
+ /**
155
+ * <p>项目的版本号. 即 package.json 中的 version 值.</p>
156
+ *
157
+ * @default 0.0.0
158
+ */
159
+ projectVersion?: string;
160
+ /**
161
+ * <p>后端接口地址前缀.</p>
162
+ *
163
+ * @default '/kengic-boot'
164
+ */
165
+ publicPath?: string;
166
+ };
167
+ /** 翻译的方法. */
168
+ export declare type T = {
169
+ (key: string | null | undefined): string;
170
+ (key: string | null | undefined, locale: string): string;
171
+ (key: string | null | undefined, locale: string, list: unknown[]): string;
172
+ (key: string | null | undefined, locale: string, named: Record<string, unknown>): string;
173
+ (key: string | null | undefined, list: unknown[]): string;
174
+ (key: string | null | undefined, named: Record<string, unknown>): string;
175
+ };
176
+ /** 检查权限的方法. */
177
+ export declare type P = {
178
+ (permissionCode?: string | Array<string> | null): boolean;
179
+ };
180
+ export interface UserState {
181
+ userInfo: UserInfo | null;
182
+ token?: string;
183
+ roleList: any[];
184
+ userWarehouses: SysUserWarehouseDTO[];
185
+ sessionTimeout?: boolean;
186
+ }
187
+ interface AuthItem {
188
+ /** 权限编码. */
189
+ action: string;
190
+ /** 权限策略. 1:显示, 2:禁用. */
191
+ type: string | number;
192
+ /** 权限状态. 0:无效, 1:有效. */
193
+ status: string | number;
194
+ /** 权限名称. */
195
+ describe?: string;
196
+ }
197
+ export interface PermissionState {
198
+ /** 当前登录用户所拥有的权限编码列表. */
199
+ permCodeList: string[] | number[];
200
+ /** 菜单列表. */
201
+ backMenuList: Menu[];
202
+ /** 当前登录用户所拥有的权限配置. */
203
+ authList: AuthItem[];
204
+ /** 全部权限配置. */
205
+ allAuthList: AuthItem[];
206
+ }
207
+ export interface IUseKgStoreState {
208
+ /**
209
+ * 语言数据.
210
+ */
211
+ I18N: Record<string, any>;
212
+ /**
213
+ * <p>系统描述.</p>
214
+ * <p>第一层 key 为 codeName, 第二层 key 为 codeValue.</p>
215
+ */
216
+ descriptionMap: Map<string, Map<string, DescriptionDTO>>;
217
+ i18n: any;
218
+ /**
219
+ * <p>某个系统描述是否正在查询.</p>
220
+ * <p>其中的 key 表示 codeName.</p>
221
+ */
222
+ isDescriptionsRequestingMap: Map<string, boolean>;
223
+ /** 语言. */
224
+ locale: ComputedRef<LocaleType> | null;
225
+ /** 配置参数. */
226
+ option: IKgOption;
227
+ /** 检查权限的方法. */
228
+ pFunction: P | null;
229
+ router: Router | null;
230
+ /** 翻译的方法. */
231
+ tFunction: T | null;
232
+ /** 权限数据. */
233
+ usePermissionStore: StoreDefinition | null;
234
+ /** 用户数据. */
235
+ useUserStore: StoreDefinition | null;
236
+ }
237
+ export interface IUseKgStoreGetters {
238
+ /**
239
+ * 根据 codeName 和 codeValue 获取当前语言下的某个描述.
240
+ */
241
+ getDescription(): (param: {
242
+ codeName: string | null | undefined;
243
+ codeValue: string | null | undefined;
244
+ }) => DescriptionDTO | null;
245
+ /**
246
+ * 根据 codeName 获取当前语言下的它的所有描述.
247
+ */
248
+ getDescriptions(): (param: {
249
+ codeName: string | null | undefined;
250
+ }) => Array<DescriptionDTO>;
251
+ getI18N(): Record<string, any>;
252
+ getI18n(): any;
253
+ /**
254
+ * 配置参数.
255
+ */
256
+ getOption(): IKgOption;
257
+ /**
258
+ * 后端接口地址前缀.
259
+ */
260
+ getPublicPath(): IKgOption;
261
+ getRouter(): Router | null;
262
+ /**
263
+ * 菜单数据.
264
+ */
265
+ getUsePermissionStore(): StoreDefinition<string, PermissionState, {
266
+ getPermCodeList(): string[] | number[];
267
+ getBackMenuList(): Menu[];
268
+ }> | null;
269
+ /**
270
+ * 权限数据.
271
+ */
272
+ getUseUserStore(): StoreDefinition<string, UserState, {
273
+ getToken(): string;
274
+ getRoleList(): any[];
275
+ getUserWarehouses(): SysUserWarehouseDTO[];
276
+ getSessionTimeout(): boolean;
277
+ getUserInfo(): UserInfo;
278
+ }, {}> | null;
279
+ }
280
+ export interface IUseKgStoreActions {
281
+ /** 检查权限. */
282
+ p: P;
283
+ /**
284
+ * 请求某组描述数据.
285
+ *
286
+ * @param param.codeName 描述组名.
287
+ */
288
+ requestDescriptions(param: {
289
+ codeName: string | null | undefined;
290
+ }): Promise<void>;
291
+ /**
292
+ * 设置某组描述的数据.
293
+ *
294
+ * @param param.codeName 描述组名.
295
+ * @param param.descriptions 描述数据.
296
+ */
297
+ setDescriptions(param: {
298
+ codeName: string | null | undefined;
299
+ descriptions: Array<DescriptionDTO>;
300
+ }): void;
301
+ setI18N(I18N: Record<string, any>): void;
302
+ setI18n(i18n: any): void;
303
+ setOption(option: IKgOption): void;
304
+ setP(fn: P): void;
305
+ setRouter(router: Router): void;
306
+ setT(i18n: any): void;
307
+ setUsePermissionStore(usePermissionStore: StoreDefinition<any, any, any, any>): void;
308
+ setUseUserStore(useUserStore: StoreDefinition<any, any, any, any>): void;
309
+ /** 翻译. */
310
+ t: T;
311
+ }
312
+ export declare type IUseKgStore = StoreDefinition<'Kg', IUseKgStoreState, IUseKgStoreGetters, IUseKgStoreActions>;
313
+ export declare type IKgStore = ReturnType<IUseKgStore>;
314
+ export declare const useKgStore: IUseKgStore;
315
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './setup';
2
+ export * from './setupKgLocale';
3
+ export * from './setupKgStore';
@@ -0,0 +1,28 @@
1
+ import { StoreDefinition } from 'pinia';
2
+ import { App } from 'vue';
3
+ import { Router } from 'vue-router';
4
+ import { IKgOption, P } from '../index.store';
5
+ import '@kengic/core/react/index.css';
6
+ export declare type IKgOptions = {
7
+ /**
8
+ * 语言数据.
9
+ */
10
+ I18N: Record<string, any>;
11
+ app: App;
12
+ i18n: any;
13
+ /** 配置参数. */
14
+ option?: IKgOption;
15
+ /** 权限方法, 用来判断是否具有某个(某些)权限. */
16
+ pFunction: P;
17
+ router: Router;
18
+ /** 状态数据: 权限. */
19
+ usePermissionStore: StoreDefinition<any, any, any, any>;
20
+ /** 状态数据: 用户. */
21
+ useUserStore: StoreDefinition<any, any, any, any>;
22
+ };
23
+ /**
24
+ * 初始.
25
+ *
26
+ * @param options 选项参数.
27
+ */
28
+ export declare function setup(options: IKgOptions): Promise<void>;
@@ -0,0 +1,29 @@
1
+ import { DropMenu } from '../../project/src/components/Dropdown/src/typing';
2
+ import { LocaleSetting, LocaleType } from '../../project/types/config';
3
+ export declare const LOCALE: {
4
+ KO_KR: LocaleType;
5
+ EN: LocaleType;
6
+ VI_VN: LocaleType;
7
+ ZH_CN: LocaleType;
8
+ ES_ES: LocaleType;
9
+ FR_FR: LocaleType;
10
+ KM_KH: LocaleType;
11
+ };
12
+ export declare let localeList: DropMenu[];
13
+ export declare const localeSetting: LocaleSetting;
14
+ export declare type IKgLocaleOptions = {
15
+ /**
16
+ * <p>可选语言. 如果为空则为所有语言.</p>
17
+ */
18
+ availableLocales?: Array<LocaleType>;
19
+ /**
20
+ * 默认语言.
21
+ *
22
+ * @default 'zh_CN'.
23
+ */
24
+ defaultLocale?: LocaleType;
25
+ };
26
+ /**
27
+ * 配置语言.
28
+ */
29
+ export declare function setupKgLocale(options?: IKgLocaleOptions): void;
@@ -0,0 +1,18 @@
1
+ import { Pinia } from 'pinia';
2
+ /**
3
+ * 配置 pinia 实例.
4
+ * @param pinia pinia 实例.
5
+ */
6
+ export declare function setPinia(pinia: Pinia): void;
7
+ /**
8
+ * 获取 pinia 实例.
9
+ * @return {} pinia 实例.
10
+ * @throws Error 如果 pinia 实例为空, 抛错.
11
+ */
12
+ export declare function getPinia(): Pinia | null;
13
+ /**
14
+ * 设置 pinia.
15
+ *
16
+ * @param pinia pinia.
17
+ */
18
+ export declare function setupKgStore(pinia: Pinia): void;
@@ -0,0 +1,278 @@
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
+ };
17
+ KgFormItem: {
18
+ formValidationMessageForGT: string;
19
+ formValidationMessageForGTE: string;
20
+ formValidationMessageForInvalidFloat: string;
21
+ formValidationMessageForInvalidInteger: string;
22
+ formValidationMessageForInvalidJSON: string;
23
+ formValidationMessageForInvalidLetter: string;
24
+ formValidationMessageForInvalidLowerLetter: string;
25
+ formValidationMessageForInvalidUpperLetter: string;
26
+ formValidationMessageForLT: string;
27
+ formValidationMessageForLTE: string;
28
+ formValidationMessageForMaxLength: string;
29
+ formValidationMessageForMinLength: string;
30
+ formValidationMessageForRegularExpression: string;
31
+ };
32
+ KgPageDdaCreate: {
33
+ 'confirm-cancel': string;
34
+ done: string;
35
+ 'next-step': string;
36
+ 'previous-step': string;
37
+ };
38
+ KgPageDdaCreateBasic: {
39
+ 'form-id': string;
40
+ 'form-name': string;
41
+ maintenance: string;
42
+ sql: string;
43
+ type: string;
44
+ };
45
+ KgPageDdaCreateButton: {
46
+ 'button-var-name-reserved': string;
47
+ 'button-var-name-used': string;
48
+ };
49
+ KgPageDdaCreateMenu: {
50
+ 'parent-menu': string;
51
+ };
52
+ KgPageDdaCreateSearch: {
53
+ available: string;
54
+ 'column-desc': string;
55
+ 'column-name': string;
56
+ 'column-type': string;
57
+ selected: string;
58
+ };
59
+ KgPageDdaCreateSubmit: {
60
+ available: string;
61
+ 'column-desc': string;
62
+ 'column-name': string;
63
+ 'column-type': string;
64
+ selected: string;
65
+ };
66
+ KgPageDdaCreateTable: {
67
+ available: string;
68
+ 'column-desc': string;
69
+ 'column-name': string;
70
+ 'column-type': string;
71
+ selected: string;
72
+ };
73
+ KgSearch: {
74
+ title: string;
75
+ };
76
+ KgSearchConfigModal: {
77
+ BETWEEN: string;
78
+ 'BETWEEN-desc': string;
79
+ CONTAIN: string;
80
+ 'CONTAIN-desc': string;
81
+ END_WITH: string;
82
+ 'END_WITH-desc': string;
83
+ EQ: string;
84
+ 'EQ-desc': string;
85
+ GT: string;
86
+ 'GT-desc': string;
87
+ GTE: string;
88
+ 'GTE-desc': string;
89
+ IN: string;
90
+ 'IN-desc': string;
91
+ LT: string;
92
+ 'LT-desc': string;
93
+ LTE: string;
94
+ 'LTE-desc': string;
95
+ NE: string;
96
+ 'NE-desc': string;
97
+ START_WITH: string;
98
+ 'START_WITH-desc': string;
99
+ close: string;
100
+ formTitle: string;
101
+ pleaseSelectVarProfileMaster: string;
102
+ };
103
+ KgStation: {
104
+ reloadMessage: string;
105
+ selectStation: string;
106
+ station: string;
107
+ title: string;
108
+ workArea: string;
109
+ workStation: string;
110
+ };
111
+ KgTable: {
112
+ apiNotSupportDynamicQuery: string;
113
+ column: string;
114
+ config: string;
115
+ emptyText: string;
116
+ isShowDescription: string;
117
+ other: string;
118
+ 'request-fail-error': string;
119
+ 'request-fail-no-data': string;
120
+ rowHeight: string;
121
+ rowHeightH: string;
122
+ rowHeightL: string;
123
+ rowHeightM: string;
124
+ 'save-var-grid-master-as-success-message': string;
125
+ saveVarGridMaster: string;
126
+ saveVarGridMasterAs: string;
127
+ saveVarGridMasterSuccessMessage: string;
128
+ totalText: string;
129
+ varGridMasters: string;
130
+ };
131
+ KgTableHeaderCell: {
132
+ align: string;
133
+ alignCenter: string;
134
+ alignLeft: string;
135
+ alignRight: string;
136
+ hide: string;
137
+ isEllipsis: string;
138
+ isFilter: string;
139
+ isFixToLeft: string;
140
+ isFixToRight: string;
141
+ isSort: string;
142
+ };
143
+ KgTableInfo: {
144
+ check: string;
145
+ clearCheck: string;
146
+ clearTable: string;
147
+ locate: string;
148
+ row: string;
149
+ };
150
+ KgTableSettingConfigModal: {};
151
+ KgTableSettingVarGridConfig: {};
152
+ KgTableSettingVarGridMasterSaveAs: {
153
+ title: string;
154
+ };
155
+ KgVar: {};
156
+ KgVarConfig: {
157
+ VarGridConfig: string;
158
+ VarGridMaster: string;
159
+ VarProfileConfig: string;
160
+ VarProfileMaster: string;
161
+ action: string;
162
+ allForm: string;
163
+ allLanguage: string;
164
+ canNotUpdateSystemVarGridMaster: string;
165
+ canNotUpdateSystemVarProfileMaster: string;
166
+ confirm: string;
167
+ createConfig: string;
168
+ currentForm: string;
169
+ currentLanguage: string;
170
+ customLevel: string;
171
+ emptyPageSizeOptions: string;
172
+ formId: string;
173
+ formValidationMessageForMaxAndMin: string;
174
+ formValidationMessageForMaxLengthAndMinLength: string;
175
+ invalidCommandParameter: string;
176
+ invalidPageSizeOption: string;
177
+ invalidPageSizeOptions: string;
178
+ pleaseSelectVariable: string;
179
+ required: string;
180
+ tabButton: string;
181
+ tabChild: string;
182
+ tabSearch: string;
183
+ tabSubmit: string;
184
+ tabTable: string;
185
+ variable: string;
186
+ };
187
+ KgVarConfigModalButton: {
188
+ VarButton: string;
189
+ VarButtonConfig: string;
190
+ };
191
+ KgVarConfigModalChild: {
192
+ childVarName: string;
193
+ childVarNameDuplicate: string;
194
+ childVarNameRequired: string;
195
+ parentVarName: string;
196
+ parentVarNameDuplicate: string;
197
+ parentVarNameRequired: string;
198
+ };
199
+ KgVarConfigModalSubmit: {
200
+ VarSubmitConfig: string;
201
+ VarSubmitDetail: string;
202
+ };
203
+ KgVarConfigModalSubmitVarSubmitConfig: {
204
+ invalidWidthForSpan: string;
205
+ };
206
+ KgVarConfigModalTableVarGridMaster: {
207
+ DESC: string;
208
+ FILE_SIZE: string;
209
+ ICON: string;
210
+ IMAGE: string;
211
+ PROGRESS: string;
212
+ ROUTE_LINK: string;
213
+ UPDATE_LINK: string;
214
+ YN: string;
215
+ center: string;
216
+ left: string;
217
+ notSort: string;
218
+ right: string;
219
+ };
220
+ KgVarConfigSelectFormIdModal: {
221
+ title: string;
222
+ };
223
+ KgWarehouse: {
224
+ reloadMessage: string;
225
+ selectWarehouse: string;
226
+ title: string;
227
+ warehouse: string;
228
+ };
229
+ action: string;
230
+ add: string;
231
+ allUser: string;
232
+ asc: string;
233
+ button: string;
234
+ cancel: string;
235
+ close: string;
236
+ confirm: string;
237
+ confirmDelete: string;
238
+ copy: string;
239
+ copySuccess: string;
240
+ create: string;
241
+ createSuccess: string;
242
+ default: string;
243
+ delete: string;
244
+ deleteSuccess: string;
245
+ desc: string;
246
+ edit: string;
247
+ empty: string;
248
+ emptyText: string;
249
+ executeSuccess: string;
250
+ export: string;
251
+ exportSuccess: string;
252
+ formId: string;
253
+ formName: string;
254
+ formValidationFail: string;
255
+ import: string;
256
+ 'import-template': string;
257
+ importSuccess: string;
258
+ importTemplate: string;
259
+ loading: string;
260
+ lookup: string;
261
+ no: string;
262
+ ok: string;
263
+ query: string;
264
+ refresh: string;
265
+ required: string;
266
+ reset: string;
267
+ save: string;
268
+ search: string;
269
+ selectAll: string;
270
+ show: string;
271
+ succeed: string;
272
+ tip: string;
273
+ update: string;
274
+ updateSuccess: string;
275
+ yes: string;
276
+ };
277
+ };
278
+ export default _default;