@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
package/dist/index.esm.js CHANGED
@@ -358,22 +358,19 @@ function throttle(fn, wait) {
358
358
  var CommandsRegistry = class {
359
359
  constructor() {
360
360
  /**
361
- * 已经注册的所有指令
362
- *
363
- * @author chitanda
364
- * @date 2022-07-21 15:07:47
361
+ * @description 已经注册的所有指令
365
362
  * @private
363
+ * @memberof CommandsRegistry
366
364
  */
367
365
  this.commands = /* @__PURE__ */ new Map();
368
366
  }
369
367
  /**
370
- * 注册指令
371
- *
372
- * @author chitanda
373
- * @date 2022-06-27 13:06:31
374
- * @param {(string | ICommand)} idOrCommand
375
- * @param {ICommandHandler} [handler]
376
- * @return {*} {IDisposable}
368
+ * @description 注册指令
369
+ * @param {(string | ICommand)} idOrCommand 指令id或者指令对象
370
+ * @param {ICommandHandler} [handler] 指令处理器
371
+ * @param {ICommandOption} [opts] 指令配置参数
372
+ * @returns {*} {IDisposable} 返回一个可销毁对象,用于取消注册该指令
373
+ * @memberof CommandsRegistry
377
374
  */
378
375
  registerCommand(idOrCommand, handler, opts) {
379
376
  if (!idOrCommand) {
@@ -402,23 +399,19 @@ var CommandsRegistry = class {
402
399
  return ret;
403
400
  }
404
401
  /**
405
- * 指令是否已经注册
406
- *
407
- * @author chitanda
408
- * @date 2022-07-21 15:07:58
402
+ * @description 指令是否已经注册
409
403
  * @param {string} id
410
- * @return {*} {boolean}
404
+ * @returns {*} {boolean}
405
+ * @memberof CommandsRegistry
411
406
  */
412
407
  hasCommand(id) {
413
408
  return this.commands.has(id);
414
409
  }
415
410
  /**
416
- * 查找指令
417
- *
418
- * @author chitanda
419
- * @date 2022-07-21 16:07:12
411
+ * @description 查找指令
420
412
  * @param {string} id
421
- * @return {*} {(ICommand | undefined)}
413
+ * @returns {*} {(ICommand | undefined)}
414
+ * @memberof CommandsRegistry
422
415
  */
423
416
  getCommand(id) {
424
417
  const list = this.commands.get(id);
@@ -428,11 +421,9 @@ var CommandsRegistry = class {
428
421
  return list[Symbol.iterator]().next().value;
429
422
  }
430
423
  /**
431
- * 获取所有指令
432
- *
433
- * @author chitanda
434
- * @date 2022-07-21 16:07:20
435
- * @return {*} {ICommandsMap}
424
+ * @description 获取所有指令
425
+ * @returns {*} {ICommandsMap}
426
+ * @memberof CommandsRegistry
436
427
  */
437
428
  getCommands() {
438
429
  const result = /* @__PURE__ */ new Map();
@@ -446,12 +437,10 @@ var CommandsRegistry = class {
446
437
  return result;
447
438
  }
448
439
  /**
449
- * 获取指令配置参数
450
- *
451
- * @author chitanda
452
- * @date 2022-07-21 16:07:27
440
+ * @description 获取指令配置参数
453
441
  * @param {string} id
454
- * @return {*} {(ICommandOption | undefined)}
442
+ * @returns {*} {(ICommandOption | undefined)}
443
+ * @memberof CommandsRegistry
455
444
  */
456
445
  getCommandOpt(id) {
457
446
  const cmd = this.getCommand(id);
@@ -462,30 +451,31 @@ var CommandsRegistry = class {
462
451
  // src/command/command.ts
463
452
  var CommandController = class {
464
453
  constructor() {
454
+ /**
455
+ * @description 指令注册器
456
+ * @private
457
+ * @memberof CommandController
458
+ */
465
459
  this.commandRegister = new CommandsRegistry();
466
460
  }
467
461
  /**
468
- * 注册指令
469
- *
470
- * @author chitanda
471
- * @date 2022-06-28 19:06:45
472
- * @param {string} id
473
- * @param {ICommandHandler} handler
474
- * @param {ICommandOption} [opts]
475
- * @return {*} {IDisposable}
462
+ * @description 注册指令
463
+ * @param {string} id 指令id
464
+ * @param {ICommandHandler} handler 指令处理回调
465
+ * @param {ICommandOption} [opts] 指令参数
466
+ * @returns {*} {IDisposable} 指令释放对象
467
+ * @memberof CommandController
476
468
  */
477
469
  register(id, handler, opts) {
478
470
  return this.commandRegister.registerCommand(id, handler, opts);
479
471
  }
480
472
  /**
481
- * 执行指令
482
- *
483
- * @author chitanda
484
- * @date 2022-06-28 19:06:38
473
+ * @description 执行指令
485
474
  * @template T
486
- * @param {string} id
487
- * @param {...unknown[]} args
488
- * @return {*} {Promise<T>}
475
+ * @param {string} id 指令id
476
+ * @param {...unknown[]} args 指令参数
477
+ * @returns {*} {Promise<T>} 指令返回值
478
+ * @memberof CommandController
489
479
  */
490
480
  async execute(id, ...args) {
491
481
  const command = this.commandRegister.getCommand(id);
@@ -495,13 +485,11 @@ var CommandController = class {
495
485
  throw new Error(ibiz.i18n.t("core.command.unregisteredCommand", { id }));
496
486
  }
497
487
  /**
498
- * 判断指令是否存在,可直接抛出异常
499
- *
500
- * @author chitanda
501
- * @date 2022-06-28 19:06:11
502
- * @param {string} id
503
- * @param {boolean} [err]
504
- * @return {*} {boolean}
488
+ * @description 判断指令是否存在,没有则直接抛出异常
489
+ * @param {string} id 指令id
490
+ * @param {boolean} [err] 是否抛出异常
491
+ * @returns {*} {boolean} 是否存在
492
+ * @memberof CommandController
505
493
  */
506
494
  hasCommand(id, err) {
507
495
  const bol = !!this.commandRegister.hasCommand(id);
@@ -511,12 +499,10 @@ var CommandController = class {
511
499
  return bol;
512
500
  }
513
501
  /**
514
- * 获取指令配置参数
515
- *
516
- * @author chitanda
517
- * @date 2022-07-21 17:07:11
518
- * @param {string} id
519
- * @return {*} {(ICommandOption | undefined)}
502
+ * @description 获取指令参数
503
+ * @param {string} id 指令id
504
+ * @returns {*} {(ICommandOption | undefined)} 指令参数
505
+ * @memberof CommandController
520
506
  */
521
507
  getCommandOpts(id) {
522
508
  return this.commandRegister.getCommandOpt(id);
@@ -530,53 +516,46 @@ var commands = new CommandController();
530
516
  var CoreConst = class {
531
517
  };
532
518
  /**
533
- * 默认模型服务标识
534
- *
535
- * @author chitanda
536
- * @date 2024-01-18 16:01:25
519
+ * @description 默认模型服务标识
537
520
  * @static
521
+ * @memberof CoreConst
538
522
  */
539
523
  CoreConst.DEFAULT_MODEL_SERVICE_TAG = "default";
540
524
  /**
541
- * 访问令牌标识
542
- *
543
- * @author chitanda
544
- * @date 2022-07-20 15:07:28
525
+ * @description 访问令牌标识
545
526
  * @static
527
+ * @memberof CoreConst
546
528
  */
547
529
  CoreConst.TOKEN = "ibzuaa-token";
548
530
  /**
549
- * 刷新令牌标识
550
- *
551
- * @author chitanda
552
- * @date 2024-01-18 16:01:54
531
+ * @description 刷新令牌标识
553
532
  * @static
533
+ * @memberof CoreConst
554
534
  */
555
535
  CoreConst.REFRESH_TOKEN = "ibzuaa-refresh-token";
556
536
  /**
557
- * 访问令牌标识过期时间
558
- *
559
- * @author lxm
560
- * @date 2023-02-13 07:11:33
537
+ * @description 访问令牌标识过期时间
561
538
  * @static
562
539
  * @memberof CoreConst
563
540
  */
564
541
  CoreConst.TOKEN_EXPIRES = "ibzuaa-token-expires";
565
542
  /**
566
- * 认证信息是走记住我模式的 cookie 标识
567
- *
568
- * @author chitanda
569
- * @date 2023-12-13 15:12:28
543
+ * @description 认证信息是走记住我模式的 cookie 标识
570
544
  * @static
545
+ * @memberof CoreConst
571
546
  */
572
547
  CoreConst.TOKEN_REMEMBER = "ibizuaa-token-remember";
573
548
  /**
574
- * 是否是匿名用户登录的 cookie 标识
575
- * @author lxm
576
- * @date 2024-01-03 05:35:40
549
+ * @description 是否是匿名用户登录的 cookie 标识
577
550
  * @static
551
+ * @memberof CoreConst
578
552
  */
579
553
  CoreConst.IS_ANONYMOUS = "ibizuaa-is-anonymous";
554
+ /**
555
+ * @description 存储访问相关数据键的集合名称
556
+ * @static
557
+ */
558
+ CoreConst.ACCESS_STORE_AREA_KEYS = "ibizuaa-access-store-area-keys";
580
559
 
581
560
  // src/constant/util/util.ts
582
561
  var NOOP = () => {
@@ -3530,35 +3509,15 @@ var HttpStatusMessageConst = {
3530
3509
  504: "\u7F51\u5173\u8D85\u65F6\u3002"
3531
3510
  };
3532
3511
 
3533
- // src/constant/login-mode/login-mode.ts
3534
- var LoginMode = /* @__PURE__ */ ((LoginMode2) => {
3535
- LoginMode2["DEFAULT"] = "DEFAULT";
3536
- LoginMode2["CUSTOM"] = "CUSTOM";
3537
- LoginMode2["CAS"] = "CAS";
3538
- LoginMode2["OAUTH"] = "OAUTH";
3539
- return LoginMode2;
3540
- })(LoginMode || {});
3541
-
3542
- // src/constant/menu-permission-mode/menu-permission-mode.ts
3543
- var MenuPermissionMode = /* @__PURE__ */ ((MenuPermissionMode2) => {
3544
- MenuPermissionMode2["MIXIN"] = "MIXIN";
3545
- MenuPermissionMode2["RESOURCE"] = "RESOURCE";
3546
- MenuPermissionMode2["RT"] = "RT";
3547
- return MenuPermissionMode2;
3548
- })(MenuPermissionMode || {});
3549
-
3550
3512
  // src/context/index.ts
3551
3513
  import { clone } from "ramda";
3552
3514
  var IBizContext = class _IBizContext {
3553
3515
  /**
3554
3516
  * Creates an instance of IBizContext.
3555
- *
3556
- * @author chitanda
3557
- * @date 2022-07-14 10:07:15
3558
3517
  * @param {IData} [context={}] 自身的上下文
3559
- * @param {IContext} [parent]
3518
+ * @param {IContext} [parent] 父的上下文源对象
3519
+ * @memberof IBizContext
3560
3520
  */
3561
- // eslint-disable-next-line default-param-last
3562
3521
  constructor(context = {}, parent) {
3563
3522
  Object.defineProperty(this, "_associationContext", {
3564
3523
  enumerable: false,
@@ -3570,6 +3529,12 @@ var IBizContext = class _IBizContext {
3570
3529
  }
3571
3530
  Object.assign(this, context);
3572
3531
  }
3532
+ /**
3533
+ * @description 初始化上下文,并关联父上下文
3534
+ * @private
3535
+ * @param {IContext} parent
3536
+ * @memberof IBizContext
3537
+ */
3573
3538
  initWithParent(parent) {
3574
3539
  const self = this;
3575
3540
  Object.defineProperty(this, "_parent", {
@@ -3612,11 +3577,9 @@ var IBizContext = class _IBizContext {
3612
3577
  Object.defineProperties(this, properties);
3613
3578
  }
3614
3579
  /**
3615
- * 返回自身的上下文,独有的和与父有差异的。
3616
- *
3617
- * @author lxm
3618
- * @date 2022-12-08 17:12:26
3580
+ * @description 返回自身独有的上下文,和父有差异的
3619
3581
  * @returns {*} {IData}
3582
+ * @memberof IBizContext
3620
3583
  */
3621
3584
  getOwnContext() {
3622
3585
  const result = {};
@@ -3628,10 +3591,8 @@ var IBizContext = class _IBizContext {
3628
3591
  return result;
3629
3592
  }
3630
3593
  /**
3631
- * 销毁当前上下文对象
3632
- *
3633
- * @author chitanda
3634
- * @date 2023-03-13 15:03:04
3594
+ * @description 销毁当前上下文对象
3595
+ * @memberof IBizContext
3635
3596
  */
3636
3597
  destroy() {
3637
3598
  this._parent = void 0;
@@ -3641,11 +3602,9 @@ var IBizContext = class _IBizContext {
3641
3602
  });
3642
3603
  }
3643
3604
  /**
3644
- * 在非视图中,需要断开视图上下文联系时。只能使用 clone 创建新的局部上下文
3645
- *
3646
- * @author chitanda
3647
- * @date 2023-03-13 16:03:13
3648
- * @return {*} {IBizContext}
3605
+ * @description 在非视图中,需要断开视图上下文联系时。只能使用 clone 创建新的局部上下文
3606
+ * @returns {*} {IBizContext}
3607
+ * @memberof IBizContext
3649
3608
  */
3650
3609
  clone() {
3651
3610
  const newContext = new _IBizContext(
@@ -3657,7 +3616,7 @@ var IBizContext = class _IBizContext {
3657
3616
  }
3658
3617
  /**
3659
3618
  * @description 深度克隆,只返回现有数据
3660
- * @return {*} {IData}
3619
+ * @returns {*} {IData}
3661
3620
  * @memberof IBizContext
3662
3621
  */
3663
3622
  deepClone() {
@@ -3668,14 +3627,11 @@ var IBizContext = class _IBizContext {
3668
3627
  return result;
3669
3628
  }
3670
3629
  /**
3671
- * 在不改变对象引用的情况下,重置上下文
3672
- * 等效于重新实例化,但是引用不变
3673
- * @author lxm
3674
- * @date 2023-05-24 10:30:40
3630
+ * @description 在不改变对象引用的情况下,重置上下文,等效于重新实例化,但是引用不变
3675
3631
  * @param {IData} [context={}]
3676
3632
  * @param {IContext} [parent]
3633
+ * @memberof IBizContext
3677
3634
  */
3678
- // eslint-disable-next-line default-param-last
3679
3635
  reset(context = {}, parent) {
3680
3636
  this._associationContext.forEach((item) => {
3681
3637
  item.destroy();
@@ -3696,14 +3652,12 @@ var IBizContext = class _IBizContext {
3696
3652
  Object.assign(this, context);
3697
3653
  }
3698
3654
  /**
3699
- * 上下文只有在视图初始化时,调用 create 方法
3700
- *
3701
- * @author chitanda
3702
- * @date 2023-03-13 16:03:32
3655
+ * @description 上下文只有在视图初始化时,调用 create 方法
3703
3656
  * @static
3704
3657
  * @param {IData} [context]
3705
3658
  * @param {IContext} [parent]
3706
- * @return {*} {IContext}
3659
+ * @returns {*} {IBizContext}
3660
+ * @memberof IBizContext
3707
3661
  */
3708
3662
  static create(context, parent) {
3709
3663
  return new _IBizContext(context, parent);
@@ -3712,6 +3666,12 @@ var IBizContext = class _IBizContext {
3712
3666
 
3713
3667
  // src/params/params.ts
3714
3668
  var IBizParams = class {
3669
+ /**
3670
+ * Creates an instance of IBizParams.
3671
+ * @param {IParams} [params] 自身的参数
3672
+ * @param {IParams} [parent] 父视图参数
3673
+ * @memberof IBizParams
3674
+ */
3715
3675
  constructor(params, parent) {
3716
3676
  Object.defineProperty(this, "_parent", {
3717
3677
  enumerable: false,
@@ -3728,12 +3688,10 @@ var IBizParams = class {
3728
3688
  return this.createProxy();
3729
3689
  }
3730
3690
  /**
3731
- * 创建代理
3732
- *
3733
- * @author lxm
3734
- * @date 2023-10-27 03:53:14
3691
+ * @description 创建代理对象
3735
3692
  * @protected
3736
- * @return {*} {IBizParams}
3693
+ * @returns {*} {IBizParams}
3694
+ * @memberof IBizParams
3737
3695
  */
3738
3696
  createProxy() {
3739
3697
  function updateKeyDefine2(target, keys) {
@@ -3781,22 +3739,18 @@ var IBizParams = class {
3781
3739
  });
3782
3740
  }
3783
3741
  /**
3784
- * 在不改变对象引用的情况下,重置视图参数
3785
- * 等效于重新实例化,但是引用不变
3786
- * @author lxm
3787
- * @date 2023-10-27 05:24:45
3788
- * @param {IParams} [params]
3789
- * @param {IParams} [parent]
3742
+ * @description 在不改变对象引用的情况下,重置视图参数,等效于重新实例化,但是引用不变
3743
+ * @param {IParams} [params] 视图参数
3744
+ * @param {IParams} [parent] 父视图参数
3745
+ * @memberof IBizParams
3790
3746
  */
3791
3747
  reset(params, parent) {
3792
3748
  this._params = params || {};
3793
3749
  this._parent = parent;
3794
3750
  }
3795
3751
  /**
3796
- * 销毁上下文,避免内存泄漏
3797
- *
3798
- * @author lxm
3799
- * @date 2023-10-27 03:57:44
3752
+ * @description 销毁视图参数,避免内存泄漏
3753
+ * @memberof IBizParams
3800
3754
  */
3801
3755
  destroy() {
3802
3756
  this._params = {};
@@ -3804,6 +3758,23 @@ var IBizParams = class {
3804
3758
  }
3805
3759
  };
3806
3760
 
3761
+ // src/interface/api/constant/login-mode/login-mode.ts
3762
+ var LoginMode = /* @__PURE__ */ ((LoginMode2) => {
3763
+ LoginMode2["DEFAULT"] = "DEFAULT";
3764
+ LoginMode2["CUSTOM"] = "CUSTOM";
3765
+ LoginMode2["CAS"] = "CAS";
3766
+ LoginMode2["OAUTH"] = "OAUTH";
3767
+ return LoginMode2;
3768
+ })(LoginMode || {});
3769
+
3770
+ // src/interface/api/constant/menu-permission-mode/menu-permission-mode.ts
3771
+ var MenuPermissionMode = /* @__PURE__ */ ((MenuPermissionMode2) => {
3772
+ MenuPermissionMode2["MIXIN"] = "MIXIN";
3773
+ MenuPermissionMode2["RESOURCE"] = "RESOURCE";
3774
+ MenuPermissionMode2["RT"] = "RT";
3775
+ return MenuPermissionMode2;
3776
+ })(MenuPermissionMode || {});
3777
+
3807
3778
  // src/environment/environment.ts
3808
3779
  var Environment = {
3809
3780
  dev: false,
@@ -3814,6 +3785,7 @@ var Environment = {
3814
3785
  anonymousUser: "",
3815
3786
  anonymousPwd: "",
3816
3787
  enableAnonymous: false,
3788
+ accessStoreArea: "COOKIE",
3817
3789
  logLevel: "ERROR",
3818
3790
  baseUrl: "/api",
3819
3791
  appId: "",
@@ -3848,11 +3820,16 @@ var Environment = {
3848
3820
  appLoadingTheme: "DEFAULT",
3849
3821
  environmentTag: "development",
3850
3822
  mobMenuShowMode: "DEFAULT",
3823
+ appVersion: "",
3851
3824
  devtoolConfig: {
3852
3825
  studioBaseUrl: "https://open.ibizlab.cn/modeldesign/#/",
3853
- v9Mode: false
3826
+ v9Mode: false,
3827
+ defaultMode: "close"
3854
3828
  },
3855
- enableAI: true
3829
+ enableAI: true,
3830
+ aMapSecurityJsCode: "",
3831
+ aMapKey: "",
3832
+ runContainer: "FULLCODE"
3856
3833
  };
3857
3834
 
3858
3835
  // src/error/http-error/http-error.ts
@@ -3894,11 +3871,9 @@ var HttpError = class extends Error {
3894
3871
  var ModelError = class extends Error {
3895
3872
  /**
3896
3873
  * Creates an instance of ModelError.
3897
- *
3898
- * @author chitanda
3899
- * @date 2022-08-30 16:08:38
3900
- * @param {IModelObject} model 模板未支持的模型
3901
- * @param {string} [msg]
3874
+ * @param {IData} model 模板未支持的模型
3875
+ * @param {string} [msg] 错误信息
3876
+ * @memberof ModelError
3902
3877
  */
3903
3878
  constructor(model, msg) {
3904
3879
  super(
@@ -3924,12 +3899,10 @@ var RuntimeError = class extends Error {
3924
3899
  // src/error/runtime-model-error/runtime-model-error.ts
3925
3900
  var RuntimeModelError = class extends Error {
3926
3901
  /**
3927
- * Creates an instance of DefectModelError.
3928
- *
3929
- * @author chitanda
3930
- * @date 2022-08-30 16:08:58
3931
- * @param {IModelObject} model 丢失配置的模型
3902
+ * Creates an instance of RuntimeModelError.
3903
+ * @param {IData} model 丢失配置的模型
3932
3904
  * @param {string} [msg] 缺失配置描述
3905
+ * @memberof RuntimeModelError
3933
3906
  */
3934
3907
  constructor(model, msg) {
3935
3908
  super(
@@ -3995,27 +3968,74 @@ import { debounce as debounce2 } from "lodash-es";
3995
3968
  import { isNotNil, isNil } from "ramda";
3996
3969
 
3997
3970
  // src/utils/cookie-util/cookie-util.ts
3971
+ function getAccessStoreAreakeys() {
3972
+ try {
3973
+ const key = CoreConst.ACCESS_STORE_AREA_KEYS;
3974
+ let cookieAlls;
3975
+ switch (ibiz.env.accessStoreArea) {
3976
+ case "LOCALSTORAGE":
3977
+ cookieAlls = localStorage.getItem(key);
3978
+ break;
3979
+ case "SESSIONSTORAGE":
3980
+ cookieAlls = sessionStorage.getItem(key);
3981
+ break;
3982
+ default:
3983
+ break;
3984
+ }
3985
+ return JSON.parse(cookieAlls || "[]");
3986
+ } catch (error) {
3987
+ ibiz.log.error(error);
3988
+ return [];
3989
+ }
3990
+ }
3991
+ function setAccessStoreAreakeys(name) {
3992
+ try {
3993
+ const cookieAlls = [
3994
+ ...new Set(getAccessStoreAreakeys().concat([name]))
3995
+ ];
3996
+ const key = CoreConst.ACCESS_STORE_AREA_KEYS;
3997
+ switch (ibiz.env.accessStoreArea) {
3998
+ case "LOCALSTORAGE":
3999
+ return localStorage.setItem(key, JSON.stringify(cookieAlls));
4000
+ case "SESSIONSTORAGE":
4001
+ return sessionStorage.setItem(key, JSON.stringify(cookieAlls));
4002
+ default:
4003
+ break;
4004
+ }
4005
+ } catch (error) {
4006
+ ibiz.log.error(error);
4007
+ }
4008
+ }
3998
4009
  function setCookie(name, value, day = 0, isDomain = false, path = "/", childDoMain = "") {
3999
4010
  let domain = "";
4000
- if (isDomain) {
4001
- const regExpr = /^(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)$/;
4002
- if (!regExpr.test(window.location.hostname)) {
4003
- const host = window.location.hostname;
4004
- if (host.indexOf(".") !== host.lastIndexOf(".")) {
4005
- domain = ";domain=".concat(host.substring(host.indexOf("."), host.length));
4011
+ setAccessStoreAreakeys(name);
4012
+ switch (ibiz.env.accessStoreArea) {
4013
+ case "LOCALSTORAGE":
4014
+ return localStorage.setItem(name, value);
4015
+ case "SESSIONSTORAGE":
4016
+ return sessionStorage.setItem(name, value);
4017
+ default:
4018
+ if (isDomain) {
4019
+ const regExpr = /^(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)$/;
4020
+ if (!regExpr.test(window.location.hostname)) {
4021
+ const host = window.location.hostname;
4022
+ if (host.indexOf(".") !== host.lastIndexOf(".")) {
4023
+ domain = ";domain=".concat(host.substring(host.indexOf("."), host.length));
4024
+ }
4025
+ }
4026
+ } else if (childDoMain) {
4027
+ domain = ";domain=".concat(childDoMain);
4006
4028
  }
4007
- }
4008
- } else if (childDoMain) {
4009
- domain = ";domain=".concat(childDoMain);
4010
- }
4011
- if (day !== 0) {
4012
- const expires = day * 24 * 60 * 60 * 1e3;
4013
- const date = new Date((/* @__PURE__ */ new Date()).getTime() + expires);
4014
- document.cookie = "".concat(name, "=").concat(escape(
4015
- value
4016
- ), ";path=").concat(path, ";expires=").concat(date.toUTCString()).concat(domain);
4017
- } else {
4018
- document.cookie = "".concat(name, "=").concat(escape(value), ";path=").concat(path).concat(domain);
4029
+ if (day !== 0) {
4030
+ const expires = day * 24 * 60 * 60 * 1e3;
4031
+ const date = new Date((/* @__PURE__ */ new Date()).getTime() + expires);
4032
+ document.cookie = "".concat(name, "=").concat(escape(
4033
+ value
4034
+ ), ";path=").concat(path, ";expires=").concat(date.toUTCString()).concat(domain);
4035
+ } else {
4036
+ document.cookie = "".concat(name, "=").concat(escape(value), ";path=").concat(path).concat(domain);
4037
+ }
4038
+ break;
4019
4039
  }
4020
4040
  }
4021
4041
  function setAppCookie(name, value, day = 0) {
@@ -4035,16 +4055,40 @@ function clearAppCookie(cookieName) {
4035
4055
  function getAppCookie(name) {
4036
4056
  const reg = new RegExp("(^| )".concat(name, "=([^;]*)(;|$)"));
4037
4057
  const arr = document.cookie.match(reg);
4038
- if (arr && arr.length > 1) {
4039
- return unescape(arr[2]);
4058
+ switch (ibiz.env.accessStoreArea) {
4059
+ case "LOCALSTORAGE":
4060
+ return localStorage.getItem(name);
4061
+ case "SESSIONSTORAGE":
4062
+ return sessionStorage.getItem(name);
4063
+ default:
4064
+ if (arr && arr.length > 1) {
4065
+ return unescape(arr[2]);
4066
+ }
4067
+ return null;
4040
4068
  }
4041
- return null;
4042
4069
  }
4043
4070
  function resetAppCookie() {
4044
4071
  const cookies = document.cookie.split(";");
4045
- for (const cookie of cookies) {
4046
- const [cookieName, cookieValue] = cookie.split("=");
4047
- document.cookie = "".concat(cookieName, "=").concat(cookieValue, ";expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;domain=").concat(window.location.host);
4072
+ const cookieAlls = getAccessStoreAreakeys().concat([
4073
+ CoreConst.ACCESS_STORE_AREA_KEYS
4074
+ ]);
4075
+ switch (ibiz.env.accessStoreArea) {
4076
+ case "LOCALSTORAGE":
4077
+ for (const name of cookieAlls) {
4078
+ localStorage.removeItem(name);
4079
+ }
4080
+ break;
4081
+ case "SESSIONSTORAGE":
4082
+ for (const name of cookieAlls) {
4083
+ sessionStorage.removeItem(name);
4084
+ }
4085
+ break;
4086
+ default:
4087
+ for (const cookie of cookies) {
4088
+ const [cookieName, cookieValue] = cookie.split("=");
4089
+ document.cookie = "".concat(cookieName, "=").concat(cookieValue, ";expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;domain=").concat(window.location.host);
4090
+ }
4091
+ break;
4048
4092
  }
4049
4093
  }
4050
4094
 
@@ -4261,57 +4305,49 @@ function getRandomInt(min = 0, max = 1e3) {
4261
4305
  // src/utils/interceptor/interceptor.ts
4262
4306
  var Interceptor = class {
4263
4307
  /**
4264
- * 请求之前处理
4265
- *
4266
- * @author lxm
4267
- * @date 2022-10-27 17:10:41
4308
+ * @description 请求之前处理
4268
4309
  * @protected
4269
4310
  * @param {InternalAxiosRequestConfig} config
4270
4311
  * @returns {*} {Promise<InternalAxiosRequestConfig>}
4312
+ * @memberof Interceptor
4271
4313
  */
4272
4314
  async onBeforeRequest(config) {
4273
4315
  return config;
4274
4316
  }
4275
4317
  /**
4276
- * 请求失败之后处理
4277
- *
4278
- * @author lxm
4279
- * @date 2022-10-27 17:10:40
4318
+ * @description 请求失败之后处理
4280
4319
  * @protected
4281
- * @param {*} error
4320
+ * @param {Error} error
4321
+ * @returns {*} {Promise<never>}
4322
+ * @memberof Interceptor
4282
4323
  */
4283
4324
  onRequestError(error) {
4284
4325
  return Promise.reject(error);
4285
4326
  }
4286
4327
  /**
4287
- * 响应成功之后处理
4288
- *
4289
- * @author lxm
4290
- * @date 2022-10-27 17:10:38
4328
+ * @description 响应成功之后处理
4291
4329
  * @protected
4292
4330
  * @param {AxiosResponse} config
4293
- * @returns {*} {Promise<AxiosRequestConfig>}
4331
+ * @returns {*} {Promise<AxiosResponse>}
4332
+ * @memberof Interceptor
4294
4333
  */
4295
4334
  async onResponseSuccess(config) {
4296
4335
  return config;
4297
4336
  }
4298
4337
  /**
4299
- * 响应失败之后处理
4300
- *
4301
- * @author lxm
4302
- * @date 2022-10-27 17:10:37
4338
+ * @description 响应失败之后处理
4303
4339
  * @protected
4304
- * @param {*} _error
4340
+ * @param {Error} error
4341
+ * @returns {*} {Promise<never>}
4342
+ * @memberof Interceptor
4305
4343
  */
4306
4344
  onResponseError(error) {
4307
4345
  return Promise.reject(error);
4308
4346
  }
4309
4347
  /**
4310
- * 使用拦截器
4311
- *
4312
- * @author lxm
4313
- * @date 2022-10-27 17:10:28
4348
+ * @description 使用拦截器
4314
4349
  * @param {AxiosInstance} instance
4350
+ * @memberof Interceptor
4315
4351
  */
4316
4352
  use(instance) {
4317
4353
  this.instance = instance;
@@ -4329,11 +4365,9 @@ var Interceptor = class {
4329
4365
  );
4330
4366
  }
4331
4367
  /**
4332
- * 移出拦截器
4333
- *
4334
- * @author lxm
4335
- * @date 2022-10-27 17:10:27
4368
+ * @description 移出拦截器
4336
4369
  * @param {AxiosInstance} instance
4370
+ * @memberof Interceptor
4337
4371
  */
4338
4372
  eject(instance) {
4339
4373
  if (this.requestTag) {
@@ -4347,6 +4381,13 @@ var Interceptor = class {
4347
4381
 
4348
4382
  // src/utils/interceptor/core-interceptor.ts
4349
4383
  var CoreInterceptor = class extends Interceptor {
4384
+ /**
4385
+ * @description 请求之前处理
4386
+ * @protected
4387
+ * @param {InternalAxiosRequestConfig} config
4388
+ * @returns {*} {Promise<InternalAxiosRequestConfig>}
4389
+ * @memberof CoreInterceptor
4390
+ */
4350
4391
  async onBeforeRequest(config) {
4351
4392
  config = await super.onBeforeRequest(config);
4352
4393
  const { headers } = config;
@@ -4371,13 +4412,11 @@ var CoreInterceptor = class extends Interceptor {
4371
4412
  return config;
4372
4413
  }
4373
4414
  /**
4374
- * 响应失败之后处理
4375
- *
4376
- * @author tony001
4377
- * @date 2025-03-24 14:03:23
4415
+ * @description 响应失败之后处理
4378
4416
  * @protected
4379
4417
  * @param {Error} error
4380
- * @return {*} {Promise<never>}
4418
+ * @returns {*} {Promise<never>}
4419
+ * @memberof CoreInterceptor
4381
4420
  */
4382
4421
  async onResponseError(error) {
4383
4422
  const { config, response } = error;
@@ -4385,8 +4424,23 @@ var CoreInterceptor = class extends Interceptor {
4385
4424
  (config.url.indexOf("/uaa/getbydcsystem/") === -1 || config.url.indexOf("/appdata") !== -1 || config.url.indexOf("/uaa/refresh_token/") !== -1)) {
4386
4425
  try {
4387
4426
  config._retry = true;
4388
- await ibiz.auth.refreshToken();
4389
- const res = await ibiz.net.get("/appdata");
4427
+ if (ibiz.env.enableAnonymous) {
4428
+ const authInfo = ibiz.auth.getAuthInfo();
4429
+ const refreshToken = getAppCookie(CoreConst.REFRESH_TOKEN);
4430
+ if (authInfo.isAnonymous || !refreshToken) {
4431
+ const tempOrgData = ibiz.orgData;
4432
+ await ibiz.auth.anonymousLogin();
4433
+ ibiz.orgData = tempOrgData;
4434
+ } else {
4435
+ await ibiz.auth.refreshToken();
4436
+ }
4437
+ } else {
4438
+ await ibiz.auth.refreshToken();
4439
+ }
4440
+ const res = await ibiz.net.get(
4441
+ "/appdata",
4442
+ ibiz.appUtil.getAppContext()
4443
+ );
4390
4444
  if (res && res.ok) {
4391
4445
  ibiz.appData = res.data;
4392
4446
  }
@@ -4421,24 +4475,25 @@ var CoreInterceptor = class extends Interceptor {
4421
4475
  // src/utils/message-center/base/message-base.ts
4422
4476
  import { QXEvent } from "qx-util";
4423
4477
  var MessageBase = class {
4478
+ /**
4479
+ * Creates an instance of MessageBase.
4480
+ * @param {MessageBase} [parent]
4481
+ * @memberof MessageBase
4482
+ */
4424
4483
  constructor(parent) {
4425
4484
  this.parent = parent;
4426
4485
  /**
4427
- * 事件
4428
- *
4429
- * @author chitanda
4430
- * @date 2023-09-05 16:09:58
4486
+ * @description 事件对象
4431
4487
  * @protected
4432
- * @type {QXEvent<MessageCenterEvent>}
4488
+ * @type {QXEvent<IMessageCenterEvent>}
4489
+ * @memberof MessageBase
4433
4490
  */
4434
4491
  this.evt = new QXEvent(1e3);
4435
4492
  }
4436
4493
  /**
4437
- * 推送标准结构消息
4438
- *
4439
- * @author chitanda
4440
- * @date 2023-09-05 16:09:40
4494
+ * @description 推送标准结构消息
4441
4495
  * @param {IPortalMessage} msg
4496
+ * @memberof MessageBase
4442
4497
  */
4443
4498
  next(msg) {
4444
4499
  this.evt.emit("all", msg);
@@ -4447,12 +4502,10 @@ var MessageBase = class {
4447
4502
  }
4448
4503
  }
4449
4504
  /**
4450
- * 私有方法,专门向父级推送消息
4451
- *
4452
- * @author chitanda
4453
- * @date 2023-09-05 17:09:08
4505
+ * @description 向父级推送消息(私有方法)
4454
4506
  * @protected
4455
4507
  * @param {IPortalMessage} msg
4508
+ * @memberof MessageBase
4456
4509
  */
4457
4510
  nextParent(msg) {
4458
4511
  if (this.parent) {
@@ -4461,21 +4514,17 @@ var MessageBase = class {
4461
4514
  }
4462
4515
  }
4463
4516
  /**
4464
- * 订阅消息
4465
- *
4466
- * @author chitanda
4467
- * @date 2023-09-05 15:09:21
4468
- * @param {(msg: IPortalMessage) => void} evt
4517
+ * @description 订阅消息
4518
+ * @param {(msg: IPortalMessage) => void} cb
4519
+ * @memberof MessageBase
4469
4520
  */
4470
4521
  on(cb) {
4471
4522
  this.evt.on("all", cb);
4472
4523
  }
4473
4524
  /**
4474
- * 取消订阅
4475
- *
4476
- * @author chitanda
4477
- * @date 2023-09-05 15:09:50
4525
+ * @description 取消订阅消息
4478
4526
  * @param {(msg: IPortalMessage) => void} cb
4527
+ * @memberof MessageBase
4479
4528
  */
4480
4529
  off(cb) {
4481
4530
  this.evt.off("all", cb);
@@ -4493,14 +4542,11 @@ import { createUUID as createUUID2 } from "qx-util";
4493
4542
  import { createUUID } from "qx-util";
4494
4543
  var CommandBase = class extends MessageBase {
4495
4544
  /**
4496
- * 发送指令消息
4497
- *
4498
- * @author tony001
4499
- * @date 2024-03-26 20:03:38
4500
- * @protected
4501
- * @param {IData} data 数据
4502
- * @param {IPortalMessage['subtype']} subtype 子类型 数据更新 | 数据删除 | 数据创建
4503
- * @param {string} [triggerKey] 触发源
4545
+ * @description 发送指令消息
4546
+ * @param {IData} data
4547
+ * @param {IPortalMessage['subtype']} subtype
4548
+ * @param {string} [triggerKey]
4549
+ * @memberof CommandBase
4504
4550
  */
4505
4551
  sendCommand(data, subtype, triggerKey) {
4506
4552
  const msg = {
@@ -4518,12 +4564,10 @@ var CommandBase = class extends MessageBase {
4518
4564
  // src/utils/message-center/command/create/command-create.ts
4519
4565
  var CommandCreate = class extends CommandBase {
4520
4566
  /**
4521
- * 发送新建数据
4522
- *
4523
- * @author tony001
4524
- * @date 2024-03-26 20:03:30
4525
- * @param {IAppDataEntity} data 实体数据
4526
- * @param {IMsgMetaData} meta 元数据
4567
+ * @description 发送消息
4568
+ * @param {IAppDataEntity} data
4569
+ * @param {IMsgMetaData} [meta]
4570
+ * @memberof CommandCreate
4527
4571
  */
4528
4572
  send(data, meta) {
4529
4573
  this.sendCommand(data, "OBJECTCREATED", meta == null ? void 0 : meta.triggerKey);
@@ -4533,12 +4577,10 @@ var CommandCreate = class extends CommandBase {
4533
4577
  // src/utils/message-center/command/update/command-update.ts
4534
4578
  var CommandUpdate = class extends CommandBase {
4535
4579
  /**
4536
- * 发送更新的数据
4537
- *
4538
- * @author tony001
4539
- * @date 2024-03-26 20:03:28
4580
+ * @description 发送消息
4540
4581
  * @param {IAppDataEntity} data 实体数据
4541
- * @param {IMsgMetaData} meta 元数据
4582
+ * @param {IMsgMetaData} [meta] 元数据
4583
+ * @memberof CommandUpdate
4542
4584
  */
4543
4585
  send(data, meta) {
4544
4586
  this.sendCommand(data, "OBJECTUPDATED", meta == null ? void 0 : meta.triggerKey);
@@ -4548,12 +4590,10 @@ var CommandUpdate = class extends CommandBase {
4548
4590
  // src/utils/message-center/command/remove/command-remove.ts
4549
4591
  var CommandRemove = class extends CommandBase {
4550
4592
  /**
4551
- * 发送删除的数据
4552
- *
4553
- * @author tony001
4554
- * @date 2024-03-26 20:03:05
4593
+ * @description 发送消息
4555
4594
  * @param {IAppDataEntity} data 实体数据
4556
- * @param {IMsgMetaData} meta 元数据
4595
+ * @param {IMsgMetaData} [meta] 元数据
4596
+ * @memberof CommandRemove
4557
4597
  */
4558
4598
  send(data, meta) {
4559
4599
  this.sendCommand(data, "OBJECTREMOVED", meta == null ? void 0 : meta.triggerKey);
@@ -4567,11 +4607,9 @@ var CommandChange = class extends CommandBase {
4567
4607
  // src/utils/message-center/command/async-action/command-async-action.ts
4568
4608
  var CommandAsyncAction = class extends CommandBase {
4569
4609
  /**
4570
- * 发送 异步作业 指令消息
4571
- *
4572
- * @author chitanda
4573
- * @date 2023-10-23 17:10:46
4610
+ * @description 发送消息
4574
4611
  * @param {IPortalAsyncAction} data
4612
+ * @memberof CommandAsyncAction
4575
4613
  */
4576
4614
  send(data) {
4577
4615
  this.sendCommand(data, "ASYNCACTION");
@@ -4581,11 +4619,9 @@ var CommandAsyncAction = class extends CommandBase {
4581
4619
  // src/utils/message-center/command/internal-message/command-internal-message.ts
4582
4620
  var CommandInternalMessage = class extends CommandBase {
4583
4621
  /**
4584
- * 发送 站内信 指令消息
4585
- *
4586
- * @author chitanda
4587
- * @date 2023-10-23 17:10:46
4588
- * @param {IPortalInternalMessage} data
4622
+ * @description 发送消息
4623
+ * @param {IInternalMessage} data
4624
+ * @memberof CommandInternalMessage
4589
4625
  */
4590
4626
  send(data) {
4591
4627
  this.sendCommand(data, "INTERNALMESSAGE");
@@ -4595,11 +4631,9 @@ var CommandInternalMessage = class extends CommandBase {
4595
4631
  // src/utils/message-center/command/mark-open-data/command-mark-open-data.ts
4596
4632
  var CommandMarkOpenData = class extends CommandBase {
4597
4633
  /**
4598
- * 发送 站内信 指令消息
4599
- *
4600
- * @author lxm
4601
- * @date 2024-02-01 03:42:40
4634
+ * @description 发送消息
4602
4635
  * @param {IMarkOpenData} data
4636
+ * @memberof CommandMarkOpenData
4603
4637
  */
4604
4638
  send(data) {
4605
4639
  this.sendCommand(data, "MARKOPENDATA");
@@ -4609,8 +4643,7 @@ var CommandMarkOpenData = class extends CommandBase {
4609
4643
  // src/utils/message-center/command/add-in-changed/command-add-in-changed.ts
4610
4644
  var CommandAddInChanged = class extends CommandBase {
4611
4645
  /**
4612
- * 发送 添加变更 指令消息
4613
- *
4646
+ * @description 发送消息
4614
4647
  * @param {IAddInChanged} data
4615
4648
  * @memberof CommandAddInChanged
4616
4649
  */
@@ -4624,76 +4657,60 @@ var MessageCommand = class extends MessageBase {
4624
4657
  constructor() {
4625
4658
  super(...arguments);
4626
4659
  /**
4627
- * 数据变更指令消息
4628
- *
4629
- * @author chitanda
4630
- * @date 2023-09-05 17:09:15
4660
+ * @description 数据变更指令消息控制器
4631
4661
  * @type {CommandChange}
4662
+ * @memberof MessageCommand
4632
4663
  */
4633
4664
  this.change = new CommandChange();
4634
4665
  /**
4635
- * 新建消息
4636
- *
4637
- * @author chitanda
4638
- * @date 2023-09-05 17:09:55
4666
+ * @description 新建数据指令消息控制器
4639
4667
  * @type {CommandCreate}
4668
+ * @memberof MessageCommand
4640
4669
  */
4641
4670
  this.create = new CommandCreate(this);
4642
4671
  /**
4643
- * 更新消息
4644
- *
4645
- * @author chitanda
4646
- * @date 2023-09-05 17:09:01
4672
+ * @description 更新数据指令消息控制器
4647
4673
  * @type {CommandUpdate}
4674
+ * @memberof MessageCommand
4648
4675
  */
4649
4676
  this.update = new CommandUpdate(this);
4650
4677
  /**
4651
- * 删除消息
4652
- *
4653
- * @author chitanda
4654
- * @date 2023-09-05 17:09:05
4678
+ * @description 删除数据指令消息控制器
4655
4679
  * @type {CommandRemove}
4680
+ * @memberof MessageCommand
4656
4681
  */
4657
4682
  this.remove = new CommandRemove(this);
4658
4683
  /**
4659
- * 异步作业指令消息
4660
- *
4661
- * @author chitanda
4662
- * @date 2023-10-23 17:10:56
4684
+ * @description 异步指令消息控制器
4663
4685
  * @type {CommandAsyncAction}
4686
+ * @memberof MessageCommand
4664
4687
  */
4665
4688
  this.asyncAction = new CommandAsyncAction(this);
4666
4689
  /**
4667
- * 站内信 指令消息
4668
- *
4669
- * @author chitanda
4670
- * @date 2023-10-23 17:10:56
4690
+ * @description 站内信消息指令消息控制器
4671
4691
  * @type {CommandInternalMessage}
4692
+ * @memberof MessageCommand
4672
4693
  */
4673
4694
  this.internalMessage = new CommandInternalMessage(
4674
4695
  this
4675
4696
  );
4676
4697
  /**
4677
- * 标记数据指令消息
4678
- *
4698
+ * @description 协同指令消息控制器
4679
4699
  * @type {CommandMarkOpenData}
4680
4700
  * @memberof MessageCommand
4681
4701
  */
4682
4702
  this.markOpenData = new CommandMarkOpenData(this);
4683
4703
  /**
4684
- * 添加变更指令消息
4685
- *
4704
+ * @description 添加变更指令消息控制器
4686
4705
  * @type {CommandAddInChanged}
4687
4706
  * @memberof MessageCommand
4688
4707
  */
4689
4708
  this.addInChanged = new CommandAddInChanged(this);
4690
4709
  }
4691
4710
  /**
4692
- * 推送指令消息
4693
- *
4694
- * @author chitanda
4695
- * @date 2023-09-05 17:09:50
4711
+ * @description 推送指令消息
4696
4712
  * @param {IPortalMessage} msg
4713
+ * @memberof MessageCommand
4697
4714
  */
4698
4715
  next(msg) {
4699
4716
  switch (msg.subtype) {
@@ -4725,6 +4742,12 @@ var MessageCommand = class extends MessageBase {
4725
4742
  super.next(msg);
4726
4743
  }
4727
4744
  }
4745
+ /**
4746
+ * @description 发送消息给父级
4747
+ * @protected
4748
+ * @param {IPortalMessage} msg
4749
+ * @memberof MessageCommand
4750
+ */
4728
4751
  nextParent(msg) {
4729
4752
  switch (msg.subtype) {
4730
4753
  case "OBJECTCREATED":
@@ -4741,13 +4764,11 @@ var MessageCommand = class extends MessageBase {
4741
4764
  super.nextParent(msg);
4742
4765
  }
4743
4766
  /**
4744
- * 发送指令消息
4745
- *
4746
- * @author tony001
4747
- * @date 2024-03-26 20:03:53
4748
- * @param {IData} data 数据
4749
- * @param {IPortalMessage['subtype']} subtype 子类型
4750
- * @param {string} [triggerKey] 触发源
4767
+ * @description 发送指令消息
4768
+ * @param {IData} data
4769
+ * @param {IPortalMessage['subtype']} subtype
4770
+ * @param {string} [triggerKey]
4771
+ * @memberof MessageCommand
4751
4772
  */
4752
4773
  send(data, subtype, triggerKey) {
4753
4774
  const msg = {
@@ -4766,11 +4787,9 @@ var MessageCommand = class extends MessageBase {
4766
4787
  import { createUUID as createUUID3 } from "qx-util";
4767
4788
  var MessageConsole = class extends MessageBase {
4768
4789
  /**
4769
- * 发送日志消息
4770
- *
4771
- * @author chitanda
4772
- * @date 2023-09-05 16:09:25
4790
+ * @description 发送消息
4773
4791
  * @param {(IData | string)} data
4792
+ * @memberof MessageConsole
4774
4793
  */
4775
4794
  send(data) {
4776
4795
  const msg = {
@@ -4787,11 +4806,9 @@ var MessageConsole = class extends MessageBase {
4787
4806
  import { createUUID as createUUID4 } from "qx-util";
4788
4807
  var MessageError = class extends MessageBase {
4789
4808
  /**
4790
- * 发送错误消息
4791
- *
4792
- * @author tony001
4793
- * @date 2024-04-28 10:04:16
4809
+ * @description 发送消息
4794
4810
  * @param {(IData | string)} data
4811
+ * @memberof MessageError
4795
4812
  */
4796
4813
  send(data) {
4797
4814
  const msg = {
@@ -4808,44 +4825,35 @@ var MessageError = class extends MessageBase {
4808
4825
  var MessageCenter = class {
4809
4826
  constructor() {
4810
4827
  /**
4811
- * 所有消息
4812
- *
4813
- * @author chitanda
4814
- * @date 2023-09-05 16:09:12
4828
+ * @description 所有消息
4829
+ * @protected
4815
4830
  * @type {MessageAll}
4831
+ * @memberof MessageCenter
4816
4832
  */
4817
4833
  this.all = new MessageAll();
4818
4834
  /**
4819
- * 指令消息
4820
- *
4821
- * @author chitanda
4822
- * @date 2023-09-05 16:09:28
4835
+ * @description 指令消息
4823
4836
  * @type {MessageCommand}
4837
+ * @memberof MessageCenter
4824
4838
  */
4825
4839
  this.command = new MessageCommand(this.all);
4826
4840
  /**
4827
- * 日志消息
4828
- *
4829
- * @author chitanda
4830
- * @date 2023-09-05 16:09:48
4841
+ * @description 日志消息
4831
4842
  * @type {MessageConsole}
4843
+ * @memberof MessageCenter
4832
4844
  */
4833
4845
  this.console = new MessageConsole(this.all);
4834
4846
  /**
4835
- * 错误消息
4836
- *
4837
- * @author tony001
4838
- * @date 2024-04-28 10:04:25
4847
+ * @description 错误消息
4839
4848
  * @type {MessageError}
4849
+ * @memberof MessageCenter
4840
4850
  */
4841
4851
  this.error = new MessageError(this.all);
4842
4852
  }
4843
4853
  /**
4844
- * 发送消息
4845
- *
4846
- * @author chitanda
4847
- * @date 2023-09-05 15:09:49
4848
- * @param {IPortalMessage} msg
4854
+ * @description 发送消息
4855
+ * @param {IPortalMessage} msg 消息
4856
+ * @memberof MessageCenter
4849
4857
  */
4850
4858
  next(msg) {
4851
4859
  if (msg.type === "COMMAND") {
@@ -4857,21 +4865,17 @@ var MessageCenter = class {
4857
4865
  }
4858
4866
  }
4859
4867
  /**
4860
- * 订阅消息
4861
- *
4862
- * @author chitanda
4863
- * @date 2023-09-05 17:09:32
4868
+ * @description 订阅消息
4864
4869
  * @param {(msg: IPortalMessage) => void} callback
4870
+ * @memberof MessageCenter
4865
4871
  */
4866
4872
  on(callback) {
4867
4873
  this.all.on(callback);
4868
4874
  }
4869
4875
  /**
4870
- * 取消订阅
4871
- *
4872
- * @author chitanda
4873
- * @date 2023-09-05 17:09:38
4876
+ * @description 取消订阅
4874
4877
  * @param {(msg: IPortalMessage) => void} callback
4878
+ * @memberof MessageCenter
4875
4879
  */
4876
4880
  off(callback) {
4877
4881
  this.all.off(callback);
@@ -4897,121 +4901,102 @@ function _bem(namespace, block, blockSuffix, element, modifier) {
4897
4901
  var Namespace = class {
4898
4902
  /**
4899
4903
  * Creates an instance of Namespace.
4900
- *
4901
- * @author chitanda
4902
- * @date 2022-09-06 12:09:12
4903
4904
  * @param {string} block 当前命名空间的根模块,例如组件的名称
4904
4905
  * @param {string} [namespace] 指定命名空间,未指定使用默认值 ibiz
4906
+ * @memberof Namespace
4905
4907
  */
4906
4908
  constructor(block, namespace) {
4907
4909
  this.block = block;
4908
4910
  this.namespace = namespace || defaultNamespace;
4909
4911
  }
4910
4912
  /**
4911
- * namespace-block
4912
- * namespace-block-blockSuffix
4913
- *
4914
- * @author chitanda
4915
- * @date 2022-09-06 12:09:08
4913
+ * @description namespace-block、namespace-block-blockSuffix
4916
4914
  * @param {string} [blockSuffix='']
4917
- * @return {*} {string}
4915
+ * @returns {*} {string}
4916
+ * @memberof Namespace
4918
4917
  */
4919
4918
  b(blockSuffix = "") {
4920
4919
  return _bem(this.namespace, this.block, blockSuffix, "", "");
4921
4920
  }
4922
4921
  /**
4923
- * namespace-block__element
4924
- *
4925
- * @author chitanda
4926
- * @date 2022-09-06 12:09:48
4922
+ * @description namespace-block__element
4927
4923
  * @param {string} [element]
4928
- * @return {*} {string}
4924
+ * @returns {*} {string}
4925
+ * @memberof Namespace
4929
4926
  */
4930
4927
  e(element) {
4931
4928
  return element ? _bem(this.namespace, this.block, "", element, "") : "";
4932
4929
  }
4933
4930
  /**
4934
- * namespace-block--modifier
4935
- *
4936
- * @author chitanda
4937
- * @date 2022-09-06 12:09:37
4931
+ * @description namespace-block--modifier
4938
4932
  * @param {string} [modifier]
4939
- * @return {*} {string}
4933
+ * @returns {*} {string}
4934
+ * @memberof Namespace
4940
4935
  */
4941
4936
  m(modifier) {
4942
4937
  return modifier ? _bem(this.namespace, this.block, "", "", modifier) : "";
4943
4938
  }
4944
4939
  /**
4945
- * namespace-block-blockSuffix__element
4946
- *
4947
- * @author chitanda
4948
- * @date 2022-09-06 12:09:52
4940
+ * @description namespace-block-blockSuffix__element
4949
4941
  * @param {string} [blockSuffix]
4950
4942
  * @param {string} [element]
4951
- * @return {*} {string}
4943
+ * @returns {*} {string}
4944
+ * @memberof Namespace
4952
4945
  */
4953
4946
  be(blockSuffix, element) {
4954
4947
  return blockSuffix && element ? _bem(this.namespace, this.block, blockSuffix, element, "") : "";
4955
4948
  }
4956
4949
  /**
4957
- * namespace-block__element--modifier
4958
- *
4959
- * @author chitanda
4960
- * @date 2022-09-06 12:09:19
4950
+ * @description namespace-block__element--modifier
4961
4951
  * @param {string} [element]
4962
4952
  * @param {string} [modifier]
4963
- * @return {*} {string}
4953
+ * @returns {*} {string}
4954
+ * @memberof Namespace
4964
4955
  */
4965
4956
  em(element, modifier) {
4966
4957
  return element && modifier ? _bem(this.namespace, this.block, "", element, modifier) : "";
4967
4958
  }
4968
4959
  /**
4969
- * namespace-block-blockSuffix--modifier
4970
- *
4971
- * @author chitanda
4972
- * @date 2022-09-06 12:09:59
4960
+ * @description namespace-block-blockSuffix--modifier
4973
4961
  * @param {string} [blockSuffix]
4974
4962
  * @param {string} [modifier]
4975
- * @return {*} {string}
4963
+ * @returns {*} {string}
4964
+ * @memberof Namespace
4976
4965
  */
4977
4966
  bm(blockSuffix, modifier) {
4978
4967
  return blockSuffix && modifier ? _bem(this.namespace, this.block, blockSuffix, "", modifier) : "";
4979
4968
  }
4980
4969
  /**
4981
- * namespace-block-blockSuffix__element--modifier
4982
- *
4983
- * @author chitanda
4984
- * @date 2022-09-06 12:09:37
4970
+ * @description namespace-block-blockSuffix__element--modifier
4985
4971
  * @param {string} [blockSuffix]
4986
4972
  * @param {string} [element]
4987
4973
  * @param {string} [modifier]
4988
- * @return {*} {string}
4974
+ * @returns {*} {string}
4975
+ * @memberof Namespace
4989
4976
  */
4990
4977
  bem(blockSuffix, element, modifier) {
4991
4978
  return blockSuffix && element && modifier ? _bem(this.namespace, this.block, blockSuffix, element, modifier) : "";
4992
4979
  }
4993
4980
  /**
4994
- * 返回状态 class
4995
- *
4996
- * is('loading', false) => '';
4997
- * is('loading', true) => 'is-loading';
4998
- *
4999
- * @author chitanda
5000
- * @date 2022-09-06 12:09:57
4981
+ * @description 返回状态类
5001
4982
  * @param {string} name
5002
4983
  * @param {boolean} [state]
5003
- * @return {*} {string}
4984
+ * @example
4985
+ * ```typescript
4986
+ * is('loading', false) => '';
4987
+ * is('loading', true) => 'is-loading';
4988
+ * ```
4989
+ * @returns {*} {string}
4990
+ * @memberof Namespace
5004
4991
  */
5005
4992
  is(name, state) {
5006
4993
  return name && state ? "".concat(statePrefix).concat(name) : "";
5007
4994
  }
5008
4995
  /**
5009
- * 生成使用到的 css 变量 style 对象
5010
- *
5011
- * @author chitanda
5012
- * @date 2022-09-06 15:09:41
4996
+ * @description 生成使用到的 css 变量 style 对象
5013
4997
  * @param {Record<string, string>} object
5014
- * @return {*} {Record<string, string>}
4998
+ * @returns {*} {Record<string, string>}
4999
+ * @memberof Namespace
5015
5000
  */
5016
5001
  cssVar(object) {
5017
5002
  const styles = {};
@@ -5023,12 +5008,10 @@ var Namespace = class {
5023
5008
  return styles;
5024
5009
  }
5025
5010
  /**
5026
- * 生成使用到的 css block 变量 style 对象
5027
- *
5028
- * @author chitanda
5029
- * @date 2022-09-06 15:09:03
5011
+ * @description 生成使用到的 css block 变量 style 对象
5030
5012
  * @param {Record<string, string>} object
5031
- * @return {*} {Record<string, string>}
5013
+ * @returns {*} {Record<string, string>}
5014
+ * @memberof Namespace
5032
5015
  */
5033
5016
  cssVarBlock(object) {
5034
5017
  const styles = {};
@@ -5040,23 +5023,19 @@ var Namespace = class {
5040
5023
  return styles;
5041
5024
  }
5042
5025
  /**
5043
- * 生成 css var 变量名称
5044
- *
5045
- * @author chitanda
5046
- * @date 2022-09-06 15:09:21
5026
+ * @description 生成 css var 变量名称
5047
5027
  * @param {string} name
5048
- * @return {*} {string}
5028
+ * @returns {*} {string}
5029
+ * @memberof Namespace
5049
5030
  */
5050
5031
  cssVarName(name) {
5051
5032
  return "--".concat(this.namespace, "-").concat(name);
5052
5033
  }
5053
5034
  /**
5054
- * 生成块 css var 变量名称
5055
- *
5056
- * @author chitanda
5057
- * @date 2022-09-06 15:09:35
5035
+ * @description 生成块 css var 变量名称
5058
5036
  * @param {string} name
5059
- * @return {*} {string}
5037
+ * @returns {*} {string}
5038
+ * @memberof Namespace
5060
5039
  */
5061
5040
  cssVarBlockName(name) {
5062
5041
  return "--".concat(this.namespace, "-").concat(this.block, "-").concat(name);
@@ -5068,19 +5047,15 @@ import axios from "axios";
5068
5047
  var HttpResponse = class {
5069
5048
  /**
5070
5049
  * Creates an instance of HttpResponse.
5071
- *
5072
- * @author chitanda
5073
- * @date 2022-08-18 15:08:11
5074
5050
  * @param {unknown} [data] 返回的数据
5075
5051
  * @param {number} [status] 状态码 (默认为 200)
5076
5052
  * @param {string} [statusText] 状态描述 (默认为空字符)
5053
+ * @memberof HttpResponse
5077
5054
  */
5078
5055
  constructor(data, status, statusText) {
5079
5056
  /**
5080
- * 本地仿造响应
5081
- *
5082
- * @author chitanda
5083
- * @date 2022-08-18 15:08:06
5057
+ * @description 本地仿造响应
5058
+ * @memberof HttpResponse
5084
5059
  */
5085
5060
  this.local = true;
5086
5061
  this.ok = false;
@@ -5106,35 +5081,26 @@ import { mergeDeepRight } from "ramda";
5106
5081
  var Net = class {
5107
5082
  /**
5108
5083
  * Creates an instance of Net.
5109
- * @author lxm
5110
- * @date 2022-10-27 16:10:05
5111
5084
  * @param {CreateAxiosDefaults} [config] 创建实例用的默认配置
5085
+ * @memberof Net
5112
5086
  */
5113
5087
  constructor(config) {
5114
5088
  /**
5115
- * 是否为 http || https 开头
5116
- *
5117
- * @author chitanda
5118
- * @date 2022-11-07 14:11:28
5089
+ * @description 是否为 http || https 开头
5119
5090
  * @protected
5091
+ * @memberof Net
5120
5092
  */
5121
5093
  this.urlReg = /^http[s]?:\/\/[^\s]*/;
5122
5094
  /**
5123
- * 请求等待队列,防止重复请求。当有完全相同请求参数的请求时,会等待上一个请求完成后把结果返回给当前请求,不会重复请求
5124
- * key: 由请求的 config 生成的字符串,用于唯一标识请求
5125
- * value: 当前正在请求的 Promise
5126
- *
5127
- * @author chitanda
5128
- * @date 2023-06-07 14:06:19
5095
+ * @description 请求等待队列,防止重复请求。当有完全相同请求参数的请求时,会等待上一个请求完成后把结果返回给当前请求,不会重复请求(key: 由请求的 config 生成的字符串,用于唯一标识请求,value: 当前正在请求的 Promise)
5129
5096
  * @protected
5097
+ * @memberof Net
5130
5098
  */
5131
5099
  this.waitRequest = /* @__PURE__ */ new Map();
5132
5100
  /**
5133
- * 注册的拦截器
5134
- *
5135
- * @author lxm
5136
- * @date 2022-10-27 17:10:18
5101
+ * @description 注册的拦截器
5137
5102
  * @type {Map<string, Interceptor>}
5103
+ * @memberof Net
5138
5104
  */
5139
5105
  this.interceptors = /* @__PURE__ */ new Map();
5140
5106
  this.instance = axios2.create(config);
@@ -5144,23 +5110,19 @@ var Net = class {
5144
5110
  return this.instance.defaults.baseURL || "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId);
5145
5111
  }
5146
5112
  /**
5147
- * 添加拦截器
5148
- *
5149
- * @author lxm
5150
- * @date 2022-10-27 17:10:42
5113
+ * @description 添加拦截器
5151
5114
  * @param {string} name 唯一标识
5152
5115
  * @param {Interceptor} interceptor 拦截器
5116
+ * @memberof Net
5153
5117
  */
5154
5118
  addInterceptor(name, interceptor) {
5155
5119
  interceptor.use(this.instance);
5156
5120
  this.interceptors.set(name, interceptor);
5157
5121
  }
5158
5122
  /**
5159
- * 删除拦截器
5160
- *
5161
- * @author lxm
5162
- * @date 2022-10-27 17:10:27
5123
+ * @description 删除拦截器
5163
5124
  * @param {string} name 唯一标识
5125
+ * @memberof Net
5164
5126
  */
5165
5127
  removeInterceptor(name) {
5166
5128
  const interceptor = this.interceptors.get(name);
@@ -5170,13 +5132,11 @@ var Net = class {
5170
5132
  }
5171
5133
  }
5172
5134
  /**
5173
- * 预置config,绑定动态的配置
5174
- *
5175
- * @author lxm
5176
- * @date 2022-10-27 16:10:48
5135
+ * @description 预置config,绑定动态的配置
5177
5136
  * @readonly
5178
5137
  * @protected
5179
5138
  * @type {AxiosRequestConfig}
5139
+ * @memberof Net
5180
5140
  */
5181
5141
  get presetConfig() {
5182
5142
  return {
@@ -5189,13 +5149,11 @@ var Net = class {
5189
5149
  };
5190
5150
  }
5191
5151
  /**
5192
- * 从左到右递归合并配置参数(内置第一个合并的预置参数)
5193
- *
5194
- * @author lxm
5195
- * @date 2022-10-27 16:10:09
5152
+ * @description 从左到右递归合并配置参数(内置第一个合并的预置参数)
5196
5153
  * @protected
5197
5154
  * @param {...AxiosRequestConfig[]} configs
5198
- * @returns {*}
5155
+ * @returns {*} {AxiosRequestConfig}
5156
+ * @memberof Net
5199
5157
  */
5200
5158
  mergeConfig(...configs) {
5201
5159
  const config = this.presetConfig;
@@ -5209,15 +5167,13 @@ var Net = class {
5209
5167
  return merge(config, ...configs);
5210
5168
  }
5211
5169
  /**
5212
- * Post 请求
5213
- *
5214
- * @author chitanda
5215
- * @date 2022-10-19 11:10:30
5170
+ * @description Post 请求
5216
5171
  * @param {string} url
5217
5172
  * @param {IData} data
5218
5173
  * @param {IParams} [params={}]
5219
5174
  * @param {RawAxiosRequestHeaders} [headers={}]
5220
- * @return {*} {Promise<IHttpResponse>}
5175
+ * @returns {*} {Promise<IHttpResponse>}
5176
+ * @memberof Net
5221
5177
  */
5222
5178
  async post(url, data, params = {}, headers = {}) {
5223
5179
  url = this.handleAppPresetParam(url, params, data);
@@ -5233,15 +5189,13 @@ var Net = class {
5233
5189
  }
5234
5190
  }
5235
5191
  /**
5236
- * Get 请求
5237
- *
5238
- * @author chitanda
5239
- * @date 2022-10-19 11:10:24
5192
+ * @description Get 请求
5240
5193
  * @param {string} url
5241
5194
  * @param {IParams} [params={}]
5242
5195
  * @param {RawAxiosRequestHeaders} [headers={}]
5243
- * @param {IParams} [option={}]
5244
- * @return {*} {Promise<IHttpResponse>}
5196
+ * @param {AxiosRequestConfig} [option={}]
5197
+ * @returns {*} {Promise<IHttpResponse>}
5198
+ * @memberof Net
5245
5199
  */
5246
5200
  async get(url, params = {}, headers = {}, option = {}) {
5247
5201
  url = this.attachUrlParam(url, params);
@@ -5256,14 +5210,12 @@ var Net = class {
5256
5210
  }
5257
5211
  }
5258
5212
  /**
5259
- * Delete 请求
5260
- *
5261
- * @author chitanda
5262
- * @date 2022-10-19 11:10:17
5213
+ * @description Delete 请求
5263
5214
  * @param {string} url
5264
- * @param {IParams} [params]
5215
+ * @param {IParams} [params={}]
5265
5216
  * @param {RawAxiosRequestHeaders} [headers={}]
5266
- * @return {*} {Promise<IHttpResponse>}
5217
+ * @returns {*} {Promise<IHttpResponse>}
5218
+ * @memberof Net
5267
5219
  */
5268
5220
  async delete(url, params = {}, headers = {}) {
5269
5221
  url = this.handleAppPresetParam(url, params);
@@ -5275,15 +5227,13 @@ var Net = class {
5275
5227
  }
5276
5228
  }
5277
5229
  /**
5278
- * Put 请求
5279
- *
5280
- * @author chitanda
5281
- * @date 2022-10-19 11:10:11
5230
+ * @description Put 请求
5282
5231
  * @param {string} url
5283
5232
  * @param {IData} data
5284
5233
  * @param {IParams} [params={}]
5285
5234
  * @param {RawAxiosRequestHeaders} [headers={}]
5286
- * @return {*} {Promise<IHttpResponse>}
5235
+ * @returns {*} {Promise<IHttpResponse>}
5236
+ * @memberof Net
5287
5237
  */
5288
5238
  async put(url, data, params = {}, headers = {}) {
5289
5239
  url = this.handleAppPresetParam(url, params);
@@ -5299,13 +5249,11 @@ var Net = class {
5299
5249
  }
5300
5250
  }
5301
5251
  /**
5302
- * 获取模型数据
5303
- *
5304
- * @author chitanda
5305
- * @date 2022-07-14 15:07:15
5252
+ * @description 获取模型数据
5306
5253
  * @param {string} url
5307
5254
  * @param {RawAxiosRequestHeaders} [headers={}]
5308
- * @return {*} {Promise<IHttpResponse>}
5255
+ * @returns {*} {Promise<IHttpResponse>}
5256
+ * @memberof Net
5309
5257
  */
5310
5258
  async getModel(url, headers = {}) {
5311
5259
  try {
@@ -5318,13 +5266,11 @@ var Net = class {
5318
5266
  }
5319
5267
  }
5320
5268
  /**
5321
- * 基础请求方法,会合并预置配置
5322
- *
5323
- * @author lxm
5324
- * @date 2022-10-27 14:10:06
5269
+ * @description 基础请求方法,会合并预置配置
5325
5270
  * @param {string} url
5326
5271
  * @param {AxiosRequestConfig} [config={}]
5327
5272
  * @returns {*} {Promise<IHttpResponse>}
5273
+ * @memberof Net
5328
5274
  */
5329
5275
  async request(url, config = {}) {
5330
5276
  const cfg = this.mergeConfig({ url }, config);
@@ -5350,25 +5296,21 @@ var Net = class {
5350
5296
  }
5351
5297
  }
5352
5298
  /**
5353
- * 创建标准 axios 请求
5354
- *
5355
- * @author chitanda
5356
- * @date 2023-01-30 15:01:27
5299
+ * @description 创建标准 axios 请求
5357
5300
  * @param {AxiosRequestConfig<IData>} config
5358
- * @return {*}
5301
+ * @returns {*} {Promise<AxiosResponse>}
5302
+ * @memberof Net
5359
5303
  */
5360
5304
  axios(config) {
5361
5305
  return axios2(config);
5362
5306
  }
5363
5307
  /**
5364
- * 触发 sse 请求
5365
- *
5366
- * @author chitanda
5367
- * @date 2023-10-10 16:10:08
5308
+ * @description 触发 sse 请求
5368
5309
  * @param {string} url
5369
5310
  * @param {IParams} params
5370
5311
  * @param {FetchEventSourceInit} [options={}]
5371
- * @return {*} {Promise<void>}
5312
+ * @returns {*} {Promise<void>}
5313
+ * @memberof Net
5372
5314
  */
5373
5315
  async sse(url, params, options = {}) {
5374
5316
  url = this.attachUrlParam(this.baseUrl + url, params);
@@ -5403,13 +5345,11 @@ var Net = class {
5403
5345
  await fetchEventSource(url, config);
5404
5346
  }
5405
5347
  /**
5406
- * 统一处理请求返回
5407
- *
5408
- * @author chitanda
5409
- * @date 2022-07-14 16:07:23
5348
+ * @description 统一处理请求返回
5410
5349
  * @private
5411
5350
  * @param {AxiosResponse} response
5412
- * @return {*} {IHttpResponse}
5351
+ * @returns {*} {IHttpResponse}
5352
+ * @memberof Net
5413
5353
  */
5414
5354
  doResponseResult(response) {
5415
5355
  const res = response;
@@ -5423,15 +5363,13 @@ var Net = class {
5423
5363
  return res;
5424
5364
  }
5425
5365
  /**
5426
- * 处理平台预定义参数
5427
- *
5428
- * @author tony001
5429
- * @date 2024-04-18 10:04:52
5366
+ * @description 处理平台预定义参数
5430
5367
  * @private
5431
5368
  * @param {string} url
5369
+ * @param {IParams} params
5432
5370
  * @param {IData} [data={}]
5433
- * @param {IParams} [params]
5434
- * @return {*} {string}
5371
+ * @returns {*} {string}
5372
+ * @memberof Net
5435
5373
  */
5436
5374
  handleAppPresetParam(url, params, data = {}) {
5437
5375
  if (data && Object.prototype.hasOwnProperty.call(data, "srfversionid")) {
@@ -5446,14 +5384,12 @@ var Net = class {
5446
5384
  return url;
5447
5385
  }
5448
5386
  /**
5449
- * url 附加请求参数,并处理路径的字符转换 encode
5450
- *
5451
- * @author chitanda
5452
- * @date 2022-07-14 15:07:34
5387
+ * @description url 附加请求参数,并处理路径的字符转换 encode
5453
5388
  * @private
5454
5389
  * @param {string} url
5455
5390
  * @param {IParams} params
5456
- * @return {*} {string}
5391
+ * @returns {*} {string}
5392
+ * @memberof Net
5457
5393
  */
5458
5394
  attachUrlParam(url, params) {
5459
5395
  if (params && Object.prototype.hasOwnProperty.call(params, "srfdefdata")) {
@@ -5484,8 +5420,6 @@ var Net = class {
5484
5420
  import { notNilEmpty as notNilEmpty2 } from "qx-util";
5485
5421
  var StringUtil = class {
5486
5422
  /**
5487
- * 填充字符串中的数据
5488
- *
5489
5423
  * @description 填充字符串中的数据 用法:传入需要替换的字符串和对象 返回值是string类型
5490
5424
  * @example
5491
5425
  * ```
@@ -5530,24 +5464,19 @@ var StringUtil = class {
5530
5464
  }
5531
5465
  };
5532
5466
  /**
5533
- * 上下文替换正则
5534
- *
5535
- * @author chitanda
5536
- * @date 2021-04-23 20:04:01
5467
+ * @description 上下文替换正则
5537
5468
  * @static
5469
+ * @memberof StringUtil
5538
5470
  */
5539
5471
  StringUtil.contextReg = /\$\{context.[a-zA-Z_$][a-zA-Z0-9_$]{1,}\}/g;
5540
5472
  /**
5541
- * 数据替换正则
5542
- *
5543
- * @author chitanda
5544
- * @date 2021-04-23 20:04:09
5473
+ * @description 数据替换正则
5545
5474
  * @static
5475
+ * @memberof StringUtil
5546
5476
  */
5547
5477
  StringUtil.dataReg = /\$\{data.[a-zA-Z_$][a-zA-Z0-9_$]{1,}\}/g;
5548
5478
  /**
5549
- * 参数替换正则
5550
- *
5479
+ * @description 参数替换正则
5551
5480
  * @static
5552
5481
  * @memberof StringUtil
5553
5482
  */
@@ -5556,51 +5485,43 @@ StringUtil.paramsReg = /\$\{params.[a-zA-Z_$][a-zA-Z0-9_$]{1,}\}/g;
5556
5485
  // src/utils/url-helper/url-helper.ts
5557
5486
  var UrlHelper = class {
5558
5487
  /**
5559
- * 路由路径前面的基础路径
5560
- * 如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123
5561
- * 返回:http://172.16.103.120:30061/portalwebapp/#
5562
- *
5563
- * @author lxm
5564
- * @date 2022-10-11 20:10:29
5565
- * @returns {*}
5488
+ * @description 路由路径前面的基础路径。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123,返回:http://172.16.103.120:30061/portalwebapp/#
5489
+ * @readonly
5490
+ * @static
5491
+ * @type {string}
5492
+ * @memberof UrlHelper
5566
5493
  */
5567
5494
  static get routeBase() {
5568
5495
  const hashIndex = window.location.href.lastIndexOf("#/");
5569
5496
  return window.location.href.slice(0, hashIndex + 1);
5570
5497
  }
5571
5498
  /**
5572
- * 应用的的基础路径
5573
- * 如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123
5574
- * 返回:http://172.16.103.120:30061/portalwebapp
5575
- *
5576
- * @author lxm
5577
- * @date 2022-10-11 20:10:29
5578
- * @returns {*}
5499
+ * @description 应用的的基础路径。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123,返回:http://172.16.103.120:30061/portalwebapp
5500
+ * @readonly
5501
+ * @static
5502
+ * @type {string}
5503
+ * @memberof UrlHelper
5579
5504
  */
5580
5505
  static get appBase() {
5581
5506
  const { origin, pathname } = window.location;
5582
5507
  return "".concat(origin).concat(pathname).replace(/\/$/, "");
5583
5508
  }
5584
5509
  /**
5585
- * #开始到末尾,即路由地址
5586
- * 如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123
5587
- * 返回:/index/appportalview?params=123
5588
- *
5589
- * @author lxm
5590
- * @date 2022-10-11 16:10:40
5591
- * @returns {*}
5510
+ * @description #开始到末尾,即路由地址。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123,返回:/index/appportalview?params=123
5511
+ * @readonly
5512
+ * @static
5513
+ * @type {string}
5514
+ * @memberof UrlHelper
5592
5515
  */
5593
5516
  static get routePath() {
5594
5517
  return window.location.hash.replace("#", "");
5595
5518
  }
5596
5519
  /**
5597
- * 当前地址的全路径,包含域名和参数
5598
- * 如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123
5599
- *
5600
- * @author lxm
5601
- * @date 2022-10-11 21:10:39
5520
+ * @description 当前地址的全路径,包含域名和参数。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123
5602
5521
  * @readonly
5603
5522
  * @static
5523
+ * @type {string}
5524
+ * @memberof UrlHelper
5604
5525
  */
5605
5526
  static get fullPath() {
5606
5527
  return window.location.href;
@@ -5640,11 +5561,9 @@ var _HistoryItem = class _HistoryItem {
5640
5561
  this._next = _HistoryItem.Undefined;
5641
5562
  }
5642
5563
  /**
5643
- * 克隆整个历史链
5644
- *
5645
- * @author chitanda
5646
- * @date 2023-12-28 23:12:56
5647
- * @return {*} {HistoryItem<E>}
5564
+ * @description 克隆整个历史链
5565
+ * @returns {*} {HistoryItem<E>}
5566
+ * @memberof HistoryItem
5648
5567
  */
5649
5568
  clone() {
5650
5569
  throw new RuntimeError(ibiz.i18n.t("core.utils.unrealized"));
@@ -5658,24 +5577,26 @@ var HistoryItem = _HistoryItem;
5658
5577
  import { clone as clone2 } from "ramda";
5659
5578
  var HistoryList = class _HistoryList {
5660
5579
  /**
5661
- * 当前的数据
5662
- *
5663
- * @author chitanda
5664
- * @date 2023-12-28 18:12:27
5580
+ * @description 当前的数据
5581
+ * @readonly
5665
5582
  * @type {E}
5583
+ * @memberof HistoryList
5666
5584
  */
5667
5585
  get data() {
5668
5586
  return this._cur.data;
5669
5587
  }
5588
+ /**
5589
+ * Creates an instance of HistoryList.
5590
+ * @param {E} data
5591
+ * @memberof HistoryList
5592
+ */
5670
5593
  constructor(data) {
5671
5594
  this._cur = new HistoryItem(data);
5672
5595
  }
5673
5596
  /**
5674
- * 先创建一次历史记录,再赋值
5675
- *
5676
- * @author chitanda
5677
- * @date 2023-12-28 17:12:05
5597
+ * @description 先创建一次历史记录,再赋值
5678
5598
  * @param {IData} data
5599
+ * @memberof HistoryList
5679
5600
  */
5680
5601
  assign(data) {
5681
5602
  if (data) {
@@ -5684,10 +5605,8 @@ var HistoryList = class _HistoryList {
5684
5605
  }
5685
5606
  }
5686
5607
  /**
5687
- * 创建一次历史记录
5688
- *
5689
- * @author chitanda
5690
- * @date 2023-12-28 20:12:13
5608
+ * @description 创建一次历史记录
5609
+ * @memberof HistoryList
5691
5610
  */
5692
5611
  save() {
5693
5612
  const oldCur = this._cur;
@@ -5700,11 +5619,9 @@ var HistoryList = class _HistoryList {
5700
5619
  this._cur = history;
5701
5620
  }
5702
5621
  /**
5703
- * 上一步
5704
- *
5705
- * @author chitanda
5706
- * @date 2023-12-28 16:12:28
5707
- * @return {*} {boolean}
5622
+ * @description 上一步
5623
+ * @returns {*} {boolean}
5624
+ * @memberof HistoryList
5708
5625
  */
5709
5626
  prev() {
5710
5627
  if (this._cur._prev && this._cur._prev !== HistoryItem.Undefined) {
@@ -5714,11 +5631,9 @@ var HistoryList = class _HistoryList {
5714
5631
  return false;
5715
5632
  }
5716
5633
  /**
5717
- * 下一步
5718
- *
5719
- * @author chitanda
5720
- * @date 2023-12-28 16:12:20
5721
- * @return {*} {boolean}
5634
+ * @description 下一步
5635
+ * @returns {*} {boolean}
5636
+ * @memberof HistoryList
5722
5637
  */
5723
5638
  next() {
5724
5639
  if (this._cur._next && this._cur._next !== HistoryItem.Undefined) {
@@ -5728,12 +5643,10 @@ var HistoryList = class _HistoryList {
5728
5643
  return false;
5729
5644
  }
5730
5645
  /**
5731
- * 清空引用,避免内存泄漏
5732
- *
5733
- * @author chitanda
5734
- * @date 2023-12-28 22:12:43
5646
+ * @description 清空引用,避免内存泄漏
5735
5647
  * @protected
5736
5648
  * @param {HistoryItem<E>} h
5649
+ * @memberof HistoryList
5737
5650
  */
5738
5651
  _clear(h) {
5739
5652
  if (h._prev && h._prev !== HistoryItem.Undefined) {
@@ -5749,12 +5662,10 @@ var HistoryList = class _HistoryList {
5749
5662
  h.data = {};
5750
5663
  }
5751
5664
  /**
5752
- * 禁止克隆,直接返回当前实例
5753
- *
5754
- * @author chitanda
5755
- * @date 2023-12-28 22:12:49
5756
- * @private
5757
- * @return {*} {HistoryList<E>}
5665
+ * @description 禁止克隆,直接返回当前实例
5666
+ * @protected
5667
+ * @returns {*} {HistoryList<E>}
5668
+ * @memberof HistoryList
5758
5669
  */
5759
5670
  clone() {
5760
5671
  const history = new _HistoryList({});
@@ -5762,10 +5673,8 @@ var HistoryList = class _HistoryList {
5762
5673
  return this;
5763
5674
  }
5764
5675
  /**
5765
- * 销毁
5766
- *
5767
- * @author chitanda
5768
- * @date 2023-12-28 21:12:34
5676
+ * @description 销毁
5677
+ * @memberof HistoryList
5769
5678
  */
5770
5679
  destroy() {
5771
5680
  this._clear(this._cur);
@@ -6130,20 +6039,16 @@ var CountLatch = class {
6130
6039
  this.promise = null;
6131
6040
  this.resolve = null;
6132
6041
  /**
6133
- * 计数,当前等待的异步逻辑个数
6134
- *
6135
- * @author lxm
6136
- * @date 2022-11-24 19:11:59
6042
+ * @description 计数,当前等待的异步逻辑个数
6137
6043
  * @type {number}
6044
+ * @memberof CountLatch
6138
6045
  */
6139
6046
  this.count = 0;
6140
6047
  }
6141
6048
  /**
6142
- * 开启promise
6143
- *
6144
- * @author lxm
6145
- * @date 2022-11-24 19:11:32
6049
+ * @description 开启promise
6146
6050
  * @private
6051
+ * @memberof CountLatch
6147
6052
  */
6148
6053
  startPromise() {
6149
6054
  this.promise = new Promise((resolve) => {
@@ -6151,11 +6056,9 @@ var CountLatch = class {
6151
6056
  });
6152
6057
  }
6153
6058
  /**
6154
- * 结束promise
6155
- *
6156
- * @author lxm
6157
- * @date 2022-11-24 19:11:44
6059
+ * @description 结束promise
6158
6060
  * @private
6061
+ * @memberof CountLatch
6159
6062
  */
6160
6063
  endPromise() {
6161
6064
  if (this.resolve) {
@@ -6165,11 +6068,8 @@ var CountLatch = class {
6165
6068
  }
6166
6069
  }
6167
6070
  /**
6168
- * 上锁,计数加一
6169
- * 第一次计数,开启异步
6170
- *
6171
- * @author lxm
6172
- * @date 2022-11-24 19:11:27
6071
+ * @description 上锁,计数加一,第一次计数,开启异步
6072
+ * @memberof CountLatch
6173
6073
  */
6174
6074
  lock() {
6175
6075
  this.count += 1;
@@ -6178,11 +6078,8 @@ var CountLatch = class {
6178
6078
  }
6179
6079
  }
6180
6080
  /**
6181
- * 解锁,计数减一
6182
- * 归零时结束异步
6183
- *
6184
- * @author lxm
6185
- * @date 2022-11-24 19:11:47
6081
+ * @description 解锁,计数减一,归零时结束异步
6082
+ * @memberof CountLatch
6186
6083
  */
6187
6084
  unlock() {
6188
6085
  if (this.count < 1) {
@@ -6194,10 +6091,9 @@ var CountLatch = class {
6194
6091
  }
6195
6092
  }
6196
6093
  /**
6197
- * 等待,计数归零异步结束
6198
- *
6199
- * @author lxm
6200
- * @date 2022-11-24 19:11:20
6094
+ * @description 等待,计数归零异步结束
6095
+ * @returns {*} {Promise<void>}
6096
+ * @memberof CountLatch
6201
6097
  */
6202
6098
  async await() {
6203
6099
  if (this.promise) {
@@ -6286,12 +6182,11 @@ function findRecursiveChild(parent, key, opts) {
6286
6182
  // src/utils/data-type/data-types.ts
6287
6183
  var DataTypes = class {
6288
6184
  /**
6289
- * 是否是数值类型
6290
- * @author lxm
6291
- * @date 2023-08-25 04:53:30
6185
+ * @description 是否是数值类型
6292
6186
  * @static
6293
- * @param {number} dataType 数据类型(数值)
6294
- * @return {*} {boolean}
6187
+ * @param {number} dataType
6188
+ * @returns {*} {boolean}
6189
+ * @memberof DataTypes
6295
6190
  */
6296
6191
  static isNumber(dataType) {
6297
6192
  const numberTypes = [
@@ -6311,11 +6206,10 @@ var DataTypes = class {
6311
6206
  return numberTypes.includes(this.toString(dataType));
6312
6207
  }
6313
6208
  /**
6314
- * 是否是日期类型数据
6315
- *
6209
+ * @description 是否是日期类型数据
6316
6210
  * @static
6317
6211
  * @param {number} dataType
6318
- * @return {*}
6212
+ * @returns {*} {boolean}
6319
6213
  * @memberof DataTypes
6320
6214
  */
6321
6215
  static isDate(dataType) {
@@ -6323,23 +6217,21 @@ var DataTypes = class {
6323
6217
  return dateTypes.includes(this.toString(dataType));
6324
6218
  }
6325
6219
  /**
6326
- * 获取字符串数据类型
6327
- * @author lxm
6328
- * @date 2023-08-25 04:53:58
6220
+ * @description 获取字符串数据类型
6329
6221
  * @static
6330
- * @param {number} dataType 数据类型(数值)
6331
- * @return {*} {string}
6222
+ * @param {number} dataType
6223
+ * @returns {*} {string}
6224
+ * @memberof DataTypes
6332
6225
  */
6333
6226
  static toString(dataType) {
6334
6227
  return this.typeMap[dataType];
6335
6228
  }
6336
6229
  };
6337
6230
  /**
6338
- * 数字类型映射字符串类型
6339
- * @author lxm
6340
- * @date 2023-08-25 04:49:52
6231
+ * @description 数字类型映射字符串类型
6341
6232
  * @static
6342
6233
  * @type {{ [p: number]: string }}
6234
+ * @memberof DataTypes
6343
6235
  */
6344
6236
  DataTypes.typeMap = {
6345
6237
  0: "UNKNOWN",
@@ -6494,13 +6386,14 @@ var originalFactory = Logger.methodFactory;
6494
6386
  var NOOP2 = (message) => {
6495
6387
  };
6496
6388
  Logger.methodFactory = (methodName, logLevel, loggerName) => {
6389
+ var _a, _b;
6497
6390
  const rawMethod = originalFactory(methodName, logLevel, loggerName);
6498
- if (window.Environment.environmentTag === "production") {
6391
+ if (((_a = window.Environment) == null ? void 0 : _a.environmentTag) === "production") {
6499
6392
  if (methodName === "error" || methodName === "warn" || methodName === "debug") {
6500
6393
  return NOOP2;
6501
6394
  }
6502
6395
  }
6503
- if (window.Environment.environmentTag === "test") {
6396
+ if (((_b = window.Environment) == null ? void 0 : _b.environmentTag) === "test") {
6504
6397
  if (methodName === "error" || methodName === "warn") {
6505
6398
  return NOOP2;
6506
6399
  }
@@ -6515,52 +6408,40 @@ prefix.apply(logger);
6515
6408
  var IBizSys = class {
6516
6409
  constructor() {
6517
6410
  /**
6518
- * 环境变量
6519
- *
6520
- * @author chitanda
6521
- * @date 2022-07-19 18:07:04
6411
+ * @description 环境变量
6412
+ * @memberof IBizSys
6522
6413
  */
6523
6414
  this.env = Environment;
6524
6415
  /**
6525
- * 日志输出工具类
6526
- *
6527
- * @author chitanda
6528
- * @date 2023-07-10 18:07:05
6416
+ * @description 日志输出工具类
6529
6417
  * @type {Logger}
6418
+ * @memberof IBizSys
6530
6419
  */
6531
6420
  this.log = logger;
6532
6421
  /**
6533
- * 网络请求工具类(发送默认请求)
6534
- *
6535
- * @author chitanda
6536
- * @date 2022-07-19 17:07:56
6422
+ * @description 网络请求工具类(发送默认请求)
6537
6423
  * @type {Net}
6424
+ * @memberof IBizSys
6538
6425
  */
6539
6426
  this.net = new Net();
6540
6427
  /**
6541
- * 指令集
6542
- *
6543
- * @author chitanda
6544
- * @date 2022-07-20 10:07:33
6545
- * @type {AuthService}
6428
+ * @description 指令工具类
6429
+ * @type {CommandController}
6430
+ * @memberof IBizSys
6546
6431
  */
6547
6432
  this.commands = new CommandController();
6548
6433
  /**
6549
- * 界面消息中心
6550
- *
6551
- * @author chitanda
6552
- * @date 2023-09-05 17:09:38
6434
+ * @description 消息中心
6553
6435
  * @type {MessageCenter}
6436
+ * @memberof IBizSys
6554
6437
  */
6555
6438
  this.mc = new MessageCenter();
6556
6439
  }
6557
6440
  /**
6558
- * 注册全局扩展,用于替换预置能力
6559
- *
6560
- * @author tony001
6561
- * @date 2025-01-24 15:01:33
6441
+ * @description 注册全局扩展,用于替换预置能力
6562
6442
  * @param {keyof IBizSys} key
6563
6443
  * @param {*} value
6444
+ * @memberof IBizSys
6564
6445
  */
6565
6446
  registerExtension(key, value) {
6566
6447
  const self = this;