@kengic/vue 0.30.1-beta.82 → 0.30.1-beta.85

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 (870) hide show
  1. package/api/WMS/Controllers/DescriptionController/List.ts +84 -0
  2. package/api/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.ts +21 -0
  3. package/api/WMS/Controllers/DescriptionController/index.ts +2 -0
  4. package/api/WMS/Controllers/SqlClientController/Execute.ts +21 -0
  5. package/api/WMS/Controllers/SqlClientController/ExecutePage.ts +21 -0
  6. package/api/WMS/Controllers/SqlClientController/index.ts +2 -0
  7. package/api/WMS/Controllers/SysPermissionController/List.ts +117 -0
  8. package/api/WMS/Controllers/SysPermissionController/index.ts +1 -0
  9. package/api/WMS/Controllers/VarConfigDescriptionController/Add.ts +21 -0
  10. package/api/WMS/Controllers/VarConfigDescriptionController/ListByFormId.ts +21 -0
  11. package/api/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.ts +36 -0
  12. package/api/WMS/Controllers/VarConfigPossibilityController/index.ts +1 -0
  13. package/api/WMS/Controllers/VarController/GetAll.ts +21 -0
  14. package/api/WMS/Controllers/VarController/index.ts +1 -0
  15. package/api/WMS/Controllers/VarDdaController/Create.ts +21 -0
  16. package/api/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.ts +21 -0
  17. package/api/WMS/Controllers/VarDdaController/ValidateCopySql.ts +21 -0
  18. package/api/WMS/Controllers/VarDdaController/ValidateCreateSql.ts +21 -0
  19. package/api/WMS/Controllers/VarDdaController/ValidateDeleteSql.ts +21 -0
  20. package/api/WMS/Controllers/VarDdaController/ValidateFrmId.ts +21 -0
  21. package/api/WMS/Controllers/VarDdaController/ValidateSearchSql.ts +21 -0
  22. package/api/WMS/Controllers/VarDdaController/ValidateUpdateSql.ts +21 -0
  23. package/api/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.ts +21 -0
  24. package/api/WMS/Controllers/VarDdaController/index.ts +9 -0
  25. package/api/WMS/Controllers/VarGridMasterController/QueryByID.ts +36 -0
  26. package/api/WMS/Controllers/VarGridMasterController/Update.ts +21 -0
  27. package/api/WMS/Controllers/VarGridMasterController/index.ts +2 -0
  28. package/api/WMS/Controllers/VarProfileMasterController/QueryByID.ts +36 -0
  29. package/api/WMS/Controllers/VarProfileMasterController/index.ts +1 -0
  30. package/api/WMS/Controllers/VarVariableController/Delete.ts +21 -0
  31. package/api/WMS/Controllers/VarVariableController/index.ts +1 -0
  32. package/api/WMS/Controllers/WarehouseController/ListVO.ts +45 -0
  33. package/api/WMS/Controllers/WorkstationController/List.ts +45 -0
  34. package/api/WMS/Controllers/WorkstationController/index.ts +1 -0
  35. package/api/WMS/index.ts +2 -0
  36. package/api/WMS/models.ts +2113 -0
  37. package/api/api.ts +1 -0
  38. package/api/def.ts +1 -0
  39. package/api/index.ts +2 -0
  40. package/asset/ant.less +678 -0
  41. package/asset/element-plus.css +112 -0
  42. package/asset/flag/cs_CZ.png +0 -0
  43. package/asset/flag/en.png +0 -0
  44. package/asset/flag/es_ES.png +0 -0
  45. package/asset/flag/fr_FR.png +0 -0
  46. package/asset/flag/km_KH.png +0 -0
  47. package/asset/flag/ko_KR.png +0 -0
  48. package/asset/flag/vi_VN.png +0 -0
  49. package/asset/flag/zh_CN.png +0 -0
  50. package/asset/images/warehouse.000000.svg +9 -0
  51. package/asset/images/warehouse.1890ff.svg +9 -0
  52. package/asset/index.less +347 -0
  53. package/asset/jeecg.less +382 -0
  54. package/asset/var.less +3 -0
  55. package/asset/vxe.less +51 -0
  56. package/bin/bin.mjs +57 -0
  57. package/bin/postinstall.mjs +69 -0
  58. package/component/KgAppSelect/KgAppSelect.event.ts +52 -0
  59. package/component/KgAppSelect/KgAppSelect.hooks.ts +50 -0
  60. package/component/KgAppSelect/KgAppSelect.less +30 -0
  61. package/component/KgAppSelect/KgAppSelect.store.ts +162 -0
  62. package/component/KgAppSelect/KgAppSelect.tsx +60 -0
  63. package/component/KgAppSelect/index.ts +4 -0
  64. package/component/KgButton/KgButton.Copy.tsx +143 -0
  65. package/component/KgButton/KgButton.Create.tsx +208 -0
  66. package/component/KgButton/KgButton.Delete.tsx +156 -0
  67. package/component/KgButton/KgButton.Export.tsx +294 -0
  68. package/component/KgButton/KgButton.Import.tsx +247 -0
  69. package/component/KgButton/KgButton.ImportTemplate.tsx +214 -0
  70. package/component/KgButton/KgButton.Item.tsx +128 -0
  71. package/component/KgButton/KgButton.Other.tsx +292 -0
  72. package/component/KgButton/KgButton.Search.tsx +146 -0
  73. package/component/KgButton/KgButton.Update.tsx +210 -0
  74. package/component/KgButton/KgButton.event.ts +157 -0
  75. package/component/KgButton/KgButton.hooks.ts +117 -0
  76. package/component/KgButton/KgButton.less +187 -0
  77. package/component/KgButton/KgButton.model.tsx +39 -0
  78. package/component/KgButton/KgButton.store.ts +333 -0
  79. package/component/KgButton/KgButton.tsx +221 -0
  80. package/component/KgCanvas/KgCanvas.ContextMenu.tsx +181 -0
  81. package/component/KgCanvas/KgCanvas.ToolbarButton.Fullscreen.tsx +80 -0
  82. package/component/KgCanvas/KgCanvas.ToolbarButton.Mode.tsx +68 -0
  83. package/component/KgCanvas/KgCanvas.ToolbarButton.OverviewScale.tsx +66 -0
  84. package/component/KgCanvas/KgCanvas.Tooltip.tsx +118 -0
  85. package/component/KgCanvas/KgCanvas.css +128 -0
  86. package/component/KgCanvas/KgCanvas.event.ts +380 -0
  87. package/component/KgCanvas/KgCanvas.hooks.ts +181 -0
  88. package/component/KgCanvas/KgCanvas.model.ts +31 -0
  89. package/component/KgCanvas/KgCanvas.service.tsx +116 -0
  90. package/component/KgCanvas/KgCanvas.store.ts +68 -0
  91. package/component/KgCanvas/KgCanvas.tsx +632 -0
  92. package/component/KgCanvas/index.ts +5 -0
  93. package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.AreaSelect.tsx +107 -0
  94. package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.service.tsx +3053 -0
  95. package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.tsx +606 -0
  96. package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Legend.tsx +71 -0
  97. package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Offline.tsx +50 -0
  98. package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Setting.tsx +169 -0
  99. package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Log.tsx +30 -0
  100. package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.tsx +672 -0
  101. package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.css +510 -0
  102. package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.hooks.ts +78 -0
  103. package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.model.ts +161 -0
  104. package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.store.tsx +744 -0
  105. package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.tsx +171 -0
  106. package/component/KgCircularShuttleMonitor/index.ts +4 -0
  107. package/component/KgForm/KgForm.event.ts +328 -0
  108. package/component/KgForm/KgForm.hooks.ts +158 -0
  109. package/component/KgForm/KgForm.less +0 -0
  110. package/component/KgForm/KgForm.store.ts +36 -0
  111. package/component/KgForm/KgForm.tsx +61 -0
  112. package/component/KgForm/index.ts +10 -0
  113. package/component/KgForm.Item/KgForm.Item.Addon.DynamicQueryOperator.tsx +88 -0
  114. package/component/KgForm.Item/KgForm.Item.Addon.Lookup.Modal.tsx +191 -0
  115. package/component/KgForm.Item/KgForm.Item.Addon.Lookup.tsx +76 -0
  116. package/component/KgForm.Item/KgForm.Item.Checkbox.tsx +61 -0
  117. package/component/KgForm.Item/KgForm.Item.CheckboxGroup.tsx +176 -0
  118. package/component/KgForm.Item/KgForm.Item.Date.tsx +88 -0
  119. package/component/KgForm.Item/KgForm.Item.DateRange.tsx +110 -0
  120. package/component/KgForm.Item/KgForm.Item.Image.tsx +35 -0
  121. package/component/KgForm.Item/KgForm.Item.Input.tsx +72 -0
  122. package/component/KgForm.Item/KgForm.Item.InputNumber.tsx +68 -0
  123. package/component/KgForm.Item/KgForm.Item.InputPassword.tsx +72 -0
  124. package/component/KgForm.Item/KgForm.Item.Link.tsx +37 -0
  125. package/component/KgForm.Item/KgForm.Item.RadioGroup.tsx +91 -0
  126. package/component/KgForm.Item/KgForm.Item.Select.service.tsx +317 -0
  127. package/component/KgForm.Item/KgForm.Item.Select.tsx +236 -0
  128. package/component/KgForm.Item/KgForm.Item.Switch.tsx +49 -0
  129. package/component/KgForm.Item/KgForm.Item.TextArea.tsx +99 -0
  130. package/component/KgForm.Item/KgForm.Item.less +476 -0
  131. package/component/KgForm.Item/KgForm.Item.model.ts +129 -0
  132. package/component/KgForm.Item/KgForm.Item.service.tsx +479 -0
  133. package/component/KgForm.Item/KgForm.Item.tsx +642 -0
  134. package/component/KgImage/KgImage.less +12 -0
  135. package/component/KgImage/KgImage.tsx +73 -0
  136. package/component/KgLayoutHeader/KgLayoutHeader.Locale.tsx +118 -0
  137. package/component/KgLayoutHeader/KgLayoutHeader.hooks.ts +31 -0
  138. package/component/KgLayoutHeader/KgLayoutHeader.less +14 -0
  139. package/component/KgLayoutHeader/index.ts +3 -0
  140. package/component/KgModal/KgModal.css +234 -0
  141. package/component/KgModal/KgModal.model.ts +9 -0
  142. package/component/KgModal/KgModal.service.ts +560 -0
  143. package/component/KgModal/KgModal.tsx +207 -0
  144. package/component/KgModal/KgModalHeaderButtons.tsx +130 -0
  145. package/component/KgModal02/KgModal02.css +11 -0
  146. package/component/KgModal02/KgModal02.model.ts +1 -0
  147. package/component/KgModal02/KgModal02.tsx +93 -0
  148. package/component/KgProgressA/KgProgressA.less +35 -0
  149. package/component/KgProgressA/KgProgressA.tsx +90 -0
  150. package/component/KgResizable/KgResizable.less +114 -0
  151. package/component/KgResizable/KgResizable.service.tsx +41 -0
  152. package/component/KgResizable/KgResizable.tsx +239 -0
  153. package/component/KgSearch/KgSearch.event.ts +78 -0
  154. package/component/KgSearch/KgSearch.hooks.ts +160 -0
  155. package/component/KgSearch/KgSearch.less +251 -0
  156. package/component/KgSearch/KgSearch.service.tsx +236 -0
  157. package/component/KgSearch/KgSearch.store.ts +609 -0
  158. package/component/KgSearch/KgSearch.tsx +506 -0
  159. package/component/KgSearch/index.ts +4 -0
  160. package/component/KgSimulator/KgSimulator.Canvas.Title.tsx +71 -0
  161. package/component/KgSimulator/KgSimulator.Canvas.service.tsx +3403 -0
  162. package/component/KgSimulator/KgSimulator.Canvas.tsx +1105 -0
  163. package/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.tsx +258 -0
  164. package/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.tsx +214 -0
  165. package/component/KgSimulator/KgSimulator.Menu.tsx +446 -0
  166. package/component/KgSimulator/KgSimulator.Panel.Prefab.tsx +87 -0
  167. package/component/KgSimulator/KgSimulator.Panel.Property.tsx +1120 -0
  168. package/component/KgSimulator/KgSimulator.Panel.Scene.tsx +819 -0
  169. package/component/KgSimulator/KgSimulator.Panel.tsx +149 -0
  170. package/component/KgSimulator/KgSimulator.Prefab.tsx +142 -0
  171. package/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.tsx +44 -0
  172. package/component/KgSimulator/KgSimulator.ToolbarButton.Property.tsx +40 -0
  173. package/component/KgSimulator/KgSimulator.ToolbarButton.Scene.tsx +40 -0
  174. package/component/KgSimulator/KgSimulator.ToolbarButton.tsx +130 -0
  175. package/component/KgSimulator/KgSimulator.css +610 -0
  176. package/component/KgSimulator/KgSimulator.event.ts +197 -0
  177. package/component/KgSimulator/KgSimulator.hooks.ts +237 -0
  178. package/component/KgSimulator/KgSimulator.icons.tsx +148 -0
  179. package/component/KgSimulator/KgSimulator.model.ts +2629 -0
  180. package/component/KgSimulator/KgSimulator.store.tsx +1192 -0
  181. package/component/KgSimulator/KgSimulator.tsx +235 -0
  182. package/component/KgSimulator/KgSimulator.utils.ts +30 -0
  183. package/component/KgSimulator/index.ts +4 -0
  184. package/component/KgSubmit/KgSubmit.event.ts +272 -0
  185. package/component/KgSubmit/KgSubmit.hooks.ts +662 -0
  186. package/component/KgSubmit/KgSubmit.less +174 -0
  187. package/component/KgSubmit/KgSubmit.model.ts +82 -0
  188. package/component/KgSubmit/KgSubmit.service.tsx +368 -0
  189. package/component/KgSubmit/KgSubmit.store.ts +568 -0
  190. package/component/KgSubmit/KgSubmit.tsx +1132 -0
  191. package/component/KgSubmit/index.ts +5 -0
  192. package/component/KgTable/KgTable.BodyCell.tsx +475 -0
  193. package/component/KgTable/KgTable.HeadCell.tsx +333 -0
  194. package/component/KgTable/KgTable.Info.tsx +133 -0
  195. package/component/KgTable/KgTable.Setting.VarGridMaster.SaveAs.tsx +63 -0
  196. package/component/KgTable/KgTable.Setting.service.tsx +285 -0
  197. package/component/KgTable/KgTable.Setting.tsx +377 -0
  198. package/component/KgTable/KgTable.event.ts +206 -0
  199. package/component/KgTable/KgTable.hooks.ts +235 -0
  200. package/component/KgTable/KgTable.less +912 -0
  201. package/component/KgTable/KgTable.model.ts +73 -0
  202. package/component/KgTable/KgTable.service.tsx +781 -0
  203. package/component/KgTable/KgTable.store.ts +390 -0
  204. package/component/KgTable/KgTable.tsx +1105 -0
  205. package/component/KgTable/index.ts +5 -0
  206. package/component/KgTable02/KgTable02.BodyCell.tsx +407 -0
  207. package/component/KgTable02/KgTable02.css +199 -0
  208. package/component/KgTable02/KgTable02.event.ts +224 -0
  209. package/component/KgTable02/KgTable02.hooks.ts +111 -0
  210. package/component/KgTable02/KgTable02.store.ts +186 -0
  211. package/component/KgTable02/KgTable02.tsx +865 -0
  212. package/component/KgTable02/index.ts +5 -0
  213. package/component/KgVar/KgVar.Factory.tsx +146 -0
  214. package/component/KgVar/KgVar.css +125 -0
  215. package/component/KgVar/KgVar.event.ts +122 -0
  216. package/component/KgVar/KgVar.hooks.ts +543 -0
  217. package/component/KgVar/KgVar.model.ts +86 -0
  218. package/component/KgVar/KgVar.store.ts +2966 -0
  219. package/component/KgVar/KgVar.tsx +276 -0
  220. package/component/KgVar/index.ts +6 -0
  221. package/component/KgVarConfig/KgVarConfig.hooks.ts +19 -0
  222. package/component/KgVarConfig/KgVarConfig.less +499 -0
  223. package/component/KgVarConfig/KgVarConfig.model.ts +56 -0
  224. package/component/KgVarConfig/KgVarConfig.store.ts +29 -0
  225. package/component/KgVarConfig/KgVarConfig.tsx +139 -0
  226. package/component/KgVarConfig/components/KgVarConfig.SelectFormIdModal.tsx +138 -0
  227. package/component/KgVarConfig/components/KgVarConfigModal.tsx +228 -0
  228. package/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.tsx +647 -0
  229. package/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.tsx +64 -0
  230. package/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.tsx +44 -0
  231. package/component/KgVarConfig/components/child/KgVarConfig.Modal.Child.tsx +265 -0
  232. package/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.tsx +64 -0
  233. package/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.tsx +408 -0
  234. package/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.tsx +399 -0
  235. package/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.tsx +44 -0
  236. package/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.tsx +336 -0
  237. package/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.tsx +165 -0
  238. package/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.tsx +44 -0
  239. package/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.tsx +209 -0
  240. package/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.tsx +567 -0
  241. package/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.tsx +398 -0
  242. package/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.tsx +44 -0
  243. package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.tsx +162 -0
  244. package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.tsx +119 -0
  245. package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.tsx +322 -0
  246. package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.tsx +222 -0
  247. package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.tsx +194 -0
  248. package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.tsx +134 -0
  249. package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.tsx +129 -0
  250. package/component/KgVarConfig/index.ts +6 -0
  251. package/component/KgWarehouse/KgWarehouse.event.ts +63 -0
  252. package/component/KgWarehouse/KgWarehouse.guard.ts +77 -0
  253. package/component/KgWarehouse/KgWarehouse.hooks.ts +92 -0
  254. package/component/KgWarehouse/KgWarehouse.less +78 -0
  255. package/component/KgWarehouse/KgWarehouse.store.ts +135 -0
  256. package/component/KgWarehouse/KgWarehouse.tsx +321 -0
  257. package/component/KgWarehouse/index.ts +5 -0
  258. package/component/KgWorkStation/KgWorkStation.css +8 -0
  259. package/component/KgWorkStation/KgWorkStation.event.ts +54 -0
  260. package/component/KgWorkStation/KgWorkStation.hooks.ts +59 -0
  261. package/component/KgWorkStation/KgWorkStation.store.ts +144 -0
  262. package/component/KgWorkStation/KgWorkStation.tsx +254 -0
  263. package/component/KgWorkStation/index.ts +3 -0
  264. package/component/KgYesOrNo/KgYesOrNo.less +3 -0
  265. package/component/KgYesOrNo/KgYesOrNo.tsx +50 -0
  266. package/component/index.ts +23 -0
  267. package/config/config.hooks.ts +32 -0
  268. package/config/config.store.ts +705 -0
  269. package/config/index.ts +347 -0
  270. package/i18n/cs_CZ.ts +1 -0
  271. package/i18n/en.ts +236 -0
  272. package/i18n/es_ES.ts +1 -0
  273. package/i18n/fr_FR.ts +1 -0
  274. package/i18n/i18n.setup.ts +61 -0
  275. package/i18n/index.ts +23 -0
  276. package/i18n/km_KH.ts +1 -0
  277. package/i18n/ko_KR.ts +1 -0
  278. package/i18n/vi_VN.ts +1 -0
  279. package/i18n/zh_CN.ts +237 -0
  280. package/index.ts +15 -0
  281. package/model/index.ts +1695 -0
  282. package/package.json +10 -64
  283. package/page/KgPageCircularShuttleMonitor/KgPageCircularShuttleMonitor.tsx +13 -0
  284. package/page/KgPageDda/KgPageDda.css +0 -0
  285. package/page/KgPageDda/KgPageDda.tsx +140 -0
  286. package/page/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.tsx +65 -0
  287. package/page/KgPageDda/components/KgPageDda.Create.Basic.tsx +219 -0
  288. package/page/KgPageDda/components/KgPageDda.Create.Button.tsx +427 -0
  289. package/page/KgPageDda/components/KgPageDda.Create.Menu.tsx +148 -0
  290. package/page/KgPageDda/components/KgPageDda.Create.Search.tsx +371 -0
  291. package/page/KgPageDda/components/KgPageDda.Create.Submit.tsx +362 -0
  292. package/page/KgPageDda/components/KgPageDda.Create.Table.tsx +372 -0
  293. package/page/KgPageDda/components/KgPageDda.Create.less +362 -0
  294. package/page/KgPageDda/components/KgPageDda.Create.store.ts +437 -0
  295. package/page/KgPageDda/components/KgPageDda.Create.tsx +330 -0
  296. package/page/KgPageDda/index.ts +4 -0
  297. package/page/KgPageSqlClient/KgPageSqlClient.tsx +14 -0
  298. package/page/KgPageSqlClient/components/KgSqlClient.Editor.tsx +84 -0
  299. package/page/KgPageSqlClient/components/KgSqlClient.ResultTab.tsx +145 -0
  300. package/page/KgPageSqlClient/components/KgSqlClient.Toolbar.Top.tsx +132 -0
  301. package/page/KgPageSqlClient/components/KgSqlClient.css +171 -0
  302. package/page/KgPageSqlClient/components/KgSqlClient.tsx +110 -0
  303. package/page/index.ts +55 -0
  304. package/project/build/config/themeConfig.ts +67 -0
  305. package/project/build/generate/generateModifyVars.ts +40 -0
  306. package/project/src/api/sys/menu.ts +37 -0
  307. package/project/src/api/sys/model/menuModel.ts +17 -0
  308. package/project/src/api/sys/model/userModel.ts +58 -0
  309. package/project/src/components/Application/src/useAppContext.ts +17 -0
  310. package/project/src/components/index.ts +3 -0
  311. package/project/src/enums/CompTypeEnum.ts +32 -0
  312. package/project/src/enums/DateTypeEnum.ts +8 -0
  313. package/project/src/enums/appEnum.ts +58 -0
  314. package/project/src/enums/breakpointEnum.ts +28 -0
  315. package/project/src/enums/cacheEnum.ts +39 -0
  316. package/project/src/enums/exceptionEnum.ts +27 -0
  317. package/project/src/enums/httpEnum.ts +50 -0
  318. package/project/src/enums/jeecgEnum.ts +23 -0
  319. package/project/src/enums/menuEnum.ts +50 -0
  320. package/project/src/enums/pageEnum.ts +19 -0
  321. package/project/src/enums/roleEnum.ts +7 -0
  322. package/project/src/enums/sizeEnum.ts +27 -0
  323. package/project/src/hooks/component/useFormItem.ts +44 -0
  324. package/project/src/hooks/component/usePageContext.ts +18 -0
  325. package/project/src/hooks/core/onMountedOrActivated.ts +18 -0
  326. package/project/src/hooks/core/useAttrs.ts +41 -0
  327. package/project/src/hooks/core/useContext.ts +30 -0
  328. package/project/src/hooks/core/useRefs.ts +16 -0
  329. package/project/src/hooks/core/useTimeout.ts +45 -0
  330. package/project/src/hooks/event/useBreakpoint.ts +89 -0
  331. package/project/src/hooks/event/useEventListener.ts +52 -0
  332. package/project/src/hooks/event/useIntersectionObserver.ts +42 -0
  333. package/project/src/hooks/event/useScrollTo.ts +59 -0
  334. package/project/src/hooks/event/useWindowSizeFn.ts +36 -0
  335. package/project/src/hooks/index.ts +26 -0
  336. package/project/src/hooks/jeecg/useAdaptiveWidth.ts +82 -0
  337. package/project/src/hooks/setting/index.ts +27 -0
  338. package/project/src/hooks/web/useAppInject.ts +10 -0
  339. package/project/src/hooks/web/useContentHeight.ts +175 -0
  340. package/project/src/hooks/web/useCopyToClipboard.ts +70 -0
  341. package/project/src/hooks/web/useDesign.ts +10 -0
  342. package/project/src/hooks/web/usePage.ts +87 -0
  343. package/project/src/hooks/web/usePagination.ts +31 -0
  344. package/project/src/hooks/web/useWebSocket.ts +95 -0
  345. package/project/src/layouts/default/content/useContentContext.ts +17 -0
  346. package/project/src/layouts/default/content/useContentViewHeight.ts +42 -0
  347. package/project/src/locales/helper.ts +36 -0
  348. package/project/src/locales/setupI18n.ts +43 -0
  349. package/project/src/locales/useLocale.ts +77 -0
  350. package/project/src/router/constant2.ts +5 -0
  351. package/project/src/router/types.ts +73 -0
  352. package/project/src/settings/componentSetting.ts +88 -0
  353. package/project/src/settings/designSetting.ts +14 -0
  354. package/project/src/settings/encryptionSetting.ts +11 -0
  355. package/project/src/settings/projectSetting.ts +194 -0
  356. package/project/src/store/modules/locale.ts +49 -0
  357. package/project/src/utils/auth/index.ts +42 -0
  358. package/project/src/utils/bem.ts +45 -0
  359. package/project/src/utils/cache/index.ts +31 -0
  360. package/project/src/utils/cache/memory.ts +99 -0
  361. package/project/src/utils/cache/persistent.ts +132 -0
  362. package/project/src/utils/cache/storageCache.ts +102 -0
  363. package/project/src/utils/cipher.ts +54 -0
  364. package/project/src/utils/color.ts +93 -0
  365. package/project/src/utils/common/compUtils.ts +292 -0
  366. package/project/src/utils/common/functionUtils.ts +14 -0
  367. package/project/src/utils/dateUtil.ts +14 -0
  368. package/project/src/utils/domUtils.ts +158 -0
  369. package/project/src/utils/encryption/signMd5Utils.ts +122 -0
  370. package/project/src/utils/env.ts +40 -0
  371. package/project/src/utils/event/index.ts +39 -0
  372. package/project/src/utils/factory/createAsyncComponent.tsx +50 -0
  373. package/project/src/utils/file/base64Conver.ts +15 -0
  374. package/project/src/utils/file/download.ts +37 -0
  375. package/project/src/utils/helper/treeHelper.ts +145 -0
  376. package/project/src/utils/helper/tsxHelper.ts +35 -0
  377. package/project/src/utils/index.index.ts +158 -0
  378. package/project/src/utils/is.ts +85 -0
  379. package/project/src/utils/mitt.ts +101 -0
  380. package/project/src/utils/propTypes.ts +34 -0
  381. package/project/src/utils/props.ts +139 -0
  382. package/project/src/utils/uuid.ts +29 -0
  383. package/project/types/axios.ts +57 -0
  384. package/project/types/config.ts +180 -0
  385. package/project/types/global.d.ts +191 -0
  386. package/project/types/store.ts +60 -0
  387. package/project/types/utils.ts +5 -0
  388. package/service/http-client.ts +257 -0
  389. package/type/env.d.ts +7 -0
  390. package/type/index.d.ts +1 -0
  391. package/util/ant-design-vue.ts +146 -0
  392. package/util/event.util.ts +24 -0
  393. package/util/kg-auth.util.ts +16 -0
  394. package/util/kg-route.util.ts +25 -0
  395. package/util/kg.util.tsx +2997 -0
  396. package/util/tsx.helper.tsx +45 -0
  397. package/CHANGELOG.md +0 -470
  398. package/README.md +0 -10
  399. package/dist/aim-outlined.8d38a0f9.mjs +0 -8
  400. package/dist/align-left-outlined.579b01c6.mjs +0 -8
  401. package/dist/audit-outlined.4555f723.mjs +0 -8
  402. package/dist/bubble-loading.cd2fe007.mjs +0 -8
  403. package/dist/bulb-outlined.a5bf22d8.mjs +0 -8
  404. package/dist/card-text-outline.6e053122.mjs +0 -8
  405. package/dist/caret-down-outlined.c0564a3f.mjs +0 -8
  406. package/dist/caret-left-outlined.35b1d7d1.mjs +0 -8
  407. package/dist/caret-right-filled.dbbda237.mjs +0 -8
  408. package/dist/caret-right-outlined-Btgsw6a_.0434903b.mjs +0 -8
  409. package/dist/caret-right-outlined.12fe6699.mjs +0 -8
  410. package/dist/caret-up-outlined.81b559ad.mjs +0 -8
  411. package/dist/check-box-outline-blank.d01a2055.mjs +0 -8
  412. package/dist/check-circle-outlined.b219949f.mjs +0 -8
  413. package/dist/check-outlined.59c42074.mjs +0 -8
  414. package/dist/check-square-outlined.233589d8.mjs +0 -8
  415. package/dist/checkbox-indeterminate.e5386a53.mjs +0 -8
  416. package/dist/clock-circle-outline.b9d0b3dc.mjs +0 -8
  417. package/dist/close-circle-outlined.85f75690.mjs +0 -8
  418. package/dist/close-outlined-DMcSQWxQ.5c3bee6f.mjs +0 -8
  419. package/dist/close-outlined.5757472a.mjs +0 -8
  420. package/dist/collapse-all-rounded.26ee73fc.mjs +0 -8
  421. package/dist/control-outlined.d66ac4d2.mjs +0 -8
  422. package/dist/copy-filled.a3dcd299.mjs +0 -8
  423. package/dist/copy-outlined.6a695d8a.mjs +0 -8
  424. package/dist/delete-outlined.20afb717.mjs +0 -8
  425. package/dist/delete-twotone.1d40696a.mjs +0 -8
  426. package/dist/double-right-outlined.f057a6b2.mjs +0 -8
  427. package/dist/down-circle-outlined.8ba93393.mjs +0 -8
  428. package/dist/download-outlined.e78b5364.mjs +0 -8
  429. package/dist/edit-outlined.0aae2217.mjs +0 -8
  430. package/dist/edit-twotone.67c952fa.mjs +0 -8
  431. package/dist/email-resend-outline.780506de.mjs +0 -8
  432. package/dist/exception-outlined.8c0003a2.mjs +0 -8
  433. package/dist/exclamation-circle-outlined-DZrXCnvM.d94561db.mjs +0 -8
  434. package/dist/expand-all-rounded.e01e6cb9.mjs +0 -8
  435. package/dist/eye-invisible-outlined.5f8d6151.mjs +0 -8
  436. package/dist/eye-outlined.b25b4d28.mjs +0 -8
  437. package/dist/file-text-outline.2fbccab6.mjs +0 -8
  438. package/dist/fit-screen-outline.7341560f.mjs +0 -8
  439. package/dist/fullscreen-exit-outlined-X1iYkFc4.a1640595.mjs +0 -8
  440. package/dist/fullscreen-exit-outlined.b77fa876.mjs +0 -8
  441. package/dist/fullscreen-outlined-DDBrsRcy.b9f9d4a1.mjs +0 -8
  442. package/dist/fullscreen-outlined.cd572ef8.mjs +0 -8
  443. package/dist/holder-outlined.9e698750.mjs +0 -8
  444. package/dist/index.css +0 -1
  445. package/dist/info-circle-outlined.7ddbd554.mjs +0 -8
  446. package/dist/kengic-vue.js +0 -224291
  447. package/dist/key-return-thin.ce6f074c.mjs +0 -8
  448. package/dist/loading-outlined.13a15197.mjs +0 -8
  449. package/dist/more-outlined.8e1202ac.mjs +0 -8
  450. package/dist/one-to-one-outlined.ac265beb.mjs +0 -8
  451. package/dist/palette-swatch-variant.f7258843.mjs +0 -8
  452. package/dist/partition-outlined.1bcf4f37.mjs +0 -8
  453. package/dist/pause-circle-outlined.cd534f5f.mjs +0 -8
  454. package/dist/pause-outlined.fca0d0f9.mjs +0 -8
  455. package/dist/pause-rounded.1ed7cc39.mjs +0 -8
  456. package/dist/play-arrow-rounded.90fc4173.mjs +0 -8
  457. package/dist/plus-outlined.bdaa6481.mjs +0 -8
  458. package/dist/printer-outlined.a8d0d92b.mjs +0 -8
  459. package/dist/profile-outlined.1059fb0d.mjs +0 -8
  460. package/dist/project/build/config/themeConfig.ts +0 -67
  461. package/dist/project/build/generate/generateModifyVars.ts +0 -39
  462. package/dist/project/index.ts +0 -1
  463. package/dist/project/types/global.d.ts +0 -184
  464. package/dist/release-gate-check.8c1ba629.mjs +0 -8
  465. package/dist/reload-outlined.d320578b.mjs +0 -8
  466. package/dist/retweet-outlined.bfa9b123.mjs +0 -8
  467. package/dist/save-as-outline-rounded.c65d61b2.mjs +0 -8
  468. package/dist/save-outline-rounded.c9c3f880.mjs +0 -8
  469. package/dist/search-outlined-Od1M_oxf.71fb0c01.mjs +0 -8
  470. package/dist/search-outlined.ba5c5a3f.mjs +0 -8
  471. package/dist/setting-outlined.a3caf743.mjs +0 -8
  472. package/dist/src/api/WMS/Controllers/DescriptionController/List.d.ts +0 -51
  473. package/dist/src/api/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +0 -16
  474. package/dist/src/api/WMS/Controllers/DescriptionController/index.d.ts +0 -2
  475. package/dist/src/api/WMS/Controllers/SqlClientController/Execute.d.ts +0 -16
  476. package/dist/src/api/WMS/Controllers/SqlClientController/ExecutePage.d.ts +0 -16
  477. package/dist/src/api/WMS/Controllers/SqlClientController/index.d.ts +0 -2
  478. package/dist/src/api/WMS/Controllers/SysPermissionController/List.d.ts +0 -73
  479. package/dist/src/api/WMS/Controllers/SysPermissionController/index.d.ts +0 -1
  480. package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +0 -16
  481. package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/ListByFormId.d.ts +0 -16
  482. package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +0 -18
  483. package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/index.d.ts +0 -1
  484. package/dist/src/api/WMS/Controllers/VarController/GetAll.d.ts +0 -16
  485. package/dist/src/api/WMS/Controllers/VarController/index.d.ts +0 -1
  486. package/dist/src/api/WMS/Controllers/VarDdaController/Create.d.ts +0 -16
  487. package/dist/src/api/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +0 -16
  488. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +0 -16
  489. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +0 -16
  490. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +0 -16
  491. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +0 -16
  492. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +0 -16
  493. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +0 -16
  494. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +0 -16
  495. package/dist/src/api/WMS/Controllers/VarDdaController/index.d.ts +0 -9
  496. package/dist/src/api/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +0 -19
  497. package/dist/src/api/WMS/Controllers/VarGridMasterController/Update.d.ts +0 -16
  498. package/dist/src/api/WMS/Controllers/VarGridMasterController/index.d.ts +0 -2
  499. package/dist/src/api/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +0 -19
  500. package/dist/src/api/WMS/Controllers/VarProfileMasterController/index.d.ts +0 -1
  501. package/dist/src/api/WMS/Controllers/VarVariableController/Delete.d.ts +0 -16
  502. package/dist/src/api/WMS/Controllers/VarVariableController/index.d.ts +0 -1
  503. package/dist/src/api/WMS/Controllers/WarehouseController/ListVO.d.ts +0 -25
  504. package/dist/src/api/WMS/Controllers/WorkstationController/List.d.ts +0 -25
  505. package/dist/src/api/WMS/Controllers/WorkstationController/index.d.ts +0 -1
  506. package/dist/src/api/WMS/index.d.ts +0 -2
  507. package/dist/src/api/WMS/models.d.ts +0 -1128
  508. package/dist/src/api/api.d.ts +0 -1
  509. package/dist/src/api/def.d.ts +0 -1
  510. package/dist/src/api/index.d.ts +0 -2
  511. package/dist/src/component/KgAppSelect/KgAppSelect.d.ts +0 -46
  512. package/dist/src/component/KgAppSelect/KgAppSelect.event.d.ts +0 -31
  513. package/dist/src/component/KgAppSelect/KgAppSelect.hooks.d.ts +0 -18
  514. package/dist/src/component/KgAppSelect/KgAppSelect.store.d.ts +0 -33
  515. package/dist/src/component/KgAppSelect/index.d.ts +0 -3
  516. package/dist/src/component/KgButton/KgButton.Copy.d.ts +0 -40
  517. package/dist/src/component/KgButton/KgButton.Create.d.ts +0 -40
  518. package/dist/src/component/KgButton/KgButton.Delete.d.ts +0 -40
  519. package/dist/src/component/KgButton/KgButton.Export.d.ts +0 -40
  520. package/dist/src/component/KgButton/KgButton.Import.d.ts +0 -40
  521. package/dist/src/component/KgButton/KgButton.ImportTemplate.d.ts +0 -40
  522. package/dist/src/component/KgButton/KgButton.Item.d.ts +0 -39
  523. package/dist/src/component/KgButton/KgButton.Other.d.ts +0 -40
  524. package/dist/src/component/KgButton/KgButton.Search.d.ts +0 -40
  525. package/dist/src/component/KgButton/KgButton.Update.d.ts +0 -40
  526. package/dist/src/component/KgButton/KgButton.d.ts +0 -39
  527. package/dist/src/component/KgButton/KgButton.event.d.ts +0 -81
  528. package/dist/src/component/KgButton/KgButton.hooks.d.ts +0 -67
  529. package/dist/src/component/KgButton/KgButton.model.d.ts +0 -31
  530. package/dist/src/component/KgButton/KgButton.store.d.ts +0 -92
  531. package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +0 -100
  532. package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Fullscreen.d.ts +0 -37
  533. package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Mode.d.ts +0 -7
  534. package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.OverviewScale.d.ts +0 -37
  535. package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +0 -27
  536. package/dist/src/component/KgCanvas/KgCanvas.d.ts +0 -232
  537. package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +0 -216
  538. package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +0 -100
  539. package/dist/src/component/KgCanvas/KgCanvas.model.d.ts +0 -27
  540. package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +0 -17
  541. package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +0 -9
  542. package/dist/src/component/KgCanvas/index.d.ts +0 -4
  543. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.AreaSelect.d.ts +0 -5
  544. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.d.ts +0 -5
  545. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.service.d.ts +0 -63
  546. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Legend.d.ts +0 -5
  547. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Offline.d.ts +0 -5
  548. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Setting.d.ts +0 -5
  549. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Log.d.ts +0 -5
  550. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.d.ts +0 -33
  551. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.d.ts +0 -5
  552. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.hooks.d.ts +0 -29
  553. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.model.d.ts +0 -127
  554. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.store.d.ts +0 -354
  555. package/dist/src/component/KgCircularShuttleMonitor/index.d.ts +0 -3
  556. package/dist/src/component/KgForm/KgForm.d.ts +0 -413
  557. package/dist/src/component/KgForm/KgForm.event.d.ts +0 -202
  558. package/dist/src/component/KgForm/KgForm.hooks.d.ts +0 -92
  559. package/dist/src/component/KgForm/KgForm.store.d.ts +0 -23
  560. package/dist/src/component/KgForm/index.d.ts +0 -4
  561. package/dist/src/component/KgForm.Item/KgForm.Item.Addon.DynamicQueryOperator.d.ts +0 -49
  562. package/dist/src/component/KgForm.Item/KgForm.Item.Addon.Lookup.Modal.d.ts +0 -16
  563. package/dist/src/component/KgForm.Item/KgForm.Item.Addon.Lookup.d.ts +0 -31
  564. package/dist/src/component/KgForm.Item/KgForm.Item.Checkbox.d.ts +0 -98
  565. package/dist/src/component/KgForm.Item/KgForm.Item.CheckboxGroup.d.ts +0 -95
  566. package/dist/src/component/KgForm.Item/KgForm.Item.Date.d.ts +0 -95
  567. package/dist/src/component/KgForm.Item/KgForm.Item.DateRange.d.ts +0 -95
  568. package/dist/src/component/KgForm.Item/KgForm.Item.Image.d.ts +0 -90
  569. package/dist/src/component/KgForm.Item/KgForm.Item.Input.d.ts +0 -94
  570. package/dist/src/component/KgForm.Item/KgForm.Item.InputNumber.d.ts +0 -94
  571. package/dist/src/component/KgForm.Item/KgForm.Item.InputPassword.d.ts +0 -94
  572. package/dist/src/component/KgForm.Item/KgForm.Item.Link.d.ts +0 -93
  573. package/dist/src/component/KgForm.Item/KgForm.Item.RadioGroup.d.ts +0 -96
  574. package/dist/src/component/KgForm.Item/KgForm.Item.Select.d.ts +0 -95
  575. package/dist/src/component/KgForm.Item/KgForm.Item.Select.service.d.ts +0 -28
  576. package/dist/src/component/KgForm.Item/KgForm.Item.Switch.d.ts +0 -94
  577. package/dist/src/component/KgForm.Item/KgForm.Item.TextArea.d.ts +0 -94
  578. package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +0 -95
  579. package/dist/src/component/KgForm.Item/KgForm.Item.model.d.ts +0 -111
  580. package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +0 -17
  581. package/dist/src/component/KgImage/KgImage.d.ts +0 -100
  582. package/dist/src/component/KgLayoutHeader/KgLayoutHeader.Locale.d.ts +0 -38
  583. package/dist/src/component/KgLayoutHeader/KgLayoutHeader.hooks.d.ts +0 -4
  584. package/dist/src/component/KgLayoutHeader/index.d.ts +0 -2
  585. package/dist/src/component/KgModal/KgModal.d.ts +0 -817
  586. package/dist/src/component/KgModal/KgModal.model.d.ts +0 -8
  587. package/dist/src/component/KgModal/KgModal.service.d.ts +0 -37
  588. package/dist/src/component/KgModal/KgModalHeaderButtons.d.ts +0 -92
  589. package/dist/src/component/KgModal02/KgModal02.d.ts +0 -470
  590. package/dist/src/component/KgModal02/KgModal02.model.d.ts +0 -1
  591. package/dist/src/component/KgProgressA/KgProgressA.d.ts +0 -85
  592. package/dist/src/component/KgResizable/KgResizable.d.ts +0 -119
  593. package/dist/src/component/KgResizable/KgResizable.service.d.ts +0 -12
  594. package/dist/src/component/KgSearch/KgSearch.d.ts +0 -26
  595. package/dist/src/component/KgSearch/KgSearch.event.d.ts +0 -31
  596. package/dist/src/component/KgSearch/KgSearch.hooks.d.ts +0 -72
  597. package/dist/src/component/KgSearch/KgSearch.service.d.ts +0 -32
  598. package/dist/src/component/KgSearch/KgSearch.store.d.ts +0 -103
  599. package/dist/src/component/KgSearch/index.d.ts +0 -3
  600. package/dist/src/component/KgSimulator/KgSimulator.Canvas.Title.d.ts +0 -11
  601. package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +0 -11
  602. package/dist/src/component/KgSimulator/KgSimulator.Canvas.service.d.ts +0 -80
  603. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.d.ts +0 -36
  604. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.d.ts +0 -36
  605. package/dist/src/component/KgSimulator/KgSimulator.Menu.d.ts +0 -4
  606. package/dist/src/component/KgSimulator/KgSimulator.Panel.Prefab.d.ts +0 -4
  607. package/dist/src/component/KgSimulator/KgSimulator.Panel.Property.d.ts +0 -4
  608. package/dist/src/component/KgSimulator/KgSimulator.Panel.Scene.d.ts +0 -4
  609. package/dist/src/component/KgSimulator/KgSimulator.Panel.d.ts +0 -97
  610. package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +0 -108
  611. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.d.ts +0 -9
  612. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Property.d.ts +0 -9
  613. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Scene.d.ts +0 -9
  614. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.d.ts +0 -113
  615. package/dist/src/component/KgSimulator/KgSimulator.d.ts +0 -33
  616. package/dist/src/component/KgSimulator/KgSimulator.event.d.ts +0 -93
  617. package/dist/src/component/KgSimulator/KgSimulator.hooks.d.ts +0 -103
  618. package/dist/src/component/KgSimulator/KgSimulator.icons.d.ts +0 -10
  619. package/dist/src/component/KgSimulator/KgSimulator.model.d.ts +0 -1502
  620. package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +0 -474
  621. package/dist/src/component/KgSimulator/KgSimulator.utils.d.ts +0 -21
  622. package/dist/src/component/KgSimulator/index.d.ts +0 -3
  623. package/dist/src/component/KgSubmit/KgSubmit.d.ts +0 -21
  624. package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +0 -135
  625. package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +0 -358
  626. package/dist/src/component/KgSubmit/KgSubmit.model.d.ts +0 -57
  627. package/dist/src/component/KgSubmit/KgSubmit.service.d.ts +0 -29
  628. package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +0 -112
  629. package/dist/src/component/KgSubmit/index.d.ts +0 -4
  630. package/dist/src/component/KgTable/KgTable.BodyCell.d.ts +0 -60
  631. package/dist/src/component/KgTable/KgTable.HeadCell.d.ts +0 -51
  632. package/dist/src/component/KgTable/KgTable.Info.d.ts +0 -57
  633. package/dist/src/component/KgTable/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -4
  634. package/dist/src/component/KgTable/KgTable.Setting.d.ts +0 -20
  635. package/dist/src/component/KgTable/KgTable.Setting.service.d.ts +0 -22
  636. package/dist/src/component/KgTable/KgTable.d.ts +0 -39
  637. package/dist/src/component/KgTable/KgTable.event.d.ts +0 -111
  638. package/dist/src/component/KgTable/KgTable.hooks.d.ts +0 -135
  639. package/dist/src/component/KgTable/KgTable.model.d.ts +0 -65
  640. package/dist/src/component/KgTable/KgTable.service.d.ts +0 -34
  641. package/dist/src/component/KgTable/KgTable.store.d.ts +0 -91
  642. package/dist/src/component/KgTable/index.d.ts +0 -4
  643. package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +0 -72
  644. package/dist/src/component/KgTable02/KgTable02.d.ts +0 -46
  645. package/dist/src/component/KgTable02/KgTable02.event.d.ts +0 -123
  646. package/dist/src/component/KgTable02/KgTable02.hooks.d.ts +0 -62
  647. package/dist/src/component/KgTable02/KgTable02.store.d.ts +0 -62
  648. package/dist/src/component/KgTable02/index.d.ts +0 -4
  649. package/dist/src/component/KgVar/KgVar.Factory.d.ts +0 -106
  650. package/dist/src/component/KgVar/KgVar.d.ts +0 -120
  651. package/dist/src/component/KgVar/KgVar.event.d.ts +0 -75
  652. package/dist/src/component/KgVar/KgVar.hooks.d.ts +0 -307
  653. package/dist/src/component/KgVar/KgVar.model.d.ts +0 -70
  654. package/dist/src/component/KgVar/KgVar.store.d.ts +0 -269
  655. package/dist/src/component/KgVar/index.d.ts +0 -5
  656. package/dist/src/component/KgVarConfig/KgVarConfig.d.ts +0 -3
  657. package/dist/src/component/KgVarConfig/KgVarConfig.hooks.d.ts +0 -3
  658. package/dist/src/component/KgVarConfig/KgVarConfig.model.d.ts +0 -42
  659. package/dist/src/component/KgVarConfig/KgVarConfig.store.d.ts +0 -16
  660. package/dist/src/component/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts +0 -27
  661. package/dist/src/component/KgVarConfig/components/KgVarConfigModal.d.ts +0 -53
  662. package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +0 -7
  663. package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -7
  664. package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +0 -5
  665. package/dist/src/component/KgVarConfig/components/child/KgVarConfig.Modal.Child.d.ts +0 -7
  666. package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts +0 -7
  667. package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +0 -7
  668. package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +0 -17
  669. package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts +0 -5
  670. package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts +0 -7
  671. package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +0 -7
  672. package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +0 -5
  673. package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts +0 -7
  674. package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts +0 -7
  675. package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +0 -23
  676. package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts +0 -5
  677. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.d.ts +0 -2
  678. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.d.ts +0 -2
  679. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +0 -2
  680. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +0 -2
  681. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +0 -2
  682. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +0 -2
  683. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +0 -2
  684. package/dist/src/component/KgVarConfig/index.d.ts +0 -3
  685. package/dist/src/component/KgWarehouse/KgWarehouse.d.ts +0 -50
  686. package/dist/src/component/KgWarehouse/KgWarehouse.event.d.ts +0 -30
  687. package/dist/src/component/KgWarehouse/KgWarehouse.guard.d.ts +0 -8
  688. package/dist/src/component/KgWarehouse/KgWarehouse.hooks.d.ts +0 -41
  689. package/dist/src/component/KgWarehouse/KgWarehouse.store.d.ts +0 -27
  690. package/dist/src/component/KgWarehouse/index.d.ts +0 -4
  691. package/dist/src/component/KgYesOrNo/KgYesOrNo.d.ts +0 -60
  692. package/dist/src/component/index.d.ts +0 -21
  693. package/dist/src/config/config.hooks.d.ts +0 -10
  694. package/dist/src/config/config.store.d.ts +0 -307
  695. package/dist/src/config/index.d.ts +0 -63
  696. package/dist/src/const/const.model.d.ts +0 -1768
  697. package/dist/src/const/form-id.const.d.ts +0 -44
  698. package/dist/src/const/index.d.ts +0 -2
  699. package/dist/src/i18n/cs_CZ.d.ts +0 -2
  700. package/dist/src/i18n/en.d.ts +0 -237
  701. package/dist/src/i18n/es_ES.d.ts +0 -2
  702. package/dist/src/i18n/fr_FR.d.ts +0 -2
  703. package/dist/src/i18n/i18n.setup.d.ts +0 -22
  704. package/dist/src/i18n/index.d.ts +0 -3
  705. package/dist/src/i18n/km_KH.d.ts +0 -2
  706. package/dist/src/i18n/ko_KR.d.ts +0 -2
  707. package/dist/src/i18n/vi_VN.d.ts +0 -2
  708. package/dist/src/i18n/zh_CN.d.ts +0 -238
  709. package/dist/src/index.d.ts +0 -12
  710. package/dist/src/page/KgPageCircularShuttleMonitor/KgPageCircularShuttleMonitor.d.ts +0 -11
  711. package/dist/src/page/KgPageDda/KgPageDda.d.ts +0 -8
  712. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +0 -32
  713. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Basic.d.ts +0 -7
  714. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Button.d.ts +0 -7
  715. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Menu.d.ts +0 -7
  716. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Search.d.ts +0 -7
  717. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Submit.d.ts +0 -7
  718. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Table.d.ts +0 -7
  719. package/dist/src/page/KgPageDda/components/KgPageDda.Create.d.ts +0 -33
  720. package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +0 -39
  721. package/dist/src/page/KgPageDda/index.d.ts +0 -5
  722. package/dist/src/page/KgPageSqlClient/KgPageSqlClient.d.ts +0 -12
  723. package/dist/src/page/KgPageSqlClient/components/KgSqlClient.Editor.d.ts +0 -13
  724. package/dist/src/page/KgPageSqlClient/components/KgSqlClient.ResultTab.d.ts +0 -36
  725. package/dist/src/page/KgPageSqlClient/components/KgSqlClient.Toolbar.Top.d.ts +0 -7
  726. package/dist/src/page/KgPageSqlClient/components/KgSqlClient.d.ts +0 -5
  727. package/dist/src/page/index.d.ts +0 -8
  728. package/dist/src/project/build/getConfigFileName.d.ts +0 -5
  729. package/dist/src/project/build/index.d.ts +0 -1
  730. package/dist/src/project/src/api/sys/menu.d.ts +0 -4
  731. package/dist/src/project/src/api/sys/model/menuModel.d.ts +0 -15
  732. package/dist/src/project/src/api/sys/model/userModel.d.ts +0 -46
  733. package/dist/src/project/src/components/Application/src/useAppContext.d.ts +0 -9
  734. package/dist/src/project/src/components/index.d.ts +0 -2
  735. package/dist/src/project/src/enums/CompTypeEnum.d.ts +0 -19
  736. package/dist/src/project/src/enums/DateTypeEnum.d.ts +0 -8
  737. package/dist/src/project/src/enums/appEnum.d.ts +0 -40
  738. package/dist/src/project/src/enums/breakpointEnum.d.ts +0 -18
  739. package/dist/src/project/src/enums/cacheEnum.d.ts +0 -18
  740. package/dist/src/project/src/enums/exceptionEnum.d.ts +0 -17
  741. package/dist/src/project/src/enums/httpEnum.d.ts +0 -38
  742. package/dist/src/project/src/enums/jeecgEnum.d.ts +0 -16
  743. package/dist/src/project/src/enums/menuEnum.d.ts +0 -35
  744. package/dist/src/project/src/enums/pageEnum.d.ts +0 -14
  745. package/dist/src/project/src/enums/roleEnum.d.ts +0 -4
  746. package/dist/src/project/src/enums/sizeEnum.d.ts +0 -18
  747. package/dist/src/project/src/hooks/component/useFormItem.d.ts +0 -2
  748. package/dist/src/project/src/hooks/component/usePageContext.d.ts +0 -10
  749. package/dist/src/project/src/hooks/core/onMountedOrActivated.d.ts +0 -1
  750. package/dist/src/project/src/hooks/core/useAttrs.d.ts +0 -9
  751. package/dist/src/project/src/hooks/core/useContext.d.ts +0 -11
  752. package/dist/src/project/src/hooks/core/useRefs.d.ts +0 -2
  753. package/dist/src/project/src/hooks/core/useTimeout.d.ts +0 -10
  754. package/dist/src/project/src/hooks/event/useBreakpoint.d.ts +0 -22
  755. package/dist/src/project/src/hooks/event/useEventListener.d.ts +0 -14
  756. package/dist/src/project/src/hooks/event/useIntersectionObserver.d.ts +0 -13
  757. package/dist/src/project/src/hooks/event/useScrollTo.d.ts +0 -10
  758. package/dist/src/project/src/hooks/event/useWindowSizeFn.d.ts +0 -7
  759. package/dist/src/project/src/hooks/index.d.ts +0 -21
  760. package/dist/src/project/src/hooks/jeecg/useAdaptiveWidth.d.ts +0 -18
  761. package/dist/src/project/src/hooks/setting/index.d.ts +0 -2
  762. package/dist/src/project/src/hooks/web/useAppInject.d.ts +0 -3
  763. package/dist/src/project/src/hooks/web/useContentHeight.d.ts +0 -24
  764. package/dist/src/project/src/hooks/web/useCopyToClipboard.d.ts +0 -10
  765. package/dist/src/project/src/hooks/web/useDesign.d.ts +0 -4
  766. package/dist/src/project/src/hooks/web/usePage.d.ts +0 -10
  767. package/dist/src/project/src/hooks/web/usePagination.d.ts +0 -7
  768. package/dist/src/project/src/hooks/web/useWebSocket.d.ts +0 -18
  769. package/dist/src/project/src/layouts/default/content/useContentContext.d.ts +0 -9
  770. package/dist/src/project/src/layouts/default/content/useContentViewHeight.d.ts +0 -7
  771. package/dist/src/project/src/locales/helper.d.ts +0 -5
  772. package/dist/src/project/src/locales/setupI18n.d.ts +0 -4
  773. package/dist/src/project/src/locales/useLocale.d.ts +0 -11
  774. package/dist/src/project/src/router/constant2.d.ts +0 -3
  775. package/dist/src/project/src/router/types.d.ts +0 -61
  776. package/dist/src/project/src/settings/componentSetting.d.ts +0 -44
  777. package/dist/src/project/src/settings/designSetting.d.ts +0 -6
  778. package/dist/src/project/src/settings/encryptionSetting.d.ts +0 -6
  779. package/dist/src/project/src/settings/projectSetting.d.ts +0 -3
  780. package/dist/src/project/src/store/modules/locale.d.ts +0 -38
  781. package/dist/src/project/src/utils/auth/index.d.ts +0 -19
  782. package/dist/src/project/src/utils/bem.d.ts +0 -15
  783. package/dist/src/project/src/utils/cache/index.d.ts +0 -7
  784. package/dist/src/project/src/utils/cache/memory.d.ts +0 -22
  785. package/dist/src/project/src/utils/cache/persistent.d.ts +0 -33
  786. package/dist/src/project/src/utils/cache/storageCache.d.ts +0 -8
  787. package/dist/src/project/src/utils/cipher.d.ts +0 -19
  788. package/dist/src/project/src/utils/color.d.ts +0 -29
  789. package/dist/src/project/src/utils/common/compUtils.d.ts +0 -87
  790. package/dist/src/project/src/utils/common/functionUtils.d.ts +0 -6
  791. package/dist/src/project/src/utils/dateUtil.d.ts +0 -4
  792. package/dist/src/project/src/utils/domUtils.d.ts +0 -28
  793. package/dist/src/project/src/utils/encryption/signMd5Utils.d.ts +0 -29
  794. package/dist/src/project/src/utils/env.d.ts +0 -16
  795. package/dist/src/project/src/utils/event/index.d.ts +0 -3
  796. package/dist/src/project/src/utils/factory/createAsyncComponent.d.ts +0 -9
  797. package/dist/src/project/src/utils/file/base64Conver.d.ts +0 -4
  798. package/dist/src/project/src/utils/file/download.d.ts +0 -9
  799. package/dist/src/project/src/utils/helper/treeHelper.d.ts +0 -34
  800. package/dist/src/project/src/utils/helper/tsxHelper.d.ts +0 -13
  801. package/dist/src/project/src/utils/index.index.d.ts +0 -42
  802. package/dist/src/project/src/utils/is.d.ts +0 -17
  803. package/dist/src/project/src/utils/mitt.d.ts +0 -26
  804. package/dist/src/project/src/utils/propTypes.d.ts +0 -9
  805. package/dist/src/project/src/utils/props.d.ts +0 -68
  806. package/dist/src/project/src/utils/uuid.d.ts +0 -2
  807. package/dist/src/project/types/axios.d.ts +0 -35
  808. package/dist/src/project/types/config.d.ts +0 -119
  809. package/dist/src/project/types/store.d.ts +0 -43
  810. package/dist/src/project/types/utils.d.ts +0 -4
  811. package/dist/src/service/http-client.d.ts +0 -98
  812. package/dist/src/util/ant-design-vue.d.ts +0 -347
  813. package/dist/src/util/event.util.d.ts +0 -15
  814. package/dist/src/util/kg-auth.util.d.ts +0 -12
  815. package/dist/src/util/kg-route.util.d.ts +0 -18
  816. package/dist/src/util/kg.util.d.ts +0 -349
  817. package/dist/src/util/tsx.helper.d.ts +0 -23
  818. package/dist/stop-outlined.9f2c4f61.mjs +0 -8
  819. package/dist/stop.ea3dde55.mjs +0 -8
  820. package/dist/three-dots-loading-bIlrTJYR.f189f620.mjs +0 -8
  821. package/dist/upload-outlined.c576b26a.mjs +0 -8
  822. /package/{dist/src/api/WMS/Controllers/VarConfigDescriptionController/index.d.ts → api/WMS/Controllers/VarConfigDescriptionController/index.ts} +0 -0
  823. /package/{dist/src/api/WMS/Controllers/WarehouseController/index.d.ts → api/WMS/Controllers/WarehouseController/index.ts} +0 -0
  824. /package/{dist/src/api/WMS/Controllers/index.d.ts → api/WMS/Controllers/index.ts} +0 -0
  825. /package/{dist/src/component/KgButton/index.d.ts → component/KgButton/index.ts} +0 -0
  826. /package/{dist/src/component/KgForm.Item/index.d.ts → component/KgForm.Item/index.ts} +0 -0
  827. /package/{dist/src/component/KgImage/index.d.ts → component/KgImage/index.ts} +0 -0
  828. /package/{dist/src/component/KgModal/index.d.ts → component/KgModal/index.ts} +0 -0
  829. /package/{dist/src/component/KgModal02/index.d.ts → component/KgModal02/index.ts} +0 -0
  830. /package/{dist/src/component/KgProgressA/index.d.ts → component/KgProgressA/index.ts} +0 -0
  831. /package/{dist/src/component/KgResizable/index.d.ts → component/KgResizable/index.ts} +0 -0
  832. /package/{dist/src/component/KgSearch/KgSearch.model.d.ts → component/KgSearch/KgSearch.model.ts} +0 -0
  833. /package/{dist/src/component/KgTable02/KgTable02.model.d.ts → component/KgTable02/KgTable02.model.ts} +0 -0
  834. /package/{dist/src/component/KgYesOrNo/index.d.ts → component/KgYesOrNo/index.ts} +0 -0
  835. /package/{dist/src/page/KgPageCircularShuttleMonitor/index.d.ts → page/KgPageCircularShuttleMonitor/index.ts} +0 -0
  836. /package/{dist/src/page/KgPageSqlClient/index.d.ts → page/KgPageSqlClient/index.ts} +0 -0
  837. /package/{dist/project → project}/build/constant.ts +0 -0
  838. /package/{dist/project → project}/build/generate/icon/index.ts +0 -0
  839. /package/{dist/project → project}/build/getConfigFileName.ts +0 -0
  840. /package/{dist/project → project}/build/index.ts +0 -0
  841. /package/{dist/project → project}/build/script/buildConf.ts +0 -0
  842. /package/{dist/project → project}/build/script/postBuild.ts +0 -0
  843. /package/{dist/project → project}/build/utils.ts +0 -0
  844. /package/{dist/project → project}/build/vite/plugin/compress.ts +0 -0
  845. /package/{dist/project → project}/build/vite/plugin/html.ts +0 -0
  846. /package/{dist/project → project}/build/vite/plugin/imagemin.ts +0 -0
  847. /package/{dist/project → project}/build/vite/plugin/index.ts +0 -0
  848. /package/{dist/project → project}/build/vite/plugin/pwa.ts +0 -0
  849. /package/{dist/project → project}/build/vite/plugin/styleImport.ts +0 -0
  850. /package/{dist/project → project}/build/vite/plugin/svgSprite.ts +0 -0
  851. /package/{dist/project → project}/build/vite/plugin/theme.ts +0 -0
  852. /package/{dist/project → project}/build/vite/plugin/visualizer.ts +0 -0
  853. /package/{dist/project → project}/build/vite/proxy.ts +0 -0
  854. /package/{dist/src/project/index.d.ts → project/index.ts} +0 -0
  855. /package/{dist/src/project/src/api/index.d.ts → project/src/api/index.ts} +0 -0
  856. /package/{dist/src/project/src/api/sys/model/uploadModel.d.ts → project/src/api/sys/model/uploadModel.ts} +0 -0
  857. /package/{dist/src/project/src/components/Dropdown/index.d.ts → project/src/components/Dropdown/index.ts} +0 -0
  858. /package/{dist/src/project/src/components/Dropdown/src/typing.d.ts → project/src/components/Dropdown/src/typing.ts} +0 -0
  859. /package/{dist/src/project/src/enums/index.d.ts → project/src/enums/index.ts} +0 -0
  860. /package/{dist/src/project/src/index.d.ts → project/src/index.ts} +0 -0
  861. /package/{dist/src/project/src/layouts/index.d.ts → project/src/layouts/index.ts} +0 -0
  862. /package/{dist/src/project/src/locales/index.d.ts → project/src/locales/index.ts} +0 -0
  863. /package/{dist/src/project/src/router/index.d.ts → project/src/router/index.ts} +0 -0
  864. /package/{dist/src/project/src/settings/index.d.ts → project/src/settings/index.ts} +0 -0
  865. /package/{dist/src/project/src/store/index.d.ts → project/src/store/index.ts} +0 -0
  866. /package/{dist/src/project/src/store/modules/index.d.ts → project/src/store/modules/index.ts} +0 -0
  867. /package/{dist/src/project/src/utils/index.d.ts → project/src/utils/index.ts} +0 -0
  868. /package/{dist/src/project/types/index.d.ts → project/types/index.ts} +0 -0
  869. /package/{dist/src/service/index.d.ts → service/index.ts} +0 -0
  870. /package/{dist/src/util/index.d.ts → util/index.ts} +0 -0
