@ibiz-template/core 0.7.38-alpha.57 → 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 (395) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +106 -0
  3. package/dist/index.esm.js +591 -658
  4. package/dist/index.system.min.js +1 -1
  5. package/out/command/command-register.d.ts +23 -37
  6. package/out/command/command-register.d.ts.map +1 -1
  7. package/out/command/command-register.js +22 -36
  8. package/out/command/command.d.ts +28 -34
  9. package/out/command/command.d.ts.map +1 -1
  10. package/out/command/command.js +26 -32
  11. package/out/command/index.d.ts +1 -4
  12. package/out/command/index.d.ts.map +1 -1
  13. package/out/command/index.js +2 -4
  14. package/out/command/utils/util.d.ts +23 -15
  15. package/out/command/utils/util.d.ts.map +1 -1
  16. package/out/command/utils/util.js +22 -16
  17. package/out/constant/core/core.d.ts +18 -28
  18. package/out/constant/core/core.d.ts.map +1 -1
  19. package/out/constant/core/core.js +18 -28
  20. package/out/constant/emoji/emoji.d.ts.map +1 -1
  21. package/out/constant/emoji/emoji.js +2 -0
  22. package/out/constant/http-status-message/http-status-message.d.ts +0 -3
  23. package/out/constant/http-status-message/http-status-message.d.ts.map +1 -1
  24. package/out/constant/http-status-message/http-status-message.js +1 -3
  25. package/out/constant/index.d.ts +2 -4
  26. package/out/constant/index.d.ts.map +1 -1
  27. package/out/constant/index.js +2 -4
  28. package/out/constant/util/util.d.ts +0 -3
  29. package/out/constant/util/util.d.ts.map +1 -1
  30. package/out/constant/util/util.js +1 -3
  31. package/out/context/index.d.ts +34 -51
  32. package/out/context/index.d.ts.map +1 -1
  33. package/out/context/index.js +24 -33
  34. package/out/environment/environment.d.ts +0 -3
  35. package/out/environment/environment.d.ts.map +1 -1
  36. package/out/environment/environment.js +9 -4
  37. package/out/error/http-error/entity-error.d.ts +3 -17
  38. package/out/error/http-error/entity-error.d.ts.map +1 -1
  39. package/out/error/http-error/entity-error.js +2 -5
  40. package/out/error/http-error/http-error-factory.d.ts +5 -0
  41. package/out/error/http-error/http-error-factory.d.ts.map +1 -1
  42. package/out/error/http-error/http-error-factory.js +5 -0
  43. package/out/error/http-error/http-error.d.ts +3 -10
  44. package/out/error/http-error/http-error.d.ts.map +1 -1
  45. package/out/error/http-error/http-error.js +2 -5
  46. package/out/error/model-error/model-error.d.ts +5 -9
  47. package/out/error/model-error/model-error.d.ts.map +1 -1
  48. package/out/error/model-error/model-error.js +5 -9
  49. package/out/error/notice-error/notice-error.d.ts +2 -5
  50. package/out/error/notice-error/notice-error.d.ts.map +1 -1
  51. package/out/error/notice-error/notice-error.js +2 -5
  52. package/out/error/runtime-error/runtime-error.d.ts +2 -5
  53. package/out/error/runtime-error/runtime-error.d.ts.map +1 -1
  54. package/out/error/runtime-error/runtime-error.js +2 -5
  55. package/out/error/runtime-model-error/runtime-model-error.d.ts +5 -10
  56. package/out/error/runtime-model-error/runtime-model-error.d.ts.map +1 -1
  57. package/out/error/runtime-model-error/runtime-model-error.js +5 -10
  58. package/out/ibizsys.d.ts +24 -44
  59. package/out/ibizsys.d.ts.map +1 -1
  60. package/out/ibizsys.js +15 -29
  61. package/out/index.d.ts.map +1 -1
  62. package/out/install.d.ts +1 -4
  63. package/out/install.d.ts.map +1 -1
  64. package/out/install.js +1 -4
  65. package/out/interface/api/constant/index.d.ts +3 -0
  66. package/out/interface/api/constant/index.d.ts.map +1 -0
  67. package/out/interface/api/constant/index.js +2 -0
  68. package/out/{constant → interface/api/constant}/login-mode/login-mode.d.ts +1 -4
  69. package/out/interface/api/constant/login-mode/login-mode.d.ts.map +1 -0
  70. package/out/{constant → interface/api/constant}/login-mode/login-mode.js +1 -4
  71. package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.d.ts +1 -4
  72. package/out/interface/api/constant/menu-permission-mode/menu-permission-mode.d.ts.map +1 -0
  73. package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.js +1 -4
  74. package/out/interface/api/environment/i-devtool-config.d.ts +33 -0
  75. package/out/interface/api/environment/i-devtool-config.d.ts.map +1 -0
  76. package/out/interface/api/environment/i-environment.d.ts +282 -0
  77. package/out/interface/api/environment/i-environment.d.ts.map +1 -0
  78. package/out/interface/api/environment/index.d.ts +3 -0
  79. package/out/interface/api/environment/index.d.ts.map +1 -0
  80. package/out/interface/api/global-param/i-api-context.d.ts +33 -0
  81. package/out/interface/api/global-param/i-api-context.d.ts.map +1 -0
  82. package/out/interface/api/global-param/i-global-param.d.ts +25 -0
  83. package/out/interface/api/global-param/i-global-param.d.ts.map +1 -0
  84. package/out/interface/api/global-param/index.d.ts +3 -0
  85. package/out/interface/api/global-param/index.d.ts.map +1 -0
  86. package/out/interface/api/ibizsys/i-api-ibizsys.d.ts +48 -0
  87. package/out/interface/api/ibizsys/i-api-ibizsys.d.ts.map +1 -0
  88. package/out/interface/api/ibizsys/i-org-data.d.ts +32 -0
  89. package/out/interface/api/ibizsys/i-org-data.d.ts.map +1 -0
  90. package/out/interface/api/ibizsys/index.d.ts +3 -0
  91. package/out/interface/api/ibizsys/index.d.ts.map +1 -0
  92. package/out/interface/api/index.d.ts +6 -0
  93. package/out/interface/api/index.d.ts.map +1 -0
  94. package/out/interface/api/index.js +5 -0
  95. package/out/interface/api/utils/i-api-i18n.d.ts +51 -0
  96. package/out/interface/api/utils/i-api-i18n.d.ts.map +1 -0
  97. package/out/interface/api/utils/index.d.ts +5 -0
  98. package/out/interface/api/utils/index.d.ts.map +1 -0
  99. package/out/interface/api/utils/index.js +1 -0
  100. package/out/interface/api/utils/message-center/base/i-message-all.d.ts +10 -0
  101. package/out/interface/api/utils/message-center/base/i-message-all.d.ts.map +1 -0
  102. package/out/interface/api/utils/message-center/base/i-message-base.d.ts +27 -0
  103. package/out/interface/api/utils/message-center/base/i-message-base.d.ts.map +1 -0
  104. package/out/interface/api/utils/message-center/base/index.d.ts +3 -0
  105. package/out/interface/api/utils/message-center/base/index.d.ts.map +1 -0
  106. package/out/interface/{i-add-in-changed → api/utils/message-center/command/add-in-changed}/i-add-in-changed.d.ts +4 -8
  107. package/out/interface/api/utils/message-center/command/add-in-changed/i-add-in-changed.d.ts.map +1 -0
  108. package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts +17 -0
  109. package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts.map +1 -0
  110. package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts +17 -0
  111. package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts.map +1 -0
  112. package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts +10 -0
  113. package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts.map +1 -0
  114. package/out/interface/api/utils/message-center/command/change/i-command-change.js +1 -0
  115. package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts +18 -0
  116. package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts.map +1 -0
  117. package/out/interface/api/utils/message-center/command/create/i-command-create.js +1 -0
  118. package/out/interface/api/utils/message-center/command/i-command-base.d.ts +20 -0
  119. package/out/interface/api/utils/message-center/command/i-command-base.d.ts.map +1 -0
  120. package/out/interface/api/utils/message-center/command/i-command-base.js +1 -0
  121. package/out/interface/api/utils/message-center/command/i-message-command.d.ts +82 -0
  122. package/out/interface/api/utils/message-center/command/i-message-command.d.ts.map +1 -0
  123. package/out/interface/api/utils/message-center/command/i-message-command.js +1 -0
  124. package/out/interface/api/utils/message-center/command/index.d.ts +14 -0
  125. package/out/interface/api/utils/message-center/command/index.d.ts.map +1 -0
  126. package/out/interface/api/utils/message-center/command/index.js +1 -0
  127. package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts +17 -0
  128. package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts.map +1 -0
  129. package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.js +1 -0
  130. package/out/interface/{i-internal-message → api/utils/message-center/command/internal-message}/i-internal-message.d.ts +35 -54
  131. package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.d.ts.map +1 -0
  132. package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.js +1 -0
  133. package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts +17 -0
  134. package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts.map +1 -0
  135. package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.js +1 -0
  136. package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts +46 -0
  137. package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts.map +1 -0
  138. package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.js +1 -0
  139. package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts +18 -0
  140. package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts.map +1 -0
  141. package/out/interface/api/utils/message-center/command/remove/i-command-remove.js +1 -0
  142. package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts +18 -0
  143. package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts.map +1 -0
  144. package/out/interface/api/utils/message-center/command/update/i-command-update.js +1 -0
  145. package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts +16 -0
  146. package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts.map +1 -0
  147. package/out/interface/api/utils/message-center/common/i-app-data-entity.js +1 -0
  148. package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts +10 -0
  149. package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts.map +1 -0
  150. package/out/interface/api/utils/message-center/common/i-message-center-event.js +1 -0
  151. package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts +14 -0
  152. package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts.map +1 -0
  153. package/out/interface/api/utils/message-center/common/i-msg-meta-data.js +1 -0
  154. package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts +134 -0
  155. package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts.map +1 -0
  156. package/out/interface/api/utils/message-center/common/i-portal-async-action.js +1 -0
  157. package/out/interface/api/utils/message-center/common/i-portal-message.d.ts +70 -0
  158. package/out/interface/api/utils/message-center/common/i-portal-message.d.ts.map +1 -0
  159. package/out/interface/api/utils/message-center/common/i-portal-message.js +1 -0
  160. package/out/interface/api/utils/message-center/common/index.d.ts +6 -0
  161. package/out/interface/api/utils/message-center/common/index.d.ts.map +1 -0
  162. package/out/interface/api/utils/message-center/common/index.js +1 -0
  163. package/out/interface/api/utils/message-center/console/i-message-console.d.ts +17 -0
  164. package/out/interface/api/utils/message-center/console/i-message-console.d.ts.map +1 -0
  165. package/out/interface/api/utils/message-center/console/i-message-console.js +1 -0
  166. package/out/interface/api/utils/message-center/error/i-message-error.d.ts +17 -0
  167. package/out/interface/api/utils/message-center/error/i-message-error.d.ts.map +1 -0
  168. package/out/interface/api/utils/message-center/error/i-message-error.js +1 -0
  169. package/out/interface/api/utils/message-center/i-message-center.d.ts +48 -0
  170. package/out/interface/api/utils/message-center/i-message-center.d.ts.map +1 -0
  171. package/out/interface/api/utils/message-center/i-message-center.js +1 -0
  172. package/out/interface/api/utils/message-center/index.d.ts +7 -0
  173. package/out/interface/api/utils/message-center/index.d.ts.map +1 -0
  174. package/out/interface/api/utils/message-center/index.js +3 -0
  175. package/out/interface/api/utils/net/i-api-net.d.ts +65 -0
  176. package/out/interface/api/utils/net/i-api-net.d.ts.map +1 -0
  177. package/out/interface/api/utils/net/i-api-net.js +1 -0
  178. package/out/interface/api/utils/net/i-http-response.d.ts +60 -0
  179. package/out/interface/api/utils/net/i-http-response.d.ts.map +1 -0
  180. package/out/interface/api/utils/net/i-http-response.js +1 -0
  181. package/out/interface/click-outside/click-outside.d.ts +15 -36
  182. package/out/interface/click-outside/click-outside.d.ts.map +1 -1
  183. package/out/interface/command/command/i-command-option.d.ts +46 -0
  184. package/out/interface/command/command/i-command-option.d.ts.map +1 -0
  185. package/out/interface/command/command/i-command-option.js +1 -0
  186. package/out/interface/command/command/i-command.d.ts +61 -0
  187. package/out/interface/command/command/i-command.d.ts.map +1 -0
  188. package/out/interface/command/command/i-command.js +1 -0
  189. package/out/interface/command/disposable/i-disposable.d.ts +13 -0
  190. package/out/interface/command/disposable/i-disposable.d.ts.map +1 -0
  191. package/out/interface/command/disposable/i-disposable.js +1 -0
  192. package/out/interface/command/i-command-controller.d.ts +43 -0
  193. package/out/interface/command/i-command-controller.d.ts.map +1 -0
  194. package/out/interface/command/i-command-controller.js +1 -0
  195. package/out/interface/command/index.d.ts +5 -0
  196. package/out/interface/command/index.d.ts.map +1 -0
  197. package/out/interface/command/index.js +1 -0
  198. package/out/interface/context/index.d.ts +39 -0
  199. package/out/interface/context/index.d.ts.map +1 -0
  200. package/out/interface/context/index.js +1 -0
  201. package/out/interface/error/index.d.ts +12 -0
  202. package/out/interface/error/index.d.ts.map +1 -0
  203. package/out/interface/error/index.js +1 -0
  204. package/out/interface/i-chat-message/i-chat-message.d.ts +24 -37
  205. package/out/interface/i-chat-message/i-chat-message.d.ts.map +1 -1
  206. package/out/interface/ibizsys/i-ibizsys.d.ts +30 -0
  207. package/out/interface/ibizsys/i-ibizsys.d.ts.map +1 -0
  208. package/out/interface/ibizsys/i-ibizsys.js +1 -0
  209. package/out/interface/ibizsys/index.d.ts +2 -0
  210. package/out/interface/ibizsys/index.d.ts.map +1 -0
  211. package/out/interface/ibizsys/index.js +1 -0
  212. package/out/interface/index.d.ts +8 -9
  213. package/out/interface/index.d.ts.map +1 -1
  214. package/out/interface/index.js +6 -0
  215. package/out/interface/utils/i-18n.d.ts +21 -0
  216. package/out/interface/utils/i-18n.d.ts.map +1 -0
  217. package/out/interface/utils/i-18n.js +1 -0
  218. package/out/interface/utils/index.d.ts +2 -0
  219. package/out/interface/utils/index.d.ts.map +1 -0
  220. package/out/interface/utils/index.js +1 -0
  221. package/out/params/params.d.ts +20 -24
  222. package/out/params/params.d.ts.map +1 -1
  223. package/out/params/params.js +16 -18
  224. package/out/types.d.ts +5 -113
  225. package/out/types.d.ts.map +1 -1
  226. package/out/utils/bit-mask/bit-mask.d.ts +9 -32
  227. package/out/utils/bit-mask/bit-mask.d.ts.map +1 -1
  228. package/out/utils/bit-mask/bit-mask.js +10 -37
  229. package/out/utils/click-outside/click-outside.d.ts +1 -4
  230. package/out/utils/click-outside/click-outside.d.ts.map +1 -1
  231. package/out/utils/click-outside/click-outside.js +1 -4
  232. package/out/utils/clone/clone.d.ts +3 -7
  233. package/out/utils/clone/clone.d.ts.map +1 -1
  234. package/out/utils/clone/clone.js +7 -12
  235. package/out/utils/color/color.d.ts +4 -6
  236. package/out/utils/color/color.d.ts.map +1 -1
  237. package/out/utils/color/color.js +5 -8
  238. package/out/utils/cookie-util/cookie-util.d.ts +16 -27
  239. package/out/utils/cookie-util/cookie-util.d.ts.map +1 -1
  240. package/out/utils/cookie-util/cookie-util.js +126 -55
  241. package/out/utils/data-type/data-types.d.ts +13 -19
  242. package/out/utils/data-type/data-types.d.ts.map +1 -1
  243. package/out/utils/data-type/data-types.js +13 -19
  244. package/out/utils/download-file/download-file.d.ts +6 -15
  245. package/out/utils/download-file/download-file.d.ts.map +1 -1
  246. package/out/utils/download-file/download-file.js +6 -15
  247. package/out/utils/event/event.d.ts +6 -14
  248. package/out/utils/event/event.d.ts.map +1 -1
  249. package/out/utils/event/event.js +6 -14
  250. package/out/utils/history-list/history-item.d.ts +5 -10
  251. package/out/utils/history-list/history-item.d.ts.map +1 -1
  252. package/out/utils/history-list/history-item.js +5 -10
  253. package/out/utils/history-list/history-list.d.ts +31 -45
  254. package/out/utils/history-list/history-list.d.ts.map +1 -1
  255. package/out/utils/history-list/history-list.js +28 -40
  256. package/out/utils/index.d.ts +1 -2
  257. package/out/utils/index.d.ts.map +1 -1
  258. package/out/utils/interceptor/core-interceptor.d.ts +16 -4
  259. package/out/utils/interceptor/core-interceptor.d.ts.map +1 -1
  260. package/out/utils/interceptor/core-interceptor.js +62 -4
  261. package/out/utils/interceptor/interceptor.d.ts +29 -39
  262. package/out/utils/interceptor/interceptor.d.ts.map +1 -1
  263. package/out/utils/interceptor/interceptor.js +23 -31
  264. package/out/utils/message-center/base/message-all.d.ts +3 -5
  265. package/out/utils/message-center/base/message-all.d.ts.map +1 -1
  266. package/out/utils/message-center/base/message-all.js +1 -4
  267. package/out/utils/message-center/base/message-base.d.ts +23 -40
  268. package/out/utils/message-center/base/message-base.d.ts.map +1 -1
  269. package/out/utils/message-center/base/message-base.js +20 -26
  270. package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts +5 -6
  271. package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts.map +1 -1
  272. package/out/utils/message-center/command/add-in-changed/command-add-in-changed.js +3 -4
  273. package/out/utils/message-center/command/async-action/command-async-action.d.ts +6 -10
  274. package/out/utils/message-center/command/async-action/command-async-action.d.ts.map +1 -1
  275. package/out/utils/message-center/command/async-action/command-async-action.js +4 -8
  276. package/out/utils/message-center/command/change/command-change.d.ts +4 -5
  277. package/out/utils/message-center/command/change/command-change.d.ts.map +1 -1
  278. package/out/utils/message-center/command/change/command-change.js +2 -4
  279. package/out/utils/message-center/command/command-base/command-base.d.ts +10 -15
  280. package/out/utils/message-center/command/command-base/command-base.d.ts.map +1 -1
  281. package/out/utils/message-center/command/command-base/command-base.js +7 -12
  282. package/out/utils/message-center/command/create/command-create.d.ts +8 -12
  283. package/out/utils/message-center/command/create/command-create.d.ts.map +1 -1
  284. package/out/utils/message-center/command/create/command-create.js +6 -10
  285. package/out/utils/message-center/command/internal-message/command-internal-message.d.ts +7 -11
  286. package/out/utils/message-center/command/internal-message/command-internal-message.d.ts.map +1 -1
  287. package/out/utils/message-center/command/internal-message/command-internal-message.js +5 -9
  288. package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts +6 -10
  289. package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts.map +1 -1
  290. package/out/utils/message-center/command/mark-open-data/command-mark-open-data.js +4 -8
  291. package/out/utils/message-center/command/message-command.d.ts +31 -45
  292. package/out/utils/message-center/command/message-command.d.ts.map +1 -1
  293. package/out/utils/message-center/command/message-command.js +29 -43
  294. package/out/utils/message-center/command/remove/command-remove.d.ts +7 -11
  295. package/out/utils/message-center/command/remove/command-remove.d.ts.map +1 -1
  296. package/out/utils/message-center/command/remove/command-remove.js +5 -9
  297. package/out/utils/message-center/command/update/command-update.d.ts +7 -11
  298. package/out/utils/message-center/command/update/command-update.d.ts.map +1 -1
  299. package/out/utils/message-center/command/update/command-update.js +5 -9
  300. package/out/utils/message-center/console/message-console.d.ts +6 -9
  301. package/out/utils/message-center/console/message-console.d.ts.map +1 -1
  302. package/out/utils/message-center/console/message-console.js +4 -8
  303. package/out/utils/message-center/error/message-error.d.ts +6 -9
  304. package/out/utils/message-center/error/message-error.d.ts.map +1 -1
  305. package/out/utils/message-center/error/message-error.js +4 -8
  306. package/out/utils/message-center/index.d.ts +0 -1
  307. package/out/utils/message-center/index.d.ts.map +1 -1
  308. package/out/utils/message-center/message-center.d.ts +20 -35
  309. package/out/utils/message-center/message-center.d.ts.map +1 -1
  310. package/out/utils/message-center/message-center.js +18 -33
  311. package/out/utils/namespace/namespace.d.ts +45 -75
  312. package/out/utils/namespace/namespace.d.ts.map +1 -1
  313. package/out/utils/namespace/namespace.js +53 -81
  314. package/out/utils/net/http-response.d.ts +6 -66
  315. package/out/utils/net/http-response.d.ts.map +1 -1
  316. package/out/utils/net/http-response.js +4 -11
  317. package/out/utils/net/net.d.ts +57 -100
  318. package/out/utils/net/net.d.ts.map +1 -1
  319. package/out/utils/net/net.js +53 -94
  320. package/out/utils/recursive/find-recursive-child.d.ts +2 -10
  321. package/out/utils/recursive/find-recursive-child.d.ts.map +1 -1
  322. package/out/utils/recursive/find-recursive-child.js +4 -14
  323. package/out/utils/string-util/string-util.d.ts +19 -22
  324. package/out/utils/string-util/string-util.d.ts.map +1 -1
  325. package/out/utils/string-util/string-util.js +28 -22
  326. package/out/utils/style/remote-style.d.ts +1 -4
  327. package/out/utils/style/remote-style.d.ts.map +1 -1
  328. package/out/utils/style/remote-style.js +1 -4
  329. package/out/utils/sync/await-timeout.d.ts +1 -5
  330. package/out/utils/sync/await-timeout.d.ts.map +1 -1
  331. package/out/utils/sync/await-timeout.js +1 -5
  332. package/out/utils/sync/count-latch.d.ts +14 -30
  333. package/out/utils/sync/count-latch.d.ts.map +1 -1
  334. package/out/utils/sync/count-latch.js +14 -30
  335. package/out/utils/upload/select-file.d.ts +12 -29
  336. package/out/utils/upload/select-file.d.ts.map +1 -1
  337. package/out/utils/upload/select-file.js +3 -9
  338. package/out/utils/upload/upload-file.d.ts +6 -14
  339. package/out/utils/upload/upload-file.d.ts.map +1 -1
  340. package/out/utils/upload/upload-file.js +9 -23
  341. package/out/utils/url-helper/url-helper.d.ts +19 -30
  342. package/out/utils/url-helper/url-helper.d.ts.map +1 -1
  343. package/out/utils/url-helper/url-helper.js +19 -30
  344. package/out/utils/util/util.d.ts +6 -77
  345. package/out/utils/util/util.d.ts.map +1 -1
  346. package/out/utils/util/util.js +6 -77
  347. package/package.json +5 -8
  348. package/out/command/interface/command/command-option.d.ts +0 -23
  349. package/out/command/interface/command/command-option.d.ts.map +0 -1
  350. package/out/command/interface/command/command.d.ts +0 -74
  351. package/out/command/interface/command/command.d.ts.map +0 -1
  352. package/out/command/interface/disposable/disposable.d.ts +0 -4
  353. package/out/command/interface/disposable/disposable.d.ts.map +0 -1
  354. package/out/command/interface/index.d.ts +0 -4
  355. package/out/command/interface/index.d.ts.map +0 -1
  356. package/out/constant/login-mode/login-mode.d.ts.map +0 -1
  357. package/out/constant/menu-permission-mode/menu-permission-mode.d.ts.map +0 -1
  358. package/out/interface/i-18n/i-18n.d.ts +0 -81
  359. package/out/interface/i-18n/i-18n.d.ts.map +0 -1
  360. package/out/interface/i-add-in-changed/i-add-in-changed.d.ts.map +0 -1
  361. package/out/interface/i-devtool-config/i-devtool-config.d.ts +0 -40
  362. package/out/interface/i-devtool-config/i-devtool-config.d.ts.map +0 -1
  363. package/out/interface/i-environment/i-environment.d.ts +0 -339
  364. package/out/interface/i-environment/i-environment.d.ts.map +0 -1
  365. package/out/interface/i-internal-message/i-internal-message.d.ts.map +0 -1
  366. package/out/interface/i-mark-open-data/i-mark-open-data.d.ts +0 -43
  367. package/out/interface/i-mark-open-data/i-mark-open-data.d.ts.map +0 -1
  368. package/out/interface/i-portal-async-action/i-portal-async-action.d.ts +0 -163
  369. package/out/interface/i-portal-async-action/i-portal-async-action.d.ts.map +0 -1
  370. package/out/interface/i-portal-message/i-portal-message.d.ts +0 -89
  371. package/out/interface/i-portal-message/i-portal-message.d.ts.map +0 -1
  372. package/out/interface/org-data/org-data.d.ts +0 -43
  373. package/out/interface/org-data/org-data.d.ts.map +0 -1
  374. package/out/utils/message-center/interface/i-app-data-entity.d.ts +0 -20
  375. package/out/utils/message-center/interface/i-app-data-entity.d.ts.map +0 -1
  376. package/out/utils/message-center/interface/i-msg-meta-data.d.ts +0 -19
  377. package/out/utils/message-center/interface/i-msg-meta-data.d.ts.map +0 -1
  378. package/out/utils/message-center/interface/index.d.ts +0 -3
  379. package/out/utils/message-center/interface/index.d.ts.map +0 -1
  380. /package/out/interface/{i-devtool-config → api/environment}/i-devtool-config.js +0 -0
  381. /package/out/interface/{i-environment → api/environment}/i-environment.js +0 -0
  382. /package/out/{command/interface → interface/api/environment}/index.js +0 -0
  383. /package/out/{command/interface/command/command-option.js → interface/api/global-param/i-api-context.js} +0 -0
  384. /package/out/{command/interface/command/command.js → interface/api/global-param/i-global-param.js} +0 -0
  385. /package/out/{utils/message-center/interface → interface/api/global-param}/index.js +0 -0
  386. /package/out/{command/interface/disposable/disposable.js → interface/api/ibizsys/i-api-ibizsys.js} +0 -0
  387. /package/out/interface/{i-18n/i-18n.js → api/ibizsys/i-org-data.js} +0 -0
  388. /package/out/interface/{i-add-in-changed/i-add-in-changed.js → api/ibizsys/index.js} +0 -0
  389. /package/out/interface/{i-internal-message/i-internal-message.js → api/utils/i-api-i18n.js} +0 -0
  390. /package/out/interface/{i-mark-open-data/i-mark-open-data.js → api/utils/message-center/base/i-message-all.js} +0 -0
  391. /package/out/interface/{i-portal-async-action/i-portal-async-action.js → api/utils/message-center/base/i-message-base.js} +0 -0
  392. /package/out/interface/{i-portal-message/i-portal-message.js → api/utils/message-center/base/index.js} +0 -0
  393. /package/out/interface/{org-data/org-data.js → api/utils/message-center/command/add-in-changed/i-add-in-changed.js} +0 -0
  394. /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
  395. /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
