@kengic/vue 0.26.6-beta.12 → 0.26.6-beta.121

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/bulb-outlined.93f68e9f.mjs +8 -0
  3. package/dist/caret-right-outlined.f3fc4d46.mjs +8 -0
  4. package/dist/close-outlined-DMcSQWxQ.c49462d5.mjs +8 -0
  5. package/dist/fullscreen-exit-outlined-X1iYkFc4.1d168a83.mjs +8 -0
  6. package/dist/fullscreen-exit-outlined.a75b82c2.mjs +8 -0
  7. package/dist/fullscreen-outlined-DDBrsRcy.b61c3686.mjs +8 -0
  8. package/dist/fullscreen-outlined.c9ba7960.mjs +8 -0
  9. package/dist/index.css +1 -1
  10. package/dist/kengic-vue.js +57877 -43895
  11. package/dist/pause-outlined.a5f6ccbd.mjs +8 -0
  12. package/dist/project/build/vite/plugin/index.ts +13 -1
  13. package/dist/src/{apis → api}/WMS/Controllers/DescriptionController/List.d.ts +1 -1
  14. package/dist/src/{apis → api}/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +1 -1
  15. package/dist/src/{apis → api}/WMS/Controllers/SysPermissionController/List.d.ts +1 -1
  16. package/dist/src/{apis → api}/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +1 -1
  17. package/dist/src/{apis → api}/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +1 -1
  18. package/dist/src/{apis → api}/WMS/Controllers/VarController/GetAll.d.ts +1 -1
  19. package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/Create.d.ts +1 -1
  20. package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +1 -1
  21. package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +1 -1
  22. package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +1 -1
  23. package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +1 -1
  24. package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +1 -1
  25. package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +1 -1
  26. package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +1 -1
  27. package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +1 -1
  28. package/dist/src/{apis → api}/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +1 -1
  29. package/dist/src/{apis → api}/WMS/Controllers/VarGridMasterController/Update.d.ts +1 -1
  30. package/dist/src/{apis → api}/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +1 -1
  31. package/dist/src/{apis → api}/WMS/Controllers/VarVariableController/Delete.d.ts +1 -1
  32. package/dist/src/{apis → api}/WMS/Controllers/WhController/ListVO.d.ts +1 -1
  33. package/dist/src/{apis → api}/WMS/Controllers/WorkstationController/List.d.ts +1 -1
  34. package/dist/src/{components → component}/KgAppSelect/KgAppSelect.d.ts +1 -1
  35. package/dist/src/{components → component}/KgAppSelect/index.hooks.d.ts +3 -3
  36. package/dist/src/{components → component}/KgAppSelect/index.store.d.ts +3 -3
  37. package/dist/src/{components → component}/KgButton/KgButton.Item.d.ts +1 -1
  38. package/dist/src/{components → component}/KgButton/KgButton.Item.data.d.ts +2 -2
  39. package/dist/src/{components → component}/KgButton/KgButton.d.ts +1 -1
  40. package/dist/src/{components → component}/KgButton/components/KgButton.Copy.d.ts +3 -3
  41. package/dist/src/{components → component}/KgButton/components/KgButton.Create.d.ts +1 -1
  42. package/dist/src/{components → component}/KgButton/components/KgButton.Delete.d.ts +1 -1
  43. package/dist/src/{components → component}/KgButton/components/KgButton.Export.d.ts +3 -3
  44. package/dist/src/{components → component}/KgButton/components/KgButton.Import.d.ts +3 -3
  45. package/dist/src/{components → component}/KgButton/components/KgButton.ImportTemplate.d.ts +3 -3
  46. package/dist/src/{components → component}/KgButton/components/KgButton.Other.d.ts +3 -3
  47. package/dist/src/{components → component}/KgButton/components/KgButton.Search.d.ts +1 -1
  48. package/dist/src/{components → component}/KgButton/components/KgButton.Update.d.ts +3 -3
  49. package/dist/src/{components → component}/KgButton/index.hooks.d.ts +5 -5
  50. package/dist/src/{components → component}/KgButton/index.store.d.ts +4 -4
  51. package/dist/src/{components → component}/KgCanvas/KgCanvas.ContextMenu.d.ts +6 -12
  52. package/dist/src/component/KgCanvas/KgCanvas.Toolbar.Fullscreen.d.ts +38 -0
  53. package/dist/src/component/KgCanvas/KgCanvas.Toolbar.OverviewScale.d.ts +38 -0
  54. package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +28 -0
  55. package/dist/src/{components → component}/KgCanvas/KgCanvas.d.ts +62 -14
  56. package/dist/src/{components → component}/KgCanvas/KgCanvas.service.d.ts +9 -2
  57. package/dist/src/{components/KgCanvas/index.store.d.ts → component/KgCanvas/index.event.d.ts} +40 -54
  58. package/dist/src/{components → component}/KgCanvas/index.hooks.d.ts +18 -13
  59. package/dist/src/component/KgCanvas/index.store.d.ts +10 -0
  60. package/dist/src/component/KgCanvas/index.vm.d.ts +33 -0
  61. package/dist/src/{components → component}/KgForm/KgForm.d.ts +36 -36
  62. package/dist/src/{components → component}/KgForm/index.d.ts +48 -48
  63. package/dist/src/{components → component}/KgForm/index.hooks.d.ts +8 -8
  64. package/dist/src/{components → component}/KgForm/index.store.d.ts +3 -3
  65. package/dist/src/{components → component}/KgForm.Item/KgForm.Item.d.ts +1 -1
  66. package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +1 -1
  67. package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +1 -1
  68. package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Date.d.ts +1 -1
  69. package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.DateRange.d.ts +1 -1
  70. package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Image.d.ts +5 -5
  71. package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Input.d.ts +1 -1
  72. package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +1 -1
  73. package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +1 -1
  74. package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +1 -1
  75. package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Select.d.ts +1 -1
  76. package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Select.service.d.ts +1 -1
  77. package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Switch.d.ts +1 -1
  78. package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.TextArea.d.ts +1 -1
  79. package/dist/src/{components → component}/KgForm.Item/index.vm.d.ts +2 -2
  80. package/dist/src/{components → component}/KgImage/KgImage.d.ts +6 -6
  81. package/dist/src/{components → component}/KgModal/KgModal.d.ts +19 -13
  82. package/dist/src/{components/KgModal/components/KgModal.HeaderButtons.d.ts → component/KgModal/KgModalHeaderButtons.d.ts} +1 -1
  83. package/dist/src/component/KgModal/hooks/useDragToMove.d.ts +12 -0
  84. package/dist/src/{components/KgModal/KgModal.service.d.ts → component/KgModal/hooks/useDragToResize.d.ts} +1 -11
  85. package/dist/src/{components → component}/KgSearch/index.hooks.d.ts +5 -5
  86. package/dist/src/{components → component}/KgSearch/index.store.d.ts +4 -4
  87. package/dist/src/{components → component}/KgStation/index.hooks.d.ts +1 -1
  88. package/dist/src/{components → component}/KgStation/index.store.d.ts +1 -1
  89. package/dist/src/{components → component}/KgSubmit/index.hooks.d.ts +12 -12
  90. package/dist/src/{components → component}/KgSubmit/index.store.d.ts +4 -4
  91. package/dist/src/{components → component}/KgSubmit/index.vm.d.ts +1 -1
  92. package/dist/src/{components → component}/KgTable/components/setting/KgTable.Setting.service.d.ts +1 -1
  93. package/dist/src/{components → component}/KgTable/index.hooks.d.ts +12 -12
  94. package/dist/src/{components → component}/KgTable/index.store.d.ts +4 -4
  95. package/dist/src/{components → component}/KgTable/index.vm.d.ts +1 -1
  96. package/dist/src/{pages/KgVarFactory → component/KgVar}/KgVarFactory.d.ts +9 -10
  97. package/dist/src/{components → component}/KgVar/index.d.ts +1 -0
  98. package/dist/src/{components → component}/KgVar/index.hooks.d.ts +9 -4
  99. package/dist/src/{components → component}/KgVar/index.store.d.ts +24 -11
  100. package/dist/src/{components → component}/KgVar/index.store.service.d.ts +1 -1
  101. package/dist/src/{components → component}/KgVar/index.vm.d.ts +2 -0
  102. package/dist/src/{components/KgVarConfig/components/KgVarConfig.Modal.d.ts → component/KgVarConfig/components/KgVarConfigModal.d.ts} +1 -2
  103. package/dist/src/{components → component}/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +1 -1
  104. package/dist/src/{components → component}/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +1 -1
  105. package/dist/src/{components → component}/KgWarehouse/index.hooks.d.ts +2 -2
  106. package/dist/src/{components → component}/KgWarehouse/index.store.d.ts +2 -2
  107. package/dist/src/config/index.hooks.d.ts +1 -1
  108. package/dist/src/config/index.store.d.ts +2 -2
  109. package/dist/src/config/setup/setup.d.ts +3 -2
  110. package/dist/src/{consts → const}/i18n/en.d.ts +7 -0
  111. package/dist/src/{consts → const}/i18n/es_ES.d.ts +7 -0
  112. package/dist/src/{consts → const}/i18n/fr_FR.d.ts +7 -0
  113. package/dist/src/{consts → const}/i18n/km_KH.d.ts +7 -0
  114. package/dist/src/{consts → const}/i18n/ko_KR.d.ts +7 -0
  115. package/dist/src/{consts → const}/i18n/vi_VN.d.ts +7 -0
  116. package/dist/src/{consts → const}/i18n/zh_CN.d.ts +8 -0
  117. package/dist/src/{consts → const}/index.vm.d.ts +12 -4
  118. package/dist/src/{consts → const}/injection-keys.const.d.ts +2 -0
  119. package/dist/src/{helpers → helper}/ant-design-vue.d.ts +15 -15
  120. package/dist/src/index.d.ts +9 -10
  121. package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.store.d.ts +1 -1
  122. package/dist/src/{pages → page}/index.d.ts +0 -1
  123. package/dist/src/{services → service}/http-client.d.ts +1 -1
  124. package/dist/src/{components/util.d.ts → util/index.d.ts} +6 -2
  125. package/dist/src/{utils → util}/kg-auth.util.d.ts +1 -1
  126. package/dist/src/{utils → util}/kg-route.util.d.ts +1 -1
  127. package/dist/src/{utils → util}/kg-var.util.d.ts +1 -1
  128. package/dist/src/{utils → util}/kg.util.d.ts +5 -3
  129. package/package.json +33 -21
  130. package/script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +3 -0
  131. package/script/bump-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +3 -0
  132. package/script/bump-to.ts +38 -0
  133. package/script/bump.ts +35 -0
  134. package/script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +3 -0
  135. package/script/copy-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +3 -0
  136. package/script/copy-to.luotao.smartfactory.tyre.haohua.gantry.was-java--main.ts +3 -0
  137. package/script/copy-to.ts +23 -0
  138. package/script/publish.ts +30 -0
  139. package/dist/src/components-next/KgVarConfig/KgVarConfig.d.ts +0 -2
  140. package/dist/src/components-next/KgVarConfig/index.d.ts +0 -1
  141. package/dist/src/components-next/index.d.ts +0 -1
  142. package/dist/src/pages/KgVarFactory/index.d.ts +0 -1
  143. package/dist/src/utils/index.d.ts +0 -6
  144. package/dist/src/utils/kg-dom.util.d.ts +0 -12
  145. package/dist/src/utils/kg-logger.util.d.ts +0 -69
  146. /package/dist/src/{apis → api}/WMS/Controllers/DescriptionController/index.d.ts +0 -0
  147. /package/dist/src/{apis → api}/WMS/Controllers/SysPermissionController/index.d.ts +0 -0
  148. /package/dist/src/{apis → api}/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -0
  149. /package/dist/src/{apis → api}/WMS/Controllers/VarConfigPossibilityController/index.d.ts +0 -0
  150. /package/dist/src/{apis → api}/WMS/Controllers/VarController/index.d.ts +0 -0
  151. /package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/index.d.ts +0 -0
  152. /package/dist/src/{apis → api}/WMS/Controllers/VarGridMasterController/index.d.ts +0 -0
  153. /package/dist/src/{apis → api}/WMS/Controllers/VarProfileMasterController/index.d.ts +0 -0
  154. /package/dist/src/{apis → api}/WMS/Controllers/VarVariableController/index.d.ts +0 -0
  155. /package/dist/src/{apis → api}/WMS/Controllers/WhController/index.d.ts +0 -0
  156. /package/dist/src/{apis → api}/WMS/Controllers/WorkstationController/index.d.ts +0 -0
  157. /package/dist/src/{apis → api}/WMS/Controllers/index.d.ts +0 -0
  158. /package/dist/src/{apis → api}/WMS/index.d.ts +0 -0
  159. /package/dist/src/{apis → api}/WMS/models.d.ts +0 -0
  160. /package/dist/src/{apis → api}/api.d.ts +0 -0
  161. /package/dist/src/{apis → api}/def.d.ts +0 -0
  162. /package/dist/src/{apis → api}/index.d.ts +0 -0
  163. /package/dist/src/{components → component}/KgAppSelect/index.d.ts +0 -0
  164. /package/dist/src/{components → component}/KgButton/index.d.ts +0 -0
  165. /package/dist/src/{components → component}/KgCanvas/index.d.ts +0 -0
  166. /package/dist/src/{components → component}/KgForm/index.vm.d.ts +0 -0
  167. /package/dist/src/{components → component}/KgForm.Item/KgForm.Item.service.d.ts +0 -0
  168. /package/dist/src/{components → component}/KgForm.Item/addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts +0 -0
  169. /package/dist/src/{components → component}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +0 -0
  170. /package/dist/src/{components → component}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +0 -0
  171. /package/dist/src/{components → component}/KgForm.Item/index.d.ts +0 -0
  172. /package/dist/src/{components → component}/KgImage/index.d.ts +0 -0
  173. /package/dist/src/{components → component}/KgLayoutHeader/components/KgLayoutHeaderLocale.d.ts +0 -0
  174. /package/dist/src/{components → component}/KgLayoutHeader/index.d.ts +0 -0
  175. /package/dist/src/{components → component}/KgLayoutHeader/index.hooks.d.ts +0 -0
  176. /package/dist/src/{components → component}/KgModal/index.d.ts +0 -0
  177. /package/dist/src/{components → component}/KgModal/index.vm.d.ts +0 -0
  178. /package/dist/src/{components → component}/KgProgressA/KgProgressA.d.ts +0 -0
  179. /package/dist/src/{components → component}/KgProgressA/index.d.ts +0 -0
  180. /package/dist/src/{components → component}/KgResizable/KgResizable.d.ts +0 -0
  181. /package/dist/src/{components → component}/KgResizable/KgResizable.service.d.ts +0 -0
  182. /package/dist/src/{components → component}/KgResizable/index.d.ts +0 -0
  183. /package/dist/src/{components → component}/KgSearch/KgSearch.d.ts +0 -0
  184. /package/dist/src/{components → component}/KgSearch/KgSearch.service.d.ts +0 -0
  185. /package/dist/src/{components → component}/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -0
  186. /package/dist/src/{components → component}/KgSearch/index.d.ts +0 -0
  187. /package/dist/src/{components → component}/KgSearch/index.vm.d.ts +0 -0
  188. /package/dist/src/{components → component}/KgStation/KgStation.d.ts +0 -0
  189. /package/dist/src/{components → component}/KgStation/index.d.ts +0 -0
  190. /package/dist/src/{components → component}/KgSubmit/KgSubmit.d.ts +0 -0
  191. /package/dist/src/{components → component}/KgSubmit/KgSubmit.service.d.ts +0 -0
  192. /package/dist/src/{components → component}/KgSubmit/index.d.ts +0 -0
  193. /package/dist/src/{components → component}/KgTable/KgTable.d.ts +0 -0
  194. /package/dist/src/{components → component}/KgTable/KgTable.service.d.ts +0 -0
  195. /package/dist/src/{components → component}/KgTable/components/KgTable.BodyCell.d.ts +0 -0
  196. /package/dist/src/{components → component}/KgTable/components/KgTable.HeaderCell.d.ts +0 -0
  197. /package/dist/src/{components → component}/KgTable/components/KgTable.Info.d.ts +0 -0
  198. /package/dist/src/{components → component}/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -0
  199. /package/dist/src/{components → component}/KgTable/components/setting/KgTable.Setting.d.ts +0 -0
  200. /package/dist/src/{components → component}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -0
  201. /package/dist/src/{components → component}/KgTable/index.d.ts +0 -0
  202. /package/dist/src/{components → component}/KgVar/KgVar.d.ts +0 -0
  203. /package/dist/src/{components → component}/KgVarConfig/KgVarConfig.d.ts +0 -0
  204. /package/dist/src/{components → component}/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts +0 -0
  205. /package/dist/src/{components → component}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +0 -0
  206. /package/dist/src/{components → component}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -0
  207. /package/dist/src/{components → component}/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +0 -0
  208. /package/dist/src/{components → component}/KgVarConfig/components/child/KgVarConfig.Modal.Child.d.ts +0 -0
  209. /package/dist/src/{components → component}/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts +0 -0
  210. /package/dist/src/{components → component}/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +0 -0
  211. /package/dist/src/{components → component}/KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts +0 -0
  212. /package/dist/src/{components → component}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts +0 -0
  213. /package/dist/src/{components → component}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +0 -0
  214. /package/dist/src/{components → component}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +0 -0
  215. /package/dist/src/{components → component}/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts +0 -0
  216. /package/dist/src/{components → component}/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts +0 -0
  217. /package/dist/src/{components → component}/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts +0 -0
  218. /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.d.ts +0 -0
  219. /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.d.ts +0 -0
  220. /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +0 -0
  221. /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +0 -0
  222. /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +0 -0
  223. /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +0 -0
  224. /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +0 -0
  225. /package/dist/src/{components → component}/KgVarConfig/index.d.ts +0 -0
  226. /package/dist/src/{components → component}/KgVarConfig/index.hooks.d.ts +0 -0
  227. /package/dist/src/{components → component}/KgVarConfig/index.store.d.ts +0 -0
  228. /package/dist/src/{components → component}/KgVarConfig/index.vm.d.ts +0 -0
  229. /package/dist/src/{components → component}/KgWarehouse/KgWarehouse.d.ts +0 -0
  230. /package/dist/src/{components → component}/KgWarehouse/index.d.ts +0 -0
  231. /package/dist/src/{components → component}/KgWarehouse/index.guard.d.ts +0 -0
  232. /package/dist/src/{components → component}/KgYesOrNo/KgYesOrNo.d.ts +0 -0
  233. /package/dist/src/{components → component}/KgYesOrNo/index.d.ts +0 -0
  234. /package/dist/src/{components → component}/index.d.ts +0 -0
  235. /package/dist/src/{consts → const}/i18n/index.d.ts +0 -0
  236. /package/dist/src/{consts → const}/index.d.ts +0 -0
  237. /package/dist/src/{helpers → helper}/tsx.helper.d.ts +0 -0
  238. /package/dist/src/{pages → page}/KgPageDda/KgPageDda.d.ts +0 -0
  239. /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +0 -0
  240. /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Basic.d.ts +0 -0
  241. /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Button.d.ts +0 -0
  242. /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Menu.d.ts +0 -0
  243. /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Search.d.ts +0 -0
  244. /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Submit.d.ts +0 -0
  245. /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Table.d.ts +0 -0
  246. /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.d.ts +0 -0
  247. /package/dist/src/{pages → page}/KgPageDda/index.d.ts +0 -0
  248. /package/dist/src/{pages → page}/KgPageDda/index.vm.d.ts +0 -0
  249. /package/dist/src/{services → service}/index.d.ts +0 -0
