@kengic/vue 0.26.6-beta.8 → 0.26.6-beta.81

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/close-outlined-DMcSQWxQ.5aef1ccf.mjs +8 -0
  3. package/dist/fullscreen-exit-outlined-X1iYkFc4.b68e0247.mjs +8 -0
  4. package/dist/fullscreen-exit-outlined.a75b82c2.mjs +8 -0
  5. package/dist/fullscreen-outlined-DDBrsRcy.2e48e278.mjs +8 -0
  6. package/dist/fullscreen-outlined.c9ba7960.mjs +8 -0
  7. package/dist/index.css +1 -1
  8. package/dist/kengic-vue.js +60620 -44325
  9. package/dist/src/api/WMS/Controllers/DescriptionController/List.d.ts +51 -0
  10. package/dist/src/api/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
  11. package/dist/src/api/WMS/Controllers/DescriptionController/index.d.ts +2 -0
  12. package/dist/src/api/WMS/Controllers/SysPermissionController/List.d.ts +73 -0
  13. package/dist/src/api/WMS/Controllers/SysPermissionController/index.d.ts +1 -0
  14. package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +16 -0
  15. package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/index.d.ts +1 -0
  16. package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
  17. package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
  18. package/dist/src/api/WMS/Controllers/VarController/GetAll.d.ts +16 -0
  19. package/dist/src/api/WMS/Controllers/VarController/index.d.ts +1 -0
  20. package/dist/src/api/WMS/Controllers/VarDdaController/Create.d.ts +16 -0
  21. package/dist/src/api/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +16 -0
  22. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +16 -0
  23. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +16 -0
  24. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +16 -0
  25. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +16 -0
  26. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +16 -0
  27. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +16 -0
  28. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +16 -0
  29. package/dist/src/api/WMS/Controllers/VarDdaController/index.d.ts +9 -0
  30. package/dist/src/api/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +19 -0
  31. package/dist/src/api/WMS/Controllers/VarGridMasterController/Update.d.ts +16 -0
  32. package/dist/src/api/WMS/Controllers/VarGridMasterController/index.d.ts +2 -0
  33. package/dist/src/api/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +19 -0
  34. package/dist/src/api/WMS/Controllers/VarProfileMasterController/index.d.ts +1 -0
  35. package/dist/src/api/WMS/Controllers/VarVariableController/Delete.d.ts +16 -0
  36. package/dist/src/api/WMS/Controllers/VarVariableController/index.d.ts +1 -0
  37. package/dist/src/api/WMS/Controllers/WhController/ListVO.d.ts +54 -0
  38. package/dist/src/api/WMS/Controllers/WhController/index.d.ts +1 -0
  39. package/dist/src/api/WMS/Controllers/WorkstationController/List.d.ts +25 -0
  40. package/dist/src/api/WMS/Controllers/WorkstationController/index.d.ts +1 -0
  41. package/dist/src/api/WMS/Controllers/index.d.ts +11 -0
  42. package/dist/src/api/WMS/index.d.ts +2 -0
  43. package/dist/src/api/WMS/models.d.ts +1018 -0
  44. package/dist/src/api/api.d.ts +1 -0
  45. package/dist/src/api/def.d.ts +1 -0
  46. package/dist/src/api/index.d.ts +2 -0
  47. package/dist/src/component/KgAppSelect/KgAppSelect.d.ts +47 -0
  48. package/dist/src/component/KgAppSelect/index.d.ts +3 -0
  49. package/dist/src/component/KgAppSelect/index.hooks.d.ts +41 -0
  50. package/dist/src/component/KgAppSelect/index.store.d.ts +74 -0
  51. package/dist/src/component/KgButton/KgButton.Item.d.ts +41 -0
  52. package/dist/src/component/KgButton/KgButton.Item.data.d.ts +31 -0
  53. package/dist/src/component/KgButton/KgButton.d.ts +40 -0
  54. package/dist/src/component/KgButton/components/KgButton.Copy.d.ts +40 -0
  55. package/dist/src/component/KgButton/components/KgButton.Create.d.ts +40 -0
  56. package/dist/src/component/KgButton/components/KgButton.Delete.d.ts +40 -0
  57. package/dist/src/component/KgButton/components/KgButton.Export.d.ts +40 -0
  58. package/dist/src/component/KgButton/components/KgButton.Import.d.ts +40 -0
  59. package/dist/src/component/KgButton/components/KgButton.ImportTemplate.d.ts +40 -0
  60. package/dist/src/component/KgButton/components/KgButton.Other.d.ts +40 -0
  61. package/dist/src/component/KgButton/components/KgButton.Search.d.ts +40 -0
  62. package/dist/src/component/KgButton/components/KgButton.Update.d.ts +40 -0
  63. package/dist/src/component/KgButton/index.d.ts +62 -0
  64. package/dist/src/component/KgButton/index.hooks.d.ts +183 -0
  65. package/dist/src/component/KgButton/index.store.d.ts +116 -0
  66. package/dist/src/component/KgCanvas/KgCanvas.d.ts +122 -0
  67. package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +43 -0
  68. package/dist/src/component/KgCanvas/KgCanvasContextMenu.d.ts +107 -0
  69. package/dist/src/component/KgCanvas/KgCanvasToolbarFullscreen.d.ts +38 -0
  70. package/dist/src/component/KgCanvas/KgCanvasTooltip.d.ts +31 -0
  71. package/dist/src/component/KgCanvas/index.d.ts +4 -0
  72. package/dist/src/component/KgCanvas/index.hooks.d.ts +67 -0
  73. package/dist/src/component/KgCanvas/index.store.d.ts +239 -0
  74. package/dist/src/component/KgForm/KgForm.d.ts +414 -0
  75. package/dist/src/component/KgForm/index.d.ts +604 -0
  76. package/dist/src/component/KgForm/index.hooks.d.ts +73 -0
  77. package/dist/src/component/KgForm/index.store.d.ts +221 -0
  78. package/dist/src/component/KgForm/index.vm.d.ts +9 -0
  79. package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +97 -0
  80. package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +17 -0
  81. package/dist/src/component/KgForm.Item/addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts +49 -0
  82. package/dist/src/component/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +16 -0
  83. package/dist/src/component/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +31 -0
  84. package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +100 -0
  85. package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +99 -0
  86. package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +97 -0
  87. package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +97 -0
  88. package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +92 -0
  89. package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +96 -0
  90. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +96 -0
  91. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +96 -0
  92. package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +98 -0
  93. package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +98 -0
  94. package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.service.d.ts +29 -0
  95. package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +96 -0
  96. package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +96 -0
  97. package/dist/src/component/KgForm.Item/index.d.ts +2 -0
  98. package/dist/src/component/KgForm.Item/index.vm.d.ts +124 -0
  99. package/dist/src/component/KgImage/KgImage.d.ts +100 -0
  100. package/dist/src/component/KgImage/index.d.ts +1 -0
  101. package/dist/src/component/KgLayoutHeader/components/KgLayoutHeaderLocale.d.ts +38 -0
  102. package/dist/src/component/KgLayoutHeader/index.d.ts +2 -0
  103. package/dist/src/component/KgLayoutHeader/index.hooks.d.ts +4 -0
  104. package/dist/src/component/KgModal/KgModal.d.ts +823 -0
  105. package/dist/src/component/KgModal/KgModalHeaderButtons.d.ts +92 -0
  106. package/dist/src/component/KgModal/hooks/useDragToMove.d.ts +12 -0
  107. package/dist/src/component/KgModal/hooks/useDragToResize.d.ts +29 -0
  108. package/dist/src/component/KgModal/index.d.ts +1 -0
  109. package/dist/src/component/KgModal/index.vm.d.ts +8 -0
  110. package/dist/src/component/KgProgressA/KgProgressA.d.ts +85 -0
  111. package/dist/src/component/KgProgressA/index.d.ts +1 -0
  112. package/dist/src/component/KgResizable/KgResizable.d.ts +91 -0
  113. package/dist/src/component/KgResizable/KgResizable.service.d.ts +12 -0
  114. package/dist/src/component/KgResizable/index.d.ts +1 -0
  115. package/dist/src/component/KgSearch/KgSearch.d.ts +26 -0
  116. package/dist/src/component/KgSearch/KgSearch.service.d.ts +32 -0
  117. package/dist/src/component/KgSearch/components/KgSearch.ConfigModal.d.ts +16 -0
  118. package/dist/src/component/KgSearch/index.d.ts +3 -0
  119. package/dist/src/component/KgSearch/index.hooks.d.ts +67 -0
  120. package/dist/src/component/KgSearch/index.store.d.ts +147 -0
  121. package/dist/src/component/KgSearch/index.vm.d.ts +1 -0
  122. package/dist/src/component/KgStation/KgStation.d.ts +47 -0
  123. package/dist/src/component/KgStation/index.d.ts +3 -0
  124. package/dist/src/component/KgStation/index.hooks.d.ts +29 -0
  125. package/dist/src/component/KgStation/index.store.d.ts +45 -0
  126. package/dist/src/component/KgSubmit/KgSubmit.d.ts +21 -0
  127. package/dist/src/component/KgSubmit/KgSubmit.service.d.ts +29 -0
  128. package/dist/src/component/KgSubmit/index.d.ts +4 -0
  129. package/dist/src/component/KgSubmit/index.hooks.d.ts +295 -0
  130. package/dist/src/component/KgSubmit/index.store.d.ts +194 -0
  131. package/dist/src/component/KgSubmit/index.vm.d.ts +57 -0
  132. package/dist/src/component/KgTable/KgTable.d.ts +39 -0
  133. package/dist/src/component/KgTable/KgTable.service.d.ts +34 -0
  134. package/dist/src/component/KgTable/components/KgTable.BodyCell.d.ts +60 -0
  135. package/dist/src/component/KgTable/components/KgTable.HeaderCell.d.ts +52 -0
  136. package/dist/src/component/KgTable/components/KgTable.Info.d.ts +57 -0
  137. package/dist/src/component/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +5 -0
  138. package/dist/src/component/KgTable/components/setting/KgTable.Setting.d.ts +21 -0
  139. package/dist/src/component/KgTable/components/setting/KgTable.Setting.service.d.ts +22 -0
  140. package/dist/src/component/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +16 -0
  141. package/dist/src/component/KgTable/index.d.ts +4 -0
  142. package/dist/src/component/KgTable/index.hooks.d.ts +148 -0
  143. package/dist/src/component/KgTable/index.store.d.ts +241 -0
  144. package/dist/src/component/KgTable/index.vm.d.ts +67 -0
  145. package/dist/src/component/KgVar/KgVar.d.ts +114 -0
  146. package/dist/src/component/KgVar/KgVarFactory.d.ts +61 -0
  147. package/dist/src/component/KgVar/index.d.ts +5 -0
  148. package/dist/src/component/KgVar/index.hooks.d.ts +189 -0
  149. package/dist/src/component/KgVar/index.store.d.ts +266 -0
  150. package/dist/src/component/KgVar/index.store.service.d.ts +30 -0
  151. package/dist/src/component/KgVar/index.vm.d.ts +57 -0
  152. package/dist/src/component/KgVarConfig/KgVarConfig.d.ts +3 -0
  153. package/dist/src/component/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts +27 -0
  154. package/dist/src/component/KgVarConfig/components/KgVarConfigModal.d.ts +15 -0
  155. package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +7 -0
  156. package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +7 -0
  157. package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +5 -0
  158. package/dist/src/component/KgVarConfig/components/child/KgVarConfig.Modal.Child.d.ts +7 -0
  159. package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts +7 -0
  160. package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +7 -0
  161. package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +7 -0
  162. package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts +5 -0
  163. package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts +7 -0
  164. package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +7 -0
  165. package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +5 -0
  166. package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts +7 -0
  167. package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts +7 -0
  168. package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +23 -0
  169. package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts +5 -0
  170. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.d.ts +2 -0
  171. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.d.ts +2 -0
  172. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
  173. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
  174. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
  175. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
  176. package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
  177. package/dist/src/component/KgVarConfig/index.d.ts +3 -0
  178. package/dist/src/component/KgVarConfig/index.hooks.d.ts +17 -0
  179. package/dist/src/component/KgVarConfig/index.store.d.ts +16 -0
  180. package/dist/src/component/KgVarConfig/index.vm.d.ts +50 -0
  181. package/dist/src/component/KgWarehouse/KgWarehouse.d.ts +47 -0
  182. package/dist/src/component/KgWarehouse/index.d.ts +4 -0
  183. package/dist/src/component/KgWarehouse/index.guard.d.ts +8 -0
  184. package/dist/src/component/KgWarehouse/index.hooks.d.ts +27 -0
  185. package/dist/src/component/KgWarehouse/index.store.d.ts +63 -0
  186. package/dist/src/component/KgYesOrNo/KgYesOrNo.d.ts +60 -0
  187. package/dist/src/component/KgYesOrNo/index.d.ts +1 -0
  188. package/dist/src/component/index.d.ts +21 -0
  189. package/dist/src/component/util.d.ts +14 -0
  190. package/dist/src/config/index.d.ts +3 -0
  191. package/dist/src/config/index.hooks.d.ts +36 -0
  192. package/dist/src/config/index.store.d.ts +315 -0
  193. package/dist/src/config/setup/index.d.ts +3 -0
  194. package/dist/src/config/setup/setup.d.ts +28 -0
  195. package/dist/src/config/setup/setupKgLocale.d.ts +29 -0
  196. package/dist/src/config/setup/setupKgStore.d.ts +18 -0
  197. package/dist/src/const/i18n/en.d.ts +278 -0
  198. package/dist/src/const/i18n/es_ES.d.ts +278 -0
  199. package/dist/src/const/i18n/fr_FR.d.ts +278 -0
  200. package/dist/src/const/i18n/index.d.ts +2 -0
  201. package/dist/src/const/i18n/km_KH.d.ts +278 -0
  202. package/dist/src/const/i18n/ko_KR.d.ts +278 -0
  203. package/dist/src/const/i18n/vi_VN.d.ts +278 -0
  204. package/dist/src/const/i18n/zh_CN.d.ts +278 -0
  205. package/dist/src/const/index.d.ts +3 -0
  206. package/dist/src/const/index.vm.d.ts +733 -0
  207. package/dist/src/const/injection-keys.const.d.ts +9 -0
  208. package/dist/src/helper/ant-design-vue.d.ts +347 -0
  209. package/dist/src/helper/tsx.helper.d.ts +23 -0
  210. package/dist/src/index.d.ts +11 -0
  211. package/dist/src/page/KgPageDda/KgPageDda.d.ts +8 -0
  212. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +32 -0
  213. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Basic.d.ts +7 -0
  214. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Button.d.ts +7 -0
  215. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Menu.d.ts +7 -0
  216. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Search.d.ts +7 -0
  217. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Submit.d.ts +7 -0
  218. package/dist/src/page/KgPageDda/components/KgPageDda.Create.Table.d.ts +7 -0
  219. package/dist/src/page/KgPageDda/components/KgPageDda.Create.d.ts +33 -0
  220. package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +1322 -0
  221. package/dist/src/page/KgPageDda/index.d.ts +5 -0
  222. package/dist/src/page/KgPageDda/index.vm.d.ts +12 -0
  223. package/dist/src/page/index.d.ts +8 -0
  224. package/dist/src/project/build/getConfigFileName.d.ts +5 -0
  225. package/dist/src/project/build/index.d.ts +1 -0
  226. package/dist/src/project/index.d.ts +3 -0
  227. package/dist/src/project/types/axios.d.ts +35 -0
  228. package/dist/src/project/types/config.d.ts +121 -0
  229. package/dist/src/project/types/index.d.ts +4 -0
  230. package/dist/src/project/types/store.d.ts +42 -0
  231. package/dist/src/project/types/utils.d.ts +4 -0
  232. package/dist/src/service/http-client.d.ts +93 -0
  233. package/dist/src/service/index.d.ts +1 -0
  234. package/dist/src/util/index.d.ts +4 -0
  235. package/dist/src/util/kg-auth.util.d.ts +26 -0
  236. package/dist/src/util/kg-route.util.d.ts +57 -0
  237. package/dist/src/util/kg-var.util.d.ts +76 -0
  238. package/dist/src/util/kg.util.d.ts +150 -0
  239. package/package.json +31 -20
  240. package/script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +3 -0
  241. package/script/bump-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +3 -0
  242. package/script/bump-to.ts +38 -0
  243. package/script/bump.ts +35 -0
  244. package/script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +3 -0
  245. package/script/copy-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +3 -0
  246. package/script/copy-to.luotao.smartfactory.tyre.haohua.gantry.was-java--main.ts +3 -0
  247. package/script/copy-to.ts +23 -0
  248. package/script/publish.ts +30 -0
