@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
@@ -7,12 +7,10 @@ const IterateOpts = {
7
7
  };
8
8
  const BreakError = new Error('中断操作');
9
9
  /**
10
- * 获取子属性集合
11
- * @author lxm
12
- * @date 2023-04-20 08:54:32
10
+ * @description 获取子属性集合
13
11
  * @param {IData} parent
14
12
  * @param {string[]} fields 子集合可能的属性名称
15
- * @return {*} {(IData[] | undefined)}
13
+ * @returns {*} {(IData[] | undefined)}
16
14
  */
17
15
  function getChildField(parent, fields) {
18
16
  var _a;
@@ -39,9 +37,7 @@ function _recursiveIterate(parent, callback, opts) {
39
37
  }
40
38
  }
41
39
  /**
42
- * 递归遍历子元素
43
- *
44
- * @description 递归遍历子元素 用法:传入数组和回调函数 无返回值
40
+ * @description 递归遍历子元素,递归遍历子元素 用法:传入数组和回调函数 无返回值
45
41
  * @example
46
42
  * ```
47
43
  * const parent = {
@@ -63,8 +59,6 @@ function _recursiveIterate(parent, callback, opts) {
63
59
  *
64
60
  * result // => ['child1', 'grandchild1', 'grandchild2', 'child2', 'grandchild3']
65
61
  * ```
66
- * @author lxm
67
- * @date 2023-04-23 09:07:06
68
62
  * @export
69
63
  * @param {IData} parent 父元素
70
64
  * @param {(item: any) => boolean} callback 每一个子元素的回调
@@ -85,9 +79,7 @@ const CompareOpts = Object.assign(Object.assign({}, IterateOpts), {
85
79
  /** 比较的属性 */
86
80
  compareField: 'name' });
87
81
  /**
88
- * 递归查找子元素
89
- *
90
- * @description 递归查找子元素 用法:传入数组和查找条件 返回值匹配的子元素或undefined
82
+ * @description 递归查找子元素,递归查找子元素 用法:传入数组和查找条件 返回值匹配的子元素或undefined
91
83
  * @example
92
84
  * ```
93
85
  * const parent = {
@@ -105,8 +97,6 @@ const CompareOpts = Object.assign(Object.assign({}, IterateOpts), {
105
97
  *
106
98
  * result // => { name: 'child1', children: [{ name: 'grandchild1' }, { name: 'grandchild2' }] }
107
99
  * ```
108
- * @author lxm
109
- * @date 2023-04-20 08:53:35
110
100
  * @export
111
101
  * @param {IData} parent 父对象
112
102
  * @param {string} key 子元素的比较属性的值
@@ -1,38 +1,28 @@
1
1
  /**
2
- * 字符串工具类
3
- *
4
- * @author chitanda
5
- * @date 2021-04-23 20:04:27
2
+ * @description 字符串工具类
6
3
  * @export
7
4
  * @class StringUtil
8
5
  */
