@ibiz-template/core 0.7.39 → 0.7.40-alpha.7

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 (393) hide show
  1. package/dist/index.esm.js +517 -656
  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 +4 -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 +33 -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 +282 -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 +11 -9
  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/message-center/base/message-all.d.ts +3 -5
  263. package/out/utils/message-center/base/message-all.d.ts.map +1 -1
  264. package/out/utils/message-center/base/message-all.js +1 -4
  265. package/out/utils/message-center/base/message-base.d.ts +23 -40
  266. package/out/utils/message-center/base/message-base.d.ts.map +1 -1
  267. package/out/utils/message-center/base/message-base.js +20 -26
  268. package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts +5 -6
  269. package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts.map +1 -1
  270. package/out/utils/message-center/command/add-in-changed/command-add-in-changed.js +3 -4
  271. package/out/utils/message-center/command/async-action/command-async-action.d.ts +6 -10
  272. package/out/utils/message-center/command/async-action/command-async-action.d.ts.map +1 -1
  273. package/out/utils/message-center/command/async-action/command-async-action.js +4 -8
  274. package/out/utils/message-center/command/change/command-change.d.ts +4 -5
  275. package/out/utils/message-center/command/change/command-change.d.ts.map +1 -1
  276. package/out/utils/message-center/command/change/command-change.js +2 -4
  277. package/out/utils/message-center/command/command-base/command-base.d.ts +10 -15
  278. package/out/utils/message-center/command/command-base/command-base.d.ts.map +1 -1
  279. package/out/utils/message-center/command/command-base/command-base.js +7 -12
  280. package/out/utils/message-center/command/create/command-create.d.ts +8 -12
  281. package/out/utils/message-center/command/create/command-create.d.ts.map +1 -1
  282. package/out/utils/message-center/command/create/command-create.js +6 -10
  283. package/out/utils/message-center/command/internal-message/command-internal-message.d.ts +7 -11
  284. package/out/utils/message-center/command/internal-message/command-internal-message.d.ts.map +1 -1
  285. package/out/utils/message-center/command/internal-message/command-internal-message.js +5 -9
  286. package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts +6 -10
  287. package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts.map +1 -1
  288. package/out/utils/message-center/command/mark-open-data/command-mark-open-data.js +4 -8
  289. package/out/utils/message-center/command/message-command.d.ts +31 -45
  290. package/out/utils/message-center/command/message-command.d.ts.map +1 -1
  291. package/out/utils/message-center/command/message-command.js +29 -43
  292. package/out/utils/message-center/command/remove/command-remove.d.ts +7 -11
  293. package/out/utils/message-center/command/remove/command-remove.d.ts.map +1 -1
  294. package/out/utils/message-center/command/remove/command-remove.js +5 -9
  295. package/out/utils/message-center/command/update/command-update.d.ts +7 -11
  296. package/out/utils/message-center/command/update/command-update.d.ts.map +1 -1
  297. package/out/utils/message-center/command/update/command-update.js +5 -9
  298. package/out/utils/message-center/console/message-console.d.ts +6 -9
  299. package/out/utils/message-center/console/message-console.d.ts.map +1 -1
  300. package/out/utils/message-center/console/message-console.js +4 -8
  301. package/out/utils/message-center/error/message-error.d.ts +6 -9
  302. package/out/utils/message-center/error/message-error.d.ts.map +1 -1
  303. package/out/utils/message-center/error/message-error.js +4 -8
  304. package/out/utils/message-center/index.d.ts +0 -1
  305. package/out/utils/message-center/index.d.ts.map +1 -1
  306. package/out/utils/message-center/message-center.d.ts +20 -35
  307. package/out/utils/message-center/message-center.d.ts.map +1 -1
  308. package/out/utils/message-center/message-center.js +18 -33
  309. package/out/utils/namespace/namespace.d.ts +45 -75
  310. package/out/utils/namespace/namespace.d.ts.map +1 -1
  311. package/out/utils/namespace/namespace.js +53 -81
  312. package/out/utils/net/http-response.d.ts +6 -66
  313. package/out/utils/net/http-response.d.ts.map +1 -1
  314. package/out/utils/net/http-response.js +4 -11
  315. package/out/utils/net/net.d.ts +57 -100
  316. package/out/utils/net/net.d.ts.map +1 -1
  317. package/out/utils/net/net.js +53 -94
  318. package/out/utils/recursive/find-recursive-child.d.ts +2 -10
  319. package/out/utils/recursive/find-recursive-child.d.ts.map +1 -1
  320. package/out/utils/recursive/find-recursive-child.js +4 -14
  321. package/out/utils/string-util/string-util.d.ts +6 -16
  322. package/out/utils/string-util/string-util.d.ts.map +1 -1
  323. package/out/utils/string-util/string-util.js +6 -16
  324. package/out/utils/style/remote-style.d.ts +1 -4
  325. package/out/utils/style/remote-style.d.ts.map +1 -1
  326. package/out/utils/style/remote-style.js +1 -4
  327. package/out/utils/sync/await-timeout.d.ts +1 -5
  328. package/out/utils/sync/await-timeout.d.ts.map +1 -1
  329. package/out/utils/sync/await-timeout.js +1 -5
  330. package/out/utils/sync/count-latch.d.ts +14 -30
  331. package/out/utils/sync/count-latch.d.ts.map +1 -1
  332. package/out/utils/sync/count-latch.js +14 -30
  333. package/out/utils/upload/select-file.d.ts +12 -29
  334. package/out/utils/upload/select-file.d.ts.map +1 -1
  335. package/out/utils/upload/select-file.js +3 -9
  336. package/out/utils/upload/upload-file.d.ts +6 -14
  337. package/out/utils/upload/upload-file.d.ts.map +1 -1
  338. package/out/utils/upload/upload-file.js +9 -23
  339. package/out/utils/url-helper/url-helper.d.ts +19 -30
  340. package/out/utils/url-helper/url-helper.d.ts.map +1 -1
  341. package/out/utils/url-helper/url-helper.js +19 -30
  342. package/out/utils/util/util.d.ts +6 -77
  343. package/out/utils/util/util.d.ts.map +1 -1
  344. package/out/utils/util/util.js +6 -77
  345. package/package.json +2 -3
  346. package/out/command/interface/command/command-option.d.ts +0 -23
  347. package/out/command/interface/command/command-option.d.ts.map +0 -1
  348. package/out/command/interface/command/command.d.ts +0 -74
  349. package/out/command/interface/command/command.d.ts.map +0 -1
  350. package/out/command/interface/disposable/disposable.d.ts +0 -4
  351. package/out/command/interface/disposable/disposable.d.ts.map +0 -1
  352. package/out/command/interface/index.d.ts +0 -4
  353. package/out/command/interface/index.d.ts.map +0 -1
  354. package/out/constant/login-mode/login-mode.d.ts.map +0 -1
  355. package/out/constant/menu-permission-mode/menu-permission-mode.d.ts.map +0 -1
  356. package/out/interface/i-18n/i-18n.d.ts +0 -81
  357. package/out/interface/i-18n/i-18n.d.ts.map +0 -1
  358. package/out/interface/i-add-in-changed/i-add-in-changed.d.ts.map +0 -1
  359. package/out/interface/i-devtool-config/i-devtool-config.d.ts +0 -40
  360. package/out/interface/i-devtool-config/i-devtool-config.d.ts.map +0 -1
  361. package/out/interface/i-environment/i-environment.d.ts +0 -346
  362. package/out/interface/i-environment/i-environment.d.ts.map +0 -1
  363. package/out/interface/i-internal-message/i-internal-message.d.ts.map +0 -1
  364. package/out/interface/i-mark-open-data/i-mark-open-data.d.ts +0 -43
  365. package/out/interface/i-mark-open-data/i-mark-open-data.d.ts.map +0 -1
  366. package/out/interface/i-portal-async-action/i-portal-async-action.d.ts +0 -163
  367. package/out/interface/i-portal-async-action/i-portal-async-action.d.ts.map +0 -1
  368. package/out/interface/i-portal-message/i-portal-message.d.ts +0 -89
  369. package/out/interface/i-portal-message/i-portal-message.d.ts.map +0 -1
  370. package/out/interface/org-data/org-data.d.ts +0 -43
  371. package/out/interface/org-data/org-data.d.ts.map +0 -1
  372. package/out/utils/message-center/interface/i-app-data-entity.d.ts +0 -20
  373. package/out/utils/message-center/interface/i-app-data-entity.d.ts.map +0 -1
  374. package/out/utils/message-center/interface/i-msg-meta-data.d.ts +0 -19
  375. package/out/utils/message-center/interface/i-msg-meta-data.d.ts.map +0 -1
  376. package/out/utils/message-center/interface/index.d.ts +0 -3
  377. package/out/utils/message-center/interface/index.d.ts.map +0 -1
  378. /package/out/interface/{i-devtool-config → api/environment}/i-devtool-config.js +0 -0
  379. /package/out/interface/{i-environment → api/environment}/i-environment.js +0 -0
  380. /package/out/{command/interface → interface/api/environment}/index.js +0 -0
  381. /package/out/{command/interface/command/command-option.js → interface/api/global-param/i-api-context.js} +0 -0
  382. /package/out/{command/interface/command/command.js → interface/api/global-param/i-global-param.js} +0 -0
  383. /package/out/{utils/message-center/interface → interface/api/global-param}/index.js +0 -0
  384. /package/out/{command/interface/disposable/disposable.js → interface/api/ibizsys/i-api-ibizsys.js} +0 -0
  385. /package/out/interface/{i-18n/i-18n.js → api/ibizsys/i-org-data.js} +0 -0
  386. /package/out/interface/{i-add-in-changed/i-add-in-changed.js → api/ibizsys/index.js} +0 -0
  387. /package/out/interface/{i-internal-message/i-internal-message.js → api/utils/i-api-i18n.js} +0 -0
  388. /package/out/interface/{i-mark-open-data/i-mark-open-data.js → api/utils/message-center/base/i-message-all.js} +0 -0
  389. /package/out/interface/{i-portal-async-action/i-portal-async-action.js → api/utils/message-center/base/i-message-base.js} +0 -0
  390. /package/out/interface/{i-portal-message/i-portal-message.js → api/utils/message-center/base/index.js} +0 -0
  391. /package/out/interface/{org-data/org-data.js → api/utils/message-center/command/add-in-changed/i-add-in-changed.js} +0 -0
  392. /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
  393. /package/out/{utils/message-center/interface/i-msg-meta-data.js → interface/api/utils/message-center/command/async-action/i-command-async-action.js} +0 -0