@@ -10,6 +10,13 @@ declare const _default: {
10
10
  noApiUrl: string;
11
11
  noVarSubmitConfig: string;
12
12
  };
13
+ KgCanvas: {
14
+ enterFullscreen: string;
15
+ exitFullscreen: string;
16
+ originalScale: string;
17
+ overviewScale: string;
18
+ reload: string;
19
+ };
13
20
  KgFormItem: {
14
21
  formValidationMessageForGT: string;
15
22
  formValidationMessageForGTE: string;
@@ -10,6 +10,13 @@ declare const _default: {
10
10
  noApiUrl: string;
11
11
  noVarSubmitConfig: string;
12
12
  };
13
+ KgCanvas: {
14
+ enterFullscreen: string;
15
+ exitFullscreen: string;
16
+ originalScale: string;
17
+ overviewScale: string;
18
+ reload: string;
19
+ };
13
20
  KgFormItem: {
14
21
  formValidationMessageForGT: string;
15
22
  formValidationMessageForGTE: string;
@@ -10,6 +10,13 @@ declare const _default: {
10
10
  noApiUrl: string;
11
11
  noVarSubmitConfig: string;
12
12
  };
13
+ KgCanvas: {
14
+ enterFullscreen: string;
15
+ exitFullscreen: string;
16
+ originalScale: string;
17
+ overviewScale: string;
18
+ reload: string;
19
+ };
13
20
  KgFormItem: {
14
21
  formValidationMessageForGT: string;
15
22
  formValidationMessageForGTE: string;
@@ -10,6 +10,13 @@ declare const _default: {
10
10
  noApiUrl: string;
11
11
  noVarSubmitConfig: string;
12
12
  };
13
+ KgCanvas: {
14
+ enterFullscreen: string;
15
+ exitFullscreen: string;
16
+ originalScale: string;
17
+ overviewScale: string;
18
+ reload: string;
19
+ };
13
20
  KgFormItem: {
14
21
  formValidationMessageForGT: string;
15
22
  formValidationMessageForGTE: string;
@@ -10,6 +10,13 @@ declare const _default: {
10
10
  noApiUrl: string;
11
11
  noVarSubmitConfig: string;
12
12
  };
13
+ KgCanvas: {
14
+ enterFullscreen: string;
15
+ exitFullscreen: string;
16
+ originalScale: string;
17
+ overviewScale: string;
18
+ reload: string;
19
+ };
13
20
  KgFormItem: {
14
21
  formValidationMessageForGT: string;
15
22
  formValidationMessageForGTE: string;
@@ -10,6 +10,14 @@ declare const _default: {
10
10
  noApiUrl: string;
11
11
  noVarSubmitConfig: string;
12
12
  };
13
+ KgCanvas: {
14
+ enterFullscreen: string;
15
+ exitFullscreen: string;
16
+ exportImage: string;
17
+ originalScale: string;
18
+ overviewScale: string;
19
+ reload: string;
20
+ };
13
21
  KgFormItem: {
14
22
  formValidationMessageForGT: string;
15
23
  formValidationMessageForGTE: string;
@@ -480,7 +480,15 @@ export declare enum KG_HTTP_HEADERS {
480
480
  /**
481
481
  * 仓库编号.
482
482
  */
483
- KG_WAREHOUSE = "Kg-Warehouse"
483
+ KG_WAREHOUSE = "Kg-Warehouse",
484
+ /**
485
+ * 工作站.
486
+ */
487
+ KG_WORK_STATION = "Kg-Work-Station",
488
+ /**
489
+ * 工作区.
490
+ */
491
+ KG_WORK_AREA = "Kg-Work-Area"
484
492
  }
485
493
  /** 特殊属性:请求返回的原始响应数据. */
486
494
  export declare const __KG__RESPONSE__ = "__KG__RESPONSE__";
@@ -495,12 +503,12 @@ export declare const KG_TMP_MENU_ID__SYS = "KG_TMP_MENU_ID__SYS";
495
503
  /** 模块菜单的临时ID:PDA. */
496
504
  export declare const KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA";
497
505
  /** 移除事件监听函数. */
498
- export declare type IRemoveEventListenerHandler = () => void;
506
+ export declare type IRemoveEventListener = () => void;
499
507
  export declare type IKgEventListener = {
508
+ /** 是否已经触发过一次了. */
509
+ isDone?: boolean;
500
510
  /** 是否只会触发一次. */
501
511
  isOnce?: boolean;
502
- /** 是否已经触发过一次了. */
503
- invoked?: boolean;
504
512
  };
505
513
  /** 菜单. */
506
514
  export interface Menu {
@@ -1,4 +1,6 @@
1
1
  import { InjectionKey } from 'vue';
2
+ /** 唯一标识. */
3
+ export declare const KG__DI__ID: InjectionKey<string>;
2
4
  /** 界面标识. */
3
5
  export declare const KG__DI__FORM_ID: InjectionKey<string>;
4
6
  /** 宿主界面标识. */
@@ -9,11 +9,11 @@ export declare const formProps: () => {
9
9
  layout: PropType<"vertical" | "horizontal" | "inline">;
10
10
  labelCol: {
11
11
  type: PropType<Partial<ExtractPropTypes<{
12
- span: (NumberConstructor | StringConstructor)[];
13
- order: (NumberConstructor | StringConstructor)[];
14
- offset: (NumberConstructor | StringConstructor)[];
15
- push: (NumberConstructor | StringConstructor)[];
16
- pull: (NumberConstructor | StringConstructor)[];
12
+ span: (StringConstructor | NumberConstructor)[];
13
+ order: (StringConstructor | NumberConstructor)[];
14
+ offset: (StringConstructor | NumberConstructor)[];
15
+ push: (StringConstructor | NumberConstructor)[];
16
+ pull: (StringConstructor | NumberConstructor)[];
17
17
  xs: {
18
18
  type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
19
19
  default: string | number | import("ant-design-vue/lib/grid").ColSize;
@@ -43,16 +43,16 @@ export declare const formProps: () => {
43
43
  default: string | number | import("ant-design-vue/lib/grid").ColSize;
44
44
  };
45
45
  prefixCls: StringConstructor;
46
- flex: (NumberConstructor | StringConstructor)[];
46
+ flex: (StringConstructor | NumberConstructor)[];
47
47
  }>> & HTMLAttributes>;
48
48
  };
49
49
  wrapperCol: {
50
50
  type: PropType<Partial<ExtractPropTypes<{
51
- span: (NumberConstructor | StringConstructor)[];
52
- order: (NumberConstructor | StringConstructor)[];
53
- offset: (NumberConstructor | StringConstructor)[];
54
- push: (NumberConstructor | StringConstructor)[];
55
- pull: (NumberConstructor | StringConstructor)[];
51
+ span: (StringConstructor | NumberConstructor)[];
52
+ order: (StringConstructor | NumberConstructor)[];
53
+ offset: (StringConstructor | NumberConstructor)[];
54
+ push: (StringConstructor | NumberConstructor)[];
55
+ pull: (StringConstructor | NumberConstructor)[];
56
56
  xs: {
57
57
  type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
58
58
  default: string | number | import("ant-design-vue/lib/grid").ColSize;
@@ -82,7 +82,7 @@ export declare const formProps: () => {
82
82
  default: string | number | import("ant-design-vue/lib/grid").ColSize;
83
83
  };
84
84
  prefixCls: StringConstructor;
85
- flex: (NumberConstructor | StringConstructor)[];
85
+ flex: (StringConstructor | NumberConstructor)[];
86
86
  }>> & HTMLAttributes>;
87
87
  };
88
88
  colon: {
@@ -166,7 +166,7 @@ export declare const modalProps: () => {
166
166
  type: BooleanConstructor;
167
167
  default: undefined;
168
168
  };
169
- width: (NumberConstructor | StringConstructor)[];
169
+ width: (StringConstructor | NumberConstructor)[];
170
170
  footer: PropType<any>;
171
171
  okText: PropType<any>;
172
172
  okType: PropType<LegacyButtonType>;
@@ -340,8 +340,8 @@ export declare const imageProps: () => {
340
340
  type: PropType<(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error) => any>;
341
341
  };
342
342
  id: StringConstructor;
343
- width: (NumberConstructor | StringConstructor)[];
344
- height: (NumberConstructor | StringConstructor)[];
343
+ width: (StringConstructor | NumberConstructor)[];
344
+ height: (StringConstructor | NumberConstructor)[];
345
345
  style: StringConstructor;
346
346
  };
347
347
  export {};
@@ -1,12 +1,11 @@
1
- import './assets/index.less';
2
- export * from '@kengic/core';
3
- export { API as KG_API } from './apis';
4
- export * from './apis/WMS/models';
5
- export * from './components';
6
- export * from './components-next';
1
+ import './asset/index.less';
2
+ export * from '@kengic/core.react';
3
+ export { API } from './api';
4
+ export * from './api/WMS/models';
5
+ export * from './component';
7
6
  export * from './config';
8
- export * from './consts';
9
- export * from './pages';
10
- export * from './services';
11
- export * from './utils';
7
+ export * from './const';
8
+ export * from './page';
9
+ export * from './service';
10
+ export * from './util';
12
11
  export * from './project';
@@ -1,4 +1,4 @@
1
- import { ResultSetMetadataColumn, SysPermission, VarButton, VarGridDetail, VarProfileDetail, VarSubmitDetail } from '../../../apis/WMS/models';
1
+ import { ResultSetMetadataColumn, SysPermission, VarButton, VarGridDetail, VarProfileDetail, VarSubmitDetail } from '../../../api/WMS/models';
2
2
  export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"KgPageDdaCreate", import("pinia")._UnwrapAll<Pick<{
3
3
  createVarButton: (button: VarButton) => void;
4
4
  updateVarConfigDescription: (param: {
@@ -1,6 +1,5 @@
1
1
  export * from './KgPageDda';
2
2
  export { default as KgPageDda } from './KgPageDda';
3
- export * from './KgVarFactory';
4
3
  /**
5
4
  * 路由.
6
5
  *
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance, type AxiosRequestConfig } from 'axios';
2
2
  import dayjs from 'dayjs';
3
- import { KG_DYNAMIC_QUERY_OPERATOR } from '../consts';
3
+ import { KG_DYNAMIC_QUERY_OPERATOR } from '../const';
4
4
  interface IHttpClient {
5
5
  axiosInstance: AxiosInstance;
6
6
  options: {
@@ -1,4 +1,8 @@
1
- import { IKgEventListener, IRemoveEventListenerHandler } from '../consts';
1
+ import { IKgEventListener, IRemoveEventListener } from '../const';
2
+ export * from './kg-auth.util';
3
+ export * from './kg.util';
4
+ export * from './kg-route.util';
5
+ export * from './kg-var.util';
2
6
  /**
3
7
  * 构造事件监听.
4
8
  * @param formID 界面标识.
@@ -11,4 +15,4 @@ export declare function onEventFactory<S extends {
11
15
  } | {
12
16
  addEventListener(event: E, listener: L): void;
13
17
  removeEventListener(event: E, listener?: L): void;
14
- } = any, E = any, L extends IKgEventListener = any>(formID: string | null, store: S, event: E): (listener: L, isOnce?: boolean) => IRemoveEventListenerHandler;
18
+ } = any, E = any, L extends IKgEventListener = any>(formID: string | null, store: S, event: E): (listener: L, isOnce?: boolean) => IRemoveEventListener;
@@ -1,4 +1,4 @@
1
- import { KG_APP } from '../consts';
1
+ import { KG_APP } from '../const';
2
2
  export declare class KgAuthUtil {
3
3
  /**
4
4
  * 判断当前登录用户是否是管理员.
@@ -1,4 +1,4 @@
1
- import { KG_APP, Menu } from '../consts';
1
+ import { KG_APP, Menu } from '../const';
2
2
  export declare class KgRouteUtil {
3
3
  /**
4
4
  * 给所有模块都添加在线表单的路由.
@@ -1,5 +1,5 @@
1
1
  import dayjs from 'dayjs';
2
- import { KG__VAR_CONFIG_CONTROL__CONTROL_TYPE } from '../consts';
2
+ import { KG__VAR_CONFIG_CONTROL__CONTROL_TYPE } from '../const';
3
3
  /**
4
4
  * 变量相关工具.
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
2
2
  import dayjs, { Dayjs } from 'dayjs';
3
- import { IKgVarButtonModalProperties } from '../consts';
3
+ import { IKgVarButtonModalProperties } from '../const';
4
4
  /**
5
5
  * 通用工具.
6
6
  */
@@ -136,11 +136,13 @@ export declare class KgUtil {
136
136
  */
137
137
  static snakeCase(value: any): string;
138
138
  /**
139
- * 获取唯一标识.
139
+ * 获取一个 UUID.
140
140
  *
141
141
  * @return UUID.
142
142
  */
143
- static uuid(): string;
143
+ static uuid(param?: {
144
+ prefix?: string;
145
+ }): string;
144
146
  }
145
147
  export declare type ModalFunc = {
146
148
  destroy: () => void;
package/package.json CHANGED
@@ -1,31 +1,30 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.26.6-beta.12",
3
+ "version": "0.26.6-beta.121",
4
4
  "scripts": {
5
- "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
- "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
5
+ "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
+ "build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
7
7
  "--------------------------------------------------": "",
8
- "publish:all:major": "npm run bump-version:major && npm run publish:all",
9
- "publish:all:minor": "npm run bump-version:minor && npm run publish:all",
10
- "publish:all:patch": "npm run bump-version:patch && npm run publish:all",
11
- "publish:all:beta": "npm run bump-version:beta && npm run publish:all",
12
- "----- --------------------------------------------": "",
13
- "gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
8
+ "gen:apis:WMS": "npm run use-node && kengic-pont generate-apis --config kg.config.ts --origin WMS",
14
9
  "- ------------------------------------------------": "",
15
- "switch-node-version": "nvm use 18.20.4 && corepack enable && corepack prepare pnpm@7.30.5 --activate && corepack use pnpm@7.30.5",
16
- "cnpm:sync": "npx cnpm --yes sync @kengic/vue",
10
+ "use-node": "npm cache clean -f && nvm use 18.20.4 && corepack enable && corepack use pnpm@7.30.5",
11
+ "cnpm:sync": "npm run use-node && npx cnpm --yes sync @kengic/vue",
17
12
  "-- -----------------------------------------------": "",
18
- "bump-version:beta": "npm run switch-node-version && tsx scripts/bump.ts beta",
19
- "bump-version:major": "npm run switch-node-version && tsx scripts/bump.ts major",
20
- "bump-version:minor": "npm run switch-node-version && tsx scripts/bump.ts minor",
21
- "bump-version:patch": "npm run switch-node-version && tsx scripts/bump.ts patch",
13
+ "publish:major": "npm run bump:major && tsx script/publish.ts",
14
+ "publish:minor": "npm run bump:minor && tsx script/publish.ts",
15
+ "publish:patch": "npm run bump:patch && tsx script/publish.ts",
16
+ "publish:beta": "npm run bump:beta && tsx script/publish.ts",
17
+ "----- --------------------------------------------": "",
18
+ "bump:major": "npm run use-node && tsx script/bump.ts major",
19
+ "bump:minor": "npm run use-node && tsx script/bump.ts minor",
20
+ "bump:patch": "npm run use-node && tsx script/bump.ts patch",
21
+ "bump:beta": "npm run use-node && tsx script/bump.ts beta",
22
22
  "---- ---------------------------------------------": "",
23
- "publish:all": "npm run switch-node-version && tsx scripts/publish.ts",
24
- "publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public",
23
+ "publish:npm": "npm run use-node && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public",
25
24
  "------- ------------------------------------------": "",
26
- "copy-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run build:dev && tsx scripts/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
25
+ "copy-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run use-node && npm run build:dev && tsx script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
27
26
  "--- ----------------------------------------------": "",
28
- "bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run switch-node-version && tsx scripts/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts"
27
+ "bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run use-node && tsx script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts"
29
28
  },
30
29
  "peerDependencies": {
31
30
  "vue": "3.2.43"
@@ -39,8 +38,9 @@
39
38
  "@iconify-icons/material-symbols": "1.2.58",
40
39
  "@iconify-icons/mdi": "1.2.48",
41
40
  "@iconify-icons/ph": "1.2.5",
42
- "@iconify/vue": "4.1.1",
43
- "@kengic/core": "6.0.1-beta.13",
41
+ "@iconify/vue": "4.1.2",
42
+ "@kengic/core.core": "0.0.1-beta.12",
43
+ "@kengic/core.react": "0.0.1-beta.14",
44
44
  "@kengic/pont": "1.2.17-beta.1",
45
45
  "@rys-fe/vite-plugin-theme": "0.8.6",
46
46
  "@thymine/xunee": "0.4.9-beta.8",
@@ -75,6 +75,7 @@
75
75
  "rimraf": "3.0.2",
76
76
  "rollup": "2.79.1",
77
77
  "rollup-plugin-visualizer": "5.8.3",
78
+ "screenfull": "6.0.2",
78
79
  "semver": "7.5.4",
79
80
  "store": "2.0.12",
80
81
  "tsx": "3.12.3",
@@ -110,6 +111,17 @@
110
111
  },
111
112
  "prettier": {
112
113
  "endOfLine": "auto",
114
+ "overrides": [
115
+ {
116
+ "files": [
117
+ "*.less",
118
+ "*.css"
119
+ ],
120
+ "options": {
121
+ "printWidth": 320
122
+ }
123
+ }
124
+ ],
113
125
  "printWidth": 160,
114
126
  "semi": true,
115
127
  "singleAttributePerLine": true,
@@ -0,0 +1,3 @@
1
+ import { bumpVersionToProjects } from './bump-to';
2
+
3
+ ['file:///D:/proj/kg/smartfactory.product.wms.wms--dev-3.2/wms-vue3'].forEach((projectPath) => bumpVersionToProjects(projectPath, []));
@@ -0,0 +1,3 @@
1
+ import { bumpVersionToProjects } from './bump-to';
2
+
3
+ ['file:///D:/proj/kg/smartfactory.product.wms.wms-vue3--focus'].forEach((projectPath) => bumpVersionToProjects(projectPath, []));
@@ -0,0 +1,38 @@
1
+ import fs from 'fs';
2
+ import chalk from 'chalk';
3
+
4
+ /**
5
+ * 更新前端项目中包的版本号.
6
+ * 当我们升级了这些包的版本后, 可以使用该方法快速将新的版本号同步到前端项目中去.
7
+ *
8
+ * @param projectPath 前端项目目录.
9
+ * @param excludes 要排除的包.
10
+ */
11
+ function bumpVersionToProjects(projectPath: string, excludes: Array<string> = []) {
12
+ // file:///D:/foo/...
13
+ const pkgPath = `${projectPath}/package.json`;
14
+ // D:/foo/...
15
+ const absolutePkgPath = pkgPath.replace('file:///', '');
16
+
17
+ import(pkgPath)
18
+ .then(({ default: json }) => {
19
+ Promise.all([import('../package.json')])
20
+ .then(([{ version, name, dependencies, devDependencies }]) => {
21
+ if (json.dependencies[name]) {
22
+ json.dependencies[name] = version;
23
+ }
24
+
25
+ fs.writeFileSync(absolutePkgPath, `${JSON.stringify(json, null, 2)}\n`, {});
26
+ console.log();
27
+ console.log(chalk.green(`版本更新成功`) + ' | ' + chalk.blueBright(version) + ' | ' + absolutePkgPath);
28
+ })
29
+ .catch((e) => {
30
+ console.log(e);
31
+ });
32
+ })
33
+ .catch((e) => {
34
+ console.error(e);
35
+ });
36
+ }
37
+
38
+ export { bumpVersionToProjects };
package/script/bump.ts ADDED
@@ -0,0 +1,35 @@
1
+ import fs from 'fs';
2
+ import semver from 'semver';
3
+
4
+ //____________________________________________________________________________________________________
5
+ // 自动更新所有包的版本号
6
+ //____________________________________________________________________________________________________
7
+
8
+ import('../package.json').then(({ default: json }) => {
9
+ const type = process.argv[2];
10
+ let version = json.version;
11
+
12
+ switch (type) {
13
+ case 'major':
14
+ version = semver.inc(version, 'major');
15
+ break;
16
+ case 'minor':
17
+ version = semver.inc(version, 'minor');
18
+ break;
19
+ case 'patch':
20
+ version = semver.inc(version, 'patch');
21
+ break;
22
+ case 'beta':
23
+ version = semver.inc(version, 'prerelease', 'beta');
24
+ break;
25
+ default:
26
+ throw new Error('INVALID SEMVER TYPE');
27
+ }
28
+
29
+ import('../package.json').then(({ default: json }) => {
30
+ json.version = version;
31
+ fs.writeFileSync('./package.json', `${JSON.stringify(json, null, 4)}\n`, {});
32
+ });
33
+ });
34
+
35
+ export {};
@@ -0,0 +1,3 @@
1
+ import { copyToProject } from './copy-to';
2
+
3
+ ['D:/proj/kg/smartfactory.product.wms.wms--dev-3.2/wms-vue3'].forEach((projectPath) => copyToProject(projectPath));
@@ -0,0 +1,3 @@
1
+ import { copyToProject } from './copy-to';
2
+
3
+ ['D:/proj/kg/smartfactory.product.wms.wms-vue3--focus'].forEach((projectPath) => copyToProject(projectPath));
@@ -0,0 +1,3 @@
1
+ import { copyToProject } from './copy-to';
2
+
3
+ ['D:/proj/kg/smartfactory.tyre.haohua.gantry.was-java--main/wms-vue3'].forEach((projectPath) => copyToProject(projectPath));
@@ -0,0 +1,23 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+
4
+ /**
5
+ * 开发时, 需要将打包后的文件复制到项目的 node_modules 目录下进行测试.
6
+ *
7
+ * @param projectPath 前端项目目录.
8
+ */
9
+ function copyToProject(projectPath: string) {
10
+ const cacheDir = path.join(projectPath, '/node_modules/.vite/');
11
+ if (fs.existsSync(cacheDir)) {
12
+ fs.rmSync(cacheDir, { recursive: true, force: true });
13
+ }
14
+
15
+ const dir = path.join(projectPath, '/node_modules/@kengic/vue/dist/');
16
+ if (fs.existsSync(dir)) {
17
+ fs.rmSync(dir, { recursive: true, force: true });
18
+ }
19
+
20
+ fs.cpSync('./dist/', dir, { recursive: true });
21
+ }
22
+
23
+ export { copyToProject };
@@ -0,0 +1,30 @@
1
+ import chalk from 'chalk';
2
+ import { execSync } from 'node:child_process';
3
+ import { name, version } from '../package.json';
4
+
5
+ /*
6
+ * 使用下面的脚本来简化打包发布流程.
7
+ */
8
+
9
+ const PKGNAME = `${name}@${version}`;
10
+
11
+ //region 安装依赖
12
+ //____________________________________________________________________________________________________
13
+ console.log('');
14
+ execSync('npm cache clean -f', { cwd: './', stdio: 'ignore' });
15
+ execSync('pnpm install', { cwd: './', stdio: 'ignore' });
16
+ console.log(`${chalk.blueBright('INSTALL ')}| ${PKGNAME}`);
17
+ //endregion
18
+
19
+ //region 打包
20
+ //____________________________________________________________________________________________________
21
+ execSync('npm run build', { cwd: './', stdio: 'ignore' });
22
+ console.log(`${chalk.blueBright(' BUILD ')}| ${PKGNAME}`);
23
+ //endregion
24
+
25
+ //region 发布
26
+ //____________________________________________________________________________________________________
27
+ execSync('npm run publish:npm', { cwd: './', stdio: 'ignore' });
28
+ console.log(`${chalk.blueBright('PUBLISH ')}| ${PKGNAME}`);
29
+ console.log('');
30
+ //endregion
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _default;
@@ -1 +0,0 @@
1
- export { default as KgVarConfig } from './KgVarConfig';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export { KgVarFactory, DEFAULT as KgVar2 } from './KgVarFactory';
@@ -1,6 +0,0 @@
1
- export * from './kg-auth.util';
2
- export * from './kg-dom.util';
3
- export * from './kg.util';
4
- export * from './kg-logger.util';
5
- export * from './kg-route.util';
6
- export * from './kg-var.util';
@@ -1,12 +0,0 @@
1
- /**
2
- * DOM 工具.
3
- */
4
- export declare class KgDomUtil {
5
- /**
6
- * 判断元素是否不能响应点击事件.
7
- * 如果不想让某个元素响应点击事件, 则可以给它的父元素加上 kg-not-clickable 样式类.
8
- * @param el 元素.
9
- * @param classes 除了 kg-not-clickable 之外额外需要判断的样式类.
10
- */
11
- static isNotClickable(el?: Element | null, classes?: Array<string>): boolean;
12
- }