@@ -0,0 +1,5 @@
1
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
2
+ [x: string]: any;
3
+ }>;
4
+ export default _default;
5
+ export { type IKgPageDdaProps } from './KgPageDda';
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 用户添加的行.
3
+ * 在「查询条件」「提交字段」「表格视图」中, 用户可以自己添加额外的行, 作为「查询字段」「提交字段」「表格的列」, 本常量用来作为该行的 ID.
4
+ */
5
+ export declare const __KG__CUSTOM_ROW_ID__ = "__KG__CUSTOM_ROW_ID__";
6
+ /**
7
+ * 用于添加的行.
8
+ * 在「查询条件」「提交字段」「表格视图」中, 用户可以自己添加额外的行, 作为「查询字段」「提交字段」「表格的列」,
9
+ * 为了操作方便, 会在表格中始终显示一个特殊的行, 称之为「用于添加的行」, 点击该行左侧的加号就可以添加新的行, 本常量用来作为该特殊的行的 ID.
10
+ */
11
+ export declare const __KG__CREATE_ROW_ID__ = "__KG__CREATE_ROW_ID__";
12
+ export declare const FORM_ID__CREATE__BUTTON = "KgPageDda.Create.Button";
@@ -0,0 +1,8 @@
1
+ export * from './KgPageDda';
2
+ export { default as KgPageDda } from './KgPageDda';
3
+ /**
4
+ * 路由.
5
+ *
6
+ * @param layout 布局组件.
7
+ */
8
+ export declare function KG_ROUTES(layout: () => any): Array<any>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Get the configuration file variable name
3
+ * @param env
4
+ */
5
+ export declare const getConfigFileName: (env: Record<string, any>) => string;
@@ -0,0 +1 @@
1
+ export * from './getConfigFileName';
@@ -0,0 +1,3 @@
1
+ export * from './build';
2
+ export * from './src';
3
+ export * from './types';
@@ -0,0 +1,35 @@
1
+ export declare type ErrorMessageMode = 'none' | 'modal' | 'message' | undefined;
2
+ export declare type SuccessMessageMode = 'none' | 'success' | 'error' | undefined;
3
+ export interface RequestOptions {
4
+ joinParamsToUrl?: boolean;
5
+ formatDate?: boolean;
6
+ isTransformResponse?: boolean;
7
+ isReturnNativeResponse?: boolean;
8
+ joinPrefix?: boolean;
9
+ apiUrl?: string;
10
+ urlPrefix?: string;
11
+ errorMessageMode?: ErrorMessageMode;
12
+ successMessageMode?: SuccessMessageMode;
13
+ joinTime?: boolean;
14
+ ignoreCancelToken?: boolean;
15
+ withToken?: boolean;
16
+ }
17
+ export interface Result<T = any> {
18
+ code: number;
19
+ type: 'success' | 'error' | 'warning';
20
+ message: string;
21
+ success?: boolean | null;
22
+ timestamp?: number | null;
23
+ result: T;
24
+ }
25
+ export interface UploadFileParams {
26
+ data?: Recordable;
27
+ name?: string;
28
+ file: File | Blob;
29
+ filename?: string;
30
+ [key: string]: any;
31
+ }
32
+ export interface UploadFileCallBack {
33
+ success?: any;
34
+ isReturnResponse?: boolean;
35
+ }
@@ -0,0 +1,121 @@
1
+ import { ContentEnum, PermissionModeEnum, RouterTransitionEnum, SessionTimeoutProcessingEnum, SettingButtonPositionEnum, ThemeEnum } from '../src/enums/appEnum';
2
+ import { CacheTypeEnum } from '../src/enums/cacheEnum';
3
+ import { MenuModeEnum, MenuTypeEnum, MixSidebarTriggerEnum, TriggerEnum } from '../src/enums/menuEnum';
4
+ /**
5
+ * <p>已支持的语言.</p>
6
+ * <ul>
7
+ * <li> en: 英语</li>
8
+ * <li>es_ES: 西班牙语_西班牙</li>
9
+ * <li>fr_FR: 法语_法国</li>
10
+ * <li>km_KH: 高棉语_柬埔寨</li>
11
+ * <li>ko_KR: 韩语_韩国</li>
12
+ * <li>vi_VN: 越南语_越南</li>
13
+ * <li>zh_CN: 汉语_中国</li>
14
+ * </ul>
15
+ */
16
+ export declare type LocaleType = 'en' | 'es_ES' | 'fr_FR' | 'km_KH' | 'ko_KR' | 'vi_VN' | 'zh_CN';
17
+ export interface MenuSetting {
18
+ bgColor: string;
19
+ fixed: boolean;
20
+ collapsed: boolean;
21
+ canDrag: boolean;
22
+ show: boolean;
23
+ hidden: boolean;
24
+ split: boolean;
25
+ menuWidth: number;
26
+ mode: MenuModeEnum;
27
+ type: MenuTypeEnum;
28
+ theme: ThemeEnum;
29
+ topMenuAlign: 'start' | 'center' | 'end';
30
+ trigger: TriggerEnum;
31
+ accordion: boolean;
32
+ closeMixSidebarOnChange: boolean;
33
+ collapsedShowTitle: boolean;
34
+ mixSideTrigger: MixSidebarTriggerEnum;
35
+ mixSideFixed: boolean;
36
+ }
37
+ export interface MultiTabsSetting {
38
+ cache: boolean;
39
+ show: boolean;
40
+ showQuick: boolean;
41
+ canDrag: boolean;
42
+ showRedo: boolean;
43
+ showFold: boolean;
44
+ theme: string;
45
+ }
46
+ export interface HeaderSetting {
47
+ bgColor: string;
48
+ fixed: boolean;
49
+ show: boolean;
50
+ theme: ThemeEnum;
51
+ showFullScreen: boolean;
52
+ useLockPage: boolean;
53
+ showDoc: boolean;
54
+ showNotice: boolean;
55
+ showSearch: boolean;
56
+ }
57
+ export interface LocaleSetting {
58
+ showPicker: boolean;
59
+ locale: LocaleType;
60
+ fallback: LocaleType;
61
+ availableLocales: LocaleType[];
62
+ }
63
+ export interface TransitionSetting {
64
+ enable: boolean;
65
+ basicTransition: RouterTransitionEnum;
66
+ openPageLoading: boolean;
67
+ openNProgress: boolean;
68
+ }
69
+ export interface ProjectConfig {
70
+ permissionCacheType: CacheTypeEnum;
71
+ showSettingButton: boolean;
72
+ showDarkModeToggle: boolean;
73
+ settingButtonPosition: SettingButtonPositionEnum;
74
+ permissionMode: PermissionModeEnum;
75
+ sessionTimeoutProcessing: SessionTimeoutProcessingEnum;
76
+ grayMode: boolean;
77
+ colorWeak: boolean;
78
+ themeColor: string;
79
+ fullContent: boolean;
80
+ contentMode: ContentEnum;
81
+ showLogo: boolean;
82
+ showFooter: boolean;
83
+ headerSetting: HeaderSetting;
84
+ menuSetting: MenuSetting;
85
+ multiTabsSetting: MultiTabsSetting;
86
+ transitionSetting: TransitionSetting;
87
+ openKeepAlive: boolean;
88
+ lockTime: number;
89
+ showBreadCrumb: boolean;
90
+ showBreadCrumbIcon: boolean;
91
+ useErrorHandle: boolean;
92
+ useOpenBackTop: boolean;
93
+ canEmbedIFramePage: boolean;
94
+ closeMessageOnSwitch: boolean;
95
+ removeAllHttpPending: boolean;
96
+ }
97
+ export interface GlobConfig {
98
+ title: string;
99
+ apiUrl: string;
100
+ domainUrl: string;
101
+ uploadUrl?: string;
102
+ openSso?: string;
103
+ openQianKun?: string;
104
+ casBaseUrl?: string;
105
+ viewUrl?: string;
106
+ urlPrefix?: string;
107
+ shortName: string;
108
+ }
109
+ export interface GlobEnvConfig {
110
+ VITE_GLOB_APP_TITLE: string;
111
+ VITE_GLOB_API_URL: string;
112
+ VITE_USE_MOCK: string;
113
+ VITE_GLOB_API_URL_PREFIX?: string;
114
+ VITE_GLOB_APP_SHORT_NAME: string;
115
+ VITE_GLOB_APP_OPEN_SSO: string;
116
+ VITE_GLOB_APP_OPEN_QIANKUN: string;
117
+ VITE_GLOB_APP_CAS_BASE_URL: string;
118
+ VITE_GLOB_DOMAIN_URL: string;
119
+ VITE_GLOB_UPLOAD_URL?: string;
120
+ VITE_GLOB_ONLINE_VIEW_URL?: string;
121
+ }
@@ -0,0 +1,4 @@
1
+ export * from './axios';
2
+ export * from './config';
3
+ export * from './store';
4
+ export * from './utils';
@@ -0,0 +1,42 @@
1
+ import { RoleInfo } from '../src/api/sys/model/userModel';
2
+ import { ErrorTypeEnum } from '../src/enums/exceptionEnum';
3
+ import { MenuModeEnum, MenuTypeEnum } from '../src/enums/menuEnum';
4
+ export interface LockInfo {
5
+ pwd?: string | undefined;
6
+ isLock?: boolean;
7
+ }
8
+ export interface ErrorLogInfo {
9
+ type: ErrorTypeEnum;
10
+ file: string;
11
+ name?: string;
12
+ message: string;
13
+ stack?: string;
14
+ detail: string;
15
+ url: string;
16
+ time?: string;
17
+ }
18
+ export interface UserInfo {
19
+ id: string | number;
20
+ userId: string | number;
21
+ username: string;
22
+ realname: string;
23
+ avatar: string;
24
+ desc?: string;
25
+ homePath?: string;
26
+ tenantid?: string | number;
27
+ roles: RoleInfo[];
28
+ orgCode?: string;
29
+ }
30
+ export interface LoginInfo {
31
+ multi_depart?: string | number;
32
+ userInfo?: object;
33
+ departs?: [];
34
+ tenantList?: [];
35
+ isLogin?: boolean;
36
+ }
37
+ export interface BeforeMiniState {
38
+ menuCollapsed?: boolean;
39
+ menuSplit?: boolean;
40
+ menuMode?: MenuModeEnum;
41
+ menuType?: MenuTypeEnum;
42
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComputedRef, Ref } from 'vue';
2
+ export declare type DynamicProps<T> = {
3
+ [P in keyof T]: Ref<T[P]> | T[P] | ComputedRef<T[P]>;
4
+ };
@@ -0,0 +1,93 @@
1
+ import { AxiosInstance, type AxiosRequestConfig } from 'axios';
2
+ import dayjs from 'dayjs';
3
+ import { KG_DYNAMIC_QUERY_OPERATOR } from '../const';
4
+ interface IHttpClient {
5
+ axiosInstance: AxiosInstance;
6
+ options: {
7
+ requestOptions?: IRequestOptions;
8
+ } & AxiosRequestConfig;
9
+ request<T = any>(config: IRequestConfig, options?: IRequestOptions): Promise<T>;
10
+ }
11
+ /** @deprecated 已弃用, 请使用 {@link kgSetupHttpClient}. */
12
+ declare function setupHttpClient(httpClient: IHttpClient | null): void;
13
+ /**
14
+ * 设置 httpClient 实例.
15
+ */
16
+ declare function kgSetupHttpClient(httpClient: IHttpClient | null): void;
17
+ /**
18
+ * 获取 httpClient 实例.
19
+ */
20
+ declare function httpClient(): IHttpClient;
21
+ interface IRequestConfig<P = {}, D = {}> extends AxiosRequestConfig<D> {
22
+ params?: P;
23
+ }
24
+ interface IRequestOptions {
25
+ /**
26
+ * 接口地址,如果保留为空,则使用默认值
27
+ */
28
+ apiUrl?: string;
29
+ /**
30
+ * dayjs 实例, 必须跟 {@link IRequestOptions.dynamicQueryOperatorModel} 同时传值. 即如果参数 {@link IRequestOptions.dynamicQueryOperatorModel} 不为空, 则参数 {@link IRequestOptions.dayjs} 也必须不为空.
31
+ */
32
+ dayjs?: typeof dayjs;
33
+ /**
34
+ * <p>高级查询时, 对应的界面标识.</p>
35
+ */
36
+ dynamicQueryFormID?: string;
37
+ /**
38
+ * <p>高级查询时, 对应的查询条件界面标识.</p>
39
+ */
40
+ dynamicQueryKgSearchFormID?: string;
41
+ /**
42
+ * <p>高级查询时, 各个请求参数的高级查询操作符.</p>
43
+ * <p>如果该参数不为空, 表示该请求启用了高级查询.</p>
44
+ * <p>其中的 key 表示参数名, 对应的 value 表示该参数的高级查询操作符(>,=,<...).</p>
45
+ */
46
+ dynamicQueryOperatorModel?: Record<string, KG_DYNAMIC_QUERY_OPERATOR>;
47
+ /**
48
+ * 错误消息提示类型
49
+ */
50
+ errorMessageMode?: 'none' | 'modal' | 'message' | undefined;
51
+ /**
52
+ * 格式化请求参数时间
53
+ */
54
+ formatDate?: boolean;
55
+ ignoreCancelToken?: boolean;
56
+ /**
57
+ * 是否返回本地响应头,需要获取响应头时使用此属性
58
+ */
59
+ isReturnNativeResponse?: boolean;
60
+ /**
61
+ * 是否处理请求结果
62
+ */
63
+ isTransformResponse?: boolean;
64
+ /**
65
+ * 将请求参数拼接到url
66
+ */
67
+ joinParamsToUrl?: boolean;
68
+ /**
69
+ * Whether to join url
70
+ */
71
+ joinPrefix?: boolean;
72
+ /**
73
+ * 是否添加时间戳
74
+ */
75
+ joinTime?: boolean;
76
+ /**
77
+ * <p>模拟数据. 如果不为 undefined 则不会发起请求, 而是直接返回该模拟数据.</p>
78
+ */
79
+ mock?: any;
80
+ /**
81
+ * 成功消息提示类型
82
+ */
83
+ successMessageMode?: 'none' | 'success' | 'error' | undefined;
84
+ /**
85
+ * 请求拼接路径
86
+ */
87
+ urlPrefix?: string;
88
+ /**
89
+ * 是否在标头中发送令牌
90
+ */
91
+ withToken?: boolean;
92
+ }
93
+ export { setupHttpClient, kgSetupHttpClient, httpClient, type IRequestConfig, type IRequestOptions };
@@ -0,0 +1 @@
1
+ export * from './http-client';
@@ -0,0 +1,4 @@
1
+ export * from './kg-auth.util';
2
+ export * from './kg.util';
3
+ export * from './kg-route.util';
4
+ export * from './kg-var.util';
@@ -0,0 +1,26 @@
1
+ import { KG_APP } from '../const';
2
+ export declare class KgAuthUtil {
3
+ /**
4
+ * 判断当前登录用户是否是管理员.
5
+ * @return {} 如果当前登录用户是管理员则返回 true, 否则返回 false.
6
+ */
7
+ static isAdminUser(): boolean;
8
+ /**
9
+ * 判断某个模块是否具有访问权限.
10
+ * @param app 模块.
11
+ * @return {} 如果模块具有访问权限则返回 true, 否则返回 false.
12
+ */
13
+ static isAppAuthenticated(app: KG_APP | null | undefined): boolean;
14
+ /**
15
+ * 判断某个地址是否具有访问权限.
16
+ * @param path 地址.
17
+ * @return {} 如果地址具有访问权限则返回 true, 否则返回 false.
18
+ */
19
+ static isPathAuthenticated(path: string | null | undefined): boolean;
20
+ /**
21
+ * 获取权限策略.
22
+ * @param permissionCode 权限编码.
23
+ * @return {} 权限策略.
24
+ */
25
+ static getPermissionType(permissionCode: string | null | undefined): number | null;
26
+ }
@@ -0,0 +1,57 @@
1
+ import { KG_APP, Menu } from '../const';
2
+ export declare class KgRouteUtil {
3
+ /**
4
+ * 给所有模块都添加在线表单的路由.
5
+ * 由于默认的在线表单路由是没有区分模块的, 而每个模块下都可能有在线表单, 因此给每个模块都添加在线表单的路由.
6
+ * @param routes 当前路由列表.
7
+ */
8
+ static addOnlineRoutesForAllApps(routes: any[]): any[];
9
+ /**
10
+ * 根据菜单地址地址获取菜单.
11
+ *
12
+ * @param menus 菜单列表.
13
+ * @param path 菜单地址.
14
+ * @return {} 如果能找到某个菜单的地址等于传入的地址, 则返回该菜单, 否则返回 null.
15
+ */
16
+ static getMenuByPath(menus: Array<Menu> | null | undefined, path: string): Menu | null;
17
+ /**
18
+ * 获取第一个类型为叶子节点的菜单, 即第一个没有下级菜单的菜单, 即第一个拥有页面的菜单.
19
+ * 如果参数 app 不为空, 表示只在该模块的菜单中找; 否则在所有的菜单中找.
20
+ * @param app 模块.
21
+ * @return {} 如果能找到, 则返回该菜单, 否则返回 null.
22
+ */
23
+ static getFirstLeafMenu(app?: KG_APP | null): Menu | null;
24
+ /**
25
+ * 翻译菜单标题.
26
+ * @param menus 菜单列表, 树形结构.
27
+ * @param titleKey 标题的属性名, 即要将哪个属性作为菜单的标题.
28
+ */
29
+ static translateMenus(menus: Array<Menu> | null | undefined, titleKey?: string): Array<Menu>;
30
+ /**
31
+ * <p>转换菜单列表.</p>
32
+ * <ol>
33
+ * <li>根据模块分组,</li>
34
+ * </ol>
35
+ * @param menus 菜单列表, 树形结构.
36
+ */
37
+ static transformMenus(menus: Array<Menu> | null | undefined): Array<Menu>;
38
+ /**
39
+ * 判断某个路径是否属于某个模块.
40
+ * @param path 路径.
41
+ * @param app 模块.
42
+ */
43
+ static isPathInApp(path: string | null | undefined, app: KG_APP | null): boolean;
44
+ /**
45
+ * 根据地址获取模块.
46
+ * @param path 地址.
47
+ * @return {} 地址所属模块.
48
+ */
49
+ static getAppByPath(path: string | null | undefined): KG_APP | null;
50
+ /**
51
+ * 获取模块的首页地址.
52
+ * @param app 模块.
53
+ * @return {} 该模块的首页地址.
54
+ * @throws {} 如果模块无法识别, 会报错.
55
+ */
56
+ static getAppIndexPath(app: KG_APP): string;
57
+ }
@@ -0,0 +1,76 @@
1
+ import dayjs from 'dayjs';
2
+ import { KG__VAR_CONFIG_CONTROL__CONTROL_TYPE } from '../const';
3
+ /**
4
+ * 变量相关工具.
5
+ */
6
+ export declare class KgVarUtil {
7
+ /**
8
+ * <p>将 JSON 字符串形式的参数 `'{"foo":1,"bar":2}'` 转换为对象形式的参数 `{ "foo": 1, "bar": 2 }`.</p>
9
+ *
10
+ * @param params JSON 字符串形式的参数.
11
+ * @return {} 参数对象.
12
+ */
13
+ static parseRequestParamsToJSON(params: string | null | undefined): Record<string, any>;
14
+ /**
15
+ * <p>根据控件类型, 将表单控件的默认值转换为合法的值.</p>
16
+ *
17
+ * @param param.$dayjs dayjs.
18
+ * @param param.buttonVarName 「变量配置:表单控件」所属的按钮的变量名称.
19
+ * @param param.formID 界面标识.
20
+ * @param param.value 原始的值.
21
+ * @param param.varName 变量名称.
22
+ * @return {} 转换之后的值.
23
+ */
24
+ static transformFormItemDefaultValue(param: {
25
+ $dayjs: typeof dayjs;
26
+ buttonVarName: string | null | undefined;
27
+ formID: string;
28
+ value: any;
29
+ varName: string;
30
+ }): any;
31
+ /**
32
+ * 根据控件类型, 将任意的高级查询操作符(可能非法)转换为合法的值.
33
+ *
34
+ * @param param.formID 界面标识.
35
+ * @param param.value 原始的高级查询操作符.
36
+ * @param param.varName 变量名称.
37
+ * @return {} 转换后的合法的值.
38
+ */
39
+ static transformFormItemDynamicQueryOperator(param: {
40
+ formID: string;
41
+ value: string | null | undefined;
42
+ varName: string;
43
+ }): string;
44
+ /**
45
+ * 根据控件类型获取高级查询操作符的下拉列表.
46
+ * @param controlType 控件类型.
47
+ */
48
+ static getDynamicQueryOperatorSelectOptions(controlType: KG__VAR_CONFIG_CONTROL__CONTROL_TYPE | null | undefined): any;
49
+ /**
50
+ * <p>根据查询条件拼接 SQL 语句片段.</p>
51
+ * <p>根据查询参数拼接 SQL, 格式如下: `WHERE ... ORDER BY ...OFFSET...`, 每一个片段会单独作为一个属性返回.</p>
52
+ * <ul>
53
+ * <li>如果 dynamicQueryOperatorModel 传值, 表示直接使用传入的 dynamicQueryOperatorModel 作为高级查询操作符.</li>
54
+ * <li>如果 dynamicQueryOperatorModel 没有传值, 但是 formID 传值, 表示通过变量配置获取高级查询操作符.</li>
55
+ * </ul>
56
+ *
57
+ * @param param.$dayjs dayjs.
58
+ * @param param.dynamicQueryOperatorModel 各个字段的高级查询操作符.
59
+ * @param param.formID 界面标识.
60
+ * @param param.kgSearchFormID 查询条件的界面标识.
61
+ * @param param.params 请求参数.
62
+ */
63
+ static getQueryHeaders(param: {
64
+ $dayjs: typeof dayjs;
65
+ dynamicQueryOperatorModel: Record<string, any> | null | undefined;
66
+ formID: string | null | undefined;
67
+ kgSearchFormID: string | null | undefined;
68
+ params: Record<string, any> | null | undefined;
69
+ }): {
70
+ offsetSql: string;
71
+ operatorJSON: string;
72
+ orderBySql: string;
73
+ sql: string;
74
+ whereSql: string;
75
+ };
76
+ }
@@ -0,0 +1,150 @@
1
+ import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
2
+ import dayjs, { Dayjs } from 'dayjs';
3
+ import { IKgVarButtonModalProperties } from '../const';
4
+ /**
5
+ * 通用工具.
6
+ */
7
+ export declare class KgUtil {
8
+ /**
9
+ * 根据'文件大小数值'获取'文件大小文本'.
10
+ * @param size 文件大小数值.
11
+ */
12
+ static getFileSize(size: any): string;
13
+ /**
14
+ * BASE64 转换为 BLOB.
15
+ * @param base64 base64 字符串.
16
+ * @param contentType 文件类型.
17
+ * @param sliceSize 分块大小.
18
+ */
19
+ static base64toBlob(base64: string, contentType: string, sliceSize?: number): Blob;
20
+ /**
21
+ * 下载文件.
22
+ * @param data 文件数据.
23
+ * @param fileName 文件名称, 包含后缀.
24
+ * @param contentType <p>文件类型. 如果为空, 则根据文件名的后缀自动设置.</p>
25
+ * <ul>
26
+ * <li>{@link KG__VAR_BUTTON__EXPORT_EXCEL_SUFFIX.XLS}: <code>application/vnd.ms-excel</code></li>
27
+ * <li>{@link KG__VAR_BUTTON__EXPORT_EXCEL_SUFFIX.XLSX}: <code>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</code></li>
28
+ * </ul>
29
+ */
30
+ static downloadFile(data: string | BlobPart, fileName: string, contentType?: string): void;
31
+ /**
32
+ * <p>处理请求参数.</p>
33
+ * <ul>
34
+ * <li>删除无用属性,</li>
35
+ * <li>日期转换为字符串,</li>
36
+ * <li>解析动态属性, 比如「仓库号」,</li>
37
+ * </ul>
38
+ *
39
+ * @param params 请求参数.
40
+ * @param formID 界面标识.
41
+ * @param $dayjs dayjs.
42
+ */
43
+ static parseParams(params: Record<string, any> | null | undefined, formID?: string | null, $dayjs?: typeof dayjs): Record<string, any>;
44
+ /**
45
+ * 处理请求参数: 解析字符串类型的参数值.
46
+ *
47
+ * <ol>
48
+ * <li>填充通用参数的值:
49
+ * <ul>
50
+ * <li>{WAREHOUSE}: 当前仓库编号</li>
51
+ * <li>{WORK_STATION}: 当前工作站</li>
52
+ * <li>{WORK_AREA}: 当前工作区</li>
53
+ * <li>{LOCALE}: 当前语言</li>
54
+ * <li>{NOW}: 当前时间</li>
55
+ * <li>{USER}: 当前用户</li>
56
+ * <li>{ROW}: 当前勾选行对应的属性</li>
57
+ * </ul>
58
+ * </li>
59
+ * </ol>
60
+ *
61
+ * @param param.$dayjs dayjs.
62
+ * @param param.formID 界面标识.
63
+ * @param param.value 参数的原始值.
64
+ * @param param.varName 变量名称.
65
+ */
66
+ static parseParamFromString(param: {
67
+ $dayjs?: typeof dayjs;
68
+ formID?: string | null;
69
+ value: string;
70
+ varName?: string | null;
71
+ }): string;
72
+ /**
73
+ * 处理请求参数: 解析 Dayjs 类型的参数值.
74
+ * @param param.formID 界面标识.
75
+ * @param param.isPad 是否补齐日期格式. 即将 `YYYY-MM-DD` 补齐为 `YYYY-MM-DD 00:00:00`, 将 `HH:mm:ss` 补齐为 `1900-01-01 HH:mm:ss`.
76
+ * @param param.key 属性名.
77
+ * @param param.value 参数的原始值.
78
+ */
79
+ static parseParamFromDayjs(param: {
80
+ formID?: string | null;
81
+ isPad?: boolean;
82
+ key: string;
83
+ value: any;
84
+ }): string;
85
+ /**
86
+ * 确认弹窗.
87
+ * 设置了多个属性的默认值, 简化使用.
88
+ * https://www.antdv.com/components/modal
89
+ * @param props
90
+ */
91
+ static confirm(props: IKgVarButtonModalProperties): ModalFunc;
92
+ /**
93
+ * @deprecated 已弃用, 请使用 {@link KgUtil.throwNotFormValidationError()} 方法.
94
+ */
95
+ static throwIfNotFormError(e: any): void;
96
+ /**
97
+ * <p>如果不是表单验证错误, 则直接抛出该错误.</p>
98
+ * <p>如果是表单验证错误, 则弹框提示表单验证失败消息.</p>
99
+ *
100
+ * @param param.error 错误对象.
101
+ * @param param.formID 界面标识. 通过界面标识可以显示对应字段的翻译, 否则只能显示对应字段的变量名称.
102
+ * @param param.isShowFormValidationErrorMessage 是否弹框提示表单验证失败消息. 默认为 true.
103
+ */
104
+ static throwNotFormValidationError(param: {
105
+ error: {
106
+ errorFields: Array<{
107
+ errors: Array<string>;
108
+ name: Array<string>;
109
+ warnings: Array<any>;
110
+ }>;
111
+ outOfDate: boolean;
112
+ values: Record<string, any>;
113
+ } | any;
114
+ formID?: string;
115
+ isShowFormValidationErrorMessage?: boolean;
116
+ }): void;
117
+ /**
118
+ * 将 JSON 字符串转换为 JSON 对象, 如果转化失败, 则返回空对象.
119
+ * @param str JSON 字符串.
120
+ */
121
+ static tryParseJSON<T = Record<string, any>>(str?: string | null): T;
122
+ /**
123
+ * 将值转换为 Dayjs 对象.
124
+ * @param value 值.
125
+ */
126
+ static toDayjs(value: any): Dayjs | undefined;
127
+ /** 显示全局遮罩. */
128
+ static showLoading(): void;
129
+ /** 隐藏全局遮罩. */
130
+ static hideLoading(): void;
131
+ /**
132
+ * <p>使用 lodash 的 snakeCase() 将字符串转换为 snake_case 的命名方式. 但是数字前面不加下划线.</p>
133
+ *
134
+ * @param value 转换前的字符串.
135
+ * @return 转换后的字符串.
136
+ */
137
+ static snakeCase(value: any): string;
138
+ /**
139
+ * 获取唯一标识.
140
+ *
141
+ * @return UUID.
142
+ */
143
+ static uuid(): string;
144
+ }
145
+ export declare type ModalFunc = {
146
+ destroy: () => void;
147
+ update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
148
+ showLoading(): void;
149
+ hideLoading(): void;
150
+ };