@@ -1,65 +1,51 @@
1
- import { ICommand, ICommandHandler, ICommandOption, ICommandRegistry, ICommandsMap, IDisposable } from './interface';
1
+ import { ICommand, ICommandHandler, ICommandOption, ICommandRegistry, ICommandsMap, IDisposable } from '../interface';
2
2
  /**
3
- * 命令注册中心
4
- *
5
- * @author chitanda
6
- * @date 2022-06-27 13:06:50
3
+ * @description 指令注册中心
7
4
  * @export
8
- * @class CommandRegisterService
5
+ * @class CommandsRegistry
9
6
  * @implements {ICommandRegistry}
10
7
  */
11
8
  export declare class CommandsRegistry implements ICommandRegistry {
12
9
  /**
13
- * 已经注册的所有指令
14
- *
15
- * @author chitanda
16
- * @date 2022-07-21 15:07:47
10
+ * @description 已经注册的所有指令
17
11
  * @private
12
+ * @memberof CommandsRegistry
18
13
  */
19
14
  private readonly commands;
20
15
  /**
21
- * 注册指令
22
- *
23
- * @author chitanda
24
- * @date 2022-06-27 13:06:31
25
- * @param {(string | ICommand)} idOrCommand
26
- * @param {ICommandHandler} [handler]
27
- * @return {*} {IDisposable}
16
+ * @description 注册指令
17
+ * @param {(string | ICommand)} idOrCommand 指令id或者指令对象
18
+ * @param {ICommandHandler} [handler] 指令处理器
19
+ * @param {ICommandOption} [opts] 指令配置参数
20
+ * @returns {*} {IDisposable} 返回一个可销毁对象,用于取消注册该指令
21
+ * @memberof CommandsRegistry
28
22
  */
29
23
  registerCommand(idOrCommand: string | ICommand, handler?: ICommandHandler, opts?: ICommandOption): IDisposable;
30
24
  /**
31
- * 指令是否已经注册
32
- *
33
- * @author chitanda
34
- * @date 2022-07-21 15:07:58
25
+ * @description 指令是否已经注册
35
26
  * @param {string} id
36
- * @return {*} {boolean}
27
+ * @returns {*} {boolean}
28
+ * @memberof CommandsRegistry
37
29
  */
38
30
  hasCommand(id: string): boolean;
39
31
  /**
40
- * 查找指令
41
- *
42
- * @author chitanda
43
- * @date 2022-07-21 16:07:12
32
+ * @description 查找指令
44
33
  * @param {string} id
45
- * @return {*} {(ICommand | undefined)}
34
+ * @returns {*} {(ICommand | undefined)}
35
+ * @memberof CommandsRegistry
46
36
  */
47
37
  getCommand(id: string): ICommand | undefined;
48
38
  /**
49
- * 获取所有指令
50
- *
51
- * @author chitanda
52
- * @date 2022-07-21 16:07:20
53
- * @return {*} {ICommandsMap}
39
+ * @description 获取所有指令
40
+ * @returns {*} {ICommandsMap}
41
+ * @memberof CommandsRegistry
54
42
  */
55
43
  getCommands(): ICommandsMap;
56
44
  /**
57
- * 获取指令配置参数
58
- *
59
- * @author chitanda
60
- * @date 2022-07-21 16:07:27
45
+ * @description 获取指令配置参数
61
46
  * @param {string} id
62
- * @return {*} {(ICommandOption | undefined)}
47
+ * @returns {*} {(ICommandOption | undefined)}
48
+ * @memberof CommandsRegistry
63
49
  */
64
50
  getCommandOpt(id: string): ICommandOption | undefined;
65
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"command-register.d.ts","sourceRoot":"","sources":["../../src/command/command-register.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACZ,MAAM,aAAa,CAAC;AAGrB;;;;;;;;GAQG;AACH,qBAAa,gBAAiB,YAAW,gBAAgB;IACvD;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2C;IAEpE;;;;;;;;OAQG;IACH,eAAe,CACb,WAAW,EAAE,MAAM,GAAG,QAAQ,EAC9B,OAAO,CAAC,EAAE,eAAe,EACzB,IAAI,CAAC,EAAE,cAAc,GACpB,WAAW;IAiCd;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAI/B;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS;IAQ5C;;;;;;OAMG;IACH,WAAW,IAAI,YAAY;IAY3B;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;CAItD"}
1
+ {"version":3,"file":"command-register.d.ts","sourceRoot":"","sources":["../../src/command/command-register.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACZ,MAAM,cAAc,CAAC;AAGtB;;;;;GAKG;AACH,qBAAa,gBAAiB,YAAW,gBAAgB;IACvD;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2C;IAEpE;;;;;;;OAOG;IACH,eAAe,CACb,WAAW,EAAE,MAAM,GAAG,QAAQ,EAC9B,OAAO,CAAC,EAAE,eAAe,EACzB,IAAI,CAAC,EAAE,cAAc,GACpB,WAAW;IAiCd;;;;;OAKG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAI/B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS;IAQ5C;;;;OAIG;IACH,WAAW,IAAI,YAAY;IAY3B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;CAItD"}
@@ -1,32 +1,26 @@
1
1
  import { LinkedList, toDisposable } from './utils';
2
2
  /**
3
- * 命令注册中心
4
- *
5
- * @author chitanda
6
- * @date 2022-06-27 13:06:50
3
+ * @description 指令注册中心
7
4
  * @export
8
- * @class CommandRegisterService
5
+ * @class CommandsRegistry
9
6
  * @implements {ICommandRegistry}
10
7
  */
11
8
  export class CommandsRegistry {
12
9
  constructor() {
13
10
  /**
14
- * 已经注册的所有指令
15
- *
16
- * @author chitanda
17
- * @date 2022-07-21 15:07:47
11
+ * @description 已经注册的所有指令
18
12
  * @private
13
+ * @memberof CommandsRegistry
19
14
  */
20
15
  this.commands = new Map();
21
16
  }
22
17
  /**
23
- * 注册指令
24
- *
25
- * @author chitanda
26
- * @date 2022-06-27 13:06:31
27
- * @param {(string | ICommand)} idOrCommand
28
- * @param {ICommandHandler} [handler]
29
- * @return {*} {IDisposable}
18
+ * @description 注册指令
19
+ * @param {(string | ICommand)} idOrCommand 指令id或者指令对象
20
+ * @param {ICommandHandler} [handler] 指令处理器
21
+ * @param {ICommandOption} [opts] 指令配置参数
22
+ * @returns {*} {IDisposable} 返回一个可销毁对象,用于取消注册该指令
23
+ * @memberof CommandsRegistry
30
24
  */
31
25
  registerCommand(idOrCommand, handler, opts) {
32
26
  if (!idOrCommand) {
@@ -55,23 +49,19 @@ export class CommandsRegistry {
55
49
  return ret;
56
50
  }
57
51
  /**
58
- * 指令是否已经注册
59
- *
60
- * @author chitanda
61
- * @date 2022-07-21 15:07:58
52
+ * @description 指令是否已经注册
62
53
  * @param {string} id
63
- * @return {*} {boolean}
54
+ * @returns {*} {boolean}
55
+ * @memberof CommandsRegistry
64
56
  */
65
57
  hasCommand(id) {
66
58
  return this.commands.has(id);
67
59
  }
68
60
  /**
69
- * 查找指令
70
- *
71
- * @author chitanda
72
- * @date 2022-07-21 16:07:12
61
+ * @description 查找指令
73
62
  * @param {string} id
74
- * @return {*} {(ICommand | undefined)}
63
+ * @returns {*} {(ICommand | undefined)}
64
+ * @memberof CommandsRegistry
75
65
  */
76
66
  getCommand(id) {
77
67
  const list = this.commands.get(id);
@@ -81,11 +71,9 @@ export class CommandsRegistry {
81
71
  return list[Symbol.iterator]().next().value;
82
72
  }
83
73
  /**
84
- * 获取所有指令
85
- *
86
- * @author chitanda
87
- * @date 2022-07-21 16:07:20
88
- * @return {*} {ICommandsMap}
74
+ * @description 获取所有指令
75
+ * @returns {*} {ICommandsMap}
76
+ * @memberof CommandsRegistry
89
77
  */
90
78
  getCommands() {
91
79
  const result = new Map();
@@ -99,12 +87,10 @@ export class CommandsRegistry {
99
87
  return result;
100
88
  }
101
89
  /**
102
- * 获取指令配置参数
103
- *
104
- * @author chitanda
105
- * @date 2022-07-21 16:07:27
90
+ * @description 获取指令配置参数
106
91
  * @param {string} id
107
- * @return {*} {(ICommandOption | undefined)}
92
+ * @returns {*} {(ICommandOption | undefined)}
93
+ * @memberof CommandsRegistry
108
94
  */
109
95
  getCommandOpt(id) {
110
96
  const cmd = this.getCommand(id);
@@ -1,53 +1,47 @@
1
- import { ICommandHandler, ICommandOption, IDisposable } from './interface';
1
+ import { ICommandController, ICommandHandler, ICommandOption, IDisposable } from '../interface/command';
2
2
  /**
3
- * 指令控制器
4
- *
5
- * @author chitanda
6
- * @date 2022-06-28 19:06:51
3
+ * @description 指令控制器
7
4
  * @export
8
5
  * @class CommandController
9
6
  */
10
- export declare class CommandController {
7
+ export declare class CommandController implements ICommandController {
8
+ /**
9
+ * @description 指令注册器
10
+ * @private
11
+ * @memberof CommandController
12
+ */
11
13
  private commandRegister;
12
14
  /**
13
- * 注册指令
14
- *
15
- * @author chitanda
16
- * @date 2022-06-28 19:06:45
17
- * @param {string} id
18
- * @param {ICommandHandler} handler
19
- * @param {ICommandOption} [opts]
20
- * @return {*} {IDisposable}
15
+ * @description 注册指令
16
+ * @param {string} id 指令id
17
+ * @param {ICommandHandler} handler 指令处理回调
18
+ * @param {ICommandOption} [opts] 指令参数
19
+ * @returns {*} {IDisposable} 指令释放对象
20
+ * @memberof CommandController
21
21
  */
22
22
  register(id: string, handler: ICommandHandler, opts?: ICommandOption): IDisposable;
23
23
  /**
24
- * 执行指令
25
- *
26
- * @author chitanda
27
- * @date 2022-06-28 19:06:38
24
+ * @description 执行指令
28
25
  * @template T
29
- * @param {string} id
30
- * @param {...unknown[]} args
31
- * @return {*} {Promise<T>}
26
+ * @param {string} id 指令id
27
+ * @param {...unknown[]} args 指令参数
28
+ * @returns {*} {Promise<T>} 指令返回值
29
+ * @memberof CommandController
32
30
  */
33
31
  execute<T = undefined>(id: string, ...args: unknown[]): Promise<T>;
34
32
  /**
35
- * 判断指令是否存在,可直接抛出异常
36
- *
37
- * @author chitanda
38
- * @date 2022-06-28 19:06:11
39
- * @param {string} id
40
- * @param {boolean} [err]
41
- * @return {*} {boolean}
33
+ * @description 判断指令是否存在,没有则直接抛出异常
34
+ * @param {string} id 指令id
35
+ * @param {boolean} [err] 是否抛出异常
36
+ * @returns {*} {boolean} 是否存在
37
+ * @memberof CommandController
42
38
  */
43
39
  hasCommand(id: string, err?: boolean): boolean;
44
40
  /**
45
- * 获取指令配置参数
46
- *
47
- * @author chitanda
48
- * @date 2022-07-21 17:07:11
49
- * @param {string} id
50
- * @return {*} {(ICommandOption | undefined)}
41
+ * @description 获取指令参数
42
+ * @param {string} id 指令id
43
+ * @returns {*} {(ICommandOption | undefined)} 指令参数
44
+ * @memberof CommandController
51
45
  */
52
46
  getCommandOpts(id: string): ICommandOption | undefined;
53
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/command/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG3E;;;;;;;GAOG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,eAAe,CAA0B;IAEjD;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,eAAe,EACxB,IAAI,CAAC,EAAE,cAAc,GACpB,WAAW;IAId;;;;;;;;;OASG;IACG,OAAO,CAAC,CAAC,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC;IAQxE;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,OAAO;IAQ9C;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;CAGvD"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/command/command.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAG9B;;;;GAIG;AACH,qBAAa,iBAAkB,YAAW,kBAAkB;IAC1D;;;;OAIG;IACH,OAAO,CAAC,eAAe,CAA0B;IAEjD;;;;;;;OAOG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,eAAe,EACxB,IAAI,CAAC,EAAE,cAAc,GACpB,WAAW;IAId;;;;;;;OAOG;IACG,OAAO,CAAC,CAAC,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC;IAQxE;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,OAAO;IAQ9C;;;;;OAKG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;CAGvD"}
@@ -1,38 +1,36 @@
1
1
  import { CommandsRegistry } from './command-register';
2
2
  /**
3
- * 指令控制器
4
- *
5
- * @author chitanda
6
- * @date 2022-06-28 19:06:51
3
+ * @description 指令控制器
7
4
  * @export
8
5
  * @class CommandController
9
6
  */
10
7
  export class CommandController {
11
8
  constructor() {
9
+ /**
10
+ * @description 指令注册器
11
+ * @private
12
+ * @memberof CommandController
13
+ */
12
14
  this.commandRegister = new CommandsRegistry();
13
15
  }
14
16
  /**
15
- * 注册指令
16
- *
17
- * @author chitanda
18
- * @date 2022-06-28 19:06:45
19
- * @param {string} id
20
- * @param {ICommandHandler} handler
21
- * @param {ICommandOption} [opts]
22
- * @return {*} {IDisposable}
17
+ * @description 注册指令
18
+ * @param {string} id 指令id
19
+ * @param {ICommandHandler} handler 指令处理回调
20
+ * @param {ICommandOption} [opts] 指令参数
21
+ * @returns {*} {IDisposable} 指令释放对象
22
+ * @memberof CommandController
23
23
  */
24
24
  register(id, handler, opts) {
25
25
  return this.commandRegister.registerCommand(id, handler, opts);
26
26
  }
27
27
  /**
28
- * 执行指令
29
- *
30
- * @author chitanda
31
- * @date 2022-06-28 19:06:38
28
+ * @description 执行指令
32
29
  * @template T
33
- * @param {string} id
34
- * @param {...unknown[]} args
35
- * @return {*} {Promise<T>}
30
+ * @param {string} id 指令id
31
+ * @param {...unknown[]} args 指令参数
32
+ * @returns {*} {Promise<T>} 指令返回值
33
+ * @memberof CommandController
36
34
  */
37
35
  async execute(id, ...args) {
38
36
  const command = this.commandRegister.getCommand(id);
@@ -42,13 +40,11 @@ export class CommandController {
42
40
  throw new Error(ibiz.i18n.t('core.command.unregisteredCommand', { id }));
43
41
  }
44
42
  /**
45
- * 判断指令是否存在,可直接抛出异常
46
- *
47
- * @author chitanda
48
- * @date 2022-06-28 19:06:11
49
- * @param {string} id
50
- * @param {boolean} [err]
51
- * @return {*} {boolean}
43
+ * @description 判断指令是否存在,没有则直接抛出异常
44
+ * @param {string} id 指令id
45
+ * @param {boolean} [err] 是否抛出异常
46
+ * @returns {*} {boolean} 是否存在
47
+ * @memberof CommandController
52
48
  */
53
49
  hasCommand(id, err) {
54
50
  const bol = !!this.commandRegister.hasCommand(id);
@@ -58,12 +54,10 @@ export class CommandController {
58
54
  return bol;
59
55
  }
60
56
  /**
61
- * 获取指令配置参数
62
- *
63
- * @author chitanda
64
- * @date 2022-07-21 17:07:11
65
- * @param {string} id
66
- * @return {*} {(ICommandOption | undefined)}
57
+ * @description 获取指令参数
58
+ * @param {string} id 指令id
59
+ * @returns {*} {(ICommandOption | undefined)} 指令参数
60
+ * @memberof CommandController
67
61
  */
68
62
  getCommandOpts(id) {
69
63
  return this.commandRegister.getCommandOpt(id);
@@ -1,10 +1,7 @@
1
1
  import { CommandController } from './command';
2
- export * from './interface';
2
+ export * from '../interface/command';
3
3
  export * from './utils';
4
4
  export { CommandsRegistry } from './command-register';
5
5
  export { CommandController } from './command';
6
- /**
7
- * 命令控制器
8
- */
9
6
  export declare const commands: CommandController;
10
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,QAAQ,mBAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,eAAO,MAAM,QAAQ,mBAA0B,CAAC"}
@@ -1,9 +1,7 @@
1
1
  import { CommandController } from './command';
2
- export * from './interface';
2
+ export * from '../interface/command';
3
3
  export * from './utils';
4
4
  export { CommandsRegistry } from './command-register';
5
5
  export { CommandController } from './command';
6
- /**
7
- * 命令控制器
8
- */
6
+ // 命令控制器
9
7
  export const commands = new CommandController();
@@ -1,27 +1,35 @@
1
- import { IDisposable } from '../interface';
1
+ import { IDisposable } from '../../interface';
2
+ /**
3
+ * @description 创建一个只能执行一次的包装函数
4
+ * @export
5
+ * @template T 函数类型
6
+ * @param {unknown} this 函数执行上下文
7
+ * @param {T} fn 需要包装的原始函数
8
+ * @returns {*} {T} 包装后的函数,只会执行一次原始函数
9
+ */
2
10
  export declare function once<T extends Function>(this: unknown, fn: T): T;
11
+ /**
12
+ * @description 将普通函数转换为一次性可销毁对象
13
+ * @export
14
+ * @param {() => void} fn 需要转换的函数
15
+ * @returns {*} {IDisposable} 可销毁对象
16
+ */
3
17
  export declare function toDisposable(fn: () => void): IDisposable;
4
18
  /**
5
- * 函数防抖---“立即执行版本” 和 “非立即执行版本” 的组合版本
6
- *
7
- * @author chitanda
8
- * @date 2022-06-29 19:06:15
19
+ * @description 函数防抖
9
20
  * @export
10
- * @param {((...args: unknown[]) => void | Promise<void>)} func 处理函数
11
- * @param {number} wait 延迟执行时间(毫秒)
21
+ * @param {((...args: unknown[]) => void | Promise<void>)} func 要执行的函数
22
+ * @param {number} wait 延迟时间(毫秒)
12
23
  * @param {boolean} [immediate] 是否立即执行
13
- * @return {*} {(...args: unknown[]) => void}
24
+ * @returns {*} {(...args: unknown[]) => void} 包装后的防抖函数
14
25
  */
15
26
  export declare function debounce(func: (...args: unknown[]) => void | Promise<void>, wait: number, immediate?: boolean): (...args: unknown[]) => void;
16
27
  /**
17
- * 节流函数
18
- *
19
- * @author chitanda
20
- * @date 2022-06-29 20:06:38
28
+ * @description 节流函数,限制函数在指定时间间隔内只能执行一次
21
29
  * @export
22
- * @param {((...args: unknown[]) => void | Promise<void>)} fn
23
- * @param {number} wait
24
- * @return {*} {(...args: unknown[]) => void}
30
+ * @param {((...args: unknown[]) => void | Promise<void>)} fn 要执行的函数
31
+ * @param {number} wait 节流时间间隔(毫秒)
32
+ * @returns {*} {(...args: unknown[]) => void} 包装后的节流函数
25
33
  */
26
34
  export declare function throttle(fn: (...args: unknown[]) => void | Promise<void>, wait: number): (...args: unknown[]) => void;
27
35
  //# sourceMappingURL=util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/command/utils/util.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,wBAAgB,IAAI,CAAC,CAAC,SAAS,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,CAgBhE;AAED,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,WAAW,CAOxD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAClD,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,OAAO,GAClB,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAqB9B;AAED;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CACtB,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAChD,IAAI,EAAE,MAAM,GACX,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAU9B"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/command/utils/util.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,CAehE;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,WAAW,CAOxD;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAClD,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,OAAO,GAClB,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAqB9B;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAChD,IAAI,EAAE,MAAM,GACX,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAU9B"}
@@ -1,6 +1,12 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-types
1
+ /**
2
+ * @description 创建一个只能执行一次的包装函数
3
+ * @export
4
+ * @template T 函数类型
5
+ * @param {unknown} this 函数执行上下文
6
+ * @param {T} fn 需要包装的原始函数
7
+ * @returns {*} {T} 包装后的函数,只会执行一次原始函数
8
+ */
2
9
  export function once(fn) {
3
- // eslint-disable-next-line @typescript-eslint/no-this-alias
4
10
  const _this = this;
5
11
  let didCall = false;
6
12
  let result;
@@ -13,6 +19,12 @@ export function once(fn) {
13
19
  return result;
14
20
  };
15
21
  }
22
+ /**
23
+ * @description 将普通函数转换为一次性可销毁对象
24
+ * @export
25
+ * @param {() => void} fn 需要转换的函数
26
+ * @returns {*} {IDisposable} 可销毁对象
27
+ */
16
28
  export function toDisposable(fn) {
17
29
  const self = {
18
30
  dispose: once(() => {
@@ -22,15 +34,12 @@ export function toDisposable(fn) {
22
34
  return self;
23
35
  }
24
36
  /**
25
- * 函数防抖---“立即执行版本” 和 “非立即执行版本” 的组合版本
26
- *
27
- * @author chitanda
28
- * @date 2022-06-29 19:06:15
37
+ * @description 函数防抖
29
38
  * @export
30
- * @param {((...args: unknown[]) => void | Promise<void>)} func 处理函数
31
- * @param {number} wait 延迟执行时间(毫秒)
39
+ * @param {((...args: unknown[]) => void | Promise<void>)} func 要执行的函数
40
+ * @param {number} wait 延迟时间(毫秒)
32
41
  * @param {boolean} [immediate] 是否立即执行
33
- * @return {*} {(...args: unknown[]) => void}
42
+ * @returns {*} {(...args: unknown[]) => void} 包装后的防抖函数
34
43
  */
35
44
  export function debounce(func, wait, immediate) {
36
45
  let timer;
@@ -55,14 +64,11 @@ export function debounce(func, wait, immediate) {
55
64
  };
56
65
  }
57
66
  /**
58
- * 节流函数
59
- *
60
- * @author chitanda
61
- * @date 2022-06-29 20:06:38
67
+ * @description 节流函数,限制函数在指定时间间隔内只能执行一次
62
68
  * @export
63
- * @param {((...args: unknown[]) => void | Promise<void>)} fn
64
- * @param {number} wait
65
- * @return {*} {(...args: unknown[]) => void}
69
+ * @param {((...args: unknown[]) => void | Promise<void>)} fn 要执行的函数
70
+ * @param {number} wait 节流时间间隔(毫秒)
71
+ * @returns {*} {(...args: unknown[]) => void} 包装后的节流函数
66
72
  */
67
73
  export function throttle(fn, wait) {
68
74
  let timer = null;
@@ -1,59 +1,49 @@
1
1
  /**
2
- * 核心全局静态变量
3
- *
4
- * @author chitanda
5
- * @date 2022-07-14 17:07:25
2
+ * @description 核心全局静态变量
6
3
  * @export
7
- * @enum {number}
4
+ * @class CoreConst
8
5
  */
9
6
  export declare class CoreConst {
10
7
  /**
11
- * 默认模型服务标识
12
- *
13
- * @author chitanda
14
- * @date 2024-01-18 16:01:25
8
+ * @description 默认模型服务标识
15
9
  * @static
10
+ * @memberof CoreConst
16
11
  */
17
12
  static readonly DEFAULT_MODEL_SERVICE_TAG = "default";
18
13
  /**
19
- * 访问令牌标识
20
- *
21
- * @author chitanda
22
- * @date 2022-07-20 15:07:28
14
+ * @description 访问令牌标识
23
15
  * @static
16
+ * @memberof CoreConst
24
17
  */
25
18
  static readonly TOKEN = "ibzuaa-token";
26
19
  /**
27
- * 刷新令牌标识
28
- *
29
- * @author chitanda
30
- * @date 2024-01-18 16:01:54
20
+ * @description 刷新令牌标识
31
21
  * @static
22
+ * @memberof CoreConst
32
23
  */
33
24
  static readonly REFRESH_TOKEN = "ibzuaa-refresh-token";
34
25
  /**
35
- * 访问令牌标识过期时间
36
- *
37
- * @author lxm
38
- * @date 2023-02-13 07:11:33
26
+ * @description 访问令牌标识过期时间
39
27
  * @static
40
28
  * @memberof CoreConst
41
29
  */
42
30
  static readonly TOKEN_EXPIRES = "ibzuaa-token-expires";
43
31
  /**
44
- * 认证信息是走记住我模式的 cookie 标识
45
- *
46
- * @author chitanda
47
- * @date 2023-12-13 15:12:28
32
+ * @description 认证信息是走记住我模式的 cookie 标识
48
33
  * @static
34
+ * @memberof CoreConst
49
35
  */
50
36
  static readonly TOKEN_REMEMBER = "ibizuaa-token-remember";
51
37
  /**
52
- * 是否是匿名用户登录的 cookie 标识
53
- * @author lxm
54
- * @date 2024-01-03 05:35:40
38
+ * @description 是否是匿名用户登录的 cookie 标识
55
39
  * @static
40
+ * @memberof CoreConst
56
41
  */
57
42
  static readonly IS_ANONYMOUS = "ibizuaa-is-anonymous";
43
+ /**
44
+ * @description 存储访问相关数据键的集合名称
45
+ * @static
46
+ */
47
+ static readonly ACCESS_STORE_AREA_KEYS = "ibizuaa-access-store-area-keys";
58
48
  }
59
49
  //# sourceMappingURL=core.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/constant/core/core.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,qBAAa,SAAS;IACpB;;;;;;OAMG;IACH,MAAM,CAAC,QAAQ,CAAC,yBAAyB,aAAa;IAEtD;;;;;;OAMG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAK,kBAAkB;IAEvC;;;;;;OAMG;IACH,MAAM,CAAC,QAAQ,CAAC,aAAa,0BAA0B;IAEvD;;;;;;;OAOG;IACH,MAAM,CAAC,QAAQ,CAAC,aAAa,0BAA0B;IAEvD;;;;;;OAMG;IACH,MAAM,CAAC,QAAQ,CAAC,cAAc,4BAA4B;IAE1D;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,YAAY,0BAA0B;CACvD"}
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/constant/core/core.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,SAAS;IACpB;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,yBAAyB,aAAa;IAEtD;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAK,kBAAkB;IAEvC;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,aAAa,0BAA0B;IAEvD;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,aAAa,0BAA0B;IAEvD;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,cAAc,4BAA4B;IAE1D;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,YAAY,0BAA0B;IAEtD;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,sBAAsB,oCAAoC;CAC3E"}