@@ -0,0 +1,865 @@
1
+ import { Icon } from '@iconify/vue';
2
+ import { ____DEBUG____, ____ERROR____, KgCoreUtil } from '@kengic/core.core';
3
+ import { notification, Pagination } from 'ant-design-vue';
4
+ import { AxiosResponse, Method } from 'axios';
5
+ import dayjs from 'dayjs';
6
+ import { cloneDeep, groupBy, isArrayLike, isNil, map } from 'lodash-es';
7
+ import { computed, defineComponent, ExtractPropTypes, inject, nextTick, onMounted, onUnmounted, PropType, Ref, ref, toRaw, watch } from 'vue';
8
+ import { Column, Table, type VxeColumnProps, VxeColumnSlotTypes, VxeTableDefines, type VxeTableInstance, VxeTablePropTypes } from 'vxe-table';
9
+ import { API } from '../../api';
10
+ import { DescriptionBatchQuery } from '../../api/WMS/models';
11
+ import { useKg } from '../../config';
12
+ import { IKgVarGridDetailDisplayTypeProperties, KG, KG__VAR_GRID_DETAIL__DISPLAY_TYPE } from '../../model';
13
+ import { httpClient } from '../../service';
14
+ import { KgUtil } from '../../util';
15
+ import { type IKgTableRequestParameter, KG_TABLE_TD_CHECK_WIDTH, KG_TABLE_TD_DEFAULT_WIDTH, KG_TABLE_TD_INDEX_WIDTH } from '../KgTable/KgTable.model';
16
+ import { KgTableSetting } from '../KgTable/KgTable.Setting';
17
+ import { useKgVar } from '../KgVar';
18
+ import { KgTable02BodyCell } from './KgTable02.BodyCell';
19
+ import {
20
+ emit,
21
+ IKgTable02$EventListenerParameter$onAfterRequest,
22
+ IKgTable02$EventListenerParameter$onAfterRequestResponse,
23
+ IKgTable02$EventListenerParameter$onBeforeParseRequestParameter,
24
+ IKgTable02$EventListenerParameter$onBeforeRequest,
25
+ IKgTable02$EventListenerParameter$onBeforeSetDatas,
26
+ IKgTable02$EventListenerParameter$onBeforeTransformDatas,
27
+ IKgTable02$EventListenerParameter$onReady,
28
+ IKgTable02$EventListenerParameter$onRequestError,
29
+ } from './KgTable02.event';
30
+ import './KgTable02.css';
31
+
32
+ export const getProps = () => ({
33
+ /**
34
+ * 是否禁用某行的勾选框.
35
+ */
36
+ kgIsCheckboxDisable: Function as PropType<(row: any) => boolean>,
37
+
38
+ /**
39
+ * 是否禁用表格.
40
+ */
41
+ kgIsDisable: {
42
+ type: Boolean as PropType<boolean>,
43
+ default: undefined,
44
+ },
45
+ });
46
+
47
+ export type KgTable02Props = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
48
+
49
+ /**
50
+ * 表格.
51
+ */
52
+ export const KgTable02 = defineComponent({
53
+ name: 'KgTable02',
54
+ props: getProps(),
55
+ setup(props) {
56
+ const $dayjs = inject('$dayjs', dayjs);
57
+
58
+ const kg = useKg();
59
+ const kgVar = useKgVar();
60
+
61
+ // 点击查询按钮,
62
+ kgVar.kgSearch.onSearch(async (param) => {
63
+ request(param);
64
+ return false;
65
+ });
66
+
67
+ // 点击重置按钮,
68
+ kgVar.kgSearch.onReset(async () => {
69
+ // 重置排序
70
+ sortParam$.value.field = '';
71
+ sortParam$.value.order = null;
72
+ tableRef.value?.setSort({ field: sortParam$.value.field, order: sortParam$.value.order });
73
+
74
+ // 点击「重置按钮」时, 只是清空查询条件, 不会触发新的查询,
75
+ return false;
76
+ });
77
+
78
+ kgVar.kgTable02.$onAction(async ({ name, args }) => {});
79
+
80
+ //region DATA
81
+ //----------------------------------------------------------------------------------------------------
82
+ const kgTableRef = ref<HTMLDivElement>();
83
+ const tableRef = ref<VxeTableInstance>();
84
+
85
+ /**
86
+ * 分页参数.
87
+ */
88
+ const pageParam$ = ref({
89
+ pageIndex: 1,
90
+ pageSize: 10,
91
+ total: 0,
92
+ });
93
+
94
+ /**
95
+ * 排序参数.
96
+ */
97
+ const sortParam$ = ref({
98
+ field: '' as string,
99
+ order: null as VxeTablePropTypes.SortOrder,
100
+ });
101
+
102
+ /**
103
+ * 表格的列.
104
+ */
105
+ const columnList$$ = computed<Array<VxeColumnProps>>(() => {
106
+ const visibleVarGridDetailList = kgVar.store.getVisibleVarGridDetailList(kgVar.fid);
107
+
108
+ const _columnList: Array<VxeColumnProps> = [
109
+ ...(visibleVarGridDetailList?.map((varGridDetail) => {
110
+ const vname: string | null | undefined = varGridDetail.var_nam;
111
+
112
+ return {
113
+ field: vname!,
114
+ title: kgVar.t2(vname),
115
+ width: (() => {
116
+ if (varGridDetail.width === 'auto') {
117
+ return varGridDetail.width;
118
+ }
119
+
120
+ if (varGridDetail.width === '') {
121
+ return varGridDetail.width;
122
+ }
123
+
124
+ return Number(varGridDetail.width) || KG_TABLE_TD_DEFAULT_WIDTH;
125
+ })(),
126
+ };
127
+ }) ?? []),
128
+ ];
129
+
130
+ return _columnList;
131
+ });
132
+
133
+ /**
134
+ * 接口地址.
135
+ */
136
+ const requestUrl$$ = computed<string | null>(() => kgVar.varButtonSearch.value?.cmd ?? null);
137
+
138
+ /**
139
+ * 接口方法.
140
+ */
141
+ const requestMethod$$ = computed<Method>(() => (kgVar.varButtonSearch.value?.cmd_method as any) ?? 'GET');
142
+
143
+ /**
144
+ * 接口参数.
145
+ */
146
+ const requestParams$$ = computed<Record<string, any>>(() => {
147
+ let params: Record<string, any> = {
148
+ column: sortParam$.value?.field ?? undefined,
149
+ order: sortParam$.value?.order ?? undefined,
150
+
151
+ pageNo: pageParam$.value.pageIndex,
152
+ pageSize: pageParam$.value.pageSize,
153
+
154
+ // 查询条件,
155
+ ...(kgVar.kgSearch.formModel?.value ?? {}),
156
+
157
+ // 「查询按钮」中设置的查询参数,
158
+ ...KgUtil.parseRequestParamsToJSON(kgVar.varButtonSearch.value?.cmd_prm ?? ''),
159
+
160
+ // 「表格配置」中设置的查询参数,
161
+ ...KgUtil.parseRequestParamsToJSON(kgVar.varGridConfig.value?.cmd_prm ?? ''),
162
+
163
+ // 父亲界面接口参数,
164
+ ...parentRequestParams$$.value,
165
+ };
166
+
167
+ // 将排序字段转换为 snake_case 命名方式
168
+ if (kgVar.varGridConfig.value?.convert_sort_field_to_under_score_flg === 1 && params.column) {
169
+ params.column = KgUtil.snakeCase(params.column);
170
+ }
171
+
172
+ return params;
173
+ });
174
+
175
+ /**
176
+ * 父亲界面接口参数.
177
+ */
178
+ const parentRequestParams$$ = computed<Record<string, any>>(() => {
179
+ let params: Record<string, any> = {};
180
+
181
+ // 父子界面关联属性
182
+ if (kgVar.parentKgVar$$.value) {
183
+ const varChildDetail = kgVar.parentKgVar$$.value?.varChildDetails?.value?.find((i) => i.child_form_id === kgVar.fid);
184
+ const foreignKeyRecord = KgCoreUtil.tryParseJSON(varChildDetail?.foreign_keys);
185
+
186
+ Object.keys(foreignKeyRecord).forEach((key) => {
187
+ // TODO LT 父子界面关联属性
188
+ // params[foreignKeyRecord[key]] = kgVar.parent.value?.kgTable02?.selectedRow?.value?.[key] ?? KG.__KG__NULL__;
189
+ });
190
+ }
191
+
192
+ return params;
193
+ });
194
+
195
+ /**
196
+ * 组件参数「是否禁用表格」.
197
+ */
198
+ const kgIsDisable$$ = computed<boolean | undefined>(() => {
199
+ if (!isNil(kgVar.props.value?.KgTable02?.kgIsDisable)) {
200
+ return kgVar.props.value?.KgTable02?.kgIsDisable;
201
+ }
202
+
203
+ if (!isNil(props.kgIsDisable)) {
204
+ return props.kgIsDisable;
205
+ }
206
+
207
+ return undefined;
208
+ });
209
+
210
+ /**
211
+ * 组件参数「是否禁用某行的勾选框」.
212
+ */
213
+ const kgIsCheckboxDisable$$ = computed<((row: any) => boolean) | undefined>(() => {
214
+ if (!isNil(kgVar.props.value?.KgTable02?.kgIsCheckboxDisable)) {
215
+ return kgVar.props.value?.KgTable02?.kgIsCheckboxDisable;
216
+ }
217
+
218
+ if (!isNil(props.kgIsCheckboxDisable)) {
219
+ return props.kgIsCheckboxDisable;
220
+ }
221
+
222
+ if (kgVar.varGridConfig$Props$$.value?.isCheckboxDisabled) {
223
+ return new Function('row', `try{ ${kgVar.varGridConfig$Props$$.value?.isCheckboxDisabled} } catch (e) { console.error(e); }`) as any;
224
+ }
225
+
226
+ return undefined;
227
+ });
228
+
229
+ /**
230
+ * 表格是否正在加载.
231
+ */
232
+ const isLoading$$ = computed(() => {
233
+ if (kgVar.kgTable02.isRequesting) {
234
+ return true;
235
+ }
236
+
237
+ if (kgVar.isRetrieving.value) {
238
+ return true;
239
+ }
240
+
241
+ if (kgVar.isRetrievingVarGridMaster.value) {
242
+ return true;
243
+ }
244
+
245
+ return false;
246
+ });
247
+
248
+ const isBottomRightDisable$$ = computed<boolean>(
249
+ () => !!kgIsDisable$$.value || isLoading$$.value || !!kgVar.isCreating.value || !!kgVar.isUpdating.value || !!kgVar.isCopying.value || !!kgVar.isDeleting.value || pageParam$.value.total === 0,
250
+ );
251
+
252
+ /**
253
+ * 是否显示勾选框这一列.
254
+ */
255
+ const isShowCheckColumn$$ = computed<boolean>(() => kgVar.varGridConfig.value?.show_check_column_flg === 1);
256
+
257
+ const class$$ = computed(() => {
258
+ return {
259
+ 'kg-table02': true,
260
+ 'kg-table02--invisible': kgVar.varGridConfig$Props$$.value?.isVisible === false,
261
+ };
262
+ });
263
+
264
+ const kgTableButtomClass$$ = computed(() => {
265
+ return { 'kg-table02-bottom': true, 'kg-table02-bottom--border': kgVar.varGridConfig.value?.show_bottom_border_flg === 1 };
266
+ });
267
+
268
+ //endregion
269
+
270
+ //region WATCH
271
+ //----------------------------------------------------------------------------------------------------
272
+ //region 当前分页选项
273
+ //----------------------------------------------------------------------------------------------------
274
+ // 根据 VarGridConfig.pg_size_opt 设置 pageParam$.value.pageSize 的初始值
275
+ const stopWatchPageSizeOption = watch(
276
+ kgVar.kgTable02.pageSizeOption$$,
277
+ (pageSizeOption) => {
278
+ if (pageSizeOption) {
279
+ setTimeout(() => stopWatchPageSizeOption());
280
+
281
+ pageParam$.value.pageSize = pageSizeOption;
282
+ emit<IKgTable02$EventListenerParameter$onReady>({ event: 'onReady', id: kgVar.fid, parameter: {} });
283
+ kgVar.kgTable02.setIsReady(true);
284
+ }
285
+ },
286
+ { immediate: true },
287
+ );
288
+ //endregion
289
+
290
+ //region 所有分页选项
291
+ //----------------------------------------------------------------------------------------------------
292
+ // 当 VarGridConfig.pg_size_opts 发生变更, 并且当前的 pageParam$.value.pageSize 不在 pg_size_opts 列表中,
293
+ // 则更新 pageParam$.value.pageSize 为 VarGridConfig.pg_size_opt 的值
294
+ watch(kgVar.kgTable02.pageSizeOptionList$$, (pageSizeOptionList) => {
295
+ if (pageSizeOptionList.length > 0 && !pageSizeOptionList.includes(pageParam$.value.pageSize)) {
296
+ pageParam$.value.pageSize = kgVar.kgTable02.pageSizeOption$$.value;
297
+ }
298
+ });
299
+ //endregion
300
+
301
+ //region 自动查询
302
+ //----------------------------------------------------------------------------------------------------
303
+ // 启用了自动查询, 且尚未查询过, 则自动查询
304
+ watch(
305
+ [kgVar.kgTable02.isAutoRequest$$, kgVar.kgSearch.isReady, () => kgVar.kgTable02.isRequested],
306
+ ([isAutoRequest, isReady, isRequested]) => {
307
+ if (isAutoRequest && isReady && !isRequested) {
308
+ request({ isSearchFirstPage: true });
309
+ }
310
+ },
311
+ { immediate: true },
312
+ );
313
+ //endregion
314
+
315
+ //region parentRequestParams$$
316
+ //----------------------------------------------------------------------------------------------------
317
+ // 父子界面关联属性发生变更, 触发查询,
318
+ watch(
319
+ () => JSON.stringify(parentRequestParams$$.value),
320
+ () => {
321
+ request({ isSearchFirstPage: true });
322
+ },
323
+ );
324
+ //endregion
325
+
326
+ //region 同步查询条件到状态管理
327
+ //----------------------------------------------------------------------------------------------------
328
+ watch(
329
+ requestParams$$,
330
+ (value) => {
331
+ kgVar.kgTable02.setRequestParamRecord(value);
332
+ },
333
+ { immediate: true },
334
+ );
335
+ //endregion
336
+
337
+ //endregion
338
+
339
+ //region FUNCTION
340
+ //----------------------------------------------------------------------------------------------------
341
+
342
+ /**
343
+ * 查询表格数据.
344
+ */
345
+ function request(param: IKgTableRequestParameter = {}) {
346
+ ____DEBUG____(`${kgVar.fid} | KgTable02 | request() | 进入方法`, { param });
347
+ const stopWatch = watch(
348
+ () => kgVar.kgTable02.isReady,
349
+ (isReady) => {
350
+ if (isReady) {
351
+ setTimeout(() => stopWatch());
352
+ requestDataList();
353
+ }
354
+ },
355
+ { immediate: true },
356
+ );
357
+
358
+ /**
359
+ * 查询表格数据.
360
+ */
361
+ async function requestDataList() {
362
+ ____DEBUG____(`${kgVar.fid} | KgTable02 | request().requestDataList() | 进入方法`);
363
+ if (param.isSearchFirstPage) {
364
+ pageParam$.value.pageIndex = 1;
365
+ }
366
+
367
+ kgVar.kgTable02.setIsRequesting(true);
368
+
369
+ try {
370
+ const response$ = ref<any>({});
371
+ const unparsedRequestParams = cloneDeep(toRaw(requestParams$$.value));
372
+
373
+ /**
374
+ * 如果某个参数的值为 {@link KG.__KG__NULL__}, 表示需要清空表格数据.
375
+ * 此时, 无需再请求后端接口, 直接清空表格数据即可.
376
+ */
377
+ if (map(unparsedRequestParams, (i: any) => String(i)).includes(KG.__KG__NULL__)) {
378
+ kgVar.kgTable02.clearDataList();
379
+ kgVar.kgTable02.setIsRequesting(false);
380
+ return;
381
+ }
382
+
383
+ const dynamicQueryOperatorModel$ = ref(null);
384
+ const eventResult$onBeforeParseRequestParameter = await emit<IKgTable02$EventListenerParameter$onBeforeParseRequestParameter>({
385
+ event: 'onBeforeParseRequestParameter',
386
+ id: kgVar.fid,
387
+ parameter: { dynamicQueryOperatorModel$: dynamicQueryOperatorModel$, params: unparsedRequestParams },
388
+ });
389
+
390
+ const requestParamRecord = KgUtil.parseParams(unparsedRequestParams, kgVar.kgTable02.kgSearchFid$$.value, $dayjs);
391
+ let requestHeaderRecord: Record<string, any> = {};
392
+
393
+ const eventResult$onBeforeRequest = await emit<IKgTable02$EventListenerParameter$onBeforeRequest>({
394
+ event: 'onBeforeRequest',
395
+ id: kgVar.fid,
396
+ parameter: { params: requestParamRecord, response$: response$ },
397
+ });
398
+
399
+ if (eventResult$onBeforeRequest) {
400
+ // 表格数据由外部提供, 不需要调用查询接口去获取
401
+ } else {
402
+ if (!requestUrl$$.value) {
403
+ ____ERROR____(`${kgVar.fid} | KgTable02 | request() | 查询按钮没有配置接口.`);
404
+ throw new Error('查询按钮没有配置接口.');
405
+ }
406
+
407
+ // 是否启用高级查询
408
+ const isDynamicQuery = kg.option.KgSearch?.dynamicQuery?.on === true && kgVar.kgSearch.currentVarProfileMaster.value?.dyn_flg === 1;
409
+
410
+ const { whereSql, whereSql01, whereSql02, whereSql03, whereSql04, whereSql05, orderBySql, operatorObjectJSON, whereObjectJSON } = KgUtil.getQueryHeaders({
411
+ $dayjs: $dayjs,
412
+ dynamicQueryOperatorModel: dynamicQueryOperatorModel$.value,
413
+ formID: kgVar.fid,
414
+ kgSearchFormID: kgVar.kgTable02.kgSearchFid$$.value,
415
+ params: unparsedRequestParams,
416
+ });
417
+
418
+ requestHeaderRecord = {
419
+ [KG.HTTP_HEADER__KG_FORM_ID]: kgVar.fid,
420
+ [KG.HTTP_HEADER__KG_IS_DYNAMIC_QUERY]: isDynamicQuery,
421
+ [KG.HTTP_HEADER__KG_PAGE_INDEX]: requestParamRecord.pageNo,
422
+ [KG.HTTP_HEADER__KG_PAGE_SIZE]: requestParamRecord.pageSize,
423
+ [KG.HTTP_HEADER__KG_QUERY_OBJECT]: '{}',
424
+ [KG.HTTP_HEADER__KG_QUERY_OPERATOR_OBJECT]: operatorObjectJSON,
425
+ [KG.HTTP_HEADER__KG_QUERY_ORDER_BY_SQL]: orderBySql,
426
+ [KG.HTTP_HEADER__KG_QUERY_WHERE_OBJECT]: whereObjectJSON,
427
+ [KG.HTTP_HEADER__KG_QUERY_WHERE_SQL]: whereSql,
428
+ [KG.HTTP_HEADER__KG_QUERY_WHERE_SQL_01]: whereSql01,
429
+ [KG.HTTP_HEADER__KG_QUERY_WHERE_SQL_02]: whereSql02,
430
+ [KG.HTTP_HEADER__KG_QUERY_WHERE_SQL_03]: whereSql03,
431
+ [KG.HTTP_HEADER__KG_QUERY_WHERE_SQL_04]: whereSql04,
432
+ [KG.HTTP_HEADER__KG_QUERY_WHERE_SQL_05]: whereSql05,
433
+ };
434
+
435
+ let axiosResponse: { value: AxiosResponse<any> } = { value: {} as AxiosResponse<any> };
436
+ try {
437
+ axiosResponse.value = await httpClient().request(
438
+ {
439
+ data: requestParamRecord,
440
+ headers: requestHeaderRecord,
441
+ method: requestMethod$$.value,
442
+ params: { formId: kgVar.fid, ...requestParamRecord },
443
+ url: requestUrl$$.value,
444
+ },
445
+ {
446
+ isReturnNativeResponse: true,
447
+ successMessageMode: 'none',
448
+ },
449
+ );
450
+ } catch (e) {
451
+ const eventResult$onRequestError = await emit<IKgTable02$EventListenerParameter$onRequestError>({
452
+ event: 'onRequestError',
453
+ id: kgVar.fid,
454
+ parameter: { axiosResponse: axiosResponse.value, e: e as Error },
455
+ });
456
+ if (eventResult$onRequestError) {
457
+ // 继续后续逻辑,
458
+ } else {
459
+ // 重新抛出错误,
460
+ throw e;
461
+ }
462
+ }
463
+
464
+ const eventResult$onAfterRequestResponse = await emit<IKgTable02$EventListenerParameter$onAfterRequestResponse>({
465
+ event: 'onAfterRequestResponse',
466
+ id: kgVar.fid,
467
+ parameter: { axiosResponse: axiosResponse },
468
+ });
469
+
470
+ // 请求没有返回数据
471
+ if (!axiosResponse.value?.data) {
472
+ notification.error({ message: kg.t('kg.KgTable.request-fail-no-data', {}, '请求失败, 响应内容为空') });
473
+ throw new Error(kg.t('kg.KgTable.request-fail-no-data', {}, '请求失败, 响应内容为空'));
474
+ }
475
+
476
+ // 请求失败
477
+ if (![0, 200].includes(axiosResponse.value.data.code ?? -1) || ('success' in axiosResponse.value.data && !axiosResponse.value.data.success)) {
478
+ notification.error({ message: axiosResponse.value.data.message || kg.t('kg.KgTable.request-fail-error') });
479
+ throw new Error(axiosResponse.value.data.message || kg.t('kg.KgTable.request-fail-error'));
480
+ }
481
+
482
+ if ('result' in axiosResponse.value.data) {
483
+ response$.value = axiosResponse.value.data.result;
484
+ } else if ('data' in axiosResponse.value.data) {
485
+ response$.value = axiosResponse.value.data.data;
486
+ }
487
+
488
+ // prettier-ignore
489
+ ____DEBUG____(`${kgVar.fid} | KgTable02 | request().requestDataList() | 查询成功`, { params: requestParamRecord, response: response$.value });
490
+ }
491
+
492
+ const eventResult$onBeforeTransformDatas = await emit<IKgTable02$EventListenerParameter$onBeforeTransformDatas>({
493
+ event: 'onBeforeTransformDatas',
494
+ id: kgVar.fid,
495
+ parameter: { response: response$ },
496
+ });
497
+ if (eventResult$onBeforeTransformDatas) {
498
+ return;
499
+ }
500
+
501
+ const { dataList$, total$ } = transformDataList(response$);
502
+
503
+ const eventResult$onBeforeSetDatas = await emit<IKgTable02$EventListenerParameter$onBeforeSetDatas>({
504
+ event: 'onBeforeSetDatas',
505
+ id: kgVar.fid,
506
+ parameter: { dataList$: dataList$, datas: dataList$, params: unparsedRequestParams, requestHeaderRecord: requestHeaderRecord, total: total$ },
507
+ });
508
+ if (eventResult$onBeforeSetDatas) {
509
+ return;
510
+ }
511
+
512
+ // 设置表格列表数据
513
+ kgVar.kgTable02.setDataList({ dataList: dataList$.value, isPreserveSelectedRows: true });
514
+ // 设置表格数据总数
515
+ pageParam$.value.total = total$.value;
516
+
517
+ // 请求系统描述数据
518
+ requestDescriptionList();
519
+
520
+ // 清空过滤状态
521
+ // filterInfo.value = {};
522
+ // 清空勾选的行
523
+ // onRowClick({ isContinueWhenKgDisabled: true });
524
+ // 清空展开的行
525
+ // expandedRowKeys.value = (() => {
526
+ // let _expandedRowKeys: Array<string> = [];
527
+ //
528
+ // // 默认展开全部的行, TODO LT
529
+ // if (false) {
530
+ // const fn = (_datas: Array<any>) => {
531
+ // for (let data of _datas) {
532
+ // _expandedRowKeys.push(data[kgVar.kgTable02.idKey.value]);
533
+ //
534
+ // if (data.children && data.children.length > 0) {
535
+ // fn(data.children);
536
+ // }
537
+ // }
538
+ // };
539
+ //
540
+ // fn(datas.value);
541
+ // }
542
+ //
543
+ // return _expandedRowKeys;
544
+ // })();
545
+
546
+ await nextTick();
547
+
548
+ const eventResult$onAfterRequest = await emit<IKgTable02$EventListenerParameter$onAfterRequest>({
549
+ event: 'onAfterRequest',
550
+ id: kgVar.fid,
551
+ parameter: {
552
+ datas: dataList$,
553
+ params: requestParamRecord,
554
+ requestHeaderRecord: requestHeaderRecord,
555
+ response: response$.value,
556
+ },
557
+ });
558
+
559
+ kgVar.kgTable02.setIsRequested(true);
560
+ } catch (e) {
561
+ throw e;
562
+ } finally {
563
+ kgVar.kgTable02.setIsRequesting(false);
564
+ }
565
+ }
566
+ }
567
+
568
+ /** 分页参数发生变更. */
569
+ function onPageChange(pageIndex: number, pageSize: number) {
570
+ if (pageSize !== pageParam$.value.pageSize) {
571
+ pageParam$.value.pageIndex = 1;
572
+ pageParam$.value.pageSize = pageSize;
573
+ } else {
574
+ pageParam$.value.pageIndex = pageIndex;
575
+ }
576
+
577
+ request();
578
+ }
579
+
580
+ /**
581
+ * 处理表格数据.
582
+ *
583
+ * @param response$ 查询接口返回数据.
584
+ */
585
+ function transformDataList(response$: Ref<any>): { dataList$: Ref<Array<any>>; total$: Ref<number> } {
586
+ let _dataList$ = ref<Array<any>>([]);
587
+ let _total$ = ref<number>(0);
588
+
589
+ switch (true) {
590
+ case !response$.value:
591
+ _dataList$.value = [];
592
+ _total$.value = 0;
593
+ break;
594
+
595
+ case isArrayLike(response$.value):
596
+ _dataList$.value = response$.value;
597
+ _total$.value = response$.value.length;
598
+ break;
599
+
600
+ case 'total' in response$.value && 'records' in response$.value:
601
+ _dataList$.value = response$.value.records ?? [];
602
+ _total$.value = response$.value.total ?? 0;
603
+ break;
604
+ }
605
+
606
+ _dataList$.value.forEach((row) => {
607
+ row.isCheck = false;
608
+
609
+ Object.keys(row).forEach((key) => {
610
+ const varGridDetail = kgVar.getVarGridDetail({ varName: key });
611
+
612
+ switch (varGridDetail?.display_type) {
613
+ case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.PROGRESS: {
614
+ row[key] = row[key] ?? 0;
615
+ break;
616
+ }
617
+
618
+ default: {
619
+ row[key] = row[key];
620
+ break;
621
+ }
622
+ }
623
+ });
624
+ });
625
+
626
+ return { dataList$: _dataList$, total$: _total$ };
627
+ }
628
+
629
+ /**
630
+ * 请求系统描述数据.
631
+ */
632
+ async function requestDescriptionList(): Promise<void> {
633
+ let descriptionBatchQueryList: Array<DescriptionBatchQuery & { codeValue: string }> = (kgVar.currentVarGridDetails.value
634
+ ?.map((varGridDetail) => {
635
+ const properties = KgCoreUtil.tryParseJSON<IKgVarGridDetailDisplayTypeProperties['DESC']>(varGridDetail.display_type_properties);
636
+
637
+ // 描述组名为空, 或者没有启用延迟请求,
638
+ if (!properties.description?.codeName || properties.description?.isDefer !== true) {
639
+ return null;
640
+ }
641
+
642
+ const vname = varGridDetail.var_nam ?? '';
643
+
644
+ return {
645
+ codeName: properties.description?.codeName,
646
+ codeValue: properties.description?.codeValue || '`${row.' + vname + '}`',
647
+ codeValues: [],
648
+ };
649
+ })
650
+ ?.filter((i) => !!i) ?? []) as Array<DescriptionBatchQuery & { codeValue: string }>;
651
+
652
+ for (const row of kgVar.kgTable02.dataList) {
653
+ for (let descriptionBatchQuery of descriptionBatchQueryList) {
654
+ let codeName = descriptionBatchQuery.codeName;
655
+ let codeValue = descriptionBatchQuery.codeValue;
656
+
657
+ try {
658
+ codeValue = eval(descriptionBatchQuery.codeValue);
659
+ } catch {
660
+ ____ERROR____('KgTable02.requestDescriptionList() | 描述解析失败.', { codeValue: codeValue });
661
+ }
662
+
663
+ // 如果描述已经存在, 不再请求,
664
+ if (kg.getDescription({ codeName: codeName, codeValue: codeValue })) {
665
+ continue;
666
+ }
667
+
668
+ if (!descriptionBatchQuery.codeValues!.includes(codeValue)) {
669
+ descriptionBatchQuery.codeValues!.push(codeValue);
670
+ }
671
+ }
672
+ }
673
+
674
+ // 如果 codeValues 为空, 表示这些描述已经存在, 不再请求,
675
+ descriptionBatchQueryList = descriptionBatchQueryList.filter((i) => i.codeValues?.length);
676
+
677
+ if (descriptionBatchQueryList.length > 0) {
678
+ const descriptions = await API.WMS.DescriptionController.ListByCodeNamesAndCodeValues({
679
+ data: descriptionBatchQueryList.map((i) => new DescriptionBatchQuery(i)),
680
+ });
681
+
682
+ const group = groupBy(descriptions, (i) => i.codnam);
683
+ Object.keys(group).forEach((codeName) => {
684
+ kg.setDescriptionList({ codeName: codeName, descriptions: group[codeName] });
685
+ });
686
+ }
687
+ }
688
+
689
+ /**
690
+ * 排序发生变更.
691
+ */
692
+ function onSortChange(param: VxeTableDefines.SortChangeEventParams) {
693
+ sortParam$.value.field = param.field;
694
+ sortParam$.value.order = param.order;
695
+
696
+ request({ isSearchFirstPage: true });
697
+ }
698
+
699
+ /**
700
+ * 全选发生变更.
701
+ */
702
+ function onCheckboxAll(param: VxeTableDefines.CheckboxAllEventParams) {}
703
+
704
+ /**
705
+ * 勾选发生变更.
706
+ */
707
+ function onCheckboxChange(param: VxeTableDefines.CheckboxChangeEventParams) {}
708
+
709
+ /**
710
+ * 拖拽列宽发生变更.
711
+ */
712
+ function onColumnResizableChange(param: VxeTableDefines.ResizableChangeEventParams) {
713
+ kgVar.patchVarGridDetail({ properties: { width: param.resizeWidth.toFixed(0) }, varName: param.column.field });
714
+ }
715
+
716
+ //endregion
717
+
718
+ //region LIFECYCLE
719
+ //----------------------------------------------------------------------------------------------------
720
+ onMounted(() => {});
721
+
722
+ onUnmounted(() => {
723
+ kgVar.kgTable02.dispose();
724
+ });
725
+
726
+ //endregion
727
+
728
+ interface RowVO {
729
+ id: number;
730
+ [key: string]: string | number;
731
+ }
732
+
733
+ return () => {
734
+ return (
735
+ <div
736
+ ref={kgTableRef}
737
+ kg-form-id={kgVar.fid}
738
+ class={class$$.value}
739
+ >
740
+ <div class={'kg-table02-top'}>
741
+ <Table
742
+ ref={tableRef}
743
+ border={'default'}
744
+ cellConfig={{ height: 32, padding: false }}
745
+ checkboxConfig={{ checkField: 'isCheck', highlight: true, trigger: 'default' }}
746
+ columnConfig={{ resizable: true }}
747
+ data={kgVar.kgTable02.dataList}
748
+ footerMethod={(param) => {
749
+ return [
750
+ param.columns.map((column, index) => {
751
+ const vname = column.field;
752
+ const varGridDetail = vname ? kgVar.getVarGridDetail({ varName: vname }) : null;
753
+
754
+ return kgVar.slots.value?.KgTable?.['summary.bodyCell']?.({
755
+ column: column,
756
+ index: index,
757
+ varGridDetail: varGridDetail,
758
+ });
759
+ }),
760
+ ];
761
+ }}
762
+ height="100%"
763
+ loading={kgVar.kgTable02.isRequesting}
764
+ round={true}
765
+ rowConfig={{ isHover: true }}
766
+ showFooterOverflow={true}
767
+ showFooter={!!kgVar.slots.value?.KgTable?.['summary.bodyCell']}
768
+ showHeaderOverflow={true}
769
+ showOverflow={'title'}
770
+ size={'mini'}
771
+ sortConfig={{ remote: true, trigger: 'cell' }}
772
+ virtualXConfig={{ enabled: true, gt: 0 }}
773
+ virtualYConfig={{ enabled: true, gt: 0 }}
774
+ onCheckboxAll={onCheckboxAll}
775
+ onCheckboxChange={onCheckboxChange}
776
+ onColumnResizableChange={onColumnResizableChange}
777
+ onSortChange={onSortChange}
778
+ >
779
+ {{
780
+ default: () => {
781
+ return [
782
+ // 勾选列,
783
+ <Column
784
+ type={'checkbox'}
785
+ fixed={'left'}
786
+ align={'center'}
787
+ resizable={false}
788
+ width={KG_TABLE_TD_CHECK_WIDTH}
789
+ />,
790
+ // 序号列,
791
+ <Column
792
+ type={'seq'}
793
+ fixed={'left'}
794
+ align={'center'}
795
+ resizable={false}
796
+ width={KG_TABLE_TD_INDEX_WIDTH}
797
+ >
798
+ {{ header: () => <KgTableSetting kgIsDisable={props.kgIsDisable} /> }}
799
+ </Column>,
800
+ //
801
+ ...columnList$$.value.map((i) => {
802
+ return (
803
+ <Column
804
+ field={i.field}
805
+ title={i.title}
806
+ width={i.width}
807
+ sortable={true}
808
+ >
809
+ {{
810
+ default: (param: VxeColumnSlotTypes.DefaultSlotParams) => (
811
+ <KgTable02BodyCell
812
+ column={param.column}
813
+ row={param.row}
814
+ />
815
+ ),
816
+ }}
817
+ </Column>
818
+ );
819
+ }),
820
+ ];
821
+ },
822
+ loading: () => (
823
+ <div style={{ alignItems: 'center', display: 'flex', justifyContent: 'center' }}>
824
+ <Icon
825
+ icon="eos-icons:bubble-loading"
826
+ width={22}
827
+ height={22}
828
+ />
829
+ </div>
830
+ ),
831
+ }}
832
+ </Table>
833
+ </div>
834
+
835
+ <div class={kgTableButtomClass$$.value}>
836
+ <div class="left"></div>
837
+
838
+ <div class="right">
839
+ <Pagination
840
+ size={'default'}
841
+ current={pageParam$.value.pageIndex}
842
+ pageSize={pageParam$.value.pageSize}
843
+ pageSizeOptions={kgVar.kgTable02.pageSizeOptionList$$.value.map((i) => String(i))}
844
+ total={pageParam$.value.total}
845
+ showSizeChanger={true}
846
+ showQuickJumper={false}
847
+ hideOnSinglePage={false}
848
+ locale={{ page: '' }}
849
+ disabled={isBottomRightDisable$$.value}
850
+ showTotal={(total, range) =>
851
+ kg.t('kg.KgTable.totalText', {
852
+ from: range[0],
853
+ to: range[1],
854
+ total: total,
855
+ })
856
+ }
857
+ onChange={(pageIndex, pageSize) => onPageChange(pageIndex, pageSize)}
858
+ />
859
+ </div>
860
+ </div>
861
+ </div>
862
+ );
863
+ };
864
+ },
865
+ });