@ibiz-template/core 0.7.39 → 0.7.40

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 (394) hide show
  1. package/dist/index.esm.js +543 -662
  2. package/dist/index.system.min.js +1 -1
  3. package/out/command/command-register.d.ts +23 -37
  4. package/out/command/command-register.d.ts.map +1 -1
  5. package/out/command/command-register.js +22 -36
  6. package/out/command/command.d.ts +28 -34
  7. package/out/command/command.d.ts.map +1 -1
  8. package/out/command/command.js +26 -32
  9. package/out/command/index.d.ts +1 -4
  10. package/out/command/index.d.ts.map +1 -1
  11. package/out/command/index.js +2 -4
  12. package/out/command/utils/util.d.ts +23 -15
  13. package/out/command/utils/util.d.ts.map +1 -1
  14. package/out/command/utils/util.js +22 -16
  15. package/out/constant/core/core.d.ts +18 -28
  16. package/out/constant/core/core.d.ts.map +1 -1
  17. package/out/constant/core/core.js +18 -28
  18. package/out/constant/emoji/emoji.d.ts.map +1 -1
  19. package/out/constant/emoji/emoji.js +2 -0
  20. package/out/constant/http-status-message/http-status-message.d.ts +0 -3
  21. package/out/constant/http-status-message/http-status-message.d.ts.map +1 -1
  22. package/out/constant/http-status-message/http-status-message.js +1 -3
  23. package/out/constant/index.d.ts +2 -4
  24. package/out/constant/index.d.ts.map +1 -1
  25. package/out/constant/index.js +2 -4
  26. package/out/constant/util/util.d.ts +0 -3
  27. package/out/constant/util/util.d.ts.map +1 -1
  28. package/out/constant/util/util.js +1 -3
  29. package/out/context/index.d.ts +34 -51
  30. package/out/context/index.d.ts.map +1 -1
  31. package/out/context/index.js +24 -33
  32. package/out/environment/environment.d.ts +0 -3
  33. package/out/environment/environment.d.ts.map +1 -1
  34. package/out/environment/environment.js +8 -4
  35. package/out/error/http-error/entity-error.d.ts +3 -17
  36. package/out/error/http-error/entity-error.d.ts.map +1 -1
  37. package/out/error/http-error/entity-error.js +2 -5
  38. package/out/error/http-error/http-error-factory.d.ts +5 -0
  39. package/out/error/http-error/http-error-factory.d.ts.map +1 -1
  40. package/out/error/http-error/http-error-factory.js +5 -0
  41. package/out/error/http-error/http-error.d.ts +3 -10
  42. package/out/error/http-error/http-error.d.ts.map +1 -1
  43. package/out/error/http-error/http-error.js +2 -5
  44. package/out/error/model-error/model-error.d.ts +5 -9
  45. package/out/error/model-error/model-error.d.ts.map +1 -1
  46. package/out/error/model-error/model-error.js +5 -9
  47. package/out/error/notice-error/notice-error.d.ts +2 -5
  48. package/out/error/notice-error/notice-error.d.ts.map +1 -1
  49. package/out/error/notice-error/notice-error.js +2 -5
  50. package/out/error/runtime-error/runtime-error.d.ts +2 -5
  51. package/out/error/runtime-error/runtime-error.d.ts.map +1 -1
  52. package/out/error/runtime-error/runtime-error.js +2 -5
  53. package/out/error/runtime-model-error/runtime-model-error.d.ts +5 -10
  54. package/out/error/runtime-model-error/runtime-model-error.d.ts.map +1 -1
  55. package/out/error/runtime-model-error/runtime-model-error.js +5 -10
  56. package/out/ibizsys.d.ts +24 -44
  57. package/out/ibizsys.d.ts.map +1 -1
  58. package/out/ibizsys.js +15 -29
  59. package/out/index.d.ts.map +1 -1
  60. package/out/install.d.ts +1 -4
  61. package/out/install.d.ts.map +1 -1
  62. package/out/install.js +1 -4
  63. package/out/interface/api/constant/index.d.ts +3 -0
  64. package/out/interface/api/constant/index.d.ts.map +1 -0
  65. package/out/interface/api/constant/index.js +2 -0
  66. package/out/{constant → interface/api/constant}/login-mode/login-mode.d.ts +1 -4
  67. package/out/interface/api/constant/login-mode/login-mode.d.ts.map +1 -0
  68. package/out/{constant → interface/api/constant}/login-mode/login-mode.js +1 -4
  69. package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.d.ts +1 -4
  70. package/out/interface/api/constant/menu-permission-mode/menu-permission-mode.d.ts.map +1 -0
  71. package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.js +1 -4
  72. package/out/interface/api/environment/i-devtool-config.d.ts +42 -0
  73. package/out/interface/api/environment/i-devtool-config.d.ts.map +1 -0
  74. package/out/interface/api/environment/i-environment.d.ts +332 -0
  75. package/out/interface/api/environment/i-environment.d.ts.map +1 -0
  76. package/out/interface/api/environment/index.d.ts +3 -0
  77. package/out/interface/api/environment/index.d.ts.map +1 -0
  78. package/out/interface/api/global-param/i-api-context.d.ts +33 -0
  79. package/out/interface/api/global-param/i-api-context.d.ts.map +1 -0
  80. package/out/interface/api/global-param/i-global-param.d.ts +25 -0
  81. package/out/interface/api/global-param/i-global-param.d.ts.map +1 -0
  82. package/out/interface/api/global-param/index.d.ts +3 -0
  83. package/out/interface/api/global-param/index.d.ts.map +1 -0
  84. package/out/interface/api/ibizsys/i-api-ibizsys.d.ts +48 -0
  85. package/out/interface/api/ibizsys/i-api-ibizsys.d.ts.map +1 -0
  86. package/out/interface/api/ibizsys/i-org-data.d.ts +32 -0
  87. package/out/interface/api/ibizsys/i-org-data.d.ts.map +1 -0
  88. package/out/interface/api/ibizsys/index.d.ts +3 -0
  89. package/out/interface/api/ibizsys/index.d.ts.map +1 -0
  90. package/out/interface/api/index.d.ts +6 -0
  91. package/out/interface/api/index.d.ts.map +1 -0
  92. package/out/interface/api/index.js +5 -0
  93. package/out/interface/api/utils/i-api-i18n.d.ts +51 -0
  94. package/out/interface/api/utils/i-api-i18n.d.ts.map +1 -0
  95. package/out/interface/api/utils/index.d.ts +5 -0
  96. package/out/interface/api/utils/index.d.ts.map +1 -0
  97. package/out/interface/api/utils/index.js +1 -0
  98. package/out/interface/api/utils/message-center/base/i-message-all.d.ts +10 -0
  99. package/out/interface/api/utils/message-center/base/i-message-all.d.ts.map +1 -0
  100. package/out/interface/api/utils/message-center/base/i-message-base.d.ts +27 -0
  101. package/out/interface/api/utils/message-center/base/i-message-base.d.ts.map +1 -0
  102. package/out/interface/api/utils/message-center/base/index.d.ts +3 -0
  103. package/out/interface/api/utils/message-center/base/index.d.ts.map +1 -0
  104. package/out/interface/{i-add-in-changed → api/utils/message-center/command/add-in-changed}/i-add-in-changed.d.ts +4 -8
  105. package/out/interface/api/utils/message-center/command/add-in-changed/i-add-in-changed.d.ts.map +1 -0
  106. package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts +17 -0
  107. package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts.map +1 -0
  108. package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts +17 -0
  109. package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts.map +1 -0
  110. package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts +10 -0
  111. package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts.map +1 -0
  112. package/out/interface/api/utils/message-center/command/change/i-command-change.js +1 -0
  113. package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts +18 -0
  114. package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts.map +1 -0
  115. package/out/interface/api/utils/message-center/command/create/i-command-create.js +1 -0
  116. package/out/interface/api/utils/message-center/command/i-command-base.d.ts +20 -0
  117. package/out/interface/api/utils/message-center/command/i-command-base.d.ts.map +1 -0
  118. package/out/interface/api/utils/message-center/command/i-command-base.js +1 -0
  119. package/out/interface/api/utils/message-center/command/i-message-command.d.ts +82 -0
  120. package/out/interface/api/utils/message-center/command/i-message-command.d.ts.map +1 -0
  121. package/out/interface/api/utils/message-center/command/i-message-command.js +1 -0
  122. package/out/interface/api/utils/message-center/command/index.d.ts +14 -0
  123. package/out/interface/api/utils/message-center/command/index.d.ts.map +1 -0
  124. package/out/interface/api/utils/message-center/command/index.js +1 -0
  125. package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts +17 -0
  126. package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts.map +1 -0
  127. package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.js +1 -0
  128. package/out/interface/{i-internal-message → api/utils/message-center/command/internal-message}/i-internal-message.d.ts +35 -54
  129. package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.d.ts.map +1 -0
  130. package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.js +1 -0
  131. package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts +17 -0
  132. package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts.map +1 -0
  133. package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.js +1 -0
  134. package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts +46 -0
  135. package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts.map +1 -0
  136. package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.js +1 -0
  137. package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts +18 -0
  138. package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts.map +1 -0
  139. package/out/interface/api/utils/message-center/command/remove/i-command-remove.js +1 -0
  140. package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts +18 -0
  141. package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts.map +1 -0
  142. package/out/interface/api/utils/message-center/command/update/i-command-update.js +1 -0
  143. package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts +16 -0
  144. package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts.map +1 -0
  145. package/out/interface/api/utils/message-center/common/i-app-data-entity.js +1 -0
  146. package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts +10 -0
  147. package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts.map +1 -0
  148. package/out/interface/api/utils/message-center/common/i-message-center-event.js +1 -0
  149. package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts +14 -0
  150. package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts.map +1 -0
  151. package/out/interface/api/utils/message-center/common/i-msg-meta-data.js +1 -0
  152. package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts +134 -0
  153. package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts.map +1 -0
  154. package/out/interface/api/utils/message-center/common/i-portal-async-action.js +1 -0
  155. package/out/interface/api/utils/message-center/common/i-portal-message.d.ts +70 -0
  156. package/out/interface/api/utils/message-center/common/i-portal-message.d.ts.map +1 -0
  157. package/out/interface/api/utils/message-center/common/i-portal-message.js +1 -0
  158. package/out/interface/api/utils/message-center/common/index.d.ts +6 -0
  159. package/out/interface/api/utils/message-center/common/index.d.ts.map +1 -0
  160. package/out/interface/api/utils/message-center/common/index.js +1 -0
  161. package/out/interface/api/utils/message-center/console/i-message-console.d.ts +17 -0
  162. package/out/interface/api/utils/message-center/console/i-message-console.d.ts.map +1 -0
  163. package/out/interface/api/utils/message-center/console/i-message-console.js +1 -0
  164. package/out/interface/api/utils/message-center/error/i-message-error.d.ts +17 -0
  165. package/out/interface/api/utils/message-center/error/i-message-error.d.ts.map +1 -0
  166. package/out/interface/api/utils/message-center/error/i-message-error.js +1 -0
  167. package/out/interface/api/utils/message-center/i-message-center.d.ts +48 -0
  168. package/out/interface/api/utils/message-center/i-message-center.d.ts.map +1 -0
  169. package/out/interface/api/utils/message-center/i-message-center.js +1 -0
  170. package/out/interface/api/utils/message-center/index.d.ts +7 -0
  171. package/out/interface/api/utils/message-center/index.d.ts.map +1 -0
  172. package/out/interface/api/utils/message-center/index.js +3 -0
  173. package/out/interface/api/utils/net/i-api-net.d.ts +65 -0
  174. package/out/interface/api/utils/net/i-api-net.d.ts.map +1 -0
  175. package/out/interface/api/utils/net/i-api-net.js +1 -0
  176. package/out/interface/api/utils/net/i-http-response.d.ts +60 -0
  177. package/out/interface/api/utils/net/i-http-response.d.ts.map +1 -0
  178. package/out/interface/api/utils/net/i-http-response.js +1 -0
  179. package/out/interface/click-outside/click-outside.d.ts +15 -36
  180. package/out/interface/click-outside/click-outside.d.ts.map +1 -1
  181. package/out/interface/command/command/i-command-option.d.ts +46 -0
  182. package/out/interface/command/command/i-command-option.d.ts.map +1 -0
  183. package/out/interface/command/command/i-command-option.js +1 -0
  184. package/out/interface/command/command/i-command.d.ts +61 -0
  185. package/out/interface/command/command/i-command.d.ts.map +1 -0
  186. package/out/interface/command/command/i-command.js +1 -0
  187. package/out/interface/command/disposable/i-disposable.d.ts +13 -0
  188. package/out/interface/command/disposable/i-disposable.d.ts.map +1 -0
  189. package/out/interface/command/disposable/i-disposable.js +1 -0
  190. package/out/interface/command/i-command-controller.d.ts +43 -0
  191. package/out/interface/command/i-command-controller.d.ts.map +1 -0
  192. package/out/interface/command/i-command-controller.js +1 -0
  193. package/out/interface/command/index.d.ts +5 -0
  194. package/out/interface/command/index.d.ts.map +1 -0
  195. package/out/interface/command/index.js +1 -0
  196. package/out/interface/context/index.d.ts +39 -0
  197. package/out/interface/context/index.d.ts.map +1 -0
  198. package/out/interface/context/index.js +1 -0
  199. package/out/interface/error/index.d.ts +12 -0
  200. package/out/interface/error/index.d.ts.map +1 -0
  201. package/out/interface/error/index.js +1 -0
  202. package/out/interface/i-chat-message/i-chat-message.d.ts +24 -37
  203. package/out/interface/i-chat-message/i-chat-message.d.ts.map +1 -1
  204. package/out/interface/ibizsys/i-ibizsys.d.ts +30 -0
  205. package/out/interface/ibizsys/i-ibizsys.d.ts.map +1 -0
  206. package/out/interface/ibizsys/i-ibizsys.js +1 -0
  207. package/out/interface/ibizsys/index.d.ts +2 -0
  208. package/out/interface/ibizsys/index.d.ts.map +1 -0
  209. package/out/interface/ibizsys/index.js +1 -0
  210. package/out/interface/index.d.ts +8 -9
  211. package/out/interface/index.d.ts.map +1 -1
  212. package/out/interface/index.js +6 -0
  213. package/out/interface/utils/i-18n.d.ts +21 -0
  214. package/out/interface/utils/i-18n.d.ts.map +1 -0
  215. package/out/interface/utils/i-18n.js +1 -0
  216. package/out/interface/utils/index.d.ts +2 -0
  217. package/out/interface/utils/index.d.ts.map +1 -0
  218. package/out/interface/utils/index.js +1 -0
  219. package/out/params/params.d.ts +20 -24
  220. package/out/params/params.d.ts.map +1 -1
  221. package/out/params/params.js +16 -18
  222. package/out/types.d.ts +5 -113
  223. package/out/types.d.ts.map +1 -1
  224. package/out/utils/bit-mask/bit-mask.d.ts +9 -32
  225. package/out/utils/bit-mask/bit-mask.d.ts.map +1 -1
  226. package/out/utils/bit-mask/bit-mask.js +10 -37
  227. package/out/utils/click-outside/click-outside.d.ts +1 -4
  228. package/out/utils/click-outside/click-outside.d.ts.map +1 -1
  229. package/out/utils/click-outside/click-outside.js +1 -4
  230. package/out/utils/clone/clone.d.ts +3 -7
  231. package/out/utils/clone/clone.d.ts.map +1 -1
  232. package/out/utils/clone/clone.js +7 -12
  233. package/out/utils/color/color.d.ts +4 -6
  234. package/out/utils/color/color.d.ts.map +1 -1
  235. package/out/utils/color/color.js +5 -8
  236. package/out/utils/cookie-util/cookie-util.d.ts +16 -27
  237. package/out/utils/cookie-util/cookie-util.d.ts.map +1 -1
  238. package/out/utils/cookie-util/cookie-util.js +126 -55
  239. package/out/utils/data-type/data-types.d.ts +13 -19
  240. package/out/utils/data-type/data-types.d.ts.map +1 -1
  241. package/out/utils/data-type/data-types.js +13 -19
  242. package/out/utils/download-file/download-file.d.ts +6 -15
  243. package/out/utils/download-file/download-file.d.ts.map +1 -1
  244. package/out/utils/download-file/download-file.js +6 -15
  245. package/out/utils/event/event.d.ts +6 -14
  246. package/out/utils/event/event.d.ts.map +1 -1
  247. package/out/utils/event/event.js +6 -14
  248. package/out/utils/history-list/history-item.d.ts +5 -10
  249. package/out/utils/history-list/history-item.d.ts.map +1 -1
  250. package/out/utils/history-list/history-item.js +5 -10
  251. package/out/utils/history-list/history-list.d.ts +31 -45
  252. package/out/utils/history-list/history-list.d.ts.map +1 -1
  253. package/out/utils/history-list/history-list.js +28 -40
  254. package/out/utils/index.d.ts +1 -2
  255. package/out/utils/index.d.ts.map +1 -1
  256. package/out/utils/interceptor/core-interceptor.d.ts +11 -9
  257. package/out/utils/interceptor/core-interceptor.d.ts.map +1 -1
  258. package/out/utils/interceptor/core-interceptor.js +31 -12
  259. package/out/utils/interceptor/interceptor.d.ts +24 -43
  260. package/out/utils/interceptor/interceptor.d.ts.map +1 -1
  261. package/out/utils/interceptor/interceptor.js +18 -31
  262. package/out/utils/logger/logger.js +3 -2
  263. package/out/utils/message-center/base/message-all.d.ts +3 -5
  264. package/out/utils/message-center/base/message-all.d.ts.map +1 -1
  265. package/out/utils/message-center/base/message-all.js +1 -4
  266. package/out/utils/message-center/base/message-base.d.ts +23 -40
  267. package/out/utils/message-center/base/message-base.d.ts.map +1 -1
  268. package/out/utils/message-center/base/message-base.js +20 -26
  269. package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts +5 -6
  270. package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts.map +1 -1
  271. package/out/utils/message-center/command/add-in-changed/command-add-in-changed.js +3 -4
  272. package/out/utils/message-center/command/async-action/command-async-action.d.ts +6 -10
  273. package/out/utils/message-center/command/async-action/command-async-action.d.ts.map +1 -1
  274. package/out/utils/message-center/command/async-action/command-async-action.js +4 -8
  275. package/out/utils/message-center/command/change/command-change.d.ts +4 -5
  276. package/out/utils/message-center/command/change/command-change.d.ts.map +1 -1
  277. package/out/utils/message-center/command/change/command-change.js +2 -4
  278. package/out/utils/message-center/command/command-base/command-base.d.ts +10 -15
  279. package/out/utils/message-center/command/command-base/command-base.d.ts.map +1 -1
  280. package/out/utils/message-center/command/command-base/command-base.js +7 -12
  281. package/out/utils/message-center/command/create/command-create.d.ts +8 -12
  282. package/out/utils/message-center/command/create/command-create.d.ts.map +1 -1
  283. package/out/utils/message-center/command/create/command-create.js +6 -10
  284. package/out/utils/message-center/command/internal-message/command-internal-message.d.ts +7 -11
  285. package/out/utils/message-center/command/internal-message/command-internal-message.d.ts.map +1 -1
  286. package/out/utils/message-center/command/internal-message/command-internal-message.js +5 -9
  287. package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts +6 -10
  288. package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts.map +1 -1
  289. package/out/utils/message-center/command/mark-open-data/command-mark-open-data.js +4 -8
  290. package/out/utils/message-center/command/message-command.d.ts +31 -45
  291. package/out/utils/message-center/command/message-command.d.ts.map +1 -1
  292. package/out/utils/message-center/command/message-command.js +29 -43
  293. package/out/utils/message-center/command/remove/command-remove.d.ts +7 -11
  294. package/out/utils/message-center/command/remove/command-remove.d.ts.map +1 -1
  295. package/out/utils/message-center/command/remove/command-remove.js +5 -9
  296. package/out/utils/message-center/command/update/command-update.d.ts +7 -11
  297. package/out/utils/message-center/command/update/command-update.d.ts.map +1 -1
  298. package/out/utils/message-center/command/update/command-update.js +5 -9
  299. package/out/utils/message-center/console/message-console.d.ts +6 -9
  300. package/out/utils/message-center/console/message-console.d.ts.map +1 -1
  301. package/out/utils/message-center/console/message-console.js +4 -8
  302. package/out/utils/message-center/error/message-error.d.ts +6 -9
  303. package/out/utils/message-center/error/message-error.d.ts.map +1 -1
  304. package/out/utils/message-center/error/message-error.js +4 -8
  305. package/out/utils/message-center/index.d.ts +0 -1
  306. package/out/utils/message-center/index.d.ts.map +1 -1
  307. package/out/utils/message-center/message-center.d.ts +20 -35
  308. package/out/utils/message-center/message-center.d.ts.map +1 -1
  309. package/out/utils/message-center/message-center.js +18 -33
  310. package/out/utils/namespace/namespace.d.ts +45 -75
  311. package/out/utils/namespace/namespace.d.ts.map +1 -1
  312. package/out/utils/namespace/namespace.js +53 -81
  313. package/out/utils/net/http-response.d.ts +6 -66
  314. package/out/utils/net/http-response.d.ts.map +1 -1
  315. package/out/utils/net/http-response.js +4 -11
  316. package/out/utils/net/net.d.ts +57 -100
  317. package/out/utils/net/net.d.ts.map +1 -1
  318. package/out/utils/net/net.js +53 -94
  319. package/out/utils/recursive/find-recursive-child.d.ts +2 -10
  320. package/out/utils/recursive/find-recursive-child.d.ts.map +1 -1
  321. package/out/utils/recursive/find-recursive-child.js +4 -14
  322. package/out/utils/string-util/string-util.d.ts +6 -16
  323. package/out/utils/string-util/string-util.d.ts.map +1 -1
  324. package/out/utils/string-util/string-util.js +6 -16
  325. package/out/utils/style/remote-style.d.ts +1 -4
  326. package/out/utils/style/remote-style.d.ts.map +1 -1
  327. package/out/utils/style/remote-style.js +1 -4
  328. package/out/utils/sync/await-timeout.d.ts +1 -5
  329. package/out/utils/sync/await-timeout.d.ts.map +1 -1
  330. package/out/utils/sync/await-timeout.js +1 -5
  331. package/out/utils/sync/count-latch.d.ts +14 -30
  332. package/out/utils/sync/count-latch.d.ts.map +1 -1
  333. package/out/utils/sync/count-latch.js +14 -30
  334. package/out/utils/upload/select-file.d.ts +12 -29
  335. package/out/utils/upload/select-file.d.ts.map +1 -1
  336. package/out/utils/upload/select-file.js +3 -9
  337. package/out/utils/upload/upload-file.d.ts +6 -14
  338. package/out/utils/upload/upload-file.d.ts.map +1 -1
  339. package/out/utils/upload/upload-file.js +9 -23
  340. package/out/utils/url-helper/url-helper.d.ts +19 -30
  341. package/out/utils/url-helper/url-helper.d.ts.map +1 -1
  342. package/out/utils/url-helper/url-helper.js +19 -30
  343. package/out/utils/util/util.d.ts +6 -77
  344. package/out/utils/util/util.d.ts.map +1 -1
  345. package/out/utils/util/util.js +6 -77
  346. package/package.json +2 -2
  347. package/out/command/interface/command/command-option.d.ts +0 -23
  348. package/out/command/interface/command/command-option.d.ts.map +0 -1
  349. package/out/command/interface/command/command.d.ts +0 -74
  350. package/out/command/interface/command/command.d.ts.map +0 -1
  351. package/out/command/interface/disposable/disposable.d.ts +0 -4
  352. package/out/command/interface/disposable/disposable.d.ts.map +0 -1
  353. package/out/command/interface/index.d.ts +0 -4
  354. package/out/command/interface/index.d.ts.map +0 -1
  355. package/out/constant/login-mode/login-mode.d.ts.map +0 -1
  356. package/out/constant/menu-permission-mode/menu-permission-mode.d.ts.map +0 -1
  357. package/out/interface/i-18n/i-18n.d.ts +0 -81
  358. package/out/interface/i-18n/i-18n.d.ts.map +0 -1
  359. package/out/interface/i-add-in-changed/i-add-in-changed.d.ts.map +0 -1
  360. package/out/interface/i-devtool-config/i-devtool-config.d.ts +0 -40
  361. package/out/interface/i-devtool-config/i-devtool-config.d.ts.map +0 -1
  362. package/out/interface/i-environment/i-environment.d.ts +0 -346
  363. package/out/interface/i-environment/i-environment.d.ts.map +0 -1
  364. package/out/interface/i-internal-message/i-internal-message.d.ts.map +0 -1
  365. package/out/interface/i-mark-open-data/i-mark-open-data.d.ts +0 -43
  366. package/out/interface/i-mark-open-data/i-mark-open-data.d.ts.map +0 -1
  367. package/out/interface/i-portal-async-action/i-portal-async-action.d.ts +0 -163
  368. package/out/interface/i-portal-async-action/i-portal-async-action.d.ts.map +0 -1
  369. package/out/interface/i-portal-message/i-portal-message.d.ts +0 -89
  370. package/out/interface/i-portal-message/i-portal-message.d.ts.map +0 -1
  371. package/out/interface/org-data/org-data.d.ts +0 -43
  372. package/out/interface/org-data/org-data.d.ts.map +0 -1
  373. package/out/utils/message-center/interface/i-app-data-entity.d.ts +0 -20
  374. package/out/utils/message-center/interface/i-app-data-entity.d.ts.map +0 -1
  375. package/out/utils/message-center/interface/i-msg-meta-data.d.ts +0 -19
  376. package/out/utils/message-center/interface/i-msg-meta-data.d.ts.map +0 -1
  377. package/out/utils/message-center/interface/index.d.ts +0 -3
  378. package/out/utils/message-center/interface/index.d.ts.map +0 -1
  379. /package/out/interface/{i-devtool-config → api/environment}/i-devtool-config.js +0 -0
  380. /package/out/interface/{i-environment → api/environment}/i-environment.js +0 -0
  381. /package/out/{command/interface → interface/api/environment}/index.js +0 -0
  382. /package/out/{command/interface/command/command-option.js → interface/api/global-param/i-api-context.js} +0 -0
  383. /package/out/{command/interface/command/command.js → interface/api/global-param/i-global-param.js} +0 -0
  384. /package/out/{utils/message-center/interface → interface/api/global-param}/index.js +0 -0
  385. /package/out/{command/interface/disposable/disposable.js → interface/api/ibizsys/i-api-ibizsys.js} +0 -0
  386. /package/out/interface/{i-18n/i-18n.js → api/ibizsys/i-org-data.js} +0 -0
  387. /package/out/interface/{i-add-in-changed/i-add-in-changed.js → api/ibizsys/index.js} +0 -0
  388. /package/out/interface/{i-internal-message/i-internal-message.js → api/utils/i-api-i18n.js} +0 -0
  389. /package/out/interface/{i-mark-open-data/i-mark-open-data.js → api/utils/message-center/base/i-message-all.js} +0 -0
  390. /package/out/interface/{i-portal-async-action/i-portal-async-action.js → api/utils/message-center/base/i-message-base.js} +0 -0
  391. /package/out/interface/{i-portal-message/i-portal-message.js → api/utils/message-center/base/index.js} +0 -0
  392. /package/out/interface/{org-data/org-data.js → api/utils/message-center/command/add-in-changed/i-add-in-changed.js} +0 -0
  393. /package/out/{utils/message-center/interface/i-app-data-entity.js → interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.js} +0 -0
  394. /package/out/{utils/message-center/interface/i-msg-meta-data.js → interface/api/utils/message-center/command/async-action/i-command-async-action.js} +0 -0