9
6
  export declare class StringUtil {
10
7
  /**
11
- * 上下文替换正则
12
- *
13
- * @author chitanda
14
- * @date 2021-04-23 20:04:01
8
+ * @description 上下文替换正则
15
9
  * @static
10
+ * @memberof StringUtil
16
11
  */
17
12
  static contextReg: RegExp;
18
13
  /**
19
- * 数据替换正则
20
- *
21
- * @author chitanda
22
- * @date 2021-04-23 20:04:09
14
+ * @description 数据替换正则
23
15
  * @static
16
+ * @memberof StringUtil
24
17
  */
25
18
  static dataReg: RegExp;
26
19
  /**
27
- * 参数替换正则
28
- *
20
+ * @description 参数替换正则
29
21
  * @static
30
22
  * @memberof StringUtil
31
23
  */
32
24
  static paramsReg: RegExp;
33
25
  /**
34
- * 填充字符串中的数据
35
- *
36
26
  * @description 填充字符串中的数据 用法:传入需要替换的字符串和对象 返回值是string类型
37
27
  * @example
38
28
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"string-util.d.ts","sourceRoot":"","sources":["../../../src/utils/string-util/string-util.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,qBAAa,UAAU;IACrB;;;;;;OAMG;IACH,MAAM,CAAC,UAAU,SAAgD;IAEjE;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,SAA6C;IAE3D;;;;;OAKG;IACH,MAAM,CAAC,SAAS,SAA+C;IAE/D;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,CACT,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,QAAQ,EAClB,MAAM,CAAC,EAAE,OAAO,EAChB,IAAI,CAAC,EAAE,KAAK,GACX,MAAM;CA4BV"}
1
+ {"version":3,"file":"string-util.d.ts","sourceRoot":"","sources":["../../../src/utils/string-util/string-util.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,qBAAa,UAAU;IACrB;;;;OAIG;IACH,MAAM,CAAC,UAAU,SAAgD;IAEjE;;;;OAIG;IACH,MAAM,CAAC,OAAO,SAA6C;IAE3D;;;;OAIG;IACH,MAAM,CAAC,SAAS,SAA+C;IAE/D;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,CACT,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,QAAQ,EAClB,MAAM,CAAC,EAAE,OAAO,EAChB,IAAI,CAAC,EAAE,KAAK,GACX,MAAM;CA4BV"}
@@ -1,16 +1,11 @@
1
1
  import { notNilEmpty } from 'qx-util';
2
2
  /**
3
- * 字符串工具类
4
- *
5
- * @author chitanda
6
- * @date 2021-04-23 20:04:27
3
+ * @description 字符串工具类
7
4
  * @export
8
5
  * @class StringUtil
9
6
  */
10
7
  export class StringUtil {
11
8
  /**
12
- * 填充字符串中的数据
13
- *
14
9
  * @description 填充字符串中的数据 用法:传入需要替换的字符串和对象 返回值是string类型
15
10
  * @example
16
11
  * ```
@@ -55,24 +50,19 @@ export class StringUtil {
55
50
  }
56
51
  }
57
52
  /**
58
- * 上下文替换正则
59
- *
60
- * @author chitanda
61
- * @date 2021-04-23 20:04:01
53
+ * @description 上下文替换正则
62
54
  * @static
55
+ * @memberof StringUtil
63
56
  */
64
57
  StringUtil.contextReg = /\$\{context.[a-zA-Z_$][a-zA-Z0-9_$]{1,}\}/g;
65
58
  /**
66
- * 数据替换正则
67
- *
68
- * @author chitanda
69
- * @date 2021-04-23 20:04:09
59
+ * @description 数据替换正则
70
60
  * @static
61
+ * @memberof StringUtil
71
62
  */
72
63
  StringUtil.dataReg = /\$\{data.[a-zA-Z_$][a-zA-Z0-9_$]{1,}\}/g;
73
64
  /**
74
- * 参数替换正则
75
- *
65
+ * @description 参数替换正则
76
66
  * @static
77
67
  * @memberof StringUtil
78
68
  */
@@ -1,8 +1,5 @@
1
1
  /**
2
- * 设置远程样式表
3
- *
4
- * @author lxm
5
- * @date 2023-02-09 05:46:49
2
+ * @description 设置远程样式表
6
3
  * @export
7
4
  * @param {string} url
8
5
  * @returns {*} {Promise<void>}
@@ -1 +1 @@
1
- {"version":3,"file":"remote-style.d.ts","sourceRoot":"","sources":["../../../src/utils/style/remote-style.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAU/D"}
1
+ {"version":3,"file":"remote-style.d.ts","sourceRoot":"","sources":["../../../src/utils/style/remote-style.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAU/D"}
@@ -1,8 +1,5 @@
1
1
  /**
2
- * 设置远程样式表
3
- *
4
- * @author lxm
5
- * @date 2023-02-09 05:46:49
2
+ * @description 设置远程样式表
6
3
  * @export
7
4
  * @param {string} url
8
5
  * @returns {*} {Promise<void>}
@@ -1,14 +1,10 @@
1
1
  /**
2
- * 设置延迟wait毫米后执行fun方法,返回fun的返回值
3
- *
4
- * @description 设置延迟wait毫米后执行fun方法 用法:传入等待时间,函数和参数 返回fun的返回值
2
+ * @description 设置延迟wait毫米后执行fun方法,返回fun的返回值。用法:传入等待时间,函数和参数 返回fun的返回值
5
3
  * @example
6
4
  * ```
7
5
  * awaitTimeout(100, () => 'Hello, World!'); // => 'Hello, World!'
8
6
  * awaitTimeout(100, (name: string) => `Hello, ${name}!`, ['John']); // => 'Hello, John!'
9
7
  * ```
10
- * @author lxm
11
- * @date 2023-03-06 08:20:57
12
8
  * @export
13
9
  * @template T
14
10
  * @param {number} wait
@@ -1 +1 @@
1
- {"version":3,"file":"await-timeout.d.ts","sourceRoot":"","sources":["../../../src/utils/sync/await-timeout.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,YAAY,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAChE,IAAI,EAAE,MAAM,EACZ,GAAG,CAAC,EAAE,CAAC,EACP,MAAM,CAAC,EAAE,GAAG,EAAE,GACb,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CASpC"}
1
+ {"version":3,"file":"await-timeout.d.ts","sourceRoot":"","sources":["../../../src/utils/sync/await-timeout.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;GAaG;AACH,wBAAsB,YAAY,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAChE,IAAI,EAAE,MAAM,EACZ,GAAG,CAAC,EAAE,CAAC,EACP,MAAM,CAAC,EAAE,GAAG,EAAE,GACb,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CASpC"}
@@ -1,15 +1,11 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  /**
3
- * 设置延迟wait毫米后执行fun方法,返回fun的返回值
4
- *
5
- * @description 设置延迟wait毫米后执行fun方法 用法:传入等待时间,函数和参数 返回fun的返回值
3
+ * @description 设置延迟wait毫米后执行fun方法,返回fun的返回值。用法:传入等待时间,函数和参数 返回fun的返回值
6
4
  * @example
7
5
  * ```
8
6
  * awaitTimeout(100, () => 'Hello, World!'); // => 'Hello, World!'
9
7
  * awaitTimeout(100, (name: string) => `Hello, ${name}!`, ['John']); // => 'Hello, John!'
10
8
  * ```
11
- * @author lxm
12
- * @date 2023-03-06 08:20:57
13
9
  * @export
14
10
  * @template T
15
11
  * @param {number} wait
@@ -1,8 +1,5 @@
1
1
  /**
2
- * 计数插销工具类
3
- *
4
- * @author lxm
5
- * @date 2022-11-24 19:11:49
2
+ * @description 计数插销工具类
6
3
  * @export
7
4
  * @class CountLatch
8
5
  */
@@ -10,50 +7,37 @@ export declare class CountLatch {
10
7
  private promise;
11
8
  private resolve;
12
9
  /**
13
- * 计数,当前等待的异步逻辑个数
14
- *
15
- * @author lxm
16
- * @date 2022-11-24 19:11:59
10
+ * @description 计数,当前等待的异步逻辑个数
17
11
  * @type {number}
12
+ * @memberof CountLatch
18
13
  */
19
14
  count: number;
20
15
  /**
21
- * 开启promise
22
- *
23
- * @author lxm
24
- * @date 2022-11-24 19:11:32
16
+ * @description 开启promise
25
17
  * @private
18
+ * @memberof CountLatch
26
19
  */
27
20
  private startPromise;
28
21
  /**
29
- * 结束promise
30
- *
31
- * @author lxm
32
- * @date 2022-11-24 19:11:44
22
+ * @description 结束promise
33
23
  * @private
24
+ * @memberof CountLatch
34
25
  */
35
26
  private endPromise;
36
27
  /**
37
- * 上锁,计数加一
38
- * 第一次计数,开启异步
39
- *
40
- * @author lxm
41
- * @date 2022-11-24 19:11:27
28
+ * @description 上锁,计数加一,第一次计数,开启异步
29
+ * @memberof CountLatch
42
30
  */
43
31
  lock(): void;
44
32
  /**
45
- * 解锁,计数减一
46
- * 归零时结束异步
47
- *
48
- * @author lxm
49
- * @date 2022-11-24 19:11:47
33
+ * @description 解锁,计数减一,归零时结束异步
34
+ * @memberof CountLatch
50
35
  */
51
36
  unlock(): void;
52
37
  /**
53
- * 等待,计数归零异步结束
54
- *
55
- * @author lxm
56
- * @date 2022-11-24 19:11:20
38
+ * @description 等待,计数归零异步结束
39
+ * @returns {*} {Promise<void>}
40
+ * @memberof CountLatch
57
41
  */
58
42
  await(): Promise<void>;
59
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"count-latch.d.ts","sourceRoot":"","sources":["../../../src/utils/sync/count-latch.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,OAAO,CAA8B;IAE7C,OAAO,CAAC,OAAO,CAAwC;IAEvD;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAK;IAElB;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAMpB;;;;;;OAMG;IACH,OAAO,CAAC,UAAU;IAQlB;;;;;;OAMG;IACH,IAAI,IAAI,IAAI;IAOZ;;;;;;OAMG;IACH,MAAM,IAAI,IAAI;IAUd;;;;;OAKG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAK7B"}
1
+ {"version":3,"file":"count-latch.d.ts","sourceRoot":"","sources":["../../../src/utils/sync/count-latch.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,OAAO,CAA8B;IAE7C,OAAO,CAAC,OAAO,CAAwC;IAEvD;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAK;IAElB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAMpB;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAQlB;;;OAGG;IACH,IAAI,IAAI,IAAI;IAOZ;;;OAGG;IACH,MAAM,IAAI,IAAI;IAUd;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAK7B"}
@@ -1,9 +1,6 @@
1
1
  import { RuntimeError } from '../../error';
2
2
  /**
3
- * 计数插销工具类
4
- *
5
- * @author lxm
6
- * @date 2022-11-24 19:11:49
3
+ * @description 计数插销工具类
7
4
  * @export
8
5
  * @class CountLatch
9
6
  */
@@ -12,20 +9,16 @@ export class CountLatch {
12
9
  this.promise = null;
13
10
  this.resolve = null;
14
11
  /**
15
- * 计数,当前等待的异步逻辑个数
16
- *
17
- * @author lxm
18
- * @date 2022-11-24 19:11:59
12
+ * @description 计数,当前等待的异步逻辑个数
19
13
  * @type {number}
14
+ * @memberof CountLatch
20
15
  */
21
16
  this.count = 0;
22
17
  }
23
18
  /**
24
- * 开启promise
25
- *
26
- * @author lxm
27
- * @date 2022-11-24 19:11:32
19
+ * @description 开启promise
28
20
  * @private
21
+ * @memberof CountLatch
29
22
  */
30
23
  startPromise() {
31
24
  this.promise = new Promise(resolve => {
@@ -33,11 +26,9 @@ export class CountLatch {
33
26
  });
34
27
  }
35
28
  /**
36
- * 结束promise
37
- *
38
- * @author lxm
39
- * @date 2022-11-24 19:11:44
29
+ * @description 结束promise
40
30
  * @private
31
+ * @memberof CountLatch
41
32
  */
42
33
  endPromise() {
43
34
  if (this.resolve) {
@@ -47,11 +38,8 @@ export class CountLatch {
47
38
  }
48
39
  }
49
40
  /**
50
- * 上锁,计数加一
51
- * 第一次计数,开启异步
52
- *
53
- * @author lxm
54
- * @date 2022-11-24 19:11:27
41
+ * @description 上锁,计数加一,第一次计数,开启异步
42
+ * @memberof CountLatch
55
43
  */
56
44
  lock() {
57
45
  this.count += 1;
@@ -60,11 +48,8 @@ export class CountLatch {
60
48
  }
61
49
  }
62
50
  /**
63
- * 解锁,计数减一
64
- * 归零时结束异步
65
- *
66
- * @author lxm
67
- * @date 2022-11-24 19:11:47
51
+ * @description 解锁,计数减一,归零时结束异步
52
+ * @memberof CountLatch
68
53
  */
69
54
  unlock() {
70
55
  if (this.count < 1) {
@@ -76,10 +61,9 @@ export class CountLatch {
76
61
  }
77
62
  }
78
63
  /**
79
- * 等待,计数归零异步结束
80
- *
81
- * @author lxm
82
- * @date 2022-11-24 19:11:20
64
+ * @description 等待,计数归零异步结束
65
+ * @returns {*} {Promise<void>}
66
+ * @memberof CountLatch
83
67
  */
84
68
  async await() {
85
69
  if (this.promise) {
@@ -1,58 +1,41 @@
1
1
  /**
2
- * 文件List转数组
3
- *
4
- * @author lxm
5
- * @date 2022-11-18 13:11:03
2
+ * @description 文件List转数组
6
3
  * @export
7
4
  * @param {FileList} fileList
8
- * @returns {*}
5
+ * @returns {*} {File[]}
9
6
  */
10
7
  export declare function fileListToArr(fileList: FileList): File[];
11
8
  /**
12
- * JS打开文件上传操作配置参数
13
- *
14
- * @author lxm
15
- * @date 2022-11-20 21:11:47
9
+ * @description JS打开文件上传操作配置参数
16
10
  * @export
17
11
  * @interface SelectFileOpts
18
12
  */
19
13
  export interface SelectFileOpts {
20
14
  /**
21
- * 接受的文件类型
22
- *
23
- * @author lxm
24
- * @date 2022-11-20 21:11:52
15
+ * @description 接受的文件类型
25
16
  * @type {string}
17
+ * @memberof SelectFileOpts
26
18
  */
27
19
  accept?: string;
28
20
  /**
29
- * 是否支持多选
30
- *
31
- * @author lxm
32
- * @date 2022-11-20 21:11:52
21
+ * @description 是否支持多选
33
22
  * @type {boolean}
23
+ * @memberof SelectFileOpts
34
24
  */
35
25
  multiple?: boolean;
36
26
  /**
37
- * 选中文件后回调
38
- *
39
- * @author lxm
40
- * @date 2022-11-20 21:11:50
27
+ * @description 选中文件后回调
28
+ * @memberof SelectFileOpts
41
29
  */
42
30
  onSelected: (_fileList: File[]) => void;
43
31
  /**
44
- * 没有选中文件,点击了取消的场景
45
- *
46
- * @author lxm
47
- * @date 2022-11-20 21:11:50
32
+ * @description 没有选中文件,点击了取消的场景
33
+ * @memberof SelectFileOpts
48
34
  */
49
35
  onCancel?: () => void;
50
36
  }
51
37
  /**
52
- * JS打开文件上传操作
53
- *
54
- * @author lxm
55
- * @date 2022-11-20 21:11:31
38
+ * @description JS打开文件上传操作
56
39
  * @export
57
40
  * @param {SelectFileOpts} _opts 配置参数
58
41
  */
@@ -1 +1 @@
1
- {"version":3,"file":"select-file.d.ts","sourceRoot":"","sources":["../../../src/utils/upload/select-file.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,EAAE,CAMxD;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,UAAU,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IAExC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAyCtD"}
1
+ {"version":3,"file":"select-file.d.ts","sourceRoot":"","sources":["../../../src/utils/upload/select-file.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,EAAE,CAMxD;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAyCtD"}
@@ -1,12 +1,9 @@
1
1
  import { merge } from 'lodash-es';
2
2
  /**
3
- * 文件List转数组
4
- *
5
- * @author lxm
6
- * @date 2022-11-18 13:11:03
3
+ * @description 文件List转数组
7
4
  * @export
8
5
  * @param {FileList} fileList
9
- * @returns {*}
6
+ * @returns {*} {File[]}
10
7
  */
11
8
  export function fileListToArr(fileList) {
12
9
  const files = [];
@@ -16,10 +13,7 @@ export function fileListToArr(fileList) {
16
13
  return files;
17
14
  }
18
15
  /**
19
- * JS打开文件上传操作
20
- *
21
- * @author lxm
22
- * @date 2022-11-20 21:11:31
16
+ * @description JS打开文件上传操作
23
17
  * @export
24
18
  * @param {SelectFileOpts} _opts 配置参数
25
19
  */
@@ -10,19 +10,15 @@ export interface IUploadFile {
10
10
  export interface IUploadFileOpts {
11
11
  uploadUrl: string;
12
12
  /**
13
- * 接受的文件类型
14
- *
15
- * @author lxm
16
- * @date 2022-11-20 21:11:52
13
+ * @description 接受的文件类型
17
14
  * @type {string}
15
+ * @memberof IUploadFileOpts
18
16
  */
19
17
  accept?: string;
20
18
  /**
21
- * 是否支持多选
22
- *
23
- * @author lxm
24
- * @date 2022-11-20 21:11:52
25
- * @type {Boolean}
19
+ * @description 是否支持多选
20
+ * @type {boolean}
21
+ * @memberof IUploadFileOpts
26
22
  */
27
23
  multiple?: boolean;
28
24
  separate?: string;
@@ -34,13 +30,9 @@ export interface IUploadFileOpts {
34
30
  progress?: (_files: IUploadFile[]) => void;
35
31
  }
36
32
  /**
37
- * 使用上传文件逻辑
38
- *
39
- * @author lxm
40
- * @date 2022-11-20 21:11:52
33
+ * @description 上传文件
41
34
  * @export
42
35
  * @param {IUploadFileOpts} _opts
43
- * @returns {*}
44
36
  */
45
37
  export declare function uploadFile(_opts: IUploadFileOpts): void;
46
38
  //# sourceMappingURL=upload-file.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upload-file.d.ts","sourceRoot":"","sources":["../../../src/utils/upload/upload-file.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,OAAO,CAAC;IACrE,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAC/C,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IACpE,KAAK,CAAC,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;CAC5C;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CA+JvD"}
1
+ {"version":3,"file":"upload-file.d.ts","sourceRoot":"","sources":["../../../src/utils/upload/upload-file.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,OAAO,CAAC;IACrE,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAC/C,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IACpE,KAAK,CAAC,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;CAC5C;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAqJvD"}
@@ -4,13 +4,9 @@ import { cloneDeep, isFunction, merge, round, uniqueId } from 'lodash-es';
4
4
  import { RuntimeError } from '../../error';
5
5
  import { selectFile } from './select-file';
6
6
  /**
7
- * 使用上传文件逻辑
8
- *
9
- * @author lxm
10
- * @date 2022-11-20 21:11:52
7
+ * @description 上传文件
11
8
  * @export
12
9
  * @param {IUploadFileOpts} _opts
13
- * @returns {*}
14
10
  */
15
11
  export function uploadFile(_opts) {
16
12
  const opts = merge({
@@ -24,10 +20,7 @@ export function uploadFile(_opts) {
24
20
  progress: (_files) => { },
25
21
  }, _opts);
26
22
  /**
27
- * 进度条回调
28
- *
29
- * @author lxm
30
- * @date 2022-11-20 21:11:47
23
+ * @description 进度条回调
31
24
  * @param {IParams} event
32
25
  * @param {IUploadFile[]} files
33
26
  */
@@ -38,11 +31,9 @@ export function uploadFile(_opts) {
38
31
  opts.progress(cloneDeep(files));
39
32
  };
40
33
  /**
41
- * 上传请求方法,返回响应对象
42
- *
43
- * @author lxm
44
- * @date 2022-11-18 13:11:57
34
+ * @description 上传请求方法,返回响应对象
45
35
  * @param {File[]} files
36
+ * @param {(_event: IParams) => void} _onProgress
46
37
  * @returns {*} {Promise<HttpResponse>}
47
38
  */
48
39
  const uploadRequest = async (files, _onProgress) => {
@@ -66,11 +57,8 @@ export function uploadFile(_opts) {
66
57
  throw new RuntimeError(ibiz.i18n.t('core.utils.multiApplicationMode'));
67
58
  };
68
59
  /**
69
- * 执行一次上传,可能是一个文件也可能是多个文件
70
- *
71
- * @author lxm
72
- * @date 2022-11-18 14:11:54
73
- * @param {File[]} files 此次上传文件的集合
60
+ * @description 执行一次上传,可能是一个文件也可能是多个文件
61
+ * @param {File[]} files
74
62
  * @returns {*} {Promise<IUploadFile[]>}
75
63
  */
76
64
  const executeSingleUpload = async (files) => {
@@ -121,11 +109,9 @@ export function uploadFile(_opts) {
121
109
  return resultFiles;
122
110
  };
123
111
  /**
124
- * 执行上传文件逻辑
125
- *
126
- * @author lxm
127
- * @date 2022-11-18 13:11:21
128
- * @param {files} File[] 文件集合
112
+ * @description 执行上传文件逻辑
113
+ * @param {File[]} files
114
+ * @returns {*} {Promise<void>}
129
115
  */
130
116
  const uploadFiles = async (files) => {
131
117
  const uploadSequence = opts.separate ? files.map(file => [file]) : [files];