@@ -3,54 +3,43 @@ import { MessageCommand } from './command/message-command';
3
3
  import { MessageConsole } from './console/message-console';
4
4
  import { MessageError } from './error/message-error';
5
5
  /**
6
- * 界面消息中心
7
- *
8
- * @author chitanda
9
- * @date 2023-09-05 15:09:14
6
+ * @description 界面消息中心
10
7
  * @export
11
8
  * @class MessageCenter
9
+ * @implements {IMessageCenter}
12
10
  */
13
11
  export class MessageCenter {
14
12
  constructor() {
15
13
  /**
16
- * 所有消息
17
- *
18
- * @author chitanda
19
- * @date 2023-09-05 16:09:12
14
+ * @description 所有消息
15
+ * @protected
20
16
  * @type {MessageAll}
17
+ * @memberof MessageCenter
21
18
  */
22
19
  this.all = new MessageAll();
23
20
  /**
24
- * 指令消息
25
- *
26
- * @author chitanda
27
- * @date 2023-09-05 16:09:28
21
+ * @description 指令消息
28
22
  * @type {MessageCommand}
23
+ * @memberof MessageCenter
29
24
  */
30
25
  this.command = new MessageCommand(this.all);
31
26
  /**
32
- * 日志消息
33
- *
34
- * @author chitanda
35
- * @date 2023-09-05 16:09:48
27
+ * @description 日志消息
36
28
  * @type {MessageConsole}
29
+ * @memberof MessageCenter
37
30
  */
38
31
  this.console = new MessageConsole(this.all);
39
32
  /**
40
- * 错误消息
41
- *
42
- * @author tony001
43
- * @date 2024-04-28 10:04:25
33
+ * @description 错误消息
44
34
  * @type {MessageError}
35
+ * @memberof MessageCenter
45
36
  */
46
37
  this.error = new MessageError(this.all);
47
38
  }
48
39
  /**
49
- * 发送消息
50
- *
51
- * @author chitanda
52
- * @date 2023-09-05 15:09:49
53
- * @param {IPortalMessage} msg
40
+ * @description 发送消息
41
+ * @param {IPortalMessage} msg 消息
42
+ * @memberof MessageCenter
54
43
  */
55
44
  next(msg) {
56
45
  // 消息分子类型,子类型发完消息后,会让父发消息
@@ -66,21 +55,17 @@ export class MessageCenter {
66
55
  }
67
56
  }
68
57
  /**
69
- * 订阅消息
70
- *
71
- * @author chitanda
72
- * @date 2023-09-05 17:09:32
58
+ * @description 订阅消息
73
59
  * @param {(msg: IPortalMessage) => void} callback
60
+ * @memberof MessageCenter
74
61
  */
75
62
  on(callback) {
76
63
  this.all.on(callback);
77
64
  }
78
65
  /**
79
- * 取消订阅
80
- *
81
- * @author chitanda
82
- * @date 2023-09-05 17:09:38
66
+ * @description 取消订阅
83
67
  * @param {(msg: IPortalMessage) => void} callback
68
+ * @memberof MessageCenter
84
69
  */
85
70
  off(callback) {
86
71
  this.all.off(callback);
@@ -1,147 +1,117 @@
1
1
  export declare const defaultNamespace = "ibiz";
2
2
  /**
3
- * 全局样式处理命名空间
4
- *
5
- * @author chitanda
6
- * @date 2022-09-06 11:09:50
3
+ * @description 全局样式处理命名空间
7
4
  * @export
8
5
  * @class Namespace
9
6
  */
10
7
  export declare class Namespace {
11
8
  protected block: string;
12
9
  /**
13
- * 命名空间
14
- *
15
- * @author chitanda
16
- * @date 2022-09-06 12:09:01
10
+ * @description 命名空间
17
11
  * @type {string}
12
+ * @memberof Namespace
18
13
  */
19
14
  namespace: string;
20
15
  /**
21
16
  * Creates an instance of Namespace.
22
- *
23
- * @author chitanda
24
- * @date 2022-09-06 12:09:12
25
17
  * @param {string} block 当前命名空间的根模块,例如组件的名称
26
18
  * @param {string} [namespace] 指定命名空间,未指定使用默认值 ibiz
19
+ * @memberof Namespace
27
20
  */
28
21
  constructor(block: string, namespace?: string);
29
22
  /**
30
- * namespace-block
31
- * namespace-block-blockSuffix
32
- *
33
- * @author chitanda
34
- * @date 2022-09-06 12:09:08
23
+ * @description namespace-block、namespace-block-blockSuffix
35
24
  * @param {string} [blockSuffix='']
36
- * @return {*} {string}
25
+ * @returns {*} {string}
26
+ * @memberof Namespace
37
27
  */
38
28
  b(blockSuffix?: string): string;
39
29
  /**
40
- * namespace-block__element
41
- *
42
- * @author chitanda
43
- * @date 2022-09-06 12:09:48
30
+ * @description namespace-block__element
44
31
  * @param {string} [element]
45
- * @return {*} {string}
32
+ * @returns {*} {string}
33
+ * @memberof Namespace
46
34
  */
47
35
  e(element?: string): string;
48
36
  /**
49
- * namespace-block--modifier
50
- *
51
- * @author chitanda
52
- * @date 2022-09-06 12:09:37
37
+ * @description namespace-block--modifier
53
38
  * @param {string} [modifier]
54
- * @return {*} {string}
39
+ * @returns {*} {string}
40
+ * @memberof Namespace
55
41
  */
56
42
  m(modifier?: string): string;
57
43
  /**
58
- * namespace-block-blockSuffix__element
59
- *
60
- * @author chitanda
61
- * @date 2022-09-06 12:09:52
44
+ * @description namespace-block-blockSuffix__element
62
45
  * @param {string} [blockSuffix]
63
46
  * @param {string} [element]
64
- * @return {*} {string}
47
+ * @returns {*} {string}
48
+ * @memberof Namespace
65
49
  */
66
50
  be(blockSuffix?: string, element?: string): string;
67
51
  /**
68
- * namespace-block__element--modifier
69
- *
70
- * @author chitanda
71
- * @date 2022-09-06 12:09:19
52
+ * @description namespace-block__element--modifier
72
53
  * @param {string} [element]
73
54
  * @param {string} [modifier]
74
- * @return {*} {string}
55
+ * @returns {*} {string}
56
+ * @memberof Namespace
75
57
  */
76
58
  em(element?: string, modifier?: string): string;
77
59
  /**
78
- * namespace-block-blockSuffix--modifier
79
- *
80
- * @author chitanda
81
- * @date 2022-09-06 12:09:59
60
+ * @description namespace-block-blockSuffix--modifier
82
61
  * @param {string} [blockSuffix]
83
62
  * @param {string} [modifier]
84
- * @return {*} {string}
63
+ * @returns {*} {string}
64
+ * @memberof Namespace
85
65
  */
86
66
  bm(blockSuffix?: string, modifier?: string): string;
87
67
  /**
88
- * namespace-block-blockSuffix__element--modifier
89
- *
90
- * @author chitanda
91
- * @date 2022-09-06 12:09:37
68
+ * @description namespace-block-blockSuffix__element--modifier
92
69
  * @param {string} [blockSuffix]
93
70
  * @param {string} [element]
94
71
  * @param {string} [modifier]
95
- * @return {*} {string}
72
+ * @returns {*} {string}
73
+ * @memberof Namespace
96
74
  */
97
75
  bem(blockSuffix?: string, element?: string, modifier?: string): string;
98
76
  /**
99
- * 返回状态 class
100
- *
101
- * is('loading', false) => '';
102
- * is('loading', true) => 'is-loading';
103
- *
104
- * @author chitanda
105
- * @date 2022-09-06 12:09:57
77
+ * @description 返回状态类
106
78
  * @param {string} name
107
79
  * @param {boolean} [state]
108
- * @return {*} {string}
80
+ * @example
81
+ * ```typescript
82
+ * is('loading', false) => '';
83
+ * is('loading', true) => 'is-loading';
84
+ * ```
85
+ * @returns {*} {string}
86
+ * @memberof Namespace
109
87
  */
110
88
  is(name: string, state?: boolean): string;
111
89
  /**
112
- * 生成使用到的 css 变量 style 对象
113
- *
114
- * @author chitanda
115
- * @date 2022-09-06 15:09:41
90
+ * @description 生成使用到的 css 变量 style 对象
116
91
  * @param {Record<string, string>} object
117
- * @return {*} {Record<string, string>}
92
+ * @returns {*} {Record<string, string>}
93
+ * @memberof Namespace
118
94
  */
119
95
  cssVar(object: Record<string, string>): Record<string, string>;
120
96
  /**
121
- * 生成使用到的 css block 变量 style 对象
122
- *
123
- * @author chitanda
124
- * @date 2022-09-06 15:09:03
97
+ * @description 生成使用到的 css block 变量 style 对象
125
98
  * @param {Record<string, string>} object
126
- * @return {*} {Record<string, string>}
99
+ * @returns {*} {Record<string, string>}
100
+ * @memberof Namespace
127
101
  */
128
102
  cssVarBlock(object: Record<string, string>): Record<string, string>;
129
103
  /**
130
- * 生成 css var 变量名称
131
- *
132
- * @author chitanda
133
- * @date 2022-09-06 15:09:21
104
+ * @description 生成 css var 变量名称
134
105
  * @param {string} name
135
- * @return {*} {string}
106
+ * @returns {*} {string}
107
+ * @memberof Namespace
136
108
  */
137
109
  cssVarName(name: string): string;
138
110
  /**
139
- * 生成块 css var 变量名称
140
- *
141
- * @author chitanda
142
- * @date 2022-09-06 15:09:35
111
+ * @description 生成块 css var 变量名称
143
112
  * @param {string} name
144
- * @return {*} {string}
113
+ * @returns {*} {string}
114
+ * @memberof Namespace
145
115
  */
146
116
  cssVarBlockName(name: string): string;
147
117
  }
@@ -1 +1 @@
1
- {"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../../src/utils/namespace/namespace.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAwCvC;;;;;;;GAOG;AACH,qBAAa,SAAS;IAmBlB,SAAS,CAAC,KAAK,EAAE,MAAM;IAlBzB;;;;;;OAMG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;;OAOG;gBAES,KAAK,EAAE,MAAM,EACvB,SAAS,CAAC,EAAE,MAAM;IAKpB;;;;;;;;OAQG;IACH,CAAC,CAAC,WAAW,GAAE,MAAW,GAAG,MAAM;IAInC;;;;;;;OAOG;IACH,CAAC,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IAI3B;;;;;;;OAOG;IACH,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM;IAI5B;;;;;;;;OAQG;IACH,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IAMlD;;;;;;;;OAQG;IACH,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM;IAM/C;;;;;;;;OAQG;IACH,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM;IAMnD;;;;;;;;;OASG;IACH,GAAG,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM;IAMtE;;;;;;;;;;;OAWG;IACH,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM;IAIzC;;;;;;;OAOG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAU9D;;;;;;;OAOG;IACH,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAUnE;;;;;;;OAOG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAIhC;;;;;;;OAOG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAGtC"}
1
+ {"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../../src/utils/namespace/namespace.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAwCvC;;;;GAIG;AACH,qBAAa,SAAS;IAelB,SAAS,CAAC,KAAK,EAAE,MAAM;IAdzB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;gBAES,KAAK,EAAE,MAAM,EACvB,SAAS,CAAC,EAAE,MAAM;IAKpB;;;;;OAKG;IACH,CAAC,CAAC,WAAW,GAAE,MAAW,GAAG,MAAM;IAInC;;;;;OAKG;IACH,CAAC,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IAI3B;;;;;OAKG;IACH,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM;IAI5B;;;;;;OAMG;IACH,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IAMlD;;;;;;OAMG;IACH,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM;IAM/C;;;;;;OAMG;IACH,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM;IAMnD;;;;;;;OAOG;IACH,GAAG,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM;IAMtE;;;;;;;;;;;OAWG;IACH,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM;IAIzC;;;;;OAKG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAU9D;;;;;OAKG;IACH,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAUnE;;;;;OAKG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAIhC;;;;;OAKG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAGtC"}
@@ -1,21 +1,21 @@
1
1
  export const defaultNamespace = 'ibiz';
2
2
  const statePrefix = 'is-';
3
3
  /**
4
- * css bem 命名规则拼接
4
+ * @description 拼接css bem命名
5
+ * @param {string} namespace 命名空间
6
+ * @param {string} block 块
7
+ * @param {string} [blockSuffix] 块后缀
8
+ * @param {string} [element] 元素
9
+ * @param {string} [modifier] 修饰符
10
+ * @example
11
+ * ```typescript
5
12
  * _bem('ibiz', 'layout') => ibiz-layout
6
13
  * _bem('ibiz', 'layout', '', 'title') => ibiz-layout__title
7
14
  * _bem('ibiz', 'layout', '', '', 'right') => ibiz-layout--right
8
15
  * _bem('ibiz', 'layout', '', 'title', 'right') => ibiz-layout__title--right
9
16
  * _bem('ibiz', 'layout', 'header', 'title', 'right') => ibiz-layout-header__title--right
10
- *
11
- * @author chitanda
12
- * @date 2022-09-06 11:09:42
13
- * @param {string} namespace 命名空间
14
- * @param {string} block 块
15
- * @param {string} blockSuffix 块后缀
16
- * @param {string} element 元素
17
- * @param {string} modifier 修饰符
18
- * @return {*} {string}
17
+ * ```
18
+ * @returns {*} {string}
19
19
  */
20
20
  function _bem(namespace, block, blockSuffix, element, modifier) {
21
21
  let cls = `${namespace}-${block}`;
@@ -31,68 +31,54 @@ function _bem(namespace, block, blockSuffix, element, modifier) {
31
31
  return cls;
32
32
  }
33
33
  /**
34
- * 全局样式处理命名空间
35
- *
36
- * @author chitanda
37
- * @date 2022-09-06 11:09:50
34
+ * @description 全局样式处理命名空间
38
35
  * @export
39
36
  * @class Namespace
40
37
  */
41
38
  export class Namespace {
42
39
  /**
43
40
  * Creates an instance of Namespace.
44
- *
45
- * @author chitanda
46
- * @date 2022-09-06 12:09:12
47
41
  * @param {string} block 当前命名空间的根模块,例如组件的名称
48
42
  * @param {string} [namespace] 指定命名空间,未指定使用默认值 ibiz
43
+ * @memberof Namespace
49
44
  */
50
45
  constructor(block, namespace) {
51
46
  this.block = block;
52
47
  this.namespace = namespace || defaultNamespace;
53
48
  }
54
49
  /**
55
- * namespace-block
56
- * namespace-block-blockSuffix
57
- *
58
- * @author chitanda
59
- * @date 2022-09-06 12:09:08
50
+ * @description namespace-block、namespace-block-blockSuffix
60
51
  * @param {string} [blockSuffix='']
61
- * @return {*} {string}
52
+ * @returns {*} {string}
53
+ * @memberof Namespace
62
54
  */
63
55
  b(blockSuffix = '') {
64
56
  return _bem(this.namespace, this.block, blockSuffix, '', '');
65
57
  }
66
58
  /**
67
- * namespace-block__element
68
- *
69
- * @author chitanda
70
- * @date 2022-09-06 12:09:48
59
+ * @description namespace-block__element
71
60
  * @param {string} [element]
72
- * @return {*} {string}
61
+ * @returns {*} {string}
62
+ * @memberof Namespace
73
63
  */
74
64
  e(element) {
75
65
  return element ? _bem(this.namespace, this.block, '', element, '') : '';
76
66
  }
77
67
  /**
78
- * namespace-block--modifier
79
- *
80
- * @author chitanda
81
- * @date 2022-09-06 12:09:37
68
+ * @description namespace-block--modifier
82
69
  * @param {string} [modifier]
83
- * @return {*} {string}
70
+ * @returns {*} {string}
71
+ * @memberof Namespace
84
72
  */
85
73
  m(modifier) {
86
74
  return modifier ? _bem(this.namespace, this.block, '', '', modifier) : '';
87
75
  }
88
76
  /**
89
- * namespace-block-blockSuffix__element
90
- *
91
- * @author chitanda
92
- * @date 2022-09-06 12:09:52
77
+ * @description namespace-block-blockSuffix__element
93
78
  * @param {string} [blockSuffix]
94
79
  * @param {string} [element]
95
- * @return {*} {string}
80
+ * @returns {*} {string}
81
+ * @memberof Namespace
96
82
  */
97
83
  be(blockSuffix, element) {
98
84
  return blockSuffix && element
@@ -100,13 +86,11 @@ export class Namespace {
100
86
  : '';
101
87
  }
102
88
  /**
103
- * namespace-block__element--modifier
104
- *
105
- * @author chitanda
106
- * @date 2022-09-06 12:09:19
89
+ * @description namespace-block__element--modifier
107
90
  * @param {string} [element]
108
91
  * @param {string} [modifier]
109
- * @return {*} {string}
92
+ * @returns {*} {string}
93
+ * @memberof Namespace
110
94
  */
111
95
  em(element, modifier) {
112
96
  return element && modifier
@@ -114,13 +98,11 @@ export class Namespace {
114
98
  : '';
115
99
  }
116
100
  /**
117
- * namespace-block-blockSuffix--modifier
118
- *
119
- * @author chitanda
120
- * @date 2022-09-06 12:09:59
101
+ * @description namespace-block-blockSuffix--modifier
121
102
  * @param {string} [blockSuffix]
122
103
  * @param {string} [modifier]
123
- * @return {*} {string}
104
+ * @returns {*} {string}
105
+ * @memberof Namespace
124
106
  */
125
107
  bm(blockSuffix, modifier) {
126
108
  return blockSuffix && modifier
@@ -128,14 +110,12 @@ export class Namespace {
128
110
  : '';
129
111
  }
130
112
  /**
131
- * namespace-block-blockSuffix__element--modifier
132
- *
133
- * @author chitanda
134
- * @date 2022-09-06 12:09:37
113
+ * @description namespace-block-blockSuffix__element--modifier
135
114
  * @param {string} [blockSuffix]
136
115
  * @param {string} [element]
137
116
  * @param {string} [modifier]
138
- * @return {*} {string}
117
+ * @returns {*} {string}
118
+ * @memberof Namespace
139
119
  */
140
120
  bem(blockSuffix, element, modifier) {
141
121
  return blockSuffix && element && modifier
@@ -143,27 +123,25 @@ export class Namespace {
143
123
  : '';
144
124
  }
145
125
  /**
146
- * 返回状态 class
147
- *
148
- * is('loading', false) => '';
149
- * is('loading', true) => 'is-loading';
150
- *
151
- * @author chitanda
152
- * @date 2022-09-06 12:09:57
126
+ * @description 返回状态类
153
127
  * @param {string} name
154
128
  * @param {boolean} [state]
155
- * @return {*} {string}
129
+ * @example
130
+ * ```typescript
131
+ * is('loading', false) => '';
132
+ * is('loading', true) => 'is-loading';
133
+ * ```
134
+ * @returns {*} {string}
135
+ * @memberof Namespace
156
136
  */
157
137
  is(name, state) {
158
138
  return name && state ? `${statePrefix}${name}` : '';
159
139
  }
160
140
  /**
161
- * 生成使用到的 css 变量 style 对象
162
- *
163
- * @author chitanda
164
- * @date 2022-09-06 15:09:41
141
+ * @description 生成使用到的 css 变量 style 对象
165
142
  * @param {Record<string, string>} object
166
- * @return {*} {Record<string, string>}
143
+ * @returns {*} {Record<string, string>}
144
+ * @memberof Namespace
167
145
  */
168
146
  cssVar(object) {
169
147
  const styles = {};
@@ -175,12 +153,10 @@ export class Namespace {
175
153
  return styles;
176
154
  }
177
155
  /**
178
- * 生成使用到的 css block 变量 style 对象
179
- *
180
- * @author chitanda
181
- * @date 2022-09-06 15:09:03
156
+ * @description 生成使用到的 css block 变量 style 对象
182
157
  * @param {Record<string, string>} object
183
- * @return {*} {Record<string, string>}
158
+ * @returns {*} {Record<string, string>}
159
+ * @memberof Namespace
184
160
  */
185
161
  cssVarBlock(object) {
186
162
  const styles = {};
@@ -192,23 +168,19 @@ export class Namespace {
192
168
  return styles;
193
169
  }
194
170
  /**
195
- * 生成 css var 变量名称
196
- *
197
- * @author chitanda
198
- * @date 2022-09-06 15:09:21
171
+ * @description 生成 css var 变量名称
199
172
  * @param {string} name
200
- * @return {*} {string}
173
+ * @returns {*} {string}
174
+ * @memberof Namespace
201
175
  */
202
176
  cssVarName(name) {
203
177
  return `--${this.namespace}-${name}`;
204
178
  }
205
179
  /**
206
- * 生成块 css var 变量名称
207
- *
208
- * @author chitanda
209
- * @date 2022-09-06 15:09:35
180
+ * @description 生成块 css var 变量名称
210
181
  * @param {string} name
211
- * @return {*} {string}
182
+ * @returns {*} {string}
183
+ * @memberof Namespace
212
184
  */
213
185
  cssVarBlockName(name) {
214
186
  return `--${this.namespace}-${this.block}-${name}`;
@@ -1,63 +1,7 @@
1
- import { AxiosResponse, AxiosResponseHeaders, InternalAxiosRequestConfig, RawAxiosResponseHeaders } from 'axios';
1
+ import { AxiosResponseHeaders, InternalAxiosRequestConfig, RawAxiosResponseHeaders } from 'axios';
2
+ import { IHttpResponse } from '../../interface';
2
3
  /**
3
- * Http请求返回接口
4
- *
5
- * @author chitanda
6
- * @date 2022-08-21 17:08:06
7
- * @export
8
- * @interface IHttpResponse
9
- * @extends {AxiosResponse}
10
- * @template T
11
- */
12
- export interface IHttpResponse<T = IData> extends AxiosResponse {
13
- /**
14
- * 是否请求成功
15
- *
16
- * @description 当状态码为 200-299 时认为成功
17
- * @author chitanda
18
- * @date 2022-07-14 16:07:59
19
- * @type {boolean}
20
- */
21
- ok: boolean;
22
- /**
23
- * 是否为本地仿造响应
24
- *
25
- * @description 只有当值为 true 时, 才认为是本地仿造响应
26
- * @author chitanda
27
- * @date 2022-08-18 15:08:44
28
- * @type {boolean}
29
- */
30
- local: boolean;
31
- data: T;
32
- /**
33
- * 当前页
34
- */
35
- page?: number;
36
- /**
37
- * 分页条数
38
- */
39
- size?: number;
40
- /**
41
- * 总条数
42
- */
43
- total?: number;
44
- /**
45
- * 全部计数条数
46
- *
47
- * @type {number}
48
- * @memberof IHttpResponse
49
- */
50
- totalx?: number;
51
- /**
52
- * 总页数
53
- */
54
- totalPages?: number;
55
- }
56
- /**
57
- * 本地请求仿造响应
58
- *
59
- * @author chitanda
60
- * @date 2022-08-21 17:08:00
4
+ * @description 本地请求仿造响应
61
5
  * @export
62
6
  * @class HttpResponse
63
7
  * @implements {IHttpResponse<T>}
@@ -65,10 +9,8 @@ export interface IHttpResponse<T = IData> extends AxiosResponse {
65
9
  */
66
10
  export declare class HttpResponse<T = IData> implements IHttpResponse<T> {
67
11
  /**
68
- * 本地仿造响应
69
- *
70
- * @author chitanda
71
- * @date 2022-08-18 15:08:06
12
+ * @description 本地仿造响应
13
+ * @memberof HttpResponse
72
14
  */
73
15
  local: boolean;
74
16
  ok: boolean;
@@ -79,12 +21,10 @@ export declare class HttpResponse<T = IData> implements IHttpResponse<T> {
79
21
  config: InternalAxiosRequestConfig<IData>;
80
22
  /**
81
23
  * Creates an instance of HttpResponse.
82
- *
83
- * @author chitanda
84
- * @date 2022-08-18 15:08:11
85
24
  * @param {unknown} [data] 返回的数据
86
25
  * @param {number} [status] 状态码 (默认为 200)
87
26
  * @param {string} [statusText] 状态描述 (默认为空字符)
27
+ * @memberof HttpResponse
88
28
  */
89
29
  constructor(data?: unknown, status?: number, statusText?: string);
90
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"http-response.d.ts","sourceRoot":"","sources":["../../../src/utils/net/http-response.ts"],"names":[],"mappings":"AAAA,OAAc,EACZ,aAAa,EACb,oBAAoB,EACpB,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,OAAO,CAAC;AAEf;;;;;;;;;GASG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,KAAK,CAAE,SAAQ,aAAa;IAC7D;;;;;;;OAOG;IACH,EAAE,EAAE,OAAO,CAAC;IACZ;;;;;;;OAOG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf,IAAI,EAAE,CAAC,CAAC;IAER;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;GASG;AACH,qBAAa,YAAY,CAAC,CAAC,GAAG,KAAK,CAAE,YAAW,aAAa,CAAC,CAAC,CAAC;IAC9D;;;;;OAKG;IACH,KAAK,UAAQ;IAEb,EAAE,UAAS;IAEX,IAAI,EAAE,CAAC,CAAC;IAER,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,EAAE,MAAM,CAAC;IAEnB,OAAO,EAAE,uBAAuB,GAAG,oBAAoB,CAAM;IAE7D,MAAM,EAAE,0BAA0B,CAAC,KAAK,CAAC,CAEvC;IAEF;;;;;;;;OAQG;gBACS,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;CAQjE"}
1
+ {"version":3,"file":"http-response.d.ts","sourceRoot":"","sources":["../../../src/utils/net/http-response.ts"],"names":[],"mappings":"AAAA,OAAc,EACZ,oBAAoB,EACpB,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;GAMG;AACH,qBAAa,YAAY,CAAC,CAAC,GAAG,KAAK,CAAE,YAAW,aAAa,CAAC,CAAC,CAAC;IAC9D;;;OAGG;IACH,KAAK,UAAQ;IAEb,EAAE,UAAS;IAEX,IAAI,EAAE,CAAC,CAAC;IAER,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,EAAE,MAAM,CAAC;IAEnB,OAAO,EAAE,uBAAuB,GAAG,oBAAoB,CAAM;IAE7D,MAAM,EAAE,0BAA0B,CAAC,KAAK,CAAC,CAEvC;IAEF;;;;;;OAMG;gBACS,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;CAQjE"}
@@ -1,9 +1,6 @@
1
1
  import axios from 'axios';
2
2
  /**
3
- * 本地请求仿造响应
4
- *
5
- * @author chitanda
6
- * @date 2022-08-21 17:08:00
3
+ * @description 本地请求仿造响应
7
4
  * @export
8
5
  * @class HttpResponse
9
6
  * @implements {IHttpResponse<T>}
@@ -12,19 +9,15 @@ import axios from 'axios';
12
9
  export class HttpResponse {
13
10
  /**
14
11
  * Creates an instance of HttpResponse.
15
- *
16
- * @author chitanda
17
- * @date 2022-08-18 15:08:11
18
12
  * @param {unknown} [data] 返回的数据
19
13
  * @param {number} [status] 状态码 (默认为 200)
20
14
  * @param {string} [statusText] 状态描述 (默认为空字符)
15
+ * @memberof HttpResponse
21
16
  */
22
17
  constructor(data, status, statusText) {
23
18
  /**
24
- * 本地仿造响应
25
- *
26
- * @author chitanda
27
- * @date 2022-08-18 15:08:06
19
+ * @description 本地仿造响应
20
+ * @memberof HttpResponse
28
21
  */
29
22
  this.local = true;
30
23
  this.ok = false;