@@ -1,214 +1,171 @@
1
1
  import { RawAxiosRequestHeaders, AxiosResponse, AxiosRequestConfig, AxiosInstance, CreateAxiosDefaults } from 'axios';
2
2
  import { FetchEventSourceInit } from '@microsoft/fetch-event-source';
3
3
  import { Interceptor } from '../interceptor/interceptor';
4
- import { IHttpResponse } from './http-response';
4
+ import { IApiNet, IHttpResponse } from '../../interface';
5
5
  /**
6
- * 全局请求工具类
7
- *
8
- * @author chitanda
9
- * @date 2022-07-14 15:07:42
6
+ * @description 全局请求工具类
10
7
  * @export
11
8
  * @class Net
9
+ * @implements {IApiNet}
12
10
  */
13
- export declare class Net {
11
+ export declare class Net implements IApiNet {
14
12
  /**
15
- * axios实例
16
- *
17
- * @author lxm
18
- * @date 2022-10-27 17:10:18
13
+ * @description axios实例
19
14
  * @protected
20
15
  * @type {AxiosInstance}
16
+ * @memberof Net
21
17
  */
22
18
  protected instance: AxiosInstance;
23
19
  /**
24
- * 是否为 http || https 开头
25
- *
26
- * @author chitanda
27
- * @date 2022-11-07 14:11:28
20
+ * @description 是否为 http || https 开头
28
21
  * @protected
22
+ * @memberof Net
29
23
  */
30
24
  protected urlReg: RegExp;
31
25
  /**
32
- * 请求等待队列,防止重复请求。当有完全相同请求参数的请求时,会等待上一个请求完成后把结果返回给当前请求,不会重复请求
33
- * key: 由请求的 config 生成的字符串,用于唯一标识请求
34
- * value: 当前正在请求的 Promise
35
- *
36
- * @author chitanda
37
- * @date 2023-06-07 14:06:19
26
+ * @description 请求等待队列,防止重复请求。当有完全相同请求参数的请求时,会等待上一个请求完成后把结果返回给当前请求,不会重复请求(key: 由请求的 config 生成的字符串,用于唯一标识请求,value: 当前正在请求的 Promise)
38
27
  * @protected
28
+ * @memberof Net
39
29
  */
40
30
  protected waitRequest: Map<string, Promise<AxiosResponse<any, any>>>;
41
31
  protected get baseUrl(): string;
42
32
  /**
43
33
  * Creates an instance of Net.
44
- * @author lxm
45
- * @date 2022-10-27 16:10:05
46
34
  * @param {CreateAxiosDefaults} [config] 创建实例用的默认配置
35
+ * @memberof Net
47
36
  */
48
37
  constructor(config?: CreateAxiosDefaults);
49
38
  /**
50
- * 注册的拦截器
51
- *
52
- * @author lxm
53
- * @date 2022-10-27 17:10:18
39
+ * @description 注册的拦截器
54
40
  * @type {Map<string, Interceptor>}
41
+ * @memberof Net
55
42
  */
56
43
  interceptors: Map<string, Interceptor>;
57
44
  /**
58
- * 添加拦截器
59
- *
60
- * @author lxm
61
- * @date 2022-10-27 17:10:42
45
+ * @description 添加拦截器
62
46
  * @param {string} name 唯一标识
63
47
  * @param {Interceptor} interceptor 拦截器
48
+ * @memberof Net
64
49
  */
65
50
  addInterceptor(name: string, interceptor: Interceptor): void;
66
51
  /**
67
- * 删除拦截器
68
- *
69
- * @author lxm
70
- * @date 2022-10-27 17:10:27
52
+ * @description 删除拦截器
71
53
  * @param {string} name 唯一标识
54
+ * @memberof Net
72
55
  */
73
56
  removeInterceptor(name: string): void;
74
57
  /**
75
- * 预置config,绑定动态的配置
76
- *
77
- * @author lxm
78
- * @date 2022-10-27 16:10:48
58
+ * @description 预置config,绑定动态的配置
79
59
  * @readonly
80
60
  * @protected
81
61
  * @type {AxiosRequestConfig}
62
+ * @memberof Net
82
63
  */
83
64
  protected get presetConfig(): AxiosRequestConfig;
84
65
  /**
85
- * 从左到右递归合并配置参数(内置第一个合并的预置参数)
86
- *
87
- * @author lxm
88
- * @date 2022-10-27 16:10:09
66
+ * @description 从左到右递归合并配置参数(内置第一个合并的预置参数)
89
67
  * @protected
90
68
  * @param {...AxiosRequestConfig[]} configs
91
- * @returns {*}
69
+ * @returns {*} {AxiosRequestConfig}
70
+ * @memberof Net
92
71
  */
93
72
  protected mergeConfig(...configs: AxiosRequestConfig[]): AxiosRequestConfig;
94
73
  /**
95
- * Post 请求
96
- *
97
- * @author chitanda
98
- * @date 2022-10-19 11:10:30
74
+ * @description Post 请求
99
75
  * @param {string} url
100
76
  * @param {IData} data
101
77
  * @param {IParams} [params={}]
102
78
  * @param {RawAxiosRequestHeaders} [headers={}]
103
- * @return {*} {Promise<IHttpResponse>}
79
+ * @returns {*} {Promise<IHttpResponse>}
80
+ * @memberof Net
104
81
  */
105
82
  post(url: string, data: IData, params?: IParams, headers?: RawAxiosRequestHeaders): Promise<IHttpResponse>;
106
83
  /**
107
- * Get 请求
108
- *
109
- * @author chitanda
110
- * @date 2022-10-19 11:10:24
84
+ * @description Get 请求
111
85
  * @param {string} url
112
86
  * @param {IParams} [params={}]
113
87
  * @param {RawAxiosRequestHeaders} [headers={}]
114
- * @param {IParams} [option={}]
115
- * @return {*} {Promise<IHttpResponse>}
88
+ * @param {AxiosRequestConfig} [option={}]
89
+ * @returns {*} {Promise<IHttpResponse>}
90
+ * @memberof Net
116
91
  */
117
92
  get(url: string, params?: IParams, headers?: RawAxiosRequestHeaders, option?: AxiosRequestConfig): Promise<IHttpResponse>;
118
93
  /**
119
- * Delete 请求
120
- *
121
- * @author chitanda
122
- * @date 2022-10-19 11:10:17
94
+ * @description Delete 请求
123
95
  * @param {string} url
124
- * @param {IParams} [params]
96
+ * @param {IParams} [params={}]
125
97
  * @param {RawAxiosRequestHeaders} [headers={}]
126
- * @return {*} {Promise<IHttpResponse>}
98
+ * @returns {*} {Promise<IHttpResponse>}
99
+ * @memberof Net
127
100
  */
128
101
  delete(url: string, params?: IParams, headers?: RawAxiosRequestHeaders): Promise<IHttpResponse>;
129
102
  /**
130
- * Put 请求
131
- *
132
- * @author chitanda
133
- * @date 2022-10-19 11:10:11
103
+ * @description Put 请求
134
104
  * @param {string} url
135
105
  * @param {IData} data
136
106
  * @param {IParams} [params={}]
137
107
  * @param {RawAxiosRequestHeaders} [headers={}]
138
- * @return {*} {Promise<IHttpResponse>}
108
+ * @returns {*} {Promise<IHttpResponse>}
109
+ * @memberof Net
139
110
  */
140
111
  put(url: string, data: IData, params?: IParams, headers?: RawAxiosRequestHeaders): Promise<IHttpResponse>;
141
112
  /**
142
- * 获取模型数据
143
- *
144
- * @author chitanda
145
- * @date 2022-07-14 15:07:15
113
+ * @description 获取模型数据
146
114
  * @param {string} url
147
115
  * @param {RawAxiosRequestHeaders} [headers={}]
148
- * @return {*} {Promise<IHttpResponse>}
116
+ * @returns {*} {Promise<IHttpResponse>}
117
+ * @memberof Net
149
118
  */
150
119
  getModel(url: string, headers?: RawAxiosRequestHeaders): Promise<IHttpResponse>;
151
120
  /**
152
- * 基础请求方法,会合并预置配置
153
- *
154
- * @author lxm
155
- * @date 2022-10-27 14:10:06
121
+ * @description 基础请求方法,会合并预置配置
156
122
  * @param {string} url
157
123
  * @param {AxiosRequestConfig} [config={}]
158
124
  * @returns {*} {Promise<IHttpResponse>}
125
+ * @memberof Net
159
126
  */
160
127
  request(url: string, config?: AxiosRequestConfig): Promise<IHttpResponse>;
161
128
  /**
162
- * 创建标准 axios 请求
163
- *
164
- * @author chitanda
165
- * @date 2023-01-30 15:01:27
129
+ * @description 创建标准 axios 请求
166
130
  * @param {AxiosRequestConfig<IData>} config
167
- * @return {*}
131
+ * @returns {*} {Promise<AxiosResponse>}
132
+ * @memberof Net
168
133
  */
169
134
  axios(config: AxiosRequestConfig<IData>): Promise<AxiosResponse>;
170
135
  /**
171
- * 触发 sse 请求
172
- *
173
- * @author chitanda
174
- * @date 2023-10-10 16:10:08
136
+ * @description 触发 sse 请求
175
137
  * @param {string} url
176
138
  * @param {IParams} params
177
139
  * @param {FetchEventSourceInit} [options={}]
178
- * @return {*} {Promise<void>}
140
+ * @returns {*} {Promise<void>}
141
+ * @memberof Net
179
142
  */
180
143
  sse(url: string, params: IParams, options?: FetchEventSourceInit): Promise<void>;
181
144
  /**
182
- * 统一处理请求返回
183
- *
184
- * @author chitanda
185
- * @date 2022-07-14 16:07:23
145
+ * @description 统一处理请求返回
186
146
  * @private
187
147
  * @param {AxiosResponse} response
188
- * @return {*} {IHttpResponse}
148
+ * @returns {*} {IHttpResponse}
149
+ * @memberof Net
189
150
  */
190
151
  private doResponseResult;
191
152
  /**
192
- * 处理平台预定义参数
193
- *
194
- * @author tony001
195
- * @date 2024-04-18 10:04:52
153
+ * @description 处理平台预定义参数
196
154
  * @private
197
155
  * @param {string} url
156
+ * @param {IParams} params
198
157
  * @param {IData} [data={}]
199
- * @param {IParams} [params]
200
- * @return {*} {string}
158
+ * @returns {*} {string}
159
+ * @memberof Net
201
160
  */
202
161
  private handleAppPresetParam;
203
162
  /**
204
- * url 附加请求参数,并处理路径的字符转换 encode
205
- *
206
- * @author chitanda
207
- * @date 2022-07-14 15:07:34
163
+ * @description url 附加请求参数,并处理路径的字符转换 encode
208
164
  * @private
209
165
  * @param {string} url
210
166
  * @param {IParams} params
211
- * @return {*} {string}
167
+ * @returns {*} {string}
168
+ * @memberof Net
212
169
  */
213
170
  private attachUrlParam;
214
171
  }
@@ -1 +1 @@
1
- {"version":3,"file":"net.d.ts","sourceRoot":"","sources":["../../../src/utils/net/net.ts"],"names":[],"mappings":"AAAA,OAAc,EAEZ,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACpB,MAAM,OAAO,CAAC;AACf,OAAO,EACL,oBAAoB,EAErB,MAAM,+BAA+B,CAAC;AAOvC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD;;;;;;;GAOG;AACH,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MAAM,GAAE,kBAAuB,GAC9B,OAAO,CAAC,aAAa,CAAC;IA4BzB;;;;;OAKG;IACH,KAAK,CAAC,MAAM,EAAE,kBAAkB,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC;IAIhE;;;;;;;OAOG;IACG,GAAG,CACP,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,OAAO,EACf,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,IAAI,CAAC;IAmChB;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB;IAYxB;;;;;;;;OAQG;IACH,OAAO,CAAC,oBAAoB;IAmB5B;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;CA4BvB"}
@@ -8,12 +8,10 @@ import { HttpErrorFactory } from '../../error';
8
8
  import { CoreInterceptor } from '../interceptor';
9
9
  import { getToken } from '../util/util';
10
10
  /**
11
- * 全局请求工具类
12
- *
13
- * @author chitanda
14
- * @date 2022-07-14 15:07:42
11
+ * @description 全局请求工具类
15
12
  * @export
16
13
  * @class Net
14
+ * @implements {IApiNet}
17
15
  */
18
16
  export class Net {
19
17
  get baseUrl() {
@@ -21,58 +19,45 @@ export class Net {
21
19
  }
22
20
  /**
23
21
  * Creates an instance of Net.
24
- * @author lxm
25
- * @date 2022-10-27 16:10:05
26
22
  * @param {CreateAxiosDefaults} [config] 创建实例用的默认配置
23
+ * @memberof Net
27
24
  */
28
25
  constructor(config) {
29
26
  /**
30
- * 是否为 http || https 开头
31
- *
32
- * @author chitanda
33
- * @date 2022-11-07 14:11:28
27
+ * @description 是否为 http || https 开头
34
28
  * @protected
29
+ * @memberof Net
35
30
  */
36
31
  this.urlReg = /^http[s]?:\/\/[^\s]*/;
37
32
  /**
38
- * 请求等待队列,防止重复请求。当有完全相同请求参数的请求时,会等待上一个请求完成后把结果返回给当前请求,不会重复请求
39
- * key: 由请求的 config 生成的字符串,用于唯一标识请求
40
- * value: 当前正在请求的 Promise
41
- *
42
- * @author chitanda
43
- * @date 2023-06-07 14:06:19
33
+ * @description 请求等待队列,防止重复请求。当有完全相同请求参数的请求时,会等待上一个请求完成后把结果返回给当前请求,不会重复请求(key: 由请求的 config 生成的字符串,用于唯一标识请求,value: 当前正在请求的 Promise)
44
34
  * @protected
35
+ * @memberof Net
45
36
  */
46
37
  this.waitRequest = new Map();
47
38
  /**
48
- * 注册的拦截器
49
- *
50
- * @author lxm
51
- * @date 2022-10-27 17:10:18
39
+ * @description 注册的拦截器
52
40
  * @type {Map<string, Interceptor>}
41
+ * @memberof Net
53
42
  */
54
43
  this.interceptors = new Map();
55
44
  this.instance = axios.create(config);
56
45
  this.addInterceptor('Default', new CoreInterceptor());
57
46
  }
58
47
  /**
59
- * 添加拦截器
60
- *
61
- * @author lxm
62
- * @date 2022-10-27 17:10:42
48
+ * @description 添加拦截器
63
49
  * @param {string} name 唯一标识
64
50
  * @param {Interceptor} interceptor 拦截器
51
+ * @memberof Net
65
52
  */
66
53
  addInterceptor(name, interceptor) {
67
54
  interceptor.use(this.instance);
68
55
  this.interceptors.set(name, interceptor);
69
56
  }
70
57
  /**
71
- * 删除拦截器
72
- *
73
- * @author lxm
74
- * @date 2022-10-27 17:10:27
58
+ * @description 删除拦截器
75
59
  * @param {string} name 唯一标识
60
+ * @memberof Net
76
61
  */
77
62
  removeInterceptor(name) {
78
63
  const interceptor = this.interceptors.get(name);
@@ -82,13 +67,11 @@ export class Net {
82
67
  }
83
68
  }
84
69
  /**
85
- * 预置config,绑定动态的配置
86
- *
87
- * @author lxm
88
- * @date 2022-10-27 16:10:48
70
+ * @description 预置config,绑定动态的配置
89
71
  * @readonly
90
72
  * @protected
91
73
  * @type {AxiosRequestConfig}
74
+ * @memberof Net
92
75
  */
93
76
  get presetConfig() {
94
77
  return {
@@ -101,13 +84,11 @@ export class Net {
101
84
  };
102
85
  }
103
86
  /**
104
- * 从左到右递归合并配置参数(内置第一个合并的预置参数)
105
- *
106
- * @author lxm
107
- * @date 2022-10-27 16:10:09
87
+ * @description 从左到右递归合并配置参数(内置第一个合并的预置参数)
108
88
  * @protected
109
89
  * @param {...AxiosRequestConfig[]} configs
110
- * @returns {*}
90
+ * @returns {*} {AxiosRequestConfig}
91
+ * @memberof Net
111
92
  */
112
93
  mergeConfig(...configs) {
113
94
  const config = this.presetConfig;
@@ -121,15 +102,13 @@ export class Net {
121
102
  return merge(config, ...configs);
122
103
  }
123
104
  /**
124
- * Post 请求
125
- *
126
- * @author chitanda
127
- * @date 2022-10-19 11:10:30
105
+ * @description Post 请求
128
106
  * @param {string} url
129
107
  * @param {IData} data
130
108
  * @param {IParams} [params={}]
131
109
  * @param {RawAxiosRequestHeaders} [headers={}]
132
- * @return {*} {Promise<IHttpResponse>}
110
+ * @returns {*} {Promise<IHttpResponse>}
111
+ * @memberof Net
133
112
  */
134
113
  async post(url, data, params = {}, headers = {}) {
135
114
  url = this.handleAppPresetParam(url, params, data);
@@ -146,15 +125,13 @@ export class Net {
146
125
  }
147
126
  }
148
127
  /**
149
- * Get 请求
150
- *
151
- * @author chitanda
152
- * @date 2022-10-19 11:10:24
128
+ * @description Get 请求
153
129
  * @param {string} url
154
130
  * @param {IParams} [params={}]
155
131
  * @param {RawAxiosRequestHeaders} [headers={}]
156
- * @param {IParams} [option={}]
157
- * @return {*} {Promise<IHttpResponse>}
132
+ * @param {AxiosRequestConfig} [option={}]
133
+ * @returns {*} {Promise<IHttpResponse>}
134
+ * @memberof Net
158
135
  */
159
136
  async get(url, params = {}, headers = {}, option = {}) {
160
137
  url = this.attachUrlParam(url, params);
@@ -167,14 +144,12 @@ export class Net {
167
144
  }
168
145
  }
169
146
  /**
170
- * Delete 请求
171
- *
172
- * @author chitanda
173
- * @date 2022-10-19 11:10:17
147
+ * @description Delete 请求
174
148
  * @param {string} url
175
- * @param {IParams} [params]
149
+ * @param {IParams} [params={}]
176
150
  * @param {RawAxiosRequestHeaders} [headers={}]
177
- * @return {*} {Promise<IHttpResponse>}
151
+ * @returns {*} {Promise<IHttpResponse>}
152
+ * @memberof Net
178
153
  */
179
154
  async delete(url, params = {}, headers = {}) {
180
155
  url = this.handleAppPresetParam(url, params);
@@ -187,15 +162,13 @@ export class Net {
187
162
  }
188
163
  }
189
164
  /**
190
- * Put 请求
191
- *
192
- * @author chitanda
193
- * @date 2022-10-19 11:10:11
165
+ * @description Put 请求
194
166
  * @param {string} url
195
167
  * @param {IData} data
196
168
  * @param {IParams} [params={}]
197
169
  * @param {RawAxiosRequestHeaders} [headers={}]
198
- * @return {*} {Promise<IHttpResponse>}
170
+ * @returns {*} {Promise<IHttpResponse>}
171
+ * @memberof Net
199
172
  */
200
173
  async put(url, data, params = {}, headers = {}) {
201
174
  url = this.handleAppPresetParam(url, params);
@@ -212,13 +185,11 @@ export class Net {
212
185
  }
213
186
  }
214
187
  /**
215
- * 获取模型数据
216
- *
217
- * @author chitanda
218
- * @date 2022-07-14 15:07:15
188
+ * @description 获取模型数据
219
189
  * @param {string} url
220
190
  * @param {RawAxiosRequestHeaders} [headers={}]
221
- * @return {*} {Promise<IHttpResponse>}
191
+ * @returns {*} {Promise<IHttpResponse>}
192
+ * @memberof Net
222
193
  */
223
194
  async getModel(url, headers = {}) {
224
195
  try {
@@ -232,13 +203,11 @@ export class Net {
232
203
  }
233
204
  }
234
205
  /**
235
- * 基础请求方法,会合并预置配置
236
- *
237
- * @author lxm
238
- * @date 2022-10-27 14:10:06
206
+ * @description 基础请求方法,会合并预置配置
239
207
  * @param {string} url
240
208
  * @param {AxiosRequestConfig} [config={}]
241
209
  * @returns {*} {Promise<IHttpResponse>}
210
+ * @memberof Net
242
211
  */
243
212
  async request(url, config = {}) {
244
213
  // axios 请求参数配置
@@ -270,25 +239,21 @@ export class Net {
270
239
  }
271
240
  }
272
241
  /**
273
- * 创建标准 axios 请求
274
- *
275
- * @author chitanda
276
- * @date 2023-01-30 15:01:27
242
+ * @description 创建标准 axios 请求
277
243
  * @param {AxiosRequestConfig<IData>} config
278
- * @return {*}
244
+ * @returns {*} {Promise<AxiosResponse>}
245
+ * @memberof Net
279
246
  */
280
247
  axios(config) {
281
248
  return axios(config);
282
249
  }
283
250
  /**
284
- * 触发 sse 请求
285
- *
286
- * @author chitanda
287
- * @date 2023-10-10 16:10:08
251
+ * @description 触发 sse 请求
288
252
  * @param {string} url
289
253
  * @param {IParams} params
290
254
  * @param {FetchEventSourceInit} [options={}]
291
- * @return {*} {Promise<void>}
255
+ * @returns {*} {Promise<void>}
256
+ * @memberof Net
292
257
  */
293
258
  async sse(url, params, options = {}) {
294
259
  url = this.attachUrlParam(this.baseUrl + url, params);
@@ -322,13 +287,11 @@ export class Net {
322
287
  await fetchEventSource(url, config);
323
288
  }
324
289
  /**
325
- * 统一处理请求返回
326
- *
327
- * @author chitanda
328
- * @date 2022-07-14 16:07:23
290
+ * @description 统一处理请求返回
329
291
  * @private
330
292
  * @param {AxiosResponse} response
331
- * @return {*} {IHttpResponse}
293
+ * @returns {*} {IHttpResponse}
294
+ * @memberof Net
332
295
  */
333
296
  doResponseResult(response) {
334
297
  const res = response;
@@ -342,15 +305,13 @@ export class Net {
342
305
  return res;
343
306
  }
344
307
  /**
345
- * 处理平台预定义参数
346
- *
347
- * @author tony001
348
- * @date 2024-04-18 10:04:52
308
+ * @description 处理平台预定义参数
349
309
  * @private
350
310
  * @param {string} url
311
+ * @param {IParams} params
351
312
  * @param {IData} [data={}]
352
- * @param {IParams} [params]
353
- * @return {*} {string}
313
+ * @returns {*} {string}
314
+ * @memberof Net
354
315
  */
355
316
  handleAppPresetParam(url, params, data = {}) {
356
317
  // [特殊参数识别]post请求时将srfversionid视图参数或编辑器中的视图参数以请求问号参数传递
@@ -367,14 +328,12 @@ export class Net {
367
328
  return url;
368
329
  }
369
330
  /**
370
- * url 附加请求参数,并处理路径的字符转换 encode
371
- *
372
- * @author chitanda
373
- * @date 2022-07-14 15:07:34
331
+ * @description url 附加请求参数,并处理路径的字符转换 encode
374
332
  * @private
375
333
  * @param {string} url
376
334
  * @param {IParams} params
377
- * @return {*} {string}
335
+ * @returns {*} {string}
336
+ * @memberof Net
378
337
  */
379
338
  attachUrlParam(url, params) {
380
339
  // [特殊参数识别]删除界面使用视图参数srfdefdata
@@ -4,9 +4,7 @@ declare const IterateOpts: {
4
4
  childrenFields: string[];
5
5
  };
6
6
  /**
7
- * 递归遍历子元素
8
- *
9
- * @description 递归遍历子元素 用法:传入数组和回调函数 无返回值
7
+ * @description 递归遍历子元素,递归遍历子元素 用法:传入数组和回调函数 无返回值
10
8
  * @example
11
9
  * ```
12
10
  * const parent = {
@@ -28,8 +26,6 @@ declare const IterateOpts: {
28
26
  *
29
27
  * result // => ['child1', 'grandchild1', 'grandchild2', 'child2', 'grandchild3']
30
28
  * ```
31
- * @author lxm
32
- * @date 2023-04-23 09:07:06
33
29
  * @export
34
30
  * @param {IData} parent 父元素
35
31
  * @param {(item: any) => boolean} callback 每一个子元素的回调
@@ -52,9 +48,7 @@ type ICompareOpts = Partial<typeof CompareOpts> & {
52
48
  compareCallback?: (child: IData, key: string, compareField: string) => boolean;
53
49
  };
54
50
  /**
55
- * 递归查找子元素
56
- *
57
- * @description 递归查找子元素 用法:传入数组和查找条件 返回值匹配的子元素或undefined
51
+ * @description 递归查找子元素,递归查找子元素 用法:传入数组和查找条件 返回值匹配的子元素或undefined
58
52
  * @example
59
53
  * ```
60
54
  * const parent = {
@@ -72,8 +66,6 @@ type ICompareOpts = Partial<typeof CompareOpts> & {
72
66
  *
73
67
  * result // => { name: 'child1', children: [{ name: 'grandchild1' }, { name: 'grandchild2' }] }
74
68
  * ```
75
- * @author lxm
76
- * @date 2023-04-20 08:53:35
77
69
  * @export
78
70
  * @param {IData} parent 父对象
79
71
  * @param {string} key 子元素的比较属性的值
@@ -1 +1 @@
1
- {"version":3,"file":"find-recursive-child.d.ts","sourceRoot":"","sources":["../../../src/utils/recursive/find-recursive-child.ts"],"names":[],"mappings":"AAGA,aAAa;AACb,QAAA,MAAM,WAAW;IACf,cAAc;;CAEf,CAAC;AA0CF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,KAAK,EACb,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,KAAK,OAAO,GAAG,IAAI,EACrD,IAAI,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,GACjC,IAAI,CAQN;AAED,aAAa;AACb,QAAA,MAAM,WAAW;IAEf,YAAY;;IA7FZ,cAAc;;CA+Ff,CAAC;AAEF,KAAK,YAAY,GAAG,OAAO,CAAC,OAAO,WAAW,CAAC,GAAG;IAChD;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAChB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,MAAM,KACjB,OAAO,CAAC;CACd,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,KAAK,EACb,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,YAAY,GAClB,KAAK,GAAG,SAAS,CA0BnB"}
1
+ {"version":3,"file":"find-recursive-child.d.ts","sourceRoot":"","sources":["../../../src/utils/recursive/find-recursive-child.ts"],"names":[],"mappings":"AAGA,aAAa;AACb,QAAA,MAAM,WAAW;IACf,cAAc;;CAEf,CAAC;AAuCF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,KAAK,EACb,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,KAAK,OAAO,GAAG,IAAI,EACrD,IAAI,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,GACjC,IAAI,CAQN;AAED,aAAa;AACb,QAAA,MAAM,WAAW;IAEf,YAAY;;IAtFZ,cAAc;;CAwFf,CAAC;AAEF,KAAK,YAAY,GAAG,OAAO,CAAC,OAAO,WAAW,CAAC,GAAG;IAChD;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAChB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,MAAM,KACjB,OAAO,CAAC;CACd,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,KAAK,EACb,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,YAAY,GAClB,KAAK,GAAG,SAAS,CA0